**** BEGIN LOGGING AT Tue Apr 07 02:59:59 2015 Apr 07 03:00:04 yeah the second you throw any time of list or grid in the preview its fucked Apr 07 03:00:56 explodes: i just got back to the chan so i hope this isnt what you guys were talking about but a tindr app about matching a graphic designer and a prrogramer would be cool Apr 07 03:00:57 Wait, I was totally ignoring that onLayout thing. That looks odd. Apr 07 03:01:02 Why do you have that? Apr 07 03:01:34 DadFoundMy: oh snap you're the guy I was helping the other day- with crashlytics i think it was. did you ever bother getting it to work? Apr 07 03:01:38 that is there to place the View inside the ViewGroup Apr 07 03:01:56 TacticalJoke: the app crashed! no such method exception :) Apr 07 03:02:00 explodes: no :/ i released without it Apr 07 03:02:08 i was going on vacation and wanted to release Apr 07 03:02:19 when i get back i think i am going to implement it Apr 07 03:02:38 ashwink005: I'd recommend using the two-parameter constructor instead and also removing that onLayout override. Apr 07 03:03:07 TacticalJoke: if I don't have an onLayout then how will I position my Views inside the ViewGroup? Apr 07 03:03:14 no worries man. its a helpful tool is all. once you set it up once, it takes 30 seconds on everything else Apr 07 03:03:47 ashwink005: why are you making a custom view group? Apr 07 03:04:12 ashwink005: Okay, but why not do things one step at a time? Get the basics working first; then worry about onLayout. Apr 07 03:04:54 I actually have a bigger project where I need to position the textView and update it along with other independent views Apr 07 03:05:16 TacticalJoke: if I make the textView via xml then it works fine Apr 07 03:05:49 the problem comes when I make it programmaticaly and try to give it a place in my ViewGroup. Everything else works fine. Apr 07 03:22:38 is there a way to view SharedPreferences graphically? Apr 07 03:22:44 Like is there any app or anything? Apr 07 03:28:50 Hello Can anyone tell me the opensource libraru to perform CRUD operation of System Calendars Apr 07 03:34:37 <_genuser_> break time! Apr 07 03:34:42 <_genuser_> enough taxes for one day. Apr 07 03:34:50 t0astt: I thought it just uses an xml file Apr 07 03:35:14 JesusFreke: Yeah, I was just wondering if I could view it ON my phone. I just adb pull'd it off, though Apr 07 03:35:37 Well, it's not like any other application is going to be able to read it Apr 07 03:35:52 unless you're storing it on the sdcard or something Apr 07 03:38:31 if your app and another app share the same userId you can read it Apr 07 03:38:53 or using the run-as command Apr 07 03:39:22 well yes, but at that point you could adb pull it as well, as he said Apr 07 03:39:26 on-device you have few options Apr 07 03:44:39 Ok so I'm having a really strange problem... my phone is converting a timestamp of "1428378238" to "Dec 31, 1969 6:00:00 PM" via Date d = new Date(timestamp); ... what the heck Apr 07 03:46:50 hey Napalm Apr 07 03:46:52 Nevermind. Did some logging and it's not even picking it up as a long Apr 07 03:48:06 t0astt: 1428378238 is seconds not milliseconds Apr 07 03:48:11 g00s: hey Apr 07 03:49:21 Napalm: you're right Apr 07 04:04:33 hello, I am an android noob, not able to figure out how to set the values for @string/temp, or @string/date etc... (googled for it, but no definitive answers) seems like a very basic question. Apr 07 04:07:35 src/res/values/strings.xml you set it like blah some date... Apr 07 04:08:55 ksinkar: Also note that any XML file with will end up being available as @string/... Apr 07 04:09:00 strings.xml is not special Apr 07 04:24:36 bankai_, CedricBeust: Thanks Apr 07 04:56:16 How can I call getSupportFragmentManager from an adapter? Apr 07 04:59:49 t0astt: not sure what you're doing ,but you may want to be bubbling the event up from your view to your fragment or activity rather than calling controller-code from your adapter or views Apr 07 05:03:58 CedricBeust: heh i never knew that. I assumed it had to be in the strings.xml Apr 07 05:04:10 CedricBeust: i assume that also stands true with drawables and anything else? Apr 07 05:07:03 in source code, where is an implementation of "releaseProvider" method in ContentResolver class ? https://android.googlesource.com/platform/frameworks/base/+/android-4.2.2_r1.2/core/java/android/content/ContentResolver.java it say that is abstract (line 198) but in code is used a getContentResolver.insert() and insert method have a call to releaseProvider method that I don't know where is the code Apr 07 05:07:53 *where the code is Apr 07 05:19:05 feathersanddown, in classes that subclass it Apr 07 05:20:10 uhm... there are somewhere ? Apr 07 05:21:04 https://developer.android.com/reference/android/content/ContentResolver.html <-- say there is no in/direct subclasses Apr 07 05:21:07 ultimately it seems to be in ActivityThread Apr 07 05:21:14 just the mock Apr 07 05:21:23 uhm Apr 07 05:21:44 the activitythread method is called from inner subclasses too Apr 07 05:21:57 inner classes that subclass contentresolver that is Apr 07 05:23:35 feathersanddown, check ContextImpl Apr 07 05:24:00 it has private ApplicationContentResolver mContentResolver; Apr 07 05:26:32 anyone here use scala for android apps? just want to get some opinions on going that route over kotlin Apr 07 05:26:56 myke: That route is pain. A lot of pain :) Apr 07 05:27:16 ok that's good to know Apr 07 05:27:32 Don't take my word, try it, come back with your impressions Apr 07 05:27:53 i thought it might be an elegant way to do the sorts of things people do with rx java...but i guess not Apr 07 05:28:38 I don't see much advantage over Kotlin myself but again, if there are things you like In Scala that are not in Kotlin, go ahead and try it Apr 07 05:28:48 The Google+ uses cardview or some other custom UI? Apr 07 05:29:43 sorry , but where is ContextImpl ? Apr 07 05:38:44 "Facebook use linked to depressive symptoms" Apr 07 05:38:44 aaahh finally found it :) Apr 07 05:52:03 I’m having an issue when using setColorFilter on a drawable. Works fine on android L but has no effect on prior android versions. Any ideas? Apr 07 05:53:18 holy cow, this thing is crazy. http://digg.com/video/track-renewal-train Apr 07 05:53:48 wonder what happens if you put a penny infront of it XD Apr 07 05:56:07 hm. i wonder if that does "seamless" tracks, or "standard" tracks. Apr 07 05:57:10 lewellyn i also wonder if they feed that thing humans Apr 07 05:58:35 no, just babies. Apr 07 05:59:36 myke, scala on Android is no pain Apr 07 06:00:40 * pfn has been doing scala on Android for about 4 years now or more Apr 07 06:03:55 i dont understand why my GA stuff isn't showing up in the web console. looking at the android logs, it appears to be dispatched. all the info looks right. but nothing in the console :( Apr 07 06:06:02 the dispatch interval is 120 seconds, so hmm Apr 07 06:06:13 g00s: do you have dry-run (or something similar) enabled? Apr 07 06:06:21 vedu no i dont :( Apr 07 06:07:02 You can make sure of that. Because in the guides they have that, I was facing a similar issue when I started using GA Apr 07 06:07:14 yeah there is getDryRun Apr 07 06:07:46 but it also says, if google services is installed on the device, things work differently with local dispatching Apr 07 06:07:56 play services is on my device ... Apr 07 06:08:50 GA hits don't show up live Apr 07 06:09:15 Check tomorrow Apr 07 06:09:22 oh :D Apr 07 06:09:44 theGraeme did you migrate to GAV4 yet, or still using 3 ? Apr 07 06:10:18 still on 3. Won't be updating for a loooong time. Budget troubles. Apr 07 06:10:21 :( Apr 07 06:10:29 one thing i'm kinda confused about - in play services 7 / GAV4 - is GA /part/ of play services now, or just bundled with it ? Apr 07 06:10:36 theGraeme oh no :( Apr 07 06:11:21 I am assuming android developing with IntelliJ doesn't support hotswap, right? Apr 07 06:11:31 there was some little snippet somewhere saying, if your device has play services, include this gms version thing in your androidmanifest as meta-data - that was bizarre Apr 07 06:11:39 with USB devices. Apr 07 06:12:40 hotswap what? Apr 07 06:12:49 bytecode? no Apr 07 06:12:54 Never seen hotswap truly supported on Android Apr 07 06:12:58 it's not a trivial problem Apr 07 06:13:31 adb has a hard enough time just staying up with a plugged in device as it is Apr 07 06:13:34 seems a bit more complicated since you would have to do it over usb... idk I haven't delved into it, so I really cant go against what you said Apr 07 06:13:39 g00s: word Apr 07 06:13:48 USB is not the problem Apr 07 06:14:54 replacing the code is the problem Apr 07 06:16:50 How can I download the source for appcompat? Apr 07 06:17:23 pfn: do you use scaloid or something else? Apr 07 06:17:56 vedu did i ask you already - do you send events from a service any chance ? Apr 07 06:18:29 I use macroid sometimes Apr 07 06:18:31 surf2b1 in the sdk manager, i think its there if you download source code Apr 07 06:18:45 why does everyone ask about scaloid Apr 07 06:18:54 g00s: No you didn't ask. I was sending from app context only I guess Apr 07 06:19:13 g00s: No. Just a .readme. There is a compiled jar in libs Apr 07 06:19:35 vedu ah ok - just wondering how i should do that. the UI does things the way its documented; but i'm not sure how i should have my service send events - using the same tracker, or another one Apr 07 06:19:55 surf2b1 hmm Apr 07 06:20:02 git clone https://android.googlesource.com/platform/frameworks/support/ seemed to work Apr 07 06:20:13 Mad3ngineer: ART makes it even harder to achieve hotswap Apr 07 06:20:45 what kind of hotswap are we talking about now :| Apr 07 06:20:50 code, usb, what ? Apr 07 06:20:51 Mad3ngineer: and even with Dalvik there was dexopt Apr 07 06:20:57 ya know, change a method, update it over usb Apr 07 06:21:02 I assumed code Apr 07 06:22:15 Mad3ngineer there is this http://jimulabs.com/ Apr 07 06:22:29 maybe not the degree of hot swapping you need Apr 07 06:22:48 that is just for layouts, I assume? Apr 07 06:23:03 Yeah just layouts Apr 07 06:23:27 yeah, well I would be more interested in hot swapping the code. Thanks though g00s. Might use that after all Apr 07 06:23:34 when working with the layouts Apr 07 06:27:33 theGraeme but shouldn't i see somethng at all under realtime analytics ? Apr 07 06:28:12 waiting until tomorrow isn't realtime :D Apr 07 06:28:41 Does onActivityResult and extras and stuff not work on emulator? Apr 07 06:29:15 Why are colorfilters ignored for drawables in a StateListDrawable? What’s the best work arround? Apr 07 06:29:15 I've seen some folks say it's pdated every half hour, every two hours, etc. Apr 07 06:29:53 theGraeme hm, k because the scale on the website its like 0-20minutes Apr 07 06:30:54 g00s: you can use any number of trackers. GA recommends to use in app context anyway. Apr 07 06:31:33 could be. You'll only care about the delay the day you're implementing. Afterwards, it's the long-term view that really matters. Apr 07 06:32:09 Syzygy: what?? Apr 07 06:33:04 myke, i set an extra in onBackPressed, but onActivityResult i get the exception: NullPointerException: Attempt to invoke virtual method 'float java.lang.Float.floatValue()' on a null object reference Apr 07 06:33:29 in this line entry.setLocationLatitude(data.getFloatExtra(MainActivity.EXTRA_LOCATION_CURRENT_LATITUDE, entry.getLocationLatitude())); Apr 07 06:35:05 Syzygy, is what is null, entry,data? Apr 07 06:35:30 neither. Apr 07 06:36:04 the what object is null Apr 07 06:36:27 $20 on a Float Apr 07 06:37:06 ^ Apr 07 06:38:21 Syzygy: where does that exception happen when you run it under the debugger? Apr 07 06:38:22 well, it seems the data I put in setResult doesn't quite arrive in onActivityResult Apr 07 06:38:23 guessing entry.getLocationLatitude() is your problem. Apr 07 06:38:34 myke, in the line I just showed Apr 07 06:38:55 As if MainActivity.EXTRA... is valid key, and data has it then it'd pass, but if defaulting to entry.xxx then Apr 07 06:39:56 hmm, is the default value even called when it has data? Apr 07 06:40:23 Hello. I have a class that I want to serialize into JSON. There are basically 3 elements I want in the JSON that I have marked with annotations. https://gist.github.com/vedant1811/21797a4c23c605f26c50 Apr 07 06:40:31 I can use either Jackson or Gson. But I am getting similar error in both : Can not deserialize instance of class out of START_OBJECT token Apr 07 06:40:53 vedu: Why repeat the same question? Just do what I suggested Apr 07 06:41:05 if data.getFloatExtra passing a key that isn't valid, it'll return your default value which you have as entry.getLocationLatitude() return Apr 07 06:41:34 CedricBeust: to target a different audience, otherwise will have to go with what you said Apr 07 06:41:38 it should be valid though Apr 07 06:41:52 if "it should be", then just debug Apr 07 06:41:55 vedu: Yeah why try to debug and understand the problem when you can just keep asking and do nothing Apr 07 06:42:17 that's what I'm doing the whole time Apr 07 06:42:26 debugging that is. Apr 07 06:42:30 and what does entry.getLocationLatitude return Apr 07 06:43:04 well, it's true that it returns null here, but right now I'm confused why it's even called in the first place Apr 07 06:43:10 just don't .setAnything with values, til you've vetted them Apr 07 06:43:21 because your key is invalid Apr 07 06:43:35 or atleast the object returned by key is Apr 07 06:43:39 so you haven't set it Apr 07 06:43:50 so it is defaulting to the value you provide Apr 07 06:43:52 I have definitely set it though. Apr 07 06:44:03 then guess you got it all figured out Apr 07 06:44:36 something is invalid, just comment out that line, and log out or set breakpoints on each object Apr 07 06:45:17 i'm a fan of using logcat, but some use breakpoints Apr 07 06:46:42 but basically, whenever calling a method that has arguments passed to it, if that method doesn't check for null, you need to precheck conditions before passing them Apr 07 06:48:43 I'm prechecking conditions with if (requestCode == MainActivity.REQUEST_EDIT_ENTRY_CHANGE_LOCATION && resultCode == RESULT_OK), Apr 07 06:50:34 apperently there's a call on the default even when it's not used. Apr 07 06:53:20 that's interesting, but makes sense Apr 07 06:54:24 theGraeme do you get analytics spam ? i'm seeing crap / screens that aren't mine in my console Apr 07 06:55:09 nevermind, just noticed that it's an auto boxing issue. getFloatExtra uses float, not Float, so a Float will be casted to float, and if that is null, then there's the NPE I was getting. Apr 07 06:55:21 gah, if i had the money i'd burn this crap and go with mixpanel Apr 07 06:56:57 So, I have a float "scale". Self explanatory. I use it to tell my OpenGL renderer how much to scale the projection matrix. My problem comes in with how to respond to ScaleGestureDetector. scale*=scaleGestureDetector.getScaleFactor() every time onScale() in my controller class is called gives terrible results for scaling... Exponentially scaling it up and down for each event call. Apr 07 06:57:16 What is the best way to overcome this? I am just diving into touch response via your own response code Apr 07 06:57:46 scale = instead of scale *= ? Apr 07 06:57:58 the thing is that every time a new scale event comes into play Apr 07 06:58:02 it would reset my scale to 1 Apr 07 06:58:07 instead of cumulating on the old scales Apr 07 06:58:24 dont use the same var to do the scaling Apr 07 06:58:37 newscale = scale * ...getScaleFactor Apr 07 06:59:05 ah ok, and scale becomes newscale onScaleEnd Apr 07 06:59:11 yes Apr 07 06:59:14 thanks Apr 07 06:59:20 try it Apr 07 06:59:24 hope it works for you Apr 07 06:59:25 trying it now Apr 07 06:59:27 me too Apr 07 07:04:42 awesome!!! it works perfectly. Thanks lemonxah Apr 07 07:05:54 except I ended up using scale / getScaleFactor so that it wouldn't be backwards Apr 07 07:06:09 so that pinch is shrink and etc Apr 07 07:06:59 how can i read sent and received Sms at the same time ? Apr 07 07:09:07 how do i get a result from a callback on the same thread? Apr 07 07:09:20 same thread as what Apr 07 07:10:10 g00s: GA spam? No, I don't know what you mean. Screen views from an app that isn't yours? Tracking ID should keep all that separate Apr 07 07:10:22 theGraeme ah, i'm seeing this http://www.analyticsedge.com/2014/12/removing-referral-spam-google-analytics/ Apr 07 07:10:31 crap from darodar.com Apr 07 07:12:00 so some bot is just going through property IDs and faking hits Apr 07 07:12:09 Mad3ngineer, glad it worked out for you Apr 07 07:12:27 thanks. me too :) Apr 07 07:12:27 lame! Apr 07 07:12:54 Nick-S, you can use an AsyncTask that will have the result on the starting thread Apr 07 07:13:11 or use a handler to post the data back to the ui thread Apr 07 07:13:13 and i use get()? Apr 07 07:13:18 no dont use get Apr 07 07:13:20 get is blocking Apr 07 07:13:29 i need to block on main thread until the callback has the answer Apr 07 07:13:30 just use the callbacks in the async task Apr 07 07:13:37 why do you need to block? Apr 07 07:13:44 there is no reason to block Apr 07 07:13:54 theGraeme the tracking IDs are lame, such a small number anyone could guess or just rotate through. they should be using GUIDs or something Apr 07 07:14:02 cuz the client uses getResult() and i wanna give it the result synchronously Apr 07 07:14:03 if you have to run code after the result is returned you put that code in the callback Apr 07 07:14:20 i dont want user to need to implement a callback itself Apr 07 07:14:23 dont block the ui thread Apr 07 07:14:23 ever Apr 07 07:14:37 are you writing a lib? Apr 07 07:14:42 and is it java? Apr 07 07:14:55 if you answer yes to both .. then you have to use callbacks Apr 07 07:15:04 and the clients of your lib has to supply you with a lib Apr 07 07:15:30 cause using blocking code on the ui is bad practice Apr 07 07:17:29 g00s: "Sidebar: I have noticed that these spammers target tracking ID’s that end with “-1″ (e.g. UA-1234567-1)" -- I bet the first guy who worked on our app experienced that! I never knew why our lowest id had a suffix of '-2'. lol Apr 07 07:19:51 theGraeme maybe i'll do that too :D Apr 07 07:24:12 Nick-S: https://github.com/fkspro/android-tinyasync Apr 07 07:24:18 Nick-S: that's one way Apr 07 07:24:42 Nick-S: to do exactly what you want - block on (web) i/o and write synchronous code Apr 07 07:25:06 * myke starts a countertrend Apr 07 07:25:46 Nick-S, or anyone, suggestions on how to make that less gross appreciated Apr 07 07:26:02 dont take it so seriously Apr 07 07:26:10 network happens on a thread, thats it Apr 07 07:26:13 haha Apr 07 07:27:21 maybe i should ask about sendorderedbroadcast Apr 07 07:27:40 cuz thats my callback method anyway, is there a way to do that synchronously. Apr 07 07:29:23 Napalm seems you have normal hours these days ! Apr 07 07:43:17 thepoosh ! Apr 07 07:43:25 g00s: ! Apr 07 07:43:29 :D Apr 07 07:43:34 on vacation until subday :) Apr 07 07:43:38 sunday Apr 07 07:43:48 oh nice :) Apr 07 07:44:04 it passover Apr 07 07:44:07 its Apr 07 07:44:13 what the hell is wrong with me Apr 07 07:46:05 hoi, whats the best way to implement a experience points system using google play games service? Apr 07 07:46:20 you're slightly obese, your grooming habits are lacking, and your car isn't flashy Apr 07 07:47:03 huh Apr 07 07:47:12 what the hell is wrong with me Apr 07 07:47:36 might be off topic here, I will take this offline and circle back when I have on topic material from outside the box Apr 07 07:47:53 ??? Apr 07 07:48:05 heh, maybe take vacation from irc too Apr 07 07:48:43 meh Apr 07 08:02:03 theGraeme ah, all the local dispatching stuff in GAV4 was deprecated https://developers.google.com/analytics/devguides/collection/android/v4/dispatch Apr 07 08:02:28 man that really sucks ass - how do you test your analytics now? its could take a many hours for stuff to show up Apr 07 08:22:38 whats the best way to implement a experience points system using google play games service? Apr 07 08:23:14 hi Apr 07 09:05:39 In Android Studio, in the code area, how I change the way the code area shows the file which are open. i.e. in IDEA all the files were shown which were open at that point of time. Now there is a dropdown. Apr 07 09:05:55 hi Apr 07 09:06:21 i attached a new android 5.0.1 phone to the computer. usb debugging is enabled, yet my adb cant find the device Apr 07 09:06:36 also the device doesnt ask to allow access to the device. any ideas whats wrong? Apr 07 09:10:10 what OS Apr 07 09:10:25 maybe needs some tweaking in usb.ini and whatnot Apr 07 09:10:32 also, have you tried to reboot phone Apr 07 09:13:47 oh sorry. im on linux Apr 07 09:30:32 well what does the lsusb say Apr 07 09:30:40 also take a look at this http://wiki.cyanogenmod.org/w/UDEV Apr 07 09:32:10 lsusb finds nothing special IMHO. the device is found via usb, thats it ;-) Apr 07 09:32:36 so it is found after all Apr 07 09:32:41 so change the udev rules Apr 07 09:33:30 am i wrong if i think it simply sets permissions? the adb server is running as root already Apr 07 09:36:42 good day, is there a way to get the caller of onResume() ? Apr 07 09:38:06 there's a way to check the stack Thread.getStackTrace Apr 07 09:39:25 um Apr 07 09:39:27 Unknown0BC: possible: yes. Good idea: Very likely not at all. Apr 07 09:39:45 indeed, why would you want to do that? Apr 07 09:41:53 funny. adb devices cant find a device. but the mobile phone itself says its connected via usb-debugging. wth Apr 07 09:42:17 whats the best way to implement a experience points system using google play games service? Apr 07 09:59:37 why in the world i can't do any special searches in the logcat of android studio Apr 07 10:00:09 special how? Apr 07 10:10:15 ? Apr 07 10:17:51 Hi, i have some problem changing the api level i androidstudio. I keep getting errors in the intermediates file values.xml. I have changed from api lvl 21 to lvl 19. Apr 07 10:23:21 Nick-S: just grep it? adb logcat | grep my_special_search Apr 07 10:23:54 but from the android studio Apr 07 10:24:05 oh, just CTRL-F. Apr 07 10:34:16 This will be a pretty amazing project : http://img-9gag-ftw.9cache.com/photo/aqN6ONM_460sv.mp4 Apr 07 10:39:07 Ashiren: the answer was: use PTP instead of MTB and finally adb recognizes the device *facepalm* Apr 07 10:41:53 I think i have found the solution to my own problem. Is it correct, that the compileSDKVersion should match the buildToolversion, and that the targetSdkVersion is the actual version the app will be compatible to ? Apr 07 10:53:23 clain: but i can't do or and different combinations Apr 07 11:01:02 I have an app that tends to retain quite a lot of memory (nexus 5) Apr 07 11:01:06 Nick-S: if you can click on the regex search thingie, I am sure you can do at least the "or" combination, if you know how to write regex. Apr 07 11:01:21 anyone has any info if the recent lollipop update on Samsung phones was screwed up and will be fixed? I’m getting dozens of crashes, emails and bad reviews on my game from Samsung phone/tablet users on the past couple weeks Apr 07 11:01:24 but I can dump 50% of it by simply clicking "initiate GC" Apr 07 11:01:46 is it safe to assume that android can claim the memory itself when it sees fit? Apr 07 11:01:50 but i need to have on the 'filter' cuz i dont want to see all the messages at all Apr 07 11:03:03 Nick-S: I go open up a terminal and grep if I want do that. Apr 07 11:03:22 Nick-S: doesn't bother me that much. Apr 07 11:03:57 Nick-S: but it could be nice if they added it. Apr 07 11:04:22 it was in eclipse adt Apr 07 11:04:50 hi, I'm lookng to synchronize my app with my server. I've looked at the syncadaptor example. However this doesnt include a protocol. I'm curious if there are some standard protocols to handle the encrypted communication, confilcts, dataformats,... so that i can sync data? Thanks! Apr 07 11:27:22 Text view breaking lines unintelligently Apr 07 11:28:42 only happening with spanned text Apr 07 11:28:47 from an html snippet Apr 07 11:28:52 with no breaks though.. Apr 07 11:42:31 any tut creating toolbar ? Apr 07 11:42:58 im searching but seems like junk Apr 07 11:44:26 anyway found ti Apr 07 11:51:11 is it possible to use galaxy 3 stylus with other phones or tablets? Apr 07 11:55:26 anahumar: no Apr 07 12:22:41 p_l: what is the criteria for using stylus pen on specific device? Apr 07 12:22:55 how do I go online and buy the right one for my tablet? Apr 07 12:25:41 I have a propteriets file containing values in the form "MY_STUFF=...", I load and read that file via gradle, however, when trying to access the properties I get a MissingPropertyException. any idea what could be the reason for that? Apr 07 12:27:08 Here are the relevant parts of my build gradle http://pastebin.com/X7dcL01V Apr 07 12:28:13 This was working last time i tried it. Apr 07 12:28:21 but stopped working over the weekend Apr 07 12:35:18 anahumar: look for anything for "generic capacitive screen" Apr 07 12:40:18 Hello. I have an observable that was returned by retrofit. How can I manually issue an item to this obserevable (so that subscribed observers will get it)? Apr 07 12:41:41 hello. i installed Android SDK on Ubuntu Linux. i attempted to run "tools/android" but it shows "android: can't find sdkmanager.jar". what should i do now ? Apr 07 12:42:25 ali_: we need a lot more code than that. use gist.github.com Apr 07 12:42:44 paste the full error and how you installed Android SDK Apr 07 12:43:36 the full error is "android: can't find sdkmanager.jar" Apr 07 12:45:56 p_l: I've stylus of smasung tablet 3 and I'm trying to use on samsung core mobile or gigaset tablet .. do I know if it may work or not? do I need to install some app before using it? Apr 07 12:46:20 anahumar: wrong channel. goto #android Apr 07 12:49:52 Who needs a cpu burner when you have android studio Apr 07 12:49:58 Hello, Any idea why using ContactsContract.PhoneLookup.CONTENT_FILTER_URI always returns empty results when search by phone number ? for example when I query using content://com.android.contacts/data/phones/filter/0, I always get empty results while If I tried to search with 0 in the contacts application I get results. Apr 07 12:51:01 anahumar: samsung styli won't work with anything that is not either GalaxyTab model with styli or Galaxy Note Apr 07 12:51:18 how can i save data in xml formate? Apr 07 12:51:37 thank you p_l Apr 07 12:51:44 vedu: go fuck yourself Apr 07 12:52:20 how charming Apr 07 12:52:44 O.o Apr 07 13:00:53 Can someone suggest solution to fix issue when adding to alert dialog custom view - dialog container doesn't wraps it. I found this http://stackoverflow.com/a/14918253/799799 but on android 5+ it doesn't help/ Apr 07 13:18:06 xgearx: yea, why bother using an AlertDialog? Apr 07 13:18:20 xgearx: a normal dialog will do Apr 07 13:18:38 I use DialogFragment which wraps AlertDialog Apr 07 13:18:49 it doesnt by default Apr 07 13:19:03 As i understand issue is not in dialog type Apr 07 13:19:06 xgearx: why not have it wrap a Dialog Apr 07 13:19:09 it is Apr 07 13:19:19 its the default layout AlertDialog uses Apr 07 13:19:50 there are only two other things that affect your Dialog's size and they are controlled via a style for your dialog Apr 07 13:19:54 any rxandroid experts? i wish to count buttonclicks, even after device rotation. I have a fragment that gets a new view, and an observable from the button (which becomes a new button on rotation). What's a smart way of keeping track of the previous events? Apr 07 13:20:02 Can you recommend some tutorial/documentations/book that would explain styles more in depth? Like default styles for components, create components with styles, theming and so on.. Apr 07 13:20:14 which again you can do with a DialogFragment with setStyle(); Apr 07 13:20:14 in onCreate Apr 07 13:20:43 xgearx: http://developer.android.com/reference/android/R.attr.html#windowMinWidthMajor Apr 07 13:20:50 Napalm: So you suggest se Dialog and apply style Apr 07 13:20:53 xgearx: http://developer.android.com/reference/android/R.attr.html#windowMinWidthMinor Apr 07 13:20:59 those two Apr 07 13:21:08 if you want to change your min width Apr 07 13:21:13 but again.. its only min witdth Apr 07 13:21:32 your dialog will always wrap its content correctly Apr 07 13:21:40 so it sounds to me like you have a layout issue Apr 07 13:21:53 probably caused by the default layout that is inflated for AlertDialog Apr 07 13:21:58 as its a massive pain in the ass Apr 07 13:22:40 no layout issue, checked in hierarchyviewer Apr 07 13:23:07 try it and see Apr 07 13:23:08 issue only on android 5+ Apr 07 13:23:21 %+? Apr 07 13:23:25 %+? Apr 07 13:23:28 omg Apr 07 13:23:29 5+ Apr 07 13:23:31 lol Apr 07 13:23:40 yea, well even more reason to try a default Dialog Apr 07 13:23:41 :P Apr 07 13:23:42 try it Apr 07 13:24:13 how do I make a GridView take the whole screen? Apr 07 13:24:16 for instance http://2.bp.blogspot.com/_HRaLqTNFL7w/TQ8pnV8H_nI/AAAAAAAACEM/rXmOTB0-R98/s1600/GridviewSample.png Apr 07 13:24:30 I want the items to be taller, so there is no space available at the bottom Apr 07 13:25:57 Mattx: dont use a GridView Apr 07 13:26:08 what should I use then? Apr 07 13:26:11 Mattx: use a TableLayout or GridLayout Apr 07 13:26:26 hmn, never used them Apr 07 13:26:34 thanks, I'll check Apr 07 13:26:37 wait Apr 07 13:26:52 make sure you put a ScrollView around the one you choose Apr 07 13:26:56 Mattx Apr 07 13:27:00 ok, thanks Apr 07 13:27:17 this way if the content is larger than can be displayed on the device at least you can still get to all the options by scrolling Apr 07 13:30:15 Napalm, I'm reading about the difference between them but it doesn't seem to be a significant difference Apr 07 13:30:23 what is your opinion? which one is best for this case? Apr 07 13:30:32 for what case? Apr 07 13:30:34 is that your SO post? Apr 07 13:30:57 Napalm: i tried Dialog Apr 07 13:30:58 so Apr 07 13:31:03 Napalm: https://www.youtube.com/watch?v=S9RVS8cjNN0 Apr 07 13:31:32 well you've already selected an incorrect answered Apr 07 13:31:34 well you've already selected an incorrect answer* Apr 07 13:31:55 Napalm, no it's not, I just happen to have the same problem Apr 07 13:31:56 I'll post an answer but I dont know if you can change your selected answer Apr 07 13:32:07 I'm trying to accomodate some items in a grid (it's a menu actually) Apr 07 13:32:13 and I want the menu to cover the whole screen Apr 07 13:32:14 i've already told you the solution Apr 07 13:32:25 wrap or match Apr 07 13:32:29 what are you trying to do? Apr 07 13:33:06 I'm not sure you're talking to me. I know you said I should use GridLayout or TableLayout, but I'm reading and they seem to do the same thing Apr 07 13:33:16 I'll use one of them but I'm not sure which one Apr 07 13:33:17 your not part of mplab microchip ide thingy Apr 07 13:33:19 lol Apr 07 13:34:09 whats your question Apr 07 13:42:22 Napalm, never mind, I found TabletLayout is more suitable for creating a menu like I want Apr 07 13:42:47 the problem is, I want it to create as many columns as it needs based on the screen size. that was done automatically by gridlayout Apr 07 13:42:50 I meant gridview Apr 07 13:43:23 but TableLayout doesn't do that, it creates as many rows/columns as you ask it to create Apr 07 13:46:30 Mattx: there is no view that will do what you want by default.. you would have to make that yourself Apr 07 13:49:00 Can you recommend some tutorial/documentations/book that would explain styles more in depth? Like default styles for components, create components with styles, theming and so on.. Apr 07 14:04:10 Hi! I am doing a Scale Animation on a view [https://dpaste.de/YTqg/raw] but its pivot doesn't seem to work correctly, it scales in from top left corner Apr 07 14:07:00 Is there a way to generate android studio style test result exports from the console? Apr 07 14:07:18 gradles doesn't seem to produce single file test reports Apr 07 14:23:24 SneakerXZ, the Google IO 2014 app has strong examples of style usage. Definitely worth checking it out: http://goo.gl/P5H8Kt Apr 07 14:23:55 pmarino: thanks, but do you know about some theory? Apr 07 14:24:06 examples are nice but it takes longer to figure it out :) Apr 07 14:25:14 As far as I know, there isn't very much. Googling "android styles" will get some official documentation and a few blog posts, but that's about it. Apr 07 14:26:04 It's unfortunate that a lot of Android-development topics feel like insider knowledge. Apr 07 14:27:48 TacticalJoke: Ok :( Apr 07 14:33:04 the styling guide on d.android.com is pretty comprehensive Apr 07 14:40:56 SneakerXZ, if you're interested in some of the design theory / guidelines, it may be worth checking out the Material Design spec: http://goo.gl/TCZgoq Apr 07 14:41:18 pmarino: I know that, it does not explain style capabilities in Android Apr 07 14:42:35 pfn: Can you give me a link? Or What do you mean by styling guide? Apr 07 14:44:30 SneakerXZ, maybe check this? http://goo.gl/PRLu . hope that helps! Apr 07 14:48:46 Hi guys! Apr 07 14:48:52 I’m working in Android Studio and have managed to create a simple servlet to post data to my google cloud data storage. Apr 07 14:49:10 But I can’t figure out how to retrieve data from the cloud. Should I try using Endpoints instead or can i do it with a simple servlet? Google cloud storage is seriously giving me a headache :(( Apr 07 14:51:40 Google isn’t really giving me any answers to this :( Apr 07 14:54:13 Hello. I'm trying to implement a cutom multiple choice adapter, but for some reason the OnClick listener on it doesn't fire. Apr 07 14:54:13 My course of action is I inflate a layout, do layout.findViewById(listview id here), add adapter and the listener to it and feed the layout to AlertDialog Builder.setView() Apr 07 14:54:13 Now, for some reason, the adapter added to the listview perfectly, but onitemclick listener doesn't work Apr 07 14:59:13 creitve: Have you seen this? http://developer.android.com/guide/topics/ui/dialogs.html#AddingAList Apr 07 15:03:36 TacticalJoke: I use the roughly the same way that is described under "Creating a Custom Layout", via setView. I also do myLayout.findViewById to get the ListView in it and to attach an adapter to it. Which works fine. But then the listener added to the very same listview doesn't fire. Apr 07 15:04:04 wait a moment, I'll make a paste Apr 07 15:04:13 You don't need a ListView. Apr 07 15:04:25 Just use setItems. Apr 07 15:04:56 You also don't need a layout. Apr 07 15:06:09 I do need it, because I need custom item look for my list Apr 07 15:06:50 so I need to attach an adapter. But the builder doesn't allow me to attach an adapter and use multiple choice mode in the same time Apr 07 15:06:59 http://pastebin.com/AW6E6LdY Apr 07 15:08:28 So the mainListView.setAdapter(new EventTagAdapter(getActivity(), items, selected)); part works perfectly, but the next line doesn't. The onclick inside doesn't actually fire Apr 07 15:09:03 Have you verified that onItemClick is not firing by using Log.d? Apr 07 15:09:25 I used a breakpoint Apr 07 15:10:03 of course it fires Apr 07 15:11:05 Is your adapter producing views that are clickable (which would mean that onItemClick would not fire). Apr 07 15:11:22 If they're as big as possible, anyway. Apr 07 15:12:00 Well, I can see a normal listview and all custom things are fine - graphics, checkboxes etc. Apr 07 15:12:26 Or do you mean I need to click on empty space between custom views in the row? Apr 07 15:13:55 or do you mean that something else consumes the click? I don't think so, clicking outside of checkbox doesn't work Apr 07 15:15:27 a pastebin or something of your layout xml file would probably be the easiest to look at Apr 07 15:16:07 what are the important concepts of Java programming for Android programming , please help me Apr 07 15:16:22 all of them Apr 07 15:17:03 The most important? BoD Apr 07 15:17:52 the same concepts that are important in any programming lanugage Apr 07 15:17:53 the concept of a class Apr 07 15:20:28 yiati it consists of one listview with match parent - match parent, the item is http://pastebin.com/esaHRfAB Apr 07 15:20:58 all java programming concepts are important on android Apr 07 15:21:16 every single last one Apr 07 15:23:04 creitve: and you want the checkbox to be clickable? Apr 07 15:23:35 Not really, I can manyally check it if the whole item is clicked Apr 07 15:24:04 should I try to remporarily remove the cb to test if it consumes the fire? Apr 07 15:24:32 Update: Using an eventbus (went with otto for now) made the whole event thing easier for now. Will try to grok RxAndroid sometime, but now I am set. Apr 07 15:27:06 https://gist.github.com/pfn/b7ed92efc7b6f0587c81 Apr 07 15:27:08 damnit maven :( Apr 07 15:27:23 and I can't seem to find any option that'll make this work... Apr 07 15:27:26 yiati: it worked! Apr 07 15:27:50 Thanks for the idea, and other people for the help. Apr 07 15:27:54 creitve: (thumbsup) Apr 07 15:30:49 the final solution is android:clickable="false" Apr 07 15:30:50 android:focusable="false" for the checkbox Apr 07 15:52:15 Hi guys! I’m trying to use the doPost to retrieve data from my Google Cloud Datastore. Has anyone tried that before? Apr 07 15:54:06 Hey could someone possibly help me out with an issue I'm having with google's fused location provider? Apr 07 15:55:00 walker_ whats the issue? Apr 07 15:55:58 http://www.apposcopy.com/index.html seems like it could be cool, but search is completely broken Apr 07 15:56:15 the user interaction feature of the entire website Apr 07 15:56:55 the one* Apr 07 15:57:36 Ah never mind JohnR^^, figured it out on my own, thanks though Apr 07 15:58:07 walker_ ok :) Apr 07 15:58:20 The docs make it sound like you only need to call build() when you are connecting to a GoogleApiClient and doesn't say anything about calling connect() :/ Apr 07 15:59:05 yeah, gotta hate that documentation :P Apr 07 15:59:10 mhmmm Apr 07 16:14:32 why would timepicker widget have no numbers in middle? Apr 07 16:16:12 meaning? Apr 07 16:17:12 the center row of each of the numberpickers that make it up is blank Apr 07 16:18:38 here's screenshot from phone (it shows up correctly on emulator) http://pasteboard.co/2oiCg5Or.png Apr 07 16:21:01 maybe a theme issue? Which device? Apr 07 16:22:10 sph-l300. i dont think it's a theme issue. once i touch or rotate the pickers, everything looks right. Apr 07 16:26:07 interesting, maybe try to call .requestFocus() on it Apr 07 16:26:33 will do, thanks Apr 07 16:26:49 anyone know how i can prevent a searchView from collapsing and/or prevent clearing the query text? Apr 07 16:28:35 hello guys. Is it real to open Settings intent with Fonts tab opened? I search in android.provider.settings actions, but can't find Fonts there ( Apr 07 16:29:15 since where is there a fonts tab in settings? Apr 07 16:30:07 Mavrik: Mmm.. in samsung galaxy tab it is separated 'Fonts' tab :( Apr 07 16:30:25 I need the solution only for this tablet Apr 07 16:30:31 (enterprise app) Apr 07 16:30:32 well Apr 07 16:30:38 I guess you have to ask Samsung then Apr 07 16:30:47 Mavrik: okay! thank you Apr 07 16:30:58 since that's certanly not part of stock Android and Samsung settings isn't opensourced :/ Apr 07 16:34:55 why oncreate method in Android-studio is protected but in eclipse it is public ? Apr 07 16:39:12 Iranian_Student: It's not Apr 07 16:39:58 Iranian_Student: http://developer.android.com/reference/android/app/Activity.html#onCreate(android.os.Bundle) Apr 07 16:43:01 Is there a default way to show there is a content to be scrolled to below the screen? Apr 07 16:44:10 Like, a glow or something? Apr 07 16:44:38 anyone has any info if the recent lollipop update on Samsung phones was screwed up and will be fixed? I’m getting dozens of crashes, emails and bad reviews on my game from Samsung phone/tablet users on the past couple weeks Apr 07 16:45:10 rottz, so fix the crash Apr 07 16:52:44 is this the channel for android wear development as well? Apr 07 16:53:23 yep Apr 07 16:53:47 I'm trying to figure out the best way to sync a list view from a phone and watch Apr 07 16:54:04 i've got the data items part wired up Apr 07 16:54:35 but it's more set up to send data only if a single item changes, not keeping track of an entire list Apr 07 16:55:10 there are a bunch of ways i could solve this problem, but was wondering what other people have done Apr 07 16:58:31 oddalot I think I might have been sending JSON, I'll have to check my code when I get home, been awhile since I worked on it Apr 07 16:58:47 oddalot use GSON to turn data into JSON that is sent with the data item api Apr 07 16:59:23 theblang: thanks, the thing is i kind of understand why they do it that way. they don't want you sending superflous data and using up the battery Apr 07 16:59:40 but i have to make sure the lists are synced correctly Apr 07 16:59:46 json seems like a good idea Apr 07 17:00:14 i was thinking of some kind of string data value pair, but since i'm used to json from being a front end web developer by day, i should probably just do that Apr 07 17:09:42 Hi all Apr 07 17:09:52 good evening Apr 07 17:10:01 It's still morning here. Apr 07 17:10:20 GMT+1 here Apr 07 17:10:48 I just started android development today and still have learn tons and tons. However for my app i need some sort of hour/minute spinner (but NOT the TimePicker) more like if it was a countdown Apr 07 17:11:31 like a number picker? Apr 07 17:12:08 oddalot: yeah, that's what i was looking for Apr 07 17:12:10 cheers Apr 07 17:12:50 Hey, what does getViewTypeCount() do in Adapter? Apr 07 17:13:25 returns the number of different types of rows Apr 07 17:13:35 if you dont use it, you may ignore it Apr 07 17:13:47 it is for i.e. odd rows - gray, even rows - white Apr 07 17:16:39 How can i populate the values in the NumberPicker, so that for hours i got 0-10 and minutes 0-59? Apr 07 17:16:54 write a time picker Apr 07 17:17:00 is there some attributes i can assign to achieve this or is this recommended to be done in the corresponding activity? Apr 07 17:17:18 pfn so i guess there are no attributes :/ Apr 07 17:17:20 or use a timepicker Apr 07 17:17:33 no i don't want to use the TimePicker as i said above Apr 07 17:17:45 why would you not want to use a time picker Apr 07 17:18:30 because it's not a time, it's a time duration 5h 43m is not 5:45 pm (i've had this same issue) Apr 07 17:18:35 pfn: I want to be able to configure an ammount of time, not a certain time itself. From how i understand the TimePicker it's only suited for picking a time but not for picking a time span [ / duration] Apr 07 17:18:39 and for a number picker, just set the range you want Apr 07 17:18:42 miketo: yep Apr 07 17:19:03 how is this done in xml? Apr 07 17:19:19 afair not really in xml Apr 07 17:19:26 it's not supported in xml Apr 07 17:19:28 read the docs Apr 07 17:19:34 you can programmatically do setMinValue, setMaxValue Apr 07 17:20:37 via http://developer.android.com/reference/android/widget/NumberPicker.html#setDisplayedValues(java.lang.String[]) i guess? Apr 07 17:20:44 Ashiren: ah okay Apr 07 17:21:36 Ashiren: Oh really? That's it? Apr 07 17:22:09 Because it's causing us some issues with sdk 22 Apr 07 17:22:33 gman23: ? Apr 07 17:22:55 do you override it? Apr 07 17:23:18 using view type count for zebra striping sucks Apr 07 17:23:34 unless you do some seriously complex drawing for zebra striping Apr 07 17:23:37 if yes, you also need to overwrite getItemViewType Apr 07 17:23:54 i know, i just gave simple example Apr 07 17:30:48 Ashiren: What we're doing is trying to put in an empty row in our spinner Apr 07 17:31:03 and for some reason getItemViewType and getViewTypeCount are modified Apr 07 17:31:39 suddenly when we want to target sdk 22 now, we get an error saying that getViewTypeCount must return 1 Apr 07 17:37:56 so if I have a ViewPager with a FragmentPagerAdapter, and my getItem() returns a Fragment.newInstance(), is that fragment cached somewhere? if I call getItem() a second time or from another location, does it give me a new item or a cached one? Apr 07 17:38:30 Just to be sure... The min/max on the NumberPicker is best set in the onCreate callback isn't it? Apr 07 17:39:41 eeyup Apr 07 17:41:00 thanks Apr 07 17:42:38 /bc Apr 07 17:47:50 Hey Apr 07 17:57:48 I found a better one! http://www.gotschemes.com/ Apr 07 17:59:34 Hi ! Can I use URL.openStream() with the ssh:// scheme/proto ? Seems ssh scheme/proto is not available by default (on v4.3). Apr 07 18:00:36 Maybe are they some apps that can provide Android new proto supports ? Apr 07 18:01:44 URL only guarantees support for http, https, ftp, file, and jar Apr 07 18:02:28 zebu1er: https://github.com/square/wire Apr 07 18:04:58 yiati? Apr 07 18:05:14 yiati: too hard for me ! :-( Apr 07 18:05:19 iprime: That's me Apr 07 18:05:30 zebu1er: I'm sorry Apr 07 18:05:31 zebu1er, download and install JuiceSSH and check what components they use Apr 07 18:05:44 iprime: yes I saw ! Apr 07 18:05:48 yiati, he's not asking about proto buffers Apr 07 18:05:56 Ah Apr 07 18:05:59 zebu1er, pretty neat libs, i'm sure it's not too difficult to use them Apr 07 18:06:45 ok the systemic approach is not easy, I have to modify my app ! Apr 07 18:06:58 zebu1er, what's your app about? Apr 07 18:07:27 downloading a file from a computer and using it ! Apr 07 18:07:43 Hello! Apr 07 18:07:54 So having cifs:// or fish:// would be cool ! Apr 07 18:08:29 put it on ftp ;) Apr 07 18:08:29 just make sure you do proper security stuff so websites can't request them :P Apr 07 18:08:34 or http..) Apr 07 18:08:36 Is there a way to use recyclerview with contentprovider and get notification when the provider update its data ? Apr 07 18:09:24 iprime: Yes that's what I'm going to do... Apr 07 18:09:32 No better ! Apr 07 18:10:10 Thanks iprime and iyati and... Apr 07 18:10:24 ektos: write a custom cursor provider that expands RecyclerView.Adapter Apr 07 18:10:31 zebu1er, http://www.jcraft.com/jsch/ Apr 07 18:10:46 make it work with android and publish it for the community ) Apr 07 18:11:59 unless you can (almost) directly use it for android Apr 07 18:12:05 iprime: Goog stuff Apr 07 18:12:18 yeah look great Apr 07 18:12:24 looks Apr 07 18:13:00 icedp: sorry I meant with a a loadermanager Apr 07 18:13:08 But maybe it's faster setting a lightweight ftp or http server.. I'm a gonna eat and think of it ! :-) Apr 07 18:13:37 I have a contentprovider that provides me data, and I'd like to get info when data changed Apr 07 18:13:40 zebu1er, if you don't need security, sure Apr 07 18:14:05 ektos, there's contentObserver Apr 07 18:15:34 iprime: will I keep the recyclerview adapter cause I found anwser on stackoverflow that advise to use a cursorAdapter oO Apr 07 18:16:32 ektos: yep, a LoaderManager is the usual way.. so you create CursorLoader which queries ContentProvider, and onLoaderReset callback you refresh you data Apr 07 18:17:11 ektos: sorry, onLoaderFinished Apr 07 18:17:30 ektos: something like adapter.swapCursor(cursor). and that's all. if you use ListView Apr 07 18:18:03 ektos: however for RecyclerView you need write adapter that extends RecyclerView.Adapter and takes Cursor as a source (it's not hard and there are examples) Apr 07 18:19:50 thanks icedp && iprime Apr 07 18:21:27 "error: illegal character \160" okay so i just retyped the space and it's okay. i dont understand where that special space came from. i didnt paste anything to that line Apr 07 18:21:30 what is permgen space, and why does Android Studio seem to run out of it every 30 minutes or less? Apr 07 18:21:40 Hi, i’m using Android Studio, and have a GameObject (called ‘asteroid’) which is placed in a random x loctation at the top of the screen when the game starts, i want to move the asteroid down in the y direction towards the player who is at the bottom of the screen. How to apply acceleration to game object in Java? Apr 07 18:21:47 permgen is a java gc thing Apr 07 18:21:50 proq: I have been seeing that recently Apr 07 18:21:55 increase the permgen space Apr 07 18:22:28 how do I do that? search for permgen in settings doesn't bring up anything Apr 07 18:22:31 Yeah it seems like one of the last couple releases of AS introduced a memory leak Apr 07 18:23:20 idea.exe.vmoptions or idea64.exe.vmoptions on windows Apr 07 18:23:27 or whatever the equivalent is for AS Apr 07 18:23:29 * pfn doesn't use AS Apr 07 18:23:31 no reason to Apr 07 18:27:10 I fully expect the occasional bug always being on canary Apr 07 18:27:10 ok. looks like it's at /Applications/Android\ Studio.app/Contents/bin/ here Apr 07 18:31:33 Android Wear is there a way to send notifications just to the watch. I see it mentioned everywhere to push to the context stream but not how to Apr 07 18:40:00 hi all ! My app got a picture feeds. I would like, when the app is in background or closed, to make a periodic (every hour for exemple), check to the API to check if there is new pictures, and make a notification if there is Apr 07 18:40:09 (a new picture) Apr 07 18:40:27 what should I check in the doc in order to run this kind of check in background ? Apr 07 18:40:28 I don't get this. I'm getting an error, that there's a missing permission in my manifest, but it's in there: https://gist.github.com/Anticom/7ef82eed6967253d4b05#file-androidmanifest-xml-L12 Apr 07 18:40:51 blusky, asyncadapter Apr 07 18:41:12 or send notifications when there is new data via gcm Apr 07 18:41:20 i don't want to use GCM Apr 07 18:41:41 too many thing to handle server side (what channel the user suscribed...) Apr 07 18:41:42 READ_CALENDAR Apr 07 18:41:59 Anticom: ^* case sensitive? Apr 07 18:42:17 blusky android.permission.READ_CALENDAR != android.permission.read_calendar Apr 07 18:42:31 danijoo_: failed auto completion ? Apr 07 18:42:40 whatitis: ? Apr 07 18:42:54 Anticom, permissions are case sensitive Apr 07 18:42:57 had AS autocomplete with all caps, ANDROID.PERMISSION.XXX Apr 07 18:42:59 is it case sensitive or what's the issue? Apr 07 18:43:02 yes Apr 07 18:43:10 oh Apr 07 18:43:27 So the other permissions are wrong aswell? Apr 07 18:43:36 if they don't match case, yes Apr 07 18:45:24 blusky, https://developer.android.com/training/sync-adapters/index.html Apr 07 18:47:41 anybody do any screen recording on their devices? Got me an app i'm working on geared towards it. https://goo.gl/CwYwTp if bored check it out :) Apr 07 18:48:13 whatitis: I use adb record to record my device -___ Apr 07 18:48:28 danijoo_: thx Apr 07 18:48:44 this accomplishes the same, but on device :) Apr 07 18:48:45 i use genymotions or screenrecord. Apr 07 18:49:25 danijoo_: will a sync adapter work if the app is closed ? Apr 07 18:49:26 Why does the Screen Recorder need location data? Apr 07 18:49:36 blusky, thats its purpose Apr 07 18:49:39 whatitis: try adb shell screenrecord /sdcard/file.mp4 Apr 07 18:49:43 closed, not in background Apr 07 18:49:58 Faylite, maybe the ads on the free version Apr 07 18:49:59 blusky, the answer remains the same. Apr 07 18:50:04 great, thx :) Apr 07 18:50:22 icedp, i know bout that, was promoting doing it on device :) Apr 07 18:50:33 id never download something that only requests location data to better spy on me :p Apr 07 18:50:56 it doesn't only require that haha :) Apr 07 18:51:13 to be honest, not sure why i have that, unless Admob needed it :) Apr 07 18:51:56 whatitis, i can tell you for 100 % that admob does not need it Apr 07 18:52:08 its happy if it has it because of localized ads though Apr 07 18:52:09 Then i shall remove it :) Apr 07 18:52:16 Cause i don't need it Apr 07 18:52:32 app is still a work in progress Apr 07 18:52:43 might give you some extra eCPM but definitly will cost you some stars in the reviews ;) Apr 07 18:53:39 Wait did you give yourself a 5 star review, that's just :| Apr 07 18:54:05 it works for me :) Apr 07 18:54:07 Faylite, I think there arent many apps where the first review isnt from the dev himself :D Apr 07 18:55:43 hey, whats the best way to implement a experience points system using google play games service? Apr 07 18:55:57 i'm at my wits end, no google alanytics stuff is showing up in my console, after 2 days of messing around with it. and i'm not doing anything stupid like setting dryRun=tre Apr 07 18:57:36 are GA updated realtime? I'm OCD with F5'ing developer console, but seems it updates when it wants Apr 07 18:59:01 whatitis hm, well they have realtime reports in GA - but even so, there is a warning in the console that it has received 0 hits. nonthing. nada. over 2 days Apr 07 18:59:15 g00s, I've finally succeeded with the new GA sdk Apr 07 18:59:43 Quacked oh nice, can i ask a few questions ? Apr 07 18:59:47 g00s, are there callbacks if failing to report? Apr 07 18:59:58 or success of report Apr 07 19:00:02 go ahead Apr 07 19:00:18 what you can do to test is setting 1 Apr 07 19:00:36 if you remove upgrades to google play services on your test device, it will show in real realtime in the analytics view Apr 07 19:01:07 otherwise it will wait a minimum of 5 minutes before showing in realtime Apr 07 19:01:25 Quacked ok, thats one of the questions i had. So it seems with Play Services 7 / GAv4 - that it no longer does local dispatching. Apr 07 19:01:27 he's saying 2 days tho Apr 07 19:02:06 Quacked so you had to downgrade because of this right (to see stuff quicker)? https://developers.google.com/analytics/devguides/collection/android/v4/dispatch Apr 07 19:02:20 does formatting data in twrp erase the os or just the data partition? Apr 07 19:02:25 "Note: The local dispatch methods referenced in this document have been marked as deprecated" ... Apr 07 19:02:27 on my test device, yeah Apr 07 19:02:38 ruukasu, formatting data formats /data Apr 07 19:02:47 ok Apr 07 19:02:55 so if I flash and format I can still boot? Apr 07 19:03:08 dunno, #android-root, and be specific Apr 07 19:03:21 Quacked i'm seeing stuff in logs (as verbose) but somehow doesn't make it to GA Apr 07 19:03:27 i dunno Apr 07 19:04:06 eh, I just winged it and it booted :] Apr 07 19:04:28 Quacked one philosophical question : if you were to send events from a service, which are not user generated, how would you handle that without messing up your session stats ? i haven't tried this yet, i'm just sending screens which should work but i'd like to ask Apr 07 19:05:25 For someone with a few years of experience in developing PHP back end system and building API etc. That want to make the first app ever for android, is it a big learning curve? Apr 07 19:05:48 g00s, I think that I concluded that even if you set dispatchperiod to 1 on an updated device, you would see in logs that it "sent 1 hit of 1" or something, but it would take 5 minutes minimum for it to show in GA Apr 07 19:06:03 if I downgraded google play services it would show after just a few seconds Apr 07 19:06:05 I need an app to comunicate with my Rest API, and send some photos and json data to my server thats pretty much it. Maybe read a few barcodes Apr 07 19:06:40 Quacked ok interesting. did you put this in your AndroidManifest : Apr 07 19:06:50 granden, then start with getting a hello world app running, understand lifecycles, and start reading on how to accomplish what you want using android Apr 07 19:08:28 wonder if play services is borked on my device Apr 07 19:08:53 g00s, here yo go:http://pastebin.com/57PSArqX Apr 07 19:09:02 my global_tracker, app_tracker and Analytics.java Apr 07 19:09:24 and yes, I have that in manifest Apr 07 19:09:40 but also Apr 07 19:09:58 oh yeah, i'm not configuring the GA instance from xml Apr 07 19:10:02 you need that though Apr 07 19:10:44 thats pretty much the standard setup you have. mine is pretty similar. i mean, this should not be rocket science Apr 07 19:10:44 I couldnt use auto screen tracking because I use fragments Apr 07 19:11:03 Quacked but you have true Apr 07 19:11:06 so I ended up with tracker.setScreenName in onResume Apr 07 19:11:23 g00s, yeah, but I don't use the start...something Apr 07 19:11:49 its probably useless to have it there, but it didnt cause any problems Apr 07 19:12:39 g00s, the app_tracker is a bit modified to remove global stuff iirc Apr 07 19:12:43 Quacked if i am just using GA at the moment - because from what i understand, prior to 7, it was not part of play services - do I need to check if the version of Play Services on the device is at a certain level ? Apr 07 19:13:12 I think I actually set minsdk to 9 Apr 07 19:13:24 you get a warning in google play if you dont Apr 07 19:13:57 I don't know if it will cause problems on < 9 Apr 07 19:13:59 are there any setting for play services on the device ? Apr 07 19:14:11 what do you mean? Apr 07 19:14:22 i wonder if somehow, i disabled it long ago Apr 07 19:14:29 or even if you can do that Apr 07 19:14:36 dont think you can Apr 07 19:14:45 I found it as a running service and uninstalled upgrades Apr 07 19:15:19 that led to a warning in logs that google play was too old and it would then dispatch when I wanted it to Apr 07 19:15:34 not google play, google play services or whatever its called Apr 07 19:18:13 Quacked probably the only substantial difference i can tell is that i use tracker.setUseSecure(true); Apr 07 19:19:24 Hello, I want to have multiple fragments within an Activity Apr 07 19:19:39 so I want to provide communication between distinct fragments Apr 07 19:19:59 do I need to design a one single interface ? Apr 07 19:20:09 or one for each fragment??? Apr 07 19:20:13 communicate what? Apr 07 19:20:14 g00s, doesnt it do that by default? Apr 07 19:20:25 i didn't take any chances. no idea Apr 07 19:20:35 "Sets whether hits should be sent securely over https. The default value is true." Apr 07 19:20:39 you can add interface callback on each fragment for activity to implement, and pass on Apr 07 19:20:51 Quacked ah, ok Apr 07 19:21:07 anyways, the whole sdk is buggy as hell Apr 07 19:21:21 Quacked which parts ? Apr 07 19:21:22 communicate some states at fragments or some objects, whatitis Apr 07 19:21:42 for instance, that autoActivityTracking supposedly would only work if you had it both in xml AND in java Apr 07 19:22:35 I cant remember all the issues I faced, but at least I got a working setup now Apr 07 19:22:51 perhaps you have to use xml for it to work? Apr 07 19:23:03 i'll try that Apr 07 19:23:29 i went without xml because there was that deadlock bug reading xml :| Apr 07 19:24:11 Quacked https://groups.google.com/forum/#!topicsearchin/android-developers/play$20services/android-developers/peeAoCmqnkE Apr 07 19:28:29 Quacked did you use tag manager at all ? Apr 07 19:28:55 Hey can anyone tell me how do people make those useable modules on GitHub? Apr 07 19:29:01 g00s, never heard of, so no :) Apr 07 19:29:22 those in which you just need to write the gradle dependency and the whole module is imported to your project Apr 07 19:29:32 just wondering Apr 07 19:33:50 does anyone know what causes the timepiker to do this: http://pasteboard.co/2oiCg5Or.png Apr 07 19:34:48 a theme? or style issue? Apr 07 19:35:51 each numberpicker fixes itself if i touch or rotate. i can't image it being a theme thing Apr 07 19:36:23 i'm using holo dark / default syles. i think it might be a glitch (or maybe i'm forgetting to do something?) Apr 07 19:36:36 i'm saying a textColor issue, unless layout issues are keeping out of bounds Apr 07 19:37:21 When I want some code to be executed at certain periods (like a cronjob), how is this done in android? any cues? Apr 07 19:37:29 i'm sorry for being vague: after rotating/touching then moving focus, the numbers are there and easy to see. also sometimes they show up (if returning to activity?) Apr 07 19:37:34 Anticom, alarmmanager Apr 07 19:38:28 miketo, is it a draw issue? as in not being invalidated to update? Apr 07 19:39:11 I have an Expandable List View, and when I expand the group I want the child item to automatically click (to run the onclick code once). Any idea how to do this? Apr 07 19:39:38 whatitis: i don't know, but i suspect something like that. i'm new to android though. Apr 07 19:41:10 I am having a problem with my camera app. the pictures are too tall, and people don’t like sharing to instagram because the square form factor cuts off too much of the pic. To fix this problem, does it make sense to choose a more square aspect ratio from getSupportedPictureSizes? or just to crop the image preview and the captured image (cut off the bottom so they only have a square to deal with anyways Apr 07 19:41:41 crap.. just found out that all my apps gives a "no fill from ad server. failed to load ad: 3" when rotating device to landscape Apr 07 19:41:57 anyone know how to fix? Apr 07 19:42:11 the google test ads show like they should, but real ads fail Apr 07 19:44:07 maybe they just dont have any ads for you right now. Apr 07 19:44:36 whatitis: i dont think it's a textcolor issue for two reasons: i've not changed style/theme, and it displays properly sometimes, even when not focused : http://pasteboard.co/2ow03APQ.png Apr 07 19:44:57 is it possible to configure apk signing with gyp? Apr 07 19:45:19 i don't know how to manually invalidate the text display; even then, should i need to? Apr 07 19:48:09 I'm trying to get the ID of an icon on my actionbar/toolbar so I can compare it. How do I do that? I'm using toolbar.getChildAt(i).getId() == R.drawable.ic_action_notification but it says it can't use == for it Apr 07 19:48:26 err, it says "Expected resource type of id" Apr 07 19:49:46 t0astt sounds like you're comparing an icon id with an action id... Apr 07 19:50:04 hmm, I guess? Apr 07 19:50:22 what exactly are you trying to accomplish? Apr 07 19:50:42 I'm trying to set a showcase view on an icon on my toolbar/actionbar Apr 07 19:50:50 I ran into a similar issue as before, but this time my permissions are right. I want to be able to set an alarm and got in my manifest Apr 07 19:51:12 I got it to find my hamburger icon for the drawer by iterating through the children and then using InstanceOf ImageButton Apr 07 19:51:25 https://gist.github.com/Anticom/66e1ffaef52b5aac9dbd Apr 07 19:51:33 I need to modify it to find the custom toolbar icon now Apr 07 19:51:46 how do you folks like to script the cert signing for a CI build system? Apr 07 19:52:00 Anticom - are you sure the permission is in the right place in your manifest? Apr 07 19:52:18 satt: it's right below the other permissions Apr 07 19:52:29 my best guess would be messed up IDE config Apr 07 19:53:04 just wanted to ask whether there was something obvious i was overlooking Apr 07 19:53:31 But building on API22 and running on API19 shouldn't be an issue, or is it? Apr 07 19:53:43 moreover SET_ALARM is since API 9 iirc Apr 07 19:54:28 my IDE also is not giving me autocomplete for this permission (but it does for the others) Apr 07 19:55:12 t0astt - so you're trying to set up a showcase for a specific button in your action bar. you just need to highlight it? can you reference it another way, than comparing it to a drawable/ Apr 07 19:55:13 ? Apr 07 19:55:32 satt: I'm trying it now by using the id I assigned to it in my menu xml Apr 07 19:55:50 Anticom - that sounds like a syntax error is in the permissions file probably...especially since it won't autocomplete Apr 07 19:56:06 can you pastebin your manifest? Apr 07 19:56:20 t0astt - good luck, that's how i'd go about it probably Apr 07 19:56:31 didn't work satt :( Apr 07 19:56:37 damn Apr 07 19:56:57 https://gist.github.com/Anticom/66e1ffaef52b5aac9dbd Apr 07 19:57:04 @ satt Apr 07 20:00:54 Anticom try using this "com.android.alarm.permission.SET_ALARM" Apr 07 20:01:11 not the 'com' part...seems to be different for some reason Apr 07 20:01:33 Anticom: from here: http://developer.android.com/reference/android/Manifest.permission.html#SET_ALARM Apr 07 20:03:01 itsatrap! Apr 07 20:03:06 cheers satt Apr 07 20:05:13 satt: yeah, nothing is working :'( Apr 07 20:05:17 t0astt: can you pastebin your code? Are you using something like MenuItem item = menu.findItem(R.id.action_id_here); to find your item? where are you setting this up, in your onCreatOptionsMenu? Apr 07 20:05:26 satt: give me a second Apr 07 20:05:35 does anyone know how to effin stop Android studio from emulating ALL effin screens Apr 07 20:05:38 Anticom: hope that works for ya :) Apr 07 20:05:47 oh... AlarmClock.ACTION_SET_ALARM sets an alarm that is fired after the specified ammount of time?! Apr 07 20:05:49 Hey, for some reason android-studio won't compile my app but ./gradlew clean build works fine. I'm getting an error saying that it can't find the progaurd library for some reason even though I'm not using it (Looks like a android tools dep.) http://nnmm.nl/?k2Y Apr 07 20:06:02 i wanted to add an alarm to the regular alarm clock :O Apr 07 20:06:20 shodan`: that library is used no matter what. Your gradle dependencies a at fault Apr 07 20:06:40 hello Apr 07 20:06:43 ashwink005: My dependecies were fine untill I renamed my package Apr 07 20:06:49 do older android versions support .gif drawables? Apr 07 20:06:54 satt: http://pastebin.com/W1rBgAa1 Apr 07 20:07:02 Quacked i tried everything, even recreating new trackers properties. oh well Apr 07 20:07:03 Anticom: use an intent to do that I think Apr 07 20:07:11 like 4.1.1? It only worked when I replaced it with a JPEG Apr 07 20:07:19 shodan`: you didn't update android studio? Apr 07 20:07:31 this happened to me when I updated studio Apr 07 20:07:37 Not recently, All I did was rename my Package like I said :/ Apr 07 20:07:43 satt: that's what i'm doing and as soon as i set the alarm, a Toast appears saying "alarm in xx hrs, yy min" Apr 07 20:07:53 t0astt: where is that little bit of code at the bottom? Apr 07 20:08:09 Anticom - thats what happens when I set an alarm in the native clock app... Apr 07 20:08:13 in a showcase() method that gets called from my onResume() (to make sure all views are loaded) Apr 07 20:08:43 satt: that's what i just realized.... got my first android device just yesterday Apr 07 20:09:02 Anticom - so it works then ! :D Apr 07 20:10:22 it looks like it's grabbing the progaurd jar from the wrong url... It should be "http://search.maven.org/remotecontent?filepath=net/sf/proguard/proguard-gradle/5.1/proguard-gradle-5.1.jar" Apr 07 20:10:31 whoops Apr 07 20:10:39 t0astt: alright fair enough. in your onCreateOptionsMenu you could assign the Menu to a var and access it from the showcase() method, and do that menu.findItem(R.id.action_clear_notifications); Apr 07 20:10:57 satt: that's what I'm trying right now Apr 07 20:11:32 satt: sort of... the hour is correct, but the minute part is always 0. This needs some further investigation. But at least my app doesn't crash anymore :) Apr 07 20:11:35 t0astt: good luck, let me know if it works Apr 07 20:12:20 didn't work. I'm trying findViewById(clear.getItemId()))); Apr 07 20:12:27 nope :( Apr 07 20:12:36 ugh why is this so tedious! Apr 07 20:13:07 Anticom: sounds like you're missing an extra in there somewhere Apr 07 20:13:23 i've got the AlarmClock.EXTRA_MINUTE Apr 07 20:13:30 logging away some stuff now Apr 07 20:13:35 good idea Apr 07 20:14:08 t0astt: hmm, hard to say whats going wrong without seeing all the code and error messages Apr 07 20:14:22 just NPE's satt Apr 07 20:14:34 NumberPicker minutePicker = (NumberPicker) findViewById(R.id.npCallMin); minutePicker.getValue(); retuns 0 Apr 07 20:14:44 What's wrong about that code? Apr 07 20:14:50 oh wait a second Apr 07 20:15:45 no that should work Apr 07 20:16:40 This is how i'm getting the values for hours and minutes: https://gist.github.com/Anticom/0796749cd8007c8736f2 Apr 07 20:16:45 for the hours it works just fine Apr 07 20:17:42 looks ok...whats the onclick attached to, another button to confirm? Apr 07 20:18:38 satt: no the button is just for testing, so that i can trigger setAlarm in my app Apr 07 20:18:50 i've updated the gist to include setAlarm() aswell Apr 07 20:19:05 04-07 22:13:57.591 27909-27909/eu.anticom.HelloApp V/CalendarActivity﹕ Setting alarm to 1, 0 04-07 22:13:57.631 27909-27909/eu.anticom.HelloApp V/CalendarActivity﹕ Set alarm to 1, 0 Apr 07 20:19:08 g00s, weird Apr 07 20:19:09 that's what my log says Apr 07 20:19:29 so the issue has got to be in the onButtonClick method already Apr 07 20:19:39 Anticom: so its' definitely a problem in the onbuttonclick Apr 07 20:19:59 are you sure you're finding the right numberpicker? Apr 07 20:20:29 and the minutepicker has a value selected, not being reset...etc Apr 07 20:21:03 satt: yep Apr 07 20:21:23 satt: could there be a problem with setting min and max values? Apr 07 20:21:29 t0astt: NPEs for the menu item you're looking for? Apr 07 20:21:35 yeppers Apr 07 20:22:19 Anticom: try printing getMinVAlue() and getMaxValue() Apr 07 20:22:43 but I don't think that's why really Apr 07 20:23:40 Anticom: maybe try setValue() to some int Apr 07 20:25:29 satt: lol setValue() fixed it... bug?! Apr 07 20:25:58 setValue() changes the max and min...so maybe there was a problem in there after all? @Anticom Apr 07 20:27:32 Ok, so I'm trying to change an icon FROM a GcmIntentService that is SET by my MainActivity. I get an error "Only the original thread that created a view hierarchy can touch its views". How can I set this? Apr 07 20:27:53 t0astt: seen this? http://stackoverflow.com/questions/28224301/targeting-action-bar-menu-items-with-showcaseview Apr 07 20:28:27 d'oh, I think that might be it Apr 07 20:28:31 I'll give it a try in a sec satt Apr 07 20:30:09 satt: no it didn't fix.. i've set minute to 15 and entered 15 in the app.... now the value stays at what i'm setting it to regardless of what i'm entering Apr 07 20:30:12 Ergh, ok new problem. HOw can I get a context from a static method? Apr 07 20:31:33 Anticom: that is so weird. it's not listening for a value change somehow... Apr 07 20:31:59 t0astt: inject it maybe? Apr 07 20:32:03 Anticom: try to clearFocus Apr 07 20:32:21 of the minute picker Apr 07 20:32:22 but the hour NumberPicker is Apr 07 20:32:22 t0astt: define context in your activity and set it up in onCreate...or inject it Apr 07 20:32:47 whats the best way to connect an android app to a database on a remote server? Apr 07 20:32:56 satt: I tried that but it still gives me an error Apr 07 20:33:20 supay: REST (= Apr 07 20:33:31 Anticom: cool! will take a look Apr 07 20:33:39 t0astt: make it static Apr 07 20:33:40 and RELAX Apr 07 20:35:19 http://i.imgur.com/H8zQFHN.png Apr 07 20:35:19 alright, that worked ( i was setting it incorrectly) Apr 07 20:35:21 trying it now Apr 07 20:35:24 why even ask this Apr 07 20:35:55 shodan`: Legal requirement. Can't show them in Germany. Apr 07 20:36:11 well because app can contain nazi symbols and references? Apr 07 20:36:14 like history app Apr 07 20:36:21 As long as minute is less than 11 it reads the value correctly. anything at 11 or above returns 0 Apr 07 20:36:22 users *could* add nazi symbols into the app but it's not there by default Apr 07 20:36:25 silly law imho Apr 07 20:36:34 0-10 are my caps for the hours Apr 07 20:36:44 satt: Hmm, still the same error. I even called a static method in my MainActivity (that created the icon) and I still get the "Only the original thread that created a view hierarchy can touch its views" error Apr 07 20:36:50 I kind of agree. I'm sure you've seen pics of how Wolfenstein/CoD/whatever would just blank out the nazi signs, so you'd have these red reich flags with white circles in the middle Apr 07 20:37:41 updated my gist yet again https://gist.github.com/Anticom/0796749cd8007c8736f2 Apr 07 20:37:41 t0astt: are you trying to modify views from a non-UI thread somehow? Apr 07 20:37:45 also map of Buddhist temples =) Apr 07 20:38:11 shodan`, i love the build up. Asks if you moderate comments, then just drops the nazi propaganda bomb. Apr 07 20:38:23 Yup Apr 07 20:38:32 satt: I have a static method in my MainActivity that changes a menuitem icon. In my GcmIntentService, whenever a gcm notification I want to update that icon. I am trying to do this by calling that static method from GcmIntentService Apr 07 20:38:50 Anticom: shouldn't the hours be set to 12? Apr 07 20:38:52 t0astt: thats background thread Apr 07 20:38:56 "Do you track users? Do you moderate comments? Can people buy stuff? Are you a Nazi?" Apr 07 20:39:05 satt: it's a duration not a time Apr 07 20:39:08 it escalates rather quickly Apr 07 20:39:10 Ashiren: which one is on the background thread? Apr 07 20:39:10 t0astt: try handler or runOnUiThread() Apr 07 20:39:12 t0astt: yup, Ashiren is right, can't do that Apr 07 20:39:32 if you want to update UI things from nonUI thread Apr 07 20:39:38 Ok Apr 07 20:39:39 i want to set an alarm according to the first event of a specific calendar [minus] the time it takes to get there. that's what the NumberPickers are for Apr 07 20:39:49 calendar event* Apr 07 20:39:51 so what would be most efficient? Apr 07 20:40:25 most natural way IMO is using handler Apr 07 20:40:38 handler.post(runnable to update ui) Apr 07 20:40:51 ok Apr 07 20:40:54 Anticom: fair enough. Apr 07 20:41:12 Ashiren: and that fix the "android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views." error? Apr 07 20:41:27 it should Apr 07 20:41:27 Anticom: is there a reason you're finding the numberpickers twice? Apr 07 20:41:32 the handler works on UI thread Apr 07 20:41:43 ALright, I'll give it a try Apr 07 20:42:09 t0astt: that should fix it, it's not the most clear error text but usually means that only the UI thread can deal with UI stuff Apr 07 20:42:18 satt: alrighty Apr 07 20:43:44 satt: no... can this cause an issue? Apr 07 20:43:53 satt: it's just some quick and dirty code Apr 07 20:44:53 Anticom: I wouldn't think so...but maybe. something weird is happening. Try just doing it once Apr 07 20:45:07 With buttons on pre-lollipop the compat library applies some shadows and stuff. But I have several buttons in a column and for some reason the last one has no shadows. Anyone encountered this? Apr 07 20:45:45 Ashiren, satt: still getting that error :P here's the code I used http://pastebin.com/zscQbEXQ Apr 07 20:48:05 satt: the issue remains Apr 07 20:48:17 t0astt: can you move handler to class variable instead of making new one each time Apr 07 20:48:25 i think i've had enough for today. Thank's so much for the help Apr 07 20:48:28 Ashiren Yes Apr 07 20:48:53 t0astt: maybe try something like this... runOnUiThread(new Runnable() { @Override public void run() {...} ? Apr 07 20:49:37 t0astt MainActivity.this Apr 07 20:49:44 wait nvm Apr 07 20:49:49 I thought it was the same class Apr 07 20:50:25 satt: it's not resolving the runOnUiThread method Apr 07 20:50:37 because its static Apr 07 20:50:55 Anticom: damn, still busted. alright, hit us up when you want to take another shot at it Apr 07 20:51:20 t0astt: omg static context? that looks strange... Apr 07 20:51:26 t0astt: what a trying to do?! Apr 07 20:51:40 t0astt: why not eventbus? Apr 07 20:51:50 icedp: I'm trying to change an icon from a GcmIntentService Apr 07 20:51:57 oh Apr 07 20:52:04 icedp that still wont work in his case unless MainActivity is actually subscribed to the bus Apr 07 20:52:44 t0astt this ---> http://stackoverflow.com/questions/23831214/notificationmanager-get-notification-by-id Apr 07 20:53:27 Afzal: but why static method? Apr 07 20:53:46 t0astt: YourActivityName.runOnUiThread(... ?? Apr 07 20:54:08 icedp he's trying to do something that's not possible. He wants to update the notification object he created in MainActivity from GCM service Apr 07 20:54:21 huh Apr 07 20:54:22 I mean it's possible but not a very good idea Apr 07 20:54:29 then he should make the same notification Apr 07 20:54:32 with the same id Apr 07 20:54:34 yeah exactly Apr 07 20:55:24 (it's possible with an event bus but it's not useful because it won't work if MainActivity gets destroyed) Apr 07 20:55:55 Hm ok I'm lost now :P Apr 07 20:56:30 im having an issue with the session thats being manages. there are now two cookies being set for every user session. users who already had the app install try to acess the site using only the old cookie where they should be using the new cookie. clearing the app data fixes the issue but im trying to find a solution on how i can fix this without them having to clear the app data Apr 07 20:56:43 Afzal Ashiren t0astt - I think he's trying to update an icon in the action bar, not a notification icon (the button icon in the action bar is to refresh notifications...?) Apr 07 20:56:50 satt: correct Apr 07 20:56:58 ahh Apr 07 20:57:46 satt: the icon is to show that the user has unread notifications, basically Apr 07 20:58:15 t0astt maybe modify a sharedpreference and implement a SharedPreferenceListener in MainActivity Apr 07 20:58:36 t0astt: but but but... you need to get MainActivity instance Apr 07 20:58:38 Afzal... holy crap. I didn't even know that was a thing Apr 07 20:58:42 right cool. should be doable I think, I'm not sure whats going wrong. Did you try YourActivityName.runOnUiThread(... t0ast ? Apr 07 20:58:43 t0astt: class doesn't have your icon! Apr 07 20:58:52 Afzal: That's what I need Apr 07 20:58:57 :) Apr 07 20:59:08 satt: yes I tried that Apr 07 20:59:13 Afzal: do you have any good examples? Apr 07 20:59:19 oo thats a good idea Apr 07 21:03:01 Has anyone seen this little IAB lib? https://github.com/anjlab/android-inapp-billing-v3 Apr 07 21:03:03 hi Apr 07 21:03:15 i am converting old code to new code and want to know if chaning android.widget.TextView and mTextView to android.webkit.WebView and mWebView be wirth the time to change Apr 07 21:04:10 joe11iu: needs context, what do you mean old cold to new code, and why would you change a textview to a webview? Apr 07 21:04:17 that does not make sense joe11iu. Those two are totally different Apr 07 21:04:34 whats the difference between them Apr 07 21:04:41 the purpose Apr 07 21:04:41 once is a webview, one is a textview Apr 07 21:04:49 i know that Apr 07 21:05:00 one is for displaying text, one is for displaying web pages, html, etc Apr 07 21:05:14 but the code that says textview has the code public abstract class WebViewPreview Apr 07 21:05:29 what code are you referring to. Apr 07 21:05:58 i can send it to you Apr 07 21:06:03 no Apr 07 21:06:16 ok Apr 07 21:06:46 t0astt http://pastebin.com/N7JbESkD something like this Apr 07 21:09:20 no i believe it is like more than 45 files Apr 07 21:09:22 Afzal: I have two SharedPreferences, one for notifications and one for actual app settings. Can I tell the onSharedPreferenceChangeListener to only look at one of them? Apr 07 21:09:54 t0astt, you can check what perference got changed with an ifclause Apr 07 21:10:00 and do nothing it its not the one you want Apr 07 21:10:41 yup, that happens in the getSharedPreferences call, the first argument is the name of the SharedPreferences. Apr 07 21:10:54 ah ok. this is how I declare it spNotifications = this.getSharedPreferences(Constants.NOTIFICATIONS, Context.MODE_PRIVATE); Apr 07 21:11:25 did you look at the pastebin I linked? http://pastebin.com/N7JbESkD Apr 07 21:13:47 Afzal yes Apr 07 21:14:00 I might not be udnerstanding correctly though Apr 07 21:14:03 My apologies Apr 07 21:15:14 so no helpo Apr 07 21:15:36 the SharedPreference that registered the OnSharedPreferenceChangeListener is the one that will call onSharedPreferenceChanged. Then you can see which preference was changed by comparing the key in there Apr 07 21:16:11 ahhhh ok Apr 07 21:17:50 joe11iu I think you are misunderstood. TextView doesn't not has WebViewPreview in its code Apr 07 21:18:08 have* Apr 07 21:18:25 look at this Apr 07 21:18:46 trouble writing output: Too many method references: 65567; max is 65536. Apr 07 21:18:47 shit, whoops Apr 07 21:19:00 pfn, close ;) Apr 07 21:19:13 hah welcome to the club :P Apr 07 21:19:23 joe11iu ?? Apr 07 21:19:26 heh, i hope i never see that Apr 07 21:19:38 so whats the equivilent to TextView[] mTextView Apr 07 21:19:42 pfn, just enable the dex thingy Apr 07 21:19:44 and that's it Apr 07 21:19:45 is it WebView mWebView Apr 07 21:19:49 Afzal: IT WORKED!!!! Many thanks :D Apr 07 21:19:56 Nice! You're welcome Apr 07 21:20:11 multidex** Apr 07 21:20:47 joe11iu what do you mean? They're completely different things. It's like saying what's equivalent to boolean[] test, is it String mTest? :/ Apr 07 21:21:08 idk Apr 07 21:21:15 do you even java? :o Apr 07 21:21:17 Afzal: i'm quite sure he is a novice programmer that does not grasp the concepts Apr 07 21:21:24 nothing wrong with that but he needs to learn more Apr 07 21:21:27 Afzal, yeah, no, not what I need Apr 07 21:21:43 then proguard is your only hope :P Apr 07 21:22:36 I never said I have a problem Apr 07 21:22:36 i will just leave them alomne then Apr 07 21:22:38 I just said whoops Apr 07 21:22:43 I'm off by 31 Apr 07 21:22:51 desmin88 yeah, but it's okay. My Android journey started with me trying to write a sort-of userscript for a webview :P Apr 07 21:23:00 decided to just write a native app instead Apr 07 21:23:35 actually no wait, that was my second project :/ Apr 07 21:24:44 pfn ah, how did you fix it then? Apr 07 21:24:58 I never said I don't proguard Apr 07 21:25:17 No I mean, how did you get around the dex limit in the first place? Apr 07 21:25:49 remove 31 methods Apr 07 21:25:56 lol Apr 07 21:26:18 :D Apr 07 21:27:47 how? lots of libraries, play-services, guava, lots of analytics, etc. etc. Apr 07 21:27:58 nvm Apr 07 21:28:10 I've been over the limit for a long while now, my incremental builds only just now broke Apr 07 21:28:23 which I've fixed by being more aggressive on the proguard rules Apr 07 21:29:51 I see Apr 07 21:34:09 I want to try Crashalytics (never did) so go there, "we are now Fabric" okayish! "Demand is high at the moment. You’re on the list, Apr 07 21:34:12 and we’ll reach out shortly — stay tuned! Apr 07 21:34:32 lol wut, fabric has a waitlist now? Apr 07 21:34:34 that's nuts Apr 07 21:34:51 fabric is pretty neat Apr 07 21:35:02 yup, I don't trust Answers though Apr 07 21:35:03 mopub + crashlytics + analytics AIO, i quite like it Apr 07 21:35:25 is there anyway to email ro get incontact with the people from asus for the asus browser help and fixes Apr 07 21:35:54 where is it All in One? Apr 07 21:36:34 all in one as in fabric has it all Apr 07 21:37:19 anyone awake Apr 07 21:37:26 i have emailed them a few times and have not got a resonse back Apr 07 21:37:27 you can pick and choose what you want but its all in one place on fabtics site Apr 07 21:37:28 that knows a fair amount about cryptography? Apr 07 21:37:34 joe11iu: wrong place to be asking Apr 07 21:39:22 were should i be asking then Apr 07 21:40:30 Anyone else have a problem where GCM notifications occasionally take awhile to get sent? Apr 07 21:40:33 Or is it just my server? Apr 07 21:45:04 t0astt: of course, messengers implement its own service because partly because of this and use gcm as fallback Apr 07 21:45:10 ahhh Apr 07 21:45:12 interesting Apr 07 21:46:23 actually, I mean delivery time... but you asked sent time from server? Apr 07 21:46:25 t0astt: Apr 07 21:46:45 i'm assuming delivery time to the server? Apr 07 21:46:47 i'm not sure Apr 07 21:46:55 sometimes I'll expect a notification and I don't get one Apr 07 21:47:00 and then a few mins later I get it Apr 07 21:47:07 normally my server pushes them instantly Apr 07 21:47:13 I was referring to delay between Google server and device Apr 07 21:47:18 it's a very reliable server too, Digital Ocean Apr 07 21:47:25 oh, yeah Apr 07 21:50:51 heh, got invite in Fabric. I guess demand is not as high now as it was 10 minutes ago :) Apr 07 21:53:02 Could anyone tell me why my shape is white in API 22 but red in API 21 (It's suppose to be red) Apr 07 21:54:20 are you using tools:targetApi in your styles.xml? Apr 07 21:54:38 theGraeme i think i know why i'm not seeing any GA stuff. In my admin console, there was a warning notification "Property has received no hits". When i dismissed it, it says Apr 07 21:54:48 Pending verification - Notification archived while verifying. Most checks verified within 24 hours. Tagging verification can take much longer. Apr 07 21:55:05 i'm not sure what this verification thing in though Apr 07 21:55:37 searching on the internet, there is only one hit :( Apr 07 21:55:45 liuwenhao: I am not Apr 07 21:59:11 So main point of Crashalytics is that you will receive virtually all crashes, not only the ones user send to google play? Apr 07 22:00:39 question: if I add an object, n, to an arrayList and then I do n.setName("Joe") will that n that was added to the arrayList take on the new Name property as well? Apr 07 22:03:15 t0astt: if n still points to the object that was added Apr 07 22:03:57 Hmm alright. That would explain my problem. What if I did something like newPerson = n, then add newPerson instead? Apr 07 22:07:45 I would expect both newPerson and n point to the same object. Apr 07 22:08:27 t0astt: http://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value Apr 07 22:08:55 you can duplicate object by calling .clone()... but.... what's you problem in the first plaec? Apr 07 22:09:24 icedp don't you have to implement the cloneable interface for that? Apr 07 22:10:26 Afzal: well yeah, but many classes do Apr 07 22:10:34 oh okay Apr 07 22:20:30 can I use Crashalytics to catch all unforeseen crashes in Activity/Service/App? Or only in try/catch block? Apr 07 22:23:56 icedp, it caches all uncaught exceptions by default Apr 07 22:25:07 oh I see cool Apr 07 22:25:24 maybe google should use crashyltics too Apr 07 22:25:30 i keep seeing these exceptions: Activity com.google.android.gm.ui.MailActivityGmail has leaked IntentReceiver Apr 07 22:25:45 I might have seen a crashlytics request from google calendar but I can't be sure Apr 07 22:26:23 nope, it's from sunrise calendar Apr 07 22:26:40 Afzal: a request? so they'ren't sent automatically? Apr 07 22:27:10 they are Apr 07 22:27:37 Err.. I see them in the logs when crashlytics fails Apr 07 22:27:47 (connection refused) Apr 07 22:27:54 aaah Apr 07 22:50:39 If a RecyclerView.ViewHolder has a reference to the root view which it was created with, does that create a reference cycle? Apr 07 22:55:26 RecyclerView is SO much better than ListView/ExpandedListView holy crap; Apr 07 22:55:37 I should NOT have been so reluctant to change Apr 07 22:56:27 hmn, damn! I need a container with auto_fit columns like GridView and column_span like GridLayout. neither of them has both things. what should I do? Apr 07 22:56:36 is there any other way to have both features? Apr 07 22:57:30 Matip: how many items do you have? Apr 07 22:57:49 it depends, but not more than 20 Apr 07 22:58:11 the problem is that when I have an odd number of items, I want the first one to span 2 columns Apr 07 22:58:26 but I don't know the number of columns in advance, it depends on screen size Apr 07 22:59:13 icedp, what would you do? Apr 07 23:00:39 Matip: first though is to use ListView which items are horizontal linearlayout Apr 07 23:01:18 icedp, ? Apr 07 23:01:39 how will a ListView create 2 columns if the screen allows it? Apr 07 23:03:22 Matip: it won't but your adapter can decide how many view to display in one list item based on listview width Apr 07 23:04:04 I don't even need a ListView for that, I wanted the view to calculate the number of columns Apr 07 23:04:12 I'll try with this https://github.com/felipecsl/AsymmetricGridView Apr 07 23:07:06 Matip: guess what: public class AsymmetricGridView extends ListView { Apr 07 23:07:57 yeah, but I don't have to code it myself :P Apr 07 23:10:12 but in your case it's rather easy. just get parent.getWidth() when creating view and decide on how many views (colums) view your listview view contain Apr 07 23:29:07 Why doesn't this onNewIntent on line 53 detect the intent? https://github.com/LoreReut/Noob-s-first-app/blob/master/app/src/main/java/com/lorenzmacht/mobhp/Main.java The intent is called from line 47 over here https://github.com/LoreReut/Noob-s-first-app/blob/master/app/src/main/java/com/lorenzmacht/mobhp/NewMob.java Apr 07 23:32:12 Lorenz9: It looks like you want startActivityForResult and onActivityResult. Apr 07 23:32:20 http://developer.android.com/training/basics/intents/result.html Apr 07 23:33:03 perfect thanks, I'll be RTFM then Apr 07 23:34:28 Also setResult(int, Intent). Apr 07 23:34:30 Okay but it sends it as another intent, how will I be able to detect that one? Apr 07 23:34:36 Okay Apr 07 23:34:43 That seems to answer my question Apr 07 23:36:39 The TL;DR (because the documentation isn't simple enough here) is this: call startActivityForResult in MainActivity, call setResult(int, Intent) and then finish() in SecondaryActivity, and handle this result in MainActivity.onActivityResult. Apr 07 23:42:01 So I tested Fabric.. works great. Can I just add `Fabric.with(this, new Crashlytics());' in onCreate() of my Application class and push to production? =) No caveats? Apr 07 23:48:19 hey so I'm using this library https://github.com/makovkastar/FloatingActionButton and I'm trying to align the button to the bottom|right as it says in the readme but it's being placed in the top left...here's my layout: http://pastie.org/10079306 Apr 07 23:48:29 anyone have an idea as to why this might be? Apr 07 23:51:01 ydniw: read on RelativeLayout.LayoutParams Apr 07 23:51:39 icedp: could you elaborate? Apr 07 23:51:47 ydniw: there is no layout_gravity in them Apr 07 23:52:19 ydniw: but there alignParentRight and ..Bottom Apr 07 23:54:08 huh, would you look at that, thanks icedp! Apr 07 23:54:57 np Apr 07 23:55:11 hi Apr 07 23:55:20 hi Apr 07 23:55:26 damn its late :D Apr 07 23:55:29 2 am Apr 07 23:55:35 7:55 pm here Apr 07 23:55:43 where are you? Apr 07 23:56:07 damn i have to get up at 7 and go on reviewing some android project Apr 07 23:56:41 im tired Apr 07 23:57:11 Thanks Tactical,this looks so much more solid now, can't wait to try it out tomorrow Apr 07 23:57:54 snowkrash: you must be from Eastern Europe and love Neal Stephenson books =) Apr 07 23:58:22 icedp: exactly :D but im not from eastern europe Apr 07 23:58:30 im in the middle Apr 07 23:58:45 beside germany Apr 07 23:58:56 why eastern? Apr 07 23:59:09 one hour less my time Apr 07 23:59:19 where are you from Apr 08 00:00:20 snowkrash: let's not flame this channel ) Apr 08 00:00:35 i dont know what you mean but sure :D Apr 08 00:01:42 snowkrash: I meant flood ) Apr 08 00:01:50 ah ok Apr 08 00:11:00 oh hey g00s. Weird error you're seeing! Apr 08 00:15:46 Like you say, only one other person reporting in on the web... Question's just a month old, and bizarrely, the guy says it used to work fine. Apr 08 00:20:41 g00s: searching by just "Pending Verification" pulls up some hits that might be relevant. This person had a key mismatch: https://productforums.google.com/forum/#!topic/analytics/XBilpxQ7hO4 Apr 08 00:45:10 yay, fixed my boogs Apr 08 00:45:16 I wish I could fix my other boogs Apr 08 00:45:22 * pfn headscratches some more Apr 08 01:07:10 why does the android developer guide say navigation drawers should not overlap the toolbar, yet the material design spec has it hiding the toolbar :( Apr 08 01:07:32 because material design is newer and supercedes old guides Apr 08 01:07:51 sounds good Apr 08 01:19:28 what do you guys use for monetization? Apr 08 01:24:29 anyone ever see this from GA admin console: Pending verification : Notification archived while verifying. Most checks verified within 24 hours. Tagging verification can take much longer. Apr 08 01:44:35 marek_: ads Apr 08 01:45:18 Can anyone recommend a good guide to making games for those who already can make apps? Apr 08 01:45:27 <_genuser_> is any of you still waiting to do their taxes? Apr 08 01:47:00 Hello. I have a bug on 320×480 screens, but if I make a values-320×480 directory with dimens.xml, the contents apply to the 480×800 testing device as well, which was fine before Apr 08 01:47:02 _genuser_ yup Apr 08 01:47:07 can anyone create an useful stuff ? Apr 08 01:47:10 any way to make distinction? Apr 08 01:47:12 gotta make an appointment Apr 08 01:49:42 can anyone make another bill gate? Apr 08 01:53:50 f*** Apr 08 01:54:16 stupid Apr 08 01:54:26 all of you Apr 08 01:56:39 wow, a point winner for sure Apr 08 01:56:53 Hi all, quick question. How difficult is it to switch activities to fragments? I've never really messed with fragments before but thinking about switching all of my activities over Apr 08 01:57:07 depends what you're doing Apr 08 01:58:17 SQLite database Listview/ExpandableListView in the activities now, and navigation drawer in main activity. The only reason I want to switch is to make a better tablet UI Apr 08 01:58:27 liuwenhao: "I've never really messed with fragments before but thinking about switching all of my activities over" == "Hold my beer". Apr 08 01:59:05 I mean, I have worked with fragments a little bit. But I have never made a fragment only app Apr 08 02:02:21 Gotta love android. The smaller the devices get and the simpler the interactions and design is, ie watches now, the more code it takes. Apr 08 02:37:56 duncannz: which company you going with? debating between SDK or API Apr 08 02:43:44 marek_: SDK and API? Apr 08 02:43:59 I use AdSense. I've never heard of an ad company called SDK or API... Apr 08 02:45:38 To give you an idea of the earnings, I earned an average of NZ$1.30 (US$0.98) per day over the last 30 days and I have 1877 current installs out of 4806 downloads. Apr 08 02:47:30 as in I am not sure if I integrate with an ad serving company via an SDK or if i use multiple ad serving companies via API integrations Apr 08 02:47:43 ah I see haha Apr 08 02:48:21 personally I just use Google AdMob and I get what I see as good earnings for my install base Apr 08 02:48:35 speaking to one at the moment over skype brb Apr 08 02:49:21 ugly Apr 08 02:50:05 ? Apr 08 02:50:11 ? Apr 08 02:50:17 bad Apr 08 02:50:32 do you use complete sentences? Apr 08 02:50:39 <_genuser_> duncannz: would it be too personal to ask for number of users in userbase and range of dollars for profit? Apr 08 02:50:58 <_genuser_> I suspect he hates admob UI. Apr 08 02:51:16 me Apr 08 02:51:43 no he joined after that discussion Apr 08 02:51:52 _genuser_: I don't mind sharing stats at all, but I don't understand what you're asking Apr 08 02:52:17 <_genuser_> duncannz: oh my qusetion was how many users do you have and how much does it make via admob. Apr 08 02:52:41 I earned an average of NZ$1.30 (US$0.98) per day over the last 30 days and I have 1877 current installs out of 4806 downloads right now Apr 08 02:52:44 <_genuser_> duncannz: I considered putting admob on an app if I ever have a big enough userbase. what I mean by big enough is: 5,000 users+ Apr 08 02:52:58 anyone have a clue about the source code for Dollars recognition app? Apr 08 02:52:58 well I have only 2k users and earn a fair bit, certainly adds up Apr 08 02:53:19 I mean it's not a source of income or anything but considered you can just leave it alone and keep earning it's not bad Apr 08 02:53:29 <_genuser_> duncannz: so 30 dollars per month at current rate. not bad at all. Apr 08 02:53:51 <_genuser_> do users have to click on ads, or do you get money for them simply viewing the ad? Apr 08 02:54:11 both Apr 08 02:54:18 but much more if they click Apr 08 02:55:21 30$ a month is not enough for 1 shot Apr 08 02:55:25 I don't think I get money from people just viewing ads with admob Apr 08 02:55:51 surf2b1: it's a very small amount, but I have noticed at the start of the day when I have 1k impressions and 0 clicks that a few cents have come through Apr 08 02:55:55 there's no way of actually tracking it though Apr 08 02:57:07 duncannz: may I ask how many impressions you get a day? Apr 08 02:57:08 <_genuser_> duncannz: very nice. I guess I'll look into it. Apr 08 02:57:14 <_genuser_> duncannz: it admob owned by goog now? Apr 08 02:57:46 _genuser_: yeah see here https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start Apr 08 02:57:55 how to implement admob Apr 08 02:58:20 surf2b1: over the last 30 days, 2078 impressions per day Apr 08 02:58:21 <_genuser_> lol, I can see you thinking I better show him the docs or he'll start asking me how to implement it. Apr 08 02:58:50 haha I was actually just proving that it's google Apr 08 02:58:54 but that's true Apr 08 02:59:04 <_genuser_> I'm just kidding. it just looked funny Apr 08 02:59:20 duncannz: over 200k so far today for me. But I really don't think I get any money for an impression **** ENDING LOGGING AT Wed Apr 08 02:59:59 2015