**** BEGIN LOGGING AT Sun Dec 29 02:59:58 2013 Dec 29 03:04:29 hehe, funny from #freenode " I'm like 90% sure my robot Phong had his nickname registered for a long time" Dec 29 03:05:20 so maybe phong is a robot :D Dec 29 03:05:29 where is he, not here heh Dec 29 03:06:15 Tune in now for another episode of pointless information with g00s Dec 29 03:06:51 Does anyone know how to get an image form a url to show up in a widget? This is what I am attempting at the moment http://pastebin.com/1Jk6zKPr Dec 29 03:11:35 searayman56: I just skimmed your code but that's the right idea--kick off a background thread (AsyncTask, IntentService, whatever) which does the loading and updates the widget once it's loaded Dec 29 03:12:18 evanc, if I take out the image part all my text sets and updates nicely in the widget. But with the image part nothing gets set, its like it gets stuck. Dec 29 03:12:51 evanc, this has literally been stumping me all day. I have tried like 4 different ways to do this, Dec 29 03:15:47 let me look at your code again Dec 29 03:16:01 evanc, no worries, let me know if you need to see anything else Dec 29 03:16:53 searayman56: oh, you're running getImageBitmap in onPostExecute (which runs on the UI thread) Dec 29 03:17:04 you need to do that in doInBackground and pass it from there to onPostExecute Dec 29 03:17:32 also, press ctrl+shift+f (if you're using eclipse) :P Dec 29 03:18:03 evanc, using android studio Dec 29 03:18:51 ah, well use whatever the keyboard shortcut is to format your code, haha Dec 29 03:18:51 evanc, ok that makes sense to me a little bit. I will play around with some of the code. Can I just drop all that code into do in background? Dec 29 03:19:18 searayman56: yeah, it's safe to run AppWidgetManager#updateAppWidget from the background thread Dec 29 03:19:32 so really you don't need onPostExecute, probably Dec 29 03:20:59 hi all Dec 29 03:21:23 evanc, actually looks like I can't drop all that code in there. I am getting a string of json from the url I send with when I execute this async task and I can't seem to get that in the background thread Dec 29 03:21:57 hmmm I am a little confused on how to organize this all now Dec 29 03:25:21 searayman56: again, quick skim here, but why won't something like this work? public class FooTask { protected Void doInBackground(...) { String jsonCrap = readJSONFeed(..); /* build the widget */ mgr.updateAppWWidget(ids, views); } } Dec 29 03:25:44 I cut out a lot of code, but I'm hoping you see what I'm talking about Dec 29 03:26:16 lol looking at it now. I am a pretty new programmer so sometimes things just don't pop out Dec 29 03:26:29 no worries, you seem to be making good progress Dec 29 03:26:59 if you can't figure it out, let me know and I'll make it a better example, haha (I won't spoon-feed you and hand you a solution, though :P) Dec 29 03:27:53 evanc, no worries, I appreciate the help. I think the whole image thing having to be in the background thread will help a lot. I just have to figure out how to split up my code Dec 29 03:29:40 like I said, I don't think it needs to be split up :) Dec 29 03:29:47 evanc, just to clarify to make sure I am tracking, is the string that is returned from the background thread what is passed to the OnPostExecute? if I so i think i know how to make this happen Dec 29 03:30:06 try assigning readJSONFeed(..) to a variable in doInBackground and see if that helps you understand Dec 29 03:30:12 searayman56: yes, it is Dec 29 03:30:31 whatever is returned from doInBackground gets passed in to onPostExecute Dec 29 03:30:40 evanc, awesome I now think I agree with you that it does not need to be split up. I will give it a go and let you know how I end up lol Dec 29 03:30:45 great! Dec 29 03:34:20 evanc, :-) got it! Thanks for the tips in guiding me. I just had to move this String result = readJSONFeed(arg0[0]); from the return statement and put it in front of all the code I moved up!!! Dec 29 03:34:29 searayman56: yep! Dec 29 03:34:34 glad to hear that you got it worked out Dec 29 03:35:12 evanc, I can now say I have successfully coded my first android widget! Thanks again for the help, got a lot more widgets in mind now. Dec 29 03:35:25 wooo, glad to hear it! Dec 29 03:35:36 anyone used a datepicker in android studio? Dec 29 03:36:06 the preview thing just gives me a nullpointerexception Dec 29 03:37:03 I also just get java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.CalendarView$WeekView Dec 29 03:37:16 when I run it.. I'm don't even have anything code related yet Dec 29 03:37:24 all I've done is place the datepicker in the layout Dec 29 03:37:59 AS runs any faster than eclipse? Dec 29 03:38:08 java IDEs make java straight PAINFUL.... Dec 29 03:38:39 Does a notification system poll constantly, or is there a way to push-to-phone? Dec 29 03:38:56 s3b`: google for GCM Dec 29 03:39:07 lookup google cloud messaging Dec 29 03:39:08 gcm maintains a connection Dec 29 03:39:23 AS runs any faster than eclipse? Dec 29 03:39:33 no not really Dec 29 03:39:38 damn... Dec 29 03:39:39 you also have to delete R.java still Dec 29 03:39:41 worst thing ever Dec 29 03:40:01 o_o Dec 29 03:40:32 and you can't add a datepicker Dec 29 03:41:13 anyone use something better than androidscreencast? Dec 29 03:41:22 why is it always the stupid things that take so long Dec 29 03:41:34 write a contentprovider? no problem Dec 29 03:41:43 add a datepicker to a layout? 2 days thanks Dec 29 03:43:19 Hey guys. I don't think I saw an answer. Hope you don't mind me asking again... Dec 29 03:43:32 trying to intercept http://mysite.com links to launch my app Dec 29 03:43:50 I put the changes in the AndroidManifest.xml to have each activity handle a different link Dec 29 03:44:09 but it isn't working...Android isn't prompting me to use my app to open the link. Just other apps that also handle that link Dec 29 03:44:25 Any ideas why that might be? I have the BROWSABLE category Dec 29 03:44:26 prgmmax: pastebin your manifest Dec 29 03:44:33 k, one sec Dec 29 03:45:34 and are broken in this version of the rendering library. Try updating your SDK in the SDK Manager when issue 59732 is fixed. Dec 29 03:45:37 lol. Dec 29 03:46:29 haha wabz Dec 29 03:46:32 hope you don't mind, I gotta edit it up a bit to rename things Dec 29 03:46:39 keeping the same content, just trying to hide names Dec 29 03:46:51 i just had eclipse bork my app cos it didn;t update R.java Dec 29 03:47:00 kept saying cannot cast LinearLayout to a Switch Dec 29 03:47:21 prgmmax: btw, if you watch logcat when clicking a link, it'll spit out what the intent looks like. it's pretty useful to see what's wrong with your filter Dec 29 03:47:22 and now finally i'm back to the exact same codes + layouts as before and it obviously works fine Dec 29 03:49:08 I'm keeping thinks as accurate as possible. For example, mysite.com/foo and mysite.com/foo/bar the links were indeed like that...the /bar one was a subdir of the other Dec 29 03:52:38 http://pastebin.com/JcSLD6KM Dec 29 04:00:29 when i run in an emulator, i get an error (could not access the Package Manager. Is the system running?) Dec 29 04:00:44 evanc hrmm k, I'll check. Thanks Dec 29 04:30:28 Is there any way to actually "push" messages to devices from my own server? I do not want to poll the server, but need a "real push"! :) Dec 29 04:30:45 I came across this : http://mqtt.org/ Dec 29 04:30:54 With GCM Dec 29 04:30:55 but I'm not sure how efficient it is Dec 29 04:31:45 so far I know phones cannot be connected to Dec 29 04:31:46 from internet side that is Dec 29 04:31:46 phone have to connect and set connections to server Dec 29 04:33:32 SimonVT: I came across GCM and C2DM Dec 29 04:33:39 but I need this to be on my own server Dec 29 04:33:51 XXCoder: That was a good pointer Dec 29 04:34:06 but I'm curios about how mqtt works Dec 29 04:34:13 I would love to know if there was a way for phones to find and connect to each other without server in middlke Dec 29 04:34:29 There are thirdparty solutions like Parse Push or Airpush Dec 29 04:34:46 You need your own server to use gcm, the messages just go through google Dec 29 04:34:47 but I'm more curious about their architecture. Dec 29 04:35:03 Airpush seems to be polling their server though. Dec 29 04:35:11 SimonVT: I see Dec 29 04:35:18 let me read more about it Dec 29 04:35:30 yeah just read about it Dec 29 04:35:31 probably not for android Dec 29 04:35:31 but then dunno Dec 29 04:36:22 alright Dec 29 04:37:06 isn't GCM just a long keep alive connection? Dec 29 04:38:30 dodobrain: ok, if that is the case, it might not be a power efficient solution, right? Dec 29 04:38:38 hrmmm I looked at the logcat and didn't see anything Dec 29 04:38:38 oh well Dec 29 04:38:38 I gotta go Dec 29 04:38:38 catch ya later, everyone Dec 29 04:39:26 GCM is the most power efficient solution, since it uses a connection that is already there on all android devices Dec 29 04:39:51 But yeah, I believe it's basically just a long lived connection Dec 29 04:40:00 SimonVT: And I hope it is not tied to the Play service Dec 29 04:40:26 It's tied to having google apps, so kinda? Dec 29 04:40:41 alright Dec 29 04:41:07 I don't know if it's part of play services Dec 29 04:41:46 If yes, that could limit the availability on the out-of-google-ecosystem devices, I suppose Dec 29 04:42:21 It would be non-existant Dec 29 04:42:35 SimonVT, not necessarily the most power efficient solution.. Dec 29 04:42:55 SimonVT: Kindle fire could be an example Dec 29 04:43:06 that connection to goog prolly has other payloads too Dec 29 04:43:27 I'm referring mainly to this question : http://stackoverflow.com/questions/10449930/send-push-notifications-on-android-without-using-c2dm Dec 29 04:43:37 so if you don;t maintain a persistent connection to goog (for google play, etc.) then having your own long lived connections would be more power efficient Dec 29 04:44:15 as of version N, apparently it works without an active Google account Dec 29 04:44:16 SimonVT, yes it is.. in the newer sdk you cannot use push messaging without utilising goog play services Dec 29 04:44:44 where N is some value less than the current version number Dec 29 04:45:03 check your sdk manager, GCM for android library is deprecated Dec 29 04:45:47 anyway, if you desperately want *all* android devices to support your push messaging (as long as they can run your android app) regardless of whether they have a goog account on the phone/tablet or whether they are signed in, etc. , then your own server with long lived connections is definitely the way to go Dec 29 04:46:50 i don't even know why goog bothered with gcm Dec 29 04:47:06 they would have made a far more kickass product if they wrote a standalone server for such and released it as oss Dec 29 04:47:06 and ofcourse used the very same thing for gcm Dec 29 04:47:23 would have allowed app makers to control all data to/from the device with regards to their own app Dec 29 04:47:44 dodobrain: alright Dec 29 05:01:16 Unlike your app, the gcm connection won't be killed Dec 29 05:01:37 sure, but unlike your own server, goog gets to see your messages :) Dec 29 05:02:51 Which would just be "call me maybe" Dec 29 05:03:03 the vast majority of messages aren't important enough for that to matter Dec 29 05:03:08 sure in most cases Dec 29 05:03:23 if they're that important... run your own server, take the hit Dec 29 05:03:45 exactly.. Dec 29 05:12:28 i've got a timepickerdialog that i use to grab an hour and minute. Is there a quick way to check how many hours/minutes away this time is relative to the current time? Dec 29 05:34:02 my app calls invalidate() on a custom ViewGroup several times... for some reason, the first time it's called causes the app to stop processing anything for maybe a half second... after that, it runs smooth... why would this be? Dec 29 05:37:43 setting a TextView text color is included in the problem... makes the app hiccup only the first time Dec 29 05:53:51 I have added a comment to this, can someone try to answer it for me please Dec 29 05:53:53 http://stackoverflow.com/questions/15350998/determine-addaction-click-for-android-notifications Dec 29 05:54:26 question is: where and how do you set YES_ACTION, NO_ACTION... etc... And what will the manifist file look like – Dec 29 06:48:51 good day Dec 29 06:50:58 its night here but good all the same :-) Dec 29 07:06:22 Should I be registering enums under res/values even if they're for internal non-activity use? Dec 29 07:29:54 Just to put it on your radar. : http://stackoverflow.com/questions/20822974/setting-up-broadcastreceiver-using-android-notifications Dec 29 08:00:39 ahoy hoy! Anyone here a tasker user? Dec 29 08:05:09 anyone? Dec 29 08:05:45 * capella is so bored he's watching Freaks of Nature on the Weather Channel Dec 29 08:07:07 hey all ..nice to b here Dec 29 08:07:11 \m/ Dec 29 08:09:02 can checkboxes inside Alert Dialog added using dialog.setMultiChoice be styled without layout.xml ? Dec 29 08:15:10 capella moz has some great pages on ssl / pki Dec 29 08:15:56 Ah :) You focus on the security related issues? Dec 29 08:17:20 capella need to make sure my app is secure ;) Dec 29 08:17:22 moz has a lot of great resources .. and the online docs are really improving Dec 29 08:18:26 this page was good https://developer.mozilla.org/en-US/docs/Introduction_to_Public-Key_Cryptography Dec 29 08:18:38 I like to turn security over to other people :D Dec 29 08:18:49 i'm paranoid so its a good fit ;) Dec 29 08:18:51 You know, "smarter ones" Dec 29 08:18:56 except that Dec 29 08:19:15 hey, even paranoids have enemies :) Dec 29 08:19:26 only the paranoid survive :) Dec 29 08:20:29 hehe - not paranoid, but I do respect that we all have something to conceal Dec 29 08:22:21 so g00s: suggest any open source java projects ? It's either that or I have to port a moz app to Metro Dec 29 08:22:27 capella last week i was reading a few research papers about how many apps have broken ssl implementations (both ios and android). its surprisingly tricky to get this all right. and even though 4.1 has TLS 1.1 and 1.2 its not enabled by default, so if you just getDefault("TLS") you'll get the 1.0 engine Dec 29 08:22:59 i'm using spongy castle atm Dec 29 08:23:13 hmm, open source java projects ... Dec 29 08:23:20 Get out! Any good? Dec 29 08:23:56 spongy castle is bouncy castle with a renamed provider SC vs BC Dec 29 08:24:02 so its works on all androids Dec 29 08:24:21 without conflicts, without cares about what openssl version is there, etc, or legacy bouncy castle Dec 29 08:24:56 * capella reads the wiki Dec 29 08:26:16 capella also, some dubious changes were made to the default cipher list that requires some care on your part to correct. if you don't take care of it, it defaults to something easily crackable Dec 29 08:27:06 by default, the client 's preferences are chosen for the cipher so … if you say you want some crappy RC4 you'll get it .. Dec 29 08:27:19 unless the server was specifically configured to prefer /its/ list Dec 29 08:28:03 so yeah, seeing all this, hard to trust any software unless its been seriously vetted for Dec 29 08:28:12 oh. nothing like it includes the NSA developed recently cracked AES thing? Dec 29 08:30:32 one sec Dec 29 08:30:37 me too Dec 29 08:32:07 they are using RC4 and MD5 as their first defaults Dec 29 08:35:33 capella luckily FF doesn't use the default cipher list :) Dec 29 08:35:40 or chome Dec 29 08:36:41 I think I'd heard that in ARS before, but I'd be dumbfounded if that wasn't the case :) Dec 29 08:39:04 capella trying to think of a cool java open source thing you could do Dec 29 08:39:27 if you like M2M, and i think internet of things is taking off, you could join the eclipse paho group Dec 29 08:39:37 meh - bugs are bugs ... show me the list Dec 29 08:40:17 capella what list ? Dec 29 08:40:31 * g00s doesn't understand Dec 29 08:40:46 vernacular :) Dec 29 08:41:51 means like: "Ready for something new" Dec 29 08:42:41 * capella will look at eclipse paho group inna bit Dec 29 09:08:46 capella whats going on with thunderbird? still alive or what ? Dec 29 09:09:10 v.24.2.0, released: December 10, 2013 --- looks alive Dec 29 09:09:53 mmm ... not sure what the official term is but it's no longer supported by moz directly ... there's like a support group though Dec 29 09:10:07 O.o Dec 29 09:10:26 I don't want to say EOL Dec 29 09:11:06 Updates still occur and I love the thing :D Dec 29 09:21:57 How should I change fragment when a click is performed on an UI element? Dec 29 09:34:11 Hi, can I somehow do this in java/android? http://underscorejs.org/#throttle Dec 29 09:36:27 Hmm, maybe it's not what I want... I want to cache the method's return value for limited amount of time. Dec 29 09:37:21 sure, I can write it myself, but I thought there might be some generic solution for this. Dec 29 09:43:29 Pitel well, you probably won't want to drag in rxjava just for this, but Observable..interval() or .generate() may be something of interest Dec 29 09:44:42 hm, maybe this isn't the same thing Dec 29 09:47:04 Pitel it would be pretty easy to do , i think , with a handler Dec 29 09:47:11 well, I want to use it with SOAP client. It tends to run lot of same SOAP request in a short amount of time (like, cheching for some status from different threads) and I want to cache the response for like 3 seconds to save bandwidth and CPU. So maybe I can do that on HTTP "layer". Dec 29 09:48:19 ok. maybe you will find RxJava useful in general then Dec 29 09:48:38 great for that kind of thing Dec 29 09:58:14 huh, there was a gradle plugin release dec 26 Dec 29 10:15:51 hello does anyone know a reliable way not to crash the device openning up a specific sms thread on api < 14 ? Dec 29 10:19:36 lasserix: blow up your laptop Dec 29 10:20:08 it'll do that itself in time, starting to sound like a semi truck ;p Dec 29 10:40:37 How should I change fragment when a click is performed on an UI element? Dec 29 11:18:44 hi all Dec 29 11:19:37 someone could suggest me a book to learn android development ? I come from c++ and I know java. I'm interested in something that will expose the framework from the design point of view. Dec 29 11:24:07 best learning tool is to attach the android source to your IDE. step through what it does when committing fragments, etc. pro android 4 is also a good book. Dec 29 11:43:34 Hey guys is there a way I can display some Emelent in my UI XML Files only if some value is gien? Dec 29 11:43:36 *given Dec 29 11:59:17 Is there such a thing as parent fragments? Like parent activities, in that when you press the back button you are taken back to it Dec 29 12:04:59 https://gist.github.com/Yatekii/09ec16980731ee51c09a can I manipulate a ListItems View based on some Values I pass? :S Dec 29 12:06:22 Yatekii, extend BaseAdapter Dec 29 12:13:04 autrilla: so I create my own adapter class? ty Dec 29 12:13:12 Yes Dec 29 12:18:21 kk Dec 29 12:38:39 autrilla: https://gist.github.com/Yatekii/bed48809875b627aa28b where does that mShow come from? because it was in the tut I found but it is not recogized by my ide Dec 29 12:40:38 that getView() method is just one in a larger class, the mShow, mContext names suggest a class scope Dec 29 12:41:04 capella: I do not understand :S Dec 29 12:41:43 well maybe the example I have is faulty but I do not think so, so why does it not recognize my mShow? :S Dec 29 12:45:00 mFoo is a common way of denoting class members available to class methods Dec 29 12:45:02 http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/tests/UITest.java?mark=46-50#33 Dec 29 12:51:46 capella: but it seems it is not available :) Dec 29 13:27:25 My app creates events using CalendarContract. Later on I need to find the events my app has created. Is there a field that I can use? API v16 does not have the UID field. Dec 29 13:34:35 how do I get a loaderManager from an AppWidgetProvider? Dec 29 13:36:36 I don't think I can :( Dec 29 13:36:52 appwidgetprovider is so povo Dec 29 14:05:14 how do i check what's causing interface delays in my app? Dec 29 14:09:32 Hi, I have a AutoCompleteTextView and in my XML file I've tried to define the nextFocusForward/up/down/left/right fields, but when I edit the field and hit the "next" button, nothing happens. It works ok with other EditText. why? Dec 29 14:11:37 nevermind! apparently android:imeOptions="actionNext" fixed that. Dec 29 14:54:27 hi all Dec 29 14:54:35 i would like to ask about one thing Dec 29 14:55:57 if i have message from dalvikvm which says Could not find method android.graphics.Bitmap.getByteCount referenced from method com.image.cache.util.ImageCache.getBitmapSize Dec 29 14:56:04 does it mean that i added Dec 29 14:56:25 google-play-services_lib in wrong way or what am i doing wrong? Dec 29 14:56:32 i am trying to compile this Dec 29 14:56:54 http://codecanyon.net/item/apartment-real-estate-android-full-app-source-code/5010512 Dec 29 14:56:59 i am complete noob Dec 29 14:57:23 it was running one time now i am getting some errors in logcat Dec 29 14:57:28 and on the phone that i am trying to run it on i get Dec 29 14:58:44 The Application (process com.uidesigns.main) has stopped unexpectedly. Please try again. Dec 29 15:11:32 hey guys Dec 29 15:11:42 I'm trying to use holo-color with abs Dec 29 15:11:52 but I'm running into issues here Dec 29 15:12:04 hi brickhead Dec 29 15:12:18 looks like everybody is sleeping Dec 29 15:12:19 hey twiceaday Dec 29 15:12:26 nobody reacts to my lame questions :) Dec 29 15:12:30 I'm using this link as reference http://www.androiduipatterns.com/2012/09/creating-custom-android-styles-easy-way.html Dec 29 15:13:25 twiceaday, run lint Dec 29 15:13:42 you're most likely using a api on an unsupported plateform Dec 29 15:14:18 brickhead: Elaborate on the issues you're facing or better yet, stop using ABS and go for minSdk=15 Dec 29 15:14:50 kakazza, I still have customers on 2.3 Dec 29 15:15:00 so stuck with min-sdk 8 Dec 29 15:15:11 That's sdk 10. Dec 29 15:15:12 interesting looking at it Dec 29 15:15:13 How many? Dec 29 15:15:16 thank you for help Dec 29 15:15:52 You could make use of the multiple APK feature from the Play Store, leave 2.3 customers on the current version and provide updates for ≥15. Dec 29 15:16:18 ah, the device hell in android. Dec 29 15:16:39 Which problems are you facing, anyway? (I'm just mentioning minSdk=15 because it's times like this where your time could be better spend making your app better using newer APIs instead of backporting styles). Dec 29 15:19:16 kakazza, so I'm trying to use holo-color and abs style generator to generate similar themes for my app Dec 29 15:19:16 how this works is I point my app theme to one theme and inherit it from the other one Dec 29 15:19:16 as per this link http://www.androiduipatterns.com/2012/09/creating-custom-android-styles-easy-way.html Dec 29 15:19:21 so when abs theme extends the holo-color theme Dec 29 15:19:28 search view breaks Dec 29 15:20:27 And you read through http://actionbarsherlock.com/theming.html? Dec 29 15:20:51 now i am finding out Dec 29 15:21:08 that what i have wrong possibly is that i am trying to run sdk 4.4 on the mobile phone Dec 29 15:21:26 htc desire that is extremelly old and not updated Dec 29 15:21:29 brickhead: When generating the theme, did you pick "Style compatibility: Sherlock"? Dec 29 15:21:40 i have also asus transformer Dec 29 15:21:53 which should be more recent but eclipse doesnt seem to recognize it Dec 29 15:21:55 twiceaday: That doesn't make sense. What you might be trying to do is using newer APIs on older platforms. Dec 29 15:22:10 Is that what you mean? Dec 29 15:22:59 where is something like target Dec 29 15:23:13 like where i say that i want to do this for this system and above Dec 29 15:23:36 because imho this is my problem i am telling in source and to eclipse i want to run it from this android and above Dec 29 15:23:44 and actually device is even lower version IMHO Dec 29 15:24:34 Lint usually tells you when you're trying to use APIs that aren't available in your minSdkVersion. Dec 29 15:25:44 The AndroidManifest.xml tells your app minSdkVersion and targetSdkVersion. This does not have anything to do with the build target version. You can still compile apps with minSdkVersion=15 with the API 19 build target. Dec 29 15:25:57 nice Dec 29 15:26:00 thank you Dec 29 15:26:04 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Dec 29 15:26:08 oldie but goodie Dec 29 15:26:08 i have to go away for 120 minutes Dec 29 15:26:17 then i am back i will take a look at that link also Dec 29 15:28:56 what's the most efficient way to simply draw a rectangle and text to a View? use a TextView and a ShapeDrawable? use Paint? Dec 29 15:29:10 i'm gonna have a lot of these so memory/cpu is important Dec 29 15:30:30 kakazza, I think I did but i might be mistaken Dec 29 15:45:41 I'm having a moment where I have no fucking idea what is wrong with my code Dec 29 15:46:07 It should parse a long into a date like it does in one activity but it doesn't do it in another. Wut? Dec 29 15:57:51 Fire up your debugger. Dec 29 16:03:08 The thing is that I have so many debug lines written for it, that the debug is 5,000+ lines hahahaha Dec 29 16:03:18 I'm probably overlooking something Dec 29 16:07:36 Hi all, I need help in a grid view: I want to show custom selector for the items of the gridview for the checked/selected and pressed state. Dec 29 16:08:19 The grid view has a CAB so I want to basically show the user which items are selected (checked) at the time Dec 29 16:08:39 Is there such a thing as parent fragments? Like parent activities, in that when you press the back button you are taken back to it Dec 29 16:10:57 please anyone? I googled for it but couldn't find any working solution Dec 29 16:11:12 autrilla: Fragments have a backstack. Dec 29 16:11:39 https://developer.android.com/reference/android/app/FragmentTransaction.html#addToBackStack(java.lang.String) Dec 29 16:11:42 kakazza, maybe using FragmentTransaction#replace isn't the best bet Dec 29 16:11:45 Oh, it is? Dec 29 16:12:06 Sure. ft.addToBackStack(null); Dec 29 16:12:44 https://developer.android.com/guide/components/fragments.html#Transactions Dec 29 16:12:45 I strill have to work on the design for my second screen... Dec 29 16:12:47 Hum Dec 29 16:12:49 The code snipped there uses it. Dec 29 16:13:01 Both .replace() and .addToBackStack() Dec 29 16:13:30 kakazza, thanks!" Dec 29 16:13:35 Anything I can help you with? Dec 29 16:14:45 Me? I'm good. I just hang out here :) Dec 29 16:14:58 Any help for my issue? Dec 29 16:15:45 is there any selector guide or tutorial? Dec 29 16:18:03 The_Jag, a drawable? Dec 29 16:18:10 For the GridView selector? Dec 29 16:18:23 yes Dec 29 16:18:26 a list of it Dec 29 16:18:31 You can use GridView#setSelector Dec 29 16:19:20 what I want to achieve is that when an item is selected (checked?) in CAB, then it would change his background to the corresponding drawable Dec 29 16:19:44 but using android:state_checked does nothing Dec 29 16:19:54 neither using state_selected Dec 29 16:20:35 Have you tried programmatically? Dec 29 16:21:03 http://developer.android.com/reference/android/widget/AdapterView.OnItemSelectedListener.html Dec 29 16:21:09 maybe? Dec 29 16:21:29 The root view has to be checkable for it to do anything Dec 29 16:21:45 the root view is a gridview Dec 29 16:21:51 Of the item Dec 29 16:22:09 the linear_layout? Dec 29 16:22:16 oh ok Dec 29 16:22:29 unless it's checkable, the linearlayout will never have state_checked Dec 29 16:22:39 (it isn't checkable) Dec 29 16:22:41 I can try setting it like that Dec 29 16:23:19 let me try Dec 29 16:24:01 can I make it checkable by xml? Dec 29 16:24:50 uhm seems not Dec 29 16:24:51 No, you have to make a subclass that implements the Checkable interface Dec 29 16:24:55 I need to write a file, and I used Environment.getExternalStorageDirectory() to get a valid path, then wrote a file there... apparently the path was /storage/emulated/0, can I access this file via the USB cable? I can't see it in the filesystem, what is that path? Dec 29 16:24:57 Idk, but most probable is no Dec 29 16:25:01 And properly sets the checked state Dec 29 16:25:08 You can probably google an implementation Dec 29 16:25:12 ok Dec 29 16:25:31 SimonVT: So many people ask that, but I've never found a proper link for them in the Android Training docs. Dec 29 16:25:54 Maybe there's an SDK Sample for it. Dec 29 16:26:55 Seems a bit overcomplicated to just implement this betaviour Dec 29 16:27:20 Bu probably I missed something in the pipeline Dec 29 16:28:16 Yeah, there's the shakespeare sample in apidemos that basically does this Dec 29 16:29:18 Maybe I should write a sample Dec 29 16:29:53 does anybody knows there the default sms/mms app saves it messages on the filesystem? Dec 29 16:30:21 Isn't there a way to just get rid of that linear layout? Dec 29 16:30:27 for the item xml Dec 29 16:31:26 SimonVT: Please do, then I can finally give people a proper link. Time to re-vive your blog ;) Dec 29 16:32:24 That's the hardest part, actually writing the post :p Dec 29 16:32:34 Another thing Dec 29 16:32:45 I have read about listSelector too... Dec 29 16:33:15 should I use that, or just set the background of my item to the custom selector? Dec 29 16:33:33 reading the doc suggests using the listSelector in the gridview Dec 29 16:37:01 using this, makes the linear layout using the checked state??? android:background="?android:attr/activatedBackgroundIndicator" Dec 29 16:37:12 even more puzzled Dec 29 16:41:37 Environment.getExternalStorageDirectory() seems to give me a path in which I can't write ... well... where should I write a file? Dec 29 16:42:13 "i can't write" as in "thatpath.canWrite() is false" Dec 29 16:43:00 simoneb_: read https://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Dec 29 16:43:22 It's different from Environment.getExternalStorageDirectory() and it's important that you know the difference. Dec 29 16:43:52 thanks, reading that Dec 29 16:49:38 uhm, still failing. getExternalFilesDir seems to return "/", and my write fails (i'm using filewriter/bufferedwriter instead of fileoutputstream as in the example, not sure if this makes a difference) Dec 29 16:50:52 seems to return? Dec 29 16:51:01 and it makes no difference Dec 29 16:52:19 if I print file.getAbsolutePath() it is something like "/myfilename.txt" Dec 29 16:52:39 initialized that as new File(this.getExternalFilesDir(null), "myfilenamehere"); Dec 29 16:58:16 (total noob question) maybe should i ask for the permission to write files before actually writing? Dec 29 16:59:46 ... yet the manual explicitly says "Starting in KITKAT, no permissions are required to read or write to the returned path; it's always accessible to the calling app." so i guess the answer is no Dec 29 17:00:21 simoneb_: I guess it wasnt always so Dec 29 17:00:44 well i'm using 4.3 so it shouldn't apply Dec 29 17:00:55 what about your program api level Dec 29 17:01:08 er...... that should be around 18 or 19 Dec 29 17:01:22 so that is your minium? Dec 29 17:01:29 no my minimum is like 8 Dec 29 17:01:40 is this the culprit? Dec 29 17:01:49 if ti dont work try set 18 or so as minium, see what happens Dec 29 17:01:54 not sure actually lol Dec 29 17:02:28 ...lol, whatever, lets try Dec 29 17:02:30 kitkat is 19 Dec 29 17:02:50 yeah its not like its hard work to change then change back Dec 29 17:02:58 still the same behaviour with android:minSdkVersion="18" Dec 29 17:03:28 so i should obtain the permission to write beforehand? Dec 29 17:03:37 in eclipse you also need to set api level in project settings Dec 29 17:03:45 targetSdk needs to be 19 for no permission to be required on api 19 Dec 29 17:03:46 try 19 since simoneb_ said 19 is kitkat Dec 29 17:05:00 uhm, looks like my device is not compatible with api 19 Dec 29 17:05:34 ah kitkat is 4.4 after all Dec 29 17:05:48 that makes sense, my device has 4.3 Dec 29 17:06:10 oookk so... that should be a permission problem i guess Dec 29 17:06:19 guess so Dec 29 17:06:30 its bit early to make app kit only anyway Dec 29 17:09:15 yea, that made it! yet... it's a loooong path, and I still can't find it via the usb cable :O Dec 29 17:09:37 lol ok Dec 29 17:09:48 like /storage/emulated/0/Android/data/com.mypackagehere/files/myfilefinallyisherebuticantfindit Dec 29 17:10:10 hm wonder where "/storage" is Dec 29 17:11:17 i think that using the usb cable i can only see /storage/sdcard0 and /storage/extSdCard Dec 29 17:11:57 heh ok Dec 29 17:12:10 I guess your device has no real sdcard slot Dec 29 17:13:54 yes, it has, I also have an additional sd Dec 29 17:14:11 (bought that to use it as an mp3 player actually) Dec 29 17:14:49 ahh ok Dec 29 17:16:33 Is there anything on d.android about filtering? Dec 29 17:16:39 ListView filters etc Dec 29 17:19:16 Can someone tell me where I can find the errors/warnings tab in android studio, where theres a list of syntax errors etc.? I cant seem to find it o0 Dec 29 17:20:22 Compile and it gives you a list Dec 29 17:20:35 It also tells you syntax errors as you type Dec 29 17:21:36 yes, like it underlines it red. But is there no list as to what is underlined? I often see a filename being underlined red in the list on the left and then have too scroll through it and look for where it is. Dec 29 17:22:21 Look at the right of the editor, there's colors Dec 29 17:22:24 A red color means an error Dec 29 17:22:24 yeah Dec 29 17:22:35 red, yellow, light yellow Dec 29 17:22:43 spots by scrollbar on right Dec 29 17:22:54 in least it does in eclipse Dec 29 17:23:02 in eclipse there is a tab named "Problems" which has a list of compile errors and warnings Dec 29 17:23:10 alt-shift-q should open it Dec 29 17:23:21 thats exactly what i am looking for in android studio Dec 29 17:23:24 or window -> show view -> problems Dec 29 17:23:33 not sure if eclipse == android studio Dec 29 17:23:48 there is messages (alt+0) but it says 0 errors 0 warning even though I have some Dec 29 17:23:53 No, there's no problems tab Dec 29 17:24:09 Fix errors as you type, or build and get a list Dec 29 17:24:29 http://cl.ly/image/2b0R2443010z Dec 29 17:25:12 yes, that seems like it can replace it, just need to get used to it Dec 29 17:25:13 thanks Dec 29 17:25:14 :) Dec 29 17:28:32 .... it seems like apps can't write to the sdcard while it is mounted via usb. is this correct? Dec 29 17:29:06 yes Dec 29 17:29:09 When I do something on a Filter, I should keep a copy of the original ArrayList I'm getting all the data from? Dec 29 17:29:14 should I keep* Dec 29 17:29:20 yes Dec 29 17:29:37 Something like a mOriginalList and then only modify my mList? Dec 29 17:29:38 I'm ok with that, the thing that hurts a little is that they silently fail when trying to write to the sd :/ Dec 29 17:30:12 http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Dec 29 17:30:23 There are ways to check if it's writable Dec 29 17:31:47 thanks! Dec 29 17:31:56 (now i'm wondering why it doesn't just fail, though...) Dec 29 17:32:16 maybe it stores my files somewhere until the external storage is available again? Dec 29 17:34:22 nope Dec 29 17:35:31 How can I have a search bar on the ActionBar in a Fragment? Dec 29 17:43:54 um, sure? Dec 29 17:48:58 just add a search item to your menu Dec 29 17:58:44 is there any reason to avoid binding/unbinding to a local service a lot? part of my app is an activity with three fragments loaded in succession and it's easier for me programatically to just have like an AbstractServiceFragment that binds and unbinds in oncreateview/ondestroyview each time. Any reason to not do that..? Dec 29 18:13:52 hidgw, I'm trying to compile an app, but my terminal keeps giving me errors about not having aapt, though I'm building in the directory where aapt is located Dec 29 18:13:57 any help ? Dec 29 18:14:07 line is: java.io.IOException: Cannot run program "aapt": error=2, No such file or directory Dec 29 18:14:47 my path also includes the directory and I run "aapt" fine Dec 29 18:15:18 pfn, a search item? Dec 29 18:15:54 Narwhaal, OS? Dec 29 18:16:16 autrilla, Ubuntu 13.04 64bit Dec 29 18:16:41 it is compile on Debian 7 though Dec 29 18:17:57 Did you run apt-get install ia32-libs? Dec 29 18:19:14 yes Dec 29 18:19:30 as I said "aapt" works fine normally Dec 29 18:23:32 storkme, works fine, but personally, if it's in the local process, I would bypass the binder Dec 29 18:23:57 oh? Dec 29 18:24:37 just access the service as a singleton Dec 29 18:26:26 now you're talking my language Dec 29 18:26:33 but isn't that Bad Practice (TM) Dec 29 18:29:09 hello does anyone know a column that always changes in the calender events provider when an event is updated? Dec 29 18:30:16 storkme, no, it isn't, only if you ever plan on moving the service into a remote process, is it a bad practice Dec 29 18:30:41 storkme, the main thing to keep in mind is that you have to make sure to keep the lifecycle tightly controlled Dec 29 18:30:46 that's about the only "bad practice" aspect of it Dec 29 18:32:24 when you say 'keep the lifecycle tightly controlled' what do you mean? I plan on using Otto for message passing, so I'll have components register and unregister. And I'll just give it a reference to the application context (for SharedPrefs, nothing else). Dec 29 18:32:35 and I'll feed it and take care of it and take it for walks and pet it ... Dec 29 18:38:53 guess this means I can start using dagger and write a ServiceProvider interface then inject some standard implementation of it from my module... Dec 29 18:40:40 How can I have a search bar on the ActionBar in a Fragment? Dec 29 18:50:55 Does anyone know if there is a version number, date_changed or some such field for calender content provider tables? Dec 29 18:52:30 All diff I see is a sync data row, but am not sure this is garunteed as such Dec 29 18:52:30 autrilla: why don't you just have it open a small input dialog where you can write a search string. or maybe put a edittext in the action bar, try to have a look here (first thing i found with google) http://stackoverflow.com/questions/11638226/how-i-can-add-edit-text-field-and-button-in-actionbar Dec 29 19:08:34 Hi guys - Im trying to use a service, but im my constructor the line "mVariable = new Variable()" has mVariable as null and as such is throwing a null pointer - mVariable is declared outside of the constructor as "private Variable mVariable;" Dec 29 19:08:37 Why is mVariable null? Dec 29 19:14:04 Anthaas: is the correct constructor being called? Dec 29 19:14:21 For the service? Dec 29 19:14:29 If so, yes. Dec 29 19:15:19 http://pastie.org/8585767 this is a helper class I wrote that I find myself using a lot when performing asynchronous tasks with Otto. Dec 29 19:15:30 If for the variable, its mVariable = new ArrayList(); Dec 29 19:19:49 simoneb_, because that is on the Activity, not on the Fragmen Dec 29 19:52:30 Anyone know if sync adapter data 5 column of calendar provider is _always_ data date last modified column? Dec 29 20:39:52 is there any reasonable way Dec 29 20:39:57 how to get info out of logcat Dec 29 20:40:21 i have really small screen and copy pasting doesnt seem to work Dec 29 20:40:22 :) Dec 29 20:40:38 er Dec 29 20:40:46 there's like tens of ways to get logcat Dec 29 20:40:54 where can't you get "info out" from? Dec 29 20:41:04 eclipse iface Dec 29 20:41:09 i try to copy paste Dec 29 20:41:24 but if you tell me where the file is stored i can go into that file Dec 29 20:41:26 and its good Dec 29 20:42:07 oki Mavrik sorry for bothering Dec 29 20:42:08 http://stackoverflow.com/questions/11608718/how-to-copy-logcat-output-to-clipboard Dec 29 20:42:12 found this solves all Dec 29 21:02:54 guys is there any way I can align two elements in some LinearLayout that one element is floated righta nd the other left? Dec 29 21:05:20 Anyone know if sync adapter data 5 column of calendar provider is _always_ data date last modified column? Dec 29 21:06:17 Yatekii_30c3: So you want one child view on the left, and one child view on the right? Dec 29 21:06:29 desmin88: yep Dec 29 21:06:36 I could hardcode it but that's ugly as fck Dec 29 21:07:06 Just make your linearlayout orientation horizontal, and add the two child views.. Dec 29 21:07:35 desmin88: I have it like that. Dec 29 21:07:43 but then EVERYTHING is left-aligned Dec 29 21:07:54 Then change that in your child view Dec 29 21:07:58 I want one View at the left border and ne at the right Dec 29 21:08:02 HOW Dec 29 21:08:12 gravity Dec 29 21:11:14 You can use layout gravity to set how the view will be positioned in the parent Dec 29 21:11:27 gravity sets how the views 'contents' are positioned within Dec 29 21:12:54 I use android:layout_gravity="left" on the two views (right for the other) and it does not work ... Dec 29 21:13:19 you'll need to use gravity Dec 29 21:13:23 not l_g Dec 29 21:13:44 I used gravity first and did not work either :) Dec 29 21:13:53 k then guess i cant help you Dec 29 21:13:55 https://gist.github.com/Yatekii/f1c64622e546b23517c0 like that Dec 29 21:14:14 btw if gravity sets the content of the view then this is the wrong one. Dec 29 21:14:26 I wanna set the VIEWS position not the position of the VIEW Dec 29 21:14:32 *VIEWS CONTENT Dec 29 21:14:41 *CAPS Dec 29 21:14:55 does the nested linear layout serve any purpose Dec 29 21:15:09 I just highlight the importants things so you see it Dec 29 21:15:49 hmm not really if i'm honest Dec 29 21:16:00 then get rid of it Dec 29 21:16:21 I did yet Dec 29 21:17:11 doesn't help anyways Dec 29 21:17:15 well thanks aynways Dec 29 21:17:23 sure :) Dec 29 21:19:50 ok works now Dec 29 21:20:45 whatd you do to it Dec 29 21:20:46 android:layout_alignParentRight="true" is the way to go Dec 29 21:20:51 + relativelayout Dec 29 21:29:39 Guys, I'm getting a deadobjectexception whenever navigating away (home/recentapps) a view in my app with a youtubeplayer. Heres my code: http://pastebin.com/RVn5SAem and heres the exception: http://pastebin.com/yX9hs4Ea Dec 29 21:29:53 I can't seem to shake this bug and theres piss poor documentation about this online Dec 29 21:31:02 Its not consistent either and I cant always reproduce it Dec 29 21:35:35 pfn: I've taken your advice re: changing my local service into a singleton and I feel a lot better about my life now, thanks. Dec 29 21:37:39 hi! does Google have any rules against offering an app for free outside the play store if it is a paid app there? I'm considering becoming a "serious" developer, but I'd like to keep my sources open and offer full versions for free to the open source community, for instance through f-droid. Dec 29 21:38:36 well whats the point Dec 29 21:38:45 of having a paid app on google play if people can get it for free Dec 29 21:39:36 how large a percentage of users have f-droid installed? Dec 29 21:39:53 not many. the loss is likely tiny. Dec 29 21:40:04 sure then go ahead, just seems kinda dumb Dec 29 21:40:27 a guy in here (can't remember who it is) has an open source app that he sells on the play store. Dec 29 21:41:49 yeah there are quite a few of those, but I've never seen anyone offering apks of paid open source apps themselves. for instance, the full version of osmand is on f-droid for free, but it seems to be an unofficial build. Dec 29 21:42:28 which is why I though that maybe google forbids them from offering osmand on f-droid themselves. Dec 29 21:43:35 as far as I know there is no exclusivity agreement when listing an app on play. Dec 29 21:43:44 You'd have to read the developer agreement Dec 29 21:43:47 you're welcome to read the Dec 29 21:43:50 yeah, that. Dec 29 21:43:59 Amazon has a clause about this, not sure about play store Dec 29 21:44:23 plenty of talk here, no real solutions. blah. https://code.google.com/p/gdata-issues/issues/detail?id=4395 Dec 29 21:45:42 will do once I actually go through with this, but to properly interpret the legalese is a bit of a problematic task, so I guessed that someone in here might know. alright then, thanks for the info! Dec 29 21:45:52 But technically, if your license allows, a 3rd party could distribute it on f-droid .. They aren't bound by you agreeing to the agreement Dec 29 21:46:51 yeah that's probably the way osmand took if I interpret the situation correctly Dec 29 21:49:07 But, read the developer agreement Dec 29 21:49:13 Android Studio doesn't recognize PreferenceScreen and instead shows me an Error! Dec 29 21:49:30 storkme, yes, unless ipc is involved, there's little reason to use a binder Dec 29 21:49:34 and the binding lifecycle Dec 29 21:49:38 hi Dec 29 21:50:26 Hey I am trying to get any linux os to work (originally I was going to do kali) but after it failed, i've tried many others Dec 29 21:50:30 but have had no success Dec 29 21:50:41 wrong channel? Dec 29 21:50:44 oh Dec 29 21:50:59 what chan would I ask in for linux on android? Dec 29 21:50:59 storkme, better to just start the service, and use a broadcast/eventbus to tell the client that the service is available/unavailable Dec 29 21:51:26 switched from a service to a pseudo-singleton anyway. Dec 29 21:53:54 PreferenceScreen wont work for me if I dont add android:layout_width="wrap_content" android:layout_height="wrap_content" Dec 29 21:53:58 and even then it crashes Dec 29 21:55:03 It works Now.... Dec 29 21:59:39 Anyone have any idea why mVariable = new Variable(); is saying mVariable is null in the constructor of a Service? Dec 29 21:59:59 It is declared outside the constructor as "private Variable mVariable;" Dec 29 22:01:37 show your codd Dec 29 22:01:40 uh Dec 29 22:01:42 code* lol Dec 29 22:01:48 You coming on to me? ;-) Dec 29 22:01:49 haha Dec 29 22:02:07 that sounds dirty Dec 29 22:02:12 show me your codd! Dec 29 22:02:19 lol Dec 29 22:02:48 There is little to show, it quite literally is as I say: I have a service, with a private variable. In the constructor of that service, the member variable is referenced which seems to be null somehow. Dec 29 22:03:02 there arent any rules about using member variables or anything in a service are there? Dec 29 22:03:10 just show us the codd Dec 29 22:03:14 is it an empty constructor..? Dec 29 22:03:14 Im doing exactly the same with another variable above and its fine Dec 29 22:03:44 The service? Dec 29 22:03:47 why are you using the constructor and not onCreate Dec 29 22:03:52 Trying to find a library that offers a lot of different progress bars.. It's on github somewhere.. Has circle indicators and stuff Dec 29 22:04:12 SimonVT: did you check androidviews.net Dec 29 22:04:38 I'll try Dec 29 22:04:53 it might have it if its popular Dec 29 22:05:39 Ahhh, if I call Context.startService, is the onCreate of the service called? Dec 29 22:05:52 it certainly is. Dec 29 22:06:06 Im assuming once the service has run its course, its is destroyed such that the onCreate is called the next time, too? Dec 29 22:06:14 lolz Dec 29 22:06:37 as for the constructor - I have no idea. If it's an empty constructor (i.e. one with no arguments) android will probably call it, but if you're passing any parameters in it certainly wont be. Dec 29 22:06:49 It is empty. Dec 29 22:06:57 The constructor is being called Dec 29 22:07:09 Within the constructor though, I am instantiating a member variable. Dec 29 22:07:28 But the variable being instantiated is throwing a null pointer... Dec 29 22:07:35 Which is odd. I thought that was the point of instantiation... hahaha Dec 29 22:07:43 quite. Dec 29 22:08:09 stick with the defined lifecycle methods - onCreate, onDestroy, etc. Dec 29 22:08:44 Yeah, I think I will - thanks! Dec 29 22:08:46 Does anybody know anything about this damned youtube player api? Dec 29 22:08:58 (goes for activities, fragments, etc too fyi) Dec 29 22:09:07 Oh of course. Dec 29 22:09:13 I was trying to be clever. Dec 29 22:09:20 I guess I should leave it to the clever people... haha Dec 29 22:09:23 she doesn't like it when you do that. Dec 29 22:09:27 As usual google doesn't have good documentation for it and it seems other people get this crash but no offocial explanation on it Dec 29 22:09:40 because google Dec 29 22:09:48 g00s: ikr/ Dec 29 22:10:46 desmin88 i got an email a few weeks ago claiming my app was disabling all BT communications on the user's phone Dec 29 22:10:50 volley was pretty funny too. heres an hr long video as our documentation, please enjoy. Dec 29 22:10:58 was it really? Dec 29 22:11:00 heh. Dec 29 22:11:24 its a fucking google bug, bluetooth service goes shits up until reboot Dec 29 22:11:44 lol Dec 29 22:11:56 i felt vindicated after reading http://www.androidpolice.com/2013/12/28/bug-watch-many-nexus-devices-still-suffer-from-assorted-bluetooth-issues/ Dec 29 22:11:57 let me guess, nothing online about the bug except people getting it Dec 29 22:12:05 g00s: it's likely to be a manufacturer bug, not a google one Dec 29 22:12:11 i like what user duse says Dec 29 22:12:23 zinx yeah, but it was a 2012 n7 Dec 29 22:12:34 well, yes, google bears some responsibility then :) Dec 29 22:12:36 so as a nexus device, to me its a google bug Dec 29 22:13:28 i didn't have a 2012 n7 so i could not replicate, tolf him to wait for the ios version Dec 29 22:13:32 heh Dec 29 22:13:34 fuck Dec 29 22:13:46 Can't find anything.. Library that offers circular progress indicator with text in the middle and stuff? iirc it has lots of other progress bars as well Dec 29 22:14:31 yeah google kida sucks with this kind of thing Dec 29 22:15:16 SimonVT: SOmething that you can adjust yourself? Dec 29 22:15:45 Yeah Dec 29 22:15:54 I set maxvalue/value Dec 29 22:16:39 SimonVT: Something like this? https://github.com/passsy/android-HoloCircularProgressBar Dec 29 22:17:37 Anyone know if the sync adapter data 5 column, which by default holds date data modified, for the calender provider gets overwritten by other data? Dec 29 22:17:45 SimonVT: No idea, but I'll help look for you because Im interested! I'd like to see it if you find it though! Dec 29 22:18:30 Something like that, but I'm fairly sure there's a library somewhere that offers exactly what I want Dec 29 22:18:37 Like a library full of progress bars :p Dec 29 22:19:01 g00s: seriously volley doesnt even have any official documentation, lol Dec 29 22:19:20 besides javadocs Dec 29 22:19:26 It only has a documentation gebnerated by javadocs Dec 29 22:19:29 yeah Dec 29 22:19:32 I don't want to have to write it myself Dec 29 22:19:34 gj google Dec 29 22:20:02 desmin88 isn't there a square lib that does something like volley? use that , probably better and better documented Dec 29 22:20:08 okhttp Dec 29 22:20:17 is there library Dec 29 22:20:24 for networking, retrofit is pretty cool too. Dec 29 22:20:29 just use that then Dec 29 22:20:29 More like retrofit Dec 29 22:20:41 okhttp is just a http client Dec 29 22:20:47 volley was just an example of where google falls pretty short on documentation Dec 29 22:20:51 (which can also be used with volley) Dec 29 22:20:55 Write it yourself. It'll be fun. Dec 29 22:21:10 i found one winning strategy for android app dev is to minimize your google-api surface area as much as possible ;) Dec 29 22:21:20 lol Dec 29 22:21:24 * Nilium puts his hands together like an evil villain. Dec 29 22:21:44 id love too but youtube iframe in a webview just sucks. Dec 29 22:22:06 this youtube player api is kinda except when it hard crashes my app inexplicably Dec 29 22:22:22 kinda cool* Dec 29 22:25:29 You can even use okhttp with volley, right? Dec 29 22:25:57 yes. Dec 29 22:26:28 SimonVT: Still cant find anything :/ Dec 29 22:27:00 Anthaas: Me neither, I started writing a view that does what I want Dec 29 22:27:00 Try lighting a shrine on fire. Dec 29 22:27:00 Might show you the way. Dec 29 22:27:36 Nilium: oh you. Dec 29 22:29:23 anyone know if startHandshake() on a SSL socket is idempotent (you can call it multiple times, same result as calling it once? ) Dec 29 22:32:15 i should ask in #java Dec 29 22:32:25 * g00s put on flame proof suit, and will not mention android this time Dec 29 22:32:48 i hate that channel Dec 29 22:33:13 I have never been in that channel because I hate Java. Dec 29 22:33:34 The language. Dec 29 22:33:43 You might wanna go program for Symbiant hen. Dec 29 22:34:15 I'll just stick with Scala. Dec 29 22:34:35 * Anthaas thinks g00s just wanted to share a word he learnt today :P Dec 29 22:34:38 ugh. Dec 29 22:35:03 Anthaas idempotency is a basic principle of designing web services ;) Dec 29 22:35:17 also its fundemental principle in boolean logic Dec 29 22:35:23 * Anthaas was joking Dec 29 22:35:24 \o/ Dec 29 22:35:54 great punning word too :) Dec 29 22:35:57 You should get that checked out Dec 29 22:38:26 g00s, interestingly Dec 29 22:38:34 Everyone should just use Scala. ಠ_ಠ Dec 29 22:38:51 it's really hard to find a state machine for TLS Dec 29 22:39:00 Nilium, fate worse than death. Dec 29 22:39:05 horrible horrible language. Dec 29 22:39:43 Someone reads too much Hacker News. Dec 29 22:40:32 Mavrik oracle docs say "Some protocols may not support multiple handshakes on an existing socket and may throw an IOException." … do they mean some versions of TLS ? I assume ... Dec 29 22:40:45 how do i know which ones :| Dec 29 22:41:04 everything about the java security stuff is like, poke this api with some string constant and see if it blows up Dec 29 22:41:25 By stringing garlic from the ceiling and seeing which doesn't die and come back to life Dec 29 22:41:37 g00s, thing is I can't get any resource even on SSL/TLS standard saying that Dec 29 22:41:38 always good advice from Nilium Dec 29 22:42:29 I have plenty of strategies for dealing with the undead. Dec 29 22:42:46 Hello world! If I'm going to drop support for <4.0, in my next update (or 2.0-version of the app), should I go for a new app on Google Play or update the current one? Dec 29 22:43:44 n20: Update the current one. Dec 29 22:44:02 "update" is probably not a word i'd use :P Dec 29 22:44:18 Google play can just let the old users get the old apk while supportedu sers get updates. Dec 29 22:44:41 Won't the older users throw 1*'s at me for not giving them the potential awesomeness? Dec 29 22:44:59 maybe Dec 29 22:45:01 its unavoidable Dec 29 22:45:13 tell them to get new devices Dec 29 22:45:26 can't you do a multi-apk release? Dec 29 22:45:46 keep the old apk for shitty old devices, roll out a new apk for better ones Dec 29 22:45:56 g00s, ok, I scoured the JVM code Dec 29 22:46:06 g00s, you CAN call startHandshake, it'll start renegotiation Dec 29 22:46:26 storkme: I think I'll go for that one :-) (desmin88) Dec 29 22:46:35 cool Dec 29 22:46:40 g00s, it may fail due to server not supporting renegotiation though Dec 29 22:46:47 see http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7-b147/sun/security/ssl/SSLSocketImpl.java#1314 Dec 29 22:47:48 n20, don't force people to redownload app -_- Dec 29 22:47:52 so update current one Dec 29 22:48:03 Then, the big next question is Dec 29 22:48:49 I once created an app which got suspended for like a year, until the legal department decided that it was OK again. Should I be putting my 2.0 of that app as the previous app (with the current total downlod count), or should I put it up as a new one? Dec 29 22:48:54 Mavrik hm, interesting thanks. reading ... Dec 29 22:48:58 ^Mavrik Dec 29 22:49:12 no idea Dec 29 22:49:13 i guess i'll have to look at harmony to see if the same semantics apply Dec 29 22:49:14 Suspended for what and why does that make a difference now? Dec 29 22:49:28 g00s, yeah, lookup startHandshake in SSLSocketImpl of harmony :) Dec 29 22:50:52 has anybody here used the youtube player api. Dec 29 22:51:27 Nilium: A bit complicated, but basically IP Protection (or copyright infringment) - difference is that the 2.0 will be towards the new version of their website, so the current release is deactivated on Google Play as it's broken beyond repair. :) Dec 29 22:52:21 Nilium: Completely re-written codebase and everything like that, now targetting ICS+ Dec 29 22:52:45 lol desmin88 tjsnell is being a prick ! christ man, see that is what happens when you use java too long Dec 29 22:52:53 dude Dec 29 22:52:54 i know Dec 29 22:52:59 that channel is shit. Dec 29 22:53:09 um Dec 29 22:53:17 pretty much all # channels are awful Dec 29 22:53:44 I think it's impossible to participate on any of them and not lose sanity due to dumb lazy people and elitist bastards :P Dec 29 22:54:07 If it's broken, I'd probably disable the old version so people don't accidentally get that APK Dec 29 22:54:28 n20, the question is if you'll have to pass the whitelisting process or not Dec 29 22:54:31 g00s Dec 29 22:54:33 Otherwise, I'd still do a standard update. Dec 29 22:54:40 holy fuck that elitist attitude could cut diamond Dec 29 22:54:49 n20, and really... why would you want to ever republish an app and annoy everyone with forcing them to redownload and uninstall old one_ Dec 29 22:54:55 what do you think that gains you? Dec 29 22:55:08 * Nilium would join to see but he is wary of it. Dec 29 22:55:09 I don't even talk in #scala because the hardcore functional peoples scare me. Dec 29 22:55:13 desmin88 i ask question, wait one minute, and then bail if no answer - thats about as much as i can tolerate ;) Dec 29 22:55:29 lol. Dec 29 22:55:32 Mavrik: Nothing really, just nostalgia heh. :) Dec 29 22:55:46 Mavrik: That is assuming people who downloaded it long ago will download it again Dec 29 22:56:14 Which whitelisting process by the way, Mavrik? Dec 29 22:56:26 n20, the one that got you out of suspension? Dec 29 22:56:38 it it was a copyright issue it might happen again I presume? Dec 29 22:57:13 Mavrik: Well, I've talked to them and as long as I keep it clean (ie, not use their trademark as an app title despite the big (UNOFFICIAL) suffix), they were to be OK with it. Dec 29 22:57:15 g00s: "You have been kicked from ##java by tjsnell (fucker)" what makes these people so angry they must go onto an irc channel and take out their lives frustrations there? Dec 29 22:57:39 well, it is the internet … ;) Dec 29 22:57:43 hehe Dec 29 22:57:45 yeah Dec 29 22:57:49 I mean. Dec 29 22:57:52 Mavrik: Funny part, I had this "competitor" that has their trademark in the name, making money of ads and "premium keys" - he's not had a single problem with them afaik. Probably made a few grand on it. :) Dec 29 22:57:54 I don't know. They clearly need more pictures of cute jumping spiders. Dec 29 22:58:01 They need to be more chill, like #ruby Dec 29 22:58:27 (not #ruby-lang, which is chill but not as chill) Dec 29 23:00:04 no this is the internet Dec 29 23:00:07 we must be serious Dec 29 23:00:17 sirius black. Dec 29 23:00:21 hmm Dec 29 23:00:38 maybe I should go find an U-bahn station before I get stuck in hamburg in the middle of a night Dec 29 23:00:49 aaand... wrong channel Dec 29 23:01:05 lol Dec 29 23:01:29 lmfao Dec 29 23:01:46 The hell are you doing in hamburg at the middle of night? Dec 29 23:01:50 WHAT ARE YOU DOING Dec 29 23:02:13 I'd ask where's Hamburg Dec 29 23:02:19 but I keep thinking of burgers Dec 29 23:02:23 conferences and stuff Dec 29 23:02:32 I am in Hamburg. And it's night. Dec 29 23:03:07 Can confirm. Dec 29 23:06:10 Why is it that so much of the new FOSS or at least partial-FOSS I hear of comes out of EU, in particular Hamburg? Can someone explain intelligently? Dec 29 23:08:23 nullFxn, there's a huge conference here, EU version of Defcon :) Dec 29 23:08:30 so it's a buzz around that :) Dec 29 23:09:05 Has anyone on here gotten the gstreamer tutorials for android to debug on the latest tools? I've exhauted most of the stack overflow answers. I'm still getting Unknown Application ABI Dec 29 23:09:10 Mavrik you presenting ? Dec 29 23:09:15 nop :/ Dec 29 23:09:34 SeanSill, uh... where? :) Dec 29 23:10:09 and on which device? Dec 29 23:10:48 The device I'm using to test on is a Motorola Razm M Dec 29 23:10:54 Razr* Dec 29 23:15:58 It runs fine, it just won't debug Dec 29 23:16:21 maybe it's trying to debug you Dec 29 23:16:26 hahaha Dec 29 23:16:42 In google hq android debug you! Dec 29 23:18:26 lol probably Dec 29 23:18:36 but yeah, logcat's giving you nothing about gstreamer? Dec 29 23:18:51 logcat doesn't even start Dec 29 23:20:10 This stackoverflow is close Dec 29 23:20:11 http://stackoverflow.com/questions/12733125/unable-to-detect-application-abis-when-trying-to-debug-ndk?rq=1 Dec 29 23:20:24 I don't have an application.mk, its suppposed to be optional Dec 29 23:21:27 I've tried adding it, and it builds with more warnings and I still get Unknown Application ABI:, Unable to detect application ABI's Dec 29 23:23:28 Mavrik: Where did you mean? like which console? Dec 29 23:24:33 Man, I haven't used Android Studio in a while. Lots of build problems. Dec 29 23:24:58 My main machine for right now is win7 though Dec 29 23:25:02 Its about the only option Dec 29 23:26:58 I wonder if I should just restart my project. I'm not too far into it. Dec 29 23:53:31 Oh wow, I can debug as Android Application but not Native Android Application Dec 29 23:54:20 you can debug native android applications, but you'll need gdb and such set up for it Dec 29 23:54:35 you're expected to know how to do that if you're going to use native stuff :P Dec 29 23:54:42 Ha Dec 29 23:55:19 I'm using the ndk, I was under the impression it already had a gdb. Do I need to make sure gdb is working in cygwin then? Dec 29 23:55:31 Hello, how is it possible to adapt an word to the display-width.... The word should be stretched over the hole display width Dec 29 23:55:51 SeanSill: i don't think the ndk has any debug stuff included. Dec 29 23:56:15 Does ndk-gdb just wrap gdb then? Dec 29 23:56:16 you need gdbserver or similar running on the phone :/ Dec 29 23:56:26 SeanSill: oh, if it has that, then it probably does have it Dec 29 23:56:37 That's what I thought Dec 29 23:56:48 can somebody tell me Dec 29 23:56:53 what i am doing wrong Dec 29 23:56:57 when i am getting this in logcat Dec 29 23:56:58 http://pastebin.com/8Mh4HkxR Dec 29 23:57:09 while trying to build app Dec 29 23:57:14 that worked like 4 days ago Dec 29 23:57:21 and i didnt do anything differently Dec 29 23:57:22 hmm Dec 29 23:58:18 How is it possible to adapt an word to the display-width.... The word should be stretched over the hole display width (change the font-size) Dec 29 23:58:26 twiceaday: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. Dec 29 23:59:35 zinx: thank you Dec 30 00:00:51 I want to customize a word in the font size so that it stretches across the entire screen. Is that possible? Dec 30 00:07:11 I'm thinking of using Retrofit for API interactions in my app. Can anyone speak to the speed of the library for handling JSON requests and responses? Dec 30 00:07:26 you are asking about Gson, not Retrofit Dec 30 00:07:27 I want to customize a word in the font size so that it stretches across the entire screen. Is that possible? Dec 30 00:07:33 JakeWharton: indeed Dec 30 00:08:12 JakeWharton: I was wondering what effect it would have on the roundtrip processing time Dec 30 00:08:17 Retrofit streams HTTP responses straight to Gson. The speed of the network will be an order of magnitude slower than deserialization so it really makes no difference Dec 30 00:09:11 JakeWharton: Thanks, good to know. I wasn't sure how much the overhead was for Gson. Dec 30 00:10:02 it's pretty fast. depends on a lot of factors, really Dec 30 00:18:25 I want to customize a word (TextView) in the font size so that it stretches across the entire screen. Is that possible? Dec 30 00:24:34 zinx: It appears to work for the samples from the ndk Dec 30 00:24:49 I've got gdb setting break points and stopping ... Dec 30 00:27:44 SeanSill: \o/ Dec 30 00:28:08 newbie here, does Google Play Games Services require a Google+ account (vs a regular Google account)? Dec 30 00:37:36 zinx: Now why can't I get it to build gstreamer... Dec 30 00:51:01 hey folks, i'm trying to setup an android library that depends on another android library with resources and i'm unable to get it to find the R class when compiling Dec 30 00:52:31 (using gradle, btw) Dec 30 00:54:37 the dependency library is successfully building the R.java file with the right package name in the file Dec 30 00:54:59 and when i look at the build folder of the library that's including the second library it's got a folder under 'exploded-bundles' with all of the proper contents in res Dec 30 00:56:26 actually from the looks of it it's including it in the wrong package name in the second library Dec 30 00:56:55 instead of maintaining the original com.example.dependency.R it's now just com.example.R Dec 30 00:58:05 I have made a few apps that have to deal with JSON but I'm in the middle of developing a new app that needs like 90% of it with JSON. I have never used a network library. Do you think it'd be easier to use a network library for this? Sny recomendations? Dec 30 00:59:51 EGHDK: in my limited experience with it, Koushik Dutta's 'Ion' library is really nice: https://github.com/koush/ion Dec 30 01:00:45 Did you use it for JSON? Dec 30 01:00:48 yup Dec 30 01:01:01 Thanks Dec 30 01:01:17 it uses Gson for (de)serialization into POJO's Dec 30 01:01:43 but allows you to extend the request builders to use what ever kind of response parser you want Dec 30 01:15:33 ObsidianX: So I downloaded the two jars, and put them into libs, and I'm trying to use Ion.with()... but I'm getting an error. Dec 30 01:15:45 what error? Dec 30 01:16:15 and if you're using Gradle you can just include them as remote dependencies Dec 30 01:16:24 Nope. I'm using eclipse Dec 30 01:16:49 I pasted this into my onCreate: Dec 30 01:16:50 Ion.with(this, "http://example.com/thing.json") Dec 30 01:16:50 .asJsonObject() Dec 30 01:16:50 .setCallback(new FutureCallback() { Dec 30 01:16:50 @Override Dec 30 01:16:50 public void onCompleted(Exception e, JsonObject result) { Dec 30 01:16:50 // do stuff with the result or error Dec 30 01:16:50 } Dec 30 01:16:51 }); Dec 30 01:17:20 Sorry for the large paste, was supposed to be the pastebin link Dec 30 01:17:27 But then I get an error: The type com.google.gson.JsonObject cannot be resolved. It is indirectly referenced from required .class files Dec 30 01:18:11 what's the error you're getting? Dec 30 01:18:34 The type com.google.gson.JsonObject cannot be resolved. It is indirectly referenced from required .class files Dec 30 01:18:54 1 quick fix available: Configure build path Dec 30 01:19:12 did you put the gson library in the libs folder? Dec 30 01:19:41 I put the ion.jar and the androidasync.jar Dec 30 01:19:47 you'll need gson too Dec 30 01:19:51 Those are the only two things in the read.me Dec 30 01:21:02 Okay, I downloaded GSON. But there are three jars in there. Dec 30 01:21:18 gson, gson-javadoc, gson-sources Dec 30 01:21:26 EGHDK: gson-2.4.4.jar Dec 30 01:23:20 That cleared up one error, now I have another: .setCallback Dec 30 01:23:21 The method setCallback(FutureCallback) in the type Future is not applicable for the arguments (new FutureCallback(){}) Dec 30 01:24:47 Quick question - which Crypto library do I want to use when encrypting passwords? Dec 30 01:24:48 :) Dec 30 01:25:41 You don't want to "encrypt" passwords. You want to "hash" them. Dec 30 01:26:09 Isn't "hashing" them irreversible? Dec 30 01:26:30 If so, I sure want to "encrypt" them as the service I'm connecting to only takes them in plaintext. :-) Dec 30 01:26:31 unless you need to use the password, then encrypting them is essentially just obfuscating it a little Dec 30 01:26:47 Yup ObsidianX :) Dec 30 01:26:54 yeah bad idea if key was ever leaked Dec 30 01:27:15 You hash the password, and then when the user tries to log in again you hash the password again, and see if the hashes match up Dec 30 01:27:40 which, if you ask a Google is kind of a futile gesture since the key to decrypt the password is available to anybody who can get to the encrypted password Dec 30 01:27:47 so youre maiing some passwords service? Dec 30 01:28:09 EGHDK: How will that work if I want to let my service "auto login", as the session might get killed for some stupid reason? Dec 30 01:28:17 hence why the built-in Email app stores passwords in plain text in the accounts.db Dec 30 01:28:26 ObsidianX: Got it to work Dec 30 01:28:28 XXCoder1: Not sure what you mean by maiing :) Dec 30 01:28:35 EGHDK: oh good :) Dec 30 01:28:37 making Dec 30 01:28:37 n20: Exactly what obsidian said Dec 30 01:28:48 missed k and typo extra i lol Dec 30 01:29:01 Oh. Dec 30 01:29:12 n20: encrypting a password with a key that is on the device gives the user a false sense of security about the storage of the password Dec 30 01:30:06 It does keep the user "safe" from those that only grab the encrypted value without knowing where to find the key Dec 30 01:30:15 n20: on a standard Android device only the OS and your application can read the accounts.db or your own databases/preferences in /data/data so storing it in plain text doesn't really matter Dec 30 01:30:35 ObsidianX: Unless someone's rooted, and then all hell breaks loose? Dec 30 01:30:54 ListActivity or ListFragment? What do you guys think? Is ListFragment the "in" thing and ListActivity the old way, or does it still have its use cases? Dec 30 01:30:57 n20: Every single website that you use "hashes" your password when you create an account. Then when you try to log in again, it will ask for your password, it will hash it, and then look up in a database to see if your hashed passwords match. Dec 30 01:31:02 n20: nah but the standard security guarantees can't be upheld since the system has been modified Dec 30 01:31:24 EGHDK: in this case it sounds like he's writing a client to an online service Dec 30 01:31:33 EGHDK: That, I know, however, the website expects the plaintext password (I'm guessing (and hoping)) that it actually hashes after that Dec 30 01:31:38 Basically, if you modify your system using a security hole, you get what's coming and it's not worth caring about Dec 30 01:31:43 the online service would need to accept password hashes in lieu of the actual plain text password which is just as vulnerable then Dec 30 01:32:00 n20: You need a backend that will handle a hashed value in that case. Dec 30 01:32:16 EGHDK: that doesn't add any extra security, just complexity Dec 30 01:32:22 if i get the hash i can sign in with the hash Dec 30 01:32:35 Well that's what I meant. Dec 30 01:32:55 You need a system that can handle a hash instead of a password Dec 30 01:32:57 Nilium: True. So I shouldn't feel bad about considering to store it plaintext locally? Coming from a web bckground, it always gives me a bad feeling inside lol Dec 30 01:33:38 n20: when a user clicks "remember my password" in a browser it needs to save it in plain text so it can send it for you Dec 30 01:34:18 I read somewhere that it's possible to (correct me if I'm wrong) "fake" the context of another app, effectively getting access to the PRIVATE level files? Dec 30 01:34:19 that's the trade off for the convenience Dec 30 01:34:46 s/"fake"/spoof/ Dec 30 01:35:01 if you save the account info in the system account storage then you'd probably be better off Dec 30 01:35:31 I'm more in the not storing passwords camp, but then I don't do security work Dec 30 01:35:55 Nilium: The service doesn't handle tokens yet :( Dec 30 01:36:18 Nilium: I just need to login to get a cookie, from which then I can access the REST api it has over there. Dec 30 01:36:23 i think that might be your next task if you're (rightfully) nervous about storing a password Dec 30 01:36:24 I also don't do web stuff in general Dec 30 01:38:14 ObsidianX: I'll have a look at it, thanks for the pointer. :) Dec 30 01:38:40 Thanks for the ideas people, I'll head off to bed now and continue later today. Dec 30 01:38:41 I wonder if I put some cans of spam in my checked baggage if an airline would care... Dec 30 01:40:18 n20: You can create a context of another app and access their resources that way.. not their private files Dec 30 01:40:53 (Hi!) SimonVT: So, no private files access? Phew. Then it feels a bit better. Dec 30 01:41:41 I'll still be looking at the AccountManager part though, seems interesting. Dec 30 01:41:48 Until next time! Dec 30 02:01:43 how can I use non final variables inside an on click listener? Dec 30 02:05:11 Make it a member variable Dec 30 02:18:50 ty Dec 30 02:31:33 hello Dec 30 02:32:09 I am trying to create a search bar widget but my search icon is not showing up on the far left when I display my widget, here is my xml: Dec 30 02:34:12 I have some widget xml with the search icon, which I am trying to display on the far right but the icon will not show when I display my widget. Here is my xml http://pastebin.ca/2519995 **** ENDING LOGGING AT Mon Dec 30 02:59:58 2013