**** BEGIN LOGGING AT Tue Sep 06 02:59:58 2016 Sep 06 03:00:35 beef tallow fries sound yum Sep 06 03:01:11 what about a salad with little olive oil? Sep 06 03:01:54 !games eightball what about a salad with little olive oil? Sep 06 03:02:55 BlackGold: are you ok? Sep 06 03:04:06 no Sep 06 03:04:13 Can I help you? Sep 06 03:06:35 I was messing around with supybot and accidentally posted it in this channel so relax. Sep 06 03:07:50 I'm relaxed Sep 06 03:08:36 Just don't say you are not ok if you are just messing around with your supybot Sep 06 03:13:24 jfpoole: hi Sep 06 03:13:25 well I'm not alright...I'm bored and messing around with ircbot lol Sep 06 03:13:36 ok Sep 06 03:13:42 ohai Sep 06 03:14:39 Guys there is a real filesystem inside my smartphone! Sep 06 03:15:30 everything was created in 1970, though Sep 06 03:15:38 it must be a very old computer Sep 06 03:15:45 that's why it's slow Sep 06 03:21:47 I'm not getting my file back Sep 06 03:23:00 I mean, if I ask for the whole picture file I'm not getting anything. It seems Sep 06 03:25:04 what are you talking about Sep 06 03:29:57 bankai_: I think his mentioning of the 70's somehow relates to Unix, which was designed back then and which is the foundation of Linux which is what runs on the phone. As for the rest of his ramblings, I have absolutely no idea. Sep 06 03:30:05 I'm learning how to take pictures with intent. If I take a picture and don't ask for the whole file, I get a thumbnail. If I pass a file object inside the intent, I should get a file with the whole image but when I check the size of the image, width and height are zero Sep 06 03:31:46 bankai_: Oh, the 1970 thing is because if you check the filesystem inside your device you'll find lots of file and folders with a timestamp "0" which is shows up as a date in 1970 as per Unix conventions. Sep 06 03:32:11 bankai_: no idea of why they have such timestamp Sep 06 03:35:27 Arancio: I wouldn't expect to see files with date 0. Sep 06 03:35:42 That's very ugly. Sep 06 03:37:22 I don't know. This is my first smartphone and today it's the first time I look into its filesystem Sep 06 03:39:31 loke: I'll keep that in mind Sep 06 03:46:08 does anyone have a suggestion for handling CRUD of a model? should i have 1 fragment each for create/detail/update, or same fragment with just different args in the bundle...? Sep 06 03:47:23 have a look at how the contacts app does it Sep 06 03:49:09 https://github.com/android/platform_packages_apps_contacts/tree/master/src/com/android/contacts this one? Sep 06 03:49:55 I was trying to use smack lib in my android project so i added these smack lines in my gradle deps , my repository is jcenter also these packages are up on jcenter (https://bintray.com/bintray/jcenter/org.igniterealtime.smack:smack-android-extensions & https://bintray.com/bintray/jcenter/org.igniterealtime.smack:smack-tcp ) this is the error i get while ./gradlew build http://paste.ubuntu.com/23139841/ and this is my complete gradle file Sep 06 03:49:55 http://paste.ubuntu.com/23139842/ Sep 06 03:52:22 Is it normal for Android file path to have the "file:" prefix, to be actually some URIs? Sep 06 03:55:48 bankai_, not sure but it looks like the contacts app only has a list view and an editor view - presumably the editor view is detail, create, and update combined into 1 - that could be a good solution Sep 06 03:55:55 is that what you meant? Sep 06 03:56:10 yes Sep 06 03:57:01 alright that sounds good, so just display the info in a single UI and you can update in place Sep 06 03:57:03 easy peasy Sep 06 04:02:44 greves: could you help me with my photo problem? Sep 06 04:03:16 Arancio, i can try, but i'm not that great at android as you can see ;P Sep 06 04:04:06 greves: you look much better than me at Android. Did you ever take pictures with an implicit Intent? Sep 06 04:05:39 no, but i know how to do it Sep 06 04:06:38 let me see up 1 sec Sep 06 04:07:56 can you show your code? Sep 06 04:08:34 greves: this is my main code: http://pastebin.com/eDkrLnMC Sep 06 04:09:03 as you see it now I'm using takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI); to get the whole picture file Sep 06 04:09:34 previously I was not using that extra and it was working ok. I took a picture and got a thumbnail of it alright Sep 06 04:11:06 This is the helper class BitmapUtil: http://pastebin.com/CTKxEsN7 Sep 06 04:11:29 ya this is pretty much copied from docs right? https://developer.android.com/training/camera/photobasics.html Sep 06 04:11:48 I used loadScaledBitmap() to try to load a scaled version of the image to be displayed (make my thumbnail). Sep 06 04:12:10 The code follows https://developer.android.com/training/camera/photobasics.html Sep 06 04:12:17 I only refactored it a bit Sep 06 04:12:24 sorry, exactly Sep 06 04:12:51 I only refactored it a bit not much Sep 06 04:14:45 Andy80: it's normal Sep 06 04:14:58 sorry, not that person Sep 06 04:15:03 Arancio: yes, its normal Sep 06 04:15:51 gordon_: I'm debugging and I see that the photo URI that I'm passing and the file path from which I attempt to retrieve the image are not the same! Sep 06 04:16:30 well.. for getting image new androids use content provider path Sep 06 04:16:34 which is pain in ass Sep 06 04:16:53 photoURI is content://com.gk.takingpictureseasily/my_images/JPEG_20160906_061445_-1119417689.jpg Sep 06 04:17:05 yep, this Sep 06 04:17:14 mCurrentPhotoPath is file:/storage/emulated/0/Android/data/com.gk.takingpictureseasily/files/Pictures/JPEG_20160906_061445_-1119417689.jpg Sep 06 04:17:22 it's the same file Sep 06 04:17:32 Shouldn't they be the same? Sep 06 04:17:59 whew, back to a stable network Sep 06 04:18:07 I mean.. it's the same file so it doesnt matter Sep 06 04:18:08 It's ok that they are not the same URI? Does the provider translate the URIs' Sep 06 04:18:15 it's ok Sep 06 04:18:20 ok Sep 06 04:18:32 Then I don't have a clue of why I can't load the image back Sep 06 04:18:34 then Sep 06 04:18:44 it's pain in ass ;) Sep 06 04:19:29 Ok, thanks anyway Sep 06 04:19:41 which one are you loading from ? Sep 06 04:19:44 content one ? Sep 06 04:19:45 or file Sep 06 04:19:51 mCurrentPhotoPath Sep 06 04:19:59 try photo uri Sep 06 04:20:18 setThumbnailBitmap(BitmapUtil.loadScaledBitmap(mCurrentPhotoPath, mThumbnailImageView.getWidth(), mThumbnailImageView.getHeight())); Sep 06 04:20:38 I think it would work on android < 4.4 Sep 06 04:20:47 The original code is Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions); Sep 06 04:21:05 it uses mCurrentPhotoPath too Sep 06 04:21:42 https://stackoverflow.com/questions/4887297/android-how-to-load-image-into-bitmap Sep 06 04:21:44 use this Sep 06 04:21:48 should work Sep 06 04:22:27 as path is the same, afaik android is doing something to secure files Sep 06 04:23:33 That's a completely different case. Well, thanks anyway, gordon_ Sep 06 04:23:39 np Sep 06 04:30:59 pfn: actually the camera is emulated just fine as I imagined it could be. You just have to enable it. What were you saying? Don't spread misinformation, please Sep 06 04:33:07 it doesnt always work Sep 06 04:38:50 hi my friends Sep 06 04:40:01 hi our friend Sep 06 04:40:17 can we be of any help? Sep 06 05:18:34 anyone use dagger 2? Sep 06 05:20:08 many people Sep 06 05:21:13 me Sep 06 05:21:21 nice Sep 06 05:21:25 lol Sep 06 05:21:26 thanks Sep 06 05:21:41 i'm just trying to figure it out Sep 06 05:21:46 good luck Sep 06 05:21:51 it's quite pain ;) Sep 06 05:22:02 have you used method injection? Sep 06 05:22:13 opilkin: I don't use it Sep 06 05:23:03 field injection is cool, but i don't get method injection Sep 06 05:23:12 opilkin: I inject by field Sep 06 05:23:30 it problably works the same as field Sep 06 05:24:05 method injection is cool Sep 06 05:24:22 what part of the method does it inject Sep 06 05:24:42 opilkin: parameters Sep 06 05:24:58 https://frogermcs.github.io/dependency-injection-with-dagger-2-the-api/ Sep 06 05:26:15 ahh, i went through that guide before Sep 06 05:26:23 i just found it ;) Sep 06 05:26:48 I had the most problems with scopes and dependencies Sep 06 05:27:05 are you supposed to make an explicit call to the injected method? Sep 06 05:27:18 oh yea, scopes and dependencies were tough at first Sep 06 05:27:19 define explicit call Sep 06 05:27:46 (I havent used injection method) Sep 06 05:28:10 might take a look, maybe it will help with my presenters Sep 06 05:28:34 so like say I have @inject public Basket makeBasket(Stuff stuff) {} Sep 06 05:28:54 and explicit call would be makeBasket(stuff) Sep 06 05:29:06 but i'm kinda hoping that stuff is getting injected Sep 06 05:29:10 it's the availability of the connection once established, irrelevant to individual invocations Sep 06 05:29:16 if it doesnt, it wouldnt make sense Sep 06 05:29:23 I mean, if you need to call it Sep 06 05:29:49 eh.. spring was so easy :P Sep 06 05:29:54 or guice Sep 06 05:30:02 so can I call makeBasket(null) then? and i'll still get my basket? Sep 06 05:30:19 no Sep 06 05:30:24 aw Sep 06 05:30:54 you will get your 'Stuff' when you inject whole Basket object somewhere Sep 06 05:31:21 at least I think it works like that ;) Sep 06 05:31:41 View and Presenter example makes more sense than Basket and Stuff Sep 06 05:31:47 hm interesting Sep 06 05:31:52 since you're injecting Presenter into View Sep 06 05:33:46 yea i guess, if you're doing MVP Sep 06 05:38:48 Why does File.createTempFile() sometimes add a "-" after the prefix and sometimes doesn't? Sep 06 05:43:29 backtrack the source Sep 06 05:43:49 ? Sep 06 05:44:10 Ok I found the fix for the bug Sep 06 05:44:20 I found it on StackOverflow Sep 06 05:44:29 oh well Sep 06 05:44:39 there was any chance for me to find it otherwise Sep 06 05:45:01 the fix is "just don't use method X, use method Y instead" Sep 06 05:45:21 ridiculous Sep 06 05:45:27 it's in the source Sep 06 05:45:43 probably right next to it Sep 06 05:45:44 They should at least fix the Android documentation Sep 06 05:45:57 capella-5x: what are you talking about? Sep 06 05:46:02 docs are always assumed wrong Sep 06 05:46:39 heh, never entirely sure 🙂 Sep 06 05:46:53 retarded programmers keep they documentation wrong Sep 06 05:46:56 Did you figure out the "-" problem Sep 06 05:47:07 No. It's a minor curiosity Sep 06 05:47:16 I just noticed it during debugging Sep 06 05:47:17 oic Sep 06 05:47:31 It doesn't affect what I'm doing Sep 06 05:47:38 It's just... strange Sep 06 05:47:44 noted Sep 06 05:47:52 are you bored? Sep 06 05:48:01 little ☺️ Sep 06 05:48:26 what about poking your left eye with your right middle finger? Sep 06 05:49:06 usual dev friend crashed early, and I think I alienated g00s with my frivolity Sep 06 05:49:23 capella-5x: woooo! thank you for testing unicode on my terminal! it works! Sep 06 05:49:41 I'm sorry to hear that Sep 06 05:49:59 unintentional, but, k 👍 Sep 06 05:50:35 the unicode was Sep 06 05:50:50 capella-5x: :) Sep 06 05:51:37 capella-5x: what does 5x mean in your nick? Sep 06 05:52:22 differentiate mobile vs. just capella which is my desktop nick Sep 06 05:52:33 ah ok Sep 06 05:52:46 I have the same device Sep 06 05:53:03 Now we are friends Sep 06 05:53:17 does yours display shadow touch spots during charging? Sep 06 05:54:40 you'd have to have "show touches" enabled in dev options Sep 06 05:55:11 I don't understand what you mean Sep 06 05:55:47 It just has a big battery on the screen while charging Sep 06 05:56:23 Leeds: hi! Sep 06 05:57:40 charging while device is active Sep 06 05:58:00 hey guys. what's your preferred CI environment for android these days? Sep 06 05:58:14 Oh, I never did that. I have a short recharging cable. Can't use it while charging at the moment Sep 06 05:58:27 I don't use it much. Just to the the applications Sep 06 05:58:43 not really important, I'm trying to rule out cyanogenmod Sep 06 05:58:53 teasp00n: hey! Sep 06 05:59:18 mines a 6' cable I ordered on advice of the Google tech Sep 06 05:59:51 Arancio: yo Sep 06 06:01:00 teasp00n: Circle CI Sep 06 06:01:40 I'll have to buy some accessories too as soon as I actually start using it Sep 06 06:01:51 Arancio: yeah i was leaning towards that :) Sep 06 06:02:19 teasp00n: what do you mean? Sep 06 06:02:23 CI env? Sep 06 06:02:38 a way to talk to adb? or what? Sep 06 06:03:25 squ: continuous integration. part of the software development lifecycle that becomes quite useful when you're not the only dev working on a codebase Sep 06 06:03:48 I see Sep 06 06:04:24 I thought command line interface :) Sep 06 06:05:02 teasp00n: squ basically some tool that can execute builds, run tests, perform static analysis etc and produce reports for the devs. can also use the output as inputs into other parts of the developemnt workflow like validating pull requests etc Sep 06 06:36:51 http://spectrum.ieee.org/tech-talk/telecom/wireless/are-your-apps-sluggish-blame-summer Sep 06 06:37:01 so summer is all year Sep 06 06:41:54 GODAMM SUMMER!!! Sep 06 06:47:14 Ashiren: I KNEW IT! Sep 06 07:02:31 localized a bug, camera2 and exoplayer depend on the way activities are transitioned Sep 06 07:16:04 anyone here with the experience of google map api Sep 06 07:16:22 i'm having a bad time with it don't know what is wrong with it Sep 06 07:17:48 TERMINALi: what is the problem Sep 06 07:17:53 youre gonna have bad time anyway ~ Sep 06 07:18:57 squ, although i have registred api and map is loading with it but when i'm trying to do geocoding it is saying request denied on this device Sep 06 07:19:05 Ashiren, why? Sep 06 07:20:21 ah toying with ya Sep 06 07:20:59 TERMINALi: geocoding you mean reverse geocoding? from coordinates to literals? Sep 06 07:21:39 look for a switch for that specific kind of api Sep 06 07:21:54 i have to do reverse coding to but first i was trying just geocoding squ Sep 06 07:22:18 squ,means i have to take diffrent api for that ? Sep 06 07:22:21 just geocoding is what? Sep 06 07:22:50 is there something like a PreferenceScreen that's not for Preference? i need a list of settings but they're for creating a model instance, not for saving into preferences Sep 06 07:22:51 squ, just passing address to get coordinates Sep 06 07:23:04 but i want the interface to be more or less like a PreferenceScreen Sep 06 07:23:15 squ, https://developers.google.com/maps/documentation/geocoding/intro#geocoding Sep 06 07:23:23 this is what i'm trying to do Sep 06 07:24:38 you have to enable that in console Sep 06 07:26:18 it is enabled just got to know i have to take gecoding api separately Sep 06 07:26:52 then I don't know why permission is denied Sep 06 07:27:36 squ, it sarting working thanks man for your time Sep 06 07:27:42 *started Sep 06 07:27:57 what you did? Sep 06 07:28:41 https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous nicely broken... Sep 06 07:28:52 just searched api in the geocoding documentation and enabled it seprately Sep 06 07:29:04 I see Sep 06 07:29:04 Zharf, thanks Sep 06 07:29:20 TERMINALi, it wasn't an answer to anything you might've asked Sep 06 07:29:57 Zharf: how to hide left side panel Sep 06 07:30:11 oh sorry i just saw permission word in it and thought it was for me bad time with permissions caused this Sep 06 07:33:45 Zharf: http://i.imgur.com/UBqOxIz.png Sep 06 07:34:00 how to hide the sidebar, can't see the button? Sep 06 07:34:43 how am I supposed to read that Sep 06 07:39:37 tried clickin on the hamburger button? Sep 06 07:40:46 everything android related sucks, even website Sep 06 07:41:15 I know more things that sucks even more Sep 06 07:49:01 Can I make something like a drawable that has a start, middle and end image and scale dynamically with the length of the text? Sep 06 07:49:16 You know, like they used to do in photoshop pre-CSS3 Sep 06 07:50:32 squ, that's my question as well Sep 06 07:51:54 I used ublock origin to hide the side bar for reading :p Sep 06 07:52:13 gotta love google's outdated docs Sep 06 07:52:19 clickin the hamburger menu works for me there Sep 06 07:53:20 raoul11, pduin: it works :) thought you were kidding about the hamburger, didn't know you call it like so Sep 06 07:53:28 They're too busy raising the salaries of the accountants that find legal loopholes for tax evasion to also spend time on their Android SDK Sep 06 07:55:19 https://design.google.com/icons/ Sep 06 07:55:54 “dehaze” officially Sep 06 07:55:59 lel Sep 06 07:56:02 dehaze huh Sep 06 07:56:04 no idea why Sep 06 07:56:10 No! I won't have it Sep 06 07:56:11 why on website Sep 06 07:56:17 I will keep calling it the hamburger icon Sep 06 07:56:21 indeed Sep 06 07:56:26 hamburger all the way Sep 06 07:56:27 hamburger makes more sense Sep 06 07:58:04 Right, now I wanna eat a hamburger Sep 06 07:58:09 ... and it's only 10AM Sep 06 07:58:47 think ill have one later Sep 06 07:59:04 Hi all, which tools do you guys use to make wireframes? Sep 06 08:05:52 I am stuck on very weird issue, now dont know how to resolve, I have a recyclerview where I am displaying only image and title on each item, on tap of it it goes to detail activity where image, title and overview get displayed. Loading an image in first activity is a 2 step process for which I am using CustomGlideModule means first i fetch the array of ids and rendering the listview and then on background using CustomGlideModule Sep 06 08:06:30 now the issue is that in few ids we dont have images which i dont want to get displayed in my recyclerview but hence the image comes in second call after rendering listview so only option to delete that view after rendering. How can i detect "no image for this id" before rendering the listview? and no option to change API side. Sep 06 08:08:02 what are you doing in background using CustomGlideModule Sep 06 08:08:40 fetching image url and its stream for making another call Sep 06 08:09:26 array of ids is array of urls? Sep 06 08:10:29 no array of id just having simple numeric ids Sep 06 08:11:30 on basis of that id which i am appending it with root url and fetching images from remote Sep 06 08:13:18 so it is array of urls Sep 06 08:13:33 and some of urls are 404 Sep 06 08:14:06 actually in frst call i am getting an object of array having multiple attributes like title, id as well, so by using that id i need to fetch image urls Sep 06 08:14:34 i think I am not able to decribe it properly Sep 06 08:14:36 :( Sep 06 08:15:05 id is an id into json object? Sep 06 08:15:14 yes Sep 06 08:15:25 which refers to a url Sep 06 08:15:51 yes Sep 06 08:16:05 but in next step. Sep 06 08:17:39 some of json fields have null as a url Sep 06 08:17:43 http://pastebin.com/DqLMMZf4wait let me Sep 06 08:17:50 what's that Sep 06 08:17:58 something like this I am getting ...in first api hit Sep 06 08:18:12 oop sorry Sep 06 08:18:19 sorry I am out of this Sep 06 08:19:05 http://pastebin.com/p2KQEDaa Sep 06 08:19:37 sorry it was my mistake Sep 06 08:22:09 so now using tmdb id i am hitting another Api to fetch images using CustomGlideModule, but in some id images are not available which i dont want to display in my recyclerview Sep 06 08:27:21 just hide the image? or avoid the entire listitem until resolved? Sep 06 08:28:06 hide the image hows Sep 06 08:28:28 I can't believe Android's button-designing capabilities suck so much Sep 06 08:28:47 It's CSS1-2 nightmare all over again Sep 06 08:29:08 avoid the entire list item could be a better workaround Sep 06 08:29:13 Waiting for rudimentary features for years Sep 06 08:29:48 ack... CSS... "that stuff" Sep 06 08:30:02 this filtering seems looking quite difficult. Sep 06 08:31:11 min2: to avoid more-than-one list item you will need data structure for indexes which are valid and which rows are skipped Sep 06 08:31:54 when list asks for number of rows, you count valid indexes, or all indexes minus skipped indexes Sep 06 08:32:26 when binding data to a row, relate row position to valid index Sep 06 08:33:54 means somehow i have to render my listview after having valid images.. Sep 06 08:34:27 start by just graying out, disabling skipped rows Sep 06 08:35:18 what do you mean by skpped rows.. how i will come to know which row i need to skipped Sep 06 08:35:32 skipped are those who don't have url Sep 06 08:36:56 but that stuff i may know only after second API hit which i do from CustomGlide module.. for laoding an images Sep 06 08:37:38 but you receive json with array of urls Sep 06 08:37:59 no... that is the only issue Sep 06 08:38:14 how do you load url if you don't have url Sep 06 08:38:26 http://pastebin.com/p2KQEDaa Sep 06 08:38:29 just this Sep 06 08:38:36 what is that Sep 06 08:38:55 a response i am getting for rendering a list view Sep 06 08:39:30 and Sep 06 08:39:40 in list item i am showing title , year and and for image again hitting another api in backround Sep 06 08:39:42 how do you load a url Sep 06 08:39:54 wait.. Sep 06 08:40:45 hi guys Sep 06 08:40:54 http://pastebin.com/Q9tFwLsV Sep 06 08:40:56 you can use placeholder with glide Sep 06 08:41:09 how can i listen for gps accuracy changes? Sep 06 08:41:17 this is the reponse which i am getting in second hit Sep 06 08:41:19 listener or broadcaster? Sep 06 08:41:34 backdrop_path is null where image url comes Sep 06 08:41:47 i want to show a number whenever the accuracy is changing Sep 06 08:42:16 hmmm, I just created a new void function, and IntelliJ is saying that it's missing a return statement. Sep 06 08:42:23 so I added return; to the end of the method Sep 06 08:42:33 and it says "missing return value" Sep 06 08:42:41 is this something I can ignore? Sep 06 08:44:08 sdousley: are you sure it was void Sep 06 08:45:16 min2: check that backdrop_path before displaying the list or remove list items after list display Sep 06 08:45:33 squ: public static Void pullFromUrl is the start of the method Sep 06 08:45:46 sdousley: ask #java about Void Sep 06 08:46:46 will see what they say squ Sep 06 08:47:05 keep us informed about their feedback :) Sep 06 08:48:01 checking backdrop_path before displaying the list seems looking too complicated dont know ho i will able to do it... bu this is what i actually want..might be some observers from CustomGlideModule or track every id Sep 06 08:48:09 squ: void not Void Sep 06 08:48:48 squ: (non-caps v) Sep 06 08:48:50 min2: to remove list items after use this: Sep 06 08:48:52 adapter.data.remove(i); Sep 06 08:48:53 adapter.notifyItemRemoved(i); Sep 06 08:49:14 hi squ Sep 06 08:49:29 yeah that is the only option for me and quite simple..and still thanks for your help :) Sep 06 08:49:58 I was trying to think of a way to make this app have certain behaviours different dependent on Flavor, but without copying the whole .java file Sep 06 08:50:25 so I had the idea of having a class that has static methods that get called in the relevent places, that are setup on the main/other flavors Sep 06 08:52:58 um, k? playing with inheritance Sep 06 08:53:19 so, now, I'm thinking I need an interface for my new class, where would I put the interface, or does it really not matter? As long as it's imported? Sep 06 08:53:48 imported? Sep 06 08:54:33 yeah, so my class would do like: class Foo implements this Sep 06 08:54:43 I'm guessing in that the "this" would need to be an import at the top of the file Sep 06 08:55:19 I have some inheritance working perfectly for flavors on xml files Sep 06 08:55:28 goddamn google docs Sep 06 08:55:30 but as the Java doesn't merge like XML, I wanted a way to not have to copy the java files Sep 06 08:55:51 so instead of including the code in the java file, I'm calling an external class that does that part, then I can just put the code in that class Sep 06 08:56:07 but obviously I want to ensure the classes are the same across all flavors, so add an interface seemed logical Sep 06 08:59:41 hmmm, I added this to my interface Sep 06 08:59:49 public static void pullFromUrl(); Sep 06 09:00:05 but it's saying "Extension methods are not supported at this language level Sep 06 09:00:56 oh, looks like that's only supported in Android-N+ Sep 06 09:02:16 Guys, when I change the orientation to landscape in the designer tab, all views disappear and I can't do anything Sep 06 09:02:22 Has this bug happened to any of you? Sep 06 09:02:26 extension method is an interface static? I need to read more there too... who implements the static? Sep 06 09:03:19 Ah, it's cos of the public static Sep 06 09:03:21 took that out, works now Sep 06 09:03:39 I assume each implementation is thread dependent Sep 06 09:03:40 (in the interface)# Sep 06 09:03:58 ah, right there Sep 06 09:08:22 you don't define the type in the interface, just the return type, and name/arguments. Sep 06 09:25:12 hey guys, I've just tried to use ButterKnife in a DialogFragment but it throws em an NPW after binding and then using a view... All I did was to add: @BindView(R.id.add_book_title) EditText title; to the class and within onCreateView() I called ButterKnife.bind(this, root); after getting the root view from the inflater Sep 06 09:25:17 any ideas? Sep 06 09:25:36 I have a variable (collection of items) which´s contents are initially retrieved from local persistent store. when the server signals an update to a purchase order, that purchase order is updated on the local persistent store. it is done transactionally. can I update the in-memory variable within the same transaction ? as in: update database + in-memory variable or update none ? Sep 06 09:25:50 when I use the title view afterwards, I get the NPE Sep 06 09:26:54 ButterKnife debug just says it doesn't find a binding for my AddBookDialogFragment and tries the superclass and aborts Sep 06 09:28:51 I like how job offerings on stack overflow react to specific word use in questions. like: just now I asked a question about transactions —> big data job offerings pop up Sep 06 09:39:02 hmmm, how does Inheritance work on Java files? When I have the java file in the right place, I get an error for duplicate java file. Sep 06 09:39:24 huh Sep 06 09:40:00 Maybe I'm mis-understanding how this works. Sep 06 09:40:28 I thought I could just replicate the primary flavor folder structure, and put what I wanted where it was required, java files, xml files etc. Sep 06 09:40:32 sdousley: check which package the class refors to Sep 06 09:40:38 refers Sep 06 09:40:58 when you move classes, you should always use “refactor —> move” or “refactor —> copy" Sep 06 09:41:20 if you have 2 classes referring the same package, they will be considered as duplicate Sep 06 09:42:00 would the package need to be the one as defined in the applicationId in build.gradle? Sep 06 09:42:25 sdousley: are you familiar with java ? Sep 06 09:43:24 kind of. only really with the basics Sep 06 09:43:28 enough to get our app working Sep 06 09:43:48 sdousley: tbh it doesnt seem like you have ever developed in java Sep 06 09:44:02 it might be better you give that to someone who can help you Sep 06 09:44:07 Until I did this app, I hadn't Sep 06 09:44:21 it might cause more damage if you continue without knowing basics of java Sep 06 09:44:35 you did the app alone ? Sep 06 09:46:24 I did yeah Sep 06 09:46:53 what does it do ? Sep 06 09:46:55 No one else has done any work on the app, and for what we need of it so far, it's working fine. Sep 06 09:47:26 It's for our company, uses an SDK to interface with a supplier, so that it enables our customers to take Chip & PIN transactions using a Bluetooth card reader. Sep 06 09:48:02 cool Sep 06 09:53:01 It's been live on app store for well over a year, probably 18 months or so Sep 06 09:53:33 Just now we have the possible requirements of separate branding, and potentially separate functionality (customers linking into it via their CMS and pre-populating fields) Sep 06 09:53:41 so I was seeing how easy that would be to do per-flavor Sep 06 09:53:48 but I think we'll just bundle it into the main app Sep 06 09:54:08 or that's what I'll suggest Sep 06 09:54:17 since it won't break the app if you don't open the app with a URL Sep 06 09:55:07 I did go through the whole code base the other week, removing as many warnings as possible. Sep 06 09:55:43 there's some, that I feel could maybe be removed, (nested weights in layouts) but without spending ages on it (which I don't have), since it works, I'm (at least for now) going to leave them as they are Sep 06 09:58:07 Well, when I said I hadn't done Java before this, I kinda lied, as I did some at Uni, but that was like 10+ years ago, so I see this Android app as my first foray into Java. hehe Sep 06 09:58:24 cos with that time scale, it might as well be Sep 06 10:05:12 chip & pin and bluetooth card reader — in which part is the android app Sep 06 10:05:26 the app communicates with the reader ober Bluetooth Sep 06 10:05:29 over* Sep 06 10:06:05 it generates PIN? Sep 06 10:06:22 No, there's a bluetooth card reader that the customer puts their card into, and enters their PIN Sep 06 10:06:34 enters into app? Sep 06 10:06:40 no, to the reader Sep 06 10:06:47 I see Sep 06 10:06:53 https://blog.oppedahl.com/wp-content/uploads/2015/10/miura1.png Sep 06 10:06:57 that's one of the readers we offer Sep 06 10:07:12 I get the idea Sep 06 10:07:37 this is used to secure the protocol to communicate to sdk Sep 06 10:08:07 the chip is generating the number, right? Sep 06 10:08:09 I don't really know how the SDK communicates with the reader etc. Sep 06 10:08:21 you said app communicates with sdk Sep 06 10:08:39 > uses an SDK to interface with a supplier Sep 06 10:08:55 the PIN is a personal number that you know, that you can use to authenticate transactions against your card. Sep 06 10:09:14 yeah, the app calls SDK functions, how they actually then communicate with their servers and the reader, I've not looked into. Sep 06 10:09:19 yes but chip is generating random number after Sep 06 10:09:27 no, the PIN doesn't change Sep 06 10:09:29 some chips don't ask to enter pin code Sep 06 10:09:44 some companies use chips with just one button Sep 06 10:09:51 which return the number Sep 06 10:09:53 over here, if you use the chip on the card, you HAVE to enter your PIN to get the txn through Sep 06 10:10:12 it's the same pin you enter when you put your card into a cash machine to get cash out Sep 06 10:11:30 ‘user id’ and a ‘password’ is generated by the device Sep 06 10:11:33 never changes (unless you manually change it) Sep 06 10:11:58 where password is not a constant but random Sep 06 10:12:35 your app is using it to communicate to api Sep 06 10:14:02 no? Sep 06 10:29:53 is it possible to add tabclick listener to TabLayout ? Sep 06 10:30:13 or rather, why my Tablayout.OnTabSelectedListener is not fired ? Sep 06 10:30:35 squ: yeah, it will connect to the payment API using the SDK with a username/password Sep 06 10:30:51 sdousley: where password is not the pin entered Sep 06 10:31:05 but generated Sep 06 10:31:48 squ: yeah, it's a fixed username/password, but it's nothing to do with the PIN. Sep 06 10:32:00 have you ever heard of iZettle? Sep 06 10:32:01 no it is not fixed Sep 06 10:32:56 the username/password to log into the app, and the one used to process the transaction (both separate username/password) are both fixed, but not the same. Sep 06 10:33:12 the person with the app, dosn't see the username/password used to process the txn Sep 06 10:33:59 when they log into the app, those are sent down to the app and stored in local sqlite db Sep 06 10:34:00 then there is no point in device Sep 06 10:34:03 :) Sep 06 10:34:08 the Chiup & PIN device? Sep 06 10:34:13 yes Sep 06 10:34:17 there is point, because without that, you can't get the card details to take the payment! Sep 06 10:34:29 of course you can Sep 06 10:34:38 not in an authenticated manner you can't Sep 06 10:34:50 well, not in an authenticated manner, that is quick/easy for the cardholder to pay you Sep 06 10:34:51 you can auth with user_id/password Sep 06 10:35:03 Maybe i've not explained it that well Sep 06 10:35:10 our "customers" are actually the merchant, not the cardholder. Sep 06 10:35:11 no its fine Sep 06 10:35:17 then they have their customers who pay them Sep 06 10:35:36 I'm just pointing out that if device doesn't generate password, then device can be replaced with piece of paper Sep 06 10:35:53 not if you want to get a chip & pin transaction it can't Sep 06 10:36:02 yes, there's other ways to take the payment, other than the Chip & Pin device Sep 06 10:36:12 according to your words it can Sep 06 10:36:19 since all the strings are fixed Sep 06 10:36:35 well, fixed per (our) customer Sep 06 10:36:39 they can be written to a paper Sep 06 10:36:58 Every payment for every customer should generate a completely new value, though Sep 06 10:37:16 you said it is not generating but using a fixed value Sep 06 10:37:18 yeah, but it uses the same connectivity details to pass them to the API/SDK Sep 06 10:37:29 If I pay at 20 stores, every store should get a completely different value from me Sep 06 10:37:36 and it does Sep 06 10:37:42 each payment has a unique ID Sep 06 10:37:57 payment id has nothing to do with password Sep 06 10:38:00 No a unique id Sep 06 10:38:37 The app should just contain a keypair and sign a message of time, merchant, payment id, and amount for each payment, Sep 06 10:39:03 Send this signed result to the merchant, who can send it to the backend servers, which will verify the payment has happened. Sep 06 10:39:37 If your phone is stolen, you tell the payment processor to void that keypair, and the device can't make new transactions Sep 06 10:40:12 it would also require the person that stole the phone to know the login details for the app Sep 06 10:40:17 To activate a device for transactions, it should generate a keypair, and send the public key to the payment processor, together with username and password and 2FA key Sep 06 10:40:18 and have the bluetooth reader Sep 06 10:40:19 plus Sep 06 10:40:36 any transactions they did would only go to the person who the app is registered to anyway, so what would be the point in processing transactions Sep 06 10:40:40 This, sdousley, is how any payment network has to operate in 2016 in most countries Sep 06 10:40:52 justJanne: yeah, I think the SDK does all that in the background, not the app Sep 06 10:41:05 we are talking about app and device part here Sep 06 10:41:06 Anything based on just static values is already illegal in many. Sep 06 10:41:15 the SDK and our app have both been approved by the acquirer Sep 06 10:41:34 when I say static values, that's purely so that the transaction can be allocated to the relevent account. Sep 06 10:41:44 But why? Sep 06 10:42:13 The username password should not be used for anything except authenticating the system with which tokens will be generated Sep 06 10:42:15 because we run what's called "Payment Facilitator" so the merchant ID's are our own, and we then pay our customers their share of the money we get. Sep 06 10:43:09 You know, just do whatever you want, but don't complain when someone abuses the system and bankrupts yoy Sep 06 10:43:16 I can't really go over this any more, I know the app works (currently) exactly as it should, and that it's fully accredited by the acquirer and gateway. Sep 06 10:43:31 have fun Sep 06 10:43:48 Yeah, and credit cards are also accepted payment methods Sep 06 10:44:01 That doesn't mean it's safe. Sep 06 10:45:22 There is a part when performing a transaction that it runs "generating Keys" like I say, that's part of the SDK, so what that's exactly doing, I can't see. Sep 06 10:45:35 I just call the SDK to start a txn. Sep 06 10:46:46 you mean api Sep 06 10:46:59 call the api over the internet to generate keys Sep 06 10:47:14 retrieve the keys and be safe Sep 06 10:47:19 as I said, the SDK does that, so I don't know exactly what it does Sep 06 10:47:30 > Retrieve the keys Sep 06 10:47:31 Ouch Sep 06 10:47:45 Never ever ever should a private key leave a device. Sep 06 10:47:46 isn't retrieving jeys from the net unsafe? Sep 06 10:47:54 EVER Sep 06 10:47:57 s/jeys/keys Sep 06 10:47:59 Especially not for payment Sep 06 10:50:42 hi! Sep 06 10:51:17 is it hard to get gps accuracy and write out whenever its change? Sep 06 10:52:28 i guess i need to create a broadcastreceiver or listener to do the trick, but i dont find any helpful article yet :S Sep 06 10:57:38 guess i have my answer https://code.google.com/p/android/issues/detail?id=201659 Sep 06 10:59:40 classic Sep 06 11:00:31 Freeman? Sep 06 11:03:01 trying to set an expandable list adapter to a spinner Sep 06 11:03:13 but failing horribly. Sep 06 11:05:07 what is expandable list? Sep 06 11:06:41 that which transforms into toolbar? Sep 06 11:07:29 expandable list is useful for managing menu items into Category > Item. Ie the first click on an item "category" expands to reveal a child list of items Sep 06 11:07:44 at least that's a use for them Sep 06 11:08:08 (toolbar thingie is called CollapsingToolbarLayout) Sep 06 11:08:22 I see Sep 06 11:08:57 Stack overflow is providing some useful information. They're both separate views so it looks like there's no simple way to do this Sep 06 11:08:59 OK, I went out for lunch to clear my head, and what you're saying is what happens. the "static" data is used to authenticate the user, and the keys are used to pass the card data. The app (at least the part I code) doesn't see the card data/pin etc. That's all passed from the SDK through to the gateway API. Sep 06 11:09:02 going to try overriding the spinner Sep 06 11:09:04 Jesperhead: I'm doing that with Sep 06 11:09:21 adapter.notifyItemInserted(adapter.menu); Sep 06 11:09:21 adapter.notifyItemRemoved(menu); Sep 06 11:09:51 I have a menu ‘expanding’ by row click Sep 06 11:09:51 Guys mind if I ask what the brand of your monitor is? Sep 06 11:10:17 when does notifyItemInserted get called? Sep 06 11:10:19 when/how* Sep 06 11:10:49 havent played much with adapters or ui elements in general Sep 06 11:11:06 done a bit more java/core coding so far Sep 06 11:12:11 ZeNEX: dell 2312 Sep 06 11:13:21 Jesperhead: when row is clicked menu expands below the row Sep 06 11:13:31 What do you guys think about the background and buttons? http://picpaste.com/pics/layout-jvAu30Af.1473160393.jpg Sep 06 11:13:35 I'm doing that by notifying the adapter about insertion Sep 06 11:13:51 when clicked again the menu is shifted away Sep 06 11:14:31 Jesperhead: if that is important for you I could upload template of that to github Sep 06 11:14:58 VerbalKint: hire desginer Sep 06 11:15:10 What kind of adapter are you using? im using an ArrayAdapter. I don't see those methods Sep 06 11:15:15 leaderboard is not centered Sep 06 11:15:44 Jesperhead: I guess it will be easier if I give you a template Sep 06 11:15:57 :D i appreciate your input Sep 06 11:16:11 probably tomorrow Sep 06 11:16:16 doh Sep 06 11:16:20 what Sep 06 11:16:21 squ: your opinion doesn't count because you're a bastard :P Sep 06 11:16:44 VerbalKint: but leaderboard is not centered, that a fact Sep 06 11:16:44 nothing. just eager to learn something new Sep 06 11:16:57 * Jesperhead squints Sep 06 11:17:01 ill be damned Sep 06 11:17:22 Jesperhead: time to get rechecked, you may need a stronger prescription Sep 06 11:17:41 dude im blind as a bat. i'll admit it Sep 06 11:17:54 Jesperhead: hey, I also wear glasses :) Sep 06 11:18:10 Occupational hazzard of being a coder ;) Sep 06 11:18:13 you have glasses?! I have a magnifying glass and a five inch monitor Sep 06 11:18:13 VerbalKint: you have never talked to a designer Sep 06 11:18:29 * Jesperhead is watching Brazil Sep 06 11:19:33 squ: don't got the money and I'm too cheap to hire one :P Sep 06 11:19:43 squ: it's passable design nonetheless Sep 06 11:20:20 VerbalKint: image corners are scaled non-proportionally Sep 06 11:20:37 rules are scaled vertically Sep 06 11:20:49 leaderboard is scaled horiz Sep 06 11:20:57 look at corners Sep 06 11:21:24 i think usable is more accurate. I assume it functions as intended. In my honest opinion? I dont like the multi-chromatic vomit of colors on the buttons. the background is fine i suppose. Sep 06 11:21:47 what kind of game is it? Sep 06 11:22:18 background is what we discussed yesterday Sep 06 11:22:55 as you see there is a progress going out there Sep 06 11:23:07 squ. give me your brain. Sep 06 11:26:39 squ, thanks old sport Sep 06 11:40:41 I wonder when they'll fix debugging jack'd code Sep 06 11:44:34 Hello! I have a problem with inputType="textPassword" increasing the height of TextInputEditText. https://www.dropbox.com/s/n3227y1s4t6ialo/device-2016-09-06-143701.png?dl=0 two identical TextInputEditText in identical TextInputLayout, except the bottom field has the said input type Sep 06 11:47:39 how do you put these icons and a hint Sep 06 11:48:59 You could disable the password toggle Sep 06 11:49:46 I guess the password hint gone up and resized the box? Sep 06 12:09:12 Build.VERSION_CODES.NOUGAT Sep 06 12:09:16 do you have it? Sep 06 12:09:22 is it available? Sep 06 12:09:35 No Sep 06 12:09:40 why? Sep 06 12:09:41 wtf Sep 06 12:09:59 https://developer.android.com/reference/android/os/Build.VERSION_CODES.html Sep 06 12:10:27 yay, N is available Sep 06 12:10:31 N is for ÂŻ\_(ツ)_/ÂŻ Sep 06 12:11:20 if i want to have a paid app on play but send it to free to testers is there anything i should do to change the apk security wise? Sep 06 12:12:06 You could give them promo codes instead Sep 06 12:12:40 And a private beta I guess Sep 06 12:13:16 rooted phones can rip the apk anyway right? Sep 06 12:13:24 if they got it from play Sep 06 12:13:28 Of course Sep 06 12:13:45 i guess i wont worry about it then))) Sep 06 12:19:37 hi Sep 06 12:20:37 After successful login the user is shown a dashboard. I'm guessing it should be CoordinatorLayout with a bunch of fragments? Sep 06 12:24:19 Or a TextView with a bunch of - dashes Sep 06 12:27:01 AlecTaylor: try google analytics app from play store Sep 06 12:41:13 squ ? Sep 06 12:42:16 what Sep 06 12:42:38 best dashboard I've seen Sep 06 12:42:43 Hello. I try to upload multiple files at onec using loopjs http client. Is there any "simple" way to let it upload only nItems a time? I tried using static { client = new AsyncHttpClient(); client.setThreadPool(ThreadPoolExecutor) Executors.newFixedThreadPool(3)); } and then used several client.post() calls.. but it floods the server instead of uploading 2 a row? Sep 06 12:56:31 You'd think that an expensive piece of software such as Illustrator would have the option of basic stuff like inner shadow and inner glow that you could fine tune Sep 06 12:57:13 Noob question.. having trouble with a NPE. App works fine in the emulator, works fine when I compile it onto my local device.. but when I put it in the app store (beta) and download it, it blows up with this NPE error.. which is making it difficult for me to debug. Code and crash report here: http://pastebin.com/MuTttGCn Sep 06 13:08:10 where are you instantiation the viewpager pager object BilldaCat ? Sep 06 13:08:56 instantiating even. Sep 06 13:11:23 raoul11: isn't that being done down in the getItem function, where it loads the correct fragment based on the position? Sep 06 13:11:59 nope Sep 06 13:12:29 that would cause another npe if you dont instantiate or hook your viewpager to an existing viewpager Sep 06 13:12:46 oh, crap.. i think i see.. i never call a new ViewPager anywhere Sep 06 13:12:52 yep (: Sep 06 13:13:15 thanks. odd that it works in an emulator though and on my device but (shrug) Sep 06 13:13:15 anyone have good examples of expandablelistadapters? Sep 06 13:13:36 it shouldnt work on any device Sep 06 13:13:39 or emulator Sep 06 13:25:04 so random, google provides a decent signin button but no signout. Sep 06 13:27:20 one can not sign out google Sep 06 13:28:15 i guess thats their logic Sep 06 13:28:57 trying to make a close enough button Sep 06 13:34:51 maybe you should consider that sign-in and sign-out are not symetric in terms of UI Sep 06 13:34:53 https://developers.google.com/identity/branding-guidelines#sign-in-button Sep 06 13:35:23 read that adq Sep 06 13:35:45 usually they "don't like" when you build your custom button with their brands Sep 06 13:36:15 also imagine you need to provide a "switch account" Sep 06 13:36:27 would you force ppl to sign-out and sign-in back to switch account? Sep 06 13:36:29 etc Sep 06 13:38:15 yeah, but what is the alternative? make a shitty custom buttom Sep 06 13:39:07 its the same type of family of operations, so why be lazy and not supply devs with a simple "logout/disconnect" buttons? Sep 06 13:39:11 idk, it really depends on the flow of the app, like some are providing in the menu drawer a logout/sign-out at bottom of this menu drawer Sep 06 13:39:26 with the logged round icon & stuff on top of menu drawer Sep 06 13:39:35 but that's just a known example, there are too many ways Sep 06 13:39:58 hmm Sep 06 13:40:01 its the same type of family of operations, so why be lazy and not supply devs with a simple "logout/disconnect" buttons? << i think it's because for most ppl, once logged Sep 06 13:40:04 they don't need to logout Sep 06 13:40:13 i can do that from a drawer Sep 06 13:40:18 it's not like you're connecting to your bank account (if it should be, that's another story :p) Sep 06 13:40:34 i agree, but they insist you should implement it anyways Sep 06 13:40:35 more evil, maybeyou don't want user to sign-out Sep 06 13:40:38 logout/disconnect Sep 06 13:40:43 and thus you increases the nodes/paths to sign-out Sep 06 13:40:51 (like fb, burried behind zillions of actions) Sep 06 13:41:36 you could also imagine it like a physical place, you have an entrance (where ppl get logged) Sep 06 13:41:58 and an exit (sometimes it's the same door, most of the times it's not), etc Sep 06 13:42:21 it really depends on how your app is made anyway Sep 06 13:44:27 think ill dump it somewhere in a drawerlayout Sep 06 13:49:02 adq not sure if i can use the G brand logo in a signout button Sep 06 13:50:07 hi my friends Sep 06 13:51:57 raoul11, you can but i thought i was clear about you don't probably need it Sep 06 13:52:00 "You can use the word "Google" by itself in the button if it is accompanied by adjacent text that makes it clear what the action is. For example:" Sep 06 13:52:34 (in the link above) Sep 06 13:52:50 yeah, but its fugly imo Sep 06 13:54:53 adq http://i.imgur.com/cuYRJin.png Sep 06 13:55:13 minus the roboto font. Sep 06 13:55:20 nope.jpeg Sep 06 13:55:38 too much caps, not sure you can use the brand name google (check another brand guidelines), etc Sep 06 13:55:47 2 lines of text on a button, no thx Sep 06 13:56:17 i giveup, gonna dump it inside a drawer Sep 06 13:56:20 my best advice is look app(s) you really like and proven successful Sep 06 13:56:29 which are using g+ sign-in (and sign-out) Sep 06 13:56:50 and yeah, you cannot spend 2 days on just a sign-out button Sep 06 13:56:58 indeed Sep 06 13:56:59 android dev in a nutshell Sep 06 13:57:04 everything is tedious lol Sep 06 13:57:29 their guidelines are anoying sometimes Sep 06 13:57:38 i already had a warning bout it on another app Sep 06 14:16:15 Hi Sep 06 14:16:30 Is there an alternative to Netbeans for android dev? Sep 06 14:16:40 Aside from VS? Sep 06 14:16:40 JSON: {"Key":["JSONArray?", "another item"]} help me understand JSON a little better.. the overall {} indicates that the whole string is a JSON object. Is "key" a JSONArray? Sep 06 14:17:09 Blink`: I use IntelliJ IDEA, for me works well Sep 06 14:17:22 and when you say VS, I presume you meant AS? Sep 06 14:17:23 Blink`: Android Studio? Sep 06 14:17:43 Never heard of using Visual Studio for Android Dev Sep 06 14:18:22 Hmmm, my friend downloaded an APK and used VS to access the code, so I assumed you could use it that way too Sep 06 14:18:41 Yeah, I guess you could use Notepad to view the code Sep 06 14:18:50 I wouldn't ever want to use it to develop though Sep 06 14:19:12 Same, I haven't done app dev in like 6-7 years, so I'm a little bit behind on this Sep 06 14:19:47 I used to use Jetbrains for webdev though Sep 06 14:19:48 hehe. Personally, I would recommend either Android Studio or IntelliJ. Sep 06 14:19:49 ah. check out android studio. its made by JetBrains (same guys that make Intellij IDEA). Pretty dang good Sep 06 14:19:59 I'll check out both, thanks. Sep 06 14:20:01 if you used jetbrains for web dev. Strongly recommend IntelliJ Sep 06 14:20:06 AS is free :) Sep 06 14:20:06 I use phpStorm, for PHP Sep 06 14:20:17 and IntelliJ is made by JetBrains too, so looks/feels same as phpStorm Sep 06 14:20:32 Yeah, iirc. Jetbrains was expensive lol Sep 06 14:20:35 plus, for Android dev, you only need Community edition of IntelliJ which is free Sep 06 14:20:51 well, I've not come across anything that I need the expensive edition for at least Sep 06 14:21:17 Yeah Sep 06 14:23:35 Is the community version, 2013? or is there a newer one Sep 06 14:23:56 Blink`: 2016.1.3 I think is the latest Sep 06 14:24:22 Community is fine for Android dev, Ultimate gives you the Database tab and web dev capabilitities Sep 06 14:24:56 Hmmm, the app I'm trying to make involves database, I was in here earlier clueless on how to solve it Sep 06 14:25:05 So ideally, ultimate is what I'm after? Sep 06 14:25:42 I'm currently on 2016.2.3 Sep 06 14:26:10 You don't need ultimate, just gives you a tab to manage the db within the app Sep 06 14:26:22 I have a loacal SQLite db, and external API calls, and run fine off community Sep 06 14:26:29 sdousley: yes, you're right, 2016.2.3 Sep 06 14:26:53 I see Sep 06 14:27:02 SQLite is what I'm after, after all. Sep 06 14:27:06 That sounds perfect then. Sep 06 14:27:14 Just to clarify, this is the correct link - https://developer.android.com/studio/index.html ? Sep 06 14:27:22 that's for android studio Sep 06 14:27:34 if you want intellij Sep 06 14:27:36 https://www.jetbrains.com/idea/ Sep 06 14:27:57 Ohh Sep 06 14:27:58 Right Sep 06 14:27:59 https://www.jetbrains.com/idea/download/#section=windows Sep 06 14:28:05 Sorry, my bad :p Sep 06 14:28:09 no problem :) Sep 06 14:28:26 not sure what AS is like now, but iirc, it's based on IDEA, which IntelliJ is too Sep 06 14:28:32 so they may well behave very similarly Sep 06 14:28:48 Yeah, I'm just here to poke and prod on free stuffs. Sep 06 14:29:09 hehe Sep 06 14:29:14 Thankfully I already have the database sorted. Just need to figure out how to make it connect with a new app Sep 06 14:29:36 is this another db that you have hosted on a server? Sep 06 14:29:43 or is it gonna be part of the app/ Sep 06 14:29:49 Will be a part of the app Sep 06 14:30:03 ah ok Sep 06 14:30:04 :) Sep 06 14:30:14 Unless it being on a server is better? Sep 06 14:30:31 I guess that comes down to whether it needs to be shared or not Sep 06 14:30:53 if it's solely for the app to acces, I would build it in, if it's something that the apps will need to share, do it serverside with an API Sep 06 14:31:29 Ahh, well in this case. The idea obviously modded, is a dictionary with translations = So you look up a word, and it'll give you a list of options to what you want to translate it to Sep 06 14:31:37 Then give recommended sentences Sep 06 14:31:41 ah ok Sep 06 14:31:46 (Not the real idea) But an example Sep 06 14:31:47 will that update regularly? Sep 06 14:31:56 Once a month, it would Sep 06 14:32:08 I could imagine that getting rather large, so not sure about how easy that would be to update on the device. Sep 06 14:32:32 Well, the update usually is for one part of the app Sep 06 14:32:35 Do you mind if I PM you? Sep 06 14:32:36 My local SQLite db is just used to store some config options when they have logged in Sep 06 14:32:44 sure Sep 06 14:34:54 Is there any way to determine the account with which an app was purchased from the play store? Sep 06 14:36:37 for instance, if I have abc@gmail.com and xyz@gmail.com on my android device, and I switch from abc to xyz to make the app purchase, is there any way to determine that the purchase was made with xyz? Sep 06 14:39:40 micronxd: I presume logging into play.google.com as abc@gmail.com would show the purchase price, where logging in as xyz@gmail.com would give the "install" button instead (if you purchased with xyz@gmail.com for example Sep 06 14:45:10 ugh, i'm still getting a NPE here and I think I'm initializing everything right this time.. can anyone help? http://pastebin.com/8a6pZuUv This runs fine in the emulator, but still blows up when I submit it to the play store as a beta and download it from there.. Sep 06 14:45:29 micronxd: you can use the developer payload to include some sort of identifier for the user Sep 06 14:45:53 oh nice maybe huawei / google 7" tablet Sep 06 14:46:25 BilldaCat, what's line is the NPE on? Sep 06 14:46:55 81 .. error report at the end .. blows up here: pager.setAdapter(adapter); // crashes Sep 06 14:47:04 but am i not setting that right on line 68? Sep 06 14:48:04 69 i guess is where the adapter is set .. adapter = new MyPagerAdapter(getSupportFragmentManager()); Sep 06 14:52:00 67&68 you are using findViewById but haven't setContentView yet, til later Sep 06 14:52:55 ok - so move those lines after the conditional setContentView depending on the # of tabs? take 67 and 68, move to 78.. Sep 06 14:53:17 sdousley: I mean from the app, can I determine which account the user used to purchase the app? Sep 06 14:53:38 I'm not sure, but dsardari said: 14:35:52 < dsardari> micronxd: you can use the developer payload to include some sort of identifier for the user Sep 06 14:53:42 yea you don't findViewById til you have your layout Sep 06 14:54:07 oh sorry - I got disconnected before seeing that. Sep 06 14:54:24 ok thanks. i'll give it a shot.. infuriating thing is it works in my emulator and if i compile to my local device.. have to wait an hour or so, submit to the play store, wait for it to update, etc.. Sep 06 14:54:26 that's fine, that's why I pasted the whole line :) Sep 06 14:54:48 thanks :) Sep 06 14:56:00 BilldaCat it may just be luck grabbing the id of one of those 2 layouts and it guesses right. If you have 2 views in 2 layouts with same id, it'll just be by chance that it grabs right one based on your if() statement? Sep 06 14:56:05 Aww Sep 06 14:56:12 I have to update my SDK :( Sep 06 14:57:07 whatitis: hmm.. i suppose that could be Sep 06 14:57:13 Blink`: is that a problem? Sep 06 14:57:31 Nah, it's just hitting me how far behind I am :p Sep 06 14:57:49 ah hehe Sep 06 15:01:30 is it possible when uploading new releases of Android app to manually release them, or do they just release when processed? Sep 06 15:03:22 hey guys this code from google Camera2Basic on github to request permission to use camera i'm trying to do the same but my camera fragment opens from another fragment not from an activity like the google example and it's giving me an error at "this"  and getChildFragmentManager" http://pastebin.com/mJnXyFmM Sep 06 15:03:37 sdousley: Not sure, but published APK's will go live in a couple of hours max Sep 06 15:03:53 pduin: yeah, I just wanted to upload it and manually release, so I can tie it in with iOS release. Sep 06 15:04:10 and so I have at least a bit more control over it going live, so it doesn't happen at an awkward time for the company Sep 06 15:04:16 Is there a way to directly download the SDK? I can't seem to find it Sep 06 15:04:29 Blink`: use the SDK manager. Sep 06 15:04:44 if you're in IntelliJ: Tools > Android > SDK Manager Sep 06 15:06:27 so Sep 06 15:06:33 Ty sdousley Sep 06 15:06:45 how do I resolve INSTALL_FAILED_CONFLICTING_PROVIDER when I am using product flavors Sep 06 15:07:17 followed this Sep 06 15:07:17 http://www.kevinrschultz.com/blog/2014/03/23/using-android-content-providers-with-multiple-package-names/ Sep 06 15:07:23 but couldn't get it working Sep 06 15:07:38 instead of BuildCOnfig.PACKAGE_NAME I used BuildConfig.APPLICATION_ID Sep 06 15:07:53 I want to release my app on play store but I am stuck at this Sep 06 15:08:00 Hmmm, android does not appear in tools Sep 06 15:08:36 and you're definitely in IntelliJ having started an Android project? Sep 06 15:08:58 It won't let me create an android project - Says I need 24.0.2 or more for sdk first Sep 06 15:10:46 It's fine sdousley - I'll sort it out once I get back from gyjm Sep 06 15:10:49 gym* Sep 06 15:11:18 :) Sep 06 15:13:53 ty for the help tho Sep 06 15:13:55 much appreciated Sep 06 15:14:01 np Sep 06 15:15:16 very interesting https://alty.software/blog/how-to-develop-an-app-like-uber-tips-from-taxi-app-developers/ Sep 06 15:15:28 Ologn ^^^ Sep 06 15:17:18 ah I just figured that was clickbait Sep 06 15:17:54 nope - the uber app has to be pretty complicated Sep 06 15:18:28 I wonder why it takes so long to start Sep 06 15:18:36 What tools do you guys use for making app mockups, if any? Sep 06 15:18:49 sketch Sep 06 15:19:14 yeah sketch is on the up and up Sep 06 15:19:21 sketchapp.com? Sep 06 15:19:43 Requires Mac OS X 10.10+ Sep 06 15:19:48 ;-; Sep 06 15:20:25 Faizan you can try pixate, a bit different in focus Sep 06 15:20:44 * g00s wonders if pixate still active development Sep 06 15:21:01 "Pixate has joined Google." Sep 06 15:21:03 interesting Sep 06 15:21:10 Faizan there are a lot online tools, like ninjamock Sep 06 15:21:20 the one i was looking at was proto.io Sep 06 15:21:24 there's a lot out there Sep 06 15:21:30 I just want to invest time learning a good one Sep 06 15:21:57 raoul11: whatitis: just wanted to hop back on and say thanks for your help! app is working now. Sep 06 15:22:33 Man sketchapp looked beautiful, I'm sad now Sep 06 15:24:23 yeah stupid sketch is the only reason I'm not completely going linux Sep 06 15:24:31 * missingno has two machines now Sep 06 15:25:12 my mbp is now an overpriced sketch runner Sep 06 15:25:25 That's really interesting why a non-apple developed program runs on apple only Sep 06 15:25:38 is that common? first i've seen it Sep 06 15:25:44 it's for designers Sep 06 15:25:54 not the first design-focused app that is apple-only Sep 06 15:25:59 that's been a thing for decades Sep 06 15:26:00 ah Sep 06 15:26:03 well maybe one decade Sep 06 15:26:48 there's a lot of music producing software that is mac only aswell Sep 06 15:26:50 Faizan not surprising at all. for extra revenue stream, many iOS devs create desktop counterpart before or after the mobile coponent Sep 06 15:27:17 Hmm Sep 06 15:27:23 ah well Sep 06 15:27:28 also apple had the app store before MS, although they seem to be screwing up pretty badly with it Sep 06 15:27:31 guess i gotta find something suitable for windows/linux Sep 06 15:27:39 MS's app store sucks Sep 06 15:29:06 how can i upload several apks to the play store at once? i'm using splits{} and i'm not looking forward to doing it all manually Sep 06 15:29:36 np BilldaCat Sep 06 15:35:48 isn't there a play store upload jenkins plugin xorgate Sep 06 15:40:07 Does google still recommend against using splash screens? Sep 06 15:40:31 even though everyone uses it.. just curious Sep 06 15:41:25 Faizan: I was reading about this the other day Sep 06 15:41:42 What did you find? Sep 06 15:41:53 and what I read (how true it is) suggested that Google recommend using them now, as can be seen by their apps (youtube for one uses a splash screen!) Sep 06 15:42:01 Oh yeah good point Sep 06 15:42:05 totally forgot about that lol Sep 06 15:42:22 I don't know how authoritive it is, but here's the article I read https://www.bignerdranch.com/blog/splash-screens-the-right-way/ Sep 06 15:42:35 Ah bignerdranch is a good source Sep 06 15:42:39 I'll give that a read, thanks Sep 06 15:42:41 :) Sep 06 15:42:48 never heard of Big Nerd Ranch myself Sep 06 15:43:04 His android programming book is quite well discussed Sep 06 15:43:08 that and commonsware Sep 06 15:43:23 but i think bignerdranch's book is a little outdated now Sep 06 15:44:06 Looking at it, that article is a year old too, so maybe not "recent" Sep 06 15:44:19 but youtube using a splash screen says it all :p Sep 06 15:44:26 but like the article says, don't use it for fun Sep 06 15:44:33 only if something takes a while to load Sep 06 15:44:41 better than seeing a spinner icon anyday imo Sep 06 15:44:52 yeah Sep 06 15:45:03 you at least feel like it's doing something when you see a splash Sep 06 15:45:10 yeah exactly Sep 06 15:45:19 Our app loads (from cold start) in like 0.5s, so I don't think I'll bother adding a splash Sep 06 15:45:33 I have no idea how long mine will take Sep 06 15:45:39 still need to figure out how to design it Sep 06 15:45:43 :) Sep 06 15:45:56 still on the search for a good tool lol Sep 06 15:46:11 I just kinda made our app, no actual design in place, but it's only a fairly basic app, so doesn't need much design Sep 06 15:46:23 mines is a minimal app as well Sep 06 15:47:29 Plus, I was kinda learning Android as I developed it, so I went through numerous iterations of the app starting from scratch a few times when I was making it Sep 06 16:01:53 appcompat night mode is still pretty fucked up Sep 06 16:02:35 why does this have to be so hard? when i set night mode, i want all the components to undergo a resource change like any other resource chage Sep 06 16:02:43 but no, components on the stack do not Sep 06 16:03:19 why should i use GCM , if i have xmpp server ? Sep 06 16:04:15 g00s: because google Sep 06 16:06:22 boodllebat: because google Sep 06 16:06:46 missingno: sorry i dont get it what goodle ? and why ? Sep 06 16:07:15 heh goodle Sep 06 16:07:45 boodlebat I assume you have a chat app, which for Android M in particular means you should be using GCM because Google makes life hard for you otherwise Sep 06 16:08:05 Is there a functioning way to know the max opengl texture size? (In order to display a big image in a image view without exceeding the max texture size? Sep 06 16:08:40 missingno: no its not a chat app but i'm using xmpp and i saw people using xmpp and gcm both i just can't digest that thing , can you brief me about this trend it would be great help Sep 06 16:09:27 GCM is for push notifications Sep 06 16:09:31 do you need push notifications Sep 06 16:11:50 missingno: yes maybe in future i need to connect two users so that they can exchange data in realtime , just like chat but i dont need to show those messages i'll use them in rendering my GLcontext Sep 06 16:12:43 missingno: its a graphics thing and xmpp is my thing but does my data need to go through GCM ? Sep 06 16:13:00 missingno: like everydata whatever i'm sending ? Sep 06 16:14:09 absolutely not boodllebat Sep 06 16:14:17 you send extremely minimal data thru gcm Sep 06 16:14:29 gcm is a "oi download data the normal way" buzzer Sep 06 16:14:52 I don't think you need to use it at all Sep 06 16:15:05 missingno: just for push notifications right ? Sep 06 16:15:09 yep Sep 06 16:17:38 i have two Spinners, each showing the same list of items. i want the user to only pick different items (i.e., can't pick the same item in both spinners) Sep 06 16:18:13 each is populated by an ArrayList via an ArrayAdapter Sep 06 16:18:25 any idea of a good way to do it? Sep 06 16:23:50 is photoshop recommended for app design? Sep 06 16:24:59 Faizan: I find Illustrator (or another vector drawing application) to be more useful Sep 06 16:25:13 doesn't illustrator have quite a steep learning curve? Sep 06 16:25:31 Faizan: as steep as Photoshop Sep 06 16:25:44 I found inkscape hard to pick up, but found gimp easy Sep 06 16:25:56 and i guess you can compare inkscape to illustrator, gimp to photoshop Sep 06 16:26:24 an if you will want to use vector graphics in your Android application, you'll have your stuff ready Sep 06 16:26:33 that's true Sep 06 16:26:42 Faizan: the comparison is right. But you got scared for nothing Sep 06 16:27:04 i think illustrator is worthwhile to learn though Sep 06 16:27:18 since I do a lot of web dev aswell and normally get a friend to design vectors for me Sep 06 16:27:24 Faizan: you only need a part of any of those softwares to design UI Sep 06 16:27:27 right Sep 06 16:27:31 Faizan, illustrator is much easier to use , imo Sep 06 16:27:35 go Illustrator Sep 06 16:27:39 okay Sep 06 16:27:45 i wonder how much it costs Sep 06 16:28:55 is it illustrator cc or cs6 you guys use? Sep 06 16:29:37 illustrator is only $20/month Sep 06 16:29:49 $50 for full cc Sep 06 16:29:59 Ł15.49 for me Sep 06 16:30:03 which is what $25 Sep 06 16:30:08 for full cc Sep 06 16:30:17 being a student is lovely :D Sep 06 16:30:45 $21 infact Sep 06 16:32:39 hello Sep 06 16:33:16 i created a hello world project and i connected my android phone with wire to pc Sep 06 16:33:26 im using android studio Sep 06 16:33:31 sss: cool! Sep 06 16:33:39 sss: and welcome! Sep 06 16:33:53 when i run my project in android studio Sep 06 16:34:12 i can see my device it seems ???????null Sep 06 16:34:23 when i click on device to run Sep 06 16:34:25 sss: go to settings on your phone, and tab "About Device" 7 times Sep 06 16:34:35 oh does your device come up on the AVD? Sep 06 16:34:40 as a deployment target Sep 06 16:34:43 i just see waiting for device Sep 06 16:34:51 did you enable usb debugging? Sep 06 16:34:51 it's build number to unlock debug mode Sep 06 16:35:03 Oh yeah myke is right Sep 06 16:35:07 i enabled usb debugging on phone Sep 06 16:35:26 developer option is enabled Sep 06 16:36:18 i just see waiting for device in android studio Sep 06 16:36:26 whas problem? Sep 06 16:36:37 https://developer.android.com/studio/run/device.html read that Sep 06 16:36:51 main problem is ppl don't read doc prior to ask Sep 06 16:37:42 sometimes you need to unplug/replug the device too, sometimes you need to ensure your OS has a valid driver to communicate to your device too Sep 06 16:37:53 adq, i read a doc before coming here it just said enable developer option Sep 06 16:38:00 no read Sep 06 16:38:11 it even links to https://developer.android.com/studio/run/oem-usb.html Sep 06 16:38:13 i am using ubuntu Sep 06 16:38:22 good luck Sep 06 16:39:19 update your udev settings Sep 06 16:39:28 Arancio/greves (sorry for hl), what about adobe experience design? It's meant to be the new fireworks or something Sep 06 16:40:52 on this SO question , I am looking at the answer and wondering what is d.dismiss() ? http://stackoverflow.com/questions/17805040/how-to-create-a-number-picker-dialog Sep 06 16:41:10 dialog.dismiss() what's to wonder? Sep 06 16:41:11 is it something I should inherit from the Activity ? Sep 06 16:41:20 Faizan: I used fireworks in past. Never used Design. Does it exist? I can only google InDesign which is desktop publishing Sep 06 16:41:35 Experience Design is in beta right now Sep 06 16:41:39 Android studio cant resolve it Sep 06 16:41:41 dar10s: it’s a method on Dialog Sep 06 16:41:56 there is my wonderment Sep 06 16:41:58 d is declared as a Dialog Sep 06 16:43:25 Faizan: ah, ok. Experience Design should be UX design tool. I never used it. But I'm pretty sure 80% of what you learn with Illustrator you can re-use it in this new software Sep 06 16:43:43 Faizan: sure give it a try Sep 06 16:43:51 it's mac only unfortunately Sep 06 16:43:59 yeah, I read it Sep 06 16:44:10 I might just run osx on a vm Sep 06 16:44:15 and go for sketch Sep 06 16:44:28 ohh stupid me ... i think ... the class I made is named Dialog so its looking for ( blerp ,I try not to copy and paste but when I type i sometime forget stuff ) Sep 06 16:44:45 Go for Illustrator now and then try Experience Design later. As I said, probably you'll re-use 80% of what you learned in Illustrator Sep 06 16:44:57 Gotta go. Good luck Sep 06 16:45:04 Thanks, see ya Sep 06 16:45:50 what’s Experience Design? Sep 06 16:46:20 Some new software by adobe Sep 06 16:46:27 the doc says create /etc/udev/rules.d/51-android.rules. Sep 06 16:46:30 I think it's meant to be a refreshed fireworks sort of thing Sep 06 16:47:55 Fireworks was a tool to design animation in Flash applications Sep 06 16:48:11 Experience Design is a tool for User Experience desing Sep 06 16:48:14 design Sep 06 16:48:21 Ah okay Sep 06 16:48:31 well I know nothing about design tools so yeah :D Sep 06 16:48:57 Was just reading a quora post and it said: Fireworks: Built for screen design (no fuzzy lines), but the UI is janky and unstable. (Not to mention it has been end of life'd.) Sep 06 16:49:22 Link? Cause googling Experience Design doesn’t really yield much Sep 06 16:49:39 http://www.adobe.com/uk/products/experience-design.html Sep 06 16:49:51 Ah you might know it as Project Comet? Sep 06 16:49:55 ahhh, yeah Sep 06 16:50:03 i missed the part where it’s Adobe Sep 06 16:50:08 :D Sep 06 16:52:42 Oo justinmind looks good Sep 06 17:23:20 hithere Sep 06 17:23:41 am I missing something? |gradlew --status > "Unknown command-line option '--status'." Sep 06 17:24:29 I have Gradle 2.14.1 Sep 06 17:25:23 I would like to run gradle as daemon but first I need to know it's status -> https://developer.android.com/studio/run/index.html#instant-run Sep 06 17:27:14 sry bad link https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:status Sep 06 17:27:46 umpf it probably applies to gradle 3.0 Sep 06 17:28:21 "Before Gradle 3.0, there was no easy way to determine the status of a running Gradle Daemon or why a Daemon might have stopped" Sep 06 17:29:05 is it definite or do you have some trick to find out whether it is running? Sep 06 17:30:18 has anyone used Just in Mind for prototyping? Sep 06 17:30:30 how can i create an app that show me distance that i walk live to me ? Sep 06 17:31:02 i need to see that live Sep 06 17:37:10 sss: Depends on how accurate you need it to be. For the most basic stuff, look at https://developer.android.com/training/location/index.html For more advanced stuff, you're either looking at learning a lot about android development, or just get one of the many apps that already do this. Sep 06 17:40:31 Thorbear, thanks Sep 06 17:40:40 i need to read tutorials Sep 06 17:42:21 i bought the book android development for dummies Sep 06 17:42:52 for kindle Sep 06 17:43:01 but i hav eno idea for an app Sep 06 17:43:21 just make something useful for yourself Sep 06 17:43:21 lemme check something Sep 06 17:43:28 it doesn't have to be a big idea Sep 06 17:43:28 pfn: ok ;D Sep 06 17:43:50 just about no one will make big bucks off. an app idea Sep 06 17:44:04 it won't happen Sep 06 17:45:38 pfn: you mean the TED talks lied to me?! Sep 06 17:45:58 But they were talking about innovation and freedom of expression and stuff! Sep 06 17:46:30 not so much lied, as just didnt tell the truth Sep 06 17:46:55 you can do whatever you want and be innovative, but it's not going to get you rich Sep 06 17:48:16 what does super.method(); do again? Sep 06 17:49:10 nm asking in java channel now Sep 06 18:18:14 should I use "proguard-android-optimize.txt" or not? Sep 06 18:18:24 sure. knock yourself out Sep 06 18:19:18 u mean shoot my self in the foot Sep 06 18:19:32 i mean go ahead and try it, and see how it goes Sep 06 18:19:43 look into what it’s doing, and judge whether that’s right for your situation Sep 06 18:21:02 by look into you mean "With each build, ProGuard outputs the following files..."? Sep 06 18:21:49 i mean look into the options provided by proguard, and determine which of them, if any, you feel would benefit you Sep 06 18:21:52 I have already tried it, app is running, size was not reduced that much and speed was not tested Sep 06 18:22:02 the only one who can make that determination is you Sep 06 18:22:17 s73v3r, ok - I am just looking at those options and testing them Sep 06 18:22:31 good, that’s what you should be doing Sep 06 18:23:43 but I would rather appreciate some personal experiences - how to tune it right - because it seems to me that it is not fully covered at place I am gaining my knowledge from ... https://developer.android.com/studio/build/shrink-code.html#shrink-code Sep 06 18:24:19 then ask about the specific options. asking about proguard in general is way too broad a topic Sep 06 18:30:43 ok Sep 06 18:32:04 interesting http://android-developers.blogspot.com/2016/05/hardening-media-stack.html Sep 06 18:32:19 but lol @ paring media in process with lots of privileges Sep 06 18:32:24 *parsing Sep 06 18:33:10 "parsing code moved into unprivileged sandboxes that have few or no permissions " yey Sep 06 18:36:22 whats your guys average aquisition ratio for play store visits/installs? Sep 06 18:37:55 orbyt_: I think we’re at 10%? Sep 06 18:38:03 for what kind of app? Sep 06 18:38:33 Utility. Sep 06 18:38:52 are you above 500k downloads? Sep 06 18:39:11 Yup. Sep 06 18:39:25 ok interesting Sep 06 18:39:46 Oh, sorry. Sep 06 18:39:58 Our conversion rate is 59.7%. Sep 06 18:40:05 Visitors to installers. Sep 06 18:40:22 what should the dimensions of product icons be? Sep 06 18:40:23 60% of people that visit the page install it? And you have above 500k downloads? Sep 06 18:40:28 What app is it? Sep 06 18:40:37 i.e. the icons you see in the app drawer Sep 06 18:40:44 https://play.google.com/store/apps/details?id=com.primatelabs.geekbench&hl=en Sep 06 18:42:07 That conversion ratio seems unusually high but gratz. Sep 06 18:42:36 I have nothing else to compare it against, so I’ve no idea what’s “normal”. Sep 06 18:44:29 jfpoole if you dont mind me asking, what sort of business model do you guys have? Sep 06 18:45:39 What we lose on each sale we make up for in volume. Sep 06 18:46:42 But really, we sell licenses for other platforms. Sep 06 18:47:02 We also license source code access to hardware companies. Sep 06 18:47:16 your app looks sharp and clean Sep 06 18:52:20 Thanks! Sep 06 18:52:30 Anyone into custom styling want some SO points =)? http://stackoverflow.com/questions/39355914/how-to-apply-global-custom-style-to-android-support-design-widget-textinputeditt Sep 06 18:55:14 what do you get for so points? Sep 06 18:55:53 Anyone have experience with up navigation? Maybe I am doing this all wrong. But I cannot get Up Navigation to work at all. I created a demo app to test and still cant get it to work Docs seem to be wrong. Sep 06 18:55:58 https://gist.github.com/px-amaac/49d7c803304a2356c67cab013d63ec95/edit Sep 06 18:56:13 wait what, they have poutine in Oakland? Sep 06 18:57:00 Using the chromecast companion library, before I load my media item, I make sure that the CastManager is connected. However, I still get a NoConnectionException (unless I wait 1 extra second for things to catch up) - my VideoCastConsumerImpl is what is making sure I'm connected Sep 06 18:57:02 i would hope they do. Any major metro area should have it Sep 06 18:57:36 Oh, that's Berkeley Sep 06 18:57:52 hi all. im getting the following error and dont know how to resolve it. can anyone help me: Sep 06 18:57:56 Warning:Conflict with dependency 'junit:junit'. Resolved versions for app (3.8.2) and test app (4.12) differ. See http://g.co/androidstudio/app-test-app-conflict for details. Sep 06 18:58:03 s73v3r, uh, not really Sep 06 18:58:15 unless you're Canadian Sep 06 18:58:24 er, rather, you're in Canada Sep 06 18:59:17 no, it’s in many places around the US now, too Sep 06 18:59:31 same with lots of different ethnic foods Sep 06 18:59:41 well, it's not anywhere in the sfba except for this one place by ucb Sep 06 18:59:51 im on ubuntu-gnome android studio Sep 06 19:00:08 freakyy: read your error message. it tells you the issue Sep 06 19:00:58 i know the issue but i can only find testCompile 'junit:junit:4.12' once in both the build.gradle global and the app files Sep 06 19:01:20 and your other dependencies? Your non-test dependencies? Sep 06 19:01:59 pfn: you're so right with that Sep 06 19:02:25 And if you have an innovative idea, a larger company will steal it, clone your app, buy fake reviews, and make profit off it Sep 06 19:02:40 Far more than you ever will Sep 06 19:03:06 cause ideas are not the be-all, end-all of things Sep 06 19:03:31 That's another good point, the idea can be good, but the implementation shit Sep 06 19:03:38 and many are Sep 06 19:04:07 Just take Minecraft, Infiniminer, Terraria, there's dozens of games in the category, but Minecraft got popular because the implementation was idiot-proof Sep 06 19:05:26 If you want to code apps just like that, do it as hobby, not as business, or do it bundled with some other stuff Sep 06 19:05:39 (people pay for a subscription to a service, but rarely for an app) Sep 06 19:05:59 (and even then, B2B is a lot more profitable often) Sep 06 19:06:16 whore yourself out to businesses who want apps. make apps for them, and don’t worry on if the app is successful Sep 06 19:06:52 s73v3r: its a fresh android project and i get allt hese errors ive only added one dependency to gradle. here are my errors: http://paste.ubuntu.com/23142680/ Sep 06 19:06:57 can someone help me resolve it? Sep 06 19:07:27 freakyy: look at your dependencies Sep 06 19:10:47 Gradle build-info.xml not found for module app. Please make sure that you are using gradle plugin '2.0.0-alpha4' or higher. Sep 06 19:10:49 now i get this Sep 06 19:10:51 ? Sep 06 19:11:08 freakyy: one of your dependencies requires Java 8, (bytecode version 52), but the android compiler can only use java 7 (bytecode version 51 or earlier) Sep 06 19:11:15 That's the issue of the paste Sep 06 19:11:40 Well, that version of the compiler, I think jack&jill can handle 8 Sep 06 19:11:51 oh ok so android studio only has java 7? Sep 06 19:12:03 or is it possible to have it use java 8? Sep 06 19:12:14 yes you can use 1.8 Sep 06 19:12:23 ok lemme check Sep 06 19:12:28 s73v3r: yeah, businesses and governments, that's where the money is. Making apps for things no one wants but businesses pay for Sep 06 19:13:19 justJanne: how can i add java 8 i think i have only java8 jdk installed? Sep 06 19:13:24 A friend works at a small company in vienna doing that, from bee tracking games for the ministry of environment to apps for businesses, it's where you can actually get a reliable income Sep 06 19:13:39 freakyy: you can't, Android itself only supports 7 Sep 06 19:13:56 Only Android 7 Nougat will support Java 8 (does it actually?) Sep 06 19:14:23 parts Sep 06 19:14:30 But I think Google made a new android compiler that can compile Java 8 down so android can handle it actually Sep 06 19:14:37 I haven't checked out j&j Sep 06 19:14:53 oh ok thanks Sep 06 19:15:30 If you want to compile using jdk8 you need to set sourceCompatibility and targetCompatibility to java7 Sep 06 19:16:50 why are long running services so hard in Android!? >_< Sep 06 19:17:29 cause the android developers are so bad at managing battery, they decided the answer to get reasonable battery life is to hamstring all the app developers Sep 06 19:18:56 It's crazy that even if it's a foreground service with ongoing notification and a delayed repeating handler, it still doesn't work Sep 06 19:19:00 i'd like to see google open source some kind of gps app - like the old MyTracks - to show us how to properly "avoid" all their battery optimization traps Sep 06 19:19:21 afaik, using GMS location services, a lot of these apis require & check for activity contexts Sep 06 19:19:29 that’d be nice. although their answer right now would probably be “don’t do it" Sep 06 19:19:52 well it least on Wear, the device goes into doze when there isn't enough movement, like durign sleep Sep 06 19:19:56 Afzal that ... should work, hm Sep 06 19:20:08 oh, what is wear ? :P Sep 06 19:20:12 Android Wear lol Sep 06 19:21:15 they say that foreground services aren't affected by doze but my experience and testing says otherwise. Charging watch works flawlessly and doesn't work as well when unplugged. Once an hour instead of once a minute Sep 06 19:23:32 they say a lot of things about doze that aren’t true Sep 06 19:23:50 yuuup, trying alarm manager route now, don't have much hope Sep 06 19:23:52 Pandora’s alarm clock hasn’t worked right for me ever since I got an Android 6 phone Sep 06 19:24:23 last resort = Wakelock. just hold a damn wakelock till forever, this app isn't gonna be in production anyway Sep 06 19:24:44 Afzal i guess it could be like everything else oems do, maybe it was tweaked a little to be more agressive with battery Sep 06 19:25:08 maybe, I'm not even sure what changes OEMs make to the watches Sep 06 19:25:37 probably the ones needed to keep them running at least a few hours :P Sep 06 19:25:56 You complain about device sleeping without holding a wakelock? Sep 06 19:26:43 i don't think wakelock is going to help Sep 06 19:26:48 not these days anyhow Sep 06 19:27:29 unless battery optimizations are disabled anyhow Sep 06 19:28:18 hello Sep 06 19:28:22 SimonVT er, yes? Sep 06 19:28:34 I'm not complaining about a device sleeping Sep 06 19:28:50 welcome alex portal Sep 06 19:29:01 welcome all Sep 06 19:29:02 I'm complaining about a foreground service not being able to work with a delayed repeating handler every minute Sep 06 19:29:23 can any one help me Sep 06 19:29:28 While the device is awake? Sep 06 19:30:08 SimonVT no, it's plugged out so the watch could be in ambient mode or something Sep 06 19:30:09 hm? Sep 06 19:31:02 I need to add files to be copied from assest folder to data\data Sep 06 19:31:20 So the device is sleeping.. And Handler isn't working Sep 06 19:31:22 essa, okay, but why if they're in assets already, just use from there Sep 06 19:31:24 That seems to be expected Sep 06 19:31:29 SimonVT in a foreground service Sep 06 19:31:40 Foreground doesn't keep the device awake Sep 06 19:31:44 That's what wakelocks are for Sep 06 19:31:59 okay let me hold a wakelock and report back, thanks! Sep 06 19:32:08 Afzal, they are not there i want to add them there Sep 06 19:32:11 I didn't know i had to keep it awake :/ Sep 06 19:32:28 thats what wakelocks are for Sep 06 19:32:33 It has always worked like that, you've likely had issues before doze as well Sep 06 19:32:38 but with new doze mode who knows if they work now Sep 06 19:33:16 SimonVT yes I have Sep 06 19:33:56 Foreground is just a hint to Android that this process is important, and to please not kill it Sep 06 19:34:33 Might still get killed, but android should at least make an effort to kill less important processes first Sep 06 19:36:09 Hmm, alright, trying now :D Thanks a lot SimonVT Sep 06 19:37:13 If I download a database as a SQL file format, it should be easier to link it to a brand new android app (obviously with sqlhelper starting code)? Sep 06 19:37:31 i have this code from stackoverflow but have no idea whre to add it in the source Sep 06 19:37:45 SO, I have a problem connecting my pc to an 802.1X network, but I can connect via android device flawlessly. Sep 06 19:37:52 Is there any way (i.e. an app) that I can use to route wifi from my phone to my laptop? Sep 06 19:38:09 like a wifi adapter of some sort Sep 06 19:38:34 don't know if something like that exists Sep 06 19:38:35 adempus: Seems like a question for #android :) Sep 06 19:38:50 I've already asked them, nothing... Sep 06 19:38:51 usb tethering? Sep 06 19:39:09 Well, this channel is for app devs discussing app dev. Maybe try #android again later Sep 06 19:39:19 Thing is, I don't have mobile data Sep 06 19:39:42 usb tethering I think works with wifi too Sep 06 19:40:25 it works (worked?) with wifi. but last time i tried it was around android 2.3 Sep 06 19:40:46 adempus you may change your router password encryption i think that will help :) Sep 06 19:41:17 afzal , sorry but i need some help Sep 06 19:41:54 you have them in the app's asset folder though right? Sep 06 19:42:01 no Sep 06 19:42:12 i need to add it Sep 06 19:42:13 I Essa, how? Sep 06 19:43:58 Copy the files to your app's asset folder then ?? Essa Sep 06 19:44:02 in Android studio Sep 06 19:44:32 adempus, some devices cant authunticate with something like wpa2 or any other encryption changing to a lower one can help Sep 06 19:45:35 Afzal, then how to get them copied to the data path Sep 06 19:45:47 its a database file Sep 06 19:45:48 you don't need to copy them Sep 06 19:46:17 So... anyone know if it's possible to enable airplane mode programmatically? Sep 06 19:46:23 that must be in data\data\backage-name\databases Sep 06 19:46:26 what difference does it make if it's in the assets folder of the app vs /data/data, cause it's available to the app either way Sep 06 19:46:33 it doesn't need to be Sep 06 19:47:08 it matters if you need to edit/write to the files Sep 06 19:47:49 ./data/data/../whatever is for persistancy Sep 06 19:47:56 ah okay didn't realize that raoul11 Sep 06 19:47:57 i have an example link can i post it here ? Sep 06 19:48:04 If I have 3 Activities A, B, and C. I want to start Activity C from Activity A and when I press the up Button in Activity C the Activity B will start. Is this how UP navigation is supposed to work? Sep 06 19:48:22 Essa http://stackoverflow.com/questions/22903540/android-copy-files-from-assets-to-data-data-folder Sep 06 19:48:42 yes afzal thats the link Sep 06 19:48:48 shadynastys no, activity B won't start in this case Sep 06 19:49:02 but where this code added ? Sep 06 19:49:23 In the place where you want the asset file to be copied over Sep 06 19:49:28 like first run of the app maybe Sep 06 19:50:00 do i have to add it to the main activitey or to anew file Sep 06 19:50:25 you could add it to main activity, sort of like a first launch progress thing Sep 06 19:50:29 Afzal: Ty my understanding was wrong. Lame Sep 06 19:50:35 depends how nice you want it to look Sep 06 19:50:54 hmmm ok afzal i will try it Sep 06 19:51:29 thanx man Sep 06 19:52:20 shadynastys UP navigation is to get out from a deep hierarchy, back button is to get back to wherever the user was previously Sep 06 19:54:24 Afzal: First thank you much. I understand what they are supposed to do. Based on that I assumed that if the child activity was the only one started then UP would still start Parent activity and navigate to it. Sep 06 19:55:02 providing the correct path in the app without having to explicitly build it. Sep 06 19:55:49 oh yeah, I think it's not automatic unfortunately Sep 06 19:55:57 I guess Ill have to come up with another solution to make that happen. Thank you Afzal. Sep 06 19:56:05 hmm, good luck, yw Sep 06 19:56:20 what is the recommended way to apply an action bar on pre lollipop oses? Sep 06 19:56:26 best i have found so far is toolbar Sep 06 19:56:49 toolbar and setSupportActionBar(toolbar) Sep 06 19:56:56 thanks Sep 06 20:00:19 hey friends, i am new to this, i come from a very comfy c++ experience, now im trying to do this app on android, i have this algorithm i made to implement my solution, but i'm wondering what is the android "worflow", should i just write my algorithm (some hashmaps arithmetic and such) on java and then implement it on android studio? or should i just write my java algorithm to android studio? Sep 06 20:00:54 Just write in Android studio as an android app. Sep 06 20:01:06 i want to give each element of my hashmap an image and stuff, that's probably the xml part, but the algorithm is on java Sep 06 20:01:11 if you are familiar with C++, should not have much trouble with Java Sep 06 20:01:31 no need to write first in java Android studio is all Java so you will just be repeating work. Sep 06 20:01:40 hexagonSun_: I would look into selectors for that portion Sep 06 20:01:48 xximjasonxx i am having a great experience so far, no much problems, im just ignorant towards the xml-java composition Sep 06 20:02:10 kinda anxious to know, probably ahead of time Sep 06 20:02:13 xml should really just be used for your layouts and resources. Sep 06 20:02:15 but if you are coming from no android experience, getting a firm grasp on the layout system is going to be near the top of your todo list Sep 06 20:03:02 Afzal I think if I get parent intent with NavUtils.getParentActivityIntent(this); I should be able to launch parent with FLAG_ACTIVITY_CLEAR_TOP and pass extras if needed. Sep 06 20:03:28 probably, that seems familiar Sep 06 20:03:38 oh and set parent activity in the manifest yes yes Sep 06 20:03:57 Yes parent already set because i thought it already did this up nav for me. Sep 06 20:04:58 xximjasonxx i'll look into selectors, i'm thinking that what i want to achieve is probably not that complicated, it's just selecting fruits from a backet and then checking the weight of the basket (well, it's not actually that, but it's quite the same), i know how to do it on c++, so i'll probably have no much trouble converting it to java, but i'm wondering about the actual fruit image, on c++/java it Sep 06 20:05:00 would be just plain text, i'm just anxious about that Sep 06 20:06:13 understood, i envisioned something more complicated Sep 06 20:06:17 look into listviews Sep 06 20:06:21 and intents Sep 06 20:06:29 the rest should be pretty easy to pick up Sep 06 20:06:42 thank you, i will :) Sep 06 20:08:38 SimonVT seems to be working much better. Let's see tonight. Thanks again! Sep 06 20:11:31 Hello guys, anyone know if it is possible to launch an application straight to the background from other? Sep 06 20:11:46 i doubt it Sep 06 20:11:52 doing so would be a HUGE security hole Sep 06 20:14:03 Well I achieved to launch an application from other, but it comes to the foreground... And if I'm launching many, the rendering is too slow that most of them are not processed Sep 06 20:14:42 Pretty sure you would just make your "background" app into a service and launch it from your foreground app Sep 06 20:15:25 fvpinheiro: launching an activity means to bring it to the foreground Sep 06 20:16:15 Nahhh, it wouldn't work... I have a service actually that is a device admin owner. The problem is when I use setPermissionGrantState(packageName,permission,grantMode) with grantMode = DENIED, the applications which are permissions revoked just crash Sep 06 20:16:24 s73v3r: How would it be a security hole? Sep 06 20:16:25 and I would like to just from my service launch them again Sep 06 20:16:43 jjuran__: An app launching things into the background that you don’t know is happening? Sep 06 20:17:23 s73v3r: What about Runtime.exec()? Sep 06 20:17:29 what about it? Sep 06 20:18:20 There are numerous ways to execute code besides activities. Sep 06 20:18:29 and? Sep 06 20:18:33 that doesn’t change a thing I said Sep 06 20:18:43 The point is, you're trusting the app not to do anything nefarious. Sep 06 20:18:48 the presence of other ways to do something doesn’t mean that any particluar way isn’t a security hole Sep 06 20:19:28 I don't see how launching a background activity is any worse than a background service or a native process. Sep 06 20:19:56 doesn’t matter Sep 06 20:20:29 So, anyway out of your knowledge how I could accomplish that? Sep 06 20:20:59 code the applications to deal with a revoked permission? Sep 06 20:21:38 nope, that's not the point Sep 06 20:21:45 fvpinheiro, why can't you use a service? Sep 06 20:22:14 the applications crash not because it can't handle a revoked permission Sep 06 20:22:23 the problem is with the setPermissionGrantState function Sep 06 20:22:34 when its set to deny something, it no matter what crash the application Sep 06 20:22:38 looks like a SIGSTOP Sep 06 20:22:50 mann, what do you mean use a service? Sep 06 20:23:13 fvpinheiro, https://developer.android.com/guide/components/services.html Sep 06 20:23:40 mann, I don't get your point... Sep 06 20:23:49 I know what services are, and how to use them Sep 06 20:24:25 And it does not meet your need? " Hello guys, anyone know if it is possible to launch an application straight to the background from other" Sep 06 20:24:39 That's pretty much exactly what a service does... Sep 06 20:25:21 i’m assuming they mean another app. as in, something not their app Sep 06 20:25:43 Oh. Sep 06 20:25:45 or I didn't explain myself well or you didn't understand what I meant. I have a service running that controls the permissions of every application. Unfortunately, when I deny a permission to an application, it crashes. Sep 06 20:26:09 So, I would like my service to launch the application that just crashed (but straight to the background) Sep 06 20:26:22 to don't impact the "user experience" Sep 06 20:26:31 I don't know if I made my point clear enough Sep 06 20:26:43 It is clearer now. Sep 06 20:26:51 Hi everyone, can someone help me out a sec with a java error on my build? Sep 06 20:27:24 When a button is pressed in `MainActivity`, if the user is logged in, I start another activity (B). If the user is not logged in, I want to go to the `LoginActivity`, and if the user successfully logs in, then start activity B. Should I implement this using `onActivityResult()` in MainActivity? Sep 06 20:29:25 fvpinheiro, since you're talking about starting other applications (not your own) in the background that may be tricky Sep 06 20:30:34 mann, as I said, I accomplished launching applications form my service. But they come to the foreground... Another problem I'm facing is also if I launch more than 1 application, only 1 is processed Sep 06 20:30:51 if I debug it slowly, it all works Sep 06 20:30:59 off the top of my head I imagine you start your failed app and immediately call the home launcher Sep 06 20:31:18 I don't believe there's anyway to start an app immediately in the background Sep 06 20:31:22 I did that, but the code looks like it's not processed, because rendering that is too slow Sep 06 20:31:48 only looks to be working if I'm debugging Sep 06 20:31:58 and I go line by line Sep 06 20:32:07 delay your launches? Sep 06 20:32:55 what do you mean? Sep 06 20:33:44 minas114 yes Sep 06 20:33:46 if you're launching multiple applications, stagger them (delay each launch by a short amount of time) Sep 06 20:34:03 minas114 wellllll, maybe not Sep 06 20:34:05 so you don't launch them all at the same time Sep 06 20:34:16 maybe 500ms delay or something Sep 06 20:34:31 might help your rendering issue Sep 06 20:34:36 Afzal, How else? Sep 06 20:34:40 you can go directly to activity B after login if that's always the case. Sep 06 20:35:03 otherwise determine in MainActivity whether you should call startActivity or startActivityForResult Sep 06 20:35:04 then yes Sep 06 20:35:40 mann, sorry but even if It is only 1 it doesn't immediately work Sep 06 20:35:48 Can someone help? I'm getting this error while trying to build AOSP from source (Just a few commits more in some repos) http://pastebin.com/ZdZK4smD Sep 06 20:36:15 why is every designer only ever look at iOS Sep 06 20:36:17 *sigh*' Sep 06 20:36:20 *does Sep 06 20:36:52 Afzal, it's not always the case... So I thought: When starting login activity, add a code as parameter. If the login succeeds, login activity will send the same code back to the main activity, so it will know what to start. Sep 06 20:36:58 probably easier to deal with than android Sep 06 20:37:06 hmm that works minas114 Sep 06 20:37:32 you would think with 80% marketshare it would be Android getting the emphasis not iOS. So weird how that works Sep 06 20:37:40 i mean, i get the profit margin difference, but still Sep 06 20:37:49 profit is all that matters Sep 06 20:37:50 fragmentation is a large problem Sep 06 20:38:04 don't really have to deal with that in iOS Sep 06 20:38:12 fragmentation is, but i mean i meet designers who dont even look at Android Sep 06 20:38:16 just copy iOS they say Sep 06 20:38:25 then fire them Sep 06 20:38:26 and when i finally get them to look at Material, they always go "wow" Sep 06 20:38:29 they’re shitty designers Sep 06 20:38:33 not in my power Sep 06 20:38:44 then complain to their boss that they’re not doing their jobs Sep 06 20:38:59 same thing you’d do for any other person you have to work with who’s not doing what they need to do Sep 06 20:39:05 s73v3r: I have, often they are our clients providing the designer Sep 06 20:39:06 s73v3r I like your style. Sep 06 20:39:13 and i am more or less venting right now Sep 06 20:39:18 xximjasonxx: it's a historical thing — for a long time iOS was the money maker and android didn't make any money from apps Sep 06 20:39:29 if it’s the clients, then there’s nothing you can do. What the client says, goes Sep 06 20:39:43 pretty much, just frustrating Sep 06 20:39:47 or, if they don’t seem to care that much, take the basic iOS layout, and materialize it Sep 06 20:40:49 my chief complaint with designers is they design static images a lot of the time and don't take into consideration interaction — need more interaction designers Sep 06 20:41:12 growing field Sep 06 20:41:14 i get that a lot Sep 06 20:41:16 UIX engineers Sep 06 20:41:22 often i have to fill in the gaps Sep 06 20:41:32 what microsoft called "devigners" back a few years ago Sep 06 20:41:37 there are a number of nice tools coming out for that purpose Sep 06 20:42:20 I spent a month at a company writing up docs about how Android and iOS layouts needed to be different. Our designers already had material worked out though. Management didnt believe me for a bit. Sep 06 20:42:57 i think, like was said, its a historical thing Sep 06 20:42:59 tis why I'm using Xamarin Sep 06 20:43:02 quite nice Sep 06 20:43:18 re-use most of the layout across both platforms Sep 06 20:43:28 ReactNative is getting there. Shows promise if there is community behind it. Sep 06 20:43:30 that sounds like a recipe for a shitty app Sep 06 20:43:37 But i hate JS Sep 06 20:43:47 mann: using Xamarin here as well Sep 06 20:43:53 did Java for a long while Sep 06 20:44:07 but i mean, i think, maybe like a lot of devs, designers get good at one platform and stick with that Sep 06 20:44:26 true Sep 06 20:44:27 i mean, and this is a personal opinion, WIndows Phone had a great design Sep 06 20:44:32 but, no marketshare Sep 06 20:44:41 Never used Xamarin. I figured if I was going to learn that I might as well just learn native iOS Sep 06 20:44:41 now Android has a great design Sep 06 20:44:45 I know more C# than java or switft so worked out well for me Sep 06 20:45:00 shadynastys: i mean, if you know native (I do) its not a hard transition Sep 06 20:45:07 plus its nice to write the network layer once Sep 06 20:45:18 yeah I do like the material design Sep 06 20:45:36 but, it doesnt compare to pure Android dev (or iOS dev). Not talking about performance or size anything like that Sep 06 20:45:47 you can "feel" its a third party approach Sep 06 20:45:52 true Sep 06 20:45:54 as a developer i mean Sep 06 20:45:56 not as a user Sep 06 20:46:03 the apps themselves are basically the same Sep 06 20:46:06 I feel like there is so so much more you can do if you know native iOS and Android. Its just worth it to me to learn both. Sep 06 20:46:08 feel and look the same Sep 06 20:46:11 oddly enough I like using Visual Studio better than Android Studio Sep 06 20:46:23 but I'm sure I'm an oddball in that regard Sep 06 20:46:31 Android Studio has gotten a lot better Sep 06 20:46:45 true AS has improved a lot over the years . Sep 06 20:46:58 if i had to rank my IDEs - 1) VS 2) Xcode 3) AS 4) XS Sep 06 20:46:58 Build times are still an issue at times. Sep 06 20:47:12 the thing is Xamarin is basically native android though. It supports the entire sdk 100% Sep 06 20:47:24 the forms is where it gets a bit trickier Sep 06 20:47:28 mann: that is true for both, although its actually not true for iOS Sep 06 20:47:39 Xamarin cannot duplicate dynamic KVO operations Sep 06 20:48:06 yeah I personally quite love Visual Studio as an IDE Sep 06 20:48:16 but with iOS you will get 99% of what you need, and i would bet many, even here do not know what dynamic KVO even is :) Sep 06 20:48:19 it's what drew me to learning C#/.NET Sep 06 20:48:30 Easy question, is there an @IntDef that are flags instead of enums? Sep 06 20:48:35 mann: i have the advantage of knowing and doing work in all 3 Sep 06 20:49:07 oh- @IntDef(flag=true) Sep 06 20:49:16 I've done a little work with AS (tutorials) so I'm definetely not super experianced with it. Sep 06 20:49:18 shadynastys: as for learning native. Absolutely, we teach all of our new hires the native platform before Xamarin Sep 06 20:49:43 Coding in VS feels comfortable for me an I quite like some of the Xamarin stuff like the visual manifest editor and suchs Sep 06 20:49:43 you have to understand the concepts and paradigms whether you are in Xamarin or native Sep 06 20:49:51 xximjasonxx: you are the best in the universe and the only who knows what dynamic KVO is Sep 06 20:50:05 Arancio: sorry that was a typo Sep 06 20:50:16 You make some solid points though Sep 06 20:50:22 I just joined the dark side this year and got a Mac so im just getting into in iOS Sep 06 20:50:25 meant to say "probably most here dont know it" - its a rather obscure area of iOS Sep 06 20:50:46 ok. friends as before Sep 06 20:50:53 shadynastys: its fun Sep 06 20:51:05 I'm sure at some point I'll do an Android Studio project for my own edification Sep 06 20:52:03 too many people i meet feel that learning Xamarin negates the need to understand the platform Sep 06 20:52:48 I think thats true for any third party solution to app development. Sep 06 20:53:17 Which explains why there are so many bad apps written with those platforms. Sep 06 20:53:20 Yeah I end up looking through the android docs more than the xamarin ones Sep 06 20:53:29 biggest thing i get right now is, since Microsoft bought Xamarin, we get clients who ask us about it. Too many mobile shops say its a hybrid solutionts Sep 06 20:53:32 *solution Sep 06 20:53:33 its really not Sep 06 20:53:51 so we have to set them straight Sep 06 20:54:06 So far I've been able to more-or-less just copy and paste the straight native android code example into Xamarin Sep 06 20:54:19 with adjustments of course for the nomenclature and such Sep 06 20:54:32 mann: ios is a whole other beast. Both Android and Mono are JITed Sep 06 20:54:43 take Mono's JIT to iOS ARC Sep 06 20:54:46 that is a whole new ballgame Sep 06 20:54:47 Yeah I bet. Haven't touch iOS at all. Sep 06 20:57:44 Is this discussion about iOS vs Android vs Xamarin terminated? Sep 06 20:57:57 I want more. Please continue the discussion Sep 06 20:58:08 feel free to spur it Sep 06 20:58:13 no argument is ever terminated. It is only backburnered until it is spurred on Sep 06 20:58:20 lol nice Sep 06 20:58:25 Ok Sep 06 20:58:40 * Arancio stares the screen patiently Sep 06 20:58:47 you think Apple and Samsung are done fighting? :) Sep 06 20:58:56 :) Sep 06 20:58:57 how about this.. What about running the apps. Sep 06 20:59:12 as a developer or as a user? Sep 06 20:59:19 on iOS do you NEEED a device? like on android you pretty much need a device to test. Sep 06 20:59:27 shadynastys: yes Sep 06 20:59:44 though for layout the simulators work pretty well Sep 06 20:59:52 well that dampens my excitement. Now i need 2 phones. Sep 06 21:00:02 but you can do no service interaction (GPS, Gyroscope, etc) Sep 06 21:00:26 does simulator let you control them with commands? like adb geo fix? Sep 06 21:00:26 Visual Studio emulators are pretty rad... Sep 06 21:00:34 shadynastys: no Sep 06 21:00:37 lame Sep 06 21:00:39 very Sep 06 21:01:00 they run smoother from what i have seen. Sep 06 21:01:09 sometimes... Sep 06 21:01:16 a broke down chevy runs better than most of the android emulators i have seen Sep 06 21:01:21 lol Sep 06 21:01:30 assuming you got one to run. Sep 06 21:01:41 :) Sep 06 21:01:41 as of Visual Studio 2015 the emulators leverage hyper-v, they run quite nicely Sep 06 21:01:48 its why things like Genymotion have to exist Sep 06 21:01:52 although Haxm makes it better Sep 06 21:02:13 dare to say might run even better than haxm Sep 06 21:02:16 well of course, now that Google got wise Sep 06 21:02:27 and started actually including x86 versions of the OS instead of ONLY ARM Sep 06 21:02:41 so you can do less emulation and take advantage of your machine more Sep 06 21:02:41 yeah that was a smart move Sep 06 21:02:57 first time I fired up an emulator, took 20 minutes just to boot =. Sep 06 21:02:58 yes they had to. Emulators were a joke... are a joke. Sep 06 21:02:58 =/ Sep 06 21:03:35 10 kittens died every time the emulator was started for debug Sep 06 21:03:36 honestly the visual studio emulators are pretty darn good Sep 06 21:03:48 surprisingly quick Sep 06 21:03:53 well most of them (Xamarin has their own as well) have started branching from the Genymotion source Sep 06 21:04:02 there was a time when Geny was open Sep 06 21:04:03 not anymore Sep 06 21:04:04 if I wasn't using vmware workstation I'd be using it all the time Sep 06 21:04:20 Xamarin ones are now defunct Sep 06 21:04:30 ehh i mean, you can use it still its just never going to leave Preview Sep 06 21:04:42 see thats what i need to do, bring my AVDs to XS Sep 06 21:05:00 since now AS doesnt screw up the config file when it creates them Sep 06 21:05:30 Whats the feelings on instant run in AS? Sep 06 21:05:46 pretty cool Sep 06 21:05:51 love it, but i saw the videos from i/o Sep 06 21:06:01 sorry, that was supposed to say, havent used it Sep 06 21:06:07 but based on the videos, i am going to love it' Sep 06 21:06:26 i find it only useful sometimes. It increases the actual build time for me. so there are times that i need to disable. Sep 06 21:09:02 if you hold shift while using instant run it'll force re-deployment of the apk... came in handy Sep 06 21:28:43 Can someone help? I keep getting this error while building android. http://pastebin.com/ZdZK4smD Sep 06 21:29:46 try #android-root. This channel is for app development Sep 06 21:30:15 s73v3r: Thanks, will do. Sep 06 21:30:22 good luch Sep 06 21:30:23 luck Sep 06 21:41:13 s73v3r, got some specific question related to gradle (hope so :) Sep 06 21:42:15 what version of the design support library should I used with API 23? Sep 06 21:42:31 I have created signed apk - than I have used dex2jar and now I am reading output with jd-gui Sep 06 21:42:34 the same version of support library that you’re using Sep 06 21:43:12 Arancio, 23.4.0 Sep 06 21:43:29 bolovanos: thanks. How do you know that? Sep 06 21:44:13 bolovanos: I always have this problem each time I read a tutorial that says "use library #" Sep 06 21:45:16 Arancio: you use the same major version as the API you’re using Sep 06 21:45:23 same with the other support libs Sep 06 21:45:47 and the rest? How do I know what's the latest revision? Sep 06 21:45:57 Is there a place where I can read that? Sep 06 21:46:04 you look on the tools site Sep 06 21:46:53 :) Sep 06 21:46:57 like that Sep 06 21:46:59 https://developer.android.com/topic/libraries/support-library/revisions.html Sep 06 21:48:15 back to my problem - In decompiled app I can see strings used in log.?("", ""); rows - for some reason all strings are not obfuscated Sep 06 21:48:31 i know nothing about decompiled apps Sep 06 21:49:01 I would like to setup gradle script to comment all log.?(); rows Sep 06 21:49:16 in my code - is it possible? Sep 06 21:50:31 s73v3r: thanks, s73v3r! I bookmarked that page Sep 06 21:50:37 bolovanos: thanks Sep 06 21:51:01 why commenting - it will be removed by gradle shrink routines Sep 06 21:54:40 s73v3r, I have decompiled it in order to see how unreadable my code will be in case when someone decompiles it Sep 06 21:58:04 bolovanos: can I ask you what kind of application are you working on? Sep 06 21:58:40 strings will not get obfuscated by proguard Sep 06 21:59:19 pfn: hi. Why do you hate me? Sep 06 21:59:21 if you want to remove log calls specify -assumenosideeffects properly Sep 06 22:00:03 bolovanos: so, if you want it to strip the log statements, don't you just do an if (DEBUG) Log.d(…) and it will strip it on compilation when the static final variable is false? Sep 06 22:01:04 pfn, ok will look at that Sep 06 22:01:36 herriojr, hi - that is question or recommendation :) Sep 06 22:01:52 bolovanos: that's how it used to be done unless things have changed Sep 06 22:02:14 herriojr, what do you mean by "things have changed"? Sep 06 22:02:18 will javac actually elude the calls? Sep 06 22:02:29 elide Sep 06 22:02:46 will test it Sep 06 22:03:15 it will not elude them. They will be found, one way or the other Sep 06 22:03:54 bolovanos: meaning with the new compilation methods since 1.5 days Sep 06 22:04:49 apparently SwiftKey thinks elide is not a word Sep 06 22:05:20 bolovanos: basically, the reason you see "if (DEBUG)" sprinkled in code is the compiler at the time optimized out those statements if "static final boolean DEBUG = false;" … my assumption is it is still the case Sep 06 22:07:11 SwiftKey doesn't "think". It's a piece of software Sep 06 22:07:27 Arancio: what's your definition of think? :P Sep 06 22:08:32 herriojr, u r right with that I am using "if (DEBUG)" to suppress log in release Sep 06 22:09:07 bolovanos: my understanding is it shouldn't generate any actually code for it when DEBUG == false Sep 06 22:09:12 *byte code Sep 06 22:09:14 herriojr, right now I have used Log.d("",""); directly in code and after decompilation - it is still there Sep 06 22:09:19 normally readable Sep 06 22:09:36 yes debug is set to false Sep 06 22:09:47 resp debuggable false Sep 06 22:09:55 herriojr: "thinking" includes complex behaviours that we currently are not capable of emulating with automatic computation Sep 06 22:10:48 Arancio: based on that definition, it is something we will never achieve Sep 06 22:11:00 sry debug was set to false Sep 06 22:11:10 bolovanos: and debug is a static final variable? Sep 06 22:11:29 herriojr: we already achieve it. You are thinking. I guess I am too. Sep 06 22:12:07 Arancio: yes, but based on your definition, computers will never achieve it Sep 06 22:12:24 herriojr: maybe we'll achieve it using automatic computers or maybe not. There is sure lots of work Sep 06 22:13:10 herriojr: no, I don't think there is nothing is my "non-definition" that say we can't achieve something worth of calling "thinking" with computers of some sort Sep 06 22:13:12 Arancio: what I'm getting at is we don't have a good definition of what "thinking" is — if you read your definition carefully, you'll understand why I'm saying what I'm saying Sep 06 22:14:43 herriojr, if by "debug" is meant "if (DEBUG) {do some logging}" than yes it is Sep 06 22:15:17 bolovanos: meaning the DEBUG variable is static final Sep 06 22:15:22 herriojr: I called it "non-definition" myself. But I wrote "we currently are not capable", emphasis on "currently". I didn't define thinking as everything that can't be computed currently. I referred, without mentioning them, that there are complex activities of your brain that with can't emulate with computers. Sep 06 22:16:37 herriojr: I don't know what's the state of the research in this field. I don't want to limit the possible future achievements of A.I. Sep 06 22:20:06 bolovanos: that's interesting then if it's a static final variable and still being included when DEBUG = false — it's counter to the idea of it optimizing it out which was prevalent back in the day Sep 06 22:21:28 bolovanos: http://stackoverflow.com/questions/7122723/will-the-compiler-optimize-this-out Sep 06 22:21:34 herriojr: then I can easily see how someone could anthropomorphize a pet, a thing or even a software and say "SwiftKey thinks this or that". I was joking Sep 06 22:21:47 Arancio: I was just being an ass Sep 06 22:21:59 herriojr: you failed Sep 06 22:22:00 Arancio: don't worry about it Sep 06 22:22:05 heh Sep 06 22:22:07 :D Sep 06 22:22:12 I was just being an ass Sep 06 22:22:19 friends? Sep 06 22:22:19 I am not sure if we do understand each other. But my goal is to have decompiled classes without strings used on some rows and I do want to leave those rows in source code and at the same time be able to locate problematic row with fabric Sep 06 22:22:29 buncha asses here, eh? Sep 06 22:22:46 herriojr, yes maybe the problem is that I have special class with that if condition Sep 06 22:22:48 bolovanos: I only caught the "you want to remove log statements" part Sep 06 22:23:04 bolovanos: so I was saying how to optimize those out Sep 06 22:23:21 bolovanos: removing strings means they need to not be used outside of optimized out code Sep 06 22:23:35 herriojr, oki :) - one note to clarify situation Sep 06 22:23:40 I’m 99.999999% sure you’re way overthinking this, and aren’t going to be doing anything meaningful Sep 06 22:24:11 not friends :-( Sep 06 22:24:40 herriojr, instead of Log.d(TAG, "SOMEHITNG) i have LogIf.d(TAG, "SOMETHING) Sep 06 22:25:08 why if I take a picture with an intent, I get a thumbnail by default and I have to ask for the whole image but when I record a video I get the whole video by default? Sep 06 22:25:35 bolovanos: can you pastebin it so I can see the actual code for this? Sep 06 22:25:41 where LogIf is class Sep 06 22:25:43 herriojr, yes sec Sep 06 22:25:55 bolovanos: no, you don't want to create a class to do it Sep 06 22:26:07 you literally need if (DEBUG) Log.d(TAG, "blah"); Sep 06 22:26:11 and the procedure for having the whole image is quite complex. Receiving a video is the same operation, just with a bigger file, but it's easier. What kind of API is that? Sep 06 22:26:32 herriojr, I understand that, but I am just saying what I have now Sep 06 22:27:15 ok, yeah, that won't optimize out the string Sep 06 22:27:23 as your class won't be optimized out Sep 06 22:27:52 herriojr, ok that is supported with that decompiled code I have Sep 06 22:28:40 herriojr, btw - doing for each Log If(DEBUG) Log... - that is - cannot find right words for it Sep 06 22:30:33 bolovanos: can I get the pastebin? Sep 06 22:30:40 bolovanos: I feel we are talking in circles Sep 06 22:32:56 you must have the world’s only bugfree app to be spending so much time on something that won’t benefit your users in the least Sep 06 22:32:58 herriojr, http://pastebin.com/ACrgP6Qp Sep 06 22:33:22 s73v3r, :) just learning how it works Sep 06 22:34:03 Confirmation link VS activation code for signup in Android app? GO! Sep 06 22:34:30 you’re gonna have to provide a lot more context than that Sep 06 22:36:12 You sign up with username,pw,email, get a mail with 1. confirmation link or 2. code to fill in in the app. which is better? link is more convenient for the user, code for me. Sep 06 22:37:23 meinteil: obviously what's more convenient for your users wins Sep 06 22:39:24 herriojr, now I have tested this "if (Initialize.isInDebug()) {Log.d(TAG, "setListViewDesignSize, sizeMultipliery: " + sizeMultiplier);}" - where Initialize.isInDebug() points to "private static final Boolean debug = (BuildConfig.BUILD_TYPE.equals("debug"));" and again it can be seen in decompiled version Sep 06 22:40:23 bolovanos: do it without any function call Sep 06 22:41:09 sorry lost connection can you repost if you psoted something after: Sep 06 22:41:10 You sign up with username,pw,email, get a mail with 1. confirmation link or 2. code to fill in in the app. which is better? link is more convenient for the user, code for me. Sep 06 22:41:53 use a 3rd party instead Sep 06 22:42:01 meinteil: obviously what's more convenient for your users wins Sep 06 22:42:12 meinteil: I wrote that before Sep 06 22:42:30 I missed it Sep 06 22:42:33 bolovanos: http://pastebin.com/2ZjcgMza Sep 06 22:42:37 i lost connection Sep 06 22:42:42 code needs to be long Sep 06 22:42:48 which is extremely inconvenient Sep 06 22:42:53 I dont want to send a link to my server backend, at least the hacker should be able to decompile the app to get that. Maybe have another backend that makes a request to the real backend? Sep 06 22:43:04 meinteil: always do what is more convenient for the user Sep 06 22:43:26 herriojr: I said that oto Sep 06 22:43:27 too Sep 06 22:44:39 hey all. im having a problem. i have "Android App Programming for Dummies" .. and now ... i have this example but theres an > too much imo? http://hastebin.com/rojinoreyo.xml Sep 06 22:44:46 herriojr, ok sec Sep 06 22:46:50 Plus it's foreground and probably src for imageview Sep 06 22:47:32 And foreground is missing closing " Sep 06 22:48:38 i think line 7 is too much? Sep 06 22:48:41 no Sep 06 22:48:50 Studio would tell you there’s an error Sep 06 22:49:40 herriojr, finally home - thank you! Sep 06 22:50:33 I just wanted to have it clean, but it seems to me that it is impossible to have it clean and not present in decompiled version Sep 06 22:50:53 if I understand it well Sep 06 22:52:22 thank oyu very much guys! :D Sep 06 22:52:33 it works now ^ Sep 06 22:52:34 ^^ Sep 06 22:55:48 freakyy: yay! you are welcome! Sep 06 23:21:50 Is there any source I can see to check all prebuilt themes, icons, colours etc? Sep 06 23:24:30 platforms/android-*/data/res/... Sep 06 23:26:21 Faizan take not of the public resources ;) Sep 06 23:27:22 where can I find them? Sep 06 23:27:25 ah Sep 06 23:27:30 pfn's path Sep 06 23:27:45 is there anywhere online where I can see them? Sep 06 23:29:13 the online git repo? Sep 06 23:29:41 I wish I knew how to find all this stuff... lol Sep 06 23:29:57 pfn just told you where it is. Sep 06 23:31:24 Faizan: what pfn didn't tell you is that you have that stuff on your computer Sep 06 23:32:29 Faizan: look into the home of Android SDK on your computer for paths like that where * is the API level Sep 06 23:33:48 Faizan: why didn't he tell you that? Because he needed to stroke his ego humiliating you Sep 06 23:34:19 Faizan: "Android Programming: The Big Nerd Ranch Guide" explains that Sep 06 23:37:15 Faizan: http://tinyurl.com/PATBNRG Sep 06 23:45:33 hello, I'm trying to figure out whether on Android it's possible two have two native executable shipped in the same app package and switch between them. so i would specify one as the launch process and be able to programmatically switch to the other executable and have it take control of the screen / input etc. Sep 06 23:45:46 it's in the sdk... Sep 06 23:45:57 use a little bit of intuition Sep 06 23:45:57 too late Sep 06 23:46:57 it seems like Runtime.exec family of functions are limited to stdout / stdin stuff only. And the only other way is to have these as separate apps, which is not really what I want. Sep 06 23:47:38 translation "use a little bit of intuition" = "you are not smart as I am" Sep 06 23:48:35 lol Sep 06 23:48:40 pfn: is that meant for me? i've been over the docs and haven't found anything. even just a yes - this is possible or no - it's not would be helpful. Sep 06 23:50:17 Arancio: thanks alot! Sep 06 23:50:28 Yeah too many people with big egos here gets a little annoying Sep 06 23:51:30 at the same time, there are far too many people who flat out refuse to read anything, and expect you to read it for them Sep 06 23:52:10 Where can I even read this info though? Sep 06 23:52:13 sourceterm, no, don't use executables Sep 06 23:52:16 If I don't know the terms Sep 06 23:52:22 I didn't know you call them system icons for example Sep 06 23:55:26 then dig for them and figure it out Sep 06 23:55:59 Or how about if it's such a big deal for you to help me with a question that may be basic to you, then don't answer my question? Sep 06 23:56:24 I answered your question fully Sep 06 23:56:54 if you can't be bothered to try, you can feel free to continue feeling stupid Sep 06 23:57:09 Yes you did answer my question but you're still butthurt about the question being easy to figure out Sep 06 23:57:32 erm Sep 06 23:58:37 clearly, I need to throw out more trash into the ignore list Sep 06 23:58:52 typical useless noise Sep 06 23:59:07 you'd be at it forever Sep 06 23:59:08 You do that Sep 06 23:59:27 Or maybe just get off the internet Sep 06 23:59:30 Might make things easier Sep 07 00:01:36 Isn't calling someone trash considered name-calling? Sep 07 00:01:41 yes, you go do that Sep 07 00:01:52 you have nothing to contribute Sep 07 00:01:59 Arancio: Yes, it is Sep 07 00:02:29 people love handouts here Sep 07 00:03:10 almost as much as they love being surly Sep 07 00:03:34 Dont call me surly Sep 07 00:03:45 ÂŻ\_(ツ)_/ÂŻ Sep 07 00:12:42 Is the big nerd ranch book still useful even though it's not been updated? Sep 07 00:12:53 hey guys, my app is crashing on boot and i'm not sure why. logcat is giving me this: http://pastebin.com/P6jxb8dn Sep 07 00:13:33 ive googled it a bit and it seems like it could be conflicting support lib versions in the deps of the project. anyone had a similar issue? Sep 07 00:17:04 Have you tried turning it off and on again? (gradle clean project-restart and invalidate caches-rebuild) Sep 07 00:17:59 orbyt_: are those all gradle tasks are they?ive only done a clean, not invalidate and caches-rebuild Sep 07 00:18:16 the invalidate and restart is for android studio Sep 07 00:19:04 orbyt_: hmm ok im building from command line with gradle to make sure instant run isnt screwing with it Sep 07 00:19:20 you can just disable instant run Sep 07 00:19:57 on boot of device? Sep 07 00:20:34 whatitis: nah i mean when i run the app sorry, emulator boots all g. app is started from the launcher Sep 07 00:20:51 ah so on launch, was just checkin Sep 07 00:21:24 https://www.reddit.com/r/learnprogramming/comments/51icpc/android_code_works_on_emulator_not_on_actual/ Sep 07 00:21:26 says no class defined error, narrow that down Sep 07 00:21:34 Faizan: if it's your first Android book, it's a good book anyway. If you already know the basic another book like "The Busy Coder's Guide to Android Development" is better Sep 07 00:21:48 Yeah Arancio that's what I currently use Sep 07 00:21:48 if anyone can help me out, my app does not work on my phone it only works on the emulator Sep 07 00:22:09 But it's at 3000 something pages, was wondering if the big nerd ranch book might be a bit more concise Sep 07 00:22:12 https://github.com/RickArora/CoffeeCounter Sep 07 00:22:19 that is the code please help Sep 07 00:22:48 What do you mean by "does not work on my phone" Sep 07 00:22:49 Faizan: It’s more of a reference, than something you read front to back Sep 07 00:23:00 does it insta crash? Sep 07 00:23:07 or not run at all? Sep 07 00:23:08 Faizan: I read random chapter from the "Busy Coder's Guide". I read "The Big Nerd Ranch Guide" from cover to cover (mostly) Sep 07 00:23:14 Faizan: two different books Sep 07 00:23:17 I also developed that app (from udacity), Swyper Sep 07 00:23:31 oh cool Faizan Sep 07 00:23:41 Yeah Arancio, I think it may be worthwhile for me to get the big nerd ranch book Sep 07 00:23:54 Faizan it runs but when I click order total it crashes Sep 07 00:23:56 I've only created a handful of simple apps so very much still a beginner Sep 07 00:24:09 logcat Sep 07 00:24:14 Swyper: can you paste your logcat in a pastebin? Sep 07 00:24:32 Faizan: if you feel overwhelmed by "The Busy Coder's Guide" then yes Sep 07 00:24:39 asj him to read it Sep 07 00:24:53 Swyper you have to define "does not work" in some way Sep 07 00:25:04 crash Sep 07 00:25:21 whatitis I did read up, it crashes when you press the order button on my phone, but it works fine in the emulator Sep 07 00:25:22 "The Busy Coder's Guide" is a very good book and goes in to depth, but I just don't think it's concise Sep 07 00:25:29 Swyper: the stacktrace says that your button is looking for a method that isn’t in your activity Sep 07 00:25:33 so yeah I'll try that other book Sep 07 00:25:49 on a side note, using the onClick stuff in layouts is generally a bad idea Sep 07 00:25:56 better to use setOnClickListener in code Sep 07 00:26:18 s73v3r but it is in the activity, and it works in the emulator Sep 07 00:26:25 is it? Sep 07 00:26:32 which button? Sep 07 00:26:58 submitOrder Sep 07 00:27:14 s73v3r: why is using onClick bad for simple buttons? Sep 07 00:27:32 for one, it binds your layout to your activity Sep 07 00:27:34 or anything that doesn't really require multiple gestures Sep 07 00:27:36 alright guys wait up for the log thing Sep 07 00:27:48 for two, it makes it difficult to associate the two Sep 07 00:28:01 Ah I see Sep 07 00:29:00 "it binds your layout to your activity" is that generally bad if your layout was designed for only one activity anyway? Sep 07 00:29:12 don't you have to implement onClickListener on activity when using onClick in xml? Sep 07 00:29:18 nope Sep 07 00:29:18 it is when you don’t have to do that in the first place Sep 07 00:29:43 You literally give it a method name whatitis, and when the button is pressed, the code in the method is executed Sep 07 00:29:59 unless you spelled the method name wrong, or someone changed the method name Sep 07 00:30:00 Why am I getting this exception even if I have in the manifest? java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/video/media/68 from pid=13855, uid=10065 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() Sep 07 00:30:03 then it just crashes Sep 07 00:30:39 Yeah I agree with that s73v3r Sep 07 00:30:59 there is no upside at all to using onClick instead of setOnClickListener Sep 07 00:31:05 s73v3r , do you know what is wrong with my code, I am having problems getting the logcat because it is having problems reading my phone right now Sep 07 00:31:09 give me a minute guys' Sep 07 00:31:36 * Arancio hands Swyper a minute Sep 07 00:31:39 you’d have to do a better paste. Sep 07 00:31:50 Arancio, you need to request for that permission at runtime since marshmallow Sep 07 00:31:54 Arancio: isn't READ_EXTERNAL_STORAGE a dangerous permission, so from API 21(?) + you need to check permissions iat runtime Sep 07 00:31:55 at* Sep 07 00:31:55 use something like Pastebin or pastie or whatever, instead of just pasting it into the text field Sep 07 00:32:10 Ah it's since marshmallow Zharf? Sep 07 00:32:15 I thought lollipop Sep 07 00:32:17 https://developer.android.com/training/permissions/requesting.html Sep 07 00:32:28 Zharf Faizan thanks Sep 07 00:32:33 Yw Sep 07 00:33:22 ah 22 and lower Sep 07 00:34:11 the whole permission thing is something they should've had in place years ago Sep 07 00:34:12 Why doesn't big nerd ranch have a pdf version Sep 07 00:34:23 Are developer.android.com tutorials outdated? Sep 07 00:34:24 Yeah iOS has had it since their early days Sep 07 00:34:56 I'm not sure, but they have good documentation about requesting permissions for API 23+ Sep 07 00:35:08 Swyper: I think you’re importing the wrong NumberFormat Sep 07 00:35:29 what api level is your phone? Sep 07 00:36:03 https://developer.android.com/reference/android/icu/text/NumberFormat.html -> the one you’re using, was added in API 24 Sep 07 00:36:18 https://developer.android.com/reference/java/text/NumberFormat.html -> the other one, was added in API 1 Sep 07 00:38:17 s73v3r , I fixed that but now it is saying com.android.ddmlib.AdbCommandRejectedException: device 'd6b2d17d' not found Sep 07 00:38:17 Error while Installing APK Sep 07 00:38:32 that’s saying it can’t connect to your device Sep 07 00:39:00 try unplugging and plugging it back in again Sep 07 00:39:58 Swyper: failing that, you might need to download OEM drivers Sep 07 00:40:56 Jesus christ whose he spamming Sep 07 00:40:57 lol Sep 07 00:41:34 dave stahp Sep 07 00:45:28 Faizan what are those? now my phone is having trouble connecting -_- Sep 07 00:45:38 are you on Windows? Sep 07 00:45:42 What phone do you have? Sep 07 00:45:47 mac, samsung galaxy s5 Sep 07 00:46:06 developer options and usb debugging is on Sep 07 00:46:13 should be fine. try reconnecting, and failing that, see if the rest of the mac can see the phone Sep 07 00:46:23 and it just [dissconnected] beside my phone Sep 07 00:46:52 8:46:35 PM ADB rejected shell command (ls /system/bin/screenrecord): closed Sep 07 00:47:01 when I plug it out and plug it back in Sep 07 00:47:11 it says disconnected because it is Sep 07 00:47:11 you shouldn't need any drivers on a mac or linux machine afai Sep 07 00:47:33 check to see if you can access your internal storage and what not fine Sep 07 00:47:36 that’s why i vastly prefer Mac for this Sep 07 00:47:40 (outside of android studio) Sep 07 00:47:42 alright Sep 07 00:48:28 it cannot see my device Sep 07 00:48:29 damnnit Sep 07 00:48:43 is your phone charging when its plugged in? Sep 07 00:48:44 thats weird because my phone is still charging -_- Sep 07 00:48:46 try a different cable Sep 07 00:48:46 yeah Sep 07 00:48:51 not the cable then Sep 07 00:49:19 adb sucks Sep 07 00:50:22 Are you sure usb debugging is enabled swyper? double check Sep 07 00:50:33 yeah it is Sep 07 00:50:40 you wouldn't even be able to view your phone in file explorer if it wasn;t Sep 07 00:50:41 hmm Sep 07 00:51:32 Swyper: you sure you accepted the adb permissions request dialog? Sep 07 00:51:48 https://www.android.com/filetransfer/ Sep 07 00:51:58 download that and see if it shows them Sep 07 00:52:01 then* Sep 07 00:52:19 (it wont affect android studio, but see if it shows in file explorer) Sep 07 01:07:36 Does the "Wipe data" command in "Android Virtual Device Manager" actually does anything? Sep 07 01:08:42 Yes, it does! Sep 07 01:08:51 For a moment it looked like it wasn't working Sep 07 01:10:13 ha, pretty cool idea http://newatlas.com/welt-smart-belt/45257/ Sep 07 01:12:21 g00s: will you buy it? Sep 07 01:13:00 I have no idea why it is not working, I tried my moms phone and my macbook is not detecing it ether, Sep 07 01:13:11 I tried a different cable but it does not work aswell Sep 07 01:13:32 your mom's phone? Sep 07 01:13:51 yea I tried mine and my moms to see if it was just my phone not being detected Sep 07 01:13:59 it is so strange because both phones charge Sep 07 01:14:12 do you ask your mom's help to learn how to program on Android? Sep 07 01:14:40 be a men! Sep 07 01:14:44 man Sep 07 01:14:56 no I just asked if I can use her phone to test this Sep 07 01:15:32 mmh ok. Sep 07 01:16:28 I guess I am screwed now Sep 07 01:16:52 going to try restarting my macbook Sep 07 01:17:35 Yes, you are screwed indeed. You reputation is now one of a mama's boy Sep 07 01:17:39 Your Sep 07 01:17:48 i dont mind.. Sep 07 01:18:18 Good, disregarding this kind of things a sign of maturity Sep 07 01:25:57 anyone else having troublee seeing android-24 sources Sep 07 01:26:02 in AS 2.1 Sep 07 01:26:19 I have the jar, but still get "decompiled Intent.class" when I try to open framework stuff Sep 07 01:30:57 gotta love deleted users Sep 07 02:00:19 Hello guys, anyone know if it possible to launch an application from other straight to the background? Sep 07 02:07:39 damn, transactions on attached databases not guaranteed to be atomic when using WAL Sep 07 02:21:49 Hey guys Sep 07 02:21:53 Anyone about? Sep 07 02:23:58 Cryto: hi there! Sep 07 02:24:12 Cryto: How is your Android development going? Sep 07 02:27:17 Arancio, I'll be honest, not great Sep 07 02:27:56 I'm trying to stream audio from ffmpeg to an app, there doesn't seem to be anything wrong with my code but I'm still not receiving anything. Sep 07 02:27:57 Cryto: that doesn't surprise me. Otherwise you wouldn't have joined the channel to ask for help... Sep 07 02:28:09 Kek. Sep 07 02:28:12 Trudat. Sep 07 02:28:29 Kek Trudat? Sep 07 02:28:50 "Ahah, your statement is factual" Sep 07 02:29:13 in what language? Sep 07 02:29:24 Mostly internet slang. Sep 07 02:29:30 Or, the app, you mean. Sep 07 02:29:40 Java, if you mean the app. Sep 07 02:29:47 http://pastebin.com/hb1s6rbe Sep 07 02:30:00 You see anything wrong with the code? That's the offending piece. Sep 07 02:30:31 I can't help with your problem. I have not experience in that area. I'm recording my first videos, today. Sorry. I hope someone else could. Sep 07 02:30:41 someone else can Sep 07 02:32:00 Ah, alright mate. Sep 07 02:34:10 pfn is the best one here. You should ask him for help. Sep 07 02:36:44 Why can't I detect clicks on a VideoView even if I make it clickable? Sep 07 02:38:25 Arancio; Sep 07 02:38:32 Are you trying to use a clicklistener? Sep 07 02:38:54 yes. Apparently I have to use the touch listener. Is there a rationale for that? Sep 07 02:39:52 I imagine so that you can drag the tracker to set the video to different times? Sep 07 02:40:19 But yeah, just VideoView.setOnTouchListener(..logic..), basically Sep 07 02:49:14 Cryto: thanks. You must be quite good at Android Programming Sep 07 02:50:43 Lol, not really, or I'd have my problem fixed by now. Sep 07 02:50:59 I still have no idea what's wrong, there's nothing wrong with the code afaict Sep 07 02:52:22 "there's nothing wrong with the code afaik" - every programmer ever Sep 07 02:53:07 lol Sep 07 02:54:49 well, "there's nothing wrong with the code afaik" is just a way to say "I can't see anything wrong in the code. I can't the what's wrong even if there is probably something wrong. Unless the problem is outside of the code" Sep 07 02:55:11 That situation is very common. Thus many people say that phrase **** ENDING LOGGING AT Wed Sep 07 02:59:58 2016