**** BEGIN LOGGING AT Sun Dec 11 03:00:01 2016 Dec 11 03:02:01 hi Dec 11 03:02:26 in genymotion i can't create fingerprint in emulator device Dec 11 04:02:59 Anyone familiar with how Google Play pays you? I see it say "We'll send your payment once your payment threshold is reached" which is $1, and I have had more than that amount since October, yet no payment has arrived. When should I be expecting it? Dec 11 04:04:26 According to https://support.google.com/payments/merchant/answer/7159355?hl=en&ref_topic=7159088 the payment for orders from October should have been sent to me mid-November. Dec 11 04:41:30 can't see where it indicates java... http://athena.modelbased.net/technical/index.html Dec 11 05:22:58 I want to start android dev. I think i should buy one tablet but i am not able to decide which tablet should i buy for less than 170 usd Dec 11 05:39:32 RajRajRaj: You could buy a used one and maybe get better value for your money Dec 11 06:37:15 What does contentScrim's do? I have seen them being used in CollapsingToolbarLayout. Dec 11 06:51:57 hi Dec 11 06:52:30 are there material design for earlier api 18 Dec 11 06:55:56 <_rm> with the support library, at least partially yeah Dec 11 07:01:50 homa_: how do you mean material design? Dec 11 07:02:09 the design principles don't care what your API level is Dec 11 07:02:43 thepoosh, i want create attractive gui , how can i do that ? Dec 11 07:02:59 https://design.google.com/ Dec 11 07:07:03 thepoosh, Dec 11 07:07:11 homa_: Dec 11 07:07:36 that don't give me code example for create attractive gui , thepoosh Dec 11 07:08:11 what were you thinking to get from a question like the one you asked? Dec 11 07:09:14 thepoosh, don't give me idea , and strat from ? Dec 11 07:09:38 you asked a question that can't be answered Dec 11 07:12:27 * raoul11 thepooshes thepoosh Dec 11 07:14:31 are there every body know how can i create attractive gui Dec 11 07:15:22 raoul11: ohithere Dec 11 07:15:33 hi buddy Dec 11 07:15:58 lgmtfy attractive app gui 2016 Dec 11 07:16:08 nah Dec 11 07:16:11 I'm done! Dec 11 07:16:39 no yer not Dec 11 07:16:52 hellz yeah Dec 11 07:23:19 r\a\c\c\o\o\n: are you escaping from someone? Dec 11 07:24:45 whats on this week agenda thepoosh Dec 11 07:24:52 u gonna thepoosh hard? Dec 11 07:25:05 emergency build Dec 11 07:25:09 eww Dec 11 07:25:12 * r\a\c\c\o\o\n has a ringed tail! :p Dec 11 07:25:19 who f'ed up? Dec 11 07:25:47 nobody, a new feature that will save about 24K a month Dec 11 07:26:27 oh Dec 11 07:26:28 naice Dec 11 07:27:51 yeah, if it works Dec 11 07:27:58 breaks some backwards compat Dec 11 07:28:06 but saves a shit load of money Dec 11 07:31:47 invest that money in me thepoosh Dec 11 07:32:31 done investing, now I'm only taking Dec 11 07:32:36 k Dec 11 07:32:43 btw thepoosh Dec 11 07:32:49 ? Dec 11 07:32:51 u linked a github page some time ago Dec 11 07:32:56 future projects Dec 11 07:33:12 one which gathers a fuckton of free api's Dec 11 07:46:34 * capella-5x wonders how pocmo likes Hawaii ❔ Dec 11 08:00:12 raoul11: https://github.com/toddmotto/public-apis Dec 11 08:00:14 this? Dec 11 08:00:30 yes Dec 11 08:00:31 thanks Dec 11 08:01:19 np Dec 11 08:01:22 enjoy Dec 11 08:04:10 \: Dec 11 08:10:28 what are you looking for? Dec 11 08:14:08 thepoosh new project to pass the time Dec 11 08:14:34 till i die or get hired as a shitty junior on some new blindspot app Dec 11 08:19:18 "blindspot" app? Dec 11 08:20:55 * capellaGoesBooHo is currently looking for https://m.youtube.com/watch?v=DSqp-W1pWoU Dec 11 08:21:49 capellaGoesBooHo https://play.google.com/store/apps/details?id=com.shellanoo.blindspot Dec 11 08:22:59 no challenge? 1,000 ways to encrypt data in transport? Dec 11 08:28:12 raoul11: are you going to create an app which uses all those APIs at once? Dec 11 08:28:38 raoul11: you should come on sundays to the Android Academy Dec 11 08:28:43 just for kicks and giggles Dec 11 08:28:47 You could call it "APpI" Dec 11 08:29:27 Melatonina gonna create an app for each one Dec 11 08:29:41 just to pass time or until thepoosh hires me Dec 11 08:29:50 thepoosh when? Dec 11 08:29:58 it's on wednsdays Dec 11 08:30:01 no, sundays Dec 11 08:30:02 sowwie Dec 11 08:30:06 there is one tonight Dec 11 08:30:09 but I'm not going Dec 11 08:30:10 u lecturing tonight? Dec 11 08:30:14 so no go Dec 11 08:30:21 I don't lecture yet Dec 11 08:30:22 thepoosh: how's the food? Dec 11 08:30:26 just mentor Dec 11 08:30:29 no free food Dec 11 08:30:33 what does that even means? Dec 11 08:30:36 then I'm not coming either Dec 11 08:30:53 Leeds: google's too cheap to give food Dec 11 08:31:05 max they did was burgers and beer after an 8 hours day Dec 11 08:31:40 :( Dec 11 08:33:52 y'all should come to codeaholics in HK on Wednesday... not much Android, but I may be trying to do some (tech-related) comedy, and there will probably be beer and snacks! Dec 11 08:34:33 and whois paying for the 5k tickets Leeds ? Dec 11 08:34:43 Google Dec 11 08:34:51 tell them I authorised it Dec 11 08:34:57 google only wants my adwords money Dec 11 08:35:12 and slowly drive me into suicide while ranking shit on the play store Dec 11 08:35:21 Leeds: are you a stand-up comedian? Dec 11 08:35:29 raoul11 and Leeds might be that they feed the students in the course Dec 11 08:35:42 since I'm a mentor I never come on time so I might be imssing that part Dec 11 08:35:46 *missing Dec 11 08:35:53 Melatonina: I am not Dec 11 08:36:14 Leeds: so what is "tech-related comedy"? Dec 11 08:36:57 Melatonina: T.J, Miller Dec 11 08:37:00 and stguff Dec 11 08:37:06 *stuff Dec 11 08:37:09 ok, I'll give you guys a bit more warning next time - booking a couple of months in advance I can see flights for US$900 or so on El Al Dec 11 08:37:46 u seent what erlich did thepoosh Dec 11 08:37:50 Melatonina: I am going to attempt to run one or two BBC-style comedy panel shows live in front of a tech audience - tweaked to make the topic techie Dec 11 08:37:55 raoul11: on Uber? Dec 11 08:37:56 its like he's actually living his character Dec 11 08:37:58 yer Dec 11 08:37:59 in particular, Just A Minute Dec 11 08:38:00 yep Dec 11 08:38:06 i can imagine how it went down Dec 11 08:38:07 they say it was Trump reltated Dec 11 08:38:48 if I can get myself together to do a little work before then, I might try to throw together a web-firebase implementation of the game... Dec 11 08:41:56 thepoosh: T.J. Miller was arrested yesterday Dec 11 08:43:25 hi all Dec 11 08:43:36 hi, hero_biz Dec 11 08:44:50 guys I have a question about findviewbyid Dec 11 08:45:48 if we assume a layout in inserted another layout, can we find controls in inner layout by using findviewbyid on outer layout? Dec 11 08:46:28 I tried and it works, but I'm not sure if it is a correct approach. Dec 11 08:46:29 yes, with outer.findviewbyid Dec 11 08:46:42 assuming you have referenced outer first with a regular findviewbyid Dec 11 08:46:51 or inflated or something Dec 11 08:47:38 nothing wrong with this approach Dec 11 08:47:43 yea,outer in my main layout. inner is layout that I have in my viewpager(a non-fragment usage of viewpager). Dec 11 08:47:58 good Dec 11 08:48:23 ty info. :) Dec 11 08:52:35 If you say TJMiller three times fast you get slapped in the head Dec 11 08:53:10 I didn't even know who he was Dec 11 08:53:18 "biggie smalls biggie smalls biggie smalls" Dec 11 08:53:52 I hate software development Dec 11 08:54:15 ysh, it was til for me, his wiki pic was surprising Dec 11 08:59:24 I didn't even know who he was << you cant just say that on public irc channels Melatonina Dec 11 09:02:05 can you say pussy? Dec 11 09:02:13 of course Dec 11 09:02:16 kats? Dec 11 09:02:36 ill allow it Dec 11 09:02:46 raoul11: why can't I say that? I didn't mean it as an insult Dec 11 09:02:54 er, mmm Dec 11 09:03:02 coz all devs must know who erlich is Dec 11 09:03:18 I'm a not a dev, then Dec 11 09:04:04 u should know. Dec 11 09:05:02 and please get yourself hired. You are better than me and the fact that you are not being hired makes me depressed. Dec 11 09:06:00 im pretty much the shittiest dev around here Dec 11 09:06:12 thepoosh can confirm, he wont even hire me for his QA automation team Dec 11 09:07:19 :( Dec 11 09:08:34 what do you lack? Dec 11 09:08:59 also til that Modern Baseball track I can't remember is "Going to Bed Now" Dec 11 09:09:08 brain grey matter? Dec 11 09:09:12 donno Dec 11 09:09:26 but, sleep is for the weak 😆 Dec 11 09:09:45 well, you should know. How can improve yourself and get hired if you don't know what your weak points are? Dec 11 09:09:51 Ask thepoosh Dec 11 09:11:17 i did ask, but all he offered was sexual advises Dec 11 09:11:44 :( Dec 11 09:13:16 My best fav currently has a weird name... Modest Mouse is interesting band Dec 11 09:13:23 https://en.m.wikipedia.org/wiki/The_Ground_Walks,_with_Time_in_a_Box Dec 11 09:15:05 thepoosh: what are raoul11's weak points as software developer? Dec 11 09:16:55 his nick isnt snorp Dec 11 09:17:23 not delegating work properly Dec 11 09:18:04 i trello liek a baws Dec 11 09:19:10 Well, he operates alone, how could he delegate at all? How can that alone be the cause of he not being hired? Dec 11 09:20:14 tbh i havnt submitted a CV in like 7 years Dec 11 09:20:30 so getting hired could be problematic Dec 11 09:20:45 why didn't you submit any CV? Dec 11 09:21:59 lazy Dec 11 09:22:22 but then you say you are depressed because you don't get hired Dec 11 09:24:13 are you scared of job interviews? Dec 11 09:24:22 to be rejected? Dec 11 09:26:57 being asked irrelevant questions during same said interviews? Dec 11 09:28:11 well, you learn how to answer to such irrelevant questions, get the job and forget about them Dec 11 09:29:08 Melatonina: am not really depressed Dec 11 09:29:14 just like to bitch bout it Dec 11 09:29:19 ok Dec 11 09:29:30 I was worried Dec 11 09:29:41 (: Dec 11 09:31:05 "how many lawyers can you fit into a bus" Dec 11 09:31:29 the same number of any other kind of people Dec 11 09:31:34 "how would you tell a robot to get you coffee" Dec 11 09:32:08 read the manual and use the appropriate language Dec 11 09:32:15 answer correct or no soup for you Dec 11 09:32:22 fa Dec 11 09:32:28 il Dec 11 09:32:49 no soup go home in shame Dec 11 09:32:51 those are not irrelevant questions Dec 11 09:33:24 those two are typical question aimed to know how you work. They don't care about the answer Dec 11 09:33:36 after already providing and demanding extensive prior work product be reviewed? Dec 11 09:33:59 for a job you're apply for in confidence? Dec 11 09:34:05 Well, two questions is not much. Dec 11 09:34:20 "how you work" = "how your mind works" Dec 11 09:34:27 not "how you code" Dec 11 09:34:55 i don't think few questions like that can really give even just a hint of how you work ;) Dec 11 09:35:05 "how you work" = "how your mind works" Dec 11 09:35:07 <_rm> getting irritated at dumb questions is an answer in itself, i suppose :) Dec 11 09:35:13 yes, they can Dec 11 09:35:15 exactly Dec 11 09:35:24 back to the topic, i played with remote display of google cast api.... what a mess Dec 11 09:36:01 i was going to add a feature related to google cast,; but the experience is so obnoxious that i'm not sure if i want to keep this branch Dec 11 10:04:27 so i think i cheated google... they ripped the rug out from under me by making text relocations fail Dec 11 10:04:31 so... i cheated lol Dec 11 10:04:44 my code no longer has a .text section Dec 11 10:04:53 it has a .foo section and all the code goes into the .foo section Dec 11 10:04:59 including all the relocations Dec 11 10:05:06 foo relocations are ok kthxbai Dec 11 10:05:13 of course... this is not a fix Dec 11 10:05:34 and the rewrite IS ongoing lol... but it is a quick kludge fix :) Dec 11 10:33:55 mark4: we missed your papyruses Dec 11 10:34:11 mark4: welcome back Dec 11 10:35:35 mark4: regarding google: "F@#k the system!" Dec 11 10:53:12 Does matter if i use android studio 2.0 then android studio 2.3.3? Dec 11 10:53:28 But i still gett he same tools? Dec 11 10:54:07 I hope someone can help me out. Dec 11 10:55:12 ? Dec 11 11:01:21 perlsyntax: does it matter to you? Dec 11 11:01:46 perlsyntax: Maybe someone can help you out if you state your problem Dec 11 11:02:03 ? Dec 11 11:02:24 i was asking becuase i think android studio 2.3.3 is buggy. Dec 11 11:03:04 i get a fail install when i try to install the new layout in android studio:) Dec 11 11:03:12 <_rm> you mean 2.2.3? Dec 11 11:03:14 <_rm> also, buggy how? Dec 11 11:03:16 yes Dec 11 11:03:19 sorry Dec 11 11:03:20 <_rm> works pretty nicely for me Dec 11 11:03:38 <_rm> (i'm messing around with kotlin in it as we speak) Dec 11 11:04:16 i get that error but after i try to install the layout it is installed after the fail error odd to me. Dec 11 11:04:37 i been try to find out what the prob is.:) Dec 11 11:05:13 <_rm> i'm not sure i know what you mean Dec 11 11:05:42 i talking about the ConstraintLayout for android Dec 11 11:05:55 Sorry i try my best:) Dec 11 11:06:12 i get this error Dec 11 11:06:58 installed fail check installionlogs and try again. Dec 11 11:07:19 i mean install logs Dec 11 11:17:11 Just wondering.. Do dev's target amazon store with their apps? Is there a market there? Dec 11 11:23:55 I don't think many smaller devs do... I'd imagine there are good terms available for bigger names Dec 11 11:24:24 about the only reason I'd pay it any attention is the chance of being in a much smaller pond, much less competition Dec 11 11:32:27 I was thinking that the algo's that promote it would be better than the ones on google. If their book search is any indication. Dec 11 11:37:15 What are the chances for me to be hired if I build a polished niche service with Android and web clients which has a small user base? Dec 11 11:45:40 hired by who? Dec 11 11:51:22 any decent company Dec 11 11:53:26 probability of .0003462342121323423 Dec 11 11:55:22 :( Dec 11 11:55:29 what would be missing? Dec 11 12:05:01 adq: care to elaborate, please? Dec 11 12:06:10 there is nothing to elabarote, this is the wrong channel, you're asking the wrong question, what kind of answer did you expect with something starting with "what are the chances.." Dec 11 12:06:33 ok Dec 11 12:06:46 it's not like we can know in advance who will interview you, how you will answer and how the one interviewing you would note you, etc Dec 11 12:07:12 well, getting an interview would be a step ahead Dec 11 12:07:20 i think you're acting like that on purpose, or at least refuse to act differently if you are aware of it Dec 11 12:07:44 sorry, acting like that? Dec 11 12:07:47 what Dec 11 12:08:07 acting like you act. Dec 11 12:08:59 it was just a honest question Dec 11 12:46:26 Hi, reading on Google that onDestroy only works in emulation. Any way i can run code when user terminates the app? Dec 11 12:47:02 On pause would be your goto mate Dec 11 12:47:44 baash05: is that even when i swipe it away? Dec 11 12:48:02 you should (at least as far as I understand it) do prep for cleanup in the onpause.. Dec 11 12:48:40 Nope that happens (again if I'm wrong tell me) when you click the menu item that shows the swipe away menu. Dec 11 12:48:56 (the square on my phone) Dec 11 12:49:15 yeah but i need to run some code when the app gets closed by swiping it away Dec 11 12:49:45 Code that does what.. saves a file? Sends coms? Dec 11 12:49:55 Saves state? Dec 11 12:50:28 no, i need to clean webview cache Dec 11 12:51:28 Ah.. And the onPause would be too early.. Makes sense. Dec 11 12:51:36 exactly Dec 11 12:52:28 Okay.. sorry that's as far as I can go.. I'm a hobbiest. I would give it a try though. Dec 11 12:52:37 I mean the on-destroy. Dec 11 12:54:51 back! Dec 11 12:55:09 What about clearing the history when they pause but putting it in some encrypted cashe? Dec 11 12:55:27 So if they resume you can restore it. Dec 11 12:55:52 no, i need to clean webview cache << clean webview cache when you start your app, because onDestroy is not always guaranteed to be called (if the system kills your app to reclaim memory for example) Dec 11 12:56:13 other than that, idk where you read onDestroy only works in emulation, because this is false Dec 11 12:56:23 How about loading webview cache into app memory when paused. Dec 11 12:56:37 Just a static variable. Dec 11 12:56:42 adq: is that the event that is called when i swipe away my app in the tasks list? Dec 11 12:57:09 And restoring the cache on unpause Dec 11 12:57:10 not necessarily, michael33 read https://github.com/xxv/android-lifecycle and the official doc about lifecycle Dec 11 12:57:29 just don't do anything in ondestroy because there is no guarantee it's being called Dec 11 12:57:45 or do something in it which is not important, in case onDestroy is skipped Dec 11 12:59:15 Okay.. if you clear the cache into a static member of the activity when the onpause is called and restore from it if the onresume is called, then if the app is swiped away that static variable will be cleared. Dec 11 12:59:49 This would be IMHO the "safest" way to ensure the webcache does not live beyond the instance of the app. Dec 11 12:59:57 ok seems i was confused with onTerminate Dec 11 13:21:14 My error went away after i install android studio 2.2 Dec 11 13:21:17 :) Dec 11 13:23:46 Hi, does anyone know of any power saving features that prevent network activity in alarm triggered background services? Dec 11 13:26:38 I'm having trouble with an app I'm making, it uses an RTC_WAKEUP alarm to start a service that acquires a partial wake-lock and performs a few HTTP requests. Dec 11 13:27:39 But on about 50-70% of alarms, the HTTP requests will fail with timeouts. Dec 11 13:28:11 I've also tried using DatagramSocket and get "Operation not permitted" exceptions. Dec 11 13:28:45 perlsyntax: good Dec 11 13:40:24 does it violate any design pattern to include a close button in an activity? Dec 11 13:41:36 <_rm> if it's supposed to be some sort of modal view, then probably not Dec 11 13:43:02 coming from ios, i'm not that familiar with how activities should behave, but i think in my case they're kind of modal windows on top of other activities Dec 11 13:43:21 it's just that i'm not sure if a ui should rely on the native android navigation buttons Dec 11 13:44:08 <_rm> you could use a back button on the action bar Dec 11 13:44:50 is action bar the one with a triangle, a circle and a square? Dec 11 13:46:06 <_rm> that's the navigation bar Dec 11 13:46:15 <_rm> the action bar is what's basically the navigation bar on ios :) Dec 11 13:46:21 ah Dec 11 13:46:49 <_rm> anyway, google has the reasoning for "dual" back buttons somewhere Dec 11 13:46:52 <_rm> can't find it right now Dec 11 13:48:03 what if the activity is a fragmentactivity with pagination? Dec 11 13:48:11 <_rm> haha https://developer.android.com/training/implementing-navigation/ancestral.html Dec 11 13:48:22 <_rm> that page links to https://developer.android.com/training/implementing-navigation/temporal.html Dec 11 13:48:25 you know, where you select things and move to the next fragment Dec 11 13:48:34 <_rm> which contains the sentence "All Android devices provide a Back button for this type of navigation, so your app should not add a Back button to the UI." Dec 11 13:48:47 hi Dec 11 13:49:26 <_rm> JuliusN: i dunno, look at other apps and how they do it. there aren't any rules that are set in stone, but just try to be consistent with what users might expect Dec 11 13:49:27 Melationina,I thought i had it fix but maybe i lett he error not bug me:) Dec 11 13:50:42 JuliusN: Seen this page? https://developer.android.com/design/patterns/navigation.html Dec 11 13:51:12 JuliusN: why do you want to "close" your activity? If your activity must be closed as consequence of some event, do it. Otherwise just move on and let Android handle the lifecycle. Dec 11 13:51:48 Melatonina: if the user wants to interrupt the activity and return the main activity Dec 11 13:52:01 <_rm> there's always the system back button Dec 11 13:52:05 <_rm> in the navigation bar Dec 11 13:52:15 ^ Dec 11 13:52:38 that's what the back button is for Dec 11 13:52:38 yeah, that was basically my question. if the ui should rely on that, then i don't need the close button Dec 11 13:52:49 i'm just not familiar with android's navigation patterns Dec 11 13:52:51 exactly, you don't need a close button Dec 11 13:53:02 <_rm> although i dunno, an explicit close button could function as a message to the user that the activity is quittable Dec 11 13:53:04 alright, cool Dec 11 13:53:47 there is also the chance to add a "home" button in the action bar to go back to a "home" activity Dec 11 13:55:57 Hi, is there a way to give make a notification "expanded" by default? Meaning that the action button should show by default, the user shouldn't have to pull down on the notification Dec 11 14:42:03 where is the default text style defined in android studio projects? it seems like it responds to things like background color to maintain its contrast Dec 11 14:56:33 JuliusN: in the theme Dec 11 14:57:17 JuliusN: it doesn't respond to anything. It's just set in each theme to contrast with the theme's background Dec 11 14:59:37 by theme do you mean style resources? Dec 11 15:03:59 not necessarily Dec 11 15:04:07 the theme is set in the manifes Dec 11 15:04:10 manifest Dec 11 15:04:24 it could be a reference to an android theme Dec 11 15:04:41 or a theme defined in the style resources, possibly inheriting from an android theme Dec 11 15:05:11 i'm asking because i was wondering if i can make my list item divider (which is a view with a background color) to match the style of the default text Dec 11 15:07:38 JuliusN: http://stackoverflow.com/a/6921818 Dec 11 15:13:18 How many ContentProviders can run on Android cocurrently? Dec 11 15:14:04 Okay, I solved it! Dec 11 15:14:29 Heh. I managed to rubberduck before I presed enter. Dec 11 15:15:01 Turns out that the clusterer library for Google Maps only cluster markers if there are at least five of them. Dec 11 15:16:29 kdehl: real ducks work better Dec 11 15:17:13 Melatonina: Never had one. Only plastic. Dec 11 15:20:58 kdehl: facebook and google use real ducks and reported 28% improvements in debugging Dec 11 16:08:54 I am trying to import icons for my menu/options, but Android Studio's image import dialog does not let me make the icons "solid", they always have ~25% transparency after the import is done Dec 11 16:09:44 If I manually remove the transparency from the icon using GIMP, my application just starts using an icon sized for smaller DPI screens Dec 11 16:09:53 anyone encountered this issue before? Dec 11 16:11:50 it doesn't look that bad on the actionbar, however, it looks like total crap when it comes to the floatingactionbutton Dec 11 16:12:19 I only use vector graphics Dec 11 16:13:03 the rare times I imported a PNG I never encountered that problem Dec 11 16:17:06 guys i want to scroll-animate a textview larger than the screen, but when i start the translateAnimation the text is clipped because it's too large... how can i solve? Dec 11 16:17:49 why don't you use a ScrollView and animate that? Dec 11 16:18:07 Melatonina: how did I not think of that? Thanks a bunch for the help. Dec 11 16:20:27 Melatonina: you mean i put the textview inside the scrollview and set the width of the scrollview as wrap_content Dec 11 16:20:40 then i translate-animate the scrollview? Dec 11 16:23:20 in which direction are you trying to translate the text? Dec 11 16:24:56 Melatonina: right to left Dec 11 16:25:24 maybe you can create your own view Dec 11 16:26:44 if you translate the TextView which is not wide enough to display your text, you are translating the whole view with the text cut, not the text inside the view Dec 11 16:27:48 Melatonina: damn, you are right, Dec 11 16:32:14 skin1980: but read this too: http://stackoverflow.com/a/10439705 Dec 11 16:32:55 skin1980: and the whole page Dec 11 16:36:26 tnx Melatonina... will read Dec 11 17:27:27 my DrawerLayout is not above the Toolbar Dec 11 17:27:36 the app bar is always above the drawer Dec 11 17:27:39 i dont want that Dec 11 17:33:28 where do i put the android.support.v4.widget.DrawerLayout? Dec 11 17:33:51 already tried everywhere inside my activity as well as the fragment. Also tried it never reders correctly ("default") Dec 11 17:34:29 I need SDK 1 support (KitKat 4.4) which does not allow elevation or Z-transformations Dec 11 17:42:49 anyone? Dec 11 17:43:28 My NavigationView (inside DrawerLayout) do not draw corrctly - it should be above all content but the app bar persists Dec 11 17:45:13 nasty https://www.reddit.com/r/androiddev/comments/5hpm98/psa_the_htc_10_might_kill_your_app_process/ Dec 11 17:48:40 Hey all, I'm running into this scenario basically (http://stackoverflow.com/questions/32090960/android-viewpageadapter-with-a-separate-backstack-for-each-tab) Is there anyway to do this where the roots are activities rather than fragments. it would free up a lot of problems Dec 11 17:49:03 no, not activities Dec 11 17:49:32 yeah that state management gets pretty tricky ... sad ! Dec 11 17:51:02 Can you use activities as targets for navdrawers at least? even though fragments are recommended? Dec 11 17:51:18 no Dec 11 17:51:31 oh , you mean select an item and start a new activity ? Dec 11 17:51:39 to open an activity from a drawer? Dec 11 17:51:48 but no, you can't put an activity in a nav drawer Dec 11 17:53:48 What about having the navdrawer in a baseactivity class and calls startActivity(...) on selecting the item. Each class just extends from the base. Dec 11 17:57:53 anyone ever do testing with web services on their LAN? I'm trying to connect to my desktop with retrofit and I keep getting a 404 not sure how to go about debugging this Dec 11 17:58:49 BinaryWaves: you can start a new activity from the drawer, but the navdrawer will still be attached to the original activity Dec 11 17:59:45 grekkos: you asked the same question yesterday, I gave you some tips and you quit Dec 11 18:00:03 tip him again Melatonina Dec 11 18:00:41 grekkos: I have my Android app talk to my web services inside my LAN all the time Dec 11 18:00:45 Melatonina: ah sorry I got pulled away Dec 11 18:01:07 I have to check the logs. 1 minute Dec 11 18:01:52 or if I quit and rejoined right away my client might've gotten screwy, but either way I apologize for that Dec 11 18:03:48 I'm testing a web API running it on my desktop and the android device is on the same LAN Dec 11 18:03:48 Dec 10 06:47:15 You could be calling the API method with a wrong name or wrong parameters Dec 11 18:03:48 Dec 10 06:47:32 or you could have configured routing incorrectly Dec 11 18:03:48 Dec 10 06:48:08 or you could have configured you web server (if the API is hosted in a web server) improperly Dec 11 18:03:48 Dec 10 06:48:36 is your web server logging the requests? Dec 11 18:04:02 I have nothing else to offer, sorry Dec 11 18:04:27 h Dec 11 18:04:31 well I can hit the api from chrome Dec 11 18:05:23 my activity xml looks like this http://pastebin.com/5pnWQbae Dec 11 18:05:27 I couldn't get a proxy working to use the hostname which I originally wanted but I can hit it directly using the lan ip Dec 11 18:05:41 the DrawerLayout renders correctly above my content but the content itself is not clickable Dec 11 18:05:50 raoul11 : That's why I would make every activity extend from the Base, so every activity naturally has the base Dec 11 18:06:02 @layout/dvd_list basically is only a recyclerView Dec 11 18:07:34 grekkos: what happens if you send a request from the Android device? Dec 11 18:07:56 oh, 404 sorry Dec 11 18:08:01 yeah Dec 11 18:08:37 I mean I don't have authentication implemented yet but I'd expect a 401 (which is what I do get if i hit it from browser or elsewhere) Dec 11 18:09:11 from a browser = from chrome, inside the Android device? Dec 11 18:11:17 yeah Dec 11 18:11:27 well both Dec 11 18:11:46 I'm checking the actual response code from the browser, but I have a response body either way which is still coming up as `null` Dec 11 18:11:52 from the desktop* Dec 11 18:11:57 Find out how your apps request differs from chromes request Dec 11 18:12:30 grekkos: add a ping request without authentication to your API Dec 11 18:12:36 grekkos: and call that Dec 11 18:12:58 hmm Dec 11 18:13:05 grekkos: what platform are you using to implement the web service? Dec 11 18:13:37 Melatonina: it's nodejs Dec 11 18:13:45 running on my local os x right now Dec 11 18:14:15 I don't know that. I use ASP.NET Web API 2 Dec 11 18:14:59 ah ok Dec 11 18:15:22 I would try a ping API anyway Dec 11 18:15:58 Why ping? The request is reaching the server, and it's returning 404 Dec 11 18:16:04 yeah Dec 11 18:16:10 that's what it seems like Dec 11 18:16:10 Connection problems come and go, during development. So it's useful to have something simple that just works Dec 11 18:16:17 So your request is wrong, and different from chromes Dec 11 18:16:17 unless for some reason it would give me a 404 as a default but that would be weird Dec 11 18:16:55 with ASP.NET I would get a 404 if something in my request didn't match any route defined on the server Dec 11 18:17:05 you don't get syntax errors, you get 404 Dec 11 18:17:59 well yeah Dec 11 18:18:02 You could be misusing Retrofit or Volley Dec 11 18:18:10 well that's what I'm wondering Dec 11 18:18:19 it works on my apiary Dec 11 18:18:35 creating a request which is actually different from what expect Dec 11 18:18:38 apiary? Dec 11 18:18:44 but maybe my apiary responses are out of sync with what the server is doing... I implemented everything to an apiary originally Dec 11 18:18:48 yeah apiary is a mock web service Dec 11 18:18:56 http://apiary.io Dec 11 18:19:19 now I'm hooking my code into the real deal, but of course there could be differences between actual implementation and the mock Dec 11 18:53:28 android's sample for nav drawer is an xml, with a sub xml for the toolbar and a subxml for the content. since it points to single content_frame container, should each activity just reference that same layout and just switch out the container when they are created, each activity just containing their own fragment manager and maintaining their own personal backstack? Dec 11 18:57:22 @BinaryWaves What do you mean by "subxml"? Dec 11 18:57:36 You ought to post a link to the examples you're looking at Dec 11 19:03:55 my ui needs to be updated gradually, because it has time-based parameters. should i consider writing a service? Dec 11 19:04:29 Melatonina: it looks like retrofit is chopping off part of my baseurl :) Dec 11 19:05:39 for example i'm trying to create a live-updating time-based graph that displays current time in context of a timeframe Dec 11 19:09:37 ah I see Dec 11 19:12:11 Melatonina: so the actual solution is that my baseurl was something like "http://api.com/v1/", and then my route was defined with an annotation like @GET("/somepath") apparently with the leading '/' from the @GET it chops off the /v1/ Dec 11 19:12:47 When you add a new activity from the tamplates in android studio and choose a navigation activity. It creates an xml file (activity_main) with the drawer layout and navigation layout and an include statement. The include statement links it to another xml file (app_bar_main) containing the toolbar/appbar and a FAB and another include statement. this second include statement points to a third xml file (content_main) containing only a Dec 11 19:12:47 FrameLayout. Across my root activities, the only thing changing is the frame layout, the drawer and toolbar persist throughout each. Would the best way to handle this be to just have a BaseActivity.java that uses the toolbar and drawer elements and make each app page a java class extending from the BaseActivity and essentially act as managers for a handful of fragments. That is, each time the ActivityA,B,C,D,etc are loaded they get the nav Dec 11 19:12:49 and toolbar from the same BaseActivity and then they just each have a FragmentManager to manage their own backstack. This way ui wise the only thing ever changing really is the FrameLayout in content_main where each of the root activities just replace it with a fragment. Dec 11 19:13:02 templates* sorry probably a few spelling errors haha Dec 11 19:13:05 grekkos: never incurred in that issue Dec 11 19:14:04 yeah Dec 11 19:14:06 strange Dec 11 19:14:12 do you version your API? Dec 11 19:15:54 Melatonina: http://stackoverflow.com/questions/32352159/retrofit-2-removes-characters-after-hostname-from-base-url it's this issue Dec 11 19:22:08 also, apparently non 200 responses don't deserialize the JSON string to java objects Dec 11 19:24:52 well, it's my first API, my first lots of things and I can't plan very much. So I can't version it properly Dec 11 19:25:09 I will version it in future, of course Dec 11 19:25:25 ah okay Dec 11 19:25:48 yeah I read a pretty handy book about apis before I wrote this one in particular because I've had issues in the past at other organizations with the apis we had there Dec 11 19:26:03 they brought up a lot of real world scenarios and things to consider Dec 11 19:26:07 grekkos which book ? Dec 11 19:26:29 https://pages.apigee.com/rs/apigee/images/api-design-ebook-2012-03.pdf Dec 11 19:26:33 there's the link Dec 11 19:26:45 it's more like a brief pamphlet but it's good Dec 11 19:26:48 and concise Dec 11 19:28:03 it's definitely a good quick read, they use real APIs by google, twitter, twilio, etc. as examples of real world application Dec 11 19:29:39 nice thx Dec 11 19:31:18 thanks Dec 11 19:32:13 yeah no problem Dec 11 19:32:25 I should probably read it again to make sure I did the stuff in there I wanted Dec 11 19:32:30 the versioning idea was a good one Dec 11 19:53:33 Hey guys, I am wanting to find different way to ID listview row items. ATM I am just using a second list and use position from my listview to used in the list. Any other recommendations? Dec 11 19:53:41 That guy who posted the "teen getting an Android job" thread has had his username tagged "Teen Dev". Dec 11 19:54:35 Demon_Jester: I think the position is the only possible way. Dec 11 19:55:03 Demon_Jester: The ListView might have six views going at once. Those views might represent positions 20 to 25. Dec 11 19:55:28 I mean if I can eliminate the second list and ID each row that would be great, if not thats fine. Dec 11 19:56:41 Demon_Jester: What do you mean by "ID each row"? I can think of multiple meanings there. Dec 11 19:58:02 TacticalJoke, Essentially I want to put a ID on each row, and use that ID for the Key in Hashmap, so when I click it will use ID from the item row and retrieve value in hashmap. Hopefully that makes sense. Dec 11 19:58:44 I guess you could use the overridden Adapter.getItemId for that. Dec 11 19:58:59 Though I wonder whether you could use the position itself: that's already a unique ID (for a given list). Dec 11 19:59:45 TacticalJoke, before onclick event how can I determine the position my item will be in the listview? lv.size()? Dec 11 20:00:59 TacticalJoke, Sorry my items get added dynamically, its not preset. Dec 11 20:02:31 Demon_Jester: The "adapter position" is the java.util.List position. The "layout position" varies as the list scrolls (it could go from 2 to 1 to 0). Dec 11 20:02:45 What is your ultimate goal? Might be easier to answer the question if we know what you're trying to do. Dec 11 20:04:48 My goal is to eliminate this second list to manage the Key for hashmap and just use one list, I came across lv.setId(), is that would I need, implement that when information from https comes in to populate my LV? Dec 11 20:05:00 that manages the key* Dec 11 20:06:16 No, not View.setId. Dec 11 20:06:45 If you subclass BaseAdapter, you can return an ID from `getItemId`. I guess you can also do this if you subclass ArrayAdapter. Dec 11 20:07:14 Either that or make the position itself the key for the hashmap. Dec 11 20:08:06 TacticalJoke, I think I will use position itself as the ID. Dec 11 20:08:06 (Though I guess the second idea isn't feasible.) Dec 11 20:08:14 Oh, okay. Dec 11 20:08:32 TacticalJoke, if I end up not liking that method I will return to my old method and think of something else. Dec 11 20:08:45 TacticalJoke, but using position should be fine. Dec 11 20:09:15 https://i.redd.it/w2blru1yqy2y.jpg Dec 11 20:10:04 Demon_Jester: What is the hashmap for? Just curious. Dec 11 20:11:04 TacticalJoke, It used just to store sockets, so I can retrieve DOS and DIS Dec 11 20:12:33 Storing sockets? :E Dec 11 20:13:20 TacticalJoke, socket values really, Its temp, and I will store sockets propery way Dec 11 20:13:53 TacticalJoke, or how ever I am suppose to do it. Dec 11 20:29:36 hii Dec 11 20:29:39 can someone help me Dec 11 20:29:53 i'm trying to get a project up and running Dec 11 20:29:57 my friend made a git project Dec 11 20:29:59 and when i clone it Dec 11 20:30:04 i can't compile it Dec 11 20:33:34 Limona: You can do it! Dec 11 20:34:02 Battle your demons. Dec 11 20:38:25 Error:(4, -1) android-apt-compiler: [main] C:\Users\Origin\AndroidStudioProjects\android-rss-app\RSSapp\app\src\main\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. Dec 11 20:38:29 that's the error i get Dec 11 20:38:30 any clues Dec 11 20:41:51 Limona: Tools > Android > SDK Manager > SDK Tools. Makes sure Android Support Repository is checked. Dec 11 20:42:37 it's installed Dec 11 20:43:02 let me show you my directory structure Dec 11 20:43:55 http://imgur.com/a/JwZXd Dec 11 20:45:23 Try Ctrl+Shift+N > "build.gradle" > Enter, and see whether 'appcompat' is mentioned in there. Dec 11 20:45:43 Make sure you pick the top one. Dec 11 20:47:03 is this how an app looks btw? Dec 11 20:49:29 Error: `this`: no referent found. Dec 11 20:49:42 ehm Dec 11 20:49:45 i mean every standard app Dec 11 20:49:48 or when you make one Dec 11 20:49:52 is this how an average project looks like Dec 11 20:49:54 is what i meant Dec 11 20:49:59 with that structure Dec 11 20:50:21 there's no build.gradle found Dec 11 20:50:51 I guess your friend forgot to push his build.gradle files. Dec 11 20:51:02 Maybe he is a noob and has them git-ignored. Dec 11 20:51:25 we're both C coders Dec 11 20:51:30 let me check Dec 11 20:52:11 .gradle is ignored Dec 11 20:52:17 but shouldn't my project make one Dec 11 20:52:37 build.gradle is in there tho Dec 11 20:53:03 The .gradle directory can be ignored. Dec 11 20:53:03 i find it in my directory structure, but it's not in the android app Dec 11 20:53:08 ahh alright Dec 11 20:54:06 ok, TacticalJoke if i open a dir and import settings, i get that directory structure, but if i choose external graddle, i get a different structure Dec 11 20:54:24 should the .gradle files be in the repo? Dec 11 20:54:40 The files in the .gradle directory shouldn't. Dec 11 20:54:49 ok they arent Dec 11 20:54:49 `build.gradle`s definitely should. Dec 11 20:54:53 but build.gradle does exist Dec 11 20:54:55 okay Dec 11 20:54:57 so that's not a problem Dec 11 20:55:03 so if i import the project Dec 11 20:55:13 how come i don't see the "full" folder structure Dec 11 20:56:34 so i get the same error :/ Dec 11 20:56:41 i just reimported Dec 11 20:57:46 Ask your friend why you don't have access to two build.gradle files. Dec 11 20:57:56 And you might want to change the Project thing (at the top left) to Android. Dec 11 20:58:04 TacticalJoke i do have access Dec 11 20:58:07 and he does see it Dec 11 20:59:43 TacticalJoke there is a build.gradle Dec 11 20:59:46 it works on his pc Dec 11 20:59:51 so no idea why it doesn't work on mine Dec 11 21:00:08 There should be two build.gradles. Dec 11 21:00:15 Probably. Dec 11 21:00:26 Ctrl+Shift+N > build.gradle Dec 11 21:00:44 the control shift n does not find build.gradle Dec 11 21:00:54 but there defenetely is build.gradle in my directory Dec 11 21:01:00 did i not import the project correctly? Dec 11 21:01:11 Where is build.gradle? Dec 11 21:01:29 in the root dir / RSSapp/ Dec 11 21:02:19 There should probably be one in RSSapp and one in RSSapp/app. Dec 11 21:02:30 I wonder why Android Studio can't find the first, though. Dec 11 21:02:58 sorry, let me write the structure correctly Dec 11 21:03:17 C:\Users\Origin\AndroidStudioProjects\android-rss-app Dec 11 21:03:23 and C:\Users\Origin\AndroidStudioProjects\android-rss-app\RSSapp Dec 11 21:03:38 build.gradle is in the \android-rss-app\RSSapp Dec 11 21:04:07 ahh Dec 11 21:04:11 the app has a build.gradle too Dec 11 21:04:13 you are correct Dec 11 21:04:41 The app one should contain 'appcompat' near the bottom. Dec 11 21:05:04 sec, let me paste git ignore Dec 11 21:05:27 https://ideone.com/HXCajD Dec 11 21:06:08 app contains build.gradle and prograd-rules.pro Dec 11 21:06:24 What does app/build.gradle contain? Dec 11 21:06:48 ahh Dec 11 21:06:50 lots of stuff Dec 11 21:06:51 Though I wonder whether you have imported the project incorrectly. [ Ctrl+Shift+N > build.gradle ] should work. Dec 11 21:07:05 how do i import it, do i use existign settings Dec 11 21:07:09 or do i make new Dec 11 21:07:11 external Dec 11 21:07:48 You mean "external Gradle"? Dec 11 21:08:09 yes, i presume i just use existing? Dec 11 21:08:16 i've imported the project from git Dec 11 21:08:29 want me to paste app/build.gradle Dec 11 21:08:30 Either should work, but if you use an external version you'll have to find it. Dec 11 21:08:37 i don't? Dec 11 21:08:41 it's just the defualt project Dec 11 21:09:36 https://ideone.com/IbfN0R Dec 11 21:14:57 Limona: I think Android Studio just isn't finding Gradle. Dec 11 21:15:05 In your screenshot, there is no mention of Gradle (when there should be). Dec 11 21:15:10 yes Dec 11 21:15:12 i beleive so Dec 11 21:15:18 any idea how to tell it it's there? Dec 11 21:15:22 like open project Dec 11 21:15:22 or Dec 11 21:16:00 Try [Ctrl+Shift+A > gradle settings > Enter]. Dec 11 21:16:20 0o Dec 11 21:16:20 wait Dec 11 21:16:26 if i OPEN Dec 11 21:16:30 \android-rss-app\RSSapp Dec 11 21:16:33 it shows graddle Dec 11 21:16:42 but not if i import \android-rss-app Dec 11 21:17:27 strange Dec 11 21:17:30 what's the test thing tho Dec 11 21:18:29 Automated local tests (usually unit tests). Dec 11 21:20:36 alright it seems to work Dec 11 21:20:48 TacticalJoke i presume that's present in every project? Dec 11 21:20:56 should i mess with java files there? Dec 11 21:21:15 now it opens it correctly Dec 11 21:21:16 yay Dec 11 21:21:18 The directory is generated by default nowadays. But your friend might have purposely create it or files in there. Dec 11 21:21:19 i just had to open the dir Dec 11 21:22:09 sweet Dec 11 21:22:11 it works Dec 11 21:22:12 thanks :3 Dec 11 21:23:21 Thank you for contacting Android Developer Support. Please click [here] to rate the service. Dec 11 21:23:45 [x] Dec 11 21:23:56 :[ Dec 11 21:24:41 [10/10] Dec 11 21:26:32 :] Dec 11 21:26:49 This number of smileys reminds me of Yahoo! Chat. Dec 11 22:08:57 Hi guys! How can I use SpannableString as arguments for String.format()? I have a string with numbered placeholders, and the text from SpannableString appears in TextView elements, but with no visible transformations. Dec 11 22:14:02 AlexBerdnikov: You can use SpannableString.toString, but it'll just be a String (with no spans) of course. Dec 11 22:14:14 :( Dec 11 22:14:54 Also, creating mixed rtl and ltr texts in Android is nightmare Dec 11 22:15:12 Perhaps you could apply the spans *after* calling String.format. Dec 11 22:17:07 TacticalJoke, yes, I thought about it but then I need to know start\end positions of the substrings I need to span in every damn string. Dec 11 22:17:37 That's, of course, absolutely possible but imagine a code doing that for a moment Dec 11 22:18:25 I believe there must be some simpler way Dec 11 22:18:48 What is the output text? Something like "1. foo 2. bar"? Dec 11 22:20:29 There's Hebrew text with two or three places in it where I need to insert float numbers with their decimal parts underscored + currency symbol. Dec 11 22:22:24 It might be easiest to create some FooTextGenerator object which generates a Spanned with the right spans and text. Dec 11 22:22:50 TacticalJoke, probably, you're right. Dec 11 22:23:01 Thanks for suggestions! Dec 11 22:23:18 I don't see how String.format, which knows nothing about Android text spans, could ever be made to work for this. Dec 11 22:24:47 I guess there's also Html.fromHtml, but I'm not sure how well that works. Dec 11 23:29:20 My up button in one of my activities seems to not be working, how can I debug this? Dec 11 23:30:00 The toolbar is set as the support action bar, and .setDisplayHomeAsUpEnabled is set to true Dec 11 23:30:16 the parent is set in the manifest, but clicking the button does nothing Dec 11 23:31:44 Has anyone had experience with geofencing? If I spawn a geofence around me, what will it trigger? (I set the geofencing request to INITIAL_TRIGGER_ENTER), my presumption would be that in that case if i'm already inside a spawned geofence, it should trigger as enter. is that correct? Dec 11 23:42:03 Issue seemed to be the child activites onOptionsItemSelected was returning true after custom actions instead of calling the supers method. Dec 12 02:02:25 scoble's new book looks interesting https://www.amazon.com/Fourth-Transformation-Robert-Scoble/dp/1539894444 Dec 12 02:02:32 AR/VR to replace phones Dec 12 02:05:10 really? old news Dec 12 02:14:34 g00s: I wrote about that subject here in this channel a month ago, approximatively Dec 12 02:15:25 i talked about it earlier than that, like around Holo timeframe Dec 12 02:15:30 so several years ago Dec 12 02:15:47 but somebody actually wrote a decent book about it, rather than educated guess ;) Dec 12 02:16:47 we also discussed it around i/o 2016 with google doing daydream, etc Dec 12 02:18:42 also discussed in a book several years ago 'brave nui world' Dec 12 02:19:09 although, that was about other stuff as well like projecting UIs on other objects Dec 12 02:19:24 then it's the time of stopping discussing Dec 12 02:19:39 to stop Dec 12 02:20:45 I'm learning to write application on a toy platform while somebody is working to the real thing Dec 12 02:21:32 basically every time google comes out with a new design language i ask myself what they are doing in the AR space, because even though these are wimp+ being touch, they are still kinda wimp Dec 12 02:31:18 I'm making an application with cloud storage. Should I store data locally in a sqlite db as well as in a remote mysql db? Or should I just get whatever date I need on-demand from the remote? Dec 12 02:32:08 You can save what you need locally for offline usage. You're question though is extremely vague. Dec 12 02:32:13 barodapride https://medium.com/@arunsasidharan/so-you-want-to-develop-for-the-next-billion-9eb072c26bc8 Dec 12 02:32:49 #3 Dec 12 02:38:21 will read. I'm just at a loss for how I'm going to manage both a remote db and a local db and somehow keep them in sync Dec 12 02:38:38 not super familiar with databases in general Dec 12 02:43:59 some mobile database manage offline/online synchronization automatically Dec 12 02:44:13 barodapride also see Yigit's I/O presentation on app architecture Dec 12 02:45:48 got a link for that? Dec 12 02:46:04 Melatonina - should I use something other than sqlite then? Dec 12 02:46:26 g00s - nevermind, got it Dec 12 02:46:43 barodapride: well, at least investigate the available databases Dec 12 02:46:57 barodapride: if you are serious about the subject Dec 12 02:47:23 barodapride: https://realm.io/ Dec 12 02:47:27 that'd be great if I could use the same thing in both places and have it automatically sync...guess I'm not sure how that would work though Dec 12 02:48:56 https://realm.io/products/realm-mobile-platform/ Dec 12 02:49:41 barodapride if you are in a time crunch, look at those ... if you want to learn, i'd try straight sqlite first. Dec 12 02:50:08 its not as if you are doing a table to table sync, just syncing relevant parts Dec 12 02:52:21 it just seems really hard given that both client and remote dbs will change Dec 12 02:52:30 managing different versions and syncing them Dec 12 02:54:46 and conflict resolution! **** ENDING LOGGING AT Mon Dec 12 03:00:00 2016