**** BEGIN LOGGING AT Thu May 21 02:59:58 2015 May 21 03:01:00 just a quick question about this answer http://stackoverflow.com/a/2197841/1255746 - does this just open the email app and fill in the info or does it actually send the email May 21 03:02:50 aspire: it just opens the email app May 21 03:03:47 ah, im guessing theres no way to send the email without opening the email app? May 21 03:04:06 well, you could send the email from your app directly May 21 03:04:15 mhm? May 21 03:04:50 but you'll need to figure out an smtp server to use, and all that fun stuff. May 21 03:05:00 find a library that can do the sending, etc. May 21 03:05:31 gah i think it'd be easier if i just posted some info to a php file May 21 03:05:39 my phone is also a web server so... :p May 21 03:09:02 g00s: fyi re: multi-process FF breaking addons ... found https://developer.mozilla.org/en-US/Firefox/Multiprocess_Firefox/Limitations_of_chrome_scripts May 21 03:13:09 I need to create a Drawable that has a specific intrinstic height and width and that is just a pure colour (e.g., red). Using ShapeDrawable seems to work, but to set its colour I have to say `shapeDrawable.getPaint().setColor(Color.RED);`. Is this a good idea? Is there something better? May 21 03:18:05 hi, i create app for smartphone, i have change dimension layout for tablet now. i know that i have create values-.... folder to change May 21 03:18:18 i don't know folder name May 21 03:20:26 droiddev: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources May 21 03:22:48 TacticalJoke, thanks but i didn't found solution to get dimension for tablet May 21 03:23:36 ok values-hdpi drawable-xxdpi but i'd like change layout only for tablet May 21 03:25:44 http://developer.android.com/guide/practices/screens_support.html May 21 03:38:51 anyone have a thought why my android connectedCheck times out while installing the test application on travis-ci? May 21 03:41:43 I have my adb install timeout set to 12 minutes May 21 03:51:26 I get as far as :app:packageDebugAndroidTest :app:assembleDebugAndroidTest :app:connectedAndroidTestDebug May 21 03:51:55 at which point, I assume it will hang for a total of 12 minutes, I suppose May 21 03:52:11 and it says the emulator is ready... May 21 03:57:10 when i want to modify the notification text do i just need to do NotificationManager#notify(id, notification) after doing notification.setLatestEventInfo(...) May 21 03:57:42 or can i just do notification.setLatestEventInfo and itll update the text anyway? May 21 04:12:16 Hey, why does it work for me to watch video over HTTP, but HTTPS does not? Using Android MediaPlayer (through qt) May 21 04:12:26 does the mediaplayer expect any extra headers or something for https? May 21 04:12:29 you have to set the right stuff in your networking logic May 21 04:13:10 was that meant for me lasserix? May 21 04:23:21 other problem May 21 04:24:46 i change textview dimension programatically. i have setTextSize(TypedValue.COMPLEX_UNIT_SP, 16); i'd like change 16 with dimen. May 21 04:25:01 i use setTextSize(TypedValue.COMPLEX_UNIT_SP, getResources().getDimension(R.dimen.category_text_dim)); but dimension is big May 21 04:28:48 When I pop my backstack to go back to a previous fragment, I notice that the onCreate is skipped and it goes straight to onCreateView. Is there a way I can get that fragment to retain information in it from before another fragment replaced it? May 21 04:30:03 droiddev: setTextSize(TypedValue.COMPLEX_UNIT_PX, getResources().getDimensionPixelSize(R.dimen.category_text_dim)); May 21 04:32:41 <_genuser_> https://t.co/5POhGEhhS7 May 21 04:32:43 <_genuser_> LOL May 21 04:35:18 meh May 21 04:40:28 TacticalJoke, i try and it works May 21 04:40:31 thanks May 21 04:46:48 Hello. I am getting an array index of bounds exception while using array adapter with a list view. Code: https://gist.github.com/vedant1811/5e1744084379274a2d5c May 21 04:47:27 The entire trace is from the android framework. I cannot figure out how this is happening May 21 04:50:44 vedu: `return getItem(position).type;` is probably returning a number greater than `1`. May 21 04:51:46 TacticalJoke: but then my app should crash with a IllegalArgumentException that I have defined May 21 04:52:07 line 51 ^ May 21 04:52:28 That has to be 0 or 1. May 21 04:52:34 Your paste doesn't prove that. May 21 04:53:15 TacticalJoke: omg you are a genius May 21 04:54:13 thank you :) May 21 04:54:33 I just spend too much time in the filthy Android waters. May 21 04:56:07 yeah. It shows May 21 04:56:27 I actually thought active android ORM was to blame and I removed it May 21 04:56:55 spent the enitre last night on it May 21 04:57:40 Android does have a problem of incorrect error reporting. it does not always throw errors where its supposed to May 21 04:57:57 Yeah, that feels like an [Abs]ListView bug. May 21 05:00:31 I guess the IRC makes up for it :) May 21 05:01:29 some errors are so common but so irrational that probably everyone runs into it. And then we remember their horrors just by looking. right? ;) May 21 05:01:59 Googling the exception messages can help too. Sometimes there are SO answers on the topic (though I didn't check this one). May 21 05:02:52 I always google before asking. But couldn't find this one. Maybe I should make one May 21 05:08:35 I'm trying to implement a "Func1>, Observable>" class that I can use in retryWhen for getting a new token for a user after getting a 401. I'm not sure how to make sure that if multiple requests get 401 that they all join together to the same attempt to get a new token May 21 05:22:59 TacticalJoke: what is the link of your SO profile? May 21 05:23:16 Will mention you in my answer May 21 05:24:30 Oh, I'm not on SO anymore. :) May 21 05:25:13 oh :) May 21 05:25:21 hi gus May 21 05:25:26 *guys May 21 05:25:47 sup BogdanSuvorov May 21 05:26:23 may be need someone a tester ? May 21 05:26:34 Android 4.2 Neon May 21 05:27:49 WantToCode: hi May 21 05:28:40 WantToCode: can you do port minerd https://github.com/magi-project/wolf-m7m-cpuminer-V2/blob/master/m7mhash.c for Android 4.2 Neon ? May 21 05:34:26 hi , i want to know how can i create a help pop up for my application ? ( that shows buttons work and menu introducing) May 21 05:36:27 that will be visual and transparent and have arrows to buttons and when you clicked on that , shows the buttons work May 21 05:40:07 Far7ad: use sandart frameworks from Android Studio.. May 21 05:47:50 using latest sdk, creating a new avd, i have the error: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) May 21 05:47:53 any ideas? May 21 05:53:13 Hello. I am getting an error when trying to build in release mode: "app-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog." I have created a new key.jks and entered the settings correctly. How can I fix this? May 21 05:53:35 When I click on generate signed APK, everything works May 21 05:55:00 sdk: this is for nexus6 device template, when using a generic one, i don't have the error May 21 05:57:19 does anyone has any experience with ViewDragHelper? May 21 05:57:41 I'm having a small error May 21 05:58:19 ashwink005: dont ask to ask. just ask May 21 05:58:40 oowkay.. May 21 05:59:19 How do I drag a small scrollView? the ViewDragHelper.shouldInterceptTouch() always returns false May 21 06:00:31 I have tested the same on a dumbView, and there it works. I'm assuming the scrollview requests the VIewGroup to not intercept. May 21 06:00:42 How do I work around it? May 21 06:03:53 ...anyone? May 21 06:29:27 ...hellooo.. some help.. stackoverflow is not helping :( May 21 06:31:27 Does anyone know if android.media.MediaPlayer supports Shoutcast streams? I’ve got it working fine with Icecast. May 21 06:34:43 vedu, remember the retrofit problem I was having? Just changed my datatypes of List etc and it works. Was unable to use JSONArray as datatype... :S May 21 06:42:31 What is a TaskRecord as shown in dumpsys? Haven't found any docs regarding this. Here's a sample: http://pastie.org/private/j8fdsn4cbvos4pjhmh2wrw#1 May 21 07:04:10 hi. is it possible to mirror my android screen on iPad? May 21 07:06:21 Anybody tried measuring the height of an object using Android Device's Accelerometer sensor? May 21 07:11:43 bhans, i haven't, but for what it's worth i also don't understand the idea. but, out of curiosity, are you talking about using the accelometer as a tilt sensor measuring height in terms of angular diameter or do you mean like trying to integration on it (like inertial guidance)? May 21 07:12:22 errgnomeous, trying to use integration on it (i suppose "trying to integrate it") May 21 07:12:24 how do i pass intent data to already open activity when notification is clicked May 21 07:14:47 timemage: Yes, I'm talking about using the accelerometer as a tilt sensor. My goal is to get the height of the train electricity line from its railway May 21 07:15:33 timemage: assuming that im in the position relatively with the railway and line. May 21 07:16:04 bhans, meaning you know your distance to the base of the thing. etc May 21 07:17:12 timemage: no distance is given from the railway/line, only the height of which the device is attached to. May 21 07:19:16 timemage: I'm planning to read the distance from which the device originates by calculating the distance between the pair of the railway May 21 07:19:35 bhans, well, to understand i'd probably need to draw it. part of why i was asking was just to clarify the question. May 21 07:20:02 timemage: I'll draw it, give me a minute :) May 21 07:21:42 bhans, my experience with the accelerometer is pretty limited. i made myself a little demo at one point just to be sure i could take advantage of the feature reasonable quickly if i cared to use it. but that's about as far as i got with it. May 21 07:21:48 timemage: http://i.imgur.com/gB3UTen.jpg May 21 07:22:03 hello, is there a dev channel counterpart for IOS? May 21 07:22:24 bhans, ah, i thought you were aiming to the top of the pole May 21 07:22:37 why do people think we would know about ios? May 21 07:22:56 timemage: I see, but if you or anyone can help me if there is a workaround with this problem, that would be very much appreciated! ^_^ May 21 07:23:25 bhans, it's mostly the math you're wondering about? May 21 07:23:28 timemage: I will be needing the base to get the exact height May 21 07:23:51 bhans, dunno how accurate you can expect to get. May 21 07:24:17 <_rm> paulo_: #iphonedev May 21 07:24:32 _rm: thanks May 21 07:25:02 if i make my own layout-land folder, can i just put in the one layout file i wish to override or does it need to be all the files? May 21 07:25:11 timemage: I'll have a workaround with math at this time, I'm just wondering if there is an easier way to get the height from its base. May 21 07:25:33 jutsi, read the docs May 21 07:25:45 bhans, the workaround involved something like an arctangent right? May 21 07:25:48 it's pretty clear May 21 07:26:24 jutsi: you just need to put the one file in the layout-land folder May 21 07:26:31 barbs thanks :) May 21 07:26:44 timemage: because what I'm thinking right now is that I need to get the distance between the railway-pair and use that for counting the distance from the device's origin May 21 07:26:58 wakelock i did read the files, albeit ages ago. Which is why i knew i could override the land layout May 21 07:27:06 timemage: yes, basic trigonometry could solve it May 21 07:28:06 bhans, well, you seem to know what to do then. is there more to the question? May 21 07:28:46 timemage: Do you have any easier way to get the height? May 21 07:30:03 bhans, other than trig, not really. May 21 07:30:36 timemage: I see.. okay! :) Thanks! May 21 07:32:28 If an Activity stack was started using startActivityForResult, can FLAG_ACTIVITY_CLEAR_TOP still work? May 21 07:32:38 I tried it and it has no effect May 21 07:44:04 Moving from Eclipse+ANT to AS (I know, I needed to do this a long time ago). I have a couple library projects I just imported and some depend on others. It looks like gradle copies over the whole source to the project. This is confusing. If I want to update some code in lib A can I do it while lib B is open? Does it sync with the original project? May 21 07:53:16 Hello. MediaPlayer is good for small sounds like message notifications? May 21 07:53:37 for sure its better than bugged soundpool May 21 07:54:40 maybe it's just an issue with how the eclipse to gradle importer works.. May 21 07:55:21 Ashiren: haha May 21 07:55:56 I meant, should I use MediaPlayer for small sound files (1-2sec) or some other class May 21 07:59:38 surf2b1, you really should have googled before asking... http://stackoverflow.com/questions/24658422/android-studio-0-8-1-creating-modules-without-copying-files May 21 08:00:25 or you could simply make a symlink if you were using a proper OS May 21 08:00:52 which is windows xp May 21 08:01:26 wakelock: thanks! I thought the purpose of this channel is to ask other people to Google stuff for you when you are feeling too lazy. /s May 21 08:02:10 surf2b1, you thought entirely wrong May 21 08:05:30 If I have a TaskRecord containing multiple Activities, how can I clear it? I was expecting FLAG_ACTIVITY_CLEAR_TASK to do the job, but all Activities remain in the stack. May 21 08:05:36 AS doesn't color static final field names like Eclipse does :\ May 21 08:07:05 barq, how much longer are you going to go on about the same old thing? May 21 08:07:21 wakelock: Until I find a solution. May 21 08:07:47 so your plan is to bully people into solving your problem? May 21 08:08:30 How would you go about it if you can't find anything on Google? May 21 08:08:57 pretty sure most people have lost interest long time ago May 21 08:09:20 That's not an answer to my question. May 21 08:09:36 barq, I would most definitely quit badgering the group of people I have already asked May 21 08:10:20 And do waht instead? May 21 08:10:35 you were already told your approach seems fundamentally wrong and to redo it, what else do you expect to get here? May 21 08:10:55 code! May 21 08:10:58 lots of it! May 21 08:11:16 eh I give up, if you really honestly think annoying people in here will somehow produce a solution, be my guest May 21 08:11:26 I am trying a different approach now and though my question is related it is not the same question. May 21 08:12:08 Yesterday the discussion was asynchronicity and background tasks. Now I ask how to clear a task stack, which must be a well-known standard operation. May 21 08:12:14 it is still about the same exact thing. people have thresholds and this no longer holds anyone's interest May 21 08:12:56 The pool of people is not constant. May 21 08:13:32 ok, go pester May 21 08:13:36 good luck May 21 08:14:32 If I have a TaskRecord containing multiple Activities, how can I clear it? I was expecting FLAG_ACTIVITY_CLEAR_TASK to do the job, but all Activities remain in the stack.I've also tried mutliple combinations of FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK. May 21 08:15:26 just so you know, if asking the people in here is really your last option, then you are in much more truble than yu even realize, lol May 21 08:15:43 you* May 21 08:16:12 I would appreciate suggestions for altrenative options rather than being told what NOT to do every 5 seconds. aka constructive feedback May 21 08:16:50 Also increases likelihood of me not continuing in here. May 21 08:17:09 is that a bad thing? lol May 21 08:17:41 Also increases likelihood of me not continuing in here. <- if I get suggestions where else to go, which I am not reading any. May 21 08:17:58 but that's just it, if you can't come up with some other resources on your own, then dude... you are doomed May 21 08:18:56 so you want to finish all activities before start a new one? May 21 08:19:10 How about you put a flag into your intent May 21 08:19:19 barq have you tried calling finish() after you start the new activity? May 21 08:19:20 also, now that we all know your plan is to selfishly bully people into submission, I bet it is even less likely people will want to help May 21 08:19:25 and finish if a activity finds it during the lifecycle May 21 08:19:27 Ashiren: Yes. May 21 08:19:41 it would be tricky unfortunately May 21 08:19:54 youd need to keep a track of activities on your own May 21 08:19:55 Ashiren, Powse, jutsi, we went through ALL this yesterday, but do have fun May 21 08:20:02 https://stackoverflow.com/questions/14001963/finish-all-activities-at-a-time May 21 08:20:24 I'm waiting for my code to compile :P May 21 08:28:52 jutsi: Yes, but this will only finish the most recent Activity, not the others in the stack. May 21 08:34:29 Just divide by 0 to close all activities May 21 08:35:22 ++ May 21 08:35:30 barq you can't finish those as you're done using them? Also i seem to recall there being an option to disable the backstack somehow May 21 08:35:41 VnM: ha May 21 08:36:21 jutsi: Now, because I need to be able to navigate back to them. May 21 08:37:53 hey, is there a support library for the Candybar API? May 21 08:40:06 Hi all. I have a broadcast receiver and what to do this: if the app is active / open, I want to show a custom dialog. But when the app isn't active (in backgorund, not running, another app is open), I want to fire a Notification. Currently I fire a notification. Any advice for the custom dialog? is it possible or not? May 21 08:40:37 hey guys May 21 08:41:18 im having trouble setting the background of an image button http://hastebin.com/mosibagibu.avrasm May 21 08:41:21 line 141 May 21 08:45:08 FrancescoV, set a static boolean to be false by default May 21 08:45:22 and in the applications onCreate set it to true May 21 08:45:34 when app closes set it to false again May 21 08:45:43 oh ojk May 21 08:45:49 guess I will just go then May 21 08:45:52 danijoo: can I use a public static void in my Activity to show the dialog? May 21 08:46:07 public static boolean May 21 08:46:35 ok, so you can show a dialog from inside a broadcastreceiver? May 21 08:46:44 not directly May 21 08:46:57 danijoo_: have you tried kotlin in production? May 21 08:47:02 your bcr must notifcy the activity to show it May 21 08:47:15 ok, and how can I do that? May 21 08:47:20 xgearx, Im currently finishing my second kotlin app that will go in production May 21 08:47:38 wow May 21 08:47:59 I wont write in java again if i dont have to :) May 21 08:48:10 danijoo_: are they complex? May 21 08:48:12 FrancescoV, internal broadcast or maybe a bus May 21 08:48:45 xgearx, this is one: https://play.google.com/store/apps/details?id=net.headlezz.hots May 21 08:49:03 FrancescoV, either what danijoo_ said, or register a static receiver for notifications (in manifest) and a dynamic for dialogs (programatically) May 21 08:49:13 im having trouble setting the background of an image button http://hastebin.com/mosibagibu.avrasm on line 141 can somepone please take a look May 21 08:49:16 and then juggle a bit... May 21 08:49:26 xgearx, cant tell you much about the second one until its released ;) May 21 08:49:43 danijoo_: as i understand you talk about your own apps May 21 08:50:54 hots app looks pretty simple, you ported it to kotlin or it was written on kotlin from scratch? May 21 08:51:18 written from scratch May 21 08:51:35 what makes an app complex for you? :) May 21 08:51:49 the android API :p May 21 08:51:53 :p May 21 08:52:51 danijoo_: when you have crazy ui components and doesn't have proper api to implement features May 21 08:53:47 so whatsapp would be something not complex for you May 21 08:53:59 or play store May 21 08:54:08 because no crazy ui May 21 08:54:26 yeah I'm wondering about an actual example too May 21 08:54:47 what about an app that would simply work May 21 08:55:04 man that's crazy talk May 21 08:55:08 play store use a lot of android features, that you maybe haven't hear about May 21 08:55:28 we're talking just about ui though May 21 08:55:38 i'd say complex is more about what apis you use. An app can look simple but still be very complex to implement because you need a backend, call REST apis or work with GCM/services May 21 08:55:44 so, store is definitely complex May 21 08:56:05 xgearx, which one for examle? May 21 08:56:30 take a look on their manifest) May 21 08:56:42 you're no longer talking about ui, I see May 21 08:56:50 yes May 21 08:57:00 you said complex is ui :p May 21 08:57:14 well there's no point in having a discussion if you'll simply change the topic whenever it suits you :p May 21 08:57:34 2 points - complex ui, complex features with complex api or without propper api at all May 21 08:58:01 you should also define what a complex ui is May 21 08:58:27 wait a sec May 21 08:58:30 play store basically is just a viewpager with some listfragments May 21 08:59:20 danijoo_: https://play.google.com/store/apps/details?id=com.facebook.katana May 21 08:59:36 ^) May 21 08:59:58 you could have just said "the facebook app" :p May 21 09:00:07 i want study android app, but i don’t know where is tutorial? May 21 09:00:09 whats complex? May 21 09:00:21 jackcom, d.android.com May 21 09:00:24 all apps that have rich news feed - it is complex ui May 21 09:00:25 jackcom, if you are incapable of using google, then there is no hope for you May 21 09:00:55 xgearx, I dont agree. its just a refreshing listview with some content May 21 09:00:58 whats complex on that? May 21 09:01:11 wakelock: :( May 21 09:01:17 xgearx, I feel your lack of experience is why you think some apps are "complex" May 21 09:01:18 million view types May 21 09:01:19 thanks danijoo_ :) May 21 09:01:28 custom behaviour May 21 09:01:39 million viewtypes is not complex, its just lots of boilerplate :p May 21 09:01:44 performance May 21 09:02:14 I'll go back to work. This leads nowhere :p May 21 09:02:22 have to finish another uncomplex app May 21 09:02:24 :p May 21 09:02:30 :) May 21 09:03:19 what was your actual question about kotlin btw? May 21 09:03:27 are you writing sth in it? May 21 09:03:40 What language does Kotlin compare to? Scala? May 21 09:04:08 VnM, compare to? May 21 09:05:07 its not as complex as scala, but more complex than java. somewhere in between I guess. May 21 09:05:52 danijoo_: i noticed that you are active in this chanenl and in kotlin channel and wanted to ask do you have production apps on kotlin. trying to find pros and cons of writing on kotlin May 21 09:06:23 because i just want java 8 on android. it will be enough for me May 21 09:06:31 pros: it's not java. cons: not fully supported and beta May 21 09:06:48 you will never get full java 8 support in android. May 21 09:06:53 i understand May 21 09:07:55 but kotlin is closest one to it, if we compare production-ready solutions May 21 09:08:00 they would need to change ART to support java 8 and that would mean you have old phone with only java 7 and new phones with java 8. May 21 09:08:23 you would have to build your apps with both languages to support both May 21 09:08:50 xgearx, scala is kinda production ready too May 21 09:09:17 as i know they have bit runtime and performance issues May 21 09:09:40 you only have performance issues in scala if you dont understand scala May 21 09:10:20 yes, and high entry threshold May 21 09:10:29 there are higher level methods that do a lot of stuff in the background and create garbage May 21 09:10:41 if you dont know these and use them in ui loops -> boom May 21 09:10:54 yeah entry threshold is pretty high :/ May 21 09:11:19 and its not that easy to setup compared to kotlin. at least last time I tried scala May 21 09:11:47 but that could have changed in the last year May 21 09:13:00 danijoo_, I thought none of that is "complex", not scala, not kotlin, not java :p May 21 09:13:28 danijoo_: one more question about kotlin. they have dynamic ui building from code. what is good use case for it. because it looks like not understandable boilerplate May 21 09:13:32 you can write classes with scala that no human being can understand :D May 21 09:13:53 xgearx, you are refering to anko dont you? May 21 09:13:58 xgearx, java8 brings nothing all that revolutionary, just lots of shortcuts for standard things. if you're good at coding you can just as happily use java6/7 May 21 09:13:58 yes May 21 09:14:07 for me ui in xml is more convinient May 21 09:14:11 xgearx, im not a fan of this feature and dont use it May 21 09:14:26 layout should be seperate from code imo May 21 09:14:44 wakelock: stream api is very usefull May 21 09:15:07 "useful" doesn't imply you can't live without it ;) May 21 09:15:14 wakelock: functional programming supoprt May 21 09:15:17 danijoo_, nah, just have a separate class that builds your ui :p May 21 09:15:37 and call it your "layout" or "ui" class May 21 09:16:25 i think its way harder to support different screen sizes with if/else in a kotlin file then just create different xmls May 21 09:16:48 and then you need to write extra code to make your custom views useable May 21 09:16:51 agree May 21 09:16:56 and an extra AS plugin May 21 09:17:02 isn't complexity really subjective to the doer? May 21 09:17:03 and compile time for changes is higher May 21 09:17:14 at least then you'll be able to say you made a "complex app", danijoo_ :p May 21 09:17:26 :) May 21 09:17:34 its nice if you only want to add 3 textviews to your view, but not for a "complex" layout May 21 09:17:43 I mean whats complex to me, could be utterly meanial to danijoo May 21 09:18:11 danijoo_: if you will rewrite all ui using kotlin anko in code - i will your app complex :D May 21 09:18:30 *call May 21 09:18:38 but thats my opinion. If you like writing your ui like that, Is fine for me. May 21 09:19:05 ui built in code - danijoo approved :p May 21 09:19:28 did someone in here ever used notificationlistenerservice? May 21 09:20:28 I dunno why but its not working when I start app as debug. But it binds when I start without debugging May 21 09:20:35 so frustrating -_- May 21 09:20:57 lol May 21 09:21:20 danijoo_: logs, logs everywhere? May 21 09:21:31 no. it just doesnt start at all May 21 09:21:40 you need more logs than a french canadian lumberjack May 21 09:21:57 seems like it doesnt get the permission in debug or sth May 21 09:22:08 now I have to debug using Log.d() :! May 21 09:22:15 the best way to debug! May 21 09:22:19 System.out.println() FTW May 21 09:22:23 well, other than System.err.println() May 21 09:22:28 woo Ashiren! May 21 09:22:30 Timber.d() May 21 09:22:36 + pidcatr May 21 09:22:40 + pidcat May 21 09:22:52 strace May 21 09:25:47 Timber is enough for me May 21 09:26:31 pidcat looks pretty nice though May 21 09:26:35 didnt know about that May 21 09:33:11 I want to listen for KEYCODE_BACK in a specific fragment and only that fragment. Do I put my setOnKeyListener in the onCreateView of the parent fragment or the onCreateView in the specific fragment? May 21 09:33:43 lilwiz, why dont you just override onBackpressed? thats called everytime back is pressed **** BEGIN LOGGING AT Thu May 21 09:35:43 2015 May 21 09:36:18 I'm fairly new with Android development. But I should be able to generate onBackPressed in the specific fragment right? May 21 09:37:54 no but you can call a method on your fragment in activities onBackPressed May 21 09:40:48 hey guys, i'm using AndroidStudio and i'm a bit of an android noob. whenever i use the automated layout templates, i have tons of problems. classes can't be found. when i update the xml for an activity, the changes aren't rendered in the preview. etc,etc May 21 09:40:53 am i doing it wrong? May 21 09:41:03 This is a student assignment and we are limited to using only one activity and several fragments. My main (only) activity allows me to create the onBackPressed method, but how can I limit it to only be active in my specific fragment? May 21 09:43:07 lilwiz, if(getFragmentManager().findFragmentByTag(tag) != null) to check if the fragment you are looking for is there May 21 09:43:17 if yes, call a method on it May 21 09:43:34 but that would work for several fragments stacked :? May 21 09:43:43 Thanks danijoo_, I'll try that! May 21 09:43:59 ofc you need more than that if you want further checks May 21 09:44:13 for example frag.isAdded() to check if its actually added and not on the stack May 21 09:49:41 the (tag) you refer to, is that android:tag="TAGHERE" in the layout or am I missing something danijoo_ ? May 21 09:50:01 or it can be .setTag("whatever") May 21 09:50:34 uh oh May 21 09:50:40 do you have fragments in xml? May 21 09:50:55 or do you create them dynamically May 21 09:51:00 what would you guys use to let use limit the number of entries stored in a dabase? seekbar or numberpicker? May 21 09:51:11 yes May 21 09:51:36 thats an either/or question, not a yes/no :p May 21 09:51:36 is the number of possibilites big? May 21 09:51:58 basically it could grow inifinitly May 21 09:52:07 then numberpicker May 21 09:52:11 but user can set any number between 0 and x May 21 09:52:45 thx. :) May 21 09:52:57 Ashiren: only the layouts of the fragments, the fragments are also made in java May 21 09:53:04 brb, lunch break :) May 21 09:53:38 because any view has tag field. we are talking about fragments tag May 21 09:53:47 and you set those in fragmentTransaction May 21 09:53:52 danijoo_, both? :) May 21 09:54:09 wakelock, not an option. I need it as a preference dialog :) May 21 09:54:20 but I might try both and see what looks nicer May 21 09:55:15 you can make your own y'know ;) May 21 09:55:23 * wakelock made his own custom color picker preference dialog May 21 09:55:32 thats what i do right now May 21 09:55:38 theres no default numberpicker pref May 21 09:55:45 whatever is the reason for that.. May 21 09:55:49 and yes it has both sliders and text inputs for R, G, B, and A May 21 09:55:55 and all the available libraries are not material enough for me May 21 09:56:05 lol May 21 09:56:08 "not material enough" May 21 09:56:11 ^^ May 21 09:56:13 that's a keeper May 21 09:56:53 How come using a "transparent" background using the devices camera isn't more common? I haven't tried it, but it seems like a cool concept May 21 09:57:07 is it very resource intensive? May 21 09:59:27 yes May 21 10:00:21 plus, might seem cool at first but it gets old sooner than you'd think May 21 10:02:40 true i guess, but for example for a chat program it might offer some utility for users who text while walking a lot May 21 10:03:13 i.e they might see impending danger ahead of them through the phone (very edge case scenario though) May 21 10:03:26 ok. numberpicker is not a solution if you want the user to be select something between 0 and 10000 :p May 21 10:03:53 jutsi, you're such an enabler :p May 21 10:03:54 at least not without additional buttons May 21 10:04:16 danijoo_, why? they can't type one and 4 zeros? :p May 21 10:04:56 numberpicker is to scroll, not to type May 21 10:05:20 hmmm I know it has arrows or something, but AFAIK you can also tap in the middle and just type May 21 10:05:26 i think ill add some buttons to let them pick 0, 10, 100, 1000, 10000 without 20 minutes fo scrolling May 21 10:05:35 oh haha May 21 10:05:41 didnt know that May 21 10:05:43 ...you didn't know that??? May 21 10:05:47 wow lol May 21 10:06:01 my emulator is set to not show keyboard when clicking on a view :P May 21 10:06:26 your bad :p May 21 10:06:29 holy crap i never thought i'd live to see the day danijoo doesn't know something :) May 21 10:06:42 lol May 21 10:06:51 i now nothing about a lot of thing May 21 10:07:09 i only google really quick to look smarter :p May 21 10:07:27 danijoo *is* google May 21 10:08:11 everyone googles May 21 10:08:21 but even that takes skill May 21 10:08:47 i bings May 21 10:09:06 HAH! May 21 10:09:07 you sucks :p May 21 10:09:09 i wish that would be true May 21 10:09:17 seems nobody that comes in here googles first :p May 21 10:09:18 i also yahoos May 21 10:09:22 bing it sounds like f*ck it May 21 10:09:29 bing is for porn May 21 10:09:40 danijoo_ knows >.> May 21 10:09:42 bing is for ms employees May 21 10:09:44 :D May 21 10:10:15 i also duckduckgo May 21 10:10:34 I bhans May 21 10:10:46 apparently it's a proxy to every other search engine in existence May 21 10:11:00 do i need a layout folder if i already have layout-land and layout-port? It doesn't seem to get called at all May 21 10:11:22 yes you do May 21 10:11:26 ugh, just read the docs May 21 10:11:29 duckduckgo is useful for when you need to bypass the filter bubble May 21 10:11:29 jutsi, theres only land and port ^^ May 21 10:11:35 resources resolving is pretty well covered :p May 21 10:11:48 danijoo_ so i can remove the layout folder? May 21 10:11:53 the real question would be, do I need port if I have land and normal. May 21 10:12:03 pretty sure that would result in lint warnings, jutsi May 21 10:12:12 what is the .R class that is referenced in imports? May 21 10:12:14 you're not supposed to divide it like that, jutsi May 21 10:12:18 I also Baidu May 21 10:12:19 jutsi, you should have a normal folder + one extra folder May 21 10:12:25 not 2 extra folders and nothing else May 21 10:12:36 dcunit3d, resources. also ALWAYS use google before you ask, noob or not May 21 10:12:36 im just listing search engines.. May 21 10:12:53 i know, but it's hard to google R May 21 10:12:56 bhans, you mean you're spamming the channel :p May 21 10:13:07 didn't say that May 21 10:13:14 dcunit3d, "android R class" would probably do May 21 10:13:20 ok, right now i have a normal folder + land + port + sw600dp May 21 10:13:33 yep, you're right May 21 10:14:05 but i noticed that the normal layout folder never gets called. It might get called by older api versions? May 21 10:14:06 it's okay to be a noob, but you are expected to at least be able to use google :p May 21 10:14:22 jutsi, no it won't May 21 10:14:38 jutsi, but you are really not supposed to divide all your resources into specific buckets like that May 21 10:15:27 wakelock why not? May 21 10:15:50 because you are supposed to have a "default", universal layout May 21 10:15:59 what if I come up with a device that has a square screen? May 21 10:16:03 is that landscape or portrait? May 21 10:16:28 wakelock: landstrait May 21 10:16:38 portscape? May 21 10:16:55 cool, so which resource bucket gets used then? May 21 10:16:56 jutsi: follow wakelock's advice. May 21 10:18:50 alright, but all i really did for landscape was to remove a logo to get more screen realestate May 21 10:19:04 what's wrong when i get a message like this: java.lang.NoSuchFieldError: No static field social_error_title of type I in class Lcom/auth0/googleplus/R$string; or its superclasses (declaration of 'com.auth0.googleplus.R$string' appears in /data/app/com.blahblah.blah-1/base.apk) May 21 10:19:12 why did you even bother with portrait, jutsi? I'd just keep that as the "default" May 21 10:19:16 i can see the thing existing in the packaged R May 21 10:20:03 clean your project May 21 10:20:12 osxorgate: what else have you tried? clean, rebuild? May 21 10:20:26 sure i'm beyond that May 21 10:21:18 I tried calling a string from the strings resource by doing R.strings.name but it just gave me a bunch of numbers... May 21 10:22:22 osxorgate: did you check your classpaths containing the proper libraries that you're using? May 21 10:22:24 um duh May 21 10:22:37 jutsi, I'm going to assume you're being sarcastic May 21 10:22:46 String blah = resources.getString(R.string.blah) May 21 10:22:47 bhans, not sure what you mean. i add the library in the gradle file so i would think it's proper May 21 10:22:51 jutsi: getstring May 21 10:23:17 but this string id thing sucks May 21 10:23:34 many times i tried tv.setText(number) to show some number and BAH! exception May 21 10:23:35 its quite handy for multilingual apps May 21 10:23:49 the error appears only when the lib calls the method that uses the string May 21 10:23:54 i know the purpose May 21 10:23:55 also wakelock i'm not? Why do you feel im being sarcastic? May 21 10:24:01 Ashiren, that means you're way too used to convenience methods that are "supposed to know what you mean" May 21 10:24:16 eeyup May 21 10:24:19 jutsi, why would you (as a dev) be surprised resources only ever contain numbers? May 21 10:25:09 osxorgate: when will it occur? like starting your app? calling another activity? May 21 10:25:55 wakelock i was surprised by the fact that i didn't get the intended string May 21 10:26:11 osxorgate: have you checked your theme's style too? May 21 10:26:25 have you checked yoself? May 21 10:26:39 bhans, the library wants to output a string using the id present in the lib, and then at runtime it fails with the error posted above May 21 10:26:40 Odaym: I think so :) May 21 10:26:41 cause you might be calling wreck(yoself) by mistake May 21 10:27:07 jutsi, lol, how would the static R class be able to contain all the various languages and other variations of the string, all under a single static property? May 21 10:27:19 magic May 21 10:27:23 + May 21 10:27:33 java has shown it is anything BUT magic :p May 21 10:28:15 there only magicFactory in java May 21 10:30:02 and a MagicFactoryFactoryBuilder May 21 10:30:27 oldie but goldie https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition May 21 10:30:44 hey dan I have a button that executes a long-running process that right now is clogging up UI thread May 21 10:31:02 I don't feel like AsyncTask is the proper way of solving this, how do you do it? May 21 10:31:09 runOnUiThread May 21 10:31:10 ? May 21 10:31:31 no, it runs on ui thread May 21 10:31:38 runonuithread has nothing to do with what you're asking May 21 10:31:45 either thread or asynctask May 21 10:31:47 use asynctask and runOnUiThread on postexecute May 21 10:31:52 or a service if you want to really overdoit May 21 10:31:58 yea yea sorry May 21 10:32:09 runonui is obviously what Im trying to escape now May 21 10:32:09 ahh wait postexecute is in ui May 21 10:32:10 just mistake May 21 10:32:22 oh but make sure the thread/asynctask/service is properly animated :D May 21 10:32:34 of course May 21 10:32:37 leul May 21 10:33:00 it has to be async I think May 21 10:33:29 no it doesn't May 21 10:33:36 asynctask is just a fancy wrapper around a thread May 21 10:33:39 in my case I have to finish() at the end May 21 10:33:44 ok? May 21 10:33:48 where you gonna issue finish() from a thread? May 21 10:33:56 you have to post that to a handler May 21 10:34:09 yes, runonuithread would do that for you May 21 10:34:15 it's exactly what asynctask does too May 21 10:34:19 why are you trying to escape it? May 21 10:34:27 is it common to use reflection to access resources? May 21 10:34:34 im not, just looking to see if first thought is wrong May 21 10:34:39 because it has so many line codes for so simple task May 21 10:34:44 and that May 21 10:34:46 dcunit3d, no May 21 10:34:48 and that all params will be Void :P May 21 10:34:50 for nothing May 21 10:35:00 * wakelock voids Odaym May 21 10:35:01 there :p May 21 10:35:29 i have a string-array of artist names, as well as a string-array of the artist's songs. but i want to be able to access these with a map. May 21 10:35:32 ...wow apparently that actually worked, lol May 21 10:35:52 dcunit3d, then convert them to a map? May 21 10:35:59 i'm trying to avoid implementing the API May 21 10:36:04 is there a way I can show the asyncTask rising from below the screen like a phoenix and then lingering in the wind of the screen for barely seconds and then make it disappear? May 21 10:36:06 do whatever you see fit, dude May 21 10:36:14 let me go try that for 10 days and tell you, brb May 21 10:36:17 :D May 21 10:36:31 the homosexual programmer haha May 21 10:36:36 Odaym, no man that's standard built-in behavior :p May 21 10:36:46 so funny man :D May 21 10:36:55 i know, but i'm totally new to this. i was implementing in ionic, but the webaudio/canvas code is running too slowly May 21 10:37:11 dcunit3d: create custom obj May 21 10:37:35 i might just mock out the resources in the class itself for now May 21 10:37:45 dcunit3d, if you're really that new, then it's probably a bad idea to keep asking in here, there are WAY better resources for noobs out there May 21 10:38:12 * bhans thinks someone is burning.. May 21 10:38:41 * wakelock sets bhans on fire May 21 10:38:49 right. i can find alot of stuff that is tangentally related to what i'm trying to do, but it's either 2+ years old or the examples are overly simplistic May 21 10:39:20 * bhans hugs wakelock for more warmth... ehr.. May 21 10:39:27 2+ years old doesn't mean it's no longer valid May 21 10:39:53 * wakelock freezes May 21 10:40:30 i'm trying to put together an activity that renders a spectrogram of audio data streaming from the microphone, basically May 21 10:40:48 ... May 21 10:41:04 and you honestly believe this is a suitable project for a noob? May 21 10:41:20 i was using OpenGL, but i'm just going with 2d graphics for now May 21 10:41:23 dcunit3d you are going to need a lot of DSP May 21 10:41:44 no not really you just want raw audio yea? May 21 10:41:45 wakelock, it doesn't matter. it's what i have to do May 21 10:41:46 I think you are way over your head and don't even realize it May 21 10:41:53 just accumulation of whatever you hear May 21 10:42:06 dcunit3d, shame, then you are SOL May 21 10:42:16 many painful hours ahead of you, man May 21 10:42:17 dcunit3d, http://developer.android.com/reference/android/media/audiofx/Visualizer.html May 21 10:42:18 lulz, it's ok. i don't give up easily May 21 10:42:22 s/hours/months/ May 21 10:42:22 this is what you want May 21 10:42:53 adq thanks May 21 10:42:59 what you want is easy dcunit3d May 21 10:43:11 even if you want to get a specific frequency I can help with that May 21 10:43:24 dcunit3d, you will have probably trouble to set up mic recording & stuff, but you will find many examples which will help you to figure out (even if they are morethan 2 years old) May 21 10:43:41 there, Odaym will happily work out an entire app for you... and will then spend months on animations May 21 10:43:47 seems likea good deal May 21 10:43:50 and never deliver May 21 10:43:52 haha May 21 10:43:53 lol May 21 10:43:57 THE WAVE IS CROOKED!!! May 21 10:43:58 and you still need to draw yourself the data in a canvas May 21 10:44:14 (or somewhere else) May 21 10:44:21 like a piece of paper May 21 10:44:46 thanks guys May 21 10:44:51 anytime guy May 21 10:45:14 how do you know it's a guy? May 21 10:45:47 :O May 21 10:46:06 I ..it never crossed my mind! May 21 10:46:13 hell, even YOU could be a girl May 21 10:46:19 of course it didn't... you sexist May 21 10:46:20 :p May 21 10:46:30 uh hey guys.. i'm actually a thesbian May 21 10:46:34 oooh May 21 10:46:59 is that something like a protestant? May 21 10:47:01 I'm trying to have this layout fill (stretch) the entire screen height, but I keep getting a gap at the bottom: http://pastebin.com/niCXMNn4 May 21 10:47:24 joakimk_, android:padding="8dp" <- this creates your gap at bottom May 21 10:47:27 cause you have padding bro May 21 10:47:28 also on left, right and top May 21 10:47:41 dcunit, thespian or thesbian? May 21 10:47:42 adq: but the gap is way more than 8dp May 21 10:47:50 pretty sure that's not the gap he's talking about, adq May 21 10:47:52 ... and only at bottom -- not on sides/top May 21 10:47:52 just remove it man and see what 8 dp is like May 21 10:47:52 8dp != pixel May 21 10:47:55 did you know? May 21 10:48:00 still May 21 10:48:09 ok, help over May 21 10:48:12 fix it yourself May 21 10:48:12 hehe May 21 10:48:18 joakimk_, gravity and/or layout_gravity May 21 10:48:21 look it up May 21 10:48:39 you could have all of this in 1 relative layout May 21 10:49:06 einstein recommends relative layout May 21 10:49:20 :D May 21 10:49:34 think highly of yourself, eh Odaym? :p May 21 10:49:45 ahh or maybe it's edittext May 21 10:49:54 ... May 21 10:50:11 set a color to your edittext background May 21 10:50:21 cause relativity theory :P May 21 10:50:23 it's probably the default 9patch May 21 10:50:23 haha May 21 10:50:32 which creates this little gap May 21 10:50:40 Odaym, dunno, it's all relative May 21 10:51:38 adq: I tried removing padding, and that only... removed the padding :) Still have a large (approx 2 inch on a Nexus 7) white gap at bottom. May 21 10:51:50 set a color to your edittext background May 21 10:51:52 could it be the EditText at the end? May 21 10:51:55 it's probably the default 9patch May 21 10:52:02 but what does that mean? :) May 21 10:52:03 just to test May 21 10:52:17 android:background="@color/RED" test that May 21 10:52:20 in your edittext May 21 10:52:28 joakimk_, did you miss what I said? May 21 10:52:30 then deal with background shape later May 21 10:53:00 adq: trying to add android:background="@color/red" to EditText. It only takes up the space it needs May 21 10:53:06 wakelock: gravity? May 21 10:53:13 yes May 21 10:53:20 here we go May 21 10:53:35 wakelock: could you please elaborate? :)= May 21 10:54:12 did you look it up? May 21 10:54:50 adq: what I'd like, is for all elements to take up as little vertical space as possible, and let the EditText at the bottom fill the remainder. May 21 10:55:06 then you have to document yourself about layout in android May 21 10:55:45 you know why you had this extra padding at bottom (just the edittext default bg, which will change depending on rom, custom UI put by third parties, etc) May 21 10:56:36 oops May 21 10:56:46 in what scenario would you need an edit text at the bottom of the screen May 21 10:56:48 but isn't my problem related to my outer/containing LinearLayout having android:layout_height="wrap_content" ? May 21 10:56:51 it will look so ugly May 21 10:56:54 just wondering May 21 10:58:17 Odaym: essentially, I want the EditText to be below the ImageView (in its containing, nested LinearLayout), top-aligned just below the image. But I want there to be no empty space below the edittext... May 21 10:59:15 can you show a screenshot? May 21 10:59:27 In the paste, there's a commented-out ScrollView, which I removed to get swipes/gestures to work. However, when I had the ScrollView with fillViewport=true, everything stretched out nicely May 21 10:59:49 Odaym: one moment. Btw, what's a good place to post a pic? May 21 10:59:56 imgur May 21 11:00:08 dont you have dropbox? May 21 11:00:10 joakimk_, you should just document yourself May 21 11:00:20 you don't even know what android:layout_height="wrap_content" is doing May 21 11:00:22 this is not going to fly May 21 11:03:30 * wakelock is still waiting for joakimk_ to actually google about gravity May 21 11:03:51 Odaym: http://bildr.no/view/eTlNaEU4 May 21 11:04:09 man that's easy... May 21 11:04:21 so you keep saying May 21 11:04:37 but wait until they get to animations... May 21 11:04:40 figure it out youserlf, seriously its too easy May 21 11:04:51 if you learn this one, layouts will become so much easier May 21 11:05:56 on the other hand, if someone does it for you, you will end up with a specific layout while having learned nothing May 21 11:06:00 so next time you'll be just as lost May 21 11:07:38 wakelock: I did read about gravity -- and I *am* already using it (to right-align text below image). I tried adding android:layout_gravity="bottom" to the EditText, but as long as the LinearLayout only *wraps* its contents, there's no space to float to bottom. So, as I said before, I'm aware that I'm setting android:layout_height="wrap_content". But if I set it to fill_parent, things drift off screen May 21 11:08:14 darkmatter is a lie May 21 11:08:38 joakimk_, then the next thing to play with is layout_weight May 21 11:08:47 joakimk_, fill_parent and match_parent mean exactly what they say May 21 11:08:48 in any case, this is all covered extensively in the docs May 21 11:08:58 they take up the whole space that's been given to them May 21 11:09:05 kicking all elements after them aside May 21 11:09:16 joakimk_: What version of Android are you targeting? May 21 11:09:24 does it matter? May 21 11:09:37 fill_parent is deprecated. May 21 11:09:52 so? it still works May 21 11:09:58 all they did is rename it May 21 11:10:04 barq: min API 10 May 21 11:10:05 it even evaluates to the exact same value May 21 11:10:25 Use match_parent then for good pratice. May 21 11:10:28 "It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form." May 21 11:10:45 pretty sure that won't solve his layout problems May 21 11:11:06 bhans, reading SO? May 21 11:11:26 Odaym: but, my "outermost" layout componet, here, is the LinearLayout, right? May 21 11:11:30 It won't hurt them either as he'll find more on google with fill_parent as opposed to match_parent. May 21 11:11:32 wakelock, just wanted to type that. lol May 21 11:11:40 there is no outermost, there is a parent and nonparent May 21 11:12:04 there is "root" though :p May 21 11:12:04 when I read his question, that phrase from SO just pops May 21 11:12:15 popped* lol May 21 11:12:25 joakimk_: Have you pasted your layout? May 21 11:12:26 * wakelock pops bhans May 21 11:12:41 just wanted to type that :p May 21 11:12:42 * bhans evades, goes behind joakimk. May 21 11:12:50 barq: http://pastebin.com/niCXMNn4 May 21 11:13:06 aaaand obviously he'll just end up May 21 11:13:12 oops, wrong channel May 21 11:13:56 I think it's time I go do some actual work May 21 11:14:04 Odaym: I'm just thinking, what does it mean for my LinearLayout to refer to its parent, if it's the outermost component (has no parent)? May 21 11:14:22 you have wandered into the forbidden!! May 21 11:14:28 hehe May 21 11:14:34 if there is no parent, it will fill everything of course May 21 11:15:01 I think he just walked off the edge of the earth May 21 11:17:03 allright, sorry to spoil yer funz, but I figured it out ;) May 21 11:17:30 thanks for the help May 21 11:17:54 pay it back, say what the issue turned out to be May 21 11:18:04 joakimk_, May 21 11:18:19 indeed May 21 11:18:24 done, http://pastie.org/10200227 May 21 11:18:26 joakimk_: http://stackoverflow.com/questions/20404473/why-does-the-root-element-in-layout-xml-file-have-height-and-width-as-match-pare May 21 11:18:49 god I hate when people do that :| May 21 11:19:27 barq: yeah, that makes sense :) I was just thown off by the fact that fill_parent filled... more than the parent. HOWEVER: what was the problem, was the fact that I had other components with layout_height="match_parent" May 21 11:19:41 Troffel: I changed those to "wrap_content", and they stopped "over-spanning" May 21 11:19:42 :) May 21 11:19:46 study that file, joakimk_ May 21 11:20:11 ah ok :) May 21 11:20:24 Odaym: oh, sorry, Odaym. Didn't see your post. Looking at it now :) May 21 11:21:52 Odaym: yes, height=wrap_content, and not match_parent. This all makes sense! Thanks again! I'll take a closer look at it, and compare against my code May 21 11:22:08 cause you are not using design tab I think May 21 11:22:16 when unsure, look there and mess around there May 21 11:22:20 later you write xml and never look May 21 11:22:27 right... May 21 11:23:04 Developer > Show layout bounds is a lifesaver, though! May 21 11:23:31 if you just click on any element in the component viewer it will draw how much taht element is taking up May 21 11:23:38 component tree* May 21 11:25:19 Hi here then. May 21 11:25:26 Who uses genymotion? May 21 11:25:39 you do May 21 11:25:48 who's your daddy? May 21 11:25:56 getParent() May 21 11:25:57 lel May 21 11:26:20 Odaym.getParent() throws NPE for me :( May 21 11:26:21 I downloaded genymotion May 21 11:26:27 Oh, i see, andriod develpment makes people crazy May 21 11:26:30 ohh.. batman May 21 11:26:31 I will too May 21 11:26:36 :) May 21 11:26:38 genymotion is really spiffy May 21 11:26:51 Ok, so how to avoid "google services problems"? May 21 11:27:00 and only for $5,203 professional license! May 21 11:27:08 no google play services on emulator, leporello May 21 11:27:13 need real device May 21 11:27:32 so why do they recommend all that packages for installing? May 21 11:27:35 with google apps? May 21 11:27:44 you need 2 drag and drop operations to get google play in genymotion .. ;) May 21 11:27:53 actually you could get google services on a genymotion emu May 21 11:28:12 oh, really May 21 11:28:15 I never tried that May 21 11:28:20 what do you do? May 21 11:28:23 jutsi, the only one which worked was android 4.1 version May 21 11:28:34 1) drag and drop armtranslation.zip 2) drag and drop gapps.zi[ May 21 11:28:35 but when i installed google chrome it doesn't run May 21 11:28:35 Odaym, first you drag May 21 11:28:37 and then you drop May 21 11:28:39 easy May 21 11:28:51 cool May 21 11:29:04 leporello, i have genymotion with gapps on 4.1, 4.4 and 5.0 May 21 11:29:05 danijoo_, the problem is it doesn't work after that :) May 21 11:29:06 well I never really needed it on genymotion, but good to know, I thought its non-get-aroundable May 21 11:29:06 leporello, pretty sure it tells you exactly why it "doesn't run" May 21 11:29:09 like, logcat May 21 11:29:16 leporello, it does for me May 21 11:29:24 wakelock, it closes after clickcing May 21 11:29:28 immediately May 21 11:29:29 what should be the correct UI to make the user select a location (map, address, or place). Is there a good guide (or library ;) ) for it May 21 11:29:31 so... logcat May 21 11:29:52 you need to go through the setup with a lot of force closes. May 21 11:30:07 after that restart emu and let google play update google+ May 21 11:30:08 profit May 21 11:30:10 it's chrome dude... it's normal May 21 11:30:23 danijoo_, what setup do you mean? May 21 11:30:25 danijoo_, you should make a cookbook on this May 21 11:30:36 leporello, the one you'd get if chrome didn't crash May 21 11:30:46 the setup after you added gapps May 21 11:30:53 where it asks for an account etc. May 21 11:31:10 danijoo_, it just tells me about problems in google play service May 21 11:31:27 on EVERY version of android with correspoinding version of google apps May 21 11:31:30 make sure its the latest version of services May 21 11:31:30 leporello, have you tried turning it on and off again? May 21 11:31:31 except 4.1 may be May 21 11:31:39 danijoo_, sure May 21 11:31:45 no idea what you are doing wrong May 21 11:31:49 once after that arm package May 21 11:31:59 then after gaps May 21 11:32:10 may be phenom problems... May 21 11:32:15 it uses virtualbox May 21 11:32:20 http://prntscr.com/77oj2v <<<< May 21 11:32:29 5.0 with play store May 21 11:33:26 leporello yeah only 4.1 worked for me as well May 21 11:34:37 all i need that stupid mobile browsers May 21 11:35:02 should i send you my vm container? :D May 21 11:35:07 these bastards of IE6 May 21 11:35:26 "do something wrong in every new version" May 21 11:35:41 oh May 21 11:35:44 works at 4.4 May 21 11:35:58 with constant "Google play services stopped" May 21 11:36:43 miss that time phones were just to call :) May 21 11:36:58 there's still payphones available May 21 11:37:20 unfortunately chrome has stopped May 21 11:37:21 ha May 21 11:39:50 you guys tried ARC Welder? May 21 11:39:54 this channel would be pretty empty when phones could only call :p May 21 11:39:59 you can run your apps on Chrome, its really cool May 21 11:40:27 i think i tried monthes ago May 21 11:40:33 danijoo_, it'd be a better world May 21 11:40:58 it would also be a better world without humans May 21 11:41:56 danijoo_, agree May 21 11:42:04 all glory to Hypnotoad! May 21 11:42:22 and robotz May 21 11:42:38 danijoo_, I agree May 21 11:44:44 man this is a real problem May 21 11:44:58 I have to deal with 3 events that need to happen on the UI thread in this asynctask I have May 21 11:45:15 it was 1 first, but now I find that Otto cannot be invoked from non-main thread either May 21 11:46:16 even if I move the calls to postExecute Im still going to need several variables to use the calls on, plus that other boolean that provides the variable for the 3rd case May 21 11:47:16 please see http://pastie.org/10200283 May 21 11:47:36 sorry, this one is in java syntax http://pastie.org/10200286 May 21 11:48:28 danijoo_, Zharf is a well-known for hating people, you shouldn't make such observations when he's around :p May 21 11:48:52 seems like I found a brother in heart then :) May 21 11:48:52 -a May 21 11:49:03 I thought you're not supposed to do UI operations from doInBackground. May 21 11:49:03 Odaym, maybe publishProgress in doinbackground to call onProgressUpdate (which is on ui thread) May 21 11:49:24 or simply avoid asynctask, it's just horrible, no guarantee to have a valid context in onpostexecute, etc May 21 11:49:26 Hey all May 21 11:49:32 hi May 21 11:50:00 nah it isnt an asynctask thing May 21 11:50:08 its a core problem, choose any method im going to run into the same thing May 21 11:50:10 wait May 21 11:50:32 how i can save the state of fragment when change orienattion? May 21 11:51:10 setRetainInstance(true) May 21 11:51:23 where? May 21 11:51:26 in activity? May 21 11:51:35 Odaym: why dont you use asynctaskloader? May 21 11:51:38 i.e. in fragment's on attach May 21 11:52:05 what's that do May 21 11:52:13 * bhans cries.. May 21 11:52:28 or the standard approach onSaveStateInstance and load onCreate May 21 11:52:46 let me tackle this one first :P I cant understand how to pass string array to publishProgress May 21 11:52:47 Odaym: it keeps the variables during configuration changes May 21 11:52:51 something is telling it to take Void array May 21 11:53:32 its the param that's passed to doInBackground that tells it that, obviously May 21 11:53:43 Hey thepoosh:) May 21 11:53:43 http://developer.android.com/reference/android/os/AsyncTask.html :p May 21 11:54:05 wow I am ffffff May 21 11:54:07 haha May 21 11:54:29 * bhans gives Odaym a slice of pie. May 21 11:54:38 a slice of pice May 21 11:55:49 perlsyntax: !!! May 21 11:55:55 a slice of pi: 3.1415 May 21 11:56:31 aha! May 21 11:56:36 3.1415926535897932384626... May 21 11:56:41 believe or not, its from memory :v May 21 11:56:46 im so fun at parties May 21 11:56:46 oh sorry no, wait May 21 11:56:51 i go for not then May 21 11:56:57 :)) May 21 11:57:53 ok thank you sir, everything works May 21 11:57:56 I win the internet May 21 11:58:08 what an asynctask May 21 11:58:14 amazang May 21 11:59:21 For android studio they still use java 6 and java 7? May 21 11:59:30 7 May 21 11:59:53 thanks adq May 21 12:00:30 ventura, i thought it was both. May 21 12:00:35 thanks May 21 12:01:01 perlsyntax: you can use both, but better use 7 May 21 12:01:22 oracle version May 21 12:01:26 even though i am having a lot of performance issues in ubuntu May 21 12:02:08 vertura,I didn't know that.So for all of android use only java 7 thanks:) May 21 12:02:51 ventura,Got alot to learn about android studio. May 21 12:03:02 its a great ide man May 21 12:03:04 amazing May 21 12:03:19 i start to think that to. May 21 12:03:47 just switching to its window makes me feel safe May 21 12:03:48 haha May 21 12:04:04 Does anyone know if android.media.MediaPlayer supports Shoutcast streams? I’ve got it working fine with Icecast. May 21 12:04:27 Odaym,You use windows os i take it. May 21 12:04:34 oh no, Mac May 21 12:04:43 previously linux May 21 12:04:48 Odaym: may you give me some advice? I need to implement a lifebar, just like Megaman http://goo.gl/LD9l1v May 21 12:04:58 whattt May 21 12:05:02 haha, me? May 21 12:05:03 youre nuts May 21 12:05:12 Odaym,That what i am use to mac osx 10.9.5 May 21 12:05:13 Should I theme ratingbar, progressbar or create a custom view? May 21 12:05:22 definitely custom May 21 12:05:32 an array of views inside a linear layout with vertical orientation? May 21 12:05:44 each view some 5 dp w/h May 21 12:05:46 in my case, horizontal May 21 12:05:57 or NO, each view match and match, but weight equal on all of them May 21 12:06:05 that's how you do it May 21 12:06:20 but the designer want text inside the blocks, because the user have only for bars of energy May 21 12:06:50 there are many parts of that image that you can be referring to :P May 21 12:06:54 im talking about the long pipes May 21 12:06:54 hello May 21 12:07:16 is the adsense account and admob account connected? May 21 12:07:30 I mean, is the threshold calculated once? May 21 12:07:49 I mean, is admob & adsense income summe? May 21 12:07:53 *summed May 21 12:07:58 isnt adsense the deprecated version of admob? May 21 12:08:02 going with custom view them…. thx, dude May 21 12:08:02 no May 21 12:08:12 danijoo_: adsense is for websites. May 21 12:08:16 ah ok May 21 12:08:18 no idea thenm May 21 12:08:21 i only use mob May 21 12:08:37 danijoo_: if you don't mind, how much do you earn? May 21 12:08:44 yea...you dont ask that May 21 12:08:47 I tried May 21 12:08:47 i mind ;) May 21 12:08:47 haha May 21 12:09:36 For now, I can make a living from it May 21 12:09:56 but im a student. I only need enough money for coffee and beer May 21 12:10:20 hey how old again? May 21 12:10:26 26 May 21 12:10:27 ahh students can live off sunlight May 21 12:10:31 MS? May 21 12:10:34 doing phd? May 21 12:10:41 Odaym,I hope to make some money on my app i am makeing. May 21 12:10:43 Ask how much someone earn is a common practice in US, but may be considered offensive in many cultures May 21 12:10:49 same here perlsyntax :P May 21 12:10:51 just lazy and slow. currently graduating in Biochemistry May 21 12:10:53 we all want money baby :) May 21 12:10:59 still BS? May 21 12:11:00 10th semester :p May 21 12:11:11 you should pull it together man, I had the same situation as you May 21 12:11:15 3rd master semester May 21 12:11:26 but you just said May 21 12:11:28 ok May 21 12:11:44 whatever I said was because my english sucks :p May 21 12:11:44 i too hoped to earn money off my apps but i failed May 21 12:11:57 so i made apps to get "experience" for my CV and it worked out May 21 12:12:04 i did 7 semester to get my bachelor and now its the 3rd in master :) May 21 12:12:06 thats what i meant May 21 12:12:10 ah cool May 21 12:12:15 i has job involving android May 21 12:12:19 I tried masters, didnt like it at all May 21 12:12:25 here universities that arent top notch, suck May 21 12:12:29 you have to get a grad in chemistry May 21 12:12:32 im on my last semester to get master May 21 12:12:33 bachelor is worth shit May 21 12:12:37 at least here in europe May 21 12:12:42 depends on your goals honestly May 21 12:12:49 there is no paper that can get you things May 21 12:13:00 Odaym,That true May 21 12:13:02 depends where you are going May 21 12:13:08 no you literally dont get a job with a Bachelor of Science Chemistry in germany May 21 12:13:09 some positions at Google require PhD May 21 12:13:13 other positions dont May 21 12:13:17 its not enough for good jobs but too much for bad jobs May 21 12:13:26 <_rm> same thing in finland, most fields expect a master's degree May 21 12:13:29 no human being in the world will value paper over work output! May 21 12:13:31 dont convince me May 21 12:13:41 but this is how it works here :s May 21 12:13:42 <_rm> because it's the default that you study for here May 21 12:13:52 its because bachelor/master isnt established yet May 21 12:13:56 <_rm> i'm basically a drop-out at this point and i still have a nice job May 21 12:14:00 its a new stufy form since a few years May 21 12:14:03 <_rm> it's different with this computer shit :) May 21 12:14:10 and the industry didnt ajust yet May 21 12:14:11 and you can reach whatever the fuck you want even if dropout May 21 12:14:17 make Google 2 May 21 12:14:29 who fucking cares, you can *be* anything May 21 12:14:32 ...literally May 21 12:14:33 <_rm> yes, it's different with software development May 21 12:14:39 that's whats so ddangerous about it :P May 21 12:14:41 i wanna be pegasus May 21 12:14:41 I always considered college a safety net. May 21 12:14:44 Odaym, I just hope android come out with more tools:) May 21 12:14:44 you are FREE May 21 12:14:47 <_rm> in some fields, it's like, not unreasonable to expect some qualifications May 21 12:15:01 chrome beta works not much betta May 21 12:15:11 meh this is all useless tlak anyway May 21 12:15:16 who'eva! May 21 12:15:33 android has a lot of tools perlsyntax May 21 12:15:35 special amd arm translator helped a little May 21 12:15:37 just gotta know how to use them! May 21 12:15:47 Odaym, perl 6 hope? May 21 12:15:49 I only use logcat and 9patch! :P some people use traceview May 21 12:15:54 4 years ago, laws in US for getting a working visa were differente. there were quotas for PhD. that’s why it was ‘easier’ to get in google if you were a phd May 21 12:16:16 that falconpro guy keeps popping in my head May 21 12:16:18 i hate him May 21 12:16:22 ventura, there are so many phd who can't even write in Russia May 21 12:16:37 leporello: how come? May 21 12:16:54 ? May 21 12:17:07 danijoo_: it is strange that you made app for hots and lol, not for periodic table :) May 21 12:17:32 xgearx, There are too many of them May 21 12:17:33 leporello: i heard stories about urss that jewish had to do oral tests to be admited in university… and they passed May 21 12:17:45 i dont want an app at position 1000 of google search for PSE :) May 21 12:17:51 “resolve a non linear system with 5 variables” May 21 12:18:11 anyway, my app has been installed 5,10,16,51,95,204,365 in each suceeding day. May 21 12:18:14 danijoo_: but you can write your own with complex ui and using kotlin) May 21 12:18:17 I hope I hit 500 tomorrow. May 21 12:18:20 whats PSE dani May 21 12:18:22 I started to assist in laboratory like 3 times May 21 12:18:25 never finished it :p May 21 12:18:37 started an app* May 21 12:19:00 :D May 21 12:19:07 ventura, not only jewish :) May 21 12:19:11 danijew May 21 12:19:17 phew, I said it...... May 21 12:19:17 Odaym, periodic system of elements May 21 12:19:23 been waiting to say that for a month maybe May 21 12:19:27 its out now May 21 12:19:54 leporello: i still have an algebra book published by mir May 21 12:19:54 also every real chemist has the whole periodic system in mind :) May 21 12:20:04 anybody uses androidannotations? May 21 12:20:05 you learn that shit by doing May 21 12:20:11 my brother is like you May 21 12:20:15 ventura, all sience left there May 21 12:20:18 has a masters in biochemistry May 21 12:20:23 but he is old man now May 21 12:20:28 they use sputniks... May 21 12:20:32 sats May 21 12:20:51 i feel like an old man too :p May 21 12:20:53 that were made in USSR. Russian spy sats. They make photos on FILM! May 21 12:21:04 And drop that film once a month. May 21 12:21:09 21st century May 21 12:21:27 hi, i have this http://kopy.io/pPsiR May 21 12:21:49 but when i change my orientation the fragment is recreated, call async etc.. May 21 12:21:56 Ok. Is there a way to test google chrome for android on emu? May 21 12:22:17 Fifrefox and natives are working on genymotion, so I need only this one May 21 12:22:33 t0th_-_, that's default behaviour May 21 12:23:00 Troffel: how i can fix it? i dont need reload the fragment May 21 12:23:04 (also why you don't put parameters in the fragment constructors) May 21 12:23:36 google, http://stackoverflow.com/questions/10634854/android-fragments-recreated-on-orientation-change May 21 12:23:38 danijoo_: are you from German? I heard there are a lot of startaps. Android devs popular. May 21 12:23:51 i am on google to, 23 tabs ehehehe May 21 12:23:53 No need for MS) May 21 12:23:55 startaps May 21 12:23:56 haha May 21 12:23:57 yes I am May 21 12:24:12 startups) May 21 12:24:18 yea I know, its just funny :P May 21 12:24:18 but I dont have a degree in anything ;) May 21 12:24:26 not even a CS Bachelor May 21 12:24:28 my ingreesh is not so good) May 21 12:24:33 im just a self tought programmer May 21 12:25:17 also I work on super computers later May 21 12:25:20 xgearx, ingreesh am hard May 21 12:25:21 not on shitty phones May 21 12:26:01 leporello, about chrome on genymotion.. http://prntscr.com/77p0dn May 21 12:26:34 danijoo_, show your leg one legged man :) May 21 12:26:43 :p May 21 12:26:45 it just doesn't work May 21 12:26:50 lol just had my first 3-star May 21 12:27:02 paulo_, ink? May 21 12:27:04 link* May 21 12:27:13 i'd rather not. May 21 12:27:18 lol ^ May 21 12:27:44 i promise to not 1 star :) May 21 12:28:29 danijoo_: http://prntscr.com/77p0dn - remove it, this screen deanonymize you) May 21 12:28:39 hi May 21 12:29:00 xgearx, because it has my picture? XD May 21 12:29:08 yes May 21 12:29:18 xgearx: https://www.google.de/search?q=danijoo&es_sm=93&source=lnms&tbm=isch&sa=X&ei=lM9dVaL2BYKSsgH_pIHIBQ&ved=0CAgQ_AUoAg&biw=1031&bih=1064 May 21 12:29:27 you get the same when you google "danijoo" :D May 21 12:29:33 i found you in g+ May 21 12:29:40 including some really old myspace emo picks xDD May 21 12:31:34 danijoo_, hope it's not german pron? May 21 12:32:03 haha May 21 12:34:01 if you publish to playstore, you are "deanonymized" anyways because you have to add address May 21 12:34:35 danijoo_: the only thing i know how to say in german: Ich möchte ein schwarzen bier May 21 12:34:51 schwarzes* :p May 21 12:35:13 btw thats also the only sentence i know in spanish May 21 12:35:26 thx May 21 12:35:27 una cerveza por favor May 21 12:35:32 you guys could travel the world together May 21 12:35:39 ich lerntete deutsch May 21 12:35:42 oder lernte May 21 12:36:03 but it was sooo long time ago May 21 12:36:31 deutsch am hard too May 21 12:36:43 true May 21 12:36:49 habe gelerned May 21 12:36:56 life is too short to learn german… and mandarin May 21 12:37:05 :) May 21 12:37:37 german is pretty easy to pick up though May 21 12:37:37 ventura, don't mention :) May 21 12:37:42 compared to a lot of other languages d: May 21 12:37:45 i'll be in china this summer May 21 12:38:39 I've just started learning chinese... It's am harder than deutsch and english! May 21 12:38:41 I'm receiving GCM notifications, but instead of just receiving one, I'm receving several, up to 8 with the only difference beeing that the wakelockid counts up. May 21 12:38:48 any idea what might cause that? May 21 12:39:12 Syzygy, are you sure its not your backend? May 21 12:39:24 sending 8 messages instead of 1 May 21 12:39:51 Troffel, like what? klingonish? May 21 12:39:53 somewhat, we're using segment.ios outbound and there's only one notification scheduled May 21 12:40:14 danijoo_, klingon in english :P May 21 12:40:19 everyone says german is pretty hard (even german) May 21 12:40:26 danijoo_, 5.0 doesn't work too May 21 12:40:28 fuck german. May 21 12:40:34 annoying language. May 21 12:40:46 deutsch ist gut May 21 12:40:48 danijoo_, Latvian, Polish, or any of the scandinavian May 21 12:41:03 can't speak for others d: May 21 12:41:14 how about russian? May 21 12:41:18 I think it just depends in what language you where born May 21 12:41:29 Як щодо української? May 21 12:41:39 if you where born in a scandinavian country, its easy to pick up other scandinavians May 21 12:41:41 bro? May 21 12:41:42 I'm a native german speaker and I still don't like it. May 21 12:41:46 same or latin based languages May 21 12:41:54 danijoo_, my point is that german grammar is very structured, not a lot deviates from the 'rules' May 21 12:42:09 leporello: sche ne vmerla? May 21 12:42:23 russia will die earlier May 21 12:42:27 danijoo_, ofcause but I meant as a person who hadn't already learned one May 21 12:42:38 Troffel are you german? May 21 12:43:13 I still think there are plenty of ways to build the same meaning with different sentences May 21 12:43:15 in german May 21 12:43:27 just try to explain someone when to use der, die, das (english the) May 21 12:43:29 you cant May 21 12:43:32 because its random May 21 12:43:32 danijoo_, no, dane May 21 12:43:50 der is he May 21 12:43:55 die is sche May 21 12:43:57 danijoo_, it isn't random :P May 21 12:43:59 yay my app is the top trending in one subcategory. May 21 12:43:59 she. Or they May 21 12:44:08 well, kinda, you have to know the correct gender for the most part May 21 12:44:09 and little girl is das :) May 21 12:44:15 leporello, so why is the sun a "she" and the moon is "he" May 21 12:44:27 moon has something May 21 12:44:34 which differs it from sun May 21 12:44:43 why is the door a she, while the window is an it May 21 12:44:53 die Tuer? May 21 12:44:59 das Fenster May 21 12:44:59 yep May 21 12:45:05 oh, i remember something May 21 12:45:08 leporello, der is masculin, die is feminin (and plural) and das is objective. May 21 12:45:23 danijoo_: you can teach it in the way "Der zweibeiner hat siech gebuckt, in ein guttes licht geruckt ..." May 21 12:45:36 but the genders are the only thing you really have to memorise, grammar wise May 21 12:45:44 Mandarin has nothing of it May 21 12:45:44 actually, now that I think about it.. why is it das mädchen if mädchen is obviously female... May 21 12:45:53 very simple grammar May 21 12:45:58 but May 21 12:45:58 then all german haters will obey May 21 12:46:13 Syzygy, historical context May 21 12:46:16 a women is feminine (die Frau), but the girl is an it (das mädchen). But a man is masculine and a boy is masculine too May 21 12:46:20 legends about sun and moon May 21 12:46:24 little girl is nothing May 21 12:46:26 believe me. its random :p May 21 12:46:46 have you finished your reform? May 21 12:46:55 or at least there are so many exeptions you cant really be sure May 21 12:46:59 capitals of nouns, double s, umlauts? May 21 12:47:09 germans never finish reforms May 21 12:47:12 :) May 21 12:47:15 ^^ May 21 12:47:22 perhaps you're not using gothic now :) May 21 12:47:25 but while english simply has "the" a lot of languages have different 'specifiers' depending on the word :) May 21 12:47:58 best thing about german is we have an infinite number of actual words May 21 12:48:01 danijoo_: http://en.wikipedia.org/wiki/M%C3%A1ni May 21 12:48:20 because you can just combine them to Donaudampfschiffartsgesellschaftsanwärter and its still a valid word May 21 12:48:24 danijoo_: moon was a god and sun a godess May 21 12:48:35 danijoo_, so does danish, technically May 21 12:48:57 you just need to know which word has which sex May 21 12:49:07 russian has different rules for different sex May 21 12:49:14 or how it's called in linguistics May 21 12:49:16 ventura, and why is door feminine, window an it and computer masculine? May 21 12:49:32 leporello, same with Latvian May 21 12:49:37 they are much more complicated than just different articles May 21 12:49:51 believe me, its impossible to derive from the word itself,. you have to memorize most of articles May 21 12:49:54 you just swtich der-das-die May 21 12:50:13 chinese is annoying too May 21 12:50:28 if you know the gender of the base-word in german, rest can be derived May 21 12:50:29 same word, but different meaning when you change tone May 21 12:50:36 * wakelock checks if this is the right channel May 21 12:50:45 yup, says android dev May 21 12:50:52 danijoo_, they almost not change tones in usual life :) May 21 12:51:13 translators from one region doesn't understand chinese from another May 21 12:51:40 they use common language on tv only May 21 12:52:38 Troffel, they will learn chinese soon :) May 21 12:52:38 leporello, no idea. but I remeber that the chinese word for wife and slave is the same but different tone ^^ May 21 12:52:54 ma is mother and horse May 21 12:53:00 yep ^^ May 21 12:53:13 oh, but they have only countable amount of sylables May 21 12:53:30 around 600 and no more May 21 12:53:38 the thing about correct articles in german is that it's mostly irrelevant. can't think of anything where it actually matters. May 21 12:54:08 english isn't good at all May 21 12:54:10 just popular May 21 12:54:19 well, it's simple. May 21 12:54:20 english makes no sense May 21 12:54:23 not really May 21 12:54:33 as a german speaker. english is simple. May 21 12:54:48 Syzygy, thats nonsense. thats like saying grammer doesnt matter as long as you can put words together like yoda May 21 12:54:49 you need to remember how to read words May 21 12:55:08 german words are readable if you know rules May 21 12:55:22 just question of habits May 21 12:55:52 danijoo_, is any actuall meaning lost when I say "das mensch"? May 21 12:56:23 "der haus" May 21 12:56:38 it doesn't really matter. May 21 12:56:43 Syzygy, is any meaning lost when I say "I go yesterday write programs" ? I think everyone will understand whats meant but its still bad May 21 12:56:47 same for "der haus" May 21 12:57:08 Really wish I could be more specific about code formatting in android studio... specifically with annotations May 21 12:57:20 danijoo_, changing the order is different than just using a different article. May 21 12:57:34 joshkovach, this is no place for that topic :o) May 21 12:57:36 http://rs1img.memecdn.com/everything-sounds-angry-in-german_o_274395.jpg May 21 12:57:49 lol, non liguists pretending to be linguists May 21 12:57:53 what has this channel become May 21 12:58:12 wakelock, who said i dont have a linguistic degree? :p May 21 12:58:26 wakelock, at least danijoo_ and I are arguing about our native language ... in a different language :( May 21 12:58:27 don't think anyone pretends to be linguists May 21 12:58:31 danijoo_, proof or gtfo :p May 21 12:58:44 danijoo_, also: http://i.imgur.com/RehihwQ.jpg May 21 12:58:45 how is smetterling a hard word? at least pick a word with some z's and s'es if you want ot make that comparison May 21 12:58:45 Syzygy, thats the best part about it. that we actually argue in english :D May 21 12:58:47 lol May 21 12:58:57 * danijoo_ gtfo's May 21 12:59:08 asfdd, Syzygy is a word :> May 21 12:59:11 asfdd, its about that it sounds like I want to kill you :p May 21 12:59:21 it doesn't though May 21 12:59:42 https://www.youtube.com/watch?v=cjV-4CtiIV0 May 21 12:59:53 Suddenly I want to take language classes again :P May 21 13:00:22 schmetterling, schmetter as in shatter, ling ... like in the english youngling. May 21 13:00:26 for me the two most ridiculous things about german are seemingly completely randomly scattered uppercase letters in a given sentence, and their silly contactenation of infinite words into one May 21 13:00:49 well I remember weekdays use capital letters May 21 13:00:51 wakelock, the uppercase is pretty easy May 21 13:00:59 every noun goes uppercase, thats all May 21 13:01:05 I had trouble with uppercase stuff in school. May 21 13:01:16 but the concenation is weird, yeah May 21 13:01:25 danijoo_, I never said it's difficult, it's just ridiculous. like... why?? May 21 13:01:43 also, my teachers always said when i merged words in text it was wrong May 21 13:01:48 Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz May 21 13:02:13 that was an official word once May 21 13:02:21 danijoo_, see, EXCEPT if a noun is part of such a ridiculous construct May 21 13:02:27 then it DOESN'T go uppercase May 21 13:02:29 wakelock, ^^ May 21 13:02:38 because its a single word May 21 13:02:47 (pretty sure there are some nouns in there, but honestly I have no idea :p ) May 21 13:02:49 hi guys, I have some time now and everything is working so I recorded something small that I think can sum up what better programmers think of people who come here and claim that things don't work. I am sure many people have thought this way about me as well when I was first starting, you should take a listen :D https://dl.dropboxusercontent.com/u/19390574/programming%20doesnt%20work.wav May 21 13:02:56 gesetzesentwurfskommission May 21 13:02:57 wakelock, its all nouns May 21 13:03:00 lol May 21 13:03:15 in english you would write them as one word May 21 13:03:28 like door knob is Türknauf (Tür + Knauf) May 21 13:03:42 Can I get a bit of help with an issue that I'm having? I'm fairly new to android development, so I'm clueless as to why this is happening. May 21 13:03:56 Crotanks, only if your problem is related to german May 21 13:04:07 hah May 21 13:04:09 :) May 21 13:04:13 just ask :) May 21 13:04:31 ask it in german, google translate will do May 21 13:05:14 danijoo_, eh, all the explanations and reasoning in the world still doesn't make any of it any less ridiculous :p May 21 13:05:23 http://stackoverflow.com/questions/30291879/androids-simple-cursor-adapter-and-multiple-row-layouts <--- I posted this a few days ago, but I've got nothing :p May 21 13:05:34 like, why would you treat just any noun as if it was a person's name? (re: uppercase) May 21 13:05:36 wakelock, but we have RULES for our rediculous stuff May 21 13:05:41 at least for most of them May 21 13:05:45 (not for articles) May 21 13:05:47 wakelock, basically, if it's one thing, you can call it one thing. May 21 13:06:18 Syzygy, that doesn't make one bit of sense, sorry May 21 13:06:25 wakelock, the thing is a persons name has no special ruling. its just a noun that happens to identify a person May 21 13:06:51 danijoo_, yeah but in most other (similar?) languages there is a clear distinction for these May 21 13:07:07 out of respect for a person you would spell their name with an uppercase letter May 21 13:07:20 you guys seem to extend the same respect to just about anything :p May 21 13:07:49 for names they use camel case :o) May 21 13:07:53 even if it's a law about how to pass responsibility over monitoring of printing of labels on bovine products like in danijoos example May 21 13:08:09 *bovine meat products May 21 13:08:46 wakelock, so you disrespect people by lowercasing their names? :P May 21 13:08:49 or the commitee for passing a template of such a law like in my addition to his example. May 21 13:09:19 danijoo_, online laziness doesn't count :p May 21 13:09:46 but technically, yeah that could easily (and somewhat rightfully) be considered disrespectful May 21 13:09:49 fun fact, hungarian is even worse with concatinating words. May 21 13:09:55 I could also say english disrespects other beings because animals are "it" May 21 13:10:01 like... ball, little ball, both one word. May 21 13:10:11 or something like that. May 21 13:10:11 Syzygy, dont tell me you are from hungarian May 21 13:10:23 I said german is my native language May 21 13:10:26 animals are only ever "it" when you're not sure or you treat it like headcount, in which case you do truly disrespect it May 21 13:10:30 has nothing to do with the language ;) May 21 13:10:35 I'm from austria. May 21 13:10:38 in many other languages they do exactly the same May 21 13:10:49 I thought you might have hungarian ancestors because then you would basically be me. May 21 13:10:54 Syzygy, close enough to hungary, eh? May 21 13:11:01 anyone heard of a formal language? May 21 13:11:09 um yes? May 21 13:11:09 even was part of hungary once :p May 21 13:11:10 wakelock, since I'm in the capital... less than 100 km I guess May 21 13:11:16 austria-hungary May 21 13:11:23 Syzygy, austrian dialect differs a little May 21 13:11:32 * wakelock things Syzygy is the fallen ruler of the ancient autrohungarian empire May 21 13:11:32 pronunciation especially May 21 13:11:41 austro* May 21 13:11:50 gogenzoller? May 21 13:11:54 danijoo_, we ran that stuff. also, we were part of germany as well (incidentially also ran by an austrian at that time) May 21 13:12:03 Syzygy's real name is Habsbug May 21 13:12:07 burg May 21 13:12:09 can't type today May 21 13:12:10 :) May 21 13:12:13 habsBug May 21 13:12:21 sure why not May 21 13:12:28 by Freud May 21 13:12:36 sure, why not. May 21 13:12:53 your majesty May 21 13:12:56 sire May 21 13:12:56 PeterVonHabsbug, history claims you suck May 21 13:13:16 see you later guys. have to go May 21 13:13:23 liar May 21 13:13:51 later dani May 21 13:14:25 Crotanks, ask your question again now. The german debate is over :D May 21 13:15:10 http://stackoverflow.com/questions/30291879/androids-simple-cursor-adapter-and-multiple-row-layouts <--- It's this :p May 21 13:15:12 wakelock, well, I'm a programmer with bug in my name. May 21 13:15:34 Basically I'm not getting the correct row layout for my listview May 21 13:22:53 hey what is a nestedScroll? May 21 13:23:02 does anyone know? May 21 13:25:22 <_rm> ashwink005: i'm assuming it's got something to do with nested scroll views May 21 13:25:23 its like parent scroll view has another scrolling view May 21 13:25:54 like ListView inside ScrollView May 21 13:27:28 I was going through the ScrollView Source Code, there was a mention of StartNestedScroll(Axes) May 21 13:27:43 any idea what it does? May 21 13:29:27 found the documentation :) May 21 13:33:05 how do i use View.isInEditMode() to prevent rendering problems in Android Studio? May 21 13:38:40 how i can use cache with android annotations? May 21 13:39:19 hey everyone May 21 13:39:35 hi there May 21 13:44:58 Just curious -- anyone have any ideas so far? May 21 13:45:43 t0th_-_, I've no clue :s May 21 13:54:48 i'm trying to detect which bitmap was touched on my canvas by checking the coords but i'm not getting it May 21 13:55:57 http://pastebin.com/xdKSaTwv May 21 14:07:55 dcunit3d: if (!isInEditMode()) { /* do things that cause errors */ } May 21 14:08:17 dcunit3d: in your initializer May 21 14:09:46 joshkovach, i'm getting an error where the class android.support.v7.appcompat.R$attr isn't found, but i'm not referring to it in my activity May 21 14:10:11 when i try to refresh the preview in android studio May 21 14:11:29 dcunit3d: hmm, I don't know, sorry May 21 14:13:48 thanks joskovach, just got to figure out why this class is missing May 21 14:16:29 i have a service called MyService. the declaration in my manifest looks like: if i want to run it as a different process, do i put add: android:process=":MyService" ? May 21 14:23:44 aspire, afaik you give a name for the process in android:process. so you can put android:process=":proccessA" for MyService. then if you want other services to run in the same process you specify the same name, proccessA, or you give a different name if you want the services to run in different processes. More here: http://developer.android.com/guide/components/processes-and-threads.html May 21 14:24:48 oh ok i was just curious as to what name you put for the process May 21 14:24:56 wondering if there were any restrictions or such May 21 14:26:08 Hi, I'm writing a Fragment. Should I notify Activity that I want it to remove the DialogFragment after it finished its job, or just call dismiss() in Fragment itself ? May 21 14:28:03 dissmis on dialog ~ May 21 14:29:16 joshkovach: i needed to set up android studio to render something besides the "AppTheme" and that fixed it May 21 14:31:42 Ashiren: ok thx, but then how can I notify Activity about results? Should I define Callback like here (http://developer.android.com/training/basics/fragments/communicating.html#DefineInterface) or maybe there is a better way ? Maybe for example, Activity could listen for Fragment dismissal and check some result on it , hmm ? May 21 14:32:26 Ashiren: Is there a way to listen for Fragment dismissal anyway ? May 21 14:35:48 Silnar, just put an onDismisslistener for the fragments dialog May 21 14:36:22 or override Fragment#onDetach method May 21 14:38:59 danijoo_afk: ok, thx, I'm asking because I'm going to expose this Fragment from a library and I'm thinking how to do it well... May 21 14:40:35 do you have any idea if I could expose such Fragment and let user decide if he wants to show it as ad dialog or as a part of somehing else ? do I need to provide normal Fragment and DialogFragment, or is there easier way ? May 21 14:40:57 *ad dialog = a dialog May 21 14:41:31 apparently danijoo has extremely long arms May 21 14:44:06 something wrong with my database (using sqlite asset helper).. it seems its not openining but i believe i did put it in the correct folder http://pastebin.com/c3qQvahw May 21 14:44:16 helper class http://pastebin.com/H2xa8HTC May 21 14:44:32 the database is located in assets/databases/ May 21 14:44:35 is Vibrator#vibrate a blocking call? May 21 14:44:46 and i did move the database to assets but still no luck May 21 14:45:19 ex: Vibrator v = (Vibrator)getSystemService(VIBRATOR_SERVICE); v.vibrate(2000); System.out.println("vibrate for 1 sec"); v.vibrate(1000); May 21 14:45:36 will i see that println after the 2 seconds May 21 14:46:41 no May 21 14:51:56 vibrate is no substitute for delay May 21 14:53:55 Hi@all! I have a question about the activities lifecycle. So, i have an app with a crosswalk webview. I start the app, the crosswalk activity starts (onCreate) and everything is fine. But when I press home (last call here is onStop() ) and start the app again (via launcher icon), onCreate is beeing called again, so a new WebView is created and used, while the old one is still in the background (i can seen that in the chrome dev-tools: chrome://inspect/# May 21 14:56:34 something wrong with my database (using sqlite asset helper).. it seems its not openining but i believe i did put it in the correct folder http://pastebin.com/c3qQvahw May 21 14:56:45 the database is located in assets/databases/ May 21 14:56:50 and i did move the database to assets but still no luck May 21 14:57:47 hello May 21 14:57:59 does anyone know if admob & adsense income are combined? May 21 14:59:01 DarkChaoz, you cant open a database file in assets May 21 14:59:03 Ponsen: http://stackoverflow.com/questions/22352041/android-webview-prevent-page-reload May 21 14:59:16 you need to move it to your applicationfolder first May 21 14:59:19 so where do i place my existing database then? May 21 14:59:29 anywhere else? May 21 14:59:46 which folder is that? i created a folder in app -> src -> main -> assets (created that) May 21 15:00:05 DarkChaoz, you must copy it from the assets folder on the phone May 21 15:00:16 this seems like the correct place to put it in, but you cannot *use* it from there May 21 15:00:37 mhmm May 21 15:00:46 the assets folder is just to "carry" it to the phone. May 21 15:00:52 i see. May 21 15:01:52 i followed this example of where the database is kept May 21 15:01:53 https://github.com/jgilfelt/android-sqlite-asset-helper/tree/master/samples/database-v1 May 21 15:02:04 but not sure how to copy the database. May 21 15:02:34 pretty standart May 21 15:02:35 um dude May 21 15:02:39 like you would copy the file in java May 21 15:02:40 just like any other file May 21 15:02:46 get an input stream from assets May 21 15:02:52 write it to an output stream May 21 15:03:00 looks like you're overcomplicating it, DarkChaoz May 21 15:03:24 (next question: "and where should I copy it?") May 21 15:03:29 I can see it already... May 21 15:03:39 i'll do it a bit of goolin about sqlite asset helper first.. May 21 15:03:39 google has the answer :p May 21 15:03:51 *googling May 21 15:03:53 you get like 100 tutorial if you google "ship app with database" May 21 15:04:13 indeed May 21 15:04:26 but of course people will always ask here first for some reason May 21 15:04:36 theres even a library that does all the work for you if you add "library" ^^ May 21 15:04:40 how i can use cache with android annotations? May 21 15:04:58 t0th_-_, what has cache to do with AA? May 21 15:05:05 Anybody know how to force all JUnit tests to run in a single VM in Android Studio? May 21 15:05:17 danijoo_afk, don't tell me you're going to fall for that troll too? lol May 21 15:05:25 djMax_: Doesn't that happen anyway? May 21 15:05:32 i got multiple times ^^ May 21 15:05:35 (I'm not sure; genuinely asking.) May 21 15:05:35 It *seems* like it's one per test May 21 15:05:47 test class that is, not test case May 21 15:05:51 djMax_, whats wrong with one per test? May 21 15:05:53 Ah, okay. May 21 15:06:01 your tests shoudnt rely on another May 21 15:06:20 ok danijoo_afk go for it, looks like you have time to spare :p May 21 15:06:44 I'm using J2V8, a JS engine, and it gets angry when two VMs try to use it "close" to each other May 21 15:06:54 they fight over some filesystem file May 21 15:07:12 the author is going to fix, but I would like to just make it go away for now May 21 15:07:37 you just want it gone? no prob, consider all the test as "passed" :p May 21 15:08:40 :) May 21 15:09:19 looks like I hit a really weird niche. No one uses adsense & admob at the same time. May 21 15:10:24 I guess nobody else is *that* keen on having ads, lol May 21 15:10:29 Guys if I want to set a click listener for each item in a RelativeLayout May 21 15:10:42 ok, go do it May 21 15:10:44 Would it be best to loop over each child in the layout and .setOnClickListener for each one May 21 15:10:51 Or does onClickListener not work like that May 21 15:10:54 wakelock: actually, I use adsense for websites, then admobs on ads. May 21 15:11:02 *admob on apps May 21 15:11:05 drose379: That's one way. Why do you want to do this? May 21 15:11:15 paulo_, still... too many ads if you ask me :p May 21 15:11:18 I have a grid of options and I need to know which item the user selects May 21 15:11:20 * wakelock despises ads May 21 15:11:31 but iHaz to pay the bills May 21 15:11:33 I know i could use xml and do onClick="" but I would like to do it programatically May 21 15:11:52 paulo_, are you saying your ads actually pay the bills? that'd be a first :) May 21 15:11:53 Okay. Sounds like a normal thing. May 21 15:12:08 wakelock: at one point, yes May 21 15:12:09 So if I loop over each child and set the click listener that would work? May 21 15:12:51 drose379, or, you could make a custom view extending whatever base view you're using, that sets up the click listener appropriately in relation to the activity May 21 15:13:03 a much more elegant solution if you ask me May 21 15:13:12 Hmm, im a bit confused May 21 15:13:14 paulo_, impressive May 21 15:13:17 Care to explain a bit more? May 21 15:13:30 what part? May 21 15:13:33 Im using LinearLayout May 21 15:13:38 and inside are a textivew and an imageview May 21 15:13:44 so I should extend LinearLayout May 21 15:13:44 also, ask yourself, "is that something I can google?" May 21 15:13:56 I dont think this is May 21 15:13:58 no, you should extend the view that is to receive the click May 21 15:14:04 Its a linearlayout May 21 15:14:12 ... May 21 15:14:14 drose379: private OnClickListener listener = new OnClickListener() May 21 15:14:14 It is May 21 15:14:38 I have a RelativeLayout with several LinearLayouts inside of it May 21 15:14:52 switch(view.getId()) {} May 21 15:14:52 this is going nowhere really. I thought you knew how to extend a view and make it into a custom view. if you don't.. well, there's too much to explain May 21 15:15:03 try posting your layout May 21 15:15:16 I do, I extended TextView the other day May 21 15:15:22 well then May 21 15:15:43 But how would extending LinearLayout help me with click listeners? May 21 15:16:17 drose379: you can create a single instance of onclicklistener and for each case R.id.view, do an action May 21 15:16:36 ventura is that if I extend the view? May 21 15:16:38 class ClickableLinearLayout extends LinearLayout { public void onClick(MotionEvent event) { ((MainActivity)getContext()).handleClick(event, this); } } May 21 15:16:41 or something like that May 21 15:16:52 Oh I like that May 21 15:17:04 nothing confusing about that May 21 15:17:09 Your right May 21 15:17:35 So i would have to make a static method in my activty to call May 21 15:17:41 Or I could use a callback interface May 21 15:17:54 ...static? May 21 15:17:57 no May 21 15:18:09 MainActivity.handleClick() May 21 15:18:11 ? May 21 15:18:13 handleClick would be a plain everyday normal activity May 21 15:18:16 er, method* May 21 15:18:27 MainActivity.handleClick() would be static May 21 15:18:31 no... May 21 15:18:35 sigh May 21 15:18:48 where in my example do you see a static call? May 21 15:18:58 ClassName.methodName is static May 21 15:19:03 look again May 21 15:19:16 Oh May 21 15:19:21 your casting the context to mainactivity May 21 15:19:46 It's not a good idea to couple a custom View with a particular activity. Much better is to have a "setFooClickListener" kind of method. May 21 15:19:49 yes, I'm assuming the layout will be used in MainActivity only May 21 15:20:03 Why MainActivity wakelock? May 21 15:20:03 eh, it's just one example of a solution May 21 15:20:14 drose379, it's just an example... sheesh May 21 15:20:26 ohh I see what you meant May 21 15:20:28 my bad May 21 15:20:29 y'know what? nevermind. just loop over all the views May 21 15:20:38 lol May 21 15:20:50 this seems way above your head May 21 15:21:08 maybe, ill make it work May 21 15:21:19 ok May 21 15:21:25 Thanks guys May 21 15:21:41 there's no reason not to iterate over it if you're not doing it frequently. It's not the most elegant, but it'll get the job done. May 21 15:21:48 but like TacticalJoke said, it's generally a bad idea to permanently couple layouts and activities like that, so... May 21 15:21:56 Right May 21 15:22:07 Ill try both ways May 21 15:22:13 yeah. eventually you might shoot yourself in the foot, figure out the balance of 'best practice' vs 'need this working now' :P May 21 15:22:29 Thats what you gotta do May 21 15:22:40 my code was just the simplest possible example, there are countless ways to extend it and make it more generic/elegant May 21 15:22:51 im out May 21 15:22:53 thanks guys May 21 15:35:35 http://stackoverflow.com/questions/30291879/androids-simple-cursor-adapter-and-multiple-row-layouts <--- Any ideas why this doesn't work? Seriously lost. I'm thinking it may be related to synchronization, though I'm not sure how to fix that either. May 21 15:38:00 danijoo_afk: cache in rest calls May 21 15:39:42 AA is irrelevant in the questions May 21 15:41:12 come back if you have a specific one May 21 15:41:36 specific question? May 21 15:42:40 danijoo_afk, you are such a sucker for punishment. he never *ever* has any actual question, just random crap May 21 15:43:12 t0th_-_, more specific than "how to cache" May 21 15:43:36 take 30-60 minutes and google about caching on android May 21 15:43:39 then try to implement May 21 15:43:44 if you still fail, come back May 21 15:43:58 i am on google May 21 15:44:04 congrats May 21 15:44:14 anyway, thanks for your help May 21 15:45:21 sometimes i think you are a bot. May 21 15:45:29 no May 21 15:45:39 i am a newbie, just it May 21 15:45:51 sorry i can do the best questions May 21 15:45:56 correct questions May 21 15:45:57 everytime you come here you get "google it", and everytime you say "thanks for help" and go.. May 21 15:46:04 maybe google first :p May 21 15:46:09 i am googling May 21 15:46:11 you've been in this channel for MONTHS and you're still a noob? yeah good luck with trying to pass that May 21 15:46:11 realy May 21 15:46:11 can you use `tools:listItem` with RecyclerView? May 21 15:46:15 for 4 hours May 21 15:46:30 then you fail, miserably May 21 15:46:41 sorry, master May 21 15:46:50 or, I guess some people are really meant to stay forever noobs May 21 15:47:02 ok ok ok May 21 15:47:11 you are the best May 21 15:47:20 yep May 21 15:47:29 now I remember, he also likes to casually insult people May 21 15:47:38 in what language do you google? May 21 15:47:40 i am insulting you? May 21 15:47:50 whenever someone points out his dumbness May 21 15:48:03 you are insulting me, i am not insulting you May 21 15:48:16 danijoo_afk: english May 21 15:48:26 telling the truth as it is is not insulting, it's just facts May 21 15:48:40 ok, master May 21 15:48:50 not my problem you can't take criticism May 21 15:49:06 you still writing? May 21 15:49:19 sorry, master May 21 15:50:21 what would cause my accelerometer in my app to always be 0x0x0? I installed an accelerometer testing app and it worked fine. May 21 15:50:39 incorrect usage probably May 21 15:50:50 wakelock: of that I have no doubt. :-p May 21 15:51:13 wakelock: is there something I have to do to enable it in my app? May 21 15:51:26 Write code that works May 21 15:51:35 wow, you guys are just really helpful. :-p May 21 15:51:37 no idea, never used accelerometer before. did you google for tutorials? May 21 15:51:43 I have May 21 15:51:49 pretty sure there are countless working examples out there May 21 15:51:55 I wasn't sure if perhaps there's a permission required? May 21 15:52:09 "Feature X works in this other app, but not mine. Why not?" May 21 15:52:21 You generally don't get far with questions like that May 21 15:52:45 in intellij i am running an app on a phone connected via usb in debug mode. ive modified some classes (minor things, strings for the most part) and i've remade the project May 21 15:52:46 wakelock: I've looked at several examples but can't seem to figure out where mine differs....I wasn't sure if perhaps in newer versions of Android there's a permission required? May 21 15:52:51 but i don't see the changes May 21 15:53:13 i guess im trying to hotswap really - this is possible in debug mode isn't it May 21 15:53:25 SimonVT: fair enough, but thought perhaps there might be a common pitfall like a recently added permission May 21 15:53:55 darkfrog, copy and paste an example EXACTLY, to the letter. confirm it work as intended. if so, use it as a base for your app. if not, look for a different example. May 21 15:53:58 simple May 21 15:54:19 darkfrog, I've never heard of anything personally May 21 15:54:30 wakelock: well, except it's not....I'm writing this using libgdx and Scala so it's not quite that simple. May 21 15:54:51 well, not my problem you want to make your life more difficult :p May 21 15:55:00 hehe May 21 16:02:26 Crunching Cruncher someimage.png failed, see logs May 21 16:02:33 any idea where those logs are? May 21 16:02:50 Crunching what? May 21 16:04:24 Google has a few results for that, it turns out. May 21 16:04:24 that's the reason for a failed gradle build May 21 16:04:28 e.g., https://code.google.com/p/android/issues/detail?id=163378 May 21 16:04:36 in the logger May 21 16:04:40 which .ogs May 21 16:04:42 logs May 21 16:04:49 indeed it has. like restarting android studio or cleaning the project May 21 16:04:53 the logs May 21 16:05:47 wakelock, so the log is what is posted on that link of TacticalJoke? May 21 16:05:57 so how do you guys test multitouch in an emulator? May 21 16:06:08 Syzygy__, sure May 21 16:06:14 with the logs May 21 16:06:20 that do the logging May 21 16:06:24 of logs May 21 16:07:18 so... multitouch May 21 16:08:10 http://hastebin.com/qapotacuji.avrasm well, that's just as helpful as the original error message May 21 16:11:12 try removing pngs from your project, one by one May 21 16:19:43 Hmm, looking at LayoutInflater.java -- seems that, contrary to my assumptions, `` elements aren't inlined. May 21 16:20:00 Assuming I'm right, I'm glad about that. I don't like the idea of `` bloating my layouts. May 21 16:23:18 http://stackoverflow.com/questions/30291879/androids-simple-cursor-adapter-and-multiple-row-layouts <--- Last attempt. Any ideas why this doesn't work? I'm guessing it has something to do with the cursor being iterated over in multiple places, but I have no idea how to handle that. But that's only a guess. May 21 16:26:07 is a " W/System.err" not fatal? May 21 16:26:30 logcat shows it happening, but the application is still running? May 21 16:27:30 kolobyte: No. May 21 16:27:40 It's just stderr. May 21 16:27:40 i'd think a system.err would be fatal May 21 16:27:50 oh the System.err represents the IO? May 21 16:27:57 Yeah. May 21 16:27:58 Crotanks: have you tried to use AS debugger to see which function is being called by your adapter? May 21 16:27:59 i see May 21 16:28:07 the W means warning? May 21 16:31:07 Crotanks: and why are you storing messageDateTime as string instead of real? May 21 16:31:08 I think so. brb May 21 16:32:14 ventura: It's calling both. If I put print statements in both they'll alternate between them. And I'm actually storing them as longs so that I can easily format them to say the time or date later. I heard that was best practice. May 21 16:32:59 I'm trying to find the internal code for how the sensors operate (instead of the API) and I've been going in circles with the Sensor, SensorManager and SensorEvent files. Any help with where I can find the actual code where sensor values are updated? May 21 16:32:59 Long.valueOf(cursor.getString(columnIndex)) May 21 16:33:25 ventura: Long.valueOf(cursor.getString(columnIndex)) <-- Yeah, I'm doing that because that's the only way I've seen to get that in examples. May 21 16:33:58 http://developer.android.com/reference/android/database/Cursor.html May 21 16:34:04 Hey, I have a weird question.. say you maintain a server and you update the database and release an updated apk May 21 16:34:05 for that 1-4 hours, what happens? May 21 16:34:07 I have a lot of refactoring to do later, I'm just trying to get it functional for now. :S May 21 16:34:18 your users have an old version, your server db is an upgraded version.. May 21 16:34:21 if the column is real, you cloud use getFloat, getDouble, … May 21 16:34:29 how do I avoid hell breaking loose? May 21 16:34:32 2 tables? May 21 16:34:54 I'll change that then, thanks :) May 21 16:36:07 tricknology_: make a translation layer somehow. we do that all the time at work, we have like 15 different ways to respond to some things to support installs going back over a year May 21 16:36:25 * wakelock tries again May 21 16:36:31 so how do you guys test multitouch in an emulator? May 21 16:36:49 ventura: I've just been learning via tutorials and googling up until this issue. May 21 16:37:50 tricknology_: if you've made a change that's fundamentally incompatible in every way, then do one of: maintain metadata to re-connect the two modes until you intentionally drop support for the old installs, break all old installs immediately, or undo it because you've made a bad decision :) May 21 16:39:11 Crotanks: what are your column names? May 21 16:40:13 http://stackoverflow.com/questions/30379624/usage-of-renderscript-to-implement-bouncycastles-blockcipher-on-android-is-slow May 21 16:40:16 ok, hope I get some hits May 21 16:40:56 wakelock: i think you don’t http://stackoverflow.com/questions/2825505/is-there-any-way-to-test-multi-touch-on-the-android-emulator May 21 16:41:43 ventura, I've seen that, I was hoping there'd be some creative way anyway May 21 16:43:18 wakelock: genymotion? https://www.genymotion.com/#!/developers/user-guide May 21 16:43:25 Multi-touch simulation May 21 16:43:48 I'm trying to find the internal code for how the sensors operate (instead of the API) and I've been going in circles with the Sensor, SensorManager and SensorEvent files. Any help with where I can find the actual code where sensor values are updated? May 21 16:44:12 ventura, no way I'm using geny May 21 16:44:23 ventura: conversationID, fromNumber, toNumber, message, datetime, read, sent May 21 16:44:29 cbx: seems like there's a decent chance that it's in device-specific drivers May 21 16:44:39 I was hoping for something with the stock emulator, if not then eh, screw it May 21 16:45:12 trolololo May 21 16:45:13 Crotanks: cursor.getFloat(cursor.getColumnIndex(“datetime”)) May 21 16:45:38 If you want to use the stock emulator for almost anything, you're gonna have a bad time, my friend. May 21 16:45:44 cursor.getString(cursor.getColumnIndex(“conversationId”)) May 21 16:46:09 And use Log.d, Log.e instead of System.out.println May 21 16:46:36 in newView? May 21 16:46:41 wakelock: why not using genymotion? May 21 16:47:10 Crotanks: yes. i think you are missing the cursor indexes May 21 16:47:27 I like to stick to stock stuff whenever possible, plus I'm not opening a stupid account just to be able to use geny May 21 16:47:28 Ok, I'll try it in just a few minutes. May 21 16:47:49 wakelock: in theory there's a multi-touch / sensor "proxy" thing to read from a real device and drive the emulator. in practice I've never been able to get it to work in _any_ way: http://tools.android.com/tips/hardware-emulation May 21 16:48:29 plus genymotion for closed source is what, $300? that's a decent hit if you don't have a company paying for it May 21 16:48:50 especially just for multitouch May 21 16:48:54 yep May 21 16:49:03 thanks for this, I'll look into it May 21 16:50:15 wakelock: I don't suppose https://code.google.com/p/openintents/wiki/SensorSimulator has anything for touch events? seems like it should be possible with some in-app glue code, since you can just create and dispatch motion events (e.g. the automation tools do exactly that, though at a higher level) May 21 16:54:03 groxx: I've concluded that using multiple view types (for my "has ImageView / doesn't have ImageView" thing) is best. I can bring down parent onMeasure/onLayout calls to one per view maximum if I do this (otherwise I often get two). May 21 16:54:19 Though in order to do this I have to subclass ImageView and prevent it from calling onLayout over and over. :D May 21 16:54:31 heh May 21 16:54:37 the things we do for performance May 21 16:54:49 Even if an ImageView has a fixed view size, it calls View.requestLayout if the intrinsic image size changes (without changing the view size). May 21 16:55:12 alternatively, I think backgrounds don't affect the layout? so if you can set a fixed size and just swap backgrounds... May 21 16:55:16 So I just suppress that (because I'm not changing ImageView size -- but only when I use multiple view types). May 21 16:55:32 Ah, interesting idea. May 21 16:55:55 for my app, i'd like the user to be able to create these text views that are draggable (and able to transform into an edit view/give the user the option to edit the text of it), so my activity/fragment will have a bunch of views, is there a good way to manage all these dynamic views that won't kill performance? May 21 16:58:40 I think if you just setEditable(false) or something similar it basically _is_ a TextView. there's very little that EditText adds, though it doesn't look like it on the surface. May 21 16:59:07 cbx: http://androidxref.com/ May 21 16:59:34 ah, maybe it's enabled or something May 21 17:00:27 Hmm, so we could just use View.setBackground(Drawable) over ImageView.setWhatever. How do we choose between these? (Google isn't showing much, as far as I can see.) May 21 17:00:41 uulhul May 21 17:01:10 puddy1: assuming you don't have to handle gingerbread (I think all 3.0+ handle this the same way...) you can setTranslationX/Y to move it around. that'll _essentially_ just move an already-drawn-bitmap of the view around on screen. it's practically "free". May 21 17:01:18 Oh, I guess ImageView is more flexible with regard to its drawable display. May 21 17:01:48 yeah, ImageView has the setMatrix option, and simpler center_fit / etc stuff. May 21 17:01:54 K, thanks. May 21 17:01:59 tbh I often just use View.setBackground May 21 17:02:27 fancey42 here? May 21 17:04:27 groxx, thanks, I'll look into that too May 21 17:04:56 groxx: i'm using ViewDragHelper right now instead of using the setTranslationX/Y methods - basing off of this sample code https://github.com/googlesamples/android-ElevationDrag May 21 17:05:56 puddy1: I _think_ (but am far from certain, haven't looked closely at that yet) that ViewDragHelper (or anything "Drag" named) is for "drag and drop" which is a _little_ different. not sure if it's different enough to matter though - maybe it fits. May 21 17:06:44 hmm interesting May 21 17:07:17 checking that sample though, it does seem like maybe it works for this too. cool, if so. is that running too slowly? May 21 17:07:30 only tried futzing with it in the emulator May 21 17:08:49 and for one view it seemed alright but i tried to get fancy and tried using a ViewSwitcher with a textview/editview, and that seemed janky May 21 17:11:42 puddy1, don't switch between edit and textview May 21 17:11:52 use edittext always and enable/disable it May 21 17:12:01 then use translateX/Y for movement and update layout params on drop May 21 17:12:16 if you'll check the source, EditText extends TextView anyway, so it has all that functionality May 21 17:13:31 Mavrik: do you recall offhand the right method to enable/disable? i dont have my code right in front of me but i recall trying to set false on some method on an EditText & the keyboard still popped up May 21 17:13:54 that would be setEnabled. May 21 17:14:11 ah, of course.. May 21 17:15:51 Mavrik groxx TacticalJoke g00s You should check this talk out. https://plus.google.com/u/0/+DaveSmithDev/posts/5HwcvMmiQhc May 21 17:16:23 oo May 21 17:16:27 sounds like fun May 21 17:17:29 weird. I'd follow his youtube, but even that video isn't appearing on his list of uploads :| May 21 17:17:49 Thanks, looks interesting. May 21 17:17:54 Yeah, that's an unlisted YouTube video. May 21 17:19:02 ah. annoying. May 21 17:19:31 I am learning how to work with databases and so far I did implement a DataSource and a DBOpenHelper classes in order to form a ListView in my mainActivity. Now I am planning to use a second Activity to register new items on the database. I did also implement onPause and onResume() methods on my mainActivity class. Now I wonder, to fill the best practice to managing SQLite what would be best recommended when I access it in two different Ac May 21 17:19:32 tivities? As far as I have implemented those methods I think there is no risk of having two connections on the database at same time. So I ask, Is it better implement a extra class for DatabaseManagement using a singleton pattern avoiding two connections, or the close the connection onResume and onPause, or use a Bundle to keep database in a single class and share object properties over my application? What do you think guys? Is there a b May 21 17:19:32 ook or a online resource I could follow to master it please? May 21 17:19:41 tl;dr please May 21 17:23:57 ircfox_ in your case use a loadermanager for the listview May 21 17:25:35 ircfox_: whatever is simpler May 21 17:26:10 ircfox_: the nice thing about the db singleton is that in the future, you will probably add more and need to access the db from more points, which means having a singleton will scale easily May 21 17:27:10 ventura: it's getting the cursor indexes. May 21 17:29:31 thanks for the db answer earlier, groxx May 21 17:29:43 lasserix_: yes, I agree with that. I don't like the idea of having the database vars opened in each class but anyway. For sure it makes life much more easier. The thing is if I need to add an extra DatabaseManagement class over the DBOpenHelper and DataSource of it would be replaced by an existing one? May 21 17:29:54 lasserix_ or you could keep a reference to it in your singleton May 21 17:29:58 some kind of dbwrapper May 21 17:30:17 that singleton extends Application I believe May 21 17:30:32 ircfox_: you can just pull those classes into your sqlite helper May 21 17:30:38 *those methods from the manager May 21 17:30:58 anyone know if android 4.0 has problems with MJPEG loading ? with 4.2+ its working perfectly.. May 21 17:31:08 all you are doing is maintaining an atomic count of db connections, and only actually closing it once the connection count is 0 May 21 17:31:16 lasserix_: alright let me start put it in practice that. Thank you so far! May 21 17:33:15 lasserix_: yes, use semaphore for database access. May 21 17:33:50 no May 21 17:33:55 err May 21 17:34:08 semaphore for read / write you mean? May 21 17:34:18 you can implement it however you want May 21 17:34:26 ircfox_: there's really no need to close databases. technically, doing so frees up a bit of memory, but it's rather small and closing/reopening continuously is pretty wasteful as well, and prone to errors May 21 17:34:27 it is probably easier to queue them May 21 17:34:58 You guys have a good site for android icons ? May 21 17:35:01 ircfox_: make a singleton, never close it, it works. after every write / transaction completes, it's all on disk anyway, so it's not like .close() is required to flush the data or anything May 21 17:35:03 Ugh whaaat. Why is it so difficult to print a PDF? May 21 17:35:48 groxx: and when it is really closed? onDestroy() method? May 21 17:35:50 PdfPrinterDocumentAdapterbator extends SomeCrazyStuff { ; } May 21 17:36:45 ircfox_: when you call .close, or never. "closing" only matters in-process; if your process dies, it's "closed", because that concept only exists within your app. May 21 17:38:21 groxx: well conceptually, in case of having a singleton database connection, I would only need to close it when my app dies. So I wonder if Android API doesn't have a "official" method called for that instance? May 21 17:39:14 if your app is going to be killed, nothing wil be called May 21 17:39:31 so just leave it open May 21 17:39:37 your app can be mid-computation, figuring out what 3 / 7 equals, and it'll just die before it finishes. May 21 17:39:57 groxx right in the middle of calculating 42 ! May 21 17:40:26 my project builds fine, but when I click "Debug" in android studio it complains that a class is defined twice during DEX packaging. WTH? May 21 17:40:32 if you've ever used it: android basically just calls `kill -9 `. you're gone, instantly, there's no callback. if you had something important you wanted to save, you should've done it during the lifecycle callbacks like onSaveInstanceState. May 21 17:44:02 no you want to close it May 21 17:44:11 in ondestroy May 21 17:44:20 otherwise if the process isn't killed but cached then youre wasting device memory May 21 17:47:21 lasserix_: I am not sure but I think there is a garbage collector with cleans it up, and if it crashes during a given timeslice nobody cares. Except the SQLite with could miss something valuable. May 21 17:48:09 not if it is static May 21 17:49:31 lasserix_: static doesn't goes to stack? May 21 17:49:38 and the garbage collector wont close your database connection May 21 17:49:48 onDestroy isn't called May 21 17:49:58 when the process is being destroyed yes May 21 17:50:00 nope May 21 17:50:05 i am talking about when the process is not being torn down May 21 17:50:08 but just quit by the user May 21 17:50:09 then it is May 21 17:50:14 and then you are leaking system resources May 21 17:50:18 by being a lazy coder May 21 17:50:19 ;p May 21 17:50:30 a handful of kb, yeah May 21 17:50:41 and it reclaims that memory very easily May 21 17:50:51 * pfn waits for interesting hits on his stackoverflow Q May 21 17:51:09 if you were a 24/7 foreground service, then yeah, minimizing memory footprint is important. otherwise, barely. May 21 17:52:05 Ok, guys, I got it. I'd like to thank you very much for the help! May 21 17:52:06 lasserix_ ContentProviders dont have onDestroy - that is a clue :) May 21 17:52:36 mant components have onTrim() though, so implement that if you want May 21 17:52:40 *many May 21 17:52:58 ircfox_: if you want further evidence that this is expected, look at the source for system content providers. the vast majority open a database when they're created, and never close it or even null the reference. May 21 17:53:27 is there something like PorterDuff.Mode.CLEAR to stop drawaing on canvas instead of clearing it? May 21 17:53:40 g00s thats because they are remote service May 21 17:53:57 * g00s sighs May 21 17:53:59 ugh, why is the behavior of Cipher.getInstance("AES") on android weird May 21 17:54:17 I would expect it to give me an ECB/NoPadding cipher, instead it gives me CBC/SomePadding May 21 17:54:28 that was the NSA patch May 21 17:54:32 :D May 21 17:54:32 nope May 21 17:54:34 its not AES May 21 17:54:50 isnt it RIJNDAEL May 21 17:55:04 aes is rijndael May 21 17:55:04 i might be mistaking it May 21 17:55:12 no i mean the format May 21 17:55:20 its not batman. its bruce wayne May 21 17:55:38 PKCS5Padding May 21 17:55:40 rijndael is a block cipher, so the format is 16 bytes without chaining May 21 17:56:15 well maybe they made the padding default May 21 17:56:15 I would expect getInstance("AES") to give the unadulterated block cipher (which is what it does on jvm, iirc) May 21 17:56:24 so people wouldnt use weak ECB May 21 17:56:40 Ashiren, it's possible padding was made default, but that's dumb May 21 17:56:48 this is android May 21 17:56:50 pfn: its probably because there was something proprietary about it May 21 17:56:50 padding can be used independently of chaining May 21 17:57:05 Napalm, it's a fully open standard, prescribed by nist, so nothing proprietary there May 21 17:57:42 oh well, gonna put aside my renderscript experiment for now May 21 18:00:03 If I have a high-quality png, how do I adjust it for the different drawable folders? May 21 18:00:15 the same way you would scale any other image May 21 18:00:31 but if you only have a raster image to begin with, might as well throw it in a single dpi folder and call it a day May 21 18:00:52 scaling yourself won't really produce any better results than letting platform do it May 21 18:01:03 maybe marginally faster May 21 18:01:33 So just copy the same png to all 4 folders? Or just drawable May 21 18:01:48 no, just 1 -Xdpi folder depending on what the image corresponds with May 21 18:02:45 i'm not sure that a good idea with low end phones though, depending on how mant assets you have and how big the source is May 21 18:03:02 447 × 382 May 21 18:03:18 especially if providing xxhdpi May 21 18:03:24 optimize as necessary May 21 18:03:27 probably soon xxxhdpi :) May 21 18:04:25 they should start thinking about a new syntax May 21 18:04:38 before we got too many x's May 21 18:04:40 anything above 300dpi is fluffy May 21 18:04:48 so it doesn't really matter May 21 18:05:00 it's just feature-bulletpoint bullshit May 21 18:05:29 cardboard! :p May 21 18:06:10 I want a retina VR experience. May 21 18:06:49 learn lucid dreaming May 21 18:07:10 AS underlines with red the parameter waveDrawable(Color.RED); where waveDrawable(@ColorRes int color) May 21 18:07:23 I have a psd file with it, can I just save it for the different folders from there? May 21 18:09:24 guess I have to change it to R.color.red May 21 18:11:10 JesusFreke, actually, that's a pretty reasonable use-case for higher than 300dpi May 21 18:11:51 Color.RED is a color, while it expects a resource id which points to a color May 21 18:13:18 it's kinda freaking me out that my random UUID has the words "dead beef" in it : deadbeef6df9 May 21 18:13:37 yes pfn you are correct - never before used Resource annotations May 21 18:13:39 hahaha May 21 18:13:51 must be biased from the future from the singularity May 21 18:13:57 thats a message from the nsa May 21 18:14:08 easter egg in ther rnd implementation May 21 18:14:35 pfn: yeah, I'm actually quite happy about higher resolution screens for exactly that reason May 21 18:15:23 Hey all. Are there any special steps to get an emulator working with Chrome debug tools? May 21 18:16:54 So 72dpi is not even good enough for ldpi May 21 18:18:19 hey guys anyone a bit familiar with canvas drawing i've been trying to detect touch on drawn rectangle http://pastebin.com/Zw8jr6X6 May 21 18:19:35 hert you must return true May 21 18:19:45 in MotionEvent.ACTION_DOWN May 21 18:19:51 to get action move or up May 21 18:20:29 nm that's fine i need to get some coffee May 21 18:21:24 i'm able to draw the rectangle right, but then i want to detect when i click on it to use as a button May 21 18:22:07 MikeWallaceDev, how many people understand hex if only you and dead people understood hex? May 21 18:24:15 Hey guys anyone a knowledgeable about User management? I got this REST API server that I want my app to send User submitted prices they see at the store when shopping, But I need to know what Google account sent me the info. (to stop spaming), can someone point me in the right direction? May 21 18:25:14 wakelock My mom had me learn hex when I was like 7 or 8 years old :p May 21 18:26:38 cool mom :p May 21 18:27:38 yeah, She was working on some PIC micro processors and had me do sum checks on printouts for candy.... May 21 18:27:40 hert: have you debugged your ontouch? what happens May 21 18:28:15 http://arstechnica.com/gadgets/2015/05/google-developing-brillo-internet-of-things-os-based-on-android/ May 21 18:29:40 g00s: jesus, when all toasters have local IP's on your home network.... I'll go mad... May 21 18:29:41 * pfn publishes keepshare 4.0.0 May 21 18:29:42 yay May 21 18:30:15 now that I have write support in there, i can create a keepshare lite with read-only support that I can let users have for free :) May 21 18:31:17 zambo no issue in the debug the log while drawing not clicking on it later http://pastebin.com/fKZytK7W May 21 18:31:18 apparently the next major(ish) android release will be M for marshmallow May 21 18:31:34 http://cdn.arstechnica.net/wp-content/uploads/2015/05/Android-MARSHMELLOWintro-980x477.jpg May 21 18:31:48 hey, is it possible for a debug version for my app to have a different name in the app drawer? May 21 18:32:02 rymate1234, pretty May 21 18:32:04 sure not May 21 18:32:09 rymate1234 yes, product flavors May 21 18:32:16 if you’re using gradle May 21 18:32:16 oh May 21 18:32:20 nvm May 21 18:32:25 yes I'm using gradle, I'm just asking how May 21 18:32:31 I know about applicationIdSuffic May 21 18:32:34 Suffix May 21 18:33:09 If I have a png that I want to convert for different mdpi, ldpi etc., but it is not an icon, just an image in the app, how do I determine what resolution/hdpi to use? May 21 18:36:16 @rmate1234 you could put the label in a resource xml that belongs to different source sets for debug/release May 21 18:36:20 Hey i didn't know ho easy android programming could be so far. May 21 18:36:27 i men for xml. May 21 18:36:29 mean May 21 18:37:05 :O May 21 18:37:23 hert try setting a break point and stepping through ontouch, you’ll be able to see your rectangle’s values and what the touch points are May 21 18:38:28 ...said no one ever May 21 18:40:36 Ashiren,What that face for? May 21 18:41:10 nothing May 21 18:41:13 hyper ventilation May 21 18:41:33 Ashiren, i see that no prob. May 21 18:43:05 I just hope google come out with better tools for deveolpers:) May 21 18:44:15 "wow man, android programming is so easy! or it would be if we had better tools..." May 21 18:44:18 you're making no sense dude May 21 18:45:09 wakelock,I just start out. May 21 18:48:19 my app is in the trending page! \o/ May 21 18:48:33 Does anyone have any probs with api 22 in android studio the device does not show up in activity_main.xml May 21 18:48:33 it's a few scrolls down May 21 18:48:35 but still May 21 18:49:06 still not encouraged to give a link? :p May 21 18:49:27 But when i change to api 21 it works. May 21 18:50:39 odd May 21 18:53:31 what do you mean with "the device does not show up" ? May 21 18:53:37 how can a device be in xml May 21 18:54:00 paulo_, !! you cant say im trending! in here and not give a link to the app. May 21 18:54:33 is the trending thing localized? May 21 18:54:38 like is it different per country? May 21 18:54:51 give me the name and i can tell you if you trend in germany :p May 21 18:54:54 no idea May 21 18:55:44 danijoo,i think it the gui for activity_main.xml in layout May 21 18:56:44 If i am right. May 21 18:57:43 i have no idea what your problem is :x May 21 18:57:58 Maybe it a bug in android studio. May 21 18:58:07 is your preview view empty or what? May 21 18:58:13 yes May 21 18:58:18 I just had a problem with my layout May 21 18:58:26 and no xml errors? May 21 18:58:42 oh really ironthighs May 21 18:58:49 The layout view wasn't working for me, but was for my coworker. I tried a bunch of stuff. Finally I decided to try to close AS and reopen it May 21 18:58:52 problem solved. May 21 18:59:01 :D May 21 18:59:09 maybe i try that.:) May 21 18:59:10 aka "Have you tried turning it off and on again?" May 21 18:59:11 Android layouts makes me never want to do Android ever again May 21 18:59:20 I am so sick and tired of it May 21 18:59:33 and it makes me feel like such an incompetent programmer. May 21 19:00:01 'm an equal opportunity hater. I hate doing any sort of UI May 21 19:00:03 lol I gave up on layouts. I used canvas instead. May 21 19:00:08 I'm* May 21 19:00:22 so I can dynamically resize the screen elements depending on screen reso May 21 19:00:24 danijoo: Yes May 21 19:00:35 I always forget to just do that first May 21 19:00:38 turn it off and on again May 21 19:02:29 Ironthights,I start a new project and now it works:) May 21 19:02:40 sorry for the mis typeing. May 21 19:03:30 lol, i love this animation http://lifehacker.com/why-chrome-uses-so-much-freaking-ram-1702537477 May 21 19:03:38 capella ^^^ May 21 19:04:12 wocka wocka wocka May 21 19:05:06 Is there any reason I should use AppCompatActivity when I'm targeting API 15+? May 21 19:05:18 yes May 21 19:05:41 What is that reason? May 21 19:05:50 double secret reason May 21 19:06:15 Support classes and material design May 21 19:06:17 ResidentBiscuit: Wanting a material look. May 21 19:06:20 the reason is consistent activity behavior all the way through lollipop May 21 19:06:24 and beyond May 21 19:07:19 Do people ever use the native (is that what you call them?) classes? Or do people only use the support classes? I'm just having a hell of a time trying to figure out when to use one or the other May 21 19:07:30 consistent = consistent bugs ^^ May 21 19:07:33 some do, some don’t May 21 19:07:46 for fragments _most_ people use support May 21 19:07:56 ResidentBiscuit, that would depend highly on your use case May 21 19:07:57 * wakelock always uses native classes May 21 19:08:17 as you can see, there are exotics like wakelock May 21 19:08:22 :p May 21 19:08:31 Most of the compat stuff will call out to native if it’s available May 21 19:08:41 It just seems like the support classes do everything the native do, except you have to use different themes (which are also identical to the native themes) May 21 19:08:55 s73v3r: I don't think that's true. May 21 19:08:56 ResidentBiscuit, thats what they should do May 21 19:09:02 A lot of the support stuff is its own implementation. May 21 19:09:15 they are to bring native behaviour from newer api versions to lower api versions May 21 19:09:15 The bonus is that the support classes can be used far back before they were actually introduced May 21 19:09:16 That's why we get consistent behaviour with support-v4 Fragments, etc. May 21 19:09:27 for example fragments dont have childFragmentmanager before api level 17 May 21 19:09:43 if you want to target 15+ and use this, you need supportfragments and therfor AppCompatActivity May 21 19:09:44 maybe not most, but I’m fairly certain that the ActionBar does that May 21 19:10:00 ResidentBiscuit, that's the whole point. basically you accept bloating your app some and in return you get consistency across android releases and API versions May 21 19:10:03 at least that's the idea May 21 19:10:26 So, the safe, and probably default route, is to just use the support classes when available? May 21 19:10:40 ResidentBiscuit yes May 21 19:10:49 yup. makes it a little more sane to support previous api versions May 21 19:10:52 I think it's also a good idea to use AppCompat. Holo looks aged now. May 21 19:11:14 Alright, this helps a lot. Like I said, I was having a lot of confusion with this native and support separation May 21 19:11:36 that's because you didn't actually know what's the point of appcompat May 21 19:12:19 A lot of it is more or less inside knowledge, ResidentBiscuit. The documentation is terrible here, AFAIK (there isn't an official document which states the reasons mentioned above for using support libs where available). May 21 19:12:20 This is a true statement May 21 19:12:44 TacticalJoke: That's what I found. The docs just say 'Hey, we're using the support libs here' May 21 19:12:59 Does anyone know if I retrieve a view tag for a position thats an int, it'll return 0, but if I retrieve it as an Integer, will it return null or 0? May 21 19:13:00 A lot of it is also out of date, which significantly increases the complexity for newcomers. May 21 19:13:01 the support code is one thing, best practices are something entirely different May 21 19:13:22 I would hate to come to Android today. Imagine trying to understand AppCompat given that most documentation about it relates to Holo. May 21 19:13:28 you kinda always want support-v4 and appcompat-v7 at least for fragments and material theming May 21 19:13:40 And there's the subtle fact that AppCompat changed a lot in version 21. May 21 19:14:03 Subtle because it's very hard to find official documentation mentioning it. May 21 19:14:11 TacticalJoke: I just came into the world of Android 3 or 4 days ago, so I'm feeling it ha May 21 19:14:20 google never releases docs before/with their new stuff :/ May 21 19:14:28 that sucks so much.. May 21 19:14:42 ResidentBiscuit, start with android 1.5 and work your way up :p May 21 19:14:44 you always have to crawl for blogs and google+ chris barnes ^^ May 21 19:15:02 It’s quite unacceptable, really. Apple has all of their stuff ready to go when they announce it May 21 19:15:03 danijoo yeah, spreading all that shit all over sucks terribley, and then you wonder whats up to date May 21 19:15:12 ResidentBiscuit: A lot of these things are things that either (a) you spend months figuring out on your own or (b) you ask someone in here or elsewhere about. May 21 19:15:16 (b) is often a good idea. May 21 19:15:27 s73v3r, yet the vast majority of devs simply accept it May 21 19:15:29 they kinda deprecated docs for chris barnes twitter/g+ account May 21 19:15:41 TacticalJoke: IRC is always a valuable resource, and this channel has so far been extremely helpful and friendly May 21 19:15:43 So I appreciate that May 21 19:16:25 TacticalJoke, mostly it's a combination of both May 21 19:16:26 Another resource that's sometimes good is . However, it is hit and miss. May 21 19:16:33 unless its googleable. if you can google it and do (b), hell breaks loose May 21 19:16:39 A lot of posts there are completely wrong, IMO. May 21 19:16:41 wakelock: Yeah. May 21 19:16:43 wakelock: I think it’s a bit of machissmo. “What, you need docs? Pfffff” May 21 19:17:04 yeah then danijoo will happily kick your ass :p May 21 19:17:14 “If you want your hand held, go enjoy your iToys, and leave it to the real programmers!” May 21 19:17:15 not only me :p May 21 19:17:48 s73v3r, be it whatever it is, the reality speaks for itself May 21 19:17:49 Yeah, some of the questions are easy to google. I'm referring more to stuff like this insider knowledge ("When should we use support libs?"). :D May 21 19:17:53 I frequent enough forums to know the frustration of people who do zero research for themselves :) May 21 19:18:06 Or stuff like fragments versus views. May 21 19:18:11 true May 21 19:18:33 of course you do, I mean there's probably a reason you're "resident" :p May 21 19:18:40 also: you have to learn a lot of things the hard way in android May 21 19:18:40 Lmao May 21 19:18:48 Yeah. May 21 19:19:24 You have to enter battles with Android to become a hardened veteran. May 21 19:19:40 and its not a fair fight :p May 21 19:19:48 android will hit you in the nuts May 21 19:19:51 whenever it can May 21 19:19:54 lol May 21 19:19:57 android must be a girl May 21 19:20:02 I've noticed that all the regulars in here are missing an eye, an ear, an arm. May 21 19:20:12 Lel May 21 19:20:14 and you get zynic May 21 19:20:16 if marketshare was more evensly split between other platforms, i bet many android devs would leave May 21 19:20:26 its just the only game in town May 21 19:20:27 ResidentBiscuit, actually y'know what? forget about appcompat and write your own compat layer. that will help you learn about all the nooks and crannies May 21 19:20:30 :p May 21 19:20:55 ResidentBiscuit: What app are you hoping to make? May 21 19:20:56 That sounds like a painful rabbit role to go down May 21 19:21:15 no pain no gain, they say May 21 19:21:27 but also, no brain no pain May 21 19:21:30 so you choose May 21 19:21:34 10 minutes later: ResidentBiscuit left android - never seen again.. May 21 19:21:36 ^^ May 21 19:21:49 TacticalJoke: I'm actually just learning right now. Just graduated, have a month before I start my big boy job so I figured I'd spend the time learning Android finally. Want to make a shared shopping list kinda thing just to toy around with May 21 19:21:59 revenues are still soundly in the iOS camp. However, a lot of the Android people would never want to do iOS May 21 19:22:04 Ah, the standard list-of-things app. :D May 21 19:22:12 or, ResidentBiscuit was lost in the woods of android, never to be seen again... May 21 19:22:32 iOS isnt all candy too May 21 19:22:36 do i NEED to set android:clickable="true" to use an onclicklistener or is it enough to ust set the listener? May 21 19:22:40 I thought it would be cool to have a list you share with your family and updates are synced etc. Apparently it's been done a thousand times though May 21 19:22:42 ResidentBiscuit, at least you're not going for the frustratingly overused chat app :p May 21 19:22:45 It's really just a learning experience May 21 19:22:50 Having said that, my app is just a bunch of lists, ultimately. May 21 19:22:52 styler2go if you look at the sources ... :) May 21 19:22:56 styler2go, depends on the view. some are clickable by default. but it does not hurt May 21 19:22:56 It's lists all the way down. May 21 19:23:20 somehow it's not using me listener and i can't think of other mistakes May 21 19:23:21 danijoo, setting the listener automatically makes it clickable, ALWAYS :p May 21 19:23:22 danijoo: View.setOnClickListener sets clickable. May 21 19:23:38 even if you do it through xml May 21 19:23:42 wakelock, how sure are you on a scale from 1 to not ? May 21 19:23:45 if i give a cardview an oclick, it should still fire when i onclick on a textview inside that cardview? May 21 19:23:51 ok :( May 21 19:24:05 danijoo, I'd say eleven May 21 19:24:18 adq: argh gesture listener won't work for this listview drag n drop and swipe May 21 19:24:24 Here's the reference: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/View.java#4714 May 21 19:24:37 or strg+b ;) May 21 19:24:57 lol strg May 21 19:24:59 what if i just ask you? May 21 19:25:01 https://www.youtube.com/watch?v=EZAoJU-nUyI&list=UUkQX1tChV7Z7l1LFF4L9j_g May 21 19:25:03 isn't that what the channel is for? May 21 19:25:06 ctrl for the non-german May 21 19:25:08 what, are you german?? :p May 21 19:25:08 too complicated May 21 19:25:12 you must watch video May 21 19:25:13 styler2go: May 21 19:25:28 yeeeaaah now May 21 19:25:34 then i'll use stackoverflow May 21 19:25:34 yes, now May 21 19:25:50 o-o May 21 19:26:04 zero May 21 19:26:10 lol May 21 19:26:21 lasserix_, sorry to hear !x May 21 19:26:39 yeah how to distinguish between vertical scroll and horizontal scroll? May 21 19:26:42 etc etc May 21 19:26:56 just scroll both ways May 21 19:26:57 ? May 21 19:27:01 ? May 21 19:27:06 this is inside a listview May 21 19:27:19 well then ignore horiz scroll? May 21 19:27:22 isn't a "greedy" mode for listview? May 21 19:27:25 i can't May 21 19:27:31 i need swipe on the rows May 21 19:27:33 (i saw that with wearablelistview, but they extend recyclerview) May 21 19:27:39 ? May 21 19:27:41 greedy mode? May 21 19:27:45 yes May 21 19:28:04 http://developer.android.com/reference/android/support/wearable/view/WearableListView.html#setGreedyTouchMode(boolean) May 21 19:28:09 styler2go: watch the video May 21 19:28:11 but it's not suitable for listview i'm pretty sure May 21 19:28:15 nope May 21 19:28:17 "Controls whether WearableListView should intercept all touch events and also prevent the parent from receiving them." May 21 19:28:30 it is useful when you put a listview inside a gridviewpager May 21 19:28:31 wait, are we doing wearable apps now? May 21 19:28:31 adq: i can do that with onintercepttouchevent May 21 19:28:32 for example. May 21 19:28:37 wakelock, no May 21 19:28:41 but his issue is similar May 21 19:28:52 to what provides this greedy mode May 21 19:29:10 mkay May 21 19:29:13 that's not quite the problem though May 21 19:29:23 its more having to distinguish between all the different kinds of actions going on May 21 19:29:23 by preventing the parent, only the listview inside the gridview will scroll May 21 19:29:33 instead of unknown behavior (like a scrollview and a listview) May 21 19:29:34 you can just disallowintercept May 21 19:29:54 what, you just want to know how to know if the swipe is vertical or horizontal?? May 21 19:30:09 sort of but yeah May 21 19:30:23 2 sec May 21 19:31:14 oh May 21 19:31:18 i can just check distanceX and distanceY May 21 19:31:49 lasserix_, http://pastebin.com/RTcyb4Jw May 21 19:32:33 it's an old snippet, but the concept is in May 21 19:32:42 http://phandroid.com/2015/05/21/nsa-google-play-hack/ May 21 19:33:20 old g00s May 21 19:33:30 ohrly May 21 19:34:01 i think nothing changes with all this nsa thing, but it makes ppl more tolerant to be under surveillance May 21 19:34:11 pervert effect. May 21 19:34:55 adq thanks May 21 19:35:00 np dude May 21 19:35:34 adq does that prefer horiz over vertical? May 21 19:35:46 that prefers horizontal i think May 21 19:35:48 yeah May 21 19:35:54 because of how the if then else is made May 21 19:36:11 but i don't see any solution except adding a threhold maybe May 21 19:36:27 it does not matter much since swipe are big in a direction May 21 19:36:36 is there a velocity like touch slop in view configuration or some class? May 21 19:36:42 it would be very problematic in case of extreme little swipe May 21 19:37:04 the distance is expressed in pixel May 21 19:37:13 and iirc, the velocity in onfling is in pixel per second May 21 19:37:15 or something like that May 21 19:37:21 yeah May 21 19:37:28 v= d / t May 21 19:37:29 if you look ViewCOnfiguration has those thresholds for you May 21 19:37:37 ah good to know May 21 19:37:46 static ones that are not scaled non-static for those that are May 21 19:37:54 i think the min distance and min speed helps to avoid false positive May 21 19:37:55 I cannot get this dialog to work. I've created a new project, followed the guide exactly, and I still get a run time error. "Window feature must be requested before adding content". Is this guide http://developer.android.com/guide/topics/ui/dialogs.html just not valid anymore? May 21 19:38:04 like just touching the screening with moving only a little is not a swipe May 21 19:38:27 yeah May 21 19:38:36 only problem with gesture listener is longpress is not boolean but void May 21 19:39:01 yeah no need to return anything after a long press May 21 19:39:15 no other event can appear i guess (except the event_up) May 21 19:39:35 so there is no need to return a boolean to indicate if the event was consumed or not May 21 19:39:41 ResidentBiscuit: Hmm, someone was saying something similar the other day. Can you pastebin the whole thing? May 21 19:40:06 Not sure if user error or AppCompat bug. May 21 19:40:28 yeah May 21 19:40:46 ResidentBiscuit: you must call window features before set content view May 21 19:40:57 TacticalJoke: https://gist.github.com/ResidentBiscuit/bf9a1de7507d6f7ec8b7 May 21 19:41:16 what do you guys think of icepick ? https://github.com/frankiesardo/icepick May 21 19:41:20 We'll need to see the Activity, really. May 21 19:41:27 damn now my long press is not firing May 21 19:41:27 weird May 21 19:41:36 soo.. lets see how many reviews I have in amazon appstore. lets select a region: http://prntscr.com/77u6eo May 21 19:41:37 TacticalJoke: Whoops, hold on May 21 19:41:46 Didn't realize I pasted the same thing twice May 21 19:42:03 Hah. Didn't notice the file names. May 21 19:42:04 lasserix_, you have to enable it May 21 19:42:08 TacticalJoke: https://gist.github.com/ResidentBiscuit/bf9a1de7507d6f7ec8b7 May 21 19:42:08 ? May 21 19:42:11 So used to skim-reading. May 21 19:42:17 it was firing yesterday May 21 19:42:18 My clipboard has been acting up May 21 19:42:26 or i think it was May 21 19:42:54 TacticalJoke: These classes are basically the auto-generated classes from android studio. Lines 34-35 are where I show this dialog May 21 19:43:28 lasserix_, http://developer.android.com/reference/android/support/v4/view/GestureDetectorCompat.html#setIsLongpressEnabled(boolean) May 21 19:43:37 but ror: Connection reset by peer) May 21 19:43:39 oops May 21 19:43:42 where is the application name defined? May 21 19:43:43 "By default longpress is enabled." May 21 19:43:46 so it's weird May 21 19:44:04 styler2go, https://support.google.com/websearch/answer/134479?hl=en May 21 19:44:04 only android mainfest? May 21 19:44:15 yeah its not firing at all now May 21 19:44:20 in onTouchEvent May 21 19:44:20 lol May 21 19:44:35 ok. rthis is seriously the most useless freenode channel :D May 21 19:44:35 thats why May 21 19:44:40 that's what i mean about returning void May 21 19:44:45 you are welcome to leave :) May 21 19:44:53 nah i will troll liek you now :D May 21 19:44:54 since i do if (gestureHandler.handled(ev)) return true and it returns void May 21 19:44:58 ok May 21 19:45:05 im fine with that :) May 21 19:45:06 check what you return in few of your other methods lasserix_, maybe you tell the event was consumed May 21 19:45:16 of course you are :) May 21 19:45:17 put some log, or some break point, you will figure out May 21 19:45:26 its becasue the listener doesn't return for longpress so onTouchEvent doesn't return true so it can't be consumed as a long press May 21 19:45:54 ResidentBiscuit, can you post the stacktrace May 21 19:45:55 lasserix_, https://developer.android.com/training/gestures/detector.html May 21 19:45:57 "Beware of creating a listener that returns false for the ACTION_DOWN event. If you do this, the listener will not be called for the subsequent ACTION_MOVE and ACTION_UP string of events. This is because ACTION_DOWN is the starting point for all touch events." May 21 19:46:00 the code looks fine for me May 21 19:46:12 well i have to intercept it May 21 19:46:12 danijoo: I just updated the gist with the stack trace May 21 19:46:45 I see :) May 21 19:47:01 lasserix_, i tend to put it inside dispatchTouchEvent(MotionEvent event) instead of onTouchEvent May 21 19:47:02 Is there a support version of Dialog I should be using? May 21 19:47:07 maybe i had similar issue, i don't recall May 21 19:47:21 ResidentBiscuit: I'm getting the same exception. Let me see... May 21 19:47:21 im not sure but I think you cant inflate a layout and additionally add a dialog May 21 19:47:22 good luck, ttyl, brb May 21 19:47:34 Yeah, I suspect it's what danijoo said. About to try. May 21 19:47:41 https://docs.google.com/document/d/1fMuY32NWlcjnzohCpoe4CyIS3twPKJxkqCX9Q1CEeGQ/edit May 21 19:47:46 how long would it take? May 21 19:47:53 danijoo: Good idea, lets try May 21 19:47:59 adq later problem is i have to manually check if it is a long press on a row since long press return null otherwise i can't distinguish it May 21 19:49:08 danijoo: Aha, so I just took out that whole override function and now it works May 21 19:49:18 Yeah, you gotta remove `onCreateView` and instead say `builder.setView(R.layout.fragment_new_list_item_dialog);`. May 21 19:49:32 crashlytics sdk 3.0, i wonder if the plugin is still hassle May 21 19:49:38 So, if you're using the builder you don't use the inflater? May 21 19:50:22 I think so. I haven't used DialogFragment in ages, but I never used both `onCreateView` and `onCreateDialog`. May 21 19:50:24 Odaym: whats the prize? May 21 19:50:40 oh nm May 21 19:50:44 wow lebanon May 21 19:50:49 ResidentBiscuit, DialogFragment basically can do 2 things: Encapsulate a dialog or a view. you have to choose what you want May 21 19:50:53 TacticalJoke: I'll keep that in mind. Do you use something instead of DialogFragment? May 21 19:50:55 and cant have both May 21 19:51:10 danijoo: This makes a lot of sense May 21 19:51:11 I'm making an app that doesn't really have dialogs. May 21 19:51:21 But I would use DialogFragment if I wanted a dialog. May 21 19:51:25 you can just use a custom view May 21 19:51:28 well they have this app that you record an audio note with and you throw the recording on one of your contact's faces May 21 19:51:31 Awesome, just making sure I'm not using some dinosaur May 21 19:51:32 and then use a floating window portion with window manager May 21 19:51:33 and that's how you send them an audio note May 21 19:51:50 another app beat them to it, a "AAA" app May 21 19:51:50 lasserix_: Is that better than a dialog? May 21 19:51:53 Arc or something May 21 19:51:53 Thank you both TacticalJoke and danijoo, you are awesome people May 21 19:51:55 easier to manage May 21 19:52:02 more flexibiltiy since it is just a view May 21 19:52:12 DialogFragment seems to take care of stuff (such as the save-instance-state thing). May 21 19:52:21 true May 21 19:52:26 so if you do that, they hire you May 21 19:52:26 EZ bro May 21 19:52:34 the other guy didnt know how to do the circular seekbar May 21 19:52:35 you have to move to lebanon May 21 19:52:41 wonder what the pay is May 21 19:52:54 it's a startup man May 21 19:52:57 its nothing May 21 19:52:59 in lebanon May 21 19:53:01 the idea just seems grand May 21 19:53:04 true May 21 19:53:06 they aint gonna do shit May 21 19:53:21 only 2 people from here made it, Pou and Roadie Tuner May 21 19:53:27 it depends on what features you want. If its just an "ok" dialog that you dont care if its retained it doesnt matter what you use May 21 19:53:40 if it must retain, dialogfragment is the way to go May 21 19:55:26 I'm wanting to use the dialog so users can add stuff to this list, so I think the dialogfragment is what I'm looking for May 21 19:55:29 Ahh... just fixed a really annoying, intermittent bug in my app. And the fix was almost a one-liner. May 21 19:55:37 (Relating to Activity.onDestroy happening really late sometimes.) May 21 19:55:48 ResidentBiscuit: Yeah, I'd recommend it. May 21 19:55:56 It's simple, it works, it's the recommended way. May 21 19:57:08 And if you end up having something such as a text field then you'll want DialogFragment's state-saving stuff. May 21 19:57:58 A text field is the idea May 21 19:58:11 it took 2 hours May 21 19:58:25 the one thing I didnt get had to do with animation :P haha May 21 19:58:39 if you cancel a RotateAnimation, there is no easy way to figure out where it stopped so that you can continue from that angle May 21 20:00:20 angular velocity * duration = May 21 20:00:28 wut May 21 20:00:39 on Animation Cancelled May 21 20:00:52 now - start * angular_velocity May 21 20:01:05 = rotation angle May 21 20:01:21 Odaym, will you ever get your animation stuff done? :p May 21 20:01:28 wait a minute May 21 20:01:47 oh man, assertj-android is a thing of beauty... May 21 20:02:21 actually May 21 20:02:25 if you are using infinite then May 21 20:02:39 360/animationDuration = angular velocity May 21 20:02:43 so just add a listener with onStart May 21 20:02:49 startTime = now(); May 21 20:02:52 then in cancelled May 21 20:03:17 long elapsed = now() - startTime ) * 360 / duration) = angle at cancel May 21 20:03:26 er May 21 20:03:38 (now() - startTime) * (360 / duration) = angle at cancel May 21 20:03:44 assuming you are doing 360 rotation May 21 20:04:00 with infinite repeat mode May 21 20:04:41 Oooh so the Inflater is only used when you have some XML that you need to build an interface out of? May 21 20:04:56 whenever you need to inflate some xml May 21 20:04:59 thats its job, yeah May 21 20:05:10 That just clicked for me May 21 20:05:12 it inflates the xml into a real View(group) May 21 20:05:36 Now it really makes sense why I couldn't both use the Inflater and the builder May 21 20:05:45 you can May 21 20:05:52 Don't tell me this May 21 20:05:57 lasserix_, not in te case we were talking about May 21 20:06:04 View content = Inflater.from(context).inflate(R.layout.dialog_fragment) May 21 20:06:10 builder.setContentView(content) May 21 20:06:17 oh yeah. ok :) May 21 20:06:21 thats what you mean May 21 20:06:35 I think that still makes sense to me May 21 20:06:58 Is that similar to doing builder.setView(inflater.inflate(...)) ? May 21 20:07:05 yes May 21 20:07:19 Sweet May 21 20:09:09 TacticalJoke, did you see latest #kotlin blog? May 21 20:10:27 Nah. ;o May 21 20:10:38 Been so busy. lol May 21 20:10:38 TacticalJoke, Annotation Processing :) May 21 20:10:41 I usually check daily. May 21 20:10:42 Nice! May 21 20:11:32 it seems to already work with dagger May 21 20:18:24 I need a method to remove marker from map (Google Maps Api Android v2). Where I should search for that ? May 21 20:18:58 in the docs May 21 20:19:51 Hey I am having a problem with linking a native library, and having it conflict name-wise with other projects. e.g. ffmpeg If other projects that use this library are already installed, then Android auto-uses theirs, which do not have the additional functions I have compiled. May 21 20:20:20 is there a way to specifiy that the library being loaded in LoadLibrary is the one sitting in my app-lib folder? May 21 20:22:11 JakeWharton http://blog.jetbrains.com/kotlin/2015/05/kapt-annotation-processing-for-kotlin/ May 21 20:22:21 i saw May 21 20:22:29 g00s: It's being discussed on #kotlin. :D May 21 20:22:31 they confirmed this approach on their issue tracker a few weeks ago May 21 20:28:25 Hi! im using a recycler view's getItemViewType to decide if it should return SECTION(0) or DATA(1). In onBindViewHolder() i have a switch checking if it is 0 or 1 May 21 20:28:41 but the problem is that i have multiple views May 21 20:29:31 so if it is data, how should i design it to check which type of data it is? May 21 20:31:46 why can't versionNameSuffix be used on the debug buildVariant? May 21 20:32:10 http://stackoverflow.com/questions/2603648/how-to-get-the-path-to-the-lib-folder-for-an-installed-package says that the way to get the lib folder absolute path is the datadir + "/lib", but some Android installs put the libraries in app-lib May 21 20:32:41 brnslpy: Why can’t your getItemViewType return something to say what kind of cell it is, beyond just SECTION or DATA? May 21 20:33:40 whats the best widget for creating a header bar ? May 21 20:33:54 What kind of header? May 21 20:35:15 s73v3r: because it's for the internal recycler to know which view to pass in May 21 20:35:34 s73v3r: just call getItem(position) if you need more data on the cell type somewhere May 21 20:35:54 i thought he said he had multiple view types May 21 20:35:54 where is lasserix May 21 20:35:58 come stand for your mistake! May 21 20:36:15 if i was wrong, then ignore May 21 20:36:48 What mistake? May 21 20:37:03 TacticalJoke, a header with a logo and a back button, etc May 21 20:37:21 JakeWharton do you know how to get where a RotationAnimation stopped so that you can pick that number up and continue the animation where it left off? May 21 20:37:28 charlie_sanders: Toolbar. May 21 20:37:32 In AppCompat. May 21 20:37:45 Unless you're using Holo in which case ActionBar, I guess. May 21 20:38:33 I think I went full retard, as long as my SECTION is 0 im fine. May 21 20:38:41 I tried with now() - startTime * (360 / duration) but this will always end up as a zero since the integer division will always result in 0 May 21 20:38:55 thanks anyway, will try my solution first, if it doesnt work ill scream here again May 21 20:39:11 I can cast to double I guess but Im not sure what to do then May 21 20:39:14 hm, i didn't know i could overload a generic method and another one with concrete type; wonder if it actually works May 21 20:41:02 TacticalJoke, bummer, I don't see a Toolbar in Android Studio May 21 20:41:54 I dunno whether it's in the Design thing. Never use tha. May 21 20:41:56 that* May 21 20:42:03 May 21 20:42:13 ahha thank you May 21 20:42:28 I think the support widgets just never appear? May 21 20:42:35 maybe I'd know if I used AppCompat :| May 21 20:42:35 https://developer.android.com/reference/android/support/v7/widget/Toolbar.html May 21 20:43:33 charlie_sanders: Having said that, I don't recall whether you can use an icon in Toolbar. May 21 20:43:42 It might be possible (but it is recommended against nowadays). May 21 20:44:05 It's against the new guidlines (the material guidelines). May 21 20:44:06 oh hmm ok May 21 20:44:19 might just make it a shape than, Really it's just for looks on the home screen May 21 20:44:35 Are you using Holo or Material? May 21 20:45:34 I forget where is that in the XML files ? May 21 20:47:23 This might answer the question: Does the May 21 20:47:34 main activity of your app extend AppCompatActivity (or ActionBarActivity)? May 21 20:47:51 just Activity actually May 21 20:54:29 My WebView isn't showing my PDF url correctly, nothing shows up. The emulator dumps a lot of OpenGL errors. Any obvious tips? May 21 20:54:49 WebView can't render PDF files, can it? May 21 20:55:06 with pdf.js May 21 20:55:11 probably not natively though May 21 20:55:52 pdf.js is pretty terriblet too May 21 20:56:27 maybe on mobile... but on desktop it's the viewer for both Firefox and Chrome May 21 20:56:38 don't think I've tried on mobile, actually May 21 20:57:39 really, chrome uses pdf.js - FF of course May 21 20:57:40 explodes: Why do you need to render PDF files? May 21 20:57:55 My app probably needs to do that. I'm not sure whether to just issue an implicit intent. May 21 20:58:03 If I have two images I want to show side by side at the bottom of my Activity, would it be better to merge them into one image and display or arrange them via xml separately? May 21 20:58:05 hm. maybe I'm misremembering with chrome. or maybe it was just a trial run or something May 21 20:58:19 my contact who works on adobe pdf tools said pdf.js fails tests miserably ;) May 21 20:58:29 if you want to show them side by side, then you cannot join them, you have to show them side by side May 21 20:58:34 else you'd be joining them, which is not side by side May 21 20:58:35 i thought google licensed foxit somehow May 21 20:58:56 well sure, because PDFs are massive piles of messes May 21 20:59:21 they're not fully compatible by a long shot. but so far I've never even seen a pdf render incorrectly, except ones that have interactive 3D objects. May 21 20:59:54 hm, 2010 http://googlesystem.blogspot.com/2010/08/google-chromes-pdf-plugin-uses-foxit.html May 21 21:00:01 All I know is I love when my browser renders a PDF document. :D May 21 21:00:05 Hate seeing that red thing open. May 21 21:00:36 agreed May 21 21:00:48 I've gone ~3 years without installing any PDF readers ever, and I love it May 21 21:00:58 TacticalJoke: Because printing PDF files is a joke May 21 21:01:01 OS X has its own anyhow :) May 21 21:01:13 TacticalJoke: If I just the damn thing the user can print from there May 21 21:01:27 TacticalJoke: just show* May 21 21:01:47 Could you start an implicit intent and just let something else handle it? May 21 21:01:57 I've not tried, to be honest. May 21 21:02:11 Having said that, even Android Chrome can't handle PDFs. :/ May 21 21:04:13 TacticalJoke: It's not working well enough May 21 21:04:26 TacticalJoke: no activities are taking my intent May 21 21:04:42 I'm looking here (but not seeing very much): https://www.google.com/search?q=android+pdf+stackoverflow May 21 21:05:04 I guess there are libraries out there. Whether they're good or not is the question. May 21 21:05:12 the built-in PDF support that's not Adobe might be the biggest selling point of OSX, really. print anything to a PDF, and view non-weird PDFs without installing crapware. that accounts for 150% of my PDF needs, and I never want to go back. May 21 21:05:13 They all cost 800$ May 21 21:05:27 this guy cares https://github.com/castorflex/SmoothProgressBar May 21 21:05:33 i like this I/O talk "Material Now" description { .... how can we push material design into new and exciting territory? } Answer: examples May 21 21:05:47 examples, code, appcompat May 21 21:05:49 more like SERENITY NOW May 21 21:05:58 Hoochie momma May 21 21:06:03 HOOCHIE MOMMAAA May 21 21:06:32 Odaym: pretty swanky May 21 21:06:39 yea its really good May 21 21:08:01 see the app, you can make your own through the attrs that he exposes May 21 21:08:25 he will make it to my open source libs screen :P May 21 21:08:42 no one will care:( May 21 21:08:44 heh May 21 21:10:15 oh god, why does dropbox suck May 21 21:10:18 they don't implement SAF May 21 21:10:20 assholes May 21 21:10:48 it has been a while, yeah. not sure why they haven't. May 21 21:11:09 even microsoft implements SAF May 21 21:12:40 If an app is pretty much dead in the Google Play store is it worth updating the description/keywords to try and get it more visibility? May 21 21:12:50 Or should I just move on to my next app? May 21 21:12:51 no May 21 21:12:55 buy ads May 21 21:13:19 adq decided to just mode a library, took me all of the last 30 minutes to get working as i needed :p May 21 21:13:47 ^ probably true. unless you get lucky and get a feature somewhere prominent (e.g. a major blog or something), the only way you'll really get noticed is ads somewhere. May 21 21:13:57 samB__ does it solve a real problem? May 21 21:13:59 adq, so it turns out implementing AES in renderscript ends up being 50% slower than doing it in pure-java May 21 21:14:10 much highlight :p May 21 21:14:14 lasserix_, cool May 21 21:14:26 next avenue: look at ndk to see if they allow -lssl, and reach into AES there May 21 21:14:33 pfn, maybe you have too many copyto copyfrom and in between not enough processing so much overhead May 21 21:14:47 adq, yep, it's a copy to/from per block May 21 21:14:50 ahhh May 21 21:15:15 http://stackoverflow.com/questions/30379624/usage-of-renderscript-to-implement-bouncycastles-blockcipher-on-android-is-slow May 21 21:15:25 Odaym: Yeah that why I thought trying a new app could be my best bet May 21 21:15:38 it solves a real problem and you want to leave it? May 21 21:15:40 and block is len in CBC aes is 16 bytes? May 21 21:15:44 Odaym: not really just a little puzzle that I originally made for ios May 21 21:15:44 it's very little May 21 21:15:49 ah May 21 21:15:50 so i'm not surprised if it is slower May 21 21:15:50 move on May 21 21:15:52 adq, block length is 16bytes in aes May 21 21:15:57 yeah, cbc is irrelevant May 21 21:16:00 yeah (worked in pki field) May 21 21:17:11 hmm, yeah, ndk doesn't include ssl, I don't want to link in all of openssl, or build a C impl of aes (although that still remains possible) May 21 21:17:21 pfn, why not passing the whole array to be decrypted/crypted and treating it as block inside RS May 21 21:17:28 so only one copyTo and one copyFrom May 21 21:17:32 Whats the best keyword strategy in the Google store, try to repeat each word around 6 times without spamming? May 21 21:17:42 adq, because then it can't be used as a stream May 21 21:17:43 lol May 21 21:17:56 would involve re-implementing the entire stack May 21 21:18:03 oh it can, you just buffer it on java side May 21 21:18:16 so you don't call rs each 16 bytes May 21 21:18:30 but for a bigger length which will still be treated as block of 16 inside May 21 21:18:50 but anyway May 21 21:18:51 there's nothing to indicate that a final block has been processed in the stream, so you'd end up waiting around May 21 21:18:51 Odaym: was that for me? May 21 21:18:55 yea May 21 21:18:59 lol May 21 21:19:12 I’m new so I probably will say stupid things :) May 21 21:19:16 if there was a final block process flag, then that'd be possible May 21 21:19:52 i'm sure there are ways :p but it involves managing time May 21 21:19:59 there's just no shortcut that's all you need to know May 21 21:20:19 Yeah there never is with these things May 21 21:20:31 with anything May 21 21:20:39 true May 21 21:20:42 but I understand your issue anyway, until they provide a 0 copy from java to RS and RS to java, there will be this crazy overhead May 21 21:21:46 Odaym: How do people tend to gain rank, just from many apps to increase visibility? May 21 21:21:58 Or is it mainly the bigger companies May 21 21:22:01 from providing real value May 21 21:22:09 there is also rsSendToClient pfn, to "transfert" values from RS to java May 21 21:22:12 from making excellent apps.. May 21 21:22:20 adq, yeah, and also mentioned to be slow May 21 21:22:22 but i doubt it will meet your requirement, and i have no idea if it is more performant May 21 21:22:32 i'm just using it not regularly for simple int value in my code May 21 21:22:56 I played with rsSendToClient, not useful while working within this API May 21 21:22:57 i thought of another way, but it's not deprecated May 21 21:23:02 Good point but even if you make the best app in the world, people need away to find it? May 21 21:23:03 it was to use the surfacebuffer May 21 21:23:14 originally there was a possibility to directly draw on it from rs May 21 21:23:23 so i thought it could use it to retrieve value fast May 21 21:23:32 of course every company has a marketing strategy with every app they make, or every thing they release to the market May 21 21:23:33 but it's totally unsupported now (they remove most of the graphic thing) May 21 21:23:36 removed* May 21 21:23:44 but that strategy doesn't get users if the thing they're selling sucks May 21 21:24:03 s/not/now/ :x May 21 21:24:16 fair point May 21 21:24:23 Do you think there is still room for indie dev? May 21 21:24:26 *devs May 21 21:24:31 of course.. May 21 21:24:39 that's not even a question May 21 21:25:31 room is reduced since shareware almost died now, since you can find app at 0euro and some ppl monetize on data and metadata of others May 21 21:26:01 I dont believe in room :P May 21 21:26:03 so when it was possible for an indie to sell a soft for 10$, now it's almost not possible anymore May 21 21:26:07 so maybe my opinion is different May 21 21:26:36 i think it's very bad that things cost almost nothing nowadays May 21 21:26:36 the room is real May 21 21:26:40 and it was a horrible movie May 21 21:26:43 samB__: some time here there's a rumor (fact?) that the play store will be getting A/B testing for store pages. you could optimize things that way. May 21 21:26:50 it was a good game though May 21 21:27:00 JesusFreke: "horrible" doesn't do it justice May 21 21:27:11 I'm getting a class not found issue only on devices < 5.0. I have MultiDex enabled and this seemed to start happening only after I migrated our build system to use Gradle. May 21 21:27:14 groxx: did you see the recent rifftrax for it? :D May 21 21:27:16 not sure if it's worse than the Star Wars Holiday Special though May 21 21:27:16 Any ideas? May 21 21:27:32 JesusFreke: no, though I have seen the older one. not sure I want to relive it :) May 21 21:27:46 groxx: hmm..that could be pretty interesting if they do that May 21 21:27:54 thanks for the tip May 21 21:28:29 samB__: there's a bunch of reblogging of the same kind of info as http://www.theverge.com/2015/5/5/8553571/google-giving-android-developers-ab-testing-play-store (which is probably a reblog of a reblog of a reblog of a rumor of whatever) May 21 21:29:05 maybe it won't extend to keywords, but ¯\_(ツ)_/¯ it's (substantially) better than nothing May 21 21:29:11 i'm still waiting for my wear to update.... May 21 21:29:31 Yeah that would be awesome for optimization May 21 21:30:02 samB__: also, google analytics plugs into the play store - you probably want to do that if you haven't if you're trying to optimize anything May 21 21:30:35 hello May 21 21:30:41 what is the usual retention rate? May 21 21:30:47 85% May 21 21:31:00 also, can you please check the top trending app in the Game->Card category? May 21 21:31:17 I'll get right on it May 21 21:31:17 paulo_: depends massively on the app and time span. May 21 21:31:24 would you like me to call Bob for today's lunch? May 21 21:31:43 hmmm ok. I have 724/1214, which is ~59%. May 21 21:31:47 groxx: I’ve used analytics in the past never for apps so that could be really useful to integrate May 21 21:31:58 I’’ll need to read up on it some more May 21 21:31:59 that's not very bad paulo_ May 21 21:32:03 I'm in the 8th day of my app. May 21 21:32:09 I had 1200/7000 once May 21 21:32:28 it depends on so many things really May 21 21:32:38 IO will explain all these things May 21 21:32:45 ^ Yes, there's lots that can affect retention rates. May 21 21:32:53 usual retention rate for free apps probably ranges 10-20% May 21 21:32:53 we'll be better people when IO is finished May 21 21:32:58 for paid apps, more like ~50% May 21 21:33:10 yeah, paid app got a higher retention rate May 21 21:33:32 hey by the way May 21 21:33:32 there must be an infinite number of solitaire games on the play store for there to be 4 in the top 5 of both paid and free. May 21 21:33:32 becasue of obvious psychological reasons May 21 21:33:39 can you still go from paid to free but not from free to paid? May 21 21:34:10 Odaym: I think that's still true May 21 21:34:12 So, any ideas on ClassNotFound error on non-Lollipop devices? Like I said, Multi Dex is already enabled. May 21 21:34:19 alright May 21 21:34:23 jessie: stack trace plz May 21 21:35:10 did you notice that developer console is wayyy slower to load the front page since many weeks now? May 21 21:35:29 i cannot miss anymore the walking droid May 21 21:36:34 groxx: http://pastebin.com/5CjRMpBp May 21 21:36:35 I hope I hit 1000 installs tomorrow. May 21 21:36:39 that's the 9th day. May 21 21:37:00 show us your mavel paulo_ May 21 21:37:01 Both LoginClass and ResponseConversation are just standard, typical classes. No annotations, etc. on either. May 21 21:37:04 marvel* May 21 21:37:08 wth; if i define methods in a base class, AS won't autocomplete their names as I override them in concrete implementations May 21 21:37:48 jessie: ah, I missed the earlier questions. not sure... is this the support-multidex or something else? May 21 21:38:23 Odyam: can you please check the top trending app in the Game->Card category? I want to see if it's the same for all regions. May 21 21:38:41 groxx: It probably has something to do with multi-dex, yes. I hit the 65k limit and enabled multi-dex but on my non-Lollipop devices it crashes. May 21 21:39:09 In my project's build.gradle I have in the defaultConfig section multiDexEnabled true May 21 21:39:59 paulo_, you do it.. May 21 21:40:09 I was asking you to show us this app you're talking about May 21 21:40:35 Odaym: I want to if it's the same in different countries. Currently, my app takes the top spot there May 21 21:40:41 in trending, that is. May 21 21:40:45 jessie: and you have `dependencies { compile 'com.android.support:multidex:1.0.0' }` in your gradle? May 21 21:40:48 groxx: I might not have included the multidex lib in my deps May 21 21:40:55 In RxJava where should you throw exceptions? .map won't let me raise the IOException it's inner code could produce May 21 21:40:58 *I want to see May 21 21:41:24 explodes: afaik you never do, you give it to the error event. but someone else likely knows better, I don't rx May 21 21:41:41 there's only top paid and top free May 21 21:41:42 no trendings May 21 21:41:44 there is no error event :/ May 21 21:41:53 explodes you onError May 21 21:41:55 not in the context of .map's func1 May 21 21:42:13 g00s: onError is not available here May 21 21:42:18 oh yeah, hmm May 21 21:42:19 since it can onError, might have to flatmap? May 21 21:42:47 eh. g00s is on it, I'll shush :) May 21 21:43:07 argh i hate when logcat loses reference and there is a crash but it wont ever paste the stack trace May 21 21:43:12 Odaym: are you using the play store mobile app? anyway, https://play.google.com/store/apps/details?id=com.pinoyai.pusoydosai May 21 21:43:27 groxx: g00s flatMap also takes a Func1, no onError is available. May 21 21:43:29 groxx: It wasn't in my dependencies. I'll add it and try it out. My suspicion is that it will work. May 21 21:43:35 yea that's not gonna fly paulo_ May 21 21:43:35 I filled a market gap by writing an AI for an obscure card game. May 21 21:43:50 it doesnt look good May 21 21:43:50 Odaym: why not? May 21 21:43:52 explodes yeah, just throw the exception May 21 21:44:02 it looks like the old Windows card games May 21 21:44:02 it will all work out in the end i think :) May 21 21:44:05 g00s: the compiler is complaining; May 21 21:44:06 jessie: great, let me know if not :) I'm mostly just browsing through the instructions in https://developer.android.com/tools/building/multidex.html but I'd make sure you have the support multidex compile addition, and that you're extending MultiDexApplication or doing the equivalent MultiDex.install(this). May 21 21:44:06 Odaym: we'll see. May 21 21:44:13 explodes unchecked exception May 21 21:44:15 :( May 21 21:44:18 fucking java May 21 21:44:19 Im not betting on your failure May 21 21:44:22 g00s: oh. May 21 21:44:39 I hope you become a millionaire of course May 21 21:44:51 Odaym: but I got 724 installs in eight days. probably will exceed 1000 tomorrow. May 21 21:44:58 Guys im using a slidingUpPanelLayout lib May 21 21:45:09 and I want to run some code when the layout is expanded May 21 21:45:22 I hope so too May 21 21:45:34 explodes there is an OnErrorThrowable May 21 21:45:36 use that :D May 21 21:45:36 if I look in the code on github, I see the class implements the interface that has the method for that May 21 21:45:41 Im just confused on how to use it May 21 21:45:46 paulo_ whats your app May 21 21:45:59 drose379: a card game May 21 21:46:04 whats it called? May 21 21:46:04 g00s: i don't think that's the right way, i think you have to wrap the checked exception into an unchecked exception May 21 21:46:31 explodes looks right to me, it extends RuntimeException May 21 21:46:36 and it wraps your Throwable May 21 21:46:41 So, the compat approach for using a ListActivity is to use ListFragment? May 21 21:46:41 solved :D May 21 21:46:45 yup May 21 21:48:15 ResidentBiscuit: Personally, I'd just use ListView. May 21 21:48:25 paulo_, I quickly checked the ppl (if they are real ppl) who commented/rated on your game, there is a certain common denominator between them May 21 21:48:30 to not say.. an invariant lol May 21 21:48:49 i won't say more. May 21 21:48:49 adq: what do you mean? May 21 21:48:51 TacticalJoke: ListView or ListActivity? May 21 21:48:53 Ok, new question, i want to download this file and make it available to 3rd party activities (.setData(uri)). Can I also make it deletable when the app cache is cleared? May 21 21:49:10 adq: I did not make them myself, if that's what your saying. May 21 21:49:30 paulo_ whats your game called? May 21 21:49:43 ListView. ListActivity and ListFragments are just wrappers around ListView. Personally, I'm not convinced they're worth it (though I seem to be in the minority here). May 21 21:49:48 those are Filipinos typing in their local language, and google is mistranslating it. May 21 21:49:51 Fragment* May 21 21:50:03 drose379: https://play.google.com/store/apps/details?id=com.pinoyai.pusoydosai May 21 21:50:16 TacticalJoke: Ah so stick with my AppCompatActivity and just stick a ListView in it? May 21 21:50:23 before you say anything about the UI, a major revamp is in order. May 21 21:50:24 That's what I'd do, yeah May 21 21:50:42 that is the proper answer :) May 21 21:51:19 Oh so ListActivity is just a 'simpler' way of adding/removing stuff from the ListView? May 21 21:51:20 I mean, if ever I make enough money from ads, I'll pay a designer/graphics artist. May 21 21:52:28 It just offers stuff like `getListView`, `onListItemClick`, etc. It's a very light wrapper over ListView. May 21 21:52:35 and . May 21 21:52:38 It's a card game that everyone knows how to play in the PH. so yeah, I filled a gap by writing this. May 21 21:52:54 Nice job dude May 21 21:53:37 + May 21 21:53:39 ResidentBiscuit: Note that fragments are controversial. A lot of people avoid them as much as possible. (Personally, I think they're worth it occasionally.) May 21 21:53:40 my installs are doubling each day, so I hope I hit 1k tomorrow. May 21 21:53:43 just dont let the bad UI ruin your work May 21 21:53:50 The reason being that they're kinda complicated under the hood. May 21 21:54:04 TacticalJoke: The only fragment I'm using right now is this DialogFragment May 21 21:54:10 TacticalJoke its so weird they would give a "convenience" thing like ListFragment, and leave so much shit out from recyclerview :D May 21 21:54:21 here, let us help you with those 2 extra methods ... May 21 21:54:33 oh, but your on your won with RV ! May 21 21:54:36 *own May 21 21:54:37 :D May 21 21:54:55 man.. May 21 21:55:05 this week and some has been very intense here May 21 21:55:06 From reading the docs, it seems Fragments are the only way to build sophisticated UIs May 21 21:55:11 24/7 May 21 21:55:14 At least that's how they word it May 21 21:55:33 think the most intense week since I started coming here May 21 21:56:00 Odaym what you working on at the moment? May 21 21:56:09 AFAIK, fragments aren't needed for anything. You can use custom Views and stuff. May 21 21:56:23 same app since january, digital bookmarks for physical books May 21 21:56:33 hows that work? May 21 21:56:44 take a picture, save under a book May 21 21:56:59 Can I test it out for you? May 21 21:57:02 Seems cool May 21 21:57:19 well its out in jan 10 May 21 21:57:25 i'll let you know before that, ok May 21 21:57:40 lol May 21 21:57:44 race between you and TacticalJoke May 21 21:57:49 who's gonna release first May 21 21:57:59 TacticalJoke is not eagle eye ;) May 21 21:58:08 Odaym have you ever seen MS Office Lens ? May 21 21:58:19 is it an OCR that would make me cry if I saw it? May 21 21:58:26 cause OCR broke my spirit May 21 21:58:27 Sometimes I feel like this project I'll never finish. :) May 21 21:58:31 -this project May 21 21:58:42 Iwork on this after work, so its fine May 21 21:58:47 working on an update since weeks :' May 21 21:58:49 heh, no its meant for taking pictures of things like whiteboards, books, papers, etc. it just does perspective correction May 21 21:58:56 9 to 6, arrive at 7, code until 10 or max 11 May 21 21:59:02 should have already pushed, but keep adding more, and fixing more May 21 21:59:09 Camscanner has that g00s May 21 21:59:10 right? May 21 21:59:16 just straightens it out May 21 21:59:16 i dunno .. May 21 21:59:22 yeah May 21 21:59:24 Wait you take a photo of the page your on Odaym? May 21 21:59:25 yea May 21 21:59:27 I should do that May 21 21:59:29 that is easier May 21 21:59:33 yea drose May 21 21:59:49 ResidentBiscuit: It's worth learning Fragments. Just be aware that they're not necessarily the best way to solve a problem. May 21 22:00:13 And so it saved the photo of the page? May 21 22:00:16 Or gets the page number? May 21 22:00:24 nah you add the page number and title of the section May 21 22:00:29 funny, ASUS released the very delayed lollpop update only for the Zenfone 5 LTE (but not for the other Zenfones yet, sigh), then released a downgrade. May 21 22:01:04 it's really bad PR. one of the selling points of the Zenfone was the lollipop update. May 21 22:02:59 Odaym sounds cool May 21 22:03:04 Whats it called May 21 22:03:23 atomic May 21 22:03:40 Sweet May 21 22:03:45 So you have books set up May 21 22:03:53 and you save where you are in the book when your done reading May 21 22:04:00 hmmm May 21 22:04:02 no May 21 22:04:10 ?? May 21 22:04:26 try again, just to see if you get it without explanation :P May 21 22:04:29 just wanna see May 21 22:05:16 please? May 21 22:05:18 :P May 21 22:05:22 Yeah sure May 21 22:05:33 paulo_ i think asus sucks except for laptops May 21 22:05:36 You said you save virtual bookmarks for physical books May 21 22:05:38 So umm May 21 22:05:45 digital bookmarks May 21 22:05:52 When you begin reading a book, you save the title to the app May 21 22:05:56 Then you read May 21 22:05:59 great May 21 22:06:02 then when you stop reading for the day (or whatever) May 21 22:06:07 and then you come across an interesting section May 21 22:06:09 You take a phoro of the page May 21 22:06:14 you take a picture of that section May 21 22:06:22 Ohhh May 21 22:06:25 give it a title and a page number, save it under the book May 21 22:06:38 Oh ok, its for someting cool you see May 21 22:06:45 yea May 21 22:06:52 Does it use OCR to pull the text from the book? May 21 22:06:57 no May 21 22:07:00 Or you jus bank on taking a really clear photo May 21 22:07:06 yes May 21 22:07:10 hmm May 21 22:07:13 g00s: I haven't had many phones, but the phones are okay. May 21 22:07:15 Cool May 21 22:07:24 Where you at right now with it? May 21 22:07:29 im done May 21 22:07:51 Dude lemme give it a try May 21 22:08:03 Is there a good way to force an Observable to begin without actually subscribing? May 21 22:08:09 i.e. pre-fetch some data? May 21 22:08:14 hmm.. May 21 22:08:21 let me see how I can do that May 21 22:08:24 what device you have May 21 22:08:29 You can send me the APK May 21 22:08:31 over email May 21 22:08:39 I have samsung galaxy S4 mini May 21 22:08:40 yea I know how, just other details I need to check May 21 22:08:47 Galaxy s4 Mini May 21 22:08:53 groxx: Yeah, that worked fine. Turns out I just can't follow instructions good. May 21 22:09:19 jessie: heh, it happens :) May 21 22:10:31 You wanna do that Odaym? May 21 22:10:40 You can just tell me what to try and ill tell you how it works May 21 22:10:53 yea Im just sorting something May 21 22:11:03 Ok, do you want my email? May 21 22:11:17 I can send you a dropbox link in PM May 21 22:11:23 why can’t you apply styles to widgets created in code? May 21 22:11:40 you can May 21 22:11:43 in the constructor May 21 22:11:59 Only for attrs, though. May 21 22:12:00 Ok tell me when you send the PM Odaym, using a new IRC client and idk if it gives me a notification when i get a pm May 21 22:12:01 doesn’t work May 21 22:12:11 ok May 21 22:12:16 yeah, I have an actual style resource that I want to use May 21 22:13:49 oh man this library is a major pollutor May 21 22:15:05 lasserix_: report it to the DMV May 21 22:15:12 do i need some ide to program for android? May 21 22:15:13 lol ^ May 21 22:15:20 or could i just compile stuff from command line? May 21 22:15:29 You should use AndroidStudio Tau May 21 22:15:30 everyone uses sata nowadays, Tau May 21 22:15:37 JesusFreke my "lol" was at your joke May 21 22:15:38 Tau: you could theoretically do everything from the command line May 21 22:15:38 drose379 i see. May 21 22:15:54 but that is not advisable, right? May 21 22:15:58 correct :) May 21 22:15:59 i ee. May 21 22:16:05 well. i'll use android studio then. May 21 22:16:11 Have fun! May 21 22:16:12 correct. you can clean your bathroom with a toothbrush, but it's not practical May 21 22:16:15 Tau: you can, ./gradlew works fine May 21 22:16:17 i use debian, is it possible to download all the needed packages from apt? May 21 22:16:24 if you're opposed to IDEs, you could at least use gradle to build May 21 22:16:26 groxx i see. May 21 22:16:41 lots of people use emacs or vim May 21 22:16:44 JesusFreke yeah. i want to use vim to write the code. May 21 22:16:54 i think Leeds uses vim May 21 22:17:05 well. i use vy. May 21 22:17:10 Tau: well, android studio/IDEA does have a vim plugin :) May 21 22:17:11 that is a vim clone. May 21 22:17:18 i used to use emacs, when eclipse was the main ide May 21 22:17:21 A text editor is dumb. It doesn't understand the programming language or the framework. May 21 22:17:22 but now i prefer AS May 21 22:17:28 IDEs are wise. May 21 22:17:38 ^unless it is eclipse May 21 22:17:41 then anything else is better May 21 22:18:38 Odaym Ive got about a half hour, you think youll send it before that? May 21 22:18:38 s73v3r: I'd like to know the answer to that too. May 21 22:18:56 I don't see why we have this restriction when we can do the same thing via an attr. May 21 22:19:03 from what I can see, the answer is “no, now fuck off" May 21 22:19:07 Tau: try `./gradlew --gui` to see your task options. you can do all of it from a command-line too, but it's a bit of a pain, and I always forget the commands. May 21 22:19:46 Tau: I think android studio runs app:installDebug when you just 'run'. everything it does maps to a gradle command. May 21 22:19:49 the commands for building android apps manually are not complex at all May 21 22:19:51 well, or more than one May 21 22:20:30 groxx thank you May 21 22:20:49 well, it depends on how manual you're going for. aapt commands can be pretty obscure May 21 22:20:58 well, not obscure, but involved May 21 22:21:44 yeah. but avoiding doing that by hand is kinda the point of gradle :) May 21 22:22:33 groxx: yeah, I was responding to njcomsec's comment :) May 21 22:22:40 ah, gotcha May 21 22:23:09 "involved" describes them pretty well, last I saw :) May 21 22:23:10 Not using an IDE for Android development sounds like really, really painful. May 21 22:23:13 -like May 21 22:23:32 Didn't intend for the Valley-girl effect. May 21 22:23:43 well, with plugins, vim / emacs get pretty IDE-like May 21 22:24:03 lol, a text editor is not supposed to understand framework or language, the dev is :p May 21 22:24:23 Does anyone use fabric for android? May 21 22:24:29 groxx: Is the autocomplete comparable to that of AS? May 21 22:24:29 to which I counter "lol, why remember what you don't have to" May 21 22:24:37 perlsyntax, no, we prefer canvas May 21 22:24:48 perlsyntax: yea, and crashlytics May 21 22:24:52 perlsyntax: we use fabric/crashlytics May 21 22:25:23 wakelock: Autocomplete is a game changer. (Though I don't know how good the thing groxx mentioned is.) May 21 22:25:23 Groxx,Cool i just learn how to use it in my app so far. May 21 22:25:43 treelzeb,How do you get testers for it? May 21 22:25:49 TacticalJoke: depends. I've only gone a little way down the ctags route, and a) way way way way way less memory use than Android Studio, and b) not as good, but a lot better than nothing / better than just string-matching. May 21 22:25:53 Also stuff such as integrated lint, deprecation annotations, etc. May 21 22:26:24 perlsyntax: we hired them. ;) May 21 22:27:02 treezeb,I just got only 2 of them so far.I don't have the money to hire them:D May 21 22:27:12 I've once met a java dev, he was using eclipse and he said he literally wouldn't even know how to function without the precious autocomplete. I couldn't help but look down on such a "dev" May 21 22:27:16 perlsyntax: testers? May 21 22:27:19 perlsyntax: sorry, i can't help ya there. try SO? May 21 22:27:36 groxx,Yes for beta May 21 22:27:36 Everyone needs autocomplete. :p May 21 22:27:37 yes autocomplete is useful but it's not what your (dev) life should depend on May 21 22:27:46 s/what/something/ May 21 22:28:00 wakelock: ignoring that, were they any good? I mean, there is certainly a correlation there with "does not understand the system they're programming for", but it's not proof. May 21 22:28:08 beeing a good programmer is not a matter of knowing exact method and class names May 21 22:28:21 its about understanding the system/framework in its whole. May 21 22:28:24 perlsyntax friends and family are always a good source of testers May 21 22:28:26 groxx, I don't know, but he was one of the two interviewing me for the job :p May 21 22:28:35 perlsyntax otherwise yeah you gotta pay for professional testing services May 21 22:28:38 at the end it all comes to pressing correct buttons in correct order May 21 22:28:40 wakelock did you get the job May 21 22:28:51 aasarazan,Not all of them got android. May 21 22:28:52 drose379, they wanted me but I turned them down May 21 22:28:58 (no, I am not kidding) May 21 22:29:07 How come? May 21 22:29:11 Was this an android dev job? May 21 22:29:21 um dude... java, eclipse May 21 22:29:23 there was no android May 21 22:29:25 that was YEARS ago May 21 22:29:35 like at least 6-7 years May 21 22:29:42 ohhh I thought you meant this was recent May 21 22:29:47 How old were you at the time? May 21 22:29:47 nope May 21 22:29:52 55 May 21 22:29:55 >.> May 21 22:30:02 You were 55 then? May 21 22:30:07 groxx,Can i pm you? May 21 22:30:19 perlsyntax: sure, though I dunno why :) May 21 22:30:20 as if I'm really going to answer that question :p May 21 22:30:24 thanks May 21 22:30:35 lol ok wakelock May 21 22:30:45 Even someone with an extraordinarly good memory is not gonna remember every little detail of every visible identifier in (for example) Android's APIs. May 21 22:30:48 It'd be a mammoth task. May 21 22:30:49 groxx, can I pm you? May 21 22:31:17 But, even if they did, they would be typing so many more characters than everyone else. May 21 22:31:19 wakelock: I thought you'd never ask May 21 22:31:40 and sure, the more the merrier May 21 22:31:45 agreed, there used to be a chart on the wall at my company showing *all* the standard java classes and their relationship/descendance May 21 22:31:48 it was HUGE May 21 22:31:53 and all written in tiny fonts May 21 22:32:05 thats cool actually May 21 22:32:06 it'd have to be, to be small enough to fit on the planet May 21 22:32:09 I remember having an MFC chart. I always thought "What's the point?". :D May 21 22:32:24 Came with VC++. May 21 22:32:27 there was no point to this one either, except maybe showing off or something May 21 22:32:31 I remember the huge database diagram we had, with all the tables and relationships and what-not May 21 22:32:38 it was actually useful though May 21 22:32:38 "Awesome, I've always wanted one of these! I can hang it on my wall." May 21 22:32:53 It's a "we just got a big printer" thing, I think May 21 22:33:23 it was a fairly complex table structure, so it was useful to have it up as a quick reference May 21 22:33:23 groxx, it was all glossy and fancy and clearly mass-printed May 21 22:33:56 JesusFreke, was there any specific guide on locating a tiny little box (a table) in a huge set of boxes? May 21 22:34:25 I think there might have been some color coding, to group various concepts May 21 22:34:58 I never did any more than glance at our java chart, but all I got from it was: 1) there sure are LOTS of standard java classes, and 2) all classes descen from java.lang.Object May 21 22:35:49 Ah, the almighty. May 21 22:36:29 I mean they had to, since that was the first class mentioned (top left), and it only ever had lines coming out of it :p May 21 22:36:41 So... I actually did something sorta productive today. Backported the entirety of RippleDrawable from 5.0 to earlier versions. I'm thinking about trying my hand at shadows next. May 21 22:37:15 ds84182, soon enough you might end up with your very own material compat lib :D May 21 22:37:43 I should actually do that... Make it into a lib May 21 22:37:50 indeed May 21 22:38:08 But yeah, I looked at the shadows some time ago and well... they are pretty complex >.> May 21 22:38:36 nah shadows aren't complex, I mean they are just the lack of light, right? :p May 21 22:38:52 wakelock: True May 21 22:39:04 It's a lot of native code involved though May 21 22:39:28 It makes it rather tough to just copy and paste, and it's fully integrated with the RenderNode api May 21 22:39:51 so your next order of business - backport rendernode May 21 22:40:43 Nah, I probably wont, RenderNode also needs HardwareCanvases... which already sound complex after I read some of the docs May 21 22:41:08 that would probably require diving into NDK or deeper May 21 22:41:31 Pretty much RenderNodes act as a display list that can be modified by "hardware animations", and you can already imagine that stuff like that is already built deep into android May 21 22:42:45 ds84182: dang. open source? May 21 22:43:55 groxx: well, I don't have the source on github right now, still testing it to see how stable it is May 21 22:44:28 best testing is public testing :p May 21 22:45:28 Welp, I'll put it on github, just gotta get it freshened up a little May 21 22:46:59 Guys does this layout look awkward? May 21 22:47:07 Nothing really there yet, but so far May 21 22:47:11 https://vid.me/USSY May 21 22:47:13 recording ^ May 21 22:48:31 Is that swiping? May 21 22:49:01 "A hand crafted IRC client". Like the others are made by machines. :D May 21 22:49:20 TacticalJoke yes thats sliding up May 21 22:49:28 dragging I guess May 21 22:50:10 Looks like a neat idea. May 21 22:50:19 Swipability isn't always obvious; that makes it obvious. May 21 22:50:20 You dont think the FAB looks awkward? May 21 22:50:25 Oh the animation? May 21 22:51:23 I guess the ideal would be for the FAB (and other content) to move up with the bar. But it looks okay to me, as far as I can tell from that video. May 21 22:52:02 TacticalJoke: i think it is fine, since the fab is on that page, and the pull it is an overlay May 21 22:52:12 makes sense it would go over it May 21 22:52:37 You approve lasserix May 21 22:52:49 drose379: seems fine to me. I sorta wonder if it would work better/worse if it rose up to below the actionbar/toolbar, but this way gives you more room May 21 22:52:50 That's true. It's a "material" idea to have X on top of Y. May 21 22:52:50 umm the arrow is a little pushy but yeah May 21 22:53:01 should I slow it down? May 21 22:53:05 yeah May 21 22:53:09 yeah, the animating arrow seems excited to be here, look at me look at me May 21 22:53:10 Maybe make it iterate like 5 times then stop May 21 22:53:15 i feel like there is emergency going on or something May 21 22:53:18 lol May 21 22:53:22 ^^ good idea drose May 21 22:53:35 in fact if you could interpolate it so that it slows down that would be cool May 21 22:53:38 How did you implement it, drose379? May 21 22:53:44 What part TJ? May 21 22:53:50 Dragging vertically to show/hide something. May 21 22:53:55 A library May 21 22:53:57 :/ May 21 22:54:03 that library is a pita May 21 22:54:16 pita May 21 22:54:17 *if you only want to raise it halfway May 21 22:54:19 ? May 21 22:54:29 pita = you sit on a nail May 21 22:54:40 so you dont think the library is good? May 21 22:54:46 or, more like a thorn May 21 22:54:46 no its alright May 21 22:54:46 I wish to revise my previous review, in light of this library info: IT'S HORRIBLE AND I HATE IE Dx May 21 22:54:50 s/ie/it/ May 21 22:54:53 why groxx May 21 22:54:55 its just a pain if you have to like have the slide out only come to not-full height May 21 22:55:07 Shold I do it manually May 21 22:55:10 no May 21 22:55:12 lol May 21 22:55:13 no May 21 22:55:15 its fine for this purpose May 21 22:55:20 so how should I do it without this lib though May 21 22:55:23 but if you wanted to say goto half height May 21 22:55:29 it would just take some work May 21 22:55:36 to modify the library to be able to do so May 21 22:55:36 Wait, are we allowed to revise our reviews? May 21 22:55:43 How would you implement this though? May 21 22:55:55 You said no to the lib and no to doing it manually, so how? :P May 21 22:55:57 view property animation May 21 22:56:01 i didn't say no May 21 22:56:05 oh ok May 21 22:56:14 i just said in the case you want the pull out part to go less than the full height May 21 22:56:24 the library was not well written becasue you had to modify a lot of stuff to be able to do that May 21 22:57:12 how do you know that May 21 22:57:29 gn guys May 21 22:57:51 I don't know why there isn't a standard vertical-swiping-thing implementation. May 21 22:57:57 Is that such a weird thing to want? May 21 22:58:01 I gotta run guys May 21 22:58:07 Thanks for looking! May 21 22:58:33 TacticalJoke: i want standard swipe to delete on a recycler May 21 22:59:03 Yeah, that'd be cool. May 21 23:07:38 i'm trying to add OnClickListener to my drawing on canvas i'm comparing the coordinates but the click isn't not registered May 21 23:08:28 Add it to what? May 21 23:08:50 add it to WHAT! May 21 23:08:51 to the bitmap i draw on the canvas with on touch motionevent May 21 23:08:57 :D May 21 23:09:27 Press 123 if you agree adb is a piece of shit inside of AS May 21 23:09:30 123 May 21 23:09:41 321 May 21 23:09:42 123 May 21 23:09:44 this is IRC, not IVR May 21 23:09:49 hert: bitmaps dont have touch events May 21 23:10:07 for logcat, 123 May 21 23:10:11 you put the touch listener on the view for whom the canvas is being drawn May 21 23:10:17 the logcat viewer is terrible May 21 23:10:22 for irratating logcat 124 May 21 23:10:26 yeah May 21 23:10:26 Damn, I've never truly appreciated `` until now. It can be awesome. May 21 23:10:28 124124124124124 May 21 23:10:28 http://pastebin.com/6ZxaYW8x May 21 23:10:40 i dont know why someone has built a GOOEY logcat viewer around cmd line May 21 23:10:43 Especially given that, AFAIK, it doesn't inline the stuff. May 21 23:10:59 124 :D May 21 23:11:09 TacticalJoke: indeed. among other things, I <3 it for switching out views based on API version / etc. May 21 23:11:18 lasserix i implemented onClickListneneer to the view too but it didn't May 21 23:11:20 so hert if you really want to understand touch view: https://www.youtube.com/watch?v=EZAoJU-nUyI&list=UUkQX1tChV7Z7l1LFF4L9j_g May 21 23:11:33 Nice, groxx. Hadn't considered that. May 21 23:12:25 so hert what you want to do is return true if you handle it or false if you know you dont but usually better to return super.onTouchEvent May 21 23:12:29 instead of false May 21 23:12:29 TacticalJoke: it's way easier to e.g. swap out and than to re-create your whole top-level layout just to change that one piece May 21 23:13:13 hert so the idea is user puts finger in TL corner drags to BR and a rectangle is drawn ? May 21 23:13:50 hert make sure you didn't disable it May 21 23:13:55 Does pidcat not work with emulators? May 21 23:13:57 *the view May 21 23:14:05 lasserix the user put finger anywhere on the screen drags it and draw aa rectangle May 21 23:14:06 Cuz logcat in AS sure isn't right now May 21 23:14:17 and onTouchEvent isn't firing? May 21 23:14:31 well May 21 23:14:39 move is fired at like , really really fast May 21 23:14:43 you'll want to add a sleep May 21 23:14:59 and only invalidate onMove if ~ ?8ms have passed May 21 23:15:01 ?8 May 21 23:15:03 >8 May 21 23:15:21 explodes: could this be your first APIv21 device? May 21 23:15:24 $8 May 21 23:15:30 hert are you setting a ontouchListener on this view somewhere else? May 21 23:15:32 the rectangle gets drawn toucheevent is working, what i want now is been able to touch the resulting rectangle and fire another event like and activivy May 21 23:15:43 tricky ass java updater May 21 23:15:46 always late to the party May 21 23:15:52 right when I hit enter the thing pops up.. May 21 23:15:58 groxx, no, 22, it was working early (inside AS) May 21 23:16:05 (8<| Obi-Wan never told you what happened to your father. May 21 23:16:25 hert oh so what you need is check whether a click event occurs within the rectangle May 21 23:16:36 explodes: ah, or maybe 22 device. if you haven't updated it, there's a logging change that broke it. May 21 23:16:53 laser i do the check at line 94 May 21 23:17:25 groxx: it's and emulator May 21 23:17:28 that's the part that seem to noe be working May 21 23:17:29 uhh 94 is just checking if there is a move action May 21 23:17:30 latest version of the stuff May 21 23:17:34 https://vid.me/a7iz almost done May 21 23:17:34 yeah cause thats a move May 21 23:17:56 it goes DOWN -> ... MOVE ... -> UP with cancel happening after down if cancelled May 21 23:18:08 explodes: what matters is the OS version (probably). if you haven't pulled it from master, it won't work on 5.1. May 21 23:18:20 whut May 21 23:18:31 where do i put the check? May 21 23:18:31 hert: so you need to add some logic to register as a click if the rectangle is drawn May 21 23:18:52 explodes: https://github.com/JakeWharton/pidcat/commit/d85c10c25d4514794470bcf994d28232a8be17c1 is the commit that fixes it, which is after tag 1.4.1, and there hasn't been a new release yet May 21 23:19:46 hert how do you know the user is drawing a rectangle and not clicking it? May 21 23:20:34 groxx: thanks dude, that works May 21 23:21:19 at the moment not i can't differentiate, once the rectangle is drawn something May 21 23:22:30 hert well you need to figure that out May 21 23:22:43 once it's drawn can you get out of drawing mode or sometinh like that? May 21 23:22:58 hert you implemented drawing mode May 21 23:23:01 so this is on you May 21 23:23:33 what you could do is dump the canvas to a bitmap, then toggle an imageview over the drawerview May 21 23:23:40 which takes as its image the bitmap from the canvas May 21 23:23:58 but again you'd have to figure out how to toggle back to the draw rectangle mode May 21 23:24:21 so like i said you need to figure out how to swap / determine which view mode you are in May 21 23:25:48 are there specific examples of how to implement dagger2? May 21 23:32:51 how do I specify custom build flavor resource directories in gradle? May 21 23:35:33 groxx, explodes: use brew install pidcat --HEAD May 21 23:35:45 Will release next week May 21 23:36:01 plugin dsl doc is in a zip file, wtf May 21 23:36:34 ah, does that work in general for homebrew? I typically only see that in the options list for like 5% of projects May 21 23:38:30 awesome. thanks JakeWharton, that lets me get rid of another hand-rolled thing in my path :) May 22 00:00:45 JakeWharton: thanks for pidcat. you always come up with such useful things :) May 22 00:02:55 The official documentation, SO posts, etc. suggest that you can add an ID to an tag: May 22 00:03:45 But if I say `findViewById(R.id.name)` then I can't find it, no matter what combination I try (, no , IDs on child elements, no IDs). May 22 00:03:51 Why does everyone else seem to think this works? May 22 00:06:40 This page, for example, suggests that you can get a View from `findViewById(R.id.includeId).findViewById(R.id.otherLayoutId)`: http://www.coboltforge.com/2012/05/tech-stuff-layout/ May 22 00:06:44 Which makes zero sense in my mind. May 22 00:06:48 Are these ninjas tripping or what? May 22 00:07:34 hmm what's the expected behavior? does that id refer to the parent within the included layout? May 22 00:08:16 Not sure. The documentation doesn't say, as far as I can see. May 22 00:08:49 Here's another example: . The top answer has 103 upvotes, and yet that doesn't work here. May 22 00:09:02 i was srsly about to paste that to you May 22 00:09:08 what error are you getting? May 22 00:09:19 hmm something is subtly different in 5.1.1 May 22 00:09:27 has the default font color lightened up? May 22 00:09:49 treelzebub: I'm just getting `null` from my `findViewById` call. May 22 00:09:58 It just can't find the ID specified in the `` thing. May 22 00:10:16 why do you need to refer to this included layout? or are you just trying to conform with what others say should work? May 22 00:10:33 Yeah, just trying to figure out what works and what doesn't. May 22 00:10:34 TacticalJoke in my experience, you can just use the ID of the included layout's children May 22 00:10:50 TacticalJoke: if you include and has id and root has id which could take precedence May 22 00:10:53 as if the include tag was replaced by the layout May 22 00:10:54 Yah. That's what I'm doing in my app. Though it's bizarre that so many people are talking as if this works. May 22 00:11:11 lasserix: that makes good sense May 22 00:11:15 Maybe it's a problem with my device. Hmm. May 22 00:11:27 treelzebub: sure does it May 22 00:12:04 I've tried without a root ID. Still no joy. May 22 00:12:57 TacticalJoke: are you merge? May 22 00:13:14 TacticalJoke: dunno, I would sorta expect it to work. try adding both layout_width and layout_height params though, see if that fixes it. May 22 00:13:21 Yeah, tried both (merge and non-merge). May 22 00:13:29 groxx: Ah, that might be it. May 22 00:13:37 merge won't allow you to override anything in the child-views, because there may be more than one May 22 00:13:39 TacticalJoke: i understand your desire to experience behavior that everyone says works...but i can't think of anything you could do with that include id that you couldn't do with the parent inside the included layout... May 22 00:13:50 according to that SO romain guy says id of tag overrides http://android-developers.blogspot.com/2009/02/android-layout-tricks-2-reusing-layouts.html May 22 00:14:07 typically things you set in the tag override things in the root element in the layout. which can be very useful. May 22 00:14:41 ugh. they should fix that blog post - only assigning _one_ of layout_width or layout_height will do nothing. you have to do both. May 22 00:15:00 Gawd, this is confusing, because it's sometimes working and sometimes not on my tablet. :\ May 22 00:15:08 Without trying groxx's suggestion (yet). May 22 00:15:17 TacticalJoke: just dont use id in include May 22 00:15:40 I know. I don't think I'll want to. Just wanna understand the ins and outs of this thing. :D May 22 00:15:40 oh, android. May 22 00:17:30 how can I set a webview to contain a website within it's with (i.e. you do not need to scroll)? May 22 00:17:38 left and right May 22 00:19:14 noahmg123: I believe it's http://developer.android.com/reference/android/webkit/WebSettings.html#setLoadWithOverviewMode%28boolean%29 May 22 00:19:35 I could be misremembering, but you might also need to throw in a call to WebSettings.setUseWideViewPort. May 22 00:19:39 personally I wouldn't recommend disabling zoom, but I think there are other similar settings in WebSettings that'll let you do what you want May 22 00:19:43 yeah, could be May 22 00:20:53 noahmg123: You're not still using a WebView to load JSON, right? :D May 22 00:21:02 TacticalJoke: No. May 22 00:21:22 Did you finish that project? May 22 00:21:43 TacticalJoke: Not yet. I have pushed it off to the side for now, May 22 00:22:39 TacticalJoke: The one I am working on now is a WolframAlpha client. May 22 00:22:50 is there android studio in a .deb? May 22 00:24:04 Tau: should be. But you can download a zip from the website. May 22 00:24:15 i honestly prefer a .deb. May 22 00:24:23 i couldnt find it though May 22 00:24:24 . May 22 00:25:04 oh May 22 00:25:05 i got it. May 22 00:25:06 nevermind. May 22 00:25:16 Tau: great :) May 22 00:26:48 TacticalJoke: I was hoping to use their (WolframAlpha) API but it only allows 2,000 calls a month. Free that is. (And with my budget that is all I have to use.) :) The 2,000 call limit kind of kills my chances of allowing even 100 people to use my app. So, for now, I'm stuck with a WebView. May 22 00:27:45 100 people would only have 20 calls a month each. And taking typos into consideration, many can go well over that #. May 22 00:27:46 just make each user sign up for their own api key May 22 00:27:50 :) May 22 00:28:00 so it does it automatically May 22 00:28:07 you can give everyone one free May 22 00:31:31 back in. I loct my connection. May 22 00:31:40 if i download eclipse is it possible to download android sdk tools? May 22 00:31:46 from eclipse? May 22 00:31:48 lasserix: did you say anything? May 22 00:31:51 would it come with android sdk? May 22 00:32:00 i'm considering to install eclipse from apt. May 22 00:32:14 Tau: I think so. But eclipse is being phased out. You should use android studio. May 22 00:32:15 noahmg123_: write a little script that signs up someone for an api key then use that May 22 00:32:21 i see. May 22 00:32:23 okay then May 22 00:32:49 do you know about a tutorial in installing android sdk on debian? May 22 00:32:51 one that works. May 22 00:32:52 Yeah, Eclipse isn't worth it now. ADT has been officially abandoned. May 22 00:34:06 lasserix: hmm... might work. You need a WolframAlpha account or an API key though, and really it is supposed to be one key per application. You register an app and then it gives you a key. May 22 00:35:56 TacticalJoke: any luck on the layout_width|height addition? May 22 00:37:06 Okay, I started a new project and I *am* able to set the ID on the thing, with or without the width/height. May 22 00:37:11 As long as I don't use in the included layout. May 22 00:37:18 But I can't figure out why that's not working in my real project. May 22 00:38:30 And this page, which suggests that you can do this even with , doesn't make sense in light of what I'm seeing: http://www.coboltforge.com/2012/05/tech-stuff-layout/ May 22 00:38:31 clean/rebuild? ¯\_(ツ)_/¯ May 22 00:38:36 lasserix: what you said might work. I'll look into it. I'll have to either create a throwaway account to host the APIs (because my personal one is paid and therefore linked to my debit card), or have the users make their own accounts and APIs. As for now, I'll work with my webview. May 22 00:38:36 Maybe. haha May 22 00:40:44 No joy after cleaning. Ugh, I'll figure it out somehow. May 22 00:41:21 lasserix: there is also the issue of what qualifies as a "non-commercial" API call (as they define the 2000 limit). I am hoping to make my app a paid app (since the official app is paid), but cheaper than the offical app. But since that is a one time fee does that make all the calls withing the app commercial? May 22 00:41:34 or not? May 22 00:42:50 I have a somewhat weird problem... my app pulls down some data, sets it in an adapter, then sets that adapter on a recyclerview. For some reason my recyclerview isn't showing anything until I touch the screen. Is this a common problem/has anyone ran into this, or should I show some code? May 22 00:43:33 Guy this is a general question May 22 00:43:37 oh if you are competing with wolfram expect to get shut down May 22 00:43:46 i was halfway joking May 22 00:43:49 but if it works... May 22 00:44:24 TacticalJoke: merge + include(id) != logic, how does the id clobber? May 22 00:44:38 Yeah, exactly. May 22 00:44:40 Weird article. May 22 00:44:40 is it possible to program for android with netbeans? May 22 00:44:59 Tau: Android Studio is really the only sensible option. May 22 00:45:04 okay May 22 00:45:28 5 years ago when I got interested in python programming there was a website and forum that was specifically for answer android programming question. Kinda like stackoverflow but specifically for android. I lost the link does anyone know what it is. May 22 00:45:35 Tau: unless you like programming in windows me May 22 00:46:18 lasserix: I think my latter solution (making the users host their APIs) will work. That way I don't leagally own the APIs, thus they are non commerical. The end-user is using it for their own personal use. It's "personal/non-commercial" to the owner of the API (the user). May 22 00:46:19 okay. May 22 00:47:42 lasserix: what do you think? May 22 00:47:51 lots a lot to ask the user May 22 00:47:54 what is this app? May 22 00:48:01 basically wolfram alpha with the official account? May 22 00:48:46 andev.org May 22 00:48:49 got it thanks May 22 00:49:12 Ok second question May 22 00:49:42 How ... willling would you guys be to root you own personal phone to test apps on? May 22 00:50:01 I only have 1 phone and cannot afford another but my carrier has it locked May 22 00:50:04 Why would you need to root? May 22 00:50:26 Shaba1: 100% May 22 00:51:17 TacticalJoke " carrier has it locked" May 22 00:51:58 bhans does 100% you would do it for sure or that you would definately not do it. May 22 00:52:00 lasserix: OK. WolframAlpha offers users to sign up for an account. You don't need one to use the site though. Not sure what the benefit of having an account is besides being able to "Go Pro". Anyway, they would login. I would either give them instuctions to setup an API in their account in the app to do it on their laptop, or have them do it in a webview (visible or invisible (using prompt boxes)). May 22 00:52:33 Shaba1: I don't get it. Your carrier has locked your phone in such a way that you can't test apps? May 22 00:52:43 Maybe it's too late here. :) May 22 00:53:03 noahmg123_: is the idea you can bypass paying for advanced features by using your app? May 22 00:53:07 Shaba1: root to the maxxxxxxx May 22 00:53:24 lasserix: No. Not at all. May 22 00:54:12 lasserix: It just would provide a more modern looknig app (the offial one is just a glorified website w/ their own keyboard) May 22 00:54:30 lasserix: (and it looks outdated) May 22 00:54:43 Yes TacticalJoke: May 22 00:54:55 A lot of carriers here in the U.S. do that May 22 00:55:01 How do they prevent testing apps? May 22 00:55:20 saves them time with answering tech support calls if you can only download from the Marketplace May 22 00:55:26 Shaba1: I think you still can test apps without root. May 22 00:55:35 That is assuming that every app at the marketplace is safe. May 22 00:55:42 Shaba1: just turn on unknown sources May 22 00:56:03 Yeah, this has nothing to do with rooting. May 22 00:56:08 Oh ok May 22 00:56:10 hmmmm May 22 00:56:15 maybe Shaba1 has features that require root? ... May 22 00:56:20 maybe.. May 22 00:56:41 genymotion emulators are rooted May 22 00:57:01 surf2b1: bhans: it shoudn't. unless the carrier is overprotective. just turn on unkown sources! May 22 00:57:08 Shaba1: 'Settings > Security > Unknown sources' is the thing. May 22 00:57:37 Thanks May 22 00:57:43 Ok guys just a warning May 22 00:57:46 Shaba1: I don’t think most do. The big 4 definitely don't May 22 00:57:52 It seems to be a common myth that you need to root for that. ;o May 22 00:57:59 noahmg123_: He asked if how much is our willingness to get our devices rooted.. I just answered his question with my own opinion. May 22 00:58:15 I am just getting BACK into android programming after beginning with some rudementary stuff in 2010 May 22 00:58:32 bhans: I was talking about your second message. May 22 00:58:50 Shaba1: Are we in for a hell of a ride? May 22 00:58:57 :D May 22 00:59:10 So I will probably be back in here with a LOT of STUPID NEWBIE type question May 22 00:59:22 lasserix: Here is what I am doing: I am just having the user setup the API so it is linked to their account so technically they "own" the API. The API is only free if it is non-commercial. So technically the user is agreeing to use the API in a non-commercial way, not me. Get it? May 22 00:59:26 noahmg123_: "root the the max"? May 22 00:59:43 bhans: No. "maybe..." May 22 01:00:01 groxx: Okay, everything works as expected. No idea what was going on earlier. :) May 22 01:00:21 noahmg123_: lol. I agreed with surf2b1. May 22 01:00:30 TacticalJoke: android is all http://heahea.org/img/175-Its_Magic.jpg May 22 01:00:31 noahmg123_: Have you actually talked to a lawyer about that? May 22 01:00:32 I am just afraid of bricking my primary and only phone. May 22 01:00:39 But what is life without risk May 22 01:00:59 TL;DR: IDs transmit to included root views (i.e., no stuff). Width and height do, too (but we have to specify both, not one, and there's a lint error for this now). May 22 01:01:09 s73v3r: no. but that is my current theory. May 22 01:01:18 Shaba1: why do you need a rooted device in testing applications? do the apps you want to test needs root access? May 22 01:01:31 haha groxx May 22 01:01:31 Not yet May 22 01:01:42 but I am pretty sure that some of them will May 22 01:01:48 once I start using sqlite May 22 01:01:58 definitely talk to a lawyer first. I wouldn’t trust the idea that just because the users are implementing their API key that it doesn’t count as non-commercial May 22 01:02:01 Shaba1: sqlite doesnt need root access. May 22 01:02:07 I have a idea in mind that will use a sqlite database May 22 01:02:11 bhans: I believe we already covered that turning on unkown sources fixes the problem May 22 01:02:15 I'm afraid of rooting my devices. :[ May 22 01:02:30 I already have it 80% working in my windows machine May 22 01:02:32 TacticalJoke: What devices do yu have? May 22 01:02:35 And by the time I'm courageous enough to do so (in other words "I no longer need them"), they're too old to be worth it. May 22 01:02:37 you* May 22 01:02:39 so now I am starting to port it over to android May 22 01:02:46 noahmg123_: A couple of Sony Xperia phones and a Tesco Hudl 2 tablet. May 22 01:03:07 Tesco FTW! May 22 01:03:22 TacticalJoke: never head of them May 22 01:03:27 It's an England thing. May 22 01:03:42 the most useful thing about rooting for me is being able to access an app's directory and poke around, which I find useful for development May 22 01:03:43 They're a supermarket chain (kinda like Walmart), and yet the tablet is really good and really inexpensie. May 22 01:03:46 inexpensive* May 22 01:03:59 i.e. being able to access the prefs xml files and database files May 22 01:04:14 barbs: Can't you do that for your own app anyway? (Or maybe you're talking about all apps, which is really cool.) May 22 01:04:16 TacticalJoke: well, if it's that generic, good luck even finding a rom that supports it. :) May 22 01:04:28 noahmg123_: if app requires root, turning on unknown sources doesnt just fix it. zz May 22 01:04:42 noahmg123_: They're quite popular, though, so I think there are some. May 22 01:04:46 bhans: he/she was confused. May 22 01:04:50 TacticalJoke: if I want to pull off the raw database file, I need root access (unless I'm mistaken ) May 22 01:05:06 barbs: I can do that without root. I use 'run-as '. May 22 01:05:09 bhans: he couldn't even sideload. he thought than needed root May 22 01:05:27 it is a pain to install android sdk on debian. May 22 01:05:36 i need a decent how to. May 22 01:05:44 ooh, I've not seen that. is that an adb shell thingy? May 22 01:05:46 i downloaded the tarbal but it seems there are dependencies. May 22 01:06:18 Yeah. May 22 01:06:44 http://www.reddit.com/r/Android/comments/36toj0/announcing_keepshare_lite_a_keepass_client_for/ May 22 01:06:47 :) May 22 01:06:51 * pfn spams, woot May 22 01:06:52 Ok guys just two more question May 22 01:06:52 well that's bloody handy! thanks for that May 22 01:06:54 TacticalJoke: THe wasy I found with a quick google search have been iffy. I don't trust a random one-off method for rooting. May 22 01:07:43 should I ask question related to eclipse programming android apps in here or in #eclipse? May 22 01:08:01 I just say `adb shell` and then `run-as `, and then I can do basically anything (I think) in my app's private directory. May 22 01:08:05 s73v3r: just saw your other post. Hmmm. OK. Well, I'm just a teenager so that is kind of out there for me right now. :P Oh well. May 22 01:08:16 Shaba1: It's best to use Android Studio. May 22 01:08:25 They have officialy abandoned the Eclipse ADT plugin. May 22 01:08:45 Shaba1: ^what he said :) May 22 01:08:57 noahmg123_: In general, if it’s not your API or you don’t have permission to use it, don’t. You’re just gonna end up having it taken down May 22 01:09:01 barbs: I think the only requirement is that your app be 'debuggable' (which it is by default with AS or whatever). May 22 01:09:48 TacticalJoke: yeah, I use run-as all the time. plus, since I'm on a mac, I made a `... | perl /\0x\whatever/` helper thing so I can 'cat' databases and whatnot into local files May 22 01:09:56 _mostly_ I don't need root because of that May 22 01:10:03 Nice. :) May 22 01:10:14 TacticalJoke: that's really awesome. 4 years of android dev and I never came across that! May 22 01:10:26 s73v3r: makes sense. Right now the only alternative (please don't hate me TacticalJoke) is to use an invisible webview ans use javascript to grab the data. But even I had problems creating a simple alert for a visible one. May 22 01:10:34 I have aliases that will cat prefs or pull databases, but always as root May 22 01:10:41 TacticalJoke: https://gist.github.com/Groxx/5e89c56f664210ef6246 May 22 01:11:38 So I am very underwhelmed by 5.0 on my HTC One M8 May 22 01:11:43 Anyone else sharing this? May 22 01:11:58 6.0 will be different. everything will be better. May 22 01:12:09 lather/rinse/repeat for N+1 May 22 01:12:09 So they say May 22 01:12:22 I'm tempted to just RUU back to 4.4.4. May 22 01:12:46 s73v3r: so it looks like I'm stuck with a webview. Since I am not using their API in that case do I still need to worry about making my app paid? May 22 01:13:11 4.4.4 is pretty good. I'm reasonably happy with 5.1 (5.0 was crashy on the N6, maybe others delayed and fixed that), but I do very much miss XPrivacy :( May 22 01:13:13 you’re scraping their website? May 22 01:14:20 doing that probably isn’t that much better. You’re basically going to be seen as purposefully circumventing their API restrictions. May 22 01:15:15  May 22 01:15:34 s73v3r: I have seen a few apps that imliment it w/o an api. They were free though. I can look again to see if there are any paid ones. May 22 01:17:20 Is not Android Studio just eclipse with the ADT and the hardware drivers May 22 01:18:12 Shaba1: what're you trying to say? May 22 01:18:39 i would be hesitant to charge for something based on an API that i do not control nor have explicit permission to use May 22 01:18:43 AS is totally different. Based on IntelliJ, for a start. May 22 01:19:40 s73v3r: Just FYI, all this is is a text box, a button and a webview. The button takes the text in the box, and then bring up the results in the webview. May 22 01:22:03 " should I ask question related to eclipse programming android apps in here or in #eclipse? Shaba1: It's best to use Android Studio. They have officialy abandoned the Eclipse ADT plugin."<----- I was asking in relation to that statement May 22 01:24:28 s73v3r: does what I said still sound iffy? May 22 01:24:57 hey guys, is there any project with Spinners (in the form) with Material Design specifications? Have done some research, 0 projects found. May 22 01:25:11 Shaba1: Android dev stuffs will be tackled here. If you're going to ask for eclipse preferences, just dont. May 22 01:27:08 diofeher: not sure, although Material Design appears to be really Holo 2.0 (now with pretty colors and animations!) :) spinners do not seem to have changed through this. So you can probably just use the default spinner May 22 01:27:21 IDK about ADT being "abandoned". interesting convo here: http://stackoverflow.com/questions/16617638/will-eclipse-adt-be-deprecated May 22 01:29:51 noahmg123_, I'm using AppCompat, so it looks ok on 5.0+ devices, but in old devices it's black instead of grey :/ May 22 01:30:31 diofeher: well that's probably because there is no backwards compatability. :P May 22 01:31:06 yea =p that's why I'm looking for a project that handles that ^^ May 22 01:32:42 diofeher: hmmm.. maybe you can do a "if version is old, then do this (a fallback)" it's not an if statement. but it is similar. May 22 01:33:21 TacticalJoke: What is it you use when you want something to happen only in a specific android version? I remember using it once. May 22 01:42:52 noahmg123_, I think I will try that :) thanks man May 22 01:43:31 diofeher: you are welcome. I will try and find what it is called. May 22 01:44:00 I found that http://stackoverflow.com/questions/26755878/how-can-i-fix-the-spinner-style-for-android-4-x-placed-on-top-of-the-toolbar but this is only related to toolbar May 22 01:44:05 I'm placing at layout May 22 01:44:37 whoa, just found at the answers https://github.com/ganfra/MaterialSpinner May 22 01:45:16 cool May 22 02:18:51 Anyone here using a library that depends on appcompat-v7? Examples: material-dialogs https://github.com/afollestad/material-dialogs MaterialViewPager: https://github.com/florent37/MaterialViewPager May 22 02:35:44 Android programming: http://i.imgur.com/WRJYveX.gif May 22 02:36:59 hello May 22 02:37:44 like launching your android app http://i.imgur.com/WRJYveX.gif May 22 02:37:51 i am trying to grab arp packets that are sent from a network security camera May 22 02:38:15 TacticalJoke lol May 22 02:39:54 hey guys, how can i align 2 textviews, one to the left and other to the right like in this image: http://s24.postimg.org/b6lm84yut/LAYOUT.jpg i want to align the view, not just the text inside May 22 02:40:31 TacticalJoke not sure where i saw that ; maybe it was your link - tendency to click -> auto reaction -> auto association -> poste back :) May 22 02:41:09 :D May 22 02:43:41 is it possible to create a button that launches an intent to twitter if the twitter app is installed but falls back to opening twitter in the browser if it isn't? May 22 02:44:06 TacticalJoke oh man wish i had this years ago https://github.com/kirbyfan64/unmangler May 22 02:44:17 t0astt: yes. May 22 02:44:48 bhans: do you know of any reference material for that so I can read up? I tried a google search but I may not have used the right criteria May 22 02:45:34 Ah, that's nice. May 22 02:46:18 t0astt: http://stackoverflow.com/questions/11105103/open-page-in-twitter-app-from-other-app-android May 22 02:46:21 and so on.. May 22 02:46:39 thanks bhans May 22 02:47:23 luist: That's easy with a RelativeLayout. May 22 02:47:36 TacticalJoke: oh May 22 02:48:03 I think it's less easy with a LinearLayout, but I hardly use LL, so I could be wrong. May 22 02:48:04 never used it May 22 02:48:33 With RL, you can use alignParentLeft/Right/Start/End="true". May 22 02:48:52 ill try that, thanks May 22 02:49:29 anyone have any information that can help me with my problem? May 22 02:51:14 TacticalJoke: it worked… thanks :) May 22 02:51:41 RelativeLayout is pretty powerful. It's my go-to guy. May 22 02:52:01 I think RL can do anything LL can do and more. May 22 02:53:08 or just pretend im not here May 22 02:54:00 i thought i smelled cheese May 22 02:54:10 mrmrscheese_: It'd help if you actually asked a question. But I wonder how many people know about such an esoteric domain. May 22 02:54:51 i asked it a few minutes ago May 22 02:56:29 oh, i didnt send the second part... May 22 02:57:15 i have this android based device http://wanglu.manufacturer.globalsources.com/si/6008835191738/pdtl/Cable-tester/1106322600/IP-Camera-Tester.htm May 22 02:58:05 and i am trying to figure out how to add a app that can do arp scans for when i connect it to a ethernet camera May 22 02:59:13 arp isn't available in Java, is it May 22 02:59:17 if not, you cannot **** ENDING LOGGING AT Fri May 22 02:59:58 2015