**** BEGIN LOGGING AT Mon Oct 27 03:00:01 2014 Oct 27 03:00:50 chaosagent OK, so is this a new requirement because of material or appcompat ? previously, the platform defaults from Theme.Holo or Theme.Holo.Light were fine Oct 27 03:00:59 appcompat Oct 27 03:01:14 well are you using the appcompat light theme(does that even exist?) Oct 27 03:01:22 yes Oct 27 03:01:29 Theme.AppCompat.Light Oct 27 03:01:44 hmmm Oct 27 03:01:46 idk Oct 27 03:01:52 its probably an appcompat bug Oct 27 03:02:58 yeah ... these have been around for a long time (working fine) http://developer.android.com/design/style/typography.html Oct 27 03:17:06 once there was this project .. HoloEverywhere ... and I remember people saying it was dumb to use this Oct 27 03:17:19 but here we are mackporting material, pretty much MaterialEverywhere Oct 27 03:17:25 *backporting Oct 27 03:17:34 isn't it dumb for the same reason ? Oct 27 03:21:22 there was always appcompat... Oct 27 03:29:38 I'm not even sure I prefer "material" to Holo. Oct 27 03:30:08 Don't get me wrong; I'm not one of those "everything new is scary" people. I just can't get myself to like Material Design very much. Oct 27 03:30:12 From what I've seen so far, anyway. Oct 27 03:31:11 yeah Oct 27 03:31:15 holo was nice Oct 27 03:31:23 minimalism ftw Oct 27 03:33:18 In six months, I wonder how the situation with Material will look. How easy it'll be to use AppCompat, and how many apps are using Material Design. Oct 27 03:37:48 has anyone here made a keyboard? Oct 27 03:38:34 *software keyboard... Oct 27 03:38:46 yes Oct 27 03:39:01 I like Oct 27 03:39:21 yes, I have Oct 27 03:39:45 JesusFreke: Did you use to hang out in ##csharp? I swear your name looks familiar. ;o Oct 27 03:40:19 TacticalJoke: nope. You likely knew me from my g1 roms, or from smali/baksmali Oct 27 03:40:35 JesusFreke, do you know how to refresh/redraw the soft-kb reliably? Oct 27 03:40:38 Okay. Maybe I'm thinking of another Jesus Freak. :D Oct 27 03:43:39 pepee: I just draw it in onDraw in the view that's returned by onCreateInputView Oct 27 03:44:22 I use mostly custom classes, I don't use the keyboard view provided by the framework Oct 27 03:44:50 because it doesn't match the paradigm of my keyboard at all Oct 27 03:46:05 tbh, I barely have an idea of what I'm doing... :/ Oct 27 03:47:22 I'm trying to modify the one from the samples, but what I want to do won't work: to swap keys Oct 27 03:47:33 at least not in the simplest way... Oct 27 03:48:26 Collections.swap(keys, 1, 2); Oct 27 03:49:47 _o/\o/ Oct 27 03:50:01 I have never used Collections.swap before. Oct 27 03:50:04 looks cool. Oct 27 03:50:06 JesusFreke, do you think anyone would use a completely customizable keyboard? customizable as in, you can change the layout... Oct 27 03:50:17 I also never did, FennyFatal , lol Oct 27 03:50:37 I haven't done anything in java for like 3+ years Oct 27 03:50:38 possible. although I'm sure it would be a pretty small group of people :) Oct 27 03:51:02 yeah, that's my guess also Oct 27 03:51:48 My favorite unconventional method of swapping two variables is using binary xor. Oct 27 03:52:00 Doesn't require a temp holder variable that way. Oct 27 03:52:05 yeah, the xor trick is pretty neat Oct 27 03:52:40 It is just one of those things you latch on to when you see it done. :D Oct 27 03:53:23 also, a double-linked list that stores both links xor'd together in a single field Oct 27 03:53:55 Yeah, that's just one of those neato moments. :D Oct 27 03:54:08 I wish all programming languages were more like ruby now that I have fallen in love. Oct 27 03:54:25 Javas regex support just feels so limp now. Oct 27 03:54:38 keys is a List here, so I'm not even sure if I'm doing it correctly... but looks OK. but the keyboard doesn't change :( Oct 27 03:56:01 JesusFreke, any pointers on how the settings stuff works? Oct 27 03:56:44 also, the settings menu in the softkeyboard sample crashes in my emulators, lol Oct 27 03:56:44 pepee: I didn't use that keyboard view :) Oct 27 03:56:51 oh, nevermind Oct 27 03:57:15 yeah, I don't think I had implemented any settings Oct 27 03:57:34 ah, ok, thanks anyway Oct 27 03:57:56 it was just a little personal researchy project Oct 27 03:59:32 it was a similar concept to https://play.google.com/store/apps/details?id=com.exideas.mekb&hl=en Oct 27 04:00:01 a bit different, but it used the same "touch and drag" mechanic Oct 27 04:03:10 wow, that's a cool idea Oct 27 04:03:34 for small phones, or for old people, whatever Oct 27 04:03:48 well, I was looking into it as a means of being able to touch type Oct 27 04:04:04 I was able to type up to 40WPM or so, without looking at the screen Oct 27 04:04:13 about 95% accuracy or so Oct 27 04:05:03 still not as fast as I would like, but it was pretty decent Oct 27 04:07:39 I'm in https://console.developers.google.com Oct 27 04:07:50 I'm unable to find any redirect values.. Oct 27 04:07:52 Help? Oct 27 04:08:16 redirect values? Oct 27 04:09:31 yes Oct 27 04:09:38 https://developers.google.com/accounts/docs/OAuth2WebServer#overview Oct 27 04:09:43 under redirect_uri Oct 27 04:10:53 wait i found it Oct 27 04:11:52 except it doesn't make any sense Oct 27 04:11:57 redirect is to localhost Oct 27 04:15:35 "A pill to dampen memories stirs hope and worry.". I will use this someday to forget about Android ... Oct 27 04:16:15 having fun ? :) Oct 27 04:16:56 can we tint the status bar ? or put content behind ? SO seems to be down for me and all google searches point to xposed tutorial crap Oct 27 04:17:32 the way you stress out about android sounds like you make your living off it Oct 27 04:17:44 StingRay_, since kitkat Oct 27 04:17:46 bah, I'll just give up, this keyboard is clearly much better than my "idea" Oct 27 04:17:51 actually is SO down for everyone ? Oct 27 04:18:23 cheers pfn just need to read docs then :) Oct 27 04:18:53 SO is down? no one can code now!! Oct 27 04:19:00 lol Oct 27 04:19:06 where else are you supposed to copy code from? :D Oct 27 04:19:08 looks fine here Oct 27 04:19:22 just UK then :( Oct 27 04:21:07 anyone start using that google helpouts thing ? (helpouts.google.com) ? Oct 27 04:21:22 I have noticed angrybirds stays alive with all resources loaded when backgrounded, until another app needs the memory. How do they do that? Oct 27 04:21:30 oh well, yet another project of mine that goes anywhere :( Oct 27 04:23:10 so is not down for me Oct 27 04:24:09 ggVGc, I think they just paid google a lot of money for a memory management backdoor Oct 27 04:25:05 g00s: I know i'm on your ignore list, but I hate that concept. Oct 27 04:25:18 lol Oct 27 04:27:11 Agamemnus: really? I mean, currently I am doing all cleanup in onStop. But would it be possible to keep resources and only free them in onDestroy? Oct 27 04:27:38 In my game (which is Cordova), my app doesn't restart when it goes to background Oct 27 04:27:47 Sometimes Oct 27 04:27:51 It kind of feels random Oct 27 04:28:03 Don't know exactly about pure Java Oct 27 04:29:52 well, most of my stuff is in C with the NDK, but yeah Oct 27 04:30:00 I think thereäs no magic to it Oct 27 04:30:13 I will try to just not free in onStop and do it in onDestroy instead Oct 27 04:30:17 should all work out I tink Oct 27 04:30:36 this is going to sound like a stupid question, but where exactly are gradle task definitions stored? i figured they'd be stored somehow in the build.gradle file, but attempting to copy it from one project to another didn't do the trick (the 'assembleDebug' task is missing) Oct 27 04:31:46 diphtherial those tasks come from the android gradle plugin Oct 27 04:32:48 i'm guessing then that copying build.gradle, gradlew, and the 'gradle' directory isn't enough Oct 27 04:33:24 (i'm attempting to outfit an eclipse project with gradle) Oct 27 04:33:44 painful Oct 27 04:34:20 pfn: i'm sure, but i just need to get these stupid assignments built so i can grade them; it doesn't have to be enterprise-quality fully reproducible stuff Oct 27 04:34:23 Agamemnus, you save and load state Oct 27 04:35:10 Agamemnus, has nothing to do with not being killed Oct 27 04:35:20 is there some special folder/file in the gradle project that says that gradle has those tasks available, like how ant has a build.xml that defines its targets? Oct 27 04:35:36 pfn, er idk Oct 27 04:35:40 i'd suspect if it were part of some global android plugin it'd have at least been referenced in the build.gradle file i copied Oct 27 04:35:42 by declaring the use of the android plugin... Oct 27 04:35:50 it is referenced Oct 27 04:36:02 do i have to run some task to first pull in references? Oct 27 04:36:19 you'd be done now if you'd use my sbt plugin... Oct 27 04:36:37 and no Oct 27 04:36:50 it just works as long as your gradle file is right Oct 27 04:37:00 pfn: i wasn't sure what you meant by Oct 27 04:37:10 erm, "addSbtPlugin in your ~/.sbt/0.13/plugins/too.sbt", since i have no prior knowledge of sbt Oct 27 04:37:27 diphtherial, the readme is quite explicit... Oct 27 04:37:31 hi guys Oct 27 04:38:08 Is there any useful documents for reducing android boot up time for kitkat in imx6? Oct 27 04:39:24 --no-boot-anim is great Oct 27 04:40:44 g00s: sorry Oct 27 04:42:10 pfn: you readme just states "install the plugin globally into..." Oct 27 04:42:27 this is probably my fault for not having read the sbt documentation extensively Oct 27 04:42:50 it is indeed; i should've read the section on plugins which i'm now reading Oct 27 04:43:28 i mean, if you were in my position and you were faced with "read 20 pages of documentation or try to cobble together gradle, which seems simple and apparently already works", what would you do? Oct 27 04:43:36 it's easy to assume that everyone understands your system because you do Oct 27 04:44:00 anyhow, never mind; hopefully this'll work Oct 27 04:45:53 i don't know, actually...practically the entire document is listed as a prerequisite to understand plugins... Oct 27 04:51:30 reading through the appcompat theming stuff; its amazing anyone was able to pull this off. i wonder if its machine generated Oct 27 05:12:01 do different app run under different user ID on android ? Oct 27 05:12:21 no, there is no user id Oct 27 05:12:30 there is a player id and it is the same Oct 27 05:12:56 for google play services Oct 27 05:13:30 hm Oct 27 05:13:36 http://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE Oct 27 05:13:41 File creation mode: the default mode, where the created file can only be accessed by the calling application (or all applications sharing the same user ID). Oct 27 05:13:44 that Oct 27 05:14:23 I don't know Oct 27 05:14:27 maybe they mean the app ID Oct 27 05:15:04 which is th pakcage name ? com.android.example thingie Oct 27 05:15:45 right, maybe Oct 27 05:17:56 yes, every app runs under its own user ID, under normal circumstances Oct 27 05:18:15 there are ways to request multiple apps from the same developer to share an ID Oct 27 05:21:00 Agamemnus: are you actually making Android apps now? Oct 27 05:21:16 no they are cordova Oct 27 05:21:22 so yes and no Oct 27 05:22:19 so, no Oct 27 05:22:34 they are android apps, they are just hybrid Oct 27 05:22:35 it Oct 27 05:23:16 Leeds: I see cool thanks, so different apps different user ids Oct 27 05:23:30 I was trying cordova (phonegap) but then started learning native. thought might be better. Oct 27 05:23:42 I'm still no where near complete with my app after 2.5 months :| Oct 27 05:24:01 dejected Oct 27 05:25:22 bah, i just tried running AS with java 8 (on mac) -- the fonts are unbearable. at least on non-retina Oct 27 05:26:01 this font bug was filed back on java 7; devs dont care Oct 27 05:28:07 see what happens when you upgrade? :( Oct 27 05:28:36 diphtherial, the readme is still completely explicit, it says what to type where Oct 27 05:28:56 diphtherial, it tells you how to install globally... Oct 27 05:29:01 but whatever Oct 27 05:29:20 bankai_au i switched back to java 6; was hoping maybe java 8 performance would be noticably better Oct 27 05:29:25 it's my fault, i'll admit; i've been suffering from crippling depression for the past few years Oct 27 05:29:34 i didn't really notice anything anyhow, performance wise Oct 27 05:29:36 you tried. if i were smarter, i'd get it. Oct 27 05:29:42 My SharedPrefrences only seem to save data the first time .appyly() is called, never the 2nd time Oct 27 05:29:56 The preference is in memory, but not persisted between sessions Oct 27 05:30:20 try .commit() instead Oct 27 05:30:52 applyly sounds like SF hipster startup for hiring Oct 27 05:30:53 I moved over to use .commit for testing and even though it returns "true" I see the same behavior Oct 27 05:31:30 :| Oct 27 05:31:35 explodes, don't reuse the editor Oct 27 05:31:39 g00s, .apply() is the asynchronous version of .commit() Oct 27 05:31:53 ravilov i know, it was mispelled ^^^ Oct 27 05:32:03 ohh Oct 27 05:32:05 pft Oct 27 05:32:16 oh it was appyly Oct 27 05:32:20 pfn, as far as I know, i'm not, but, if do "mySharedPreferences.editor()" multiple times, am I reusing the editor? Oct 27 05:32:25 so SF hipster app shop Oct 27 05:32:57 explodes, no, you should get a fresh editor each time Oct 27 05:32:58 no Oct 27 05:33:26 g00s, certainyly Oct 27 05:34:26 Does it matter that the type of preference is Set (using putStringSet), and its buggy? Oct 27 05:36:28 explodes did you find something in the issue tracker for a bug ? Oct 27 05:37:06 AH Oct 27 05:37:07 http://stackoverflow.com/questions/14034803/misbehavior-when-trying-to-store-a-string-set-using-sharedpreferences/14034804#14034804 Oct 27 05:37:25 g00s: not yet, this may be in the buglist though Oct 27 05:37:51 noice Oct 27 05:39:23 actually I guess that this isn't a bug by design. if you modify the set returned by prefs.getStringSet() and save that, it will basically do a no-op Oct 27 05:40:12 mutability fail Oct 27 05:41:51 Wow, its still not working when I save a new set though Oct 27 05:45:16 Ok so you cannot mutate the return value at all, not just create a copy of the mutated return value, and it works fine TL;DR RTFM, but in this case you wouldn't have expected such a caveat so, whatever. Oct 27 05:46:31 I wonder why they don't return a copy. Oct 27 05:46:43 "return v != null ? v : defValues;" Oct 27 05:48:04 Most of the time, as in the case of MY app, the operations on the preference is limited to reading the value Oct 27 05:48:08 Wow I said that weird Oct 27 05:49:12 In my case, and I'd assume as in a lot of other apps, you're just going to read the preference the majority of the time.* Maybe they're saving the overhead? Oct 27 05:49:26 I presume so. Oct 27 05:51:14 It feels weird writing classes that let clients violate encapsulation, though. Especially in a public API. Oct 27 06:04:01 hey , I wanted to use R.android.drawable.ic_menu_home but it doesn't seems to find the icon . When i open sdk/platforms/path/to/icons/folder , the ic_home_menu icon is there. So why it is not being found Oct 27 06:05:13 its probably not public Oct 27 06:05:19 download the icon set Oct 27 06:06:28 g00s: Well i copied the icon from sdk and pasted it in my drawable folder.Is it legal to use it this way ? Oct 27 06:06:46 drawable of my app Oct 27 06:06:50 yeah sure, but they have an icon pack with different formats, sizes, etc Oct 27 06:07:34 g00s: Yea I copied different sizes and placed them in corresponding different folders Oct 27 06:08:23 killer if you copied them R.drawable.ic_menu_home ? Oct 27 06:08:46 as it's in your apps path Oct 27 06:09:21 StingRay_: I copied them to R.drawable.ic_menu_home from the sdk version 20 Oct 27 06:10:08 R.android.drawable.ic_menu_home != R.drawable.ic_menu_home when you asked the question was that a typo then ? Oct 27 06:11:23 I copied them from android.R.drawable.ic_menu_home to my app R.drawable.ic_menu_home Oct 27 06:12:06 ok well you just use it then, make sure you are using the correct import of R and will be there Oct 27 06:12:32 as in not android.R but just (nothing) or (your package)R.* Oct 27 06:14:00 Yea R.drawable.ic_menu_home (my app folder) is working fine , I was just wondering why android.R.drawable.ic_menu_home (the sdk version) is not working Oct 27 06:14:59 killer like g00s said it's not public Oct 27 06:23:50 You might as well download the icon pack. Oct 27 06:27:15 hi there Oct 27 06:28:55 my UI activity need to plot some data that are managed by a service. I read multiple ways to make them communicate but I was wondering if it would be bad practice to turn the service in a singleton pattern (getInstance()) and then directly retrieve the data from it ? Oct 27 06:31:41 that depends highly on your specific case Oct 27 06:33:47 ravilov: how is it that I never seen that on the various tutorial ? Oct 27 06:33:51 is it bad design ? Oct 27 06:34:27 is using a singleton bad design? Oct 27 06:34:29 no Oct 27 06:34:36 using a singleton for a service Oct 27 06:34:41 oh Oct 27 06:34:48 it's not bad design, it is impossible Oct 27 06:34:52 directly accessing the service resources from the activity Oct 27 06:34:55 is it ? Oct 27 06:35:08 ugh you're not making any sense Oct 27 06:35:17 ok, accessing a resource in the service directly Oct 27 06:35:28 ok, I don't see a problem with that Oct 27 06:35:39 you bind to the service, then you do whatever you want Oct 27 06:35:58 hmm no it is not binded Oct 27 06:36:05 should be Oct 27 06:36:19 maybe you need to read more on services Oct 27 06:37:02 well, from what I know about bound service it doesn't fit my use case Oct 27 06:37:14 as the service should be able to run even if the activity is close Oct 27 06:37:22 who says it can't? Oct 27 06:37:51 by default no, but you can make it Oct 27 06:38:14 alright let's put it this way. I have a service which manage wireless interfaces and maintain a neighborhood table Oct 27 06:38:34 what would be the best design for an activity that would list the neighborhood Oct 27 06:38:43 based on the service table Oct 27 06:39:04 binding to that service Oct 27 06:39:42 you should read the docs more carefuly - it says the service will terminate when unbound from ONLY IF it wasn't running previously Oct 27 06:39:58 oh I see Oct 27 06:40:04 I should have read more carefully indeed Oct 27 06:40:34 I should know, I'm using exactly the same pattern in one of my apps :p Oct 27 06:40:46 ok :) Oct 27 06:51:26 I am running a webserver inside android emulator. I want to access the webserver inside emulator from dev machine and other machines in my network. I had set up port forwarding in adb. I can access the webserver on dev machine using localhost:8001 but if I use :8001 I cannot access the webserver running inside emulator. What can be wrong? I am on windows 7 Oct 27 06:52:17 firewall..? Oct 27 06:52:49 I opened inbound connections in firewall Oct 27 06:52:59 this is not android related anymore Oct 27 06:53:00 on specific port Oct 27 06:54:19 not working even after turning off firewall Oct 27 06:54:25 can you ping machine ? Oct 27 06:56:27 yes I can ping that machine Oct 27 06:56:30 anyone worked with sharedpreferences? Oct 27 06:56:36 the listener dosnt seems to get fired Oct 27 06:56:45 post code Oct 27 06:57:29 http://pastie.org/9678053 that Log on line 6 doesn't happen Oct 27 06:58:31 perhaps because it didn't change? Oct 27 06:58:40 you're commiting the same fixed values Oct 27 06:58:41 usernam didn't exist Oct 27 06:59:05 never used that listener Oct 27 06:59:50 no_mind: sorry, no idea Oct 27 07:00:06 just tried a remove too, but nothing Oct 27 07:00:39 shmoon_, any reason you're not using .getDefaultSharedPreferences() ? Oct 27 07:01:54 nope no reason Oct 27 07:01:59 I'll try that wait Oct 27 07:02:40 yessir Oct 27 07:02:45 same no dump Oct 27 07:02:55 SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this); Oct 27 07:04:23 no idea then, I use the same pattern in my app and it works Oct 27 07:05:21 ok hm Oct 27 07:05:24 try something else, like making a toast Oct 27 07:05:26 let me restart android studio then Oct 27 07:07:57 ok strange it orks now o.O Oct 27 07:08:26 so much about using beta-quality software Oct 27 07:20:28 g00s, I found this to be helpful in explaining Material Design: http://android-developers.blogspot.com/2014/10/implementing-material-design-in-your.html Oct 27 07:20:44 WhoNeedszZz thanks, i read that Oct 27 07:20:50 Ah cool Oct 27 07:21:02 I'm almost through the google developers video Oct 27 07:21:32 i filed a bug for the textColorPrimaryInverse shit being busted Oct 27 07:21:55 "New internet trend sees people using live rabbits as smartphone cases" what is wrong with these people :| Oct 27 07:22:00 I joined the cool kids and threw some Lollipop stuff on my GS5 Oct 27 07:22:35 The keyboard popup is borked though so i disabled it Oct 27 07:23:11 Got the new gmail until i get an Inbox invite Oct 27 07:23:35 g00s, that seems made up Oct 27 07:24:09 Currently trying to find a grouper rom i like Oct 27 07:24:47 Was using a modified version of Slimkat, but the dev messed it up pretty bad Oct 27 07:25:36 sounds like an onion headlike g00s Oct 27 07:26:08 http://phandroid.com/2014/10/23/live-rabbit-smartphone-cases/ Oct 27 07:26:51 pfft Oct 27 07:27:26 thats the great thing about my $69 phone; i dont feel the need to use a case :) Oct 27 07:27:38 or screen protector Oct 27 07:27:47 not even if it's a live rabbit?? Oct 27 07:27:51 makes life so much easier not worrying about an expensive device Oct 27 07:27:55 I have a basic shell on my S5 Oct 27 07:28:02 No screen protector Oct 27 07:28:23 9~/win 3 Oct 27 07:28:35 I love my device and I take great care of it, but I wouldn't say life is more difficult because of that Oct 27 07:28:40 I never did understand why people put a screen protector on gorilla glass Oct 27 07:28:44 I've been wondering, when I launch an app like facebook, whatsapp, gmail - the recetn activities chat/mail/wal posts quickly show up. By recent I mena the ones that I'd seen before. It doesn't fetch them again hence I believe they do some sort of aching as messages/emails are coming in. How do they accomplish that any idea? Oct 27 07:28:51 WhoNeedszZz, what's not to understand there? Oct 27 07:29:01 gorilla glass is shatter-proof, not scratch-proof Oct 27 07:29:10 Oh? Oct 27 07:29:13 yes Oct 27 07:29:18 That wasn't my understanding Oct 27 07:29:23 I've never gotten a scratch on it Oct 27 07:29:24 need to read up on it more Oct 27 07:29:26 I have Oct 27 07:29:29 plenty Oct 27 07:29:38 one straight across the front cam Oct 27 07:29:39 yeah, get the right sandpaper :) Oct 27 07:29:47 Only time i ever got a scratch on any phone was when i accidentally put my keys in the same pocket Oct 27 07:29:49 was pretty obvious when using that cam Oct 27 07:30:22 either way, the screen protector is a must for me Oct 27 07:30:33 and without the case my phone is just too slippery Oct 27 07:30:43 damn thing can't stay off the ground Oct 27 07:30:43 I hate it because it messes with the sensors Oct 27 07:31:03 that might be an issue with your phone, I never had any problems with mine Oct 27 07:31:16 or, you're using cheap and crappy protectors Oct 27 07:31:16 Every phone i put one on that happened Oct 27 07:31:22 OG droid to S4 Oct 27 07:31:33 Nah I got the recommended ones Oct 27 07:31:47 well on mine I barely have to touch the screen and it recognizes Oct 27 07:31:55 with or without the protector Oct 27 07:32:10 literally no difference Oct 27 07:32:32 shmoon_, ever heard of syncing? Oct 27 07:32:33 I mainly had issues with the keyboard Oct 27 07:32:47 Phantom touches Oct 27 07:33:22 dunno what to tell you, I feel this is somehow specific to you as I've never had such problems Oct 27 07:33:35 definitely not on my device, but also on most others Oct 27 07:33:50 Well it happened on every phone i used it on and i even had other people put it on to see if it was how i put it on Oct 27 07:34:13 ok Oct 27 07:39:00 aha ! found it Oct 27 07:39:03 @color/abc_primary_text_material_dark Oct 27 07:39:09 thats wrong Oct 27 07:40:47 see, google just got several houts of free QA from mee Oct 27 07:41:53 if only they were aware of that Oct 27 07:42:22 ravilov oh i'm sure they are, its the business model: wealth is extracted from everyone and flows to a few Oct 27 07:42:46 sounds like that "scam pyramid" or whatever it's called Oct 27 07:43:00 you are probably thinking ponzi Oct 27 07:43:06 yeah that Oct 27 07:43:11 chain letters and stuff Oct 27 07:43:29 someone said ponzi scheme?! Oct 27 07:43:39 nope Oct 27 07:43:40 none at all Oct 27 07:43:52 actually Jarrod Lanier wrote about it here http://www.amazon.com/Who-Owns-Future-Jaron-Lanier-ebook/dp/B008J2AEY8 Oct 27 07:43:53 oh my Oct 27 07:43:54 (funny highlight though) Oct 27 07:44:59 I am working on my first Android app -- is there an easy way to set action bar font in XML the same way you can set your action bar color? Oct 27 07:45:23 http://pastebin.com/Wmy9dBK0 this is what I have right now Oct 27 07:45:24 depends Oct 27 07:46:01 parent="..." should not use the @ notation btw Oct 27 07:46:14 parent="android:Theme.Holo.Light.DarkActionBar" Oct 27 07:46:40 also, did you try ? Oct 27 07:47:50 liuwenhao: negative, if you want a custom font at least. Oct 27 07:47:54 What is the syntax like? This? @style/simfang.ttf Oct 27 07:47:59 no Oct 27 07:48:16 absolutely not Oct 27 07:48:21 let me grab some code for you liuwenhao Oct 27 07:48:29 Sorry, I am just starting my first app yesterday Oct 27 07:48:32 Thank you Oct 27 07:48:45 in short, no, there is no easy way to use a custom .ttf Oct 27 07:49:09 So how would I use it then? Do I need to set the font in the onCreate method? Oct 27 07:49:14 also, this channel is probably not the best place for noobs, there are plenty other resources available all over the internet Oct 27 07:49:24 yes, probably Oct 27 07:49:27 definitely in code Oct 27 07:50:17 liuwenhao: http://pastie.org/9678093 Oct 27 07:50:30 liuwenhao: onCreate and whenever you update the title Oct 27 07:50:56 liuwenhao: note that "Flama-Medium.ttf" is in "assets/fonts/" Oct 27 07:51:16 Credit: Tristan Waddington Oct 27 07:51:39 Thank you a lot, I spent a long time trying to find a good answer on Google but could not get anything working. I will try this code out right now Oct 27 07:56:29 I should probably sleep. Oct 27 07:56:35 lameee Oct 27 08:04:36 Ponzi scheme or pyramid scheme? Oct 27 08:07:06 yes Oct 27 08:18:08 Night Oct 27 08:54:29 hello. i’m just about getting started with android development Oct 27 08:55:23 when i launch the android sdk manager, what will i need to get started? Oct 27 08:56:14 there are lots of references to build tools and images and whatnot Oct 27 08:56:46 java knowledge and lots of tolerance for some of the android platform…things :) Oct 27 08:57:16 i’ve some java knowledge Oct 27 08:57:35 for example, i was wondering what the images are necessary for Oct 27 08:57:50 emulator ? Oct 27 08:58:00 you mean the "system" images Oct 27 08:58:25 yes Oct 27 08:58:36 why not genymotion ? ;) Oct 27 08:58:53 they’re pretty large, and i’d rather not download anything unnecessary Oct 27 08:59:05 gordon_ well I can think of reasons Oct 27 08:59:38 StingRay_: masochism is not the reason ;) Oct 27 08:59:50 jk, atom images works pretty well Oct 27 09:00:01 was testing lolipop lately Oct 27 09:00:13 scruz: do you have android phone ? Oct 27 09:00:23 yes. Oct 27 09:00:44 so you dont need to download any images Oct 27 09:00:56 you need build tools and sdk Oct 27 09:01:11 mine’s pegged at ics Oct 27 09:01:33 I'd just download every sdk from ics Oct 27 09:01:34 so i guess if i want to test on lollipop for instance, i’d need one of the relevant images Oct 27 09:01:44 yes Oct 27 09:01:55 ok, that’s helpful. Oct 27 09:01:59 i’m starting from 2.3 Oct 27 09:02:06 and lolipop sdk Oct 27 09:02:18 I dont think it's good to code for 2.x if you dont need to Oct 27 09:02:28 it's old and support fragment manager is.... Oct 27 09:02:33 as it is ;) Oct 27 09:02:47 i don’t need to, but i’m thinking of it as a baseline. Oct 27 09:02:59 base line now is android ics Oct 27 09:03:08 2.x is like 10% ? Oct 27 09:03:25 close, 11 Oct 27 09:03:27 https://developer.android.com/about/dashboards/index.html Oct 27 09:03:38 it will give you more headache ;) Oct 27 09:04:10 ok Oct 27 09:04:13 just personal advice Oct 27 09:04:17 thanks Oct 27 09:04:30 I would *love* to drop support in this app for 2.x Oct 27 09:12:59 gordon_ what app is it ? Oct 27 09:13:33 I mean like the target and current userbase will not be all of that 11% :) Oct 27 09:13:48 maybe more like 20% of that 11% :) Oct 27 09:21:33 StingRay_: 20% of users are on android 2.x Oct 27 09:21:34 :( Oct 27 09:21:46 oh really, that high still ? Oct 27 09:22:01 yep.. Oct 27 09:22:15 not checked in a while, thats surprising, guess AndroidOne will change that Oct 27 09:22:17 most problemsy with android 2.x are memory problems Oct 27 09:22:36 and fragment commits Oct 27 09:36:00 can someone point to an example were a fragment is used to display a list of string in a dropdown list - I'm using Android 4.4 & I don't need backward compatibility, and I don't have time to get into Android 5 (& I may never need it for this project) Oct 27 09:36:02 I have looked at examples using import android.widget.Spinner - but I must be missing the OBVIOUS, because I can't seem to adapt them to work in my situation Oct 27 09:38:18 What in the spinner does not work for you ? Oct 27 09:38:58 why do you need the spinner ? Oct 27 09:39:14 Nivag yeah a fragment is not really used as a spinner,dropdown or whatever.. thats just ….erm a spinner,autocomplete blaa or some UI component driven by adapter etc Oct 27 09:40:06 so maybe he wants.. dialogfragment? Oct 27 09:40:56 end of the day you can guess as much or as many times, wait for him to tell us :) Oct 27 09:42:06 true Oct 27 09:42:37 StingRay_: the app is will run on dedicated tablets, each one displays usser & other info, and some can select a role (hence dropdown list), then a more complicated setb of pages are loasded. Oct 27 09:43:16 StingRay_: I thought fragments were appropiate to use for the login & subsequent pages' Oct 27 09:46:23 Nivag: you want to show new fragment with list, select something and close it ? Oct 27 09:46:30 show the design ;) Oct 27 09:46:37 there are no sdk 5 samples out? Oct 27 09:47:08 sdk 5 ? Oct 27 09:47:19 that's pretty old sdk Oct 27 09:47:27 you mean lolipop sdk ? Oct 27 09:47:30 android 5.0 / api 21 Oct 27 09:47:32 (sdk 21) Oct 27 09:47:50 5 (with less wasteless bytes) Oct 27 09:48:06 http://www.google.com/design/spec/material-design/introduction.html Oct 27 09:48:19 gordon_: yes. select a role & if password is valid switch to the next fragment - current plan Oct 27 09:48:21 samples Oct 27 09:48:30 http://developer.android.com/training/material/index.html Oct 27 09:49:04 like "Samples" in the sdk 20 - 8 Oct 27 09:49:10 that I dont know Oct 27 09:49:22 there were samples? ;) Oct 27 09:49:26 names "Samples for the SDK" in the sdk manager ;) Oct 27 09:49:35 let me check Oct 27 09:49:36 * Nivag is trying to resist the temptation to spend more time looking at Android 5 until AFTER I've completed current project! Oct 27 09:50:07 Nivag: so ? change the fragment if password is ok or not Oct 27 09:50:16 with fragemnt manager Oct 27 09:51:59 http://paste.fedoraproject.org/145441/14144034/ is probably the key parts Oct 27 09:53:02 gordon_: I am happy with changing fragments, I think I understand that, it is the dropdown that is giving me problems Oct 27 09:53:42 what problem do you have with spinner ? Oct 27 09:55:13 argh! trying to copy line from log... :-( Oct 27 09:56:10 gordon_: ArrayAdapter requires resource id to be a TextView Oct 27 09:57:00 so is R.layout.activity_main a textView ? Oct 27 09:57:04 http://developer.android.com/guide/topics/ui/controls/spinner.html Oct 27 09:57:36 yeah, as always the tutorials/guides + reading to the rescue :) Oct 27 09:57:40 Morning all Oct 27 09:57:49 i have > 4 gigbytes of maven indices in my android studio's cache folder.. is this really necessary? can I decrease it? Oct 27 09:57:53 Dublin is like a ghost town today Oct 27 09:59:30 StingRay_: I will do a bit more investigation - currently I'm very tired & error prone (almost 11pm here in NZ) Oct 27 10:01:21 Nivag: you can do spinner.setAdapter(new ArrayAdapter(this,R.layout.spinner_textview, menuItems)); where spinner_textview is a textview layout xml file and menuItems is a string array in strings.xml Oct 27 10:01:27 currently, I'm sick ;) Oct 27 10:03:55 shmooz: looks good - need to think a bit & investigate... Oct 27 10:05:12 * Nivag wonders if any is not tired, sick, frustrated, ill, stressed, depressed, or otherwise far from perfect! :-) Oct 27 10:05:26 * Nivag anyone Oct 27 10:06:22 Nivag: there is like one xml source Oct 27 10:06:30 and 5 lines of java code... Oct 27 10:06:41 I even gave you the link Oct 27 10:06:50 it's not rocket science ;) Oct 27 10:07:49 JakeWharton, do you prefer using maven to build instead of gradle? if so, why? Oct 27 10:08:14 JakeWharton, i see a lot of the example code pumped out of square github uses maven ;o Oct 27 10:08:36 gordon_: yea, its not M-theory, or General Relativity, or Quantum Electro Dynamics either... :-) Oct 27 10:09:20 gordon_: am looking at your link & related stuff Oct 27 10:10:24 the 6.0 emulator as the 5.0 API demos - where's the source? Oct 27 10:10:47 sry 5.0 emu Oct 27 10:11:04 in your sdk's folder Oct 27 10:11:21 nop Oct 27 10:11:30 no SDK samples for api 21 :( Oct 27 10:11:57 they will problably come with android sources Oct 27 10:12:08 I have to remove appcompat directory form a git tracked folder. Should I do git rm appcompat first and refresh eclipse workspace or should I remove the appcompat from Eclipse and then maybe do git rm? Oct 27 10:12:15 gordon_: that makes sense Oct 27 10:12:28 but I'm just guessing Oct 27 10:13:04 i prefere stealing code then coding trial & error ;) Oct 27 10:13:35 true Oct 27 10:13:43 you can check iosched project Oct 27 10:14:06 i am one of the androidbinding author Oct 27 10:14:16 we'd like to add support to api 21 Oct 27 10:14:20 and ramain guy's project from google i/o Oct 27 10:14:38 but i'd like to get 100% working code ;) not my interpretation of the DOCs ;) Oct 27 10:15:16 http://android-developers.blogspot.jp/2014/10/implementing-material-design-in-your.html Oct 27 10:15:22 e.g. cardview - i currently have no working example Oct 27 10:15:24 this is what I checked over the weekend Oct 27 10:15:56 notice two things -> animations and ripple effects wont work on andorid pre 5.0 Oct 27 10:16:20 but you can change actionbar to toolbar Oct 27 10:20:13 i finally have to deal with animations in androidbinding Oct 27 10:22:02 I want to check them too Oct 27 10:22:05 look awesome Oct 27 10:22:21 and not especially difficult Oct 27 10:24:05 gordon_: It was as obvious as I thought, I completely overlooked the detail about supplying a dedicated layout xml file - once I did that... no problems! Thanks gordon_ and others! Oct 27 10:31:10 Hi Oct 27 10:32:02 Ive been struggling with RSS feed applications in Android. I follow some tutorials but I still dont get how it works. I wonder if anyone has time to walk me through some tutorials and answer my question Oct 27 10:33:36 peyam if you have specific questions then ask Oct 27 10:33:48 but not sure anyone will do 1 to 1 tutorials with you Oct 27 10:34:25 thats tutoring and is classed as private training, sure there are some places that do that though Oct 27 10:34:26 yes. I will ask instead Oct 27 10:34:48 yes. my teacher is not available and she sucks Oct 27 10:35:11 lol Oct 27 10:36:24 Hello Oct 27 10:36:25 well, to say someone sucks at a topic that one is not a master of, little harsh imho Oct 27 10:37:48 StingRay_, she doesnt explain how stuff is done. she just says.. "yes we have this,, no problem.. and this. now we write this" Oct 27 10:37:50 I'm trying to flash a rom via adb with a premade script and when it installs TWRP recovery it fails saying it doesn't have the necessary privalages. Any ideas? Oct 27 10:38:16 peyam, then change your teacher? Oct 27 10:38:24 cant Oct 27 10:38:29 Zer0The0rem, nothing to do with this channel, see topic Oct 27 10:38:55 ravilov, sorry Oct 27 10:39:06 peyam: is it a school? Oct 27 10:39:08 college? Oct 27 10:39:19 I was never taught android at school, hence wondering Oct 27 10:39:20 shmoon_, college Oct 27 10:39:25 I see, not even in college Oct 27 10:39:33 they never taught mobile development Oct 27 10:39:40 yes that is a little strange if they now teach android development in college Oct 27 10:39:46 only basic web that you can't do anything with Oct 27 10:40:30 peyam: thats how colleges are, you know :) Oct 27 10:40:39 but I am sure with the help of people here you can ace your android skils Oct 27 10:40:40 yes Oct 27 10:40:59 well no, you can ace them with google searches and offical docs Oct 27 10:41:09 official* Oct 27 10:41:19 well i dont think its been in college for a long tie Oct 27 10:41:23 time* Oct 27 10:41:27 ya that too, I mena help of people here when you're stuck Oct 27 10:41:31 so .. I just choosed a course Oct 27 10:41:52 monsti: https://github.com/romainguy/google-io-2014 Oct 27 10:52:11 Okej let me explain my problem. I want to do a RSS feed aplication and parse the RSS. I have 4 files, Feed.java ( which I dont know what it does). Nyhet.java (which I dont know what it does) ,RSShandler(which parses the rss and Nyheter_i_listan(which shows the news) and VisahelaNyheten.java( which shows when you click on the item). My first problem is : what are Feed.Java and Nyhet.java and why do I need them? http://pastebin.com/j1BQayMC Oct 27 10:55:08 peyam: read the code of your files Oct 27 10:55:37 yes. still dont get it Oct 27 10:55:45 why do I need a feed.java Oct 27 10:56:03 no idea - it's your code Oct 27 10:56:44 it s from my teacher Oct 27 10:57:12 maybe feed is the parser, the downloader or order pizza ;) Oct 27 10:57:21 no Oct 27 10:57:41 the Nyheter_i_listan.java download and RSSHandler parses it Oct 27 10:57:49 and I dont know what Feed.java does Oct 27 11:01:05 peyam you are asking for 1 on 1 tutorials again Oct 27 11:01:11 just in a round about way Oct 27 11:01:17 it akes me just crazy Oct 27 11:01:23 I dont understand x, can someone teach me x Oct 27 11:01:29 yes Oct 27 11:01:41 thats what you pay a teacher/tutor for Oct 27 11:02:29 StingRay_, answer my simple question. what is The Namespace URI? Oct 27 11:02:45 * monsti takes 1 $ per 1 byte Oct 27 11:03:01 peyam: get a book on XML Oct 27 11:03:07 simple answer Oct 27 11:03:12 StingRay_, I m reading about http://www.saxproject.org/apidoc/org/xml/sax/helpers/DefaultHandler.html#startElement%28java.lang.String,%20java.lang.String,%20java.lang.String,%20org.xml.sax.Attributes%29 Oct 27 11:03:28 sax is a XML parser Oct 27 11:03:29 startElement and I have hard time understanding te parameters Oct 27 11:03:37 if you have no clue about XML - learn xml ;) Oct 27 11:03:47 Touché Oct 27 11:03:48 I know a little xml. Oct 27 11:03:56 peyam you should learn Oct 27 11:04:02 ofcourse Oct 27 11:04:09 absolute answers will do you more harm than good Oct 27 11:04:23 at this stage anyway Oct 27 11:04:56 Hey guys can I ask a question related to how android works and live memory forensics ? Oct 27 11:06:15 I wonder if the android's settings app's source code is available anywhere or not Oct 27 11:06:27 trying to understand how is it built with Preference APIs Oct 27 11:06:35 what does prefix mean? is it the tags? Oct 27 11:07:21 peyam: no it's called "namespace" Oct 27 11:07:34 peyam: that's what you should read about in your XML book Oct 27 11:07:44 wait. Oct 27 11:07:49 peyam: you will also learn what the URI is in this context Oct 27 11:08:01 so localName - The local name (without prefix), or the empty string if Namespace processing is not being performed. Oct 27 11:08:11 what does without prefix mean? Oct 27 11:08:13 no idea what you are talkting about Oct 27 11:08:21 -t sry Oct 27 11:08:57 maybe localName is some SAX interpretation of that Oct 27 11:09:30 please tell me what "without prefix" and "with prefix "means Oct 27 11:10:09 peyam which bit is confusing ? with and without ? or prefix ? Oct 27 11:10:10 i can't do that - a XML book can do that - check the chapter "namespaces" Oct 27 11:10:20 cause either or you are in the wrong place to ask things like that Oct 27 11:10:55 I want to understand what this Startelement function does. and these parameters. I dont know what prefix is and what "with/without prefix" means :( Oct 27 11:11:26 peyam: 10 print "I don't understand $x " : GOTO 10 Oct 27 11:11:38 hello, I just got a new nexus5, and the reception seems to alternate between excellent (full strength) and horrible (none to one bar). could that be a ROM problem (running omnirom), or would you assume a hardware problem? Oct 27 11:11:47 peyam: you cant expect to understand a librbary that uses XML unless you learn XML first... go learn XML then maybe you'll get it Oct 27 11:11:48 and it says " the local name (without prefix) " what is local name :( Oct 27 11:11:59 CQ wrong channel, this is app development Oct 27 11:12:08 StingRay_: oh, sorry Oct 27 11:12:49 -"Hey guys what's this?" -"Uh, you don't even know what this is? Go learn some basics." -"So what does this other basic thing mean?" Oct 27 11:13:11 Lorenz9: yes that's called nested loops ;) Oct 27 11:13:24 Ohh! Oct 27 11:13:26 What does loop mean? Oct 27 11:13:31 I j ust made this app without even understanding it Oct 27 11:13:38 Lorenz9: << is an eliza bot ;) Oct 27 11:13:45 Lorenz9: "tell me more about basics" Oct 27 11:14:02 Sorry but no, I don't even know who eliza is Oct 27 11:14:31 But you can call me anything you want ;) Oct 27 11:14:47 gah. Ive lost my variables tab/window again in IntelliJ Oct 27 11:15:07 Eliza is a lisp based "AI". Very 1980s. Oct 27 11:15:31 and it only works in english ;) Oct 27 11:15:44 anyone one know how to get my variable window back in AS/Intelij Oct 27 11:16:32 I had no idea. Gotta love female names for bots Oct 27 11:17:44 Lorenz9: let's talk more about "female names for bots" Oct 27 11:18:24 lets not Oct 27 11:19:22 It's not like there's anything else to say about it haha Oct 27 11:21:08 since you didn't even know what or who Eliza was or is then that's quite some statement. Oct 27 11:21:30 Not about eliza, about female names for bots Oct 27 11:23:11 And yeah, I already confessed I have no idea about Eliza. No need to step on me! Just meant to say I get a nice feeling with female bots :( Oct 27 11:26:14 Anyone? Im staring at the docs for Intellij and Im not seeing the "restore X" buttons to restore debugger tabs. Ive lost my variable window. Oct 27 11:29:17 rgr you mean Frames ? Oct 27 11:29:35 and the Variables to the right ? Oct 27 11:30:13 Hi, have people here worked with MvvmCross? Reference: http://visualstudiomagazine.com/articles/2013/02/01/building-android-apps.aspx Oct 27 11:30:45 Just wanted to know what were the major pain points etc Oct 27 11:34:44 itissid: i don't suggest using mono for android Oct 27 11:35:07 monsti: What are the pain points? Oct 27 11:35:22 there is no reason to use c# Oct 27 11:35:32 c# and java are very very similar Oct 27 11:35:56 in almost no project you have a comon "functional" non-ui core that you want to share beteween several c# projects Oct 27 11:36:36 and in any case you have to deal with android layout XML files Oct 27 11:38:21 monsti: Are you suggesting that the non-ui components is so tightly coupled with the UI that it gives little benefit to use MvvmCross? Oct 27 11:38:31 Like you suggest the layout XML files? Oct 27 11:38:46 itissid: there is no other way for android Oct 27 11:38:46 s/the/with the/ Oct 27 11:38:52 you have to use the XML files for layouts Oct 27 11:38:58 even with mono Oct 27 11:39:43 so you have to write the UI for wpf, windows phone and android Oct 27 11:39:49 and can't share that code Oct 27 11:40:15 so there is no real advantage to use c# (you pay with 1-2 extra mb of download for the mono runtime) Oct 27 11:45:53 monsti: thanks for the description. I will post more questions as I explore this space. I was generally looking at a framework that help me decouple behavior and state and wondering what the different frameworks help in doing that. Oct 27 11:46:13 itissid: google for android binding Oct 27 11:47:07 monsti: Purrfect! thanks Oct 27 11:47:21 Man Thats why I love IRC Oct 27 11:47:27 or I guess we all do Oct 27 11:47:37 ask if you have questions - i am one of the developers ;) Oct 27 11:47:51 we need help for android 5 ;) Oct 27 11:51:34 what windows flags cause layout inside bounds of sys and nav bars when using FLAG_TRANSLUCENT* thought FLAG_LAYOUT_INSET_DECOR but seems to do nothing Oct 27 11:52:32 Is it a window flag? Thought it was android:fitSystemWindows="true" or equivalent Oct 27 11:55:24 Estel thankyou, yes it's myViewGroupRoot.setFitsSystemWindows(true) **** BEGIN LOGGING AT Mon Oct 27 12:03:18 2014 Oct 27 12:11:07 StingRay_: yes. the variables list when debugging. Its gone. Nowhere to be seen. Oct 27 12:13:26 I see watches but no variables. Oct 27 12:13:35 (there was a local variables list there) Oct 27 12:17:26 rgr do you see a light brown stack on the right of the window ? Oct 27 12:17:36 Debug Android window obviously Oct 27 12:21:06 mate, Ive got it back. I dont know how. A restart..... Cheers anyway. Oct 27 12:21:20 (that stack wasnt there before!) Oct 27 12:40:42 beta quality software at its finest :p Oct 27 12:54:37 SimonVT erm, your drawer doesn't respect TRANSLUCENT + fitSystemWindows … btw thats more of a question Oct 27 12:55:09 O.o Oct 27 12:55:30 well it goes under the sys and nav bars Oct 27 12:55:39 my words are failing me today :) Oct 27 12:56:54 really? better watch this then! https://www.youtube.com/watch?v=aqNE7qGHiLQ Oct 27 13:02:20 Hi, anyone know how I can go about setting auto updates for an app that won't be installed through the Play store? Oct 27 13:03:34 google auto-update-client Oct 27 13:10:31 Has anyone set up the google play games management console? hide-o-matic etc? Oct 27 13:10:53 not sure what to put as the launch URL in the play console, it doesn't like http://localhost/ Oct 27 13:11:17 i am now officially blocked out of the developer console Oct 27 13:11:23 for refusing the new agreement Oct 27 13:11:41 mikedg, \o/ Oct 27 13:11:56 I accepted it but I won't give them my address, if they block me I don't care Oct 27 13:12:03 i unpublished all my apps too Oct 27 13:12:18 I don't have any ads and all my apps are free though Oct 27 13:13:03 Zharf, whats the big deal Oct 27 13:13:09 give a fake address Oct 27 13:13:36 principle Oct 27 13:13:45 also I don't care if I'm in google play or not Oct 27 13:13:48 it's a crap service anyway Oct 27 13:14:13 Thats where the biggest consumer base is Oct 27 13:14:24 But if u dont want to put ur apps there then sure, dont Oct 27 13:14:24 I don't write software for consumers Oct 27 13:14:27 I write them for myself Oct 27 13:14:35 if someone else wants to use them, fine, I don't care Oct 27 13:15:18 what do you do for a living? Oct 27 13:16:04 I work for a company, occasionally they ask me to write some code for them but most of the time I just work on my own projects Oct 27 13:16:07 -.- Oct 27 13:17:01 LIVING THE DREAM Oct 27 13:17:05 which company? Oct 27 13:17:12 doesn't matter Oct 27 13:17:13 and how do I get hired haha Oct 27 13:17:31 I wish i had the time to write some recreational code Oct 27 13:18:42 I would jump ship to a musical "career" (audio designer, composer, etc) at any point if I had the opportunity Oct 27 13:21:31 I would like to work for someone like Square Oct 27 13:21:44 so much to learn from people like JakeWharton Oct 27 13:21:56 And bang out open source code all day err day Oct 27 13:22:25 they're hiring afaik Oct 27 13:22:37 I would like to work for native instruments or cockos, but I don't want to move to germany or the US :p Oct 27 13:22:39 I know, I'm in a completely different country though Oct 27 13:23:24 I actually want to move Oct 27 13:23:28 I prefer smaller companies that actually do something useful Oct 27 13:23:33 But i'm looking for at moving to Canada or somewhere Oct 27 13:23:37 Vancouver Oct 27 13:23:56 most places in the world are too hot for me Oct 27 13:23:58 even here Oct 27 13:24:06 aircon Oct 27 13:24:10 its 37* here today Oct 27 13:24:13 :E Oct 27 13:24:41 it's around 10C here Oct 27 13:25:26 "too hot" Oct 27 13:25:30 "10C" Oct 27 13:25:32 rofl Oct 27 13:25:45 what are you, a snowman? Oct 27 13:25:48 I love it when it gets down to around -20C Oct 27 13:25:56 but it's rare these days :E Oct 27 13:27:34 I love it when it's cold too Oct 27 13:27:46 It's so cozy Oct 27 13:28:36 But you have heaters Oct 27 13:28:42 What temp do you set those on? Oct 27 13:29:05 its all good and well saying you love -20C, but if your room temp is sitting at around 15C... Oct 27 13:29:19 15C is naked time Oct 27 13:29:22 Well I mean when it's cold outside and I'm wearing heavy clothing Oct 27 13:29:37 i would never be able to live like that lol Oct 27 13:29:45 cold is nice because you can always put on more clothes to manage, hot isn't anywhere near as easy Oct 27 13:29:52 Exactly Oct 27 13:30:05 And more if it's heat + humidity, then it's the worst. Oct 27 13:30:22 my guitars don't like it either Oct 27 13:31:00 Hi guys.. I have a quick question if someone is around Oct 27 13:31:09 ask, don't ask to ask Oct 27 13:31:27 I am using android:Theme.Material.Light.DarkActionBar on styles-v21 Oct 27 13:31:36 but the window doesn't show full screen Oct 27 13:32:07 I mean, there is a weird spacing between my app and the borders of the screen, showing al little bit of the wallpaper Oct 27 13:32:17 Here's my climate: http://www.pethealthcare.co.za/sites/default/files/styles/listings-gallery-large/public/accommodation-listings/2013-03-15/Pet-Friendly-Accommodation-Beaverlac11.jpg?itok=MTZ00E0j Oct 27 13:33:26 it doesn't matter what your climate is Oct 27 13:33:41 It does Oct 27 13:33:44 We were just talking about it Oct 27 13:36:11 hi., i have this image whit this gradient in bottom, how i can do this? Oct 27 13:36:49 a layered list drawable Oct 27 13:38:19 thanks Oct 27 13:38:40 fmontano, interesting, I reproduced... I'll try to investigate Oct 27 13:39:14 Zharf: Thanks a lot! this has been driving me nuts for a few hours now. Oct 27 13:41:26 wonder if I should update this to the latest preview first Oct 27 13:46:09 mh Oct 27 13:46:15 I don't think I remember the google account I had on this -.- Oct 27 13:46:47 is it possible to create private folders in android that no one else can access Oct 27 13:46:55 in external storage (for photos, videos) Oct 27 13:47:10 nevermind, remembered it after all Oct 27 13:47:25 shmoon_, in external storage, no Oct 27 13:48:40 hm I see Oct 27 13:48:47 I wonder then how some apps lets you create private albums Oct 27 13:48:58 or make your selected photos private Oct 27 13:49:02 do they store in their internal storaage? Oct 27 13:49:09 and delete from external ? Oct 27 13:49:20 encryption ? Oct 27 13:49:21 no clue, never used those apps Oct 27 13:50:08 encryption hm Oct 27 13:50:28 must be complicated to do that then Oct 27 13:54:51 how i can blur background image in swipe ? Oct 27 13:57:16 so has anyone signed up to be a helper for the android dev helpouts? Oct 27 13:57:37 it's a cool concept but the whole system kind of sucks since nobody can share information with other helpers Oct 27 13:57:42 mikedg are you even allowed ? :) Oct 27 13:57:49 :) Oct 27 13:57:57 that sounds like a terrible idea for anyone who knows what they're doing Oct 27 13:58:08 they'd burn out in no time Oct 27 13:58:10 i cant even begin to count the number of people who can't downlaod the damn SDK Oct 27 13:58:48 Zharf: hah yeah, i sit here thinking, google should be paying me Oct 27 14:00:09 maybe they'll hire you, so long as you agree to keep working for free Oct 27 14:00:13 lol Oct 27 14:01:18 they'd require you to agree to your google play developer account terms first Oct 27 14:01:30 ahah thats hilrarious actually Oct 27 14:08:28 Is the source of the v7 Support Palette library published somewhere ? Oct 27 14:14:41 fmontano, are you using the preview images? I'm thinking it's a bug/incomplete theme related issue on that since it seems to work on android 5 emulator Oct 27 14:15:01 Zharf: yes. that's the preview image.. Oct 27 14:16:07 Zharf: interesting.. Changing it to 5.0 instead of L preview Oct 27 14:32:14 anyone here use SimonVT Drawer ? Oct 27 14:32:31 * StingRay_ is confused to hell, and maybe too tired also Oct 27 14:33:53 setFitsSystemWindows(true) seems to have no desired result with it :( Oct 27 14:37:02 hey all Oct 27 14:42:30 hi, i have a xml layout that i merge in to all my other layouts via the merge command. Now i want to place items in my relative view relative to items in the merged xml, but eclipse keeps complaining that the id's dont exist. What am i missing? Oct 27 14:51:29 asperon not sure the merge takes place in the layout editor Oct 27 14:51:59 also think you may be thinking wrong to want to relative rule something outside of a group to something inside rather than jus the group Oct 27 14:52:05 if you get me :) Oct 27 14:52:31 the whole point with a merge instead of an include is to be able to merge it inside a layout Oct 27 14:53:02 no I mean you are wanting a rule that is inside something to anchor something outside that something Oct 27 14:53:40 no, they are all inside Oct 27 14:53:46 like Oct 27 14:54:08 Oct 27 14:54:16 that doesn't work Oct 27 14:54:32 well no it wont Oct 27 14:54:48 or not that I have ever used Oct 27 14:55:12 cant align uncles to nephews :) Oct 27 14:55:14 huh, if I use activity.getWindow.setLayout(w, h) and .setSoftInputMode(ADJUST_RESIZE); the keyboard never makes the activity window resize :( Oct 27 14:55:20 that's pretty annoying.... Oct 27 14:59:54 StingRay_: my nephew is always alligned to me ;) Oct 27 15:01:27 hey, anyone happen to know of a mock location provider that incrementally changes the location instead of abruptly? Oct 27 15:01:47 Is there something more than uninstall that I can do to make totally sure that all old files for a certain app are purged from my phone Oct 27 15:02:01 i'd prefer for it to follow a route, say one dictated by google's navigation api, to and from some location Oct 27 15:03:04 Is there some tutorial/guide/paper/goodpractice for working with the speech recognizer? As it is now, it's only really usefull for dictating text, but not so much for issuing voice commands to a phone. Oct 27 15:03:36 For now I'm trying to parse the information to fill a list of different data from freetext Oct 27 15:05:16 any help with AES encryption http://stackoverflow.com/questions/26590406/aes-encryption-decryption-empty-params Oct 27 15:05:19 it works good enough for short commands, but if it gets a bit longer the context (somewhat medical) is lost and instead of stuff like blood pressure something unrelated is recognized. Oct 27 15:06:44 currently I deal with this by converting each word as well as common erronous recognized words to metaphones, but it's not perfect Oct 27 15:10:10 cliffreich_ does the cypher init not need the IV ? Oct 27 15:10:25 for CBC specifically Oct 27 15:11:18 well in that case the IvParameterSpec Oct 27 15:11:55 oh Oct 27 15:12:26 let me delete that.... the java post had most of that Oct 27 15:12:47 i think i'll just write a python script that connects to the google nav API, gets the directions, then connects to the emulator via telnet and sends mock locations along the route at some reasonable rate Oct 27 15:13:25 afaik the nav API doesn't return a list of GPS points along the route (of course), so i'll have to interpolate somehow between the vertices it does send back...not sure how that'll work for curves... Oct 27 15:16:43 it's just to test a geofence, so it doesn't have to be amazing Oct 27 15:16:52 GLES20Canvas.java line 844 android.view.GLES20Canvas.drawBitmap Oct 27 15:16:53 anyone see one of these lately? Oct 27 15:16:57 ^^ Oct 27 15:16:58 it'd be awesome if i could change the barometer as well Oct 27 15:17:10 mikedg, I just saw it this weekend Oct 27 15:17:12 ;-) Oct 27 15:17:17 i hate you Oct 27 15:17:33 i was just about to say "someone i just talked to, saw this" Oct 27 15:18:37 StingRay_ yeah that worked. but it takes like 5 seconds to execute that in my S3... no way to improve that? Oct 27 15:18:59 well erm…should be quick really Oct 27 15:19:14 not tested my encryptions stuff in ages Oct 27 15:19:42 but I did like, 500k or so an was sh*t quick on nexus 5 Oct 27 15:20:01 im having blank screen for like 5 seconds as i have it as the first line in my onCreate Oct 27 15:20:10 i can make a splashscreen with it but... Oct 27 15:20:16 better ask if im doing something wrong Oct 27 15:20:27 pastebin again now Oct 27 15:20:51 cause with simple strings, it should be instant Oct 27 15:21:08 are you meaning the init is taking the time ? Oct 27 15:21:18 or the actual encryption ? Oct 27 15:22:27 the encryption, because if i remove the function then everything will load normally Oct 27 15:22:28 http://pastebin.com/Y95D98t4 Oct 27 15:23:08 i need that base64 string, not getting it yet as im testing Oct 27 15:24:04 i have this in my main activity onCreate: super.onCreate(savedInstanceState); Oct 27 15:24:04 encrypt(importantKey); Oct 27 15:24:23 because ill need that before crashlytics and else... Oct 27 15:25:13 im just obscuring some keys, in fact i should be decrypting in there Oct 27 15:25:25 but im testing first... Oct 27 15:27:43 maybe my attempts to get pass and salt from distant classes is making it slow Oct 27 15:28:10 im just trying to make it harder as i need to embeed pass and salt with code anyway :) Oct 27 15:30:46 mikedg: Zharf: It seems to work fine on android 5.0.. Seems to be an issue on L Preview? Also, I am using AppCompat theme now.. Thanks for the suggestion mikedg Oct 27 15:33:46 ahh crazy, guess it's just another bug Oct 27 15:34:36 looks like it Oct 27 15:40:52 hi, someone know if there's a hook to intercept app update and make some pre-validations? Oct 27 15:43:36 hi ! quick question, I have my apps, with multiple activity. I'm moving from activty A -> B -> C with "startActivity(intent);". I want, if the users leave activity C, to come back to A (in other term, when moving from B to C, removing B from "history") Oct 27 15:43:40 is it possible ? Oct 27 15:46:15 Had you tried to finalize activity "B" after "C" lauch? Oct 27 15:46:58 nop, trying it right now :) Oct 27 15:47:22 Danielpk: screen on/off shouldn't stop your Volley queue Oct 27 15:47:49 ricardomomm-br: thx dude :-) Oct 27 15:47:52 that was the trick ! Oct 27 15:48:15 Hello guys! I want to run android emulator on a arm board with linux - a panda board for example Oct 27 15:48:28 I have everything in place but I think I need to change the translators libs Oct 27 15:49:20 one of my problems is that collorbuffer.cpp is creating non power of 2 textures, if I adjust them I get a lot of white noise - so I believe I have to change the translators and port gles1 and gles2 to my gles2 libs - is there someone that did this already ? Oct 27 15:49:55 I doubt anyone is running an emulator on native hardware Oct 27 15:50:02 that's a very odd thing to do? Oct 27 15:50:33 ahmedammar, on my board the primary OS is linux on x11 Oct 27 15:50:48 evanc: let explain better, what i want to do is sync my data with webservice. To do that i need to manage when phone has connectivity, i doing it by my self using Volley requestQueue, so if phone dont has connection, i add task to queue again. Is there any lib that make this task easy? Im not sure if this is the best solution to solve this problem. Oct 27 15:51:07 so that's my problem now - it actually works, whitout the translators libs but I hacked the renderer files a little bit Oct 27 15:52:19 bu7ch3r: you're almost definitely on your own, you're probably better off on the mailing lists Oct 27 15:53:21 ahmedamar, yeah, I thought so, I shall try my chance on mailing list, thanks! Oct 27 15:59:06 this encryption is crap... takes 5 seconds per string and now wrong final block lengtrh Oct 27 16:01:23 quit doing it like crap then Oct 27 16:02:17 Danielpk: you can register a broadcast receiver in your manifest that wakes you up when the connectivity changes. you could queue and wait for that to trigger your queue processing. Oct 27 16:03:09 im doing it in the stackoverflow way Oct 27 16:03:36 but still takes 5 seconds per string using aes Oct 27 16:04:24 you're still doing it wrong then Oct 27 16:05:22 hmm yeah Oct 27 16:05:33 65536 iterations of PBKDF#2 with 256-bit key will take 5 seconds Oct 27 16:06:25 cliffreich_, hmm, I'm not sure how much you know about encryption Oct 27 16:06:34 (and you should at least know the basics -_-) Oct 27 16:06:43 but the key derivation function is slow in your case, not AES Oct 27 16:06:49 a key point of the pbkdf algorithm is you select an iterator which is explicitly slow Oct 27 16:07:04 and key derivation functions are explicitly slow, even though Android's implementation is noticably slower than most Oct 27 16:07:21 (e.g. it's about 100-500x slower than native C implementation) Oct 27 16:07:50 NSA-ed ;) Oct 27 16:08:16 there's no reason it should be slower, but I'm also not interested to look into why it might be :P Oct 27 16:08:27 goole is a very small company - they can't afford ASM coders :( Oct 27 16:08:45 bitshift and xor should run at effectively native speed. Maybe they're doing something stupid w/ java object level stuff causing it to do extra duping Oct 27 16:08:55 dragorn, eh, it's just because Dalvik is shit Oct 27 16:09:22 dragorn, it actually calls "derive()" or something like that inside for each loop and method calls are really slow Oct 27 16:09:34 had to use OpenSSL for my last Android project that used AES with PBKDF#2 Oct 27 16:09:43 to get decent encryption speed out of it Oct 27 16:09:46 i didnt know that android was this slow... i took the implementation from regular java code Oct 27 16:09:49 so thats the reason Oct 27 16:10:07 in any case, the whole point is that your function is inefficient and slow - the model is, a legit use of it will only need to do it once or twice, so the slowdown is acceptable. An attacker would need to do it millions of times - you want to make it as painful as possible. Oct 27 16:10:18 cliffreich_: you've got a core misunderstanding about pbkdf i suspect Oct 27 16:10:29 dragorn, meh, still Oct 27 16:10:54 most devices will do a 10000 iteration PBKDF#2 in 150-200ms or so, Android will do it in 1500-3000 Oct 27 16:11:01 which is usually way too slow :/ Oct 27 16:11:05 Danielpk, I may have missed some of your previous conversation, but it may be worth checking out the SyncAdapter framework. It would make some of those issues you're dealing with easier. Oct 27 16:11:52 Mavrik: could be slower than desired, yeah. For cliff's question, however, I suspect he's misunderstanding the deliberate inefficiencies of the repeated hash :) Oct 27 16:12:00 mhm :) Oct 27 16:12:22 dragorn pmarino, i was reading tight now about sync adapter, but i have question about this sync work, something like, how long time will take to proccess queue? Oct 27 16:12:40 dragorn, his encrypted payload was probably specced by the guy on a server which runs through that in 15ms ;) Oct 27 16:12:52 and forgot that users on mobile want to see their messages in due time :P Oct 27 16:13:12 65k iterations seems like an overkill Oct 27 16:13:28 I know that OS will manage and it is dificult to mensure, but you think that it can proccess sync in 5 min? Oct 27 16:14:09 Mavrik: WPA uses, if I recall, 2048. Oct 27 16:14:14 i would use Volley's RequestFuture feature if you use the sync adapter. I believe anything called by the SyncAdapter runs on a different thread, so I had some issues initially integrating Volley. Oct 27 16:14:16 Mavrik: a reasonable benchmark Oct 27 16:14:26 yeah, I've seen numbers like 10k thrown around as a reasonable default Oct 27 16:15:02 is getExternalFilesDir() inside the external storage only? Oct 27 16:15:15 I created a file there but it doesn't show up anywhere not sure what is it meant for Oct 27 16:16:01 shmoon_: external storage has been severely neutered recently Oct 27 16:16:04 shmoon_, well, yes :) Oct 27 16:16:15 shmoon_: you can only write into specific directories now. I don't have a link handy, but google around some Oct 27 16:16:37 mhm, the specific directories include getExternalFilesDir :) Oct 27 16:16:48 I didnt get you guys :S Oct 27 16:16:48 shmoon_, it should be in Android/data/yourpackage Oct 27 16:17:00 on your users mountpoint Oct 27 16:17:25 there's some wierd stuff going on with virtualization of external storage on some devices tho, and I have seen cases when files (which were there) did not always show up in shell / MTP Oct 27 16:17:38 shmoon_: you can no longer write randomly whereever you want in external storage. Oct 27 16:18:01 shmoon_: i don't have a url explaining it handy, look around tho. It's probably in the developer docs, it's definitely talked about elsewhere Oct 27 16:20:09 Thx for info pmarino, dragorn i will try with syncadapter and mesure the results. Oct 27 16:20:24 dragorn:I see Oct 27 16:20:42 Mavrik: just figured ya theres Android/data in AFT but no package with my package name's name Oct 27 16:20:49 strange, maybe thats because of what dragorn said Oct 27 16:21:20 shmoon_: google is trying to kill sd cards. the API is very weird now and they're effectively unusable in a lot of situations. Oct 27 16:21:29 shmoon_, no the point is Oct 27 16:21:47 you're explicitly allowed to write to getExternalStorageDir and some other media dirs (photos and music IIRC) Oct 27 16:21:50 and nowhere else Oct 27 16:21:51 dragorn: i dont have sd card, mine is internal Oct 27 16:22:01 still counts Oct 27 16:22:02 double check if you have WRITE_EXTERNAL_STORAGE Oct 27 16:22:09 ravilov, no it doesn't. Oct 27 16:22:15 also, there won't be yourpackage in Android/data, you have to create it yourself Oct 27 16:22:16 the limitation is only for external secondary SD card Oct 27 16:22:23 oh? Oct 27 16:22:31 if you have internal storage, as of 4.4, you can still write whereever you want Oct 27 16:22:38 that is so weird Oct 27 16:22:44 the limits are just if you have internal + SD card (like S5 or stuff) Oct 27 16:22:50 it's wierd and fucked up as hell yes Oct 27 16:22:59 I need to test on 5.0 though, maybe they "plugged" that hole Oct 27 16:23:09 i have android 4.4 Oct 27 16:23:16 i still need WRITE_EXTERNAL_STORAGE permission ? Oct 27 16:23:22 shmoon_, yes, yes of course you do :) Oct 27 16:23:26 why not just request it and be done with it? Oct 27 16:23:53 "Beginning with Android 4.4, reading or writing files in your app's private directories does not require the READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE permissions." Oct 27 16:24:04 wil add anywya Oct 27 16:24:12 Mavrik, most of the nexuses had no SD card slot, maybe google forgot phones that have it even exist :p Oct 27 16:24:21 oh is already there Oct 27 16:24:34 i am on nexus 4 Oct 27 16:24:42 hmm Oct 27 16:24:47 nevermind then Oct 27 16:24:52 no rational explanation there Oct 27 16:25:06 shmoon_, yeah, no idea what's goin on then Oct 27 16:25:12 shmoon_, if you keep on wondering about the logic of google, you will only ever go insane Oct 27 16:25:17 shmoon_, double check your paths, see return errors in Jva Oct 27 16:25:25 also check in adb shell not in MTP Oct 27 16:25:33 dance 3 times around the computer, that might help Oct 27 16:25:43 yeah MTP is not a real filesystem anyway Oct 27 16:25:52 it's not even a filesystem, it's just a protocol Oct 27 16:26:04 a horrible horrible nowhere properly implemented protocol Oct 27 16:26:23 lol yes its ther ein adb shell not in AFT Oct 27 16:26:41 still can't understand why google decided to drop UMS support Oct 27 16:26:54 alright Oct 27 16:27:10 I guess all these makes lives for developers tough Oct 27 16:27:36 becoming a seasoned expert is never easy Oct 27 16:27:50 ravilov, UMS is a very wierd protocol Oct 27 16:28:02 that can't be implemented in a flash storage like Nexuses and pretty much all devices use Oct 27 16:28:09 they could still leave it for SD cards tho Oct 27 16:28:23 I have yet to see a device where it caused any kind of trouble Oct 27 16:28:33 it was the most useful transfer feature yet Oct 27 16:28:43 ravilov, I don't think you understand Oct 27 16:28:50 if you'd try to use UMS on a Nexus 4 Oct 27 16:28:50 you'd trash the OS Oct 27 16:28:51 :D Oct 27 16:28:58 and the phone would have to be shut down Oct 27 16:28:58 lolwut Oct 27 16:29:06 make my android app Oct 27 16:29:12 ravilov, UMS is block-level protocol, it expects to have a raw storage device exposed Oct 27 16:29:14 complete my android app Oct 27 16:29:25 which in cases of new devices means full partitioning scheme including the OS Oct 27 16:29:39 no it doesn't... Oct 27 16:29:44 and UMS expects to have a single and exclusive access to the block device so you can't have another device writing on it without risking corruption :) Oct 27 16:29:48 my phone has full partitioning internally Oct 27 16:29:56 one of the partitions is the external storage Oct 27 16:30:03 that's why even SD cards are (usually) unmounted when you connect SD :) Oct 27 16:30:03 and only THAT one is ever exported via UMS Oct 27 16:30:23 yeah, and that causses awesome issues in the underlying OS :) Oct 27 16:30:25 that's not how it works on the kernel level, Mavrik - there are emulation layers ;) Oct 27 16:30:36 never caused an issue for me Oct 27 16:30:42 except the obvious unmounting of external storage Oct 27 16:31:15 basically the whole point of MTP was to make a protocol to solve those UMS issues on cameras Oct 27 16:31:20 it's shitty tho :) Oct 27 16:31:52 I don't get why devices don't allow UMS on SD cards anymore tho, that was rather useful. Oct 27 16:31:58 shitty or not, seems it's the only one available to the average consumer now Oct 27 16:32:05 yep Oct 27 16:32:15 so as to force you to carry around a card reader too :p Oct 27 16:32:18 on the other hand, not having to deal with internal vs. sd card storage on new devices is a blessing for a dev Oct 27 16:33:04 eh personally I never even try to deal with multiple storages, one is always designated as "primary" and I just use that Oct 27 16:33:15 mhm Oct 27 16:33:16 I don't expect any app to try to deal with it either Oct 27 16:33:27 yeah, but the time when primary was 80MB or so kinda sucked Oct 27 16:33:42 I happily use the external SD card for my own purposes :) Oct 27 16:33:43 * Mavrik blames HTC> Oct 27 16:33:47 yeah that was pretty bad Oct 27 16:34:04 in that case I'd just swap them and use external as primary Oct 27 16:34:56 also people using shitty SD cards and then complaining that their phone worked slowly was also annoying Oct 27 16:35:13 lol Oct 27 16:35:40 this phone is shitte, all apps keep crashing and it just doesn't work! wait, it could be the faulty SD card I got for $3 down at the grocery store Oct 27 16:35:46 especially when they used the APP2SD scripts that killed phone performance :P Oct 27 16:36:06 "YO APP TOO SLOW, 1 STAR" Oct 27 16:36:23 don't forget "WILL GIVE 5 WEHN FIX" Oct 27 16:36:35 Yes dude, it's your shitty APP2SD which just moved app data, cache and DB storage on a piece of chinese crap that can do one IOP per minute Oct 27 16:37:43 *grumbl* Oct 27 16:37:48 ok, complaining made me feel better :P Oct 27 16:38:06 * ravilov used to use apps2sd happily, wasn't perfect but had no choice with the G1's internal storage being so limited Oct 27 16:39:10 yeah, I had a Desire that had the same issue Oct 27 16:43:33 complete my android app in sdk Oct 27 17:00:42 meh, the last few bugs i filed don't even get triaged any more. into oblivion Oct 27 17:04:48 can monkeyrunner send mock locations? Oct 27 17:05:39 from looking at the API, it doesn't seem that there's a way to select a textbox or button without knowing where on the screen it is Oct 27 17:06:00 (i'm hoping to find the first textbox on the page, input a string, then find the button that follows it and press it) Oct 27 17:06:39 Hi everyone, I'm having some problems with code to change actionbar title font. I'm getting this error "The constructor TypefaceSpan(MyBaseActivity, String) is undefined." but I don't know what exactly is wrong, can anyone help? Oct 27 17:06:52 Here is the original code that I am trying to get to work http://pastie.org/9678093#' Oct 27 17:07:34 and it's this line that gives me error in eclipse http://pastebin.com/EfiV1gA7 Oct 27 17:08:47 what API level has HttpUrlConnection on Android been using OkHttp? Oct 27 17:08:52 *since what Oct 27 17:08:53 diphtherial: what you want is unit testing, not monkeyrunning Oct 27 17:08:54 4.4 Oct 27 17:09:07 thanks Oct 27 17:13:24 I have a couple new AlertDialog.Builder(this) in SherlockFragmentActivity implementing ActionBar.TabListener. Is that the reason for the one occurence of BadTokenException (@ViewRoot:setView:505) {main}? Oct 27 17:13:37 The error is reported in Analytics Oct 27 17:16:06 Some googling hinted that I should do Activity a = this; while(a.getParent() != null) {a = a.getParent(); Oct 27 17:16:49 Not sure if that would help though Oct 27 17:17:31 Any thoughts? Oct 27 17:17:51 Hello.. With Bolts and unit-testing, task.waitForCompletion() seems to spin forever, is this a sign of bork code or bork tests? Oct 27 17:29:31 lol - ps4 browser hacked ;)))) Oct 27 17:29:37 i love sony ;)))) Oct 27 17:29:51 ps4 old Oct 27 17:29:58 oh look, it's quadruple chin guy Oct 27 17:30:04 all get xbox 5 Oct 27 17:30:25 danijoo: i'm grading assignments; short of modifying my students' code i don't think unit testing applies here Oct 27 17:30:30 it's integration testing or nothing Oct 27 17:30:49 You guys know how an app will crash due to strict mode on android 4.0+ (? I think) while doing HTTP calls... does the same thing for for DB stuff or no? Oct 27 17:31:45 only if you enable it Oct 27 17:31:52 does strict mode crash an app? I thought it only printed a warning to logcat or something Oct 27 17:32:03 but monkey runner is only a stupid button smasher, isnt it? Oct 27 17:32:38 JesusFreke: and Mavrik It definitely crashes on 4.0 if you do http calls not in the background. Oct 27 17:32:47 yes Oct 27 17:32:49 only for bad apps JesusFreke :) Oct 27 17:32:50 but not DB. Oct 27 17:32:57 JesusFreke, you set what happens Oct 27 17:33:20 JesusFreke, you have .penaltyLog() and .penaltyDeath() ;) Oct 27 17:33:31 sadly, it does not execute the developer doing IO on main thread. Oct 27 17:33:46 ah Oct 27 17:34:54 is there a good way to check if my app supports art? Oct 27 17:35:36 you could try and display the a picture of the mona lisa within your app Oct 27 17:35:38 what is art Oct 27 17:35:45 whatever Oct 27 17:35:49 JesusFreke, :D Oct 27 17:35:49 a picture* Oct 27 17:35:51 Quacked: run it under art ;) Oct 27 17:36:14 Quacked, unless you do those 3 crazy things google tells you no to Oct 27 17:36:17 your app is ART compatible Oct 27 17:36:26 danijoo, yeah, normal stuff works Oct 27 17:37:15 Quacked, https://developer.android.com/guide/practices/verifying-apps-art.html Oct 27 17:37:15 Mavrik, what are those? Googling 3 crazy things google tells you not to do didnt really help :) Oct 27 17:37:18 thanks Oct 27 17:37:49 as long as you're not storing raw pointers to Java objects in native code you're mostly fine Oct 27 17:39:24 hello guys...I have a app that inside I want to know there exists facebook and twitter in accountmanager...someone can tell me which method use? Oct 27 17:39:28 http://stackoverflow.com/questions/26581163/control-flow-for-validating-user-requests-with-oauth2-and-google-play-in-a-php-s Oct 27 17:39:43 looking for help on oath2 control flow.... read the docs, don't get it. Oct 27 17:40:43 danijoo: monkeyrunner is different than the monkey tester; it allows you to specify where to click versus mashing buttons randomly Oct 27 17:41:05 danijoo: in any case, i think i've found a different package, specifically AndroidViewClient; i'm going to give it a whirl Oct 27 17:47:41 ooh.. a year ago I used a nice site that tested the app on hundreds of devices Oct 27 17:47:46 but I cant remember the name :( Oct 27 17:48:14 free site, automated tests Oct 27 17:48:24 Hi folks! Can somebody help me? I don't know why I get a "takePicture failed" or my picture is not saved. I searched the web and didn't find a useful answer. Here is the code and an explanation about my project: http://www.ipaste.org/6Lj Oct 27 17:49:14 Hello, could someone please tell me how to use Material styles from the support library? I want to set a android:textAppearance of a Material kind, but I get an error that it requires API level 21. Oct 27 17:49:46 any ideas what site it could be? Oct 27 17:50:08 you uploaded your apk and it would queue up Oct 27 17:50:56 testdroid maybe Oct 27 17:51:20 I found that by googling, but its not that one Oct 27 17:51:34 the one I found didnt sell any products Oct 27 17:51:50 perhaps its no longer up Oct 27 17:52:03 AMrDan, you're not setting camera parameters anywhere Oct 27 17:52:23 you need to set resolution + format for output Oct 27 17:54:51 Mavrik, isn't it setted by the callback when I put the "jpeg" var at the 3 position? Oct 27 17:55:26 so i'm getting the impression that there isn't a preferred integration testing tool for python...? Oct 27 17:55:29 But anyway .. I'm trying here Oct 27 17:55:33 the docs for AndroidViewClient are kind of a mess Oct 27 17:56:02 (ideally i'd like to install the apk, interact with the app's UI, and send mock locations) Oct 27 17:56:11 Brothers and sisters, why is it that I can see logcat output, but DDMS sessions show no VMs on my attached device? Oct 27 17:59:15 anyone know anything about DDMS? I see my attached android device but no VMs are showing... Oct 27 17:59:32 I've never been able to actually use DDMS Oct 27 18:02:36 join #android Oct 27 18:04:50 whoever thought of tapping build number 7 times to unlock developer options never worked on an Android wear device Oct 27 18:08:01 Afzal: i'm still surprised that that's even a thing :\ Oct 27 18:08:31 diphtherial, honestly, it was funny/interesting for one build. Oct 27 18:08:36 Afzal: tap 7 times was long before Wear, but it's not tough on Wear either Oct 27 18:09:08 birbeck, I know it was long before wear. It's just that I can't remember the number of times I've had to reset a wear device just to get it to connect to my phone Oct 27 18:09:14 DDMS .. why do I not see my VMs? My device is there, but no threads/heaps/VMs Oct 27 18:09:16 anyone?> Oct 27 18:09:22 and then I have to do that ridiculous thing again to enable dab Oct 27 18:09:29 Afzal, oh yeah, that's annoying Oct 27 18:09:38 Silkybones_: when silence is the response to your question, it's more likely that nobody knows your answer Oct 27 18:09:44 *the answer, rather Oct 27 18:10:30 Silkybones_, my only suggestion is to restart ADB server Oct 27 18:10:38 Silkybones_: You need to install a debuggable application Oct 27 18:10:40 do you use DDMS? Oct 27 18:10:59 mm, I have debuggable set to true in my manifest Oct 27 18:13:12 I think my problem is that I inherited a Titanium built android app (to maintain and extend) :D Oct 27 18:13:15 I wonder why the new moto x doesn't ship with the turbo charger Oct 27 18:14:24 pfn: to make more money? Oct 27 18:15:28 hi, anybody here uses dumbledroid? Oct 27 18:15:28 I'm so tempted to buy a moto hint Oct 27 18:17:22 do someone have google inbox invite :)? Oct 27 18:17:52 whta is inbox scam Oct 27 18:18:51 http://www.google.com/inbox/ Oct 27 18:19:45 hi, anybody here uses dumbledroid? Oct 27 18:20:38 Hi guys. is Stringbuilder the same as something.toString? Oct 27 18:20:59 no Oct 27 18:21:02 peyam: No, not really. Oct 27 18:21:47 ravilov, I must say tat Android Studio is doing a very bad work at explanation. like you do in Eclipse you hover your mouth on the method and it says what the method is Oct 27 18:22:03 there are also online docs. don't be lazy. Oct 27 18:22:04 flan3002, can you explain it to me. the android.com doesnt say so much Oct 27 18:22:21 what? it says plenty enough Oct 27 18:22:23 ravilov, I have no choice than look it up online Oct 27 18:22:25 doesnt say much because its not an android question, its a ava question Oct 27 18:22:28 does normal String have .add() and .clear() ? Oct 27 18:22:42 no, strings are immutable Oct 27 18:22:48 it's not a matter of choice, it's a matter of habit Oct 27 18:22:52 danijoo, well I dont know it as a newbie and many dont either Oct 27 18:22:58 no problem Oct 27 18:23:01 you should ALWAYS check online docs, no matter what your IDE says Oct 27 18:23:02 ravilov, http://docs.oracle.com/javase/7/docs/api/java/lang/String.html Oct 27 18:23:19 If you concentate strings, you usually do "string A" + "String b" + ...... Oct 27 18:23:21 alexfu, I know that, my question was an answer to his question Oct 27 18:23:25 ravilov, no sorry. Eclipse does it good. it will come with Studio too in stable version Oct 27 18:23:28 but if you do that a lot of times, its pretty slow Oct 27 18:23:37 ravilov, oh.. my bad haha Oct 27 18:23:53 peyam, my point is, even if your IDE does it stunningly well, you should check online docs anyway, no matter what Oct 27 18:24:06 alway Oct 27 18:24:07 s Oct 27 18:24:15 replacing it with new StringBuilder("String a").append("string b").append("string C") .. is faster Oct 27 18:24:35 danijoo, not to mention new StringBuilder(predetermined_buffer_size) ;) Oct 27 18:24:35 you wont notice a difference until you have several hundret concentations though Oct 27 18:24:37 Stringbuffer I can use too for append Oct 27 18:25:02 how to set headers in getHttpResponse ? Oct 27 18:25:05 and the java compiler is pretty smart and will replace a lot of your "asd" + "asd" with stringbuilders anyways :) Oct 27 18:25:14 for example in while and for loops Oct 27 18:25:30 danijoo, i have a url and I will use it in a JSONobject method. The guy in the video use Stringbuilder. why is that? Oct 27 18:25:43 ask him, not me ;) Oct 27 18:25:49 haha its a video :P Oct 27 18:25:59 how should i know it? Oct 27 18:26:02 im not him Oct 27 18:26:53 stringbuilder is often faster, but in most cases you dont need that extra speed Oct 27 18:26:55 peyam, just read the official docs on both and decide for yourself which is better Oct 27 18:27:05 because you wont notice it Oct 27 18:27:16 it is highly dependant on use case anyway Oct 27 18:27:18 yes, do what rav said Oct 27 18:27:43 yes but what is it? what does it do. it says " use for creating strings" so what? I can use String = .. for creating strings Oct 27 18:28:07 just... docs Oct 27 18:28:10 that's all there is to it Oct 27 18:28:13 read it and youll know Oct 27 18:28:39 if docs are unclear to you, a) are you sure you're cut out to be a dev? b) look for some examples, maybe it'll be more clear then Oct 27 18:29:15 ravilov, everyone can be a dev. Oct 27 18:29:16 ravilov so i looked at the app:theme thing in the Toolbar code; turns out its ctor creates a new ContextThemeWrapper and merges those theme elements in. never saw this before Oct 27 18:29:25 peyam, Java Strings are immutable and everytime you do String = " " + " " they have to be copied Oct 27 18:29:46 peyam, use cases for StringBuilder differ but generally, most people use them for efficiency reasons and/or convenience/readability reasons Oct 27 18:29:49 peyam, sure they can, just like anyone can be an architect or a rocket scientist Oct 27 18:29:54 in my experience Oct 27 18:30:00 peyam, so if an app has to concatenate or change alot of Strings, then everything gets very slow due to shuffling stuff around. So StringBuilder() was created, which has a changeable buffer Oct 27 18:30:20 g00s, yeah I figured there must be some weird voodoo magic behind it Oct 27 18:30:21 if you do "" + "" twice you won't see the difference Oct 27 18:30:25 ravilov, dont compare dev of software with rocketscient. im myself a rocketsientest. Oct 27 18:30:32 if you're building JSON output it's noticable. Oct 27 18:30:35 ... lol Oct 27 18:30:52 if you really were, you would never even think of making such a statement Oct 27 18:31:03 is there anybody that builds json from hand? ^^ Oct 27 18:31:10 * ravilov raises hand Oct 27 18:31:13 (when necessary) Oct 27 18:31:14 yes Oct 27 18:31:40 (also not necessarily in java/android, I work in other languages too) Oct 27 18:32:04 I've got a few service calls where I just put the { "someKey" : } Oct 27 18:32:10 filling in the variable Oct 27 18:32:11 ravilov, you are a very cocky man. where do you get ur ego from actually? Oct 27 18:32:18 experience Oct 27 18:32:26 danijoo, yes Oct 27 18:32:31 danijoo, JSON libraries :P Oct 27 18:32:42 those have to be written somehow too ;) Oct 27 18:32:43 Mavrik, last time I checked, json libs don't have hands :p Oct 27 18:32:43 Mavrik: pretty sure they are using builders :p Oct 27 18:33:03 I don't recall saying that :) Oct 27 18:33:11 * Mavrik slaps ravilov with Android 1.0. Oct 27 18:33:18 wiseass :P Oct 27 18:33:25 * ravilov flashes it on a device Oct 27 18:33:46 Does anyone has experience with this? https://github.com/MikeOrtiz/TouchImageView Oct 27 18:33:59 safe to use it? :) Oct 27 18:34:40 danijoo, no but looks quite interesting Oct 27 18:34:49 danijoo, shat do you mean by safe? Oct 27 18:34:52 *what Oct 27 18:34:57 does anyone know oauth2? I need help figuring out how to make it work Oct 27 18:34:57 * ravilov has recently struggled with viewgroups that can be scrolled both ways Oct 27 18:35:12 you wouldn't think it would be so hard on a modern system such as android Oct 27 18:35:21 by safe i mean i can use it in production without fear :p Oct 27 18:35:28 I need to authenticate my game's user on my server Oct 27 18:35:44 ravilov, ah yes Oct 27 18:35:49 OverScrollers ftw ;) Oct 27 18:36:07 I have some images as thumbnails in a list and want to show them in large to users with this after loading them from web Oct 27 18:36:08 I just had a great fun doing a view that does viewpager + pinch to zoom at once Oct 27 18:36:09 I ended up using some code I found that implements 2D scrolling almost from scratch :p Oct 27 18:36:20 didn't get to pinch-zoom yet Oct 27 18:36:22 overscrollers have those nice natural flinging tho Oct 27 18:36:23 Mavrik i have that in my app and it doesn't work very well Oct 27 18:36:27 any tips? Oct 27 18:36:32 JacobTabak, which part? :) Oct 27 18:36:35 yeah this code does too, luckily Oct 27 18:36:48 the panning doesn't work so well with the viewpager when zoomed in Oct 27 18:37:01 i'm using imageviewzoom (sephiroth74) Oct 27 18:37:03 ah, I did everything from scratch :/ Oct 27 18:37:05 I mean why does he use Stringbuilder and then he make it toString();? can just explain to me what is the purpose of it? http://pastebin.com/DbpGAs5P Oct 27 18:37:10 oh, i don't write code Oct 27 18:37:10 darn Oct 27 18:37:35 peyam, because there is no use of a StringBuilder before you convert it to a String Oct 27 18:37:41 peyam: at this point its kinda useless Oct 27 18:37:45 because its only one line Oct 27 18:38:03 Stringbuilder only makes sense if you want to concenate multiple strings Oct 27 18:38:12 ravilov, danijoo I mean you could just write HttpGet get = new httpGet(URL)? right? Oct 27 18:38:20 yes Oct 27 18:38:20 er Oct 27 18:38:24 yes? Oct 27 18:38:27 peyam you could google 'java string best practices' O.O Oct 27 18:38:28 what's that got to do with strings? Oct 27 18:38:31 or using setUrl Oct 27 18:38:32 peyam, http://stackoverflow.com/questions/5234147/why-stringbuilder-when-there-is-string Oct 27 18:38:33 not like there are any secrets after 20 years Oct 27 18:38:34 now stop trolling please. Oct 27 18:38:36 seriously Oct 27 18:38:47 it's like first fucking hit on google. Oct 27 18:38:51 no one knows oauth 2? Oct 27 18:38:52 with detailed explanation. Oct 27 18:39:02 Agamemnus, your usecase is probably a little bit funny Oct 27 18:39:12 did you see my stack overflow post? Oct 27 18:39:13 I'm not sure how Google handles external service authentication Oct 27 18:39:14 I understand some people prefer discussing stuff with other people instead of simply reading the docs, but this is getting ridiculous Oct 27 18:39:19 Agamemnus, plus you're using cordova Oct 27 18:39:24 doubt many people did that until now Oct 27 18:39:28 that's not important, forget cordova Oct 27 18:39:38 ravilov, yeah, /r/androiddev is exactly like that Oct 27 18:39:39 * ravilov will gladly forget cordova Oct 27 18:39:48 Mavrik, well its different what you write on Google. You guys talks so much offtopic . and please watch your language or meet me as a man and say it in my face. Oct 27 18:39:57 Mavrik, I generally tend to stay away from reddit Oct 27 18:40:15 * g00s generally stays away from ravilov Oct 27 18:40:17 peyam, no, I do not have to watch my language with a troll. Go away now. Oct 27 18:40:35 * ravilov moves closer to g00s Oct 27 18:40:37 ravilov, mhm, sadly most of other Android communities are like that as well. Oct 27 18:40:42 with the jumpstart cables >:-] Oct 27 18:40:47 Mavrik, then ignore me! there is an option of ignoring people on IRC. you are not stupid? Oct 27 18:40:56 getting maybe 2 good topics and 40 indians trying to copy-paste their way into an app Oct 27 18:41:37 peyam, you don't own this channel or the people in it, you can't force yourself in like this Oct 27 18:42:39 ravilov, not trying too. but using words like "fu**ing" etc is just a sign of personal immaturity. thanks Oct 27 18:43:12 Is there any way to achieve a shared element transition between two fragments as opposed to two activities? Currently I share a lot between the two fragments through the activity and splitting this out would be challenging. Oct 27 18:43:32 I come back when I have more question. thanks anyeay guys Oct 27 18:43:32 peyam, personally I also dislike profanities and I do agree that was a bit harsh and probably uncalled for, however on the other hand, you kinda had it coming Oct 27 18:43:41 kthxbai Oct 27 18:45:04 also Oct 27 18:45:16 g00s did not respond to my jumpstart cables. I am disappoint. Oct 27 18:45:26 he's gone bro Oct 27 18:45:40 dunno, better try a few more times Oct 27 18:45:46 ravilov i'm dealing with an idiot on the android bugtracker Oct 27 18:45:48 so i opened my vitamin bottle Oct 27 18:45:52 fucking idiots everywhere Oct 27 18:45:54 and the cap flew off Oct 27 18:45:56 and I can't find it Oct 27 18:46:02 g00s, ewww, I prefer girls Oct 27 18:46:04 and then I stubbed my toe on the fan base Oct 27 18:46:22 alright, that's it Oct 27 18:46:23 back to work. Oct 27 18:46:28 Agamemnus, sounds like a lovely day Oct 27 18:47:28 I'm doing it; tonight is the night where I slay the dragon Oct 27 18:47:33 I'm moving to AS Oct 27 18:47:51 I'm going to become an AS man Oct 27 18:47:53 You'll need alot of alcohol then :P Oct 27 18:48:05 an assman Oct 27 18:48:06 yeah AS is still pretty buggy :) Oct 27 18:48:07 ? Oct 27 18:48:12 this Groovy thing Gradle uses is insane anyway Oct 27 18:48:13 an AS man Oct 27 18:48:24 Mavrik, so it's like Oct 27 18:48:31 g00s, hmm, usually I have way more issues with Gradle than with AS :/ Oct 27 18:48:36 I spent half an hour reading some shit about shit on the docs Oct 27 18:48:41 and I'm still no further along Oct 27 18:48:52 and there are 1000s of these Oct 27 18:49:57 The lack of fragment animations seems like a fairly large oversight :/ Oct 27 18:50:10 I hear it's fixed in 5.0 Oct 27 18:50:43 If that's aimed at me, https://developer.android.com/training/material/animations.html shows nothing related Oct 27 18:51:07 Agamemnus, sorry, you might just wanna look for a tutorial about how to authenticate user with google's account on your server :/ Oct 27 18:51:11 didn't do that integration every Oct 27 18:51:13 *ever Oct 27 18:52:03 I want to use something along the lines of the shared element transition, from a list to a details pane, this is being done with fragments as it makes it much easier to update the resources used by the list at the same time as the details pane, as well as possibly on a tablet layout having the views side by side, however it appears impossible to have a transition between the two which is irritating to say the least Oct 27 18:52:43 bpye, as far as I know they confirmed that they do not support Fragments for that Oct 27 18:52:44 isn't there something in the appcompat lib about that? Oct 27 18:52:52 bpye, and the workaround is just to somehow fake it Oct 27 18:52:52 just guessing Oct 27 18:53:10 Mavrik: fake it? Oct 27 18:53:19 how to make huge text file password protected zip present inside apk Oct 27 18:55:05 Mavrik: k Oct 27 18:55:34 question eligible for bounty tomorrow Oct 27 18:55:41 bpye, same views in both fragments and you fake a transition by positioning them correctly over time Oct 27 18:55:53 ie. manually ;) Oct 27 18:55:56 Ew :/ Oct 27 18:56:17 just depends on how bad you want it :p Oct 27 18:56:54 "Ew" kind of sums it up yes. Oct 27 18:56:54 Not that much :P Oct 27 18:56:55 :) Oct 27 18:57:05 g00s you ever figure out how to get AS/IJ to default to rx.Observable rather than any of the other ones we'll never use? Oct 27 18:57:17 will a public static variable in an activity persist over it's lifetime...? Oct 27 18:57:40 Not that it's a proper solution, but would allow me to share the few things that are otherwise going to be very challenging... Oct 27 18:57:50 it should Oct 27 18:58:08 bpye just make sure your activity can only have 1 instance if you do that Oct 27 18:58:20 Yeah it can only have one instance Oct 27 18:58:21 Phew Oct 27 18:58:30 i've never done that without relying on third party tools Oct 27 18:58:44 like DI Oct 27 18:58:51 bpye, it'll be reset if the process is killed due to memory reasons Oct 27 18:59:07 Any Titanium folks here? Oct 27 18:59:08 oh right Oct 27 18:59:14 or, well... screen rotation :p Oct 27 18:59:37 Hm, currently I'm using a retained fragment without a view Oct 27 19:00:18 screen rotation will actually keep the static variable Oct 27 19:00:23 which makes for hellova bug hunt -_- Oct 27 19:00:54 JakeWharton: Any updates for this issue? https://github.com/square/picasso/issues/659 Oct 27 19:01:12 no Oct 27 19:01:20 the Target is getting garbage collected Oct 27 19:01:21 JacobTabak no - its also a PITA when using appcompat, since i want it to default to that rather than standard fragments etc Oct 27 19:01:22 99% confident Oct 27 19:01:27 Is there any reason why suddenly activities are being so forces Oct 27 19:01:29 forced* Oct 27 19:01:29 oh okay, thanks Oct 27 19:01:29 indeed that's annoying too Oct 27 19:01:53 bpye, huh? Oct 27 19:01:54 so a workarround would be to keep a reference to it? because i ran into the same problems :) Oct 27 19:02:11 good god this is awesome http://www.engadget.com/2014/10/27/microsoft-office-365-onedrive-unlimited/ Oct 27 19:02:27 Well, up until now I haven't met something that didn't have an equivalent for fragments but now apparently activities are more or less required :( Oct 27 19:02:49 forced? Oct 27 19:02:54 you always need at least one activity Oct 27 19:03:00 always have, always will Oct 27 19:03:12 so still don't get your point Oct 27 19:03:20 you could use a service and just create a window Oct 27 19:03:22 no activities! Oct 27 19:03:28 jake: how do you run it? Oct 27 19:03:38 services are deactivated by default arent they? Oct 27 19:03:46 widget Oct 27 19:04:01 approved Oct 27 19:04:08 If you want to make an application that complies with the material design guidelines, without resorting to manually moving around elements, yes you always need one activity, but now you more or less have to use an activity for each window to get any sort of transition Oct 27 19:04:12 "services are deactivated by default" what? Oct 27 19:04:15 fucking bloated apps and their activities Oct 27 19:05:01 Not saying activities are bad, just sometimes multiple fragments is much easier to implement... Oct 27 19:05:07 i could be slightly off, but im fairly sure that was part of the honeycomb security thing Oct 27 19:05:10 ravilov: services won't run until the app is opened Oct 27 19:05:20 where your app is in a suspended state until the user explictly runs certain parts Oct 27 19:05:28 right. it was part of Honeycomb Oct 27 19:06:10 JakeWharton, oh that... yes, true Oct 27 19:06:39 Can I use Material's elevation in pre-21 API's? Oct 27 19:07:16 Nohus: No, there's no elevation pre-21 Oct 27 19:07:17 so with Amazon Kindle, I can load my own book by pusing it to /mnt/sdcard/kindle ... does Play Books have anything like that? uploading is a pita Oct 27 19:07:28 SimonVT: Oh, ok. Oct 27 19:07:31 If I am using Genymotion, then I really don't need to download any system images from SDK Manager right? Oct 27 19:07:34 thanks JakeWharton. It works when I keep a reference on i Oct 27 19:07:36 it Oct 27 19:08:26 birbeck right Oct 27 19:08:54 cool, that will save me some disk space Oct 27 19:08:56 apps by birbeck! Oct 27 19:09:04 yo mikedg Oct 27 19:09:38 mikedg still doing Glass ? Oct 27 19:09:56 on and off, been swamped with typical android work, so it's kind of taken a backseat Oct 27 19:10:18 im also much less enthused about glass as a user, so theres that Oct 27 19:12:35 Hi I have a question, has anyone figured out how to make the number picker widget horizontal in orientation? Oct 27 19:12:52 I tried android:orientation="horizontal" but that doesn't work Oct 27 19:13:04 and Stack overflow tells me as of right now, it can't be horizontal Oct 27 19:13:10 mikedg how come, get attacked by anyone ? Oct 27 19:13:11 but the reponses are fairly old Oct 27 19:13:44 try other parts of the internet Oct 27 19:13:55 (never worked with number picker so no idea) Oct 27 19:14:24 ok np. I think at this point, I might have to make my own custom number picker? Oct 27 19:15:00 I am thinking in the simplest way would be to get the number to change in a textbox when I click on a plus image. Oct 27 19:15:09 or the other way around with minus image Oct 27 19:15:28 the WP number picker is the best Oct 27 19:18:07 anyone have an over-simplified example of using flow? the official sample is quite complex. Oct 27 19:20:33 hmm anyone want to provide insight as to why textview/button don't retain their text/enabled state automatically Oct 27 19:20:47 WP number picker? Oct 27 19:20:58 for example, an edittext retains its text automatically Oct 27 19:21:18 specifically, what was the reasoning behind that decision Oct 27 19:23:08 A configuration change can be a locale change Oct 27 19:23:20 And you then retain the text from the old locale Oct 27 19:23:46 You can enable it if you want, it's just disabled by default Oct 27 19:25:43 hey, is there a way to send mock locations from monkeyrunner? Oct 27 19:25:52 or should i just telnet to the device and send mock locations like that? Oct 27 19:27:53 probably simplest and easiest to telnet Oct 27 19:28:16 ugh , dumb question: in the material design spec http://material-design.storage.googleapis.com/images/components-tabs-usage-tabs-spec-02_large_mdpi.png Oct 27 19:28:36 are those tabs children of the Toolbar, or just another view underneath but styled the same Oct 27 19:28:52 they can be both g00s Oct 27 19:29:16 it can also be a second toolbar under the primary toolbar. heaven knows Oct 27 19:29:28 I think it's a PNG image Oct 27 19:29:29 :p Oct 27 19:30:08 ravilov yeah thats the problem with designers, its all just Ps (details aren't important) Oct 27 19:30:26 I would create a seperate toolbar for that i think Oct 27 19:30:44 ok Oct 27 19:31:23 g00s, hey, they did the pretty part, now you do the easy mundane stuff ;) Oct 27 19:32:34 funny in material i see things mentioning desktop "Desktop tabs" Oct 27 19:32:39 hello Oct 27 19:32:46 i dunno, android - desktop - meh Oct 27 19:33:16 material design isn't specific to android Oct 27 19:33:22 hrm, my galaxy s4 doesn't seem to be running an accessible telnet server Oct 27 19:33:32 um duh Oct 27 19:33:34 why would it? Oct 27 19:33:47 NSA Oct 27 19:33:47 that is specific to emulator only Oct 27 19:36:57 i'm thinking Chris Banes has a very stressful life these days Oct 27 19:39:05 nvm. already have it Oct 27 19:39:20 taking a style from one app and adding to another is like ripping the head off a squid Oct 27 19:39:21 anyone tried Xamarin ? Oct 27 19:40:28 g00s, is it alive or dead? Oct 27 19:40:43 This a horrible way of styling AlertDialog? http://pastebin.com/vbAhYn85 Oct 27 19:40:48 tentacles everywhere Oct 27 19:41:57 Quacked, nah Oct 27 19:42:16 I needed to change the title divider color but didnt want to make my own dialog Oct 27 19:42:53 why not just use android.R.id.titleDivider ? Oct 27 19:43:00 is it not public? Oct 27 19:43:13 ravilov: apologies, i'm new to this. when i attempted to test the app on the emulator, it crashed because it couldn't get a google location services instance Oct 27 19:43:16 is that normal? Oct 27 19:43:35 it is if you don't have google services installed, I guess Oct 27 19:44:06 would the default android 4.2.2 image that you install via the SDK manager not have it installed? Oct 27 19:44:14 no Oct 27 19:44:25 as far as I know, at least Oct 27 19:44:40 can't you tell though? it should be easy to check Oct 27 19:45:10 ravilov, its private Oct 27 19:45:38 ravilov: easy as in you can somehow tell through the UI, or programmatically? Oct 27 19:45:46 both? Oct 27 19:45:49 either? Oct 27 19:46:23 Quacked, it's certainly an interesting way to obtain private resources then Oct 27 19:46:23 did a little bit of research and it seems that you have to manually install it; it doesn't come preinstalled Oct 27 19:46:28 I might have learned something just now Oct 27 19:46:47 diphtherial, that's what I thought, the stock image is supposed to be as clean as it can be Oct 27 19:47:07 there's a different image that comes with google crap preloaded Oct 27 19:48:33 aha, apologies, i hadn't installed the google APIs image Oct 27 19:48:37 indeed; thanks Oct 27 19:56:15 hey guys Oct 27 19:56:25 while setting an alarm using the alarmmanager Oct 27 19:56:35 i am using this : alarmManager.set(AlarmManager.RTC_WAKEUP, timeCal.getTimeInMillis(), pendingIntent); Oct 27 19:57:02 which causes the alarm to be set in a fraction time and not in exact xy:00 timing Oct 27 19:59:12 the .set() call takes some milliseconds too Oct 27 20:01:04 ravilov the issue is that whatever the my time in long is... it is being added to the current time Oct 27 20:01:16 and its not like setting it to 6:00 AM, to be on 6 AM Oct 27 20:01:44 if I set it at 4:00:26 to be on 6:00, then I get it at 6:00:26 and not 6:00 Oct 27 20:02:00 Anyone with opencv experience - Is this the best (quickest/most efficient) approach to finding center of shapes (disregarding their perspective/size) http://pastebin.com/UZ5UZP07 ? Oct 27 20:04:33 hey all, i don't know how to get a reference to the MainActivity from a subclass. http://pastie.org/9679356 line 62 is the problem. Oct 27 20:05:32 Hi all. I have some JNI code that I need to be built before assemble in my android project. I have a task for it but I am unclear how to write the gradle task dependency. Can anyone point me in the right direction? Oct 27 20:05:41 TonySoprano9099, that would depend on how exactly you're setting it Oct 27 20:06:19 skrite: if you're in a non-static inner class, you can use, e.g. MainActivity.this Oct 27 20:06:34 if you're in a non-static inner class within MainActivity, that is Oct 27 20:06:40 ravilov, what choices I have ? Oct 27 20:06:50 ill try to mode the number by 60 and subtract the left seconds Oct 27 20:06:52 JesusFreke: ok, will try that. thanks Oct 27 20:08:06 and... that worked ! Oct 27 20:08:18 :) Oct 27 20:09:05 evening dudes Oct 27 20:10:20 yo Ravenheart Oct 27 20:10:53 sup man Oct 27 20:11:13 anything exciting happen today Oct 27 20:14:50 Ravenheart boring Oct 27 20:14:52 The sun rose Oct 27 20:14:58 that's pretty exciting Oct 27 20:15:02 much better than the alternative Oct 27 20:15:15 struggling to round a long (time in millis) to the nearest minute Oct 27 20:15:55 for ex Tue, 28 Oct 2014 20:06:28 GMT which is 1414526788140 to Tue, 28 Oct 2014 20:06:00 GMT Oct 27 20:16:39 (time + (msInMinutes/2)) / msInMinutes Oct 27 20:16:46 I think that should do it Oct 27 20:17:00 msInMinute* Oct 27 20:17:18 here's what I did to get millis to the next round minute Oct 27 20:17:19 SystemClock.elapsedRealtime() + MINUTE_MILLIS - (Calendar.getInstance().get(Calendar.SECOND) * 1000) Oct 27 20:17:29 I want the one before Oct 27 20:17:33 private final static int MINUTE_MILLIS = 60 * 1000; Oct 27 20:17:39 great Oct 27 20:17:47 so you always want to round up? Oct 27 20:17:48 so Android Studio doesn't really act like Eclipse concerning opening your project Oct 27 20:18:03 JesusFreke yes, to the lower gate Oct 27 20:18:05 when you open your project, Android Studio is acting like an interface to your project on the file system Oct 27 20:18:11 TonySoprano9099, you'll have to work with what you have bro Oct 27 20:18:19 when you delete the project from inside Android Studio, the project is deleted on disk Oct 27 20:18:19 6:32:26 to be 6:32:00 Oct 27 20:18:33 that seems logical Oct 27 20:18:35 cost me 6 commits Oct 27 20:19:48 TonySoprano9099 why don't you just parse the timestamp to a Date object and then remove the portion you don't need Oct 27 20:20:14 Ravenheart thats a good idea Oct 27 20:20:24 how do i do that ? lol Oct 27 20:20:44 well Date and Calendar i'd assume Oct 27 20:20:49 wait wai Oct 27 20:20:50 (its trivial in .NET :) ) Oct 27 20:20:52 im already doing tha Oct 27 20:20:54 that* Oct 27 20:20:58 .Net Oct 27 20:21:00 lel Oct 27 20:21:01 .lel Oct 27 20:21:29 yes the proper java framework that actually develops overtime Oct 27 20:21:37 and is sane in its most basic logic Oct 27 20:22:03 it's all perfectly simple with what java already offers Oct 27 20:22:09 * Odaym refuses Oct 27 20:22:17 * ravilov defuses Oct 27 20:22:58 the calendar class gives us 2 choices in android/java Oct 27 20:23:11 either get timeCal.getTimeInMillis() Oct 27 20:23:18 or timeCal.getDate() Oct 27 20:23:26 so not much choice i guess Oct 27 20:23:30 use JodaTime Oct 27 20:23:32 so nice Oct 27 20:23:49 .setTime(Date) Oct 27 20:24:04 Odaym, i know, but the whole project is not based on joda... and i dont want to change a lot now Oct 27 20:24:06 think you can use that to get it into a calendar Oct 27 20:24:16 TonySoprano9099, I gave you a decent example, all you have to do is rework it to your case Oct 27 20:25:08 http://pastebin.com/CQXdNMHT Oct 27 20:25:41 ravilov, lemme work on ur example Oct 27 20:26:46 this is potentially a stupid question, but how do i send an app i've installed via adb a launch intent? i know the package name, but i don't know the name of the specific activity that i want to start Oct 27 20:26:52 (just whatever would be started if you were to click its icon) Oct 27 20:27:40 has anybody used RoboBinding Oct 27 20:29:13 I have Nexus 7 running KitKat 4.4.4, when I create a folder in both Windows Explorer and Android File Transfer it is showing up as a file. I am running MediaScannerConnection.scanFile on the foldes affected Oct 27 20:29:47 Is the Material Design raised button in the AppCompat lib? Or is it just up to me to implement it? Oct 27 20:30:19 guys, did u chech pb ? Oct 27 20:30:21 check* Oct 27 20:30:28 pb Oct 27 20:30:31 ? Oct 27 20:31:09 nope, cannot get through to AS Oct 27 20:31:45 who complete my android app Oct 27 20:31:51 free Oct 27 20:32:02 you Oct 27 20:32:16 pastebin = pb Oct 27 20:32:22 loekfef: Is it mine after that? L) Oct 27 20:32:24 http://pastebin.com/CQXdNMHT Oct 27 20:33:13 i checked it Oct 27 20:33:37 Ravenheart, im trying to timeCal.set(Calendar.SECOND, 0); Oct 27 20:36:57 diphtherial, no way to start it unless you know the exact name of the activity Oct 27 20:37:12 tapping an icon involves the same information Oct 27 20:40:09 ravilov: i don't suppose there's some way to read out which activiy is associated with the MAIN action from an APK, then Oct 27 20:40:21 i have a large number of APKs with different names for their main activities, unfortunately Oct 27 20:40:39 there could be many activities in an apk that have the MAIN action Oct 27 20:42:16 also there are ways to peek inside apks but I'm not sure how, I know Elixir2 can list the entities declared in a manifest of an installed apk Oct 27 20:44:14 what is the correct way of creating folders on 4.4.4 have Mtp update? Oct 27 20:46:46 huh? Oct 27 20:47:14 is the "huh?" to me? Oct 27 20:47:52 ravilov: heh, at this rate i might be better off reading the source and manually listing the main activity for each APK Oct 27 20:48:30 i know that these APKs only have one activity associated with MAIN, fwiw Oct 27 20:48:51 you don't need the source, just the manifest Oct 27 20:49:13 right, sorry, i was being imprecise; i can read the manifest Oct 27 20:49:21 Viperz28, yes Oct 27 20:50:28 I am creating folders using File mkdirs, I can see it in 'adb shell', I am also running MediaScannerConnection.scanFile, but the folders show up in Windows Explorer and Android File Transfer as a file Oct 27 20:51:35 windows explorer? yeah not sure what you're doing but I'm not touching that Oct 27 20:51:47 mkdirs definitely makes dirs Oct 27 20:52:09 I am just saying, when I connect my Nexus to any file explorer it shows as a file not as a folder Oct 27 20:52:24 I find that hard to believe Oct 27 20:54:06 @ravilov https://dl.dropboxusercontent.com/u/17677610/Screen%20Shot%202014-10-27%20at%201.52.31%20PM.png Oct 27 20:54:18 OpenPilotGCS is a folder Oct 27 20:54:53 ravilov: it's apparently possible to dump the parsed version of the manifest from the APK, but it's going to be tricky to parse in bash :| Oct 27 20:55:01 https://dl.dropboxusercontent.com/u/17677610/Screen%20Shot%202014-10-27%20at%201.54.32%20PM.png Oct 27 20:55:03 (via aapt, that is) Oct 27 20:56:02 Viperz28, ok Oct 27 20:56:14 if the device itself shows it as a directory, it is a directory Oct 27 20:56:16 hi guys, I have a listview and sometimes when i exit the app and reenter, the listview is no longer visible. Is this a known issue? Oct 27 20:56:59 right but, I want users to be able to access the folder when the app starts. I wonder if this is a bug Oct 27 20:57:42 Have raised buttons been implemented / is there an example anywhere? Oct 27 20:57:51 I can't find nice buttons to put in my app Oct 27 20:58:16 ravilov: found a bug https://code.google.com/p/android/issues/detail?id=22334 Oct 27 21:01:47 Yo Oct 27 21:01:51 achuinard: Oct 27 21:01:54 thenounproject Oct 27 21:02:23 Agamemnus: the icons are cool. I'm referring more to the raised button states Oct 27 21:02:35 shadows, touch response, etc Oct 27 21:04:05 does anyone know if http://developer.android.com/reference/android/app/WallpaperManager.html#setBitmap(android.graphics.Bitmap) is blocking the uithread? Oct 27 21:05:56 yes Oct 27 21:06:46 ty Oct 27 21:07:33 can the default blue color of Holo theme be changed?? Oct 27 21:10:01 what does that mean Oct 27 21:10:07 no Oct 27 21:10:10 you cannot change defaults Oct 27 21:10:11 they are defaults Oct 27 21:10:17 you can, however, override the theme styles with your own Oct 27 21:12:09 can the default blue color of Holo theme be changed?? Oct 27 21:14:30 no Oct 27 21:14:54 ajazel: in your app, yes Oct 27 21:16:37 danijoo:how? Oct 27 21:16:57 themeing Oct 27 21:20:38 Using the Toolbar from v7 within a DrawerLayout that has a viewpager in it. Cant find any docs on how to make it work. Oct 27 21:21:18 best practices for interaction & engagement is rocking some old deprecated stuff. Trying to update my apps with AppCompat Oct 27 21:22:10 Viperz28, interesting Oct 27 21:26:46 @ravilov testing something now Oct 27 21:30:26 tried different variations or new File() still same thig Oct 27 21:34:12 *sigh* Oct 27 21:34:32 We need another Google talk about just how do they imagine the ?attr stuff is supposed to be used for consistent UI Oct 27 21:34:36 and which are even available Oct 27 21:36:57 do you think they know? Oct 27 21:38:21 well they should Oct 27 21:38:29 at least think about it :P Oct 27 21:38:52 Like finding a default listview separator style/drawable for Material was way too much hassle Oct 27 21:39:02 Mavrik i think they should have a visual dictionary like http://developer.android.com/training/material/theme.html Oct 27 21:39:09 but that only has a few attrs Oct 27 21:39:41 there was a talk about visual design where they listed a bunch and how to use that Oct 27 21:39:47 basically, the material design spec should have attrs for all the colors and spaces Oct 27 21:40:02 but I'd still rather that they think about which are "public" and what do they represent Oct 27 21:40:21 so we can have at least half-consistent styles for list headers, standard text, etc. Oct 27 21:41:41 yeah Oct 27 21:43:58 ok, cool, so an hour later i've discovered how to parse aapt's xmltree output with awk to extract the main activity (assuming there's just one) Oct 27 21:44:07 when you consider http://www.google.com/design/spec/layout/metrics-and-keylines.html#metrics-and-keylines-keylines-and-spacing Oct 27 21:44:11 * Nivag grumbles... why do trivial simple changes tend to blow a up disproportionately more often than non-trivial ones??? :-) Oct 27 21:44:26 many of these hard coded numbers /do/ have attrs; they should be listed if available Oct 27 21:45:21 g00s, yep, and those attrs are actually adjusted on tablets Oct 27 21:45:21 is material design much less dense or am i imagining ? seems lots of padding / whitspace Oct 27 21:45:28 where commonly some things have 16 or even 24dp margins Oct 27 21:45:45 hmm, I didn't get that feeling on the actual device Oct 27 21:46:58 maybe the pixels are smaller??? Oct 27 21:48:32 they are funny, they are talking about a software UI but using terms such as sheets of paper Oct 27 21:48:45 "A toolbar is a strip of paper focused on presenting actions." Oct 27 21:49:28 g00s, it's not just you Oct 27 21:49:58 admittedly I've never seen it on a real device Oct 27 21:50:08 so, how would i go about sending a mock location to the emulator via bash? i've attempted telnetting to it without success Oct 27 21:50:17 (well, that bash part isn't so important) Oct 27 21:51:09 netcat Oct 27 21:55:05 that's a good idea, although i still have to figure out how to actually connect to the emulator Oct 27 21:59:54 nifty; you apparently have to specify 127.0.0.1 and not localhost on windows? strange, but ok Oct 27 22:03:47 In android studio when i run my app i don't see my app why that? Oct 27 22:04:16 do you have an emulator set up? Oct 27 22:04:20 yes i do Oct 27 22:04:24 or a test device plugged in with USB debugging set? Oct 27 22:04:29 hm, IDK i don’t use AS :( Oct 27 22:04:42 any errors? Oct 27 22:04:55 no just can't find the icon that about it. Oct 27 22:05:54 the other prob i don't have a cell phone that connect to my laptop. Oct 27 22:07:17 tricknology,No error Oct 27 22:07:39 sorry, I don’t use AS so I can’t really help Oct 27 22:07:48 and I don’t use emulators very often either Oct 27 22:08:28 that ok just new to android studio. Oct 27 22:17:40 I don't understand how I can reference a library if I'm building the project from CLI Oct 27 22:17:56 I get that the project doesn't have a manifest and so android update project fails Oct 27 22:18:13 reference play services Oct 27 22:19:23 doing the same as the docs say Oct 27 22:27:36 any idea? Oct 27 22:27:45 new fitbit gizmos look neat. do they nead cloud communications to work? Oct 27 22:28:12 Odaym using ant or gradle ? Oct 27 22:28:20 ant Oct 27 22:28:39 haven't use that in over a year :) Oct 27 22:28:47 well I no longer want an IDE Oct 27 22:29:02 Odaym what are you using for editor ? Oct 27 22:29:09 vim Oct 27 22:29:19 you can use vim + gradle Oct 27 22:29:25 but ant has to go Oct 27 22:29:37 let me first understand ant :P Oct 27 22:29:42 don't bother Oct 27 22:29:54 its a waste, and pretty much deprecated Oct 27 22:30:00 (for android builds) Oct 27 22:31:21 alright, I'll take a look Oct 27 22:31:55 twilight zone -- ./gradlew works on mac, pull repo on linux and it can't find 'default' configuration Oct 27 22:31:56 yeah i wish i could use just vim / emacs / ST ... AS is killing my machine Oct 27 22:32:40 well I'm on vacation now, I get back next Monday Oct 27 22:32:55 and when I do, I plan not to be opening an IDE in the morning Oct 27 22:33:11 ASUS budget android tablet http://www.asus.com/Tablets/ASUS_MeMO_Pad_10_ME103K/ Oct 27 22:33:17 sounded good until ZenUI, idiots Oct 27 22:34:18 I've only been using vi and emacs since I can remember... Oct 27 22:34:50 i couldn't get anything done without all the AS autocomplete stuff Oct 27 22:35:02 especially XML, theme attributes, etc Oct 27 22:36:33 yes I'm still unsure about what to do with those Oct 27 22:36:39 I dont use the designer Oct 27 22:36:46 yeah i don't either Oct 27 22:37:09 man I totally forgot about that Oct 27 22:37:55 g00s, you'd get used to it Oct 27 22:38:06 i dont think so :) Oct 27 22:38:26 man you're not gonna sit there writing "android:layout_width="wrap_content" ten thousand times a day Oct 27 22:38:42 no, you'd use the "." command in vim Oct 27 22:38:55 I assume you actually know vim if you're going to use it ;) Oct 27 22:38:58 or android:layout_height="?android:attr/preferredListItemHeight" Oct 27 22:39:08 spend all day looking for stupid things Oct 27 22:39:20 after a while you'd become a guru ;) Oct 27 22:39:27 have all the source in the back of your mind Oct 27 22:39:35 android source* Oct 27 22:39:37 no Oct 27 22:39:43 heh Oct 27 22:39:56 haha Oct 27 22:39:57 no. Oct 27 22:39:59 just no Oct 27 22:40:33 give in, it's good for you :p Oct 27 22:40:44 the state of android development Oct 27 22:40:51 * Odaym disapproves Oct 27 22:41:11 no matter how smart you are, everyone has a congnite budget. some ore than others. but why spend your budget on fucking stupid stuff like remembering attributes, method names, etc. if its not in your head and using budget, you have to look it up and context switches kill productivity Oct 27 22:41:19 *cognitive Oct 27 22:41:53 Odaym it would have been cool if google did android modes for vim & emacs :) Oct 27 22:42:06 it would've been great if google were Apple, bro. Oct 27 22:42:11 but anyhow, most java devs use eclipse or intellij Oct 27 22:42:36 I still dont know whether it's me who sucks or whether things should be easier Oct 27 22:42:52 well, things should be easier Oct 27 22:43:21 Odaym I code on iOS/XCode too, AS/gradle is infinitely better Oct 27 22:43:28 if you make a new project from AS template, try explaining all that sht to a beginner Oct 27 22:43:31 There's a Java mode for Emacs, and you can change it around to do some things in Android Oct 27 22:43:32 you're 1 guy, man Oct 27 22:43:36 I know another 1 guy who says the opposite Oct 27 22:43:41 that ain't no argument Oct 27 22:43:42 on any day, my preference is Android Oct 27 22:43:58 it depends on the kind of project. as always Oct 27 22:44:00 iOS feels neandrethal when it comes to dev tools Oct 27 22:44:12 it's like they haven't heard of unix dev Oct 27 22:44:14 if i was doing HW like fitbit with BLE, i'd focus on iOS just for stability Oct 27 22:44:17 which is ironic Oct 27 22:44:33 Like I use a TextView object, and can then semi-automatically create an import statement with it Oct 27 22:44:46 If I did more Emacs work that might be automated fully Oct 27 22:44:46 OH WOW Oct 27 22:44:47 .... Oct 27 22:45:47 raaaaaant Oct 27 22:46:18 if google was more like apple... I'd probably switch to windows phone Oct 27 22:46:32 * g00s not clear how a Fragment with its own toolbar is supposed to manage the menu Oct 27 22:46:43 you cannot be like apple, you have TO BE APPLE Oct 27 22:46:47 LIKE apple won't cut it Oct 27 22:46:53 i guess we don't use sethasOptionsMenu(true) any more ? Oct 27 22:47:17 apple is unique, you can't be like apple. well most anyhow Oct 27 22:47:31 chapple Oct 27 22:47:34 for example, manufacturing. when they CNC'd their MBP bodies ... Oct 27 22:47:41 they ordered 10k CNC machines Oct 27 22:47:46 who the fuck can do that? nobody Oct 27 22:48:11 everyone else will have to use casts and molding Oct 27 22:59:53 in order to be able to take a picture from the camera in my application, i'm starting an intent MediaStorage.ACTION_IMAGE_PREVIEW with extra parameter MediaStore.EXTRA_OUTPUT to a Uri.fromFile to a temp.jpg in getExternalStorageDirectory(). so far so good ? the thing is that onActivityResult i can't find that image on the disk. Oct 27 23:01:53 ufk: that's ok Oct 27 23:02:08 ? Oct 27 23:02:18 i noticed the same issue with a cocked rom from a korean vendor :( Oct 27 23:03:15 hey guys i keep get that on logcat, any ideas ? 10-28 01:02:17.500: E/gpsd(1958): Sensors.SM: Can't write to closed pipe Oct 27 23:03:18 ufk, you're using the wrong directory Oct 27 23:03:39 which directory should i use ? Oct 27 23:04:49 g00s: inflateMenu, setOnMenuItemClickListener Oct 27 23:04:51 you're just crapping all over the root directory of the SD card Oct 27 23:05:13 use Context.getExternalCacheDir for temporary storage Oct 27 23:05:17 or Context.getCacheDir Oct 27 23:06:18 i'll try that. thanks Oct 27 23:06:29 or if you need something that will persist while your app is installed, use getExternalFilesDir(Environment.DIRECTORY_PICTURES) Oct 27 23:07:13 i gues noone can help Oct 27 23:08:20 does anone here have ever played with the instagram API in Java/Android ? Oct 27 23:08:45 is it possible to use the "instagram apps" instead of a webview in order to authenticate / authorize the app ? Oct 27 23:08:52 (like in facebook) Oct 27 23:09:08 well listen, I've imported a project from Eclipse via Generate Gradle Files Oct 27 23:09:28 hi there Oct 27 23:09:38 why are they being created in the home directory? build.gradle gradle/ gradlew.bat gradlew and settings.gradle Oct 27 23:09:52 what's everyone using for oauth2 these days? Oct 27 23:10:20 ...and couldRetrofit be used for oauth2? Oct 27 23:17:11 hey Oct 27 23:18:04 I'm using eclipse, and my app crashes on start when inserting 0 into any xml. Oct 27 23:18:16 I've been trying to solve this for hours... Oct 27 23:18:38 any ideas what to do? Oct 27 23:19:30 what's the ST say Oct 27 23:21:12 hold on, logcat just says device disconnected Oct 27 23:21:25 have to restart eclipse... Oct 27 23:21:37 adb kill-server Oct 27 23:21:44 adb restart-server Oct 27 23:24:14 ok, so no one here implemented instagram api here ? Oct 27 23:24:42 nto I Oct 27 23:26:34 here it comes Oct 27 23:26:57 http://pastebin.com/2tdyZfA0 Oct 27 23:29:40 any ideas bankai_au ? Oct 27 23:32:00 using picasso is it possible to cancel request which are being made inside an adapter? Oct 27 23:32:01 i have a couple of fragments - a dummy and a gridview one. it seems that when i leave the gridview fragment, the images are still being downloaded. Oct 27 23:32:15 komandant: that's a feature of 2.4 which is being released this week Oct 27 23:33:03 JakeWharton, thanks Oct 27 23:33:30 that's good to know! Oct 27 23:33:47 What kind of data saving should I use for saving one three variables? Oct 27 23:33:56 It's kind of database Oct 27 23:34:12 1st variable is the current time Oct 27 23:34:30 I want it to be simple Oct 27 23:34:53 Do I have to use SQL or would simple csv be fine? Oct 27 23:35:26 alexa: I'm not sure exactly what you want to store, but have you looked at using SharedPreferences? Oct 27 23:35:46 anyone know a good place for android snippets (like im looking for the source of a OCR (image to text) but not sure if theres a cool site to just kinda get code snippits or what not Oct 27 23:36:24 I have not. I would be thankful for link. I would like to story blood pressure values. Afterwards, I'd like to put it on graph. Oct 27 23:37:08 I'd probably suggest storing it in an SQLite database in that case, possibly using an ORM like GreenDAO Oct 27 23:38:47 I have a Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.view.Pager" on path error on runtime on an app that builds fine with android studio. I added "compile 'com.android.support:support-v4:21.0.0'" to build.gradle. Can anybody point me to what it may be? Is that a bug in the IDE? Oct 27 23:39:23 ViewPager, not Pager Oct 27 23:39:26 there's no class called Pager Oct 27 23:39:28 view.ViewPger maybe ? Oct 27 23:39:34 ViewPager* Oct 27 23:39:49 AS should have some kind of autofill or something so you can tell if you're using the right thing there Oct 27 23:39:55 in the XML Oct 27 23:39:58 i've logged an issue Oct 27 23:39:58 why doesn’t that fail at build time? Oct 27 23:40:43 sec ill find it so you can star it Oct 27 23:41:11 https://code.google.com/p/android/issues/detail?id=77777 Oct 27 23:41:23 JakeWharton: csst0111: Oh you're right, wow. Why doesn't that fail at build time? Oct 27 23:42:01 i wonder if that's a bug Oct 27 23:42:12 custom classes defined in xml aren't checked at compile time either Oct 27 23:43:13 eh, i can contrive reasons Oct 27 23:43:29 it could be an erroring lint check Oct 27 23:43:43 yeah, AS should at least be flagging a warning Oct 27 23:55:48 What tools are there to allow me to see why my animations are so jerky Oct 27 23:56:05 "I/Choreographer﹕ Skipped 49 frames! The application may be doing too much work on its main thread." I assume means something I'm doing is bad Oct 27 23:56:22 traceview Oct 27 23:56:40 it's a bit complex. you should watch a video on it Oct 27 23:57:35 I'm newbie. I never worked with more than one class. I have read some basics about OOP and I understand it. I also rewrote my own code in Python to be OOP plus I have written the same code in Java for Android. Oct 27 23:58:51 Now, my question is: If there are many classes, do I have to connect them somehow or do I just call the method of function right away? Oct 27 23:59:01 I believe the second option is more probable Oct 28 00:04:34 you should probably go back and re-learn the basics, coz that's OO 101 Oct 28 00:04:54 I'm having exactly this problem: http://stackoverflow.com/questions/7006676/android-string-array-crash Oct 28 00:05:00 Can anybody help me? Oct 28 00:08:25 nope until you post some code Oct 28 00:10:19 guys, i'm following the android tutorial from scratch, in the tut they say to open "fargment_main", i don't have it, can i use activity_main.xml instead? Oct 28 00:10:41 but csst0111 Oct 28 00:10:48 OverCoder: probably not Oct 28 00:10:57 uh, so i should create it? Oct 28 00:11:13 As soon as I add the row "" to any .xml file in /res Oct 28 00:11:16 my app won't start Oct 28 00:11:21 *shrugs* if you reference it and don't have it it needs to exist Oct 28 00:11:25 it's the sickest glitch I've ever been into Oct 28 00:11:55 I can create a new .xml file and enter , and then the app won't start... wtf? Oct 28 00:12:04 bankai_au: yes i mean so i should create a fragment_main.xml and add it in activity_main.xml huh? Oct 28 00:12:08 any opencv users amidst? Oct 28 00:13:36 rumpan: res/ or res/values/ ? Oct 28 00:14:15 res/values/ Oct 28 00:16:22 Oh! Oct 28 00:16:27 I found a new thing... Oct 28 00:17:17 If I removed: From simple_prefs.xml the app starts with the integer-array Oct 28 00:18:27 No it didnt Oct 28 00:18:28 sorry Oct 28 00:25:49 huh Oct 28 00:25:54 where is the client secret in Oct 28 00:25:58 https://console.developers.google.com ? Oct 28 00:30:24 This is me: http://tinyurl.com/ohmq27o Oct 28 00:30:34 taken 20 mins ago Oct 28 00:30:59 Agamemnus, client secret? Oct 28 00:31:28 ffff Oct 28 00:31:32 there is no client secret Oct 28 00:31:45 https://developers.google.com/accounts/docs/OAuth2InstalledApp#choosingredirecturi Oct 28 00:31:52 however i can't get it to work anyway Oct 28 00:32:09 Method Not Allowed Oct 28 00:32:09 Error 405 Oct 28 00:32:52 oh Oct 28 00:32:57 it can only be called by POST Oct 28 00:32:58 WTF Oct 28 00:33:01 GOOGLE!!!! Oct 28 00:33:17 lol Oct 28 00:33:20 why not use post? Oct 28 00:33:24 u doing this from broswer? Oct 28 00:35:05 Testing Oct 28 00:35:13 gtg Oct 28 00:40:09 Why is the logcat so fucking bad and does not show which row the program fucks up at? Oct 28 00:40:32 maybe you don’t knwo how to read it? Oct 28 00:40:44 poste your trace Oct 28 00:40:51 pastebin.com Oct 28 00:41:02 sometimes the logcat events dont come through in unit testing Oct 28 00:41:03 ok Oct 28 00:41:41 http://pastebin.com/2tdyZfA0 Oct 28 00:41:55 because it is Oct 28 00:42:00 it is designed to mess you up Oct 28 00:42:04 I've been trying to solve this glitch for 6 hours Oct 28 00:42:14 strangest shit i've ever been into Oct 28 00:42:15 -s "LOGNAME" Oct 28 00:42:18 helps Oct 28 00:42:21 hm Oct 28 00:42:24 also Oct 28 00:42:24 where? Oct 28 00:42:26 logcat -c Oct 28 00:42:30 logcat -s "LOGNAME" Oct 28 00:42:34 logcat -c clears it Oct 28 00:42:38 where do i write that? Oct 28 00:42:42 command line Oct 28 00:42:57 ok hold on Oct 28 00:43:16 in eclipse!? Oct 28 00:44:05 it's not working in cmd ofc. Oct 28 00:44:10 using win 7 Oct 28 00:44:14 adb logcat Oct 28 00:44:18 not just logct Oct 28 00:44:21 logcat Oct 28 00:44:24 adb logcat. Oct 28 00:44:29 You will need git-scm Oct 28 00:44:30 surely "10-27 19:25:37.891: E/AndroidRuntime(1849): at com.example.dv106assignment2.MainActivity.onCreateOptionsMenu(MainActivity.java:46) Oct 28 00:44:30 " Oct 28 00:44:37 actually you won't Oct 28 00:44:40 but it will help Oct 28 00:44:59 okey Oct 28 00:45:12 > This template requires a minimum SDK version of at least 7, and the current min version is 1 Oct 28 00:45:16 android.content.res.Resources$NotFoundException: Resource ID #0x7f0d0002 Oct 28 00:45:18 guys Oct 28 00:45:18 this is killing me Oct 28 00:45:19 that is your problem Oct 28 00:45:38 OnCreateOption: getMenuInflater().inflate(R.menu.main, menu); Oct 28 00:45:39 in the manifest i have set minSdk to 8 Oct 28 00:45:52 MainActivity.java:46 Oct 28 00:46:02 ok, i'll check it up! hold on Oct 28 00:46:20 i cleaned the project, even deleted R.java by myself and rebuilt it, no deal Oct 28 00:46:22 row 45/56: // Inflate the menu; this adds items to the action bar if it is present. Oct 28 00:46:22 getMenuInflater().inflate(R.menu.main, menu); Oct 28 00:46:23 k.. it looks like you might have created an entry in R Oct 28 00:46:39 hm Oct 28 00:46:54 when Eclipse yelled at you and highlighed stuff, if you hover it gives you options.. Oct 28 00:47:03 one of those is sometimes to create an entry in R Oct 28 00:47:10 hm Oct 28 00:47:22 okey Oct 28 00:47:38 so my R file may be "fucked up"? Oct 28 00:47:43 ‘create field “whatever” in type layout" Oct 28 00:47:55 yea Oct 28 00:48:34 look for an entry in R that is liek this: public static Object main; Oct 28 00:48:38 delete that Oct 28 00:48:38 ok Oct 28 00:48:48 it will yell at you sayign R is derived.. whatever Oct 28 00:49:10 then check your layout.xml Oct 28 00:49:13 cant find any Oct 28 00:49:22 public static Object main is not there Oct 28 00:49:28 pastebin your R file? and your layout.xml Oct 28 00:49:30 or main.xml Oct 28 00:49:45 ok Oct 28 00:49:50 it’s in /res/layout/ Oct 28 00:50:16 is there a way to add a parameter to the content-type header in retrofit without mangling the actual content type? specifically, the v=2 in "application/json; charset=utf-8; v=2"? Oct 28 00:50:27 R: http://pastebin.com/337eN47i Oct 28 00:50:40 JacobTabak: custom Client Oct 28 00:50:44 -_- Oct 28 00:50:48 public static final int main=0x7f0d0002; seems legit.. Oct 28 00:50:49 k, thanks Oct 28 00:51:26 you can teamviewer my computer if u want to Oct 28 00:51:36 I’m at work, no teamviewer Oct 28 00:51:49 layout: http://pastebin.com/BFyKFKn3 Oct 28 00:51:54 okok Oct 28 00:51:54 get off in 1/2 hour. be home in about an hour maybe? Oct 28 00:52:01 LA traffic :/ Oct 28 00:52:24 uh, time is soon 02.00 in the night here in sweden so I will hopefully sleep bu then :/ Oct 28 00:52:26 by* Oct 28 00:52:38 But maybe tomorrow? Oct 28 00:52:44 dv106assignment2 :( is this homework? Oct 28 00:52:48 :) Oct 28 00:53:00 Yes... But it does not matter Oct 28 00:53:11 You're not helping me with the exercise Oct 28 00:53:17 WEll I’m not sure abotu the channel rules in here but #Java doesn’t like that Oct 28 00:53:19 just with the wiierd glitch Oct 28 00:53:21 but this isn’t #Java Oct 28 00:53:32 yep Oct 28 00:53:46 i know the logic and everything behind the exercise so that's not the problem Oct 28 00:53:48 well the error is tellign you that it can’t find the resource declared in your R Oct 28 00:53:56 okey Oct 28 00:53:58 try to clean your project Oct 28 00:54:03 how? Oct 28 00:54:08 Eclipse? Oct 28 00:54:10 yep Oct 28 00:54:24 click your project folder, on the toolbar click project.. clean Oct 28 00:54:40 it should clean and rebuild your file Oct 28 00:55:00 JacobTabak: you'll be able to do that in v2 with interceptors. It'll basically just be wrapping the request body with one that appends to its mime type. Oct 28 00:55:02 do you have the menu xml file? Oct 28 00:55:05 menu.xml Oct 28 00:55:21 sounds good JakeWharton, I think I remember you mentioning that earlier Oct 28 00:55:22 Uh Oct 28 00:55:25 got alot of errors now! Oct 28 00:55:51 com.example.dv106assignment2.R cannot be resolved Oct 28 00:55:57 yeah, clean deletes your R file (among other things) and rebuilds them Oct 28 00:56:04 my R-file is now called com.example.dv106assignment1.R instead of 2 Oct 28 00:56:07 if there is an error in your XML soemwhere it won’t rebuild the R file Oct 28 00:56:11 and you get errors everywhere Oct 28 00:56:18 correct the error and clean again, should be all good Oct 28 00:56:31 check your XML files Oct 28 00:56:45 maybe menu.xml, I didn’t see a menu in your main.. Oct 28 00:56:52 yep trying Oct 28 00:58:07 maybe try renaming it if all else fails.. instead of “@+id/main” try “@+id/main_menu" Oct 28 00:58:15 OMG! Oct 28 00:58:23 IT STARTED! Oct 28 00:58:26 heh Oct 28 00:58:27 sweet Oct 28 00:58:34 now you can get some sleep :) Oct 28 00:58:46 OMG Oct 28 00:58:53 cant really believe it... Oct 28 00:59:05 sometimes just cleaning your project will help Oct 28 00:59:09 i knew something was very messed up Oct 28 00:59:11 sometimes restarting eclipse Oct 28 00:59:15 what was it? Oct 28 00:59:19 error in XML? Oct 28 00:59:23 yep, i tried restarting eclipse many times Oct 28 00:59:24 nono! Oct 28 00:59:29 just cleaning the project! Oct 28 00:59:49 wierdest thing i've ever been into since i've started programming Oct 28 00:59:58 but you're the man! Oct 28 00:59:58 :) Oct 28 01:00:09 i could have spent atleast one more day on this Oct 28 01:00:09 haha, I’m not, but thanks. Oct 28 01:00:21 ugh, I’m glad you didn't Oct 28 01:00:23 you are! a HUGE thanks! Oct 28 01:00:46 no problem, rumpan. just be sure to try and contribute back when you’re a big time android dev Oct 28 01:00:55 or small time, like me Oct 28 01:01:28 yep, ofcourse Oct 28 01:01:52 best of luck in your studies! Oct 28 01:03:03 Project > Clean is definitely your go-to guy when Eclipse gets confused. :) Oct 28 01:03:42 Truth, I think I’ve used it about 20 times today Oct 28 01:04:21 thanks alot! :) Oct 28 01:04:46 if i've lived in the us, i would have fedexed you some beers or something Oct 28 01:05:08 cause you saved both me and my laptop Oct 28 01:05:35 gotta sleep, bye! Oct 28 01:06:06 haha night night Oct 28 01:06:42 Very minor, but is there any particular reason Android uses naming such as "OnClickListener" rather than the obvious "ClickListener"? Oct 28 01:07:26 because it listens to onClick Oct 28 01:07:46 even weirder is OnItemClickListener Oct 28 01:08:04 I guess that's a fair point. Oct 28 01:08:08 which listens to onItemClick() Oct 28 01:08:20 Yeah. Oct 28 01:08:35 Hello, for those of you who manage your own userbases, and who log into a REST API server via the mobile app using username and password, do you use OAuth2? Oct 28 01:08:38 I've started using (named) inner classes in place of anonymous classes for event-handling code now. Oct 28 01:08:47 So much neater Oct 28 01:08:48 . Oct 28 01:09:10 can you give an example/ not sure if I follow Oct 28 01:09:46 like instead of OnClickListener, SomethingClickedListener()? Oct 28 01:10:58 I’m still trying to find somethign better than Handler() for modifying UI from threads.. is there anything? Oct 28 01:11:33 Heres an example: http://pastebin.com/RCBrTze2 Oct 28 01:12:12 How about runOnUIThread? Oct 28 01:12:15 oh that is pretty. way beter than putting it inside the declaration Oct 28 01:12:28 Yeah. Oct 28 01:12:35 yeah but then I have to make a runnable inside that class, it can get pretty full really quick Oct 28 01:12:42 Anonymous classes can make a real mess of code. Oct 28 01:13:52 now I just have a Handler() inside the UI class with a switch and about 30 cases. I can get that down to at most 15 comparisons by writing a nested switch. Oct 28 01:14:00 but in terms of operations.. that’s kind of bad Oct 28 01:14:12 a runnable would be faster.. but the Handler is cleaner Oct 28 01:14:37 What are you doing in the switch statement? Oct 28 01:14:43 Trying to picture it. Oct 28 01:15:18 well I have liek 8 devices, some bluetooth, some connect differently. I need to figure out what is connected and run it’s specific connection methods and register the correct listeners Oct 28 01:15:49 and change the UI accordingly Oct 28 01:16:09 I see. Sounds complicated. Oct 28 01:16:09 animations are different depending on what device is connected, and what state it’s in Oct 28 01:16:34 yeah.. the class was 2400 lines long. I split it into 3 classes and a wrapper Oct 28 01:16:57 now I just have deviceWrapper.connect() Oct 28 01:17:44 Are you able to do something like this? switch (whatever) { case foo: return new FooWhatever(); case bar: return new BarWhatever(); } Oct 28 01:17:53 Or maybe that doesn't apply to the kind of code that's tied to an activity. Oct 28 01:18:03 no that’s more like in the devicewrapper Oct 28 01:18:06 Okay. Oct 28 01:18:22 the Handler only really handles UI changes Oct 28 01:18:33 sometimes it changes vers in the activity class Oct 28 01:18:52 or posts to another handler X( Oct 28 01:19:44 err, actually, it posts a runnable to itself Oct 28 01:19:51 Hmm. I'm kinda getting what you're saying, but it's hard without seeing stuff. Oct 28 01:20:25 yeah, unfortunately I can’t post it either. But I do similar things in my other projects btu I havent had to lately. Oct 28 01:20:35 No worries. Oct 28 01:20:41 If I come across a postable example I’ll let you know Oct 28 01:20:45 K. :) Oct 28 01:21:00 I love refactoring. It's one of my favourite things ever. Oct 28 01:21:07 It's like the world becomes a less scary place after refactoring. Oct 28 01:21:10 tricknology no way you're connecting 8 BT devices Oct 28 01:21:18 i said some arebt Oct 28 01:21:23 they dont all connect at once haha Oct 28 01:21:31 but the app must support them all Oct 28 01:22:27 and I get new devices every weel it seems :( so having these classes cleaned is imperative. I jsut reconstructed most of it so that adding new devices isn’t such a pain Oct 28 01:22:33 week* Oct 28 01:23:30 tricknology well , problem is sometimes connecting to BT can disable wifi :) Oct 28 01:23:34 bwahaha Oct 28 01:23:48 The weirdest thing though, is that one of the devices won’t respond unless i run it in a thread which executes a runnable which executes an async task which runs another runnable on the uI thread Oct 28 01:24:07 hmm g00s that’s good to know.. Oct 28 01:24:26 interference? or what? Oct 28 01:24:49 because the app depends on wifi :-o.. or at least cell service Oct 28 01:28:37 aaand /work Oct 28 01:48:36 anyone know how to start the android desktop environment from the command line? Oct 28 01:49:03 the emulator? Oct 28 01:49:37 technically it's a Vm running android Oct 28 01:50:02 I'm trying to root a VM android but it's not really working out Oct 28 01:50:15 BustyLoli-Chan_ please read topic Oct 28 01:50:50 alright... but this isn't a... I mean... Oct 28 01:51:04 technically this is the most stock ROM you could get Oct 28 01:51:08 the one straight from google Oct 28 01:51:37 https://code.google.com/p/android-x86/downloads/list Oct 28 01:51:50 "Android application development" Oct 28 01:51:54 this is still not a rooting channel :P Oct 28 01:56:57 I hope we get lambdas one day. ;| Oct 28 01:58:31 hmm... technically, android-x86 is 'straight from google', but only in the sense of using Google's hosting... it's not official in any way Oct 28 02:00:39 Though things could get messy with a lot of parameters in event callbacks. Oct 28 02:36:19 anyone know a good place for android snippets (like im looking for the source of a OCR (image to text) but not sure if theres a cool site to just kinda get code snippits or what not Oct 28 02:38:45 hopefully google puts up their api 21 snippets, er samples, up soon :) Oct 28 02:39:57 I have an ActionBar button that, when tapped, opens a DialogFragment. The problem is that if I tap this button very quickly then the DialogFragment opens more than once. This should never happen. Is this a bug in Android? Oct 28 02:40:04 I'm getting mixed answers in googling. Oct 28 02:40:17 This is similar: http://stackoverflow.com/questions/2886407/dealing-with-rapid-tapping-on-buttons Oct 28 02:40:41 TacticalJoke are you a monkey ? Oct 28 02:41:36 " I believe we fixed that possible error in Froyo." Oct 28 02:42:53 there's probably lots of ways around it; maybe just check to see if your dialogfragment is showing Oct 28 02:43:24 I'm seeing this in 4.1. I'm guessing this qualifies as an Android bug. Oct 28 02:43:39 I should search the bug tracker. Oct 28 02:45:18 Okay, Google Keep has this issue, too. Oct 28 02:45:27 If I tap "New note" really quickly. Oct 28 02:45:39 The screen to enter a note is shown multiple times. I have to click Back many times to get out again. Oct 28 02:50:25 I'm having big trouble: I load all data from DB to a list (Object list) and now I'm having problem with converting it to String[] Oct 28 02:50:34 I just can't do it. Oct 28 02:51:39 then don't do that ! Oct 28 02:51:57 java.lang.ArrayStoreException: Object cannot be stored in an array of type java.lang.String[] Oct 28 02:52:13 g00s, I'd like to display all data in TextView Oct 28 02:52:16 alexa: I'm guessing you're gonna have to show some code at some point in time. Oct 28 02:52:30 ok Oct 28 02:52:31 As an unbiased third party. Oct 28 02:52:44 which part of code should I upload? Oct 28 02:52:52 cause I'm having three clases here Oct 28 02:52:57 *classes Oct 28 02:55:14 http://paste.ubuntu.com/8713344/ Oct 28 02:55:29 these are three parts of my code: Oct 28 02:55:36 1) object pritisak Oct 28 02:55:57 2) the part that loads all data from DB to LIST Oct 28 02:56:16 3) my desperate way to convert list to a string :( Oct 28 02:57:42 You want to convert a List to a String[]? Oct 28 02:57:50 yes Oct 28 02:57:56 alexa its almost always a bad idea to load the results of a query into an in-memory data structure Oct 28 02:57:57 But a pristak is not a String. ;o Oct 28 02:58:01 List Oct 28 02:58:11 Oops. lol Oct 28 02:58:20 I read it as "pristak" in my mind. Oct 28 02:58:21 TacticalJoke, all it's elements are String Oct 28 02:58:46 If all its fields are strings, then it's quite easy. Oct 28 02:58:47 new pritisak(cursor.getString(0), cursor.getString(1), cursor.getString(2)); Oct 28 02:58:52 But why do you want a String[]? Oct 28 02:59:01 public pritisak(String vreme, String sistolni, String dijastolni) Oct 28 02:59:21 What is a "pritisak? Oct 28 02:59:26 because I could use a String[] to display it all via TextView Oct 28 02:59:28 s/?/"?/ Oct 28 02:59:48 "pritisak" is an object (translation: pressure) **** ENDING LOGGING AT Tue Oct 28 03:00:00 2014