**** BEGIN LOGGING AT Fri Aug 05 02:59:58 2016 Aug 05 02:59:59 i'm working for a company and doing this project on my free time with a designer which is a partner as well, I'm wondering if once it gets to production I will need to quit my job to fully mantain the project Aug 05 03:00:00 if you want to invest money, perhaps investing in a dev would also be advisable. Aug 05 03:00:03 is it possible to do both? Aug 05 03:00:09 lol well Aug 05 03:00:16 it's a social app Aug 05 03:00:18 the initial work required is not going to be a breeze Aug 05 03:00:35 startups are not easy man Aug 05 03:00:44 I'm scared about what will happen once it's in production Aug 05 03:00:59 There's a way to get around that Aug 05 03:01:01 it's called testing. Aug 05 03:01:03 for example, a bug makes the app crash and I have to solve it quickl Aug 05 03:01:03 y Aug 05 03:01:22 yeah, but nothing guarantees that it will not crash in production Aug 05 03:01:29 even if your code is not crashing Aug 05 03:01:32 maybe servers will Aug 05 03:01:34 or whatever Aug 05 03:01:52 I want to rely as much as possible in google firebase and amazon services Aug 05 03:02:01 Welcome to the real world? :P Aug 05 03:02:06 is that a wise choice? Aug 05 03:02:13 yeah jajaj I know Aug 05 03:02:16 AWS is a good idea. Aug 05 03:02:28 but not 100% reliable (as with _anything_) Aug 05 03:02:33 I've had instances go down Aug 05 03:02:39 so we have backups in other aws regionms Aug 05 03:03:06 and everything is automated which is great Aug 05 03:03:16 (auto scaling groups, elb's, terraform + cloudfront) Aug 05 03:03:25 but I need to have knowledge on that as well right? Aug 05 03:03:29 I started Aug 05 03:03:33 y-yes. Aug 05 03:03:36 watching videos Aug 05 03:03:51 I guess I'll have to learn the hard way Aug 05 03:03:59 Start with the things you can do. Focus on the app now Aug 05 03:04:11 Deal with infra later. Aug 05 03:04:15 Delegate also. Aug 05 03:04:23 I'm out, we're going off-topic. :P Aug 05 03:04:25 yeah, we are doing good with the app, I'm working with a great designer Aug 05 03:04:33 the app will be ready in 3 or 4 weeks Aug 05 03:04:41 we are doing it for swift as well Aug 05 03:05:05 if you are interested leave me your email cause we are looking for partners in a near future Aug 05 03:05:31 I will send you a demo to check the product once it's released Aug 05 03:16:52 whos up? Aug 05 03:19:23 I am, but I am not sure how much help I can provide. Aug 05 03:20:15 where i can see aosp/stock android m app permissions? Aug 05 03:20:38 for a app itself or what do you mean exactly? Aug 05 03:20:42 the default ones, i want to compare Aug 05 03:20:56 with my phone rom Aug 05 03:21:00 oh, hell I don't know sorry. Aug 05 03:21:44 You can see them in app info Aug 05 03:21:49 they have permissions just like all the other ones Aug 05 03:22:06 you can also inspect their manifests Aug 05 03:22:09 (there are apps that do that) Aug 05 03:22:16 oh thats what he was asking. Aug 05 03:22:24 I thought he meant something ocmpletely different. Aug 05 03:24:53 if an app has "Read SMS or MMS" permission that means that that app can upload sms content to developer app server? Aug 05 03:26:50 also what this permission "Discover known accounts " does? for example it can send back that you have email account x@gmail.xxx? or? Aug 05 03:28:31 "It allows the application to see what account services are available on the phone, and their names." Aug 05 03:28:33 - Reddit. Aug 05 03:28:49 and it depends on the app Aug 05 03:29:33 hmm Aug 05 04:08:06 Stumped with install process for Android Studio. Using fedora 24. Have (to the best of my understanding) installed the 32bit compatibility libraries. But still getting the message "Unable to run mksdcard SDK tool. Aug 05 04:09:25 so run it by hand Aug 05 04:09:38 and see why it fails Aug 05 04:13:32 for some reason, mksdcard seems to be about the only thing which isn't 64-bit at this point Aug 05 04:14:22 just don't run an emulator with sdcard Aug 05 04:14:28 problem solved Aug 05 04:14:51 lol Aug 05 04:14:55 and it's not a failure to. install android studio, just creating an emulator Aug 05 04:15:31 faulty: compat-libstdc++-296.i686 compat-libstdc++-33.i686 ncurses-libs.i686 compat-libstdc++-33.x86_64 Aug 05 04:15:34 do you have these packages? Aug 05 04:17:26 i've had mksdcard fail on OS X too ... Aug 05 04:17:28 tx: looking Aug 05 04:17:47 i filed a bug like 5 years ago :) Aug 05 04:17:49 I use Debian, so I am in the "expected" environment for android dev lol Aug 05 04:17:58 (aka, Ubuntu-like) Aug 05 04:18:21 no - debian is not ubuntu like, too far behind :D Aug 05 04:18:39 if you use stable, sure Aug 05 04:18:45 it's not a rolling release. Aug 05 04:18:54 tx: did not have those packages. This is different information than on https://developer.android.com/studio/install.html Aug 05 04:19:08 did it work? Aug 05 04:20:56 tx: still unable to download the sdk Aug 05 04:21:14 I thought your issue was not being able to run mksdcard Aug 05 04:21:49 yes, but it that which gets in the way of me being able to run the wizard to install the sdk Aug 05 04:22:18 hmm, why would the wizard need to run that tool? Aug 05 04:22:27 seems a bit weird, do you have some thing ticked that makes an emulator for you Aug 05 04:23:09 tx: don't understand the question. Aug 05 04:23:22 This is the wizard to install the SDK right? Aug 05 04:23:24 Not to make an emulator. Aug 05 04:23:31 correct Aug 05 04:23:46 the wizard which shows up straight after initial install Aug 05 04:23:48 and at no point did it as you if you wanted to make an AVD / virtual device Aug 05 04:23:49 right? Aug 05 04:23:55 ask* Aug 05 04:24:05 correct Aug 05 04:24:13 got log output? Aug 05 04:24:25 I know you said that command failed, but a pastebin or something might help. Aug 05 04:24:34 will put in paste bin Aug 05 04:24:50 faulty if you get really frustrated (1) you can skip the wizard and (2) install the SDk manually Aug 05 04:25:10 it's true. :c Aug 05 04:25:13 c:* Aug 05 04:25:29 g00s: where would I find instructions for installing SDK manually? Aug 05 04:25:40 faulty its just a zip file Aug 05 04:25:50 but when you run the android tool, you'll grab some things Aug 05 04:26:15 https://developer.android.com/studio/index.html#downloads Aug 05 04:26:20 'command line tools' Aug 05 04:26:36 well, tgz file ;) Aug 05 04:27:00 and make sure you have java installed 'which java -> 1.8 or something' Aug 05 04:27:05 tx: before installing the packages you listed https://dpaste.de/TT2F Aug 05 04:27:31 so where does mksdcard come into this at all Aug 05 04:28:03 tx: after installing packages https://dpaste.de/VcMJ Aug 05 04:28:21 tx: I get an error pop up and the install stops Aug 05 04:28:22 hmm, these logs are not too useful. :P Aug 05 04:28:28 Give a manual install a go hey. Aug 05 04:28:35 will do Aug 05 04:29:25 g00s: yes have 1.8 installed and have run "alternatives --config java" Aug 05 04:32:33 faulty after you untar that, just put the dir with 'android' tool in your path Aug 05 04:32:51 when you run the AS again, abort the wizard Aug 05 04:32:58 you can specify the SDK dir manually in prefs Aug 05 04:37:41 g00s: OK. I'll give it a go and report back. How to put dir in path? Or is that what you are saying about prefs? Aug 05 04:38:14 putting stuff in shell path is just convenience, it doesn't impact AS Aug 05 04:38:33 you'll want stuff like adb, android, emulator in your path Aug 05 04:51:10 it would be kind of convenient if ViewPager could take N children, which just wind up being teh layouts switched between Aug 05 04:56:07 oh, you can ... kinda Aug 05 04:59:10 hmm, not really w/o ugly hack Aug 05 05:31:40 tx: g00s: Things you were saying and things I was seeing were not adding up. Had a brain wave and in ~/Android/Sdk/tools ran ./mksdcard just to see what I would get. Turned out it told me the exact missing library. DUH! installed libstdc++-6.1.1-3.fc24.i686.rpm and now it all works Aug 05 05:32:04 \o/ Aug 05 05:33:09 g00s: tx: Cheers for you help and advice, it got me there. Aug 05 05:33:16 No no Aug 05 05:33:19 it was you that made the leap. Aug 05 05:33:21 ;) Aug 05 05:33:49 How can I make a match parent linear layout with 3 buttons that share the same amount of screen space? Aug 05 05:34:48 barodapride, try looking up view weight, or something like that Aug 05 05:35:14 barodapride, if you wait a couple I have done it, I'll see if I can find the exact line Aug 05 05:35:49 that's alright I'll get it eventually Aug 05 05:35:50 How can I refresh a webview in a particular viewpager fragment instance? Aug 05 05:35:52 have a viewpager with 2 tabs, each with webview inside fragment Aug 05 05:35:58 how do I target one specifically Aug 05 05:35:59 to tell it to refresh Aug 05 05:39:04 barodapride, android:layout_weight should help you Aug 05 05:45:14 yea I just never understand completely how that interacts within a certain parent Aug 05 05:45:24 usually I just dink around until it finally looks right Aug 05 05:46:20 barodapride, understood. I think if you give each of them a weight of 1, then they will all be same length across. Aug 05 05:46:43 is a leak canary enabled build better defined as a product type, build type, or just tack a flag on the debug build? Aug 05 05:48:10 barodapride, within, say, a LinearLayout Aug 05 06:18:55 @faulty I got it now, thanks. Had to set all buttons width to match_parent and weight to 1 Aug 05 06:19:30 i have a textview in my header of the navigation drawer. when i sign in using google in another activity , i want to change that textview to the email of the user ., i want to know how can i approach that ? Aug 05 06:19:30 barodapride, sweet, good one Aug 05 06:20:26 Anyone know what to check if my PagerTabStrip isn't showing up in my ViewPager? If I change it to PagerTitleStrip it shows up but not PagerTabStrip. Aug 05 06:20:42 @jackhum I would guess anytime that activity starts load the current logged int user email into that view? Aug 05 06:20:57 logged in* Aug 05 06:21:21 barodapride: how can i pass that value , should i store it in sharedpreference ? Aug 05 06:22:13 I would, that would be easiest if the sign in activity is yours Aug 05 06:25:36 barodapride: but i still doubt that , storing it in sharedpreference is the correct way to deal with this problem Aug 05 06:26:44 I don't know the correct way, I think the system might keep some information about accounts logged into. You would have to google that Aug 05 06:27:07 barodapride: also , to jump from loginactivity to the main activity which contains navigation drawer , i usually press back button , so i dont use intent so that i can pass strings using intent Aug 05 06:27:51 you could just load the textview in onStart() of the activity Aug 05 06:30:15 barodapride: yeah , but i get the email of user from login activity, while main activity has the text view . Aug 05 07:46:42 How do I refresh only a single fragment inside my viewpager on notifyDataSetChanged()? Aug 05 07:47:01 when i do notifyDataSetChanged, all my viewpager fragments refresh Aug 05 07:51:46 dead in here... Aug 05 07:54:33 im here just afk, idk what you mean by fragment, do you meant information displayed in the lsitview? Aug 05 07:57:16 Demon_Jester, i've got FragmentStatePagerAdapter Aug 05 07:57:33 and a CustomFragment instance that i load throughout the pages Aug 05 07:59:05 Basically I'm trying to find a way to getItemPosition(obj) only return POSITION_NONE for a specific section/fragment Aug 05 07:59:12 specifically the first one Aug 05 08:01:07 does that specific section always have the same data? Aug 05 08:01:16 or same position in some sort of list Aug 05 08:01:21 (eg the end) Aug 05 08:29:04 Hello. .shouldShowRequestPermissionRationale() when it evaluates to true, what should I do exactly? Aug 05 08:30:19 i am still looking for answers , and mechanism by which i can change the image in navigation drawer to the user's image Aug 05 08:30:24 from google sign in Aug 05 09:05:42 tx, the section contains a webview, which needs to be refreshed Aug 05 09:05:44 or have a loadUrl run on it Aug 05 09:14:49 What is the purpose of showing a permissions rationale? Aug 05 09:53:53 What's the best way to transmit data between fragments? Aug 05 09:54:44 ZeNEX: so you can tell the user why you need permission Aug 05 09:55:20 I was planning on skipping it because I can't manage to create a Snackbar.. Aug 05 09:55:33 what does that have to do with eachother Aug 05 09:55:42 Should I add a parameter to the fragment's constructor or something? Aug 05 09:56:05 lg188: you can add data to the fragment's extras bundle on creation Aug 05 09:56:32 it changes depending on another fragment. Will it work with that? Aug 05 09:57:02 xorgate, the specific problem I am having is that i don't know how to use findViewById(...) Since the class I am requesting permissions on is a Service, I don't know what to do.. Aug 05 09:57:16 the problem is, this course just says "transmit data in the standard method". I have no clue what they mean with it Aug 05 09:57:30 ZeNEX: what are you talking about? permissions of views ? Aug 05 09:57:36 oR Aug 05 09:57:47 xorgate, views I guess, views Aug 05 09:57:58 ZeNEX: what are you trying to achieve Aug 05 09:58:32 lg188: http://stackoverflow.com/questions/9245408/best-practice-for-instantiating-a-new-android-fragment Aug 05 09:58:57 ZeNEX: so what do you want to do with views? Aug 05 09:59:00 xorgate, I want to create a Snackbar to tell the user that we need him to enable the GPS location Aug 05 09:59:21 zenex i dont think snackbar is the right paradigm Aug 05 09:59:35 i'd maybe go for Dialog Aug 05 09:59:35 mhm okay Aug 05 09:59:52 snackbar is used to show a notification after a user action Aug 05 09:59:57 Still, is there any limitation as to where I can create UI stuff? Aug 05 10:00:04 xorgate: that's something in the right direction, I /think/. Thanks Aug 05 10:00:08 like in an activity, service, etc Aug 05 10:00:18 ZeNEX: you'd need an activity or fragment Aug 05 10:01:15 ZeNEX: concretely, what are you making Aug 05 10:01:17 xorgate, then how would you structure this: an activity needs to use the location service, but in the future more than 1 activity might need to use the location service. Would I make the location service an Activity? I am so confused Aug 05 10:02:18 I am making an app that detects at which gas station you are at with the GPS and compares prices with other nearby ones Aug 05 10:02:23 ZeNEX: on startup you ask for the permission, if you dont get it, you try to do the best you can. Possibly say 'we really need this permission'. Aug 05 10:03:50 xorgate, on startup, where exactly? Aug 05 10:04:28 i'd start in onResume i think. in case the user went to settings and disabled the permission Aug 05 10:04:34 let's see where i do it.. Aug 05 10:05:52 yes onResume Aug 05 10:07:17 ZeNEX: i do something like this https://gist.github.com/xorgate/997e47251f9b942e5831f790d09c79dd Aug 05 10:07:20 lunchtime Aug 05 10:08:30 hi all. Aug 05 10:08:54 guys, I need to update contents of a fragment from activity. Aug 05 10:09:22 what is best way for having a valid handle to fragment in activity? Aug 05 10:09:47 especially when fragment(and activity) recreates. Aug 05 10:10:27 xorgate, however, the user can disable location services any time while the application is running, what do you do to fix this? Aug 05 10:13:51 hero_biz: get it from the fragment manager Aug 05 10:14:38 getSupportFragmentManager.findByTag({the fragment tag}) Aug 05 10:17:12 pduin, i'm having a similar problem Aug 05 10:17:14 Basically I'm trying to find a way to getItemPosition(obj) only return POSITION_NONE for a specific section/fragment Aug 05 10:17:24 the section contains a webview, which needs to be refreshed Aug 05 10:17:31 or have a loadUrl run on it Aug 05 10:17:47 at the moment ALL fragments are being refreshed Aug 05 10:18:08 on notifydatasetchanged Aug 05 10:24:20 Guys, would there be any reason why onStartCommand() would stop my service from running all of its other methods? Aug 05 10:30:48 ZeNEX: that's why in onResume you check again Aug 05 10:33:15 I need to make something that always runs in the background (even when the app is closed) and checks live data. Aug 05 10:33:27 Is that done with IntentService? Aug 05 10:37:48 kostodo: regular service then Aug 05 10:38:42 OK and if I want to do something in that service on a regular basis like fetch remote data thats done with alarm manager? Aug 05 10:48:59 Hello everyone Aug 05 10:49:23 I need help on how to use executeOnExecutor with Async task Aug 05 10:49:29 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, "Africa", "Australia"); Aug 05 10:50:02 I have this.. How do i get the value in Aug 05 10:50:05 protected Void doInBackground(final String... params) { Aug 05 10:50:26 calling param[0] will only run the Africa thread Aug 05 10:50:36 and Austrailia never gets to execute Aug 05 10:54:09 yo guys Aug 05 10:54:15 any Android devs from Poland? :) Aug 05 10:55:41 Why does one need to ask if the should show the permissions rationale? what is the criteria used by the API / OS to determine we should / shouldn't ? Aug 05 10:58:39 I've set the background color of my button to /drawable/button_default, within here I've set the colors for the different states. Is there any way I can change the background color within the XML layout file for the Button object which wont override all of the colors? All I want to override is the enabled button color Aug 05 11:03:34 Nevermind, just realised it's better not to override the default button style and just add the button style to the buttons I want Aug 05 11:03:39 Should hopefully fix my issue Aug 05 11:14:22 is it possible to make 1.8 and jack the default combo for android-studio? Aug 05 11:19:55 Hey guys, I'm having issues with TAG while implementing looper and handler, any ideas? src-code-href = http://pastebin.com/CAN3L8nV Aug 05 11:33:54 xorgate, actually i have a set of predefined date/time ranges i.e. 01/01/2017 08:00 - 11:00 when i need a background service to activate and run. Aug 05 11:34:00 there will be many of those types of dates Aug 05 11:34:21 kostodo: lol good luck. better use AlarmManager Aug 05 11:34:46 but with intentservice or just service? Aug 05 11:39:09 it depends on what you want to do Aug 05 11:39:24 alarmmanager triggers your code Aug 05 11:40:19 i need to fetch some remote live scores Aug 05 11:40:25 i.e. network request Aug 05 11:40:43 and send notification if something is received Aug 05 11:58:22 Hey guys, is it possible to use a dictionary/map with spinners ? Aug 05 12:34:16 Hi all. I have multiple flavors. can you generate signed apk for all flavors? signingConfig is already been set. Is it possible with a gradle command / script? Aug 05 12:37:40 FrancescoV: AFAIK the gradlew assemble command will build all variants. Aug 05 12:38:01 Could be wrong... but should be easy to check =) Aug 05 12:41:23 ErnestG: thanks for that, I'll check it out Aug 05 12:42:44 The apk(s) can be found in your app>build>outputs>apk Aug 05 12:48:15 works :) unaligned apk, is this a non-signed apk? Aug 05 12:51:03 Is it bad practice to do http requests in onCreate of an Activity? Aug 05 12:51:35 Hello guys, is there a way to wait for .onRequestPermissionsResult(...) to be called ? Aug 05 12:52:07 I requested permissions and I get the answer there, is there a way to wait for that method to execute right after I requestPermissions(...) ? Aug 05 12:58:37 it's called after you request for permissions Aug 05 12:59:58 xorgate, the doc says its asynchronous and its called when the user answers. Should I just wait with a while loop checking a change of state performed by the callback? Aug 05 13:03:01 wtf what are you going on about Aug 05 13:03:11 it's a callback Aug 05 13:03:22 like onActivityResult Aug 05 13:03:26 wait Aug 05 13:03:57 when I call requestPermissions, it finishes executing before .onRequestPermissionsResult(...) is called, right? Aug 05 13:22:42 Do you use Intent.ACTION_SYNC as an Action when doing network requests or just define your own actions? Aug 05 13:32:32 i'm using libjingle to write a videochat app. when i rotate the device the idea is that the videofeed rotates in the other direction to keep it level. however on some devices (like nexus 5x) the camera is implemented a bit differently from others so it rotates in the wrong direction and after 90 degrees the feed is upside down. My question is, how can i detect that a camera will do this (so i can counter it by mirroring the view Aug 05 13:32:32 ) Aug 05 13:37:20 Sorry folks, I missed any replies earlier as my scroll back was stupidly small. Aug 05 13:38:25 I've added a broadcast receiver (which works well) that calls my service via intent with extras, and I've added an onStartCommand() method to my service. However, now my service only fires the onCreate and onStartCommand methods of my service, and no other methods are executing. Any ideas why? Aug 05 13:38:40 Toast.makeText(this, R.string.locker_invalid_pattern, Toast.LENGTH_SHORT).show(); Aug 05 13:38:46 how can I make a counter here to show a different text after 3 times? Aug 05 13:40:50 as a side note, the intent is correctly passing the parameters to my service, and I can process them in my onStartCommand method, but I've got a lot of other methods that worked inside that service before I added onStartCommand. Aug 05 13:41:38 newb over here and I love Ionic and JS animations. It there a word I can google to merge these cool plugins into AndroidStudio so I can get a better UI/UX from HTML/css/js for my NATIVE android app? Aug 05 13:42:43 AlexPortable: how about you keep the amount of times in an int Aug 05 13:42:49 wow.. im confused TL:DR .. I saw a cool thing onGitHub that i want to bring to my app it is a webDev(html5/css/js) thing and I want to not have to rewrite my logic in JS and just dump the UI/UX to android studio and use my exsisting code. Aug 05 13:42:54 xorgate: im quite new to this Aug 05 13:42:57 is this a thing ? Aug 05 13:43:07 define the int outside of the private void? and when to reset it ? Aug 05 13:43:20 AlexPortable: how new are you Aug 05 13:43:29 dar10s: check out the crosswalk project Aug 05 13:43:41 xorgate: i can a bit php/js/css Aug 05 13:43:52 AlexPortable: ok so new at java Aug 05 13:43:54 dar10s: It works in native as well as Ionic/Cordova apps Aug 05 13:44:14 dar10s: Just be aware that it can add between 15 and 40mb to your app file size. Aug 05 13:44:26 AlexPortable: it kinda depends on where you show the Toast Aug 05 13:44:42 well this part is triggered when user clicked abutton Aug 05 13:44:54 but i want the third time the button is clicked to display a different toast Aug 05 13:45:04 dar10s: https://github.com/pwnall/chromeview Aug 05 13:45:10 reaxion: that seems to do the trick . and might be worth it for my skill set Aug 05 13:45:16 another alternative but crosswalk is best Aug 05 13:45:36 my JavaScript skills are outdated but I work in java/C# all day Aug 05 13:45:59 dar10s: I've used cross-walk in both Ionic and native projects and there's a minimal version of it as well that might suit better if you don't need things like WebRTC, etc. Aug 05 13:46:35 dar10s: It's surprisingly easy to integrate. Aug 05 13:46:58 dar10s: Plus the native hooks are pretty straightforward. Aug 05 13:47:11 and that is where I am sold. ( whoo hoo) Aug 05 13:47:40 Why is there a synchronized(Picasso.class) call in the Picasso.with(context) method here? https://github.com/square/picasso/blob/master/picasso/src/main/java/com/squareup/picasso/Picasso.java#L702 Aug 05 13:47:48 xorgate: ? Aug 05 13:48:11 Is there any way to look up which style attributes a SearchView looks at? For text color/hint color example. Aug 05 13:48:19 And a repeated call to check if (singleton == null) inside and outside that block Aug 05 13:48:35 I just can't seem to find any documentation for styling widgets through XML Aug 05 13:49:47 Anyone got any ideas why my service might only be running onCreate and onStartCommand methods? Aug 05 13:50:06 AlexPortable: when the screen starts set an int to 0, then on click add 1. show toast depending on value of the int Aug 05 13:50:54 The only way I can find how to style a particular element in a widget is if someone has coincidentally asked the same question on stackoverflow Aug 05 13:51:25 xorgate 'show toast depending on value', this outside the privat evoid ? Aug 05 13:51:28 .. which makes supporting multiple themes in my app a huge pain in the ass Aug 05 13:51:28 as in ; a new private void Aug 05 13:51:38 AlexPortable: what do you mean 'private void' Aug 05 13:51:55 private void doComparePattern() { Aug 05 13:53:09 AlexPortable: you could define the int on the activity Aug 05 13:53:49 activity? Aug 05 13:54:03 you're making an android app, are you not? Aug 05 13:54:41 im editting an android app yes Aug 05 13:54:50 so you're inside either an activity or a fragment Aug 05 13:54:57 im in Service.java Aug 05 13:55:09 ok, then do it in the service Aug 05 13:55:46 just curious, where do people enter this code? Aug 05 13:55:55 since a service has no UI Aug 05 13:56:01 its drawn over other apps Aug 05 13:57:12 can I pm you? Aug 05 14:07:43 found it https://github.com/square/picasso/pull/520 Aug 05 14:07:54 apparently I need to read up on double-checked locking Aug 05 14:08:49 What are all the different places a theme can be applied to an activity? Aug 05 14:09:02 anywhere really Aug 05 14:09:31 so I could put one on a post it note and throw it in the trash and AS is going to pick that up and apply it? Aug 05 14:09:41 hi, do you know if it's possible to "hook" a log Handler to the android.util.Log instead of java.util.logging.Logger ? Aug 05 14:10:59 I need to request a single location update, and I'm using LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, updateListener). Aug 05 14:11:26 However, I need to delay the initial request, because the listener schedules the next one in the callback code. Aug 05 14:11:45 What's the best and most guaranteed-to-fire way to do that? Should I use an AlarmManager? Aug 05 14:12:10 xorgate: If you're within a service and need to communicate with a fragment / view, use callbacks Aug 05 14:12:29 AlexPortable: no just keep it here Aug 05 14:12:43 So I can double-checked locking optimizes for when you often don't expect there to be threading conflicts, therefore avoiding the overhead of the synchronized keyword when it's not necessary? Aug 05 14:12:54 s/I can/I guess/ Aug 05 14:15:10 Hello to all, I need some help please, i cant resolve this :( ... I have a list view, i load the data from remote url and after i set the adapter with the data. Then, in my item_layout i have a simple text with a checkbox, i need select a number of checkbox with the remote data. I see it works, but then all checkbox are unselected :s Aug 05 14:15:29 Why this happen?? This is my code: http://pastebin.com/CLbkY4Zr Aug 05 14:16:59 I see the checkbox selected, but then all the checkbox are un-checked without moving the scroll :s Aug 05 14:18:10 this is my item_layout http://pastebin.com/VCtpMZK2 Aug 05 14:18:16 futini: it looks like you're getting the same checkbox each time. The only time I see you accessing a checkbox element is at line 48 (correct me if I'm wrong), and you're using the same id each time. Aug 05 14:18:54 question: does Android Studio just package things or does it compile them? Aug 05 14:19:10 I have some code in Python that has some code inside it that is in C, and i'd like its functionality in my Android app Aug 05 14:20:03 If it's compiling, then i can see it might allow multiple languages since it's all being converted to Java in the end (i think) Aug 05 14:20:37 but if it's just packaging things into folders, compressing and organizing and such, then that means all that conversion and interpreting is done live on the Android device which would make it slow as ass right? Aug 05 14:20:38 sn0wmonster: the Python code would require a Python VM running in Java, since Python code is not really compiled (at least, not to machine code). the C code would be native. Aug 05 14:20:58 okay so if i have C code for the same functionality as the Python code, it's better to use that then? Aug 05 14:21:05 I don't believe it supports what's called "transpiling", which is converting one language into another. Aug 05 14:21:29 so i should just pick one language and stick with it then Aug 05 14:21:40 tbh, it would be better to rewrite it into Java. I've read on the docs that using native methods is not neccessarily faster, and can be more difficult. Aug 05 14:21:46 and if i want the highest speed and best functionality range, C would be the target or Java? Aug 05 14:22:12 ah. so java is still a better way to go when dealing with Android then? Aug 05 14:22:32 if you want to have an interface at all, you'll need to work with Java. If you want to use a single language, stick with Java. Aug 05 14:24:22 could someone here do me a solid, i don't mind paying for the time, Aug 05 14:24:33 i have a developer in android i work with who has been trying to get a particular code base working from java, Aug 05 14:24:51 4 months it worked fine, suddenly it stopped working. i'm suspicious it is just that persons' setup Aug 05 14:25:16 it is stopping all further development and caused me great headaches researching C/C++ and even C# options (for Unity implementation), Aug 05 14:25:35 i made a login system for my app also made profile object (which i set) but how do i make it so taht the object is set throughout the whole app not just an instance of the object? Aug 05 14:25:38 could someone else who uses Android Studio bring the repo up and pop out an apk and see if it actually works? Aug 05 14:26:08 if it works foryou but not for my dev, then i know it's my dev's problem Aug 05 14:26:22 and that means i need to find a new dev, instead of changing fundemental directions in my app Aug 05 14:26:31 i'm having this when trying to finish an AVD config: Invalid operation attempted after wizard already finished Aug 05 14:26:58 Does anyone have any idea why im getting a nullpointexeception: name==null when trying to set up my instrumentation test? Think its something to do with the xml android:name = … but I cant figure out what Aug 05 14:27:29 https://github.com/Dissem/Abit is the codebase we're using Aug 05 14:28:00 he's compiling it and claiming messages sent from/to it aren't going anywhere Aug 05 14:29:32 ESCape, alt+f4, cancel button...nothing works Aug 05 14:33:03 Anyone good with setting up instrumentation test???? Aug 05 14:36:18 xorgate: can i talk dutch here ?:p Aug 05 14:36:34 AlexPortable: it's frowned upon Aug 05 14:40:01 hm Aug 05 14:40:24 well anyway, are there examples of this int? Aug 05 14:55:36 AlexPortable: maybe it's a good idea to learn some java fundamentals Aug 05 14:57:28 Does anyone know how to get results of a google image search and display the top images in an activity? Like what's the general flow? I know how to load images into an ImageView but how do I get the urls? Aug 05 15:01:56 yes Aug 05 15:11:03 Any consultants in here offering services in training and troubleshooting a new developer? Aug 05 15:22:00 Hi guys, I've started using espresso, and I'd like to know the best practice to testing a Login UI, essentially, this UI validates credentials and bring some info from a webservice, when everything is loaded, it launches a new activity. Aug 05 15:23:52 My first attempt was to fill the login fields, click on Login and assert the title of the new activity has been launched. However, this fails with a NoMatchingViewException Aug 05 15:24:56 I've noticed that this test fails in the middle of the asynctasklistener that is talking to the webservice Aug 05 15:27:21 got disconnected :/ Aug 05 15:27:46 is this the right channel to ask espresso questions, or is there another channel for it Aug 05 15:42:04 probably would want ##barristers Aug 05 15:42:18 :D Aug 05 15:55:22 Hi guys, what would be the best and fastest way to check if a jpeg file has the Photo Sphere XMP metadata? Aug 05 15:55:42 i found some libs, but id like to avoid them for such a small task.. Aug 05 15:56:32 Guys does anyone know.. are there any nice themes out there for apps ? Aug 05 16:14:52 guys, I need to update contents of a fragment from activity.what is best way for having a valid handle to fragment in activity?especially when fragment(and activity) recreates. Aug 05 16:19:15 hero_biz, https://developer.android.com/training/basics/fragments/communicating.html Aug 05 16:28:56 * IT_Sean slaps azv4 Aug 05 16:29:06 * azv4 wakes up Aug 05 16:29:11 * azv4 goes back to sleep Aug 05 16:29:32 * IT_Sean takes a massive creamy steaming shit in the middle of the channel Aug 05 16:34:50 Hey guys - does anyone know if its possible to use the intent:// syntax in a google chrome link to open the dialer? Aug 05 16:34:50 I've been investigating how security works with android. Found a low level article showing how an account is authenticated (http://codedigging.com/blog/2014-06-09-about-encryptedpasswd/), I know that's how things are supposed to work behind the scene, but I wonder are some of those values directly accessible? When it returns there is an 'auth' value and a 'token' value. I'd like to get the 'token' value. Aug 05 16:35:28 I've been searching a lot and found stuff on chrome intents and in-app action_dial but never both togeather Aug 05 16:42:47 What's the best way to schedule location updates with a delay that changes each time? Aug 05 16:50:29 It looks like the LocationRequest class doesn't have a field for initial delay. Aug 05 16:59:07 i want to know how app like gmail store my profile image , and cover art , and name and email , in navigation drawer, is it stored in sharedpreference, anyone please discuss with me Aug 05 16:59:38 no, they likely pull it down from the web Aug 05 17:00:00 s73v3r: wow , you are here once again , Aug 05 17:00:04 and/or chache it Aug 05 17:00:18 s73v3r: like do they pull it out as soon as app starts . Aug 05 17:00:23 i really doubt that Aug 05 17:00:41 they probably cache it Aug 05 17:00:52 cache it , by what means / Aug 05 17:00:52 I doubt very highly they use shared preferences for those things Aug 05 17:01:53 also , i have a login activity in my app , which makes user sign in from google , i want to take some data from that activity , and make it display on navigation drawer which is on my main activity, i am confused how should i implement it Aug 05 17:02:47 s73v3r: ^ Aug 05 17:10:28 hey guys ano1 knows how to read XMP metadata from an image jpeg file? preferably without libraries. Aug 05 17:12:23 xmp? Aug 05 17:12:35 * pfn shrugs Aug 05 17:12:37 read the spec Aug 05 17:12:38 and do it Aug 05 17:14:08 pfn do you ever make butane extracts? Aug 05 17:14:31 opps, I meant ptx0 Aug 05 17:14:31 hmm buy how would I read it? how can i get a readable xmp string from the File instance? Aug 05 17:15:25 should I decode the byte[] data with base64 or something? Aug 05 17:17:03 Hi guys, what would be the best and fastest way to check if a jpeg file has the Photo Sphere XMP metadata? << if you only care about what you asked here, you can just read the file and search for a required field (https://developers.google.com/streetview/spherical-metadata) Aug 05 17:17:20 pfn: care to answer my question ? Aug 05 17:17:34 i have no idea how you should read it, you should know in which format your stuff is and decode it if necessary Aug 05 17:19:08 jackhum, no Aug 05 17:19:14 I don't answer programming basics Aug 05 17:19:32 pfn: please , i dont think its basic question Aug 05 17:19:53 pfn: a little bit of help will be sufficient Aug 05 17:22:19 thanks adq.. yeah maybe its a bit of a newbie question but im not sure how i'll do the "reading" part since its an image.. Aug 05 17:22:25 havent needed to do that before.. Aug 05 17:27:12 Any specific library for showing pictures in the UI? Aug 05 17:27:27 there’s imageview which is built in Aug 05 17:28:14 s73v3r: yes but I remember some square library for this Aug 05 17:28:23 and theres picasso or glide for conveniently fill the imageview if you provide image urls Aug 05 17:28:38 you mean gallery? Aug 05 17:28:40 Ashiren: oh those were the one Aug 05 17:29:35 Ashiren: picaso or glide? Aug 05 17:29:47 yes Aug 05 17:30:12 at work we use glide Aug 05 17:30:42 for most usecases there are no much difference though Aug 05 17:31:02 Ashiren: ok Aug 05 17:31:08 https://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en Aug 05 17:33:17 Ashiren: thanks man Aug 05 17:47:59 How do you convert the result from AccountPicker into an Account? (without having to add permissions to list out accounts) Aug 05 17:57:24 jackhum, you ask the same thing over and over, no, not going to help you Aug 05 17:58:00 pfn: a little guide will be really helpful dude . Aug 05 17:58:16 no, it won't Aug 05 17:58:35 go do the udacity courses Aug 05 17:59:05 get the udacity nanodegree Aug 05 17:59:09 we are not your free education ssytem Aug 05 17:59:27 pfn, I have a question for you. I have a login activity in my app , which makes user sign in from google , i want to take some data from that activity , and make it display on navigation drawer which is on my main activity, i am confused how should i implement it Aug 05 17:59:34 :D Aug 05 17:59:55 MikeWallaceDev: There’s no need for that kind of talk Aug 05 18:05:47 * g00s yawns Aug 05 18:06:12 MikeWallaceDev have you done any more conference talks ? Aug 05 18:06:22 Evenin' Aug 05 18:06:39 good evening Mavrik Aug 05 18:07:38 Hey g00s, nah. the DevCon was cancelled this year. Aug 05 18:08:28 The went and scheduled it at the same time as I/O (cause I/O changed it's normal date) so all the speakers had to cancel Aug 05 18:09:50 Maybe they should have gone on and had it Aug 05 18:10:42 There are plenty of people who don’t get the chance to go to IO, but would probably continue to show up Aug 05 18:10:57 what's good in the hood Aug 05 18:11:47 s73v3r, they couldn't have done it. They would have had to find all new speakers. And even many of the attendees go to I/O Aug 05 18:12:35 You have to understand, everything was already organized and done. But then Google announce the date and everything fell to shit. Aug 05 18:13:20 i guess. I just know that there’s a side conference that takes place during WWDC each year. Aug 05 18:13:25 with many of the same things Aug 05 18:13:30 err, problems Aug 05 18:14:02 MikeWallaceDev - and google had those people playing those musical instruments made out of cables / balls - no way to compete with that Aug 05 18:14:20 oh they had special gloves too :D Aug 05 18:14:49 well no, it takes place every year so by definition it doesn't have the same problems :D They do on purpose to be at the same time as WWDC. The DevCon was already planned and then just got side swiped by Google. Aug 05 18:15:57 And the venue is already reserved, so the would have had like a few weeks to rebuild a major conference. Aug 05 18:16:16 Anyway, it sucks, but that's what happened :) Aug 05 18:17:52 launching fragment from activity's onCreate() won't send data. I can't retrieve the data in the fragment Aug 05 18:18:10 what could be the problem? Aug 05 18:18:29 are you using arguments vol4ko ? Aug 05 18:23:31 MikeWallaceDev: http://pastebin.com/jFfkCudV (Activity one) http://pastebin.com/VmF5bRsH (Base Activity) http://pastebin.com/TUyYEjvn(fragment) Aug 05 18:23:57 passed data into fragment can't be retrieved :/ Aug 05 18:24:12 but.... are you using arguments? Aug 05 18:25:01 i am retrieving it with getArguments() Aug 05 18:26:19 your fragment paste screwed up Aug 05 18:26:31 MikeWallaceDev is it getting more difficult to chose a topic to talk about? i'd imagine most things have been beaten to death by now Aug 05 18:27:00 sorry, try this: http://pastebin.com/TUyYEjvn Aug 05 18:27:30 vol4ko: why are you passing an arraylist of authors into something called a “single author fragment”? Aug 05 18:27:52 g00s, I have a favorite topic these days... I would talk about architecture Aug 05 18:27:53 i was testing it, previously was Parcelable object author Aug 05 18:28:04 did it work when you used a single author? Aug 05 18:28:08 vol4ko, yeah, I'd simplify that Aug 05 18:28:17 s73v3r: no Aug 05 18:28:54 maybe i shouldn't play with extending activites Aug 05 18:29:00 vol4ko, you misspelled "auhtor" Aug 05 18:29:03 no, that’s not the problem Aug 05 18:29:13 yeah, that's the problem :) Aug 05 18:29:28 sorry, I was saying that extending the activity is not the problem Aug 05 18:29:34 … timing Aug 05 18:29:36 :D Aug 05 18:29:53 or race conditions. your choice Aug 05 18:30:02 hahaha Aug 05 18:30:31 vol4ko: When debugging, are you verifying that the author goes into the bundle? Aug 05 18:30:44 Oh really! I spend hours on this. Thank you so much Aug 05 18:30:53 actually, I'm sorry! I didn't even realize that it was s73v3r talking not vol4ko (your names are the same length, and both appear in blue in my client) my bad :) Aug 05 18:31:15 vol4ko, That's why I get the big bucks. Aug 05 18:31:24 ...cause I can spell! HAHAHAHA Aug 05 18:31:32 That was self deprecating :) Aug 05 18:32:17 :D ahaha Aug 05 18:32:20 s73v3r, I don't use something special for debugging, i am testing different cases. Oh last night i really needed sleep and shouldn't even started on this functionality. I was digging into this late night and was sleepy Aug 05 18:32:54 vol4ko, actually, you should use constants for keys. Aug 05 18:32:58 no, i was saying that you should set a breakpoint inside that block of code in your activity, and verify that the item actually gets into the bundle Aug 05 18:33:27 of course, now I read it, and I realize that misspelling author was the problem :p Aug 05 18:33:30 s73v3r, how do you check a bundle? I've never been able to dig into one... Aug 05 18:33:46 very carefully Aug 05 18:33:49 HAHAHAHA Aug 05 18:34:05 shhh were hunting bundles... Aug 05 18:34:27 honestly, I’d look at a before and after, and see if the difference made sense. I’d probably not be able to read the actual values Aug 05 18:34:57 Right, I can't read into it either. Aug 05 18:35:00 repost from #android, i didn't realize i was in the wrong channel: Aug 05 18:35:02 vol4ko: on a side note, are you using a library/plugin for the Parcelable stuff, or writing it yourself? Aug 05 18:35:06 hello! i am trying to create the Hello-JNI example [1] using Android Studio. I created an app as explained but the document seems rather outdated. I did not change the class path as my version is newer than the one in the document. also the distributionUrl already points to the updated location/version Aug 05 18:35:10 I really wish I found a way to do that Aug 05 18:35:14 When adding the "ndk" library in the grade script everything fails Aug 05 18:35:19 ndk {moduleName "hello-android-jni"} Aug 05 18:35:27 also using the System.loadLibrary("hello-android-jni"); line fails Aug 05 18:36:01 I really should get into NDK stuff... Aug 05 18:36:04 MikeWallaceDev: you right i need to switch to constatns how powerful will be that instead of messing up with the written keys Aug 05 18:36:12 is there any updated example on how to use the NDK in a Android Studio app? Aug 05 18:36:29 s73v3r: I created classes and implemented parcelable Aug 05 18:36:45 vol4ko, yeah, and your strings are hard coded too... Resources are your friend. Aug 05 18:37:03 oftc_ftw, so sorry mate, but I'm 0 help to you :-/ Aug 05 18:37:03 I am trying to map the json output to classes too using gson and that is ok for now :) Aug 05 18:37:20 vol4ko: while it’s good to do it once to get a hang of how to use it, I would HIGHLY suggest using a plugin or library to do it for you. Missing one field will lead to rather unclear errors Aug 05 18:37:24 vol4ko, I use RetroFit and like it a lot Aug 05 18:37:30 MikeWallaceDev: maybe someone else will help :) Aug 05 18:37:43 hopefully! :) Aug 05 18:38:04 But man, I really should get into NDK, I'm a C++ guy! Aug 05 18:38:16 yes, the http client will be changed :) I don't like UrlConnection ones Aug 05 18:39:19 MikeWallaceDev: that's great but for newbie like me it will be hard to get used to Aug 05 18:39:44 vol4ko, actually, it's not hard. It's easier than raw json Aug 05 18:41:55 However, the document provided isn't easy to understand. I recommend that you search for a good tutorial. Aug 05 18:43:30 :) Aug 05 18:43:47 Hello? Aug 05 18:43:57 Caveaus: Hey! Aug 05 18:43:57 oh i forgot the actual link. [1]: https://codelabs.developers.google.com/codelabs/android-studio-jni/index.html Aug 05 18:44:22 can someone link me to good app development resources so i can get started? Aug 05 18:45:12 developer.android.com is a place to start Aug 05 18:45:24 been there Aug 05 18:45:34 The Big Nerd Ranch book is good, and the course on Udacity is alright Aug 05 18:45:47 In my uni we have gone through "Pro Android 5 5th ed. Edition" and was really nice book that got me started Aug 05 18:46:12 I’m assuming you’re talking about android app development, so i guess a question to ask would be, “How well do you know Java”? Aug 05 18:46:30 It wasn't that long ago, just two or three months ago and i now i can work on simple apps (for now) :D Aug 05 18:46:44 I'm not too familiar with java Aug 05 18:46:51 I've programmed before though Aug 05 18:46:56 Java is the easier part Aug 05 18:46:57 orther languages Aug 05 18:47:02 easier? Aug 05 18:47:17 Yes, easier than getting used to Android, the framework :) Aug 05 18:47:20 You might want a quick primer on Java Aug 05 18:47:40 I'm assuming you both have program experience? Aug 05 18:47:51 or strictly app program experience? Aug 05 18:48:25 both Aug 05 18:48:38 i have web(php, laravel) and now just playing with android(not commercial) just in free time :D Aug 05 18:49:28 I'm not really enthusiastic about programming. There's no getting around Java? Aug 05 18:49:39 I don't particularly like the language Aug 05 18:50:28 sorry. you’ll kinda just have to get over it Aug 05 18:51:04 Caveaus, Xamarin in Visual Studio is an alternative if you prefer or already know C# Aug 05 18:51:24 Its just like other OOP languages, very easy and has all you need Aug 05 18:51:49 I'm gonna stick with Java, I don't know any C3 whatsoever Aug 05 18:52:07 c# Aug 05 18:52:21 It’s best to stick with the platform language, at least while starting Aug 05 18:52:24 c# is similar to Java Aug 05 18:52:49 many of the multiplatform things and alternatives have their own bugs on top of the platform idiosyncracies Aug 05 18:53:00 if you don't know any C#, and don't know any Java, considering how buggy and generally unstable Android Studio is, it might not be a terrible idea to consider Xamarin, I'm leaning on porting to Xamarin as we speak Aug 05 18:53:13 no Aug 05 18:53:18 AS is not buggy or unstable Aug 05 18:53:26 you think AS is buggy? Aug 05 18:53:26 it is very buggy and unstable in my experience Aug 05 18:53:29 not at all Aug 05 18:53:32 no, it’s not. Aug 05 18:53:36 no definitely. Aug 05 18:53:36 yes, it is indeed Aug 05 18:53:40 it’s definitely better than Xamarin Studio Aug 05 18:53:41 it is not Aug 05 18:53:49 you're the only one who thinks that azv4 :) Aug 05 18:53:52 ok Aug 05 18:53:53 xamarin is worse than android studio Aug 05 18:53:54 hahhaha Aug 05 18:54:00 azv4 is just a troll Aug 05 18:54:01 ignore Aug 05 18:54:06 well Im talking against a bunch of Google employees most likely heh Aug 05 18:54:12 how do i text my app, does visual studio have a phone simulator? Aug 05 18:54:17 test* Aug 05 18:54:24 wrong Aug 05 18:54:25 Xamarin : when you don't care enough to learn either iOS or Android. Aug 05 18:54:28 azv4 no google employees here Aug 05 18:54:29 almost no googlers are active here Aug 05 18:54:34 but I've been hacking away at this app I inherited for a few weeks and am in awe at how many issues I've encountered Aug 05 18:54:41 how much experience do you have with Xamarin? Aug 05 18:54:56 i have never heard of xamarin Aug 05 18:54:57 Caveaus: Download Android Studio, it has everything you need. And also i recommend testing with your own phone. Just enable usb debugging Aug 05 18:55:08 azv4, did you increase your RAM in AS? Aug 05 18:55:19 issues? in android studio? for the most part, there are few Aug 05 18:55:29 MikeWallaceDev, no, what does this help with? Aug 05 18:55:40 helps with not having issues :D Aug 05 18:55:46 the canary channel has issues, but it’s the damn canary channel. It’s pre-release software Aug 05 18:56:07 the DCC. Damn Canary Channel :D Aug 05 18:56:08 I already installed android studios Aug 05 18:56:28 The real question is can I learn java while im on it or will i have to go to other resources to learn the language Aug 05 18:56:38 that depends on you Aug 05 18:56:57 Isn't canary like pre-pre-pre-realease? Canary->???->beta->release Aug 05 18:57:05 you can. it might be nice to have a java reference nearby while you do it Aug 05 18:57:25 knowing XML is equally helpful Aug 05 18:57:43 canary is dog food Aug 05 18:57:45 Also, how do you guys come up with app ideas? Aug 05 18:57:47 as far as I am concerned, AS is IDEA + Android stuff. So it IS a Java IDE Aug 05 18:57:53 Do you just build off of someone else? Aug 05 18:58:18 Booze, lots of booze. Aug 05 18:58:34 I'm not old enough for that Aug 05 18:58:55 we all write to an old guy in Cleveland. Aug 05 18:59:02 that’s where all the ideas come from Aug 05 18:59:10 you write to him, and he sends you back the idea Aug 05 18:59:12 Caveaus, if you can envision something that would save people time by having an app, then check to see if it exists already, and if it doesn't, make it, if it does, make it better Aug 05 18:59:18 Same for books, movies, and tv shows Aug 05 18:59:31 azv4: Thank you Aug 05 18:59:55 * g00s wonders who this old guy in Cleveland is Aug 05 19:00:02 is there nobody using the NDK in Android Studio? it seems all the docs i can find are outdated Aug 05 19:00:06 Caveaus, It sounds stupid, but do whatever you want to do. Whatever you think it fun Aug 05 19:00:15 oftc_ftw, welcome to Android development Aug 05 19:00:27 Some Friday #AndroidDev going on! pic.twitter.com/mg1COpLbVc Aug 05 19:00:28 hi and thanks! Aug 05 19:00:40 ha, cool, I can just copy paste a tweet :) Aug 05 19:00:43 Well, I want to kinda make money with my app Aug 05 19:00:56 So I want to do something people will love Aug 05 19:01:11 Sorry, this channel is only for people who lose money on app development and hate every second of it... Aug 05 19:01:13 Caveaus, you might, kinda, want to learn how to make an app first :) Aug 05 19:01:15 cat pictures Aug 05 19:01:24 right Aug 05 19:01:27 ^^^^ Aug 05 19:01:45 an app with nothing but cat pics Aug 05 19:01:59 will google play bring money unless you have paid version or addon? Aug 05 19:02:01 dating app Aug 05 19:02:01 That's already been invented. It's called the internet Aug 05 19:02:02 shake phone, new cat picture appears Aug 05 19:02:14 hahaha Aug 05 19:02:16 vol4ko: What do you mean? Aug 05 19:02:25 a picture of a cat being shook :D Aug 05 19:02:28 advertisements bring moneny to app? lol Aug 05 19:02:38 can you make money with android app at google play without having commercial version? Aug 05 19:02:44 ads Aug 05 19:02:45 not only paid versions Aug 05 19:02:46 and are ads obligatory? Aug 05 19:02:58 if you want to make money, and don’t want to charge for the app, pretty much Aug 05 19:04:17 do i need to add any gradle plugin in order to create ndk libraries? Aug 05 19:05:55 I just had an app idea, I'll give it to you for free. "GroupArt", an art app where a user has 25 seconds to draw something on a screen then the work is sent to another random/semi-random users of the app, and they get 25 seconds to contribute Aug 05 19:06:18 damn, I like it. Aug 05 19:06:23 I can do this all day Aug 05 19:06:24 that’s not a bad idea Aug 05 19:06:48 please give me 1% of profits if you are so inclined Aug 05 19:07:00 (goes to register www.groupart.com ) Aug 05 19:07:18 and also log into my machine and look into this project and tell me why after days of pissing about the themes still do not work on any damned activity Aug 05 19:07:29 hahahaha Aug 05 19:07:43 Sorry, it's just that I heard you mention that yesterday :) Aug 05 19:07:59 I do many things each day, but this has been a part of every one of my days for a week I think Aug 05 19:08:33 I keep reading and practicing more and more of fundamentals of Android development, and with further understanding comes more mystery as to why these themes still wont work Aug 05 19:08:59 there is something causing the whole app, except main activity, to default to an unknown theme Aug 05 19:09:26 the main activity is the only one which I can modify the theme or any style and expect the changes to make it to runtime Aug 05 19:09:33 but they all work perfect in layout builder... Aug 05 19:09:37 the awkward moment when you get some random idea and in same time you like to code. You just sit and start coding and after some time when errors appear and it all doesn't go very well you just don't want to continue and telling yourself how bad the idea you got is Aug 05 19:10:05 patience is a virtue! Aug 05 19:10:29 agreed, but sometimes is hard to stay patient :D Aug 05 19:10:40 * azv4 says this over and over again as he wishes he had a piñata to destroy over being angry about theme problem Aug 05 19:12:50 android theme system is ... meh Aug 05 19:13:20 g00s, I can't even get simple font color changes to apply Aug 05 19:13:28 i much preferred how windows phone did it. you don't wind up in these stupid issues, with your app having a dark theme, and then you call out to some android system UI picker with a light theme ... Aug 05 19:13:28 there is something very borked about this app I think Aug 05 19:14:01 azv4 something wrong on your side, the system works fine - just think the design of it is crap Aug 05 19:15:17 g00s, I've looked in every line of code and xml for any code that would lock in a default theme Aug 05 19:15:38 I copied project into a test and removed every bit of style and theme in the whole project Aug 05 19:15:45 and the problem persists Aug 05 19:16:02 I remember every style and theme use and the app still looks exactly the same, Aug 05 19:16:07 I remove* Aug 05 19:17:12 it is almost like there is some option hidden in some preference somewhere that is set to, "FORCE EVERY ACTIVITY TO USE USELESS THEME WITH DARK GREY ON BLACK BACKGROUND WITH UGLY BLUE HEADER" Aug 05 19:17:37 azv4 sorry, sounds like pebkac :D Aug 05 19:17:43 this firebase looks amazing Aug 05 19:17:57 azv4 last i/o had a nice talk about themes, did you watch it ? Aug 05 19:17:58 g00s, that's nice, but how to fix this user error? Aug 05 19:18:28 g00s, I can't watch videos, I can only use the official documentation Aug 05 19:18:32 i'm guessing you inherited from the wrong theme, or applied a style to a widget that has no parent, or some dumbass thing like that Aug 05 19:19:00 azv4 can't watch videos ? well if its any consolation, its an official video from google Aug 05 19:19:28 g00s, but there is no applied style in whole project, there is no applied theme, then I put code in manifest to apply one canned theme to one activity and it never applies Aug 05 19:19:32 I check all parents Aug 05 19:19:33 maybe i am new, but what kind of system is that "theme system"? Aug 05 19:19:41 it's hell Aug 05 19:20:04 of course it applies in the layout editor... Aug 05 19:20:21 "FORCE EVERY ACTIVITY TO USE USELESS THEME WITH DARK GREY ON BLACK BACKGROUND WITH UGLY BLUE HEADER" Aug 05 19:20:24 I can verify the code is added, but it is never applied at runtime Aug 05 19:20:37 but the apps and even the sites use same header nowdays Aug 05 19:21:12 so every apps use a dark grey text over black background? so no app has visible text anymore? I doubt that... Aug 05 19:21:40 HOnestly I wish that were true so every user could throw their google phones in the trash and I could continue developing our app on iOS where I don't have these issues, ever Aug 05 19:22:09 * azv4 could list a bunch of other not fun issues from iOS, but not one concerning style! Aug 05 19:25:05 is the firebase cloud messaging, auth, realtime db, all of that free? Aug 05 19:26:14 android is free at least Aug 05 19:26:49 this is like incredible. Was this googles answer to amazon web services? Aug 05 19:26:53 would you pay $99 a year to have a very pleasant and consistently helpful community behind you? Aug 05 19:27:29 azv4 i would. Aug 05 19:27:42 seems like a bargin Aug 05 19:27:53 *bargain Aug 05 19:28:18 i'm finally getting into user authentication and cloud based services, what do you guys use for that? Aug 05 19:29:13 we personally have a .net serverside service running on windows server and MSSQL Aug 05 19:29:22 and communicated with it via serialized xml Aug 05 19:29:57 it is nice and slow and expensive, but easy to setup, admin, develop for Aug 05 19:33:08 parco, I think Google offers those services Aug 05 19:33:40 Google Identity Platform Aug 05 19:33:52 * pfn never has theming issues on android Aug 05 19:33:57 and I've shipped so many apps over the years Aug 05 19:33:59 a shitton Aug 05 19:34:05 Google CloudPlatform Aug 05 19:34:17 ok cool Aug 05 19:34:29 and all heavily using themes Aug 05 19:34:54 pfn, This is my 1st run, and it's a project imported from Eclipse, and it hadn't been updated since API4, so I think there is something very deeply wrong that is not obvious, it is also a pretty large app Aug 05 19:35:25 not going to be easily rebuilt, and if I decide that is my only choice, I will be using Xamarin I think, since Im pretty adept with .Net and C# Aug 05 19:35:45 probably shipped >10 apps that have at least 250k downloads each and many of them being >1m downloads Aug 05 19:39:29 Would you like to be hired as a consultant to sort this out? Aug 05 19:39:53 I'd be more than happy to pay someone to sort this out so I can move on to the next annoying bug Aug 05 19:49:28 Which translation platform would you recommend for an Open-Source Android App (on GitHub)? Should be easy to update translations (new ones and translated). Crowdin? Transifex? Aug 05 19:51:32 oftc_ftw: I think the getting started stuff for Studio + NDK is just the samples Aug 05 19:51:54 iirc you can just open them from studio Aug 05 19:52:29 danalbert: i've gotten much further now, thanks. at the moment some error because of a missing libjnidispatch.so is happening Aug 05 19:52:40 didn't do much googling though, still on it Aug 05 20:22:08 I think the workspace.xml file is the key to all of my troubles Aug 05 20:22:21 why it doesn't appear within the damned project view is beyond me Aug 05 20:25:30 Google should ditch the import as a Project from Eclipse utility Aug 05 20:25:44 it is very incomplete and causes more work than it saves Aug 05 20:25:58 you’re probably better off just creating a new project in AS and copying files over Aug 05 20:26:00 I know I was warned of that, but I choose to trust Google and not whoever in here told me Aug 05 20:26:16 well I'm getting closer to having the understand on how to do that s73v3r Aug 05 20:27:29 create a project with a default activity (basically anything but Blank Project). Then open the folder where it put those, and add your source files there, while deleting the generated ones Aug 05 20:28:05 copy the list of activities/services/receivers, etc from the existing manifest to the newly generated one Aug 05 20:28:56 I'm a little wary of that step because the previous author of the app used such bad form in implementing his manifest file, but I will just strip out the stuff in there that I feel should be elsewhere Aug 05 20:29:25 you may be able to just copy over the whole manifest file to start Aug 05 20:29:43 what will I be leaving behind in the old project that could cause issues with the new? Aug 05 20:29:54 workspace.xml and similar files? Aug 05 20:30:11 not much, I don’t think. Workspace.xml is an Eclipse thing Aug 05 20:30:16 do newly created apps in 2.1 still have a workspace.xml? Aug 05 20:30:19 no Aug 05 20:30:28 workspaces are strictly an eclipse thing Aug 05 20:30:38 I cant find the link in my app that points to the workspace.xml for theme definitions Aug 05 20:30:49 there isn’t one Aug 05 20:31:05 and that is why themes are defaulting to this unuseable theme I suppose... Aug 05 20:31:20 again, workspace.xml is an ECLIPSE thing. not an android thing Aug 05 20:31:30 well obviously I understand that Aug 05 20:31:43 but Im trying to explain why I my app doesn't allow any themes heh Aug 05 20:31:47 so it’s not going to have anything to do with themes Aug 05 20:32:08 if I can understand, I can write a blog that can help people in my same boat Aug 05 20:32:09 the manifest does list a theme, and can have one per activity. Aug 05 20:32:27 I can list any of the canned themes for an activity in my manifest and they are ignored Aug 05 20:32:35 that is why Im beating my head off my keyboard Aug 05 20:33:19 recreate the project little by little Aug 05 20:33:21 well it is quitting time Aug 05 20:33:29 I appreciate your advice Aug 05 20:33:45 I think a weekend of mental rest will have me ready to make new project monday morning Aug 05 20:33:47 have a nice weekend Aug 05 20:38:41 is there anything like this for android ? http://www.thuraya.com/SatSleeve Aug 05 21:02:40 Hola people Aug 05 21:03:49 hi there, when I use https://developer.android.com/training/keyboard-input/visibility.html#Respond the keyboard pushes up the linear layout i've in the middle of the screen Aug 05 21:04:10 how can I move also other parts of the screen which are positioned with a margin on the top of the layout? Aug 05 21:06:18 Do the Gods of Google allow port knocking by any chance? Aug 05 21:14:36 eb Aug 05 21:14:41 oops Aug 05 21:23:11 what wifi does it use when you enter odin mode for factory reset? Aug 05 21:23:16 does it read it from the current installation? Aug 05 21:24:07 odin? Aug 05 21:24:19 or maybe it's a samsung specific thing Aug 05 21:24:26 it's what you use to flash new firmware Aug 05 21:24:33 hold power home and volume down Aug 05 21:24:40 i think that’s a samsung thing Aug 05 21:24:45 yeah could be Aug 05 21:24:52 it’s also not in scope of this channel Aug 05 21:25:06 so we’re not really gonna know much about it Aug 05 21:26:32 yeah sorry, i thought it was an android thing Aug 05 21:27:02 even if it was, flashing firmware isn’t really a thing here either Aug 05 21:27:06 that’d be #android-root Aug 05 21:27:24 well i'm just trying to get the original factory setting which passes through odin mode (apparently) Aug 05 21:27:31 that;s how you would reset a locked phone for example Aug 05 22:15:04 so let’s spend this friday afternoon waxing poetically about android design philosophy Aug 05 22:15:35 Saturday here, I'm out Aug 05 22:16:21 so the olympics ceremony is about to start soon isnt it Aug 05 22:19:13 i believe so Aug 05 23:01:34 Hi all. I'm new to using bluetooth low energy and have been tasked with adding support for a BLE device with and app minSdk of 18 (Android 4.3). Does anyone have suggestions on libraries I should use to make this bluetooth feature less painful to implement? Or should I just work with the raw v18 APIs? Aug 05 23:09:31 https://github.com/Microsoft/BashOnWindows/issues/746 Aug 05 23:09:32 wow, that sucks Aug 05 23:10:13 liuwenhao can you convince them to minSdk = 19, ? 18 sucks Aug 05 23:10:25 19 sucks too, but too many people are on it Aug 05 23:11:36 liuwenhao http://motherboard.vice.com/read/when-the-internet-came-to-everest Aug 05 23:11:48 4.3 has 2.4% -- thats pointless Aug 05 23:12:04 oops lol, wtf Aug 05 23:12:12 liuwenhao https://developer.android.com/about/dashboards/index.html Aug 05 23:12:26 forget the mount everest internet article :D Aug 05 23:12:53 What are the differeneces between 18 and 19 for BLE? Aug 05 23:13:03 We are on 16 now but we need to bump it to support this Aug 05 23:13:18 18 was the first attempt Aug 05 23:13:22 "attempt" Aug 05 23:13:39 bluedroid was in 17 but ble wasn't enabled then Aug 05 23:14:00 19 is better. 21 is better still Aug 05 23:14:35 I would love to bump to 21 but there is no way they would ever go for it (since a lot of our userbase for this app is older people) Aug 05 23:14:48 Think: lots of low end samsung phones Aug 05 23:15:00 well, as mentioned, 4.3 only has 2.4% so that not many Aug 05 23:17:29 Yeah. I will bump it to 19, I don't think they will have a problem with that Aug 05 23:17:29 also there are deprecated methods from 18 in 21 Aug 05 23:17:45 scan related Aug 05 23:18:15 So most people just use the frameworks API wrappers I'm guessing? Or are there some libraries I should be looking at Aug 05 23:18:28 liuwenhao there are 2 libraries, one is pretty expensive - the other is open source Aug 05 23:19:17 the expensive one is sweetBlue. i evaluated a product that uses this library, and its still screwed up so ... Aug 05 23:19:48 bitkiller did you see this? https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library Aug 05 23:19:58 so many compat libraries ... Aug 05 23:20:07 soon we'll need a directory of all them Aug 05 23:20:08 yep, i knew that Aug 05 23:21:03 i used it in my RxBleAndroid fork Aug 05 23:21:19 the fork was just to add the compatibility Aug 05 23:21:31 thus it could be called RxBleAndroidCompat Aug 05 23:22:22 liuwenhao https://github.com/iDevicesInc/SweetBlue Aug 05 23:22:37 yep, too much compat, and as the api level increases, more compat libs are added Aug 05 23:23:21 g00s: Looks interesting, but GPL so we can't use it (and I know boss won't want to pay that much for licensing) Aug 05 23:24:17 i may be wrong but compatibility should be transparent to end developers Aug 05 23:25:27 liuwenhao so - you're going to need to have access to lots of test devices Aug 05 23:26:20 g00s, the open source one is this GPL version? Aug 05 23:28:20 bitkiller having a hard time remembering the open source library ... Aug 05 23:29:00 So apparently Samsung and HTC had (have?) their own BLE SDKs... is that something I should look into, or have they been made obsolete by Android's implementation? Aug 05 23:29:19 obsolete Aug 05 23:30:05 as i said, the one i used in the latest project is the RxAndroidBle, but it may be also expensive (time expensive) due to rxjava Aug 05 23:34:07 bitkiller you worked on scenario when multiple devices connected at the same time ? Aug 05 23:37:18 no Aug 05 23:39:32 i tested that scenario with SDP/RFCOMM Aug 05 23:39:48 i don't remember the result Aug 05 23:40:11 the result i had, was anything destabilized anything Aug 05 23:40:27 if i had a rfcomm and ble connection at the same time, it would work a little but Aug 05 23:40:33 *little bit Aug 05 23:40:48 but eventually, hell would break loose, stuff would all disconnect, etc Aug 05 23:42:49 i've found this: https://github.com/litesuits/android-lite-bluetoothLE Aug 05 23:44:22 some days ago i was testing ble and network (wifi and cell) would go up and down randomly Aug 06 00:12:14 bitkiller yeah , i see that too (wifi drops) Aug 06 00:16:53 haha "Through the tweet, Evan Blass could also be suggesting that Verizon’s variants of the new Nexus devices will not be offering a totally stock Android experience and may come with some of the carriers own apps pre-installed." Aug 06 00:17:07 http://www.androidheadlines.com/2016/08/rumor-verizon-might-rename-googles-upcoming-nexus-devices.html Aug 06 00:25:54 g00s They're getting there 😛 http://arstechnica.com/information-technology/2016/08/firefox-48-ships-bringing-rust-mainstream-and-multiprocess-for-some/ Aug 06 00:26:19 capella2 yeah i have plugins Aug 06 00:26:34 <[Saint]> newsflash: Vendor makes use of dedicated vendor partition added truly ages ago to supply vendor apps on a Nexus device. Aug 06 00:26:36 (privacy badger and noscript) - so i think its disabled Aug 06 00:26:38 <[Saint]> More spooky news at 11 Aug 06 00:27:36 <[Saint]> I mean, we already lived through this with the Nexus 6. Aug 06 00:27:42 <[Saint]> It wasn't a shock then. Aug 06 00:28:04 <[Saint]> They gave them a nice little area to dump all their vendor garbage in ages ago. Aug 06 00:29:23 [Saint] does VZ or Google push OTAs for VZ Nexus devices ? Aug 06 00:29:43 when i read this, sounds like VZ http://www.verizonwireless.com/support/google-nexus-6-update/ Aug 06 00:30:32 <[Saint]> The former, yes. Aug 06 00:32:03 you have got to be shitting me, thats 180 degrees out from googles stated update procedures Aug 06 00:39:15 <[Saint]> You obviously don't rmember the clusterfuck that was toro/toroplus then? Aug 06 00:39:44 <[Saint]> getting carriers on board with Nexus devices was an...interesting move. Aug 06 01:49:48 eh, still no i/o 2016 sources ... Aug 06 01:50:21 :( Aug 06 01:50:32 *iosched Aug 06 01:50:39 they said it would be released sooner this time :D Aug 06 01:51:00 well, i guess there was lots of room for improvement from last year, wasn't it like 10 mos later Aug 06 01:51:15 I just found out my favourite cal/card dav server has gone commerical, they want $750.00 a year to access the stable builds :( Aug 06 02:32:32 can anyone suggest an augmented reality sdk for Android that is similar/analogous to IOS's pARk? **** ENDING LOGGING AT Sat Aug 06 02:59:58 2016