**** BEGIN LOGGING AT Tue May 26 02:59:58 2015 May 26 03:00:19 people that leave 4 or 5 stars rarely go in length about the quality of an application, especially when it's a known game May 26 03:00:19 Any other way to use the camera within the app besides MediaStore.Action_image_capture May 26 03:00:22 <_genuser_> paulo_: that's good. he wants to provide valid/useful input. reach out to him and tell him sorry he had a bad time. you'll look into it. and if he wouldn't mind raising the review a little so other's arent' scared of it. May 26 03:00:31 <_genuser_> paulo_: if not, just try to address the issues. May 26 03:01:00 <_genuser_> drose379: are you launching stock camera with an intent? May 26 03:01:06 Yes May 26 03:01:23 aspire: suprisingly little money. but I hope I get more as the install base increases. May 26 03:01:23 Intent i = new Intent(MediaStore.Action_image_capture) May 26 03:01:29 apparently paulo_ answered ; the guy asked for an update and the response was something like "commit in a few hours". Personnaly I wouldn't be scared. May 26 03:01:36 It works like 90% of the time May 26 03:02:19 <_genuser_> gpyh: paulo_ yeah, then the guy is using his one vote to scare you. meh. wouldn't care that much. May 26 03:02:42 gpyh: I did actually. I pushed an update, fixing a major (but simple) AI bug, he edited the review with "AI still weak" May 26 03:03:03 lol May 26 03:03:30 i think developers have to expect stupid responses based on the demographic they target May 26 03:03:34 paulo_: Then he might be an asshole ; stay gentle and ask for specifics. Beyond that only good and detaled review can help May 26 03:03:47 detailed review* May 26 03:03:53 if you are writing a game, the average shmo will be a moron May 26 03:04:16 <_genuser_> +1 for use of schmo and moron in the same sentence. May 26 03:04:20 this is the case with most consumer facing apps May 26 03:04:33 g00s: and that's only one guy on 29. May 26 03:04:41 Sorry _genuser_ my comp crashed May 26 03:04:53 But as I was saying, the camera intent works like 90 percent of the tinme May 26 03:05:02 <_genuser_> plus lot of samsung phones are customzied to the point that they'll crash on a lot of apps that work fine normally. May 26 03:05:08 heading out, bb everyone May 26 03:05:32 <_genuser_> drose379: the way I did it in my app was to just create a surface view and initiate the camera myself. haven't had an image capture drop ever in all my testing on multiple devices. May 26 03:06:02 So the camera view is inside the activity layout? May 26 03:06:08 (Never used surfaceview) May 26 03:08:15 _genuser_ so you basically created your own mini camera application? May 26 03:08:48 <_genuser_> drose379: my own fullblown camera app. just because I thought it would be cumbersome for users to have external camera come up constantly. May 26 03:09:00 You did? May 26 03:09:25 Was that your whole app? Or just you needed camera functionality so you did this? May 26 03:09:45 <_genuser_> drose379: mostly, just to take a picture, save it. but additionally, adjust flash (on/off/auto), and playing with extras now: show image sizes, focus mode, scene mode in a selection box to the user. May 26 03:10:00 <_genuser_> those are kinda irrelevant for my main app's purpose. I just thought it would be fun playing with those. May 26 03:10:12 Ok, cool May 26 03:10:22 And is this its own activity? May 26 03:10:29 You said its in a SurfaceView? May 26 03:10:32 <_genuser_> drose379: the app is a big expense report submission idea. Where you can take pictures of receipts and submit them with an expense report, etc. And view pictures that are stored (that are receipts) May 26 03:10:59 Thats cool _genuser_ May 26 03:11:05 <_genuser_> drose379: I built it from this link in a day (to get basic shell working). May 26 03:11:27 <_genuser_> drose379: http://developer.android.com/guide/topics/media/camera.html#custom-camera May 26 03:11:44 Thanks, but whats the surfaceview? May 26 03:11:57 whyd you pick that May 26 03:12:06 <_genuser_> drose379: it says it's deprecated and the new one is camera2 but that's only in lollipop. I figure you have another major upgrade before you have to worry about it. May 26 03:12:53 SurfaceView? May 26 03:13:04 <_genuser_> drose379: I think the overall code to get it going is on there. I just remember surfaceview for soem reason. let me look at the code to see what I"m using it for. May 26 03:13:12 Ok May 26 03:13:14 Thnaks May 26 03:13:20 <_genuser_> np May 26 03:16:35 <_genuser_> drose379: ok, my mistake. I am not using surfaceview. I used the FrameLayout in it's place. just as the example shows in the link. May 26 03:16:44 Ok May 26 03:17:08 <_genuser_> I remember surfaceview, because of the note that says, you can use VideoView SurfaceView or whatever else you like. May 26 03:18:06 It says to use a SurfaceView to have a preview before the user takes photo May 26 03:18:17 I guess you could use anything though May 26 03:18:31 <_genuser_> yep, you can use the framelayout or linearlayout. May 26 03:19:02 So you created a whole new application for this? May 26 03:19:21 And opened up the application when the user wants to take a photo? May 26 03:19:25 Or just an activity? May 26 03:20:37 <_genuser_> drose379: in the grand scheme of things, it's just one part of the app. The user opens the app, logs in, (create new expense, view existing expense), for an expense report, they can take pictures of the their receipts, that's where the camera comes in. May 26 03:20:52 Ok how do you access the camera? May 26 03:20:53 <_genuser_> launch an activity. onCreate, it sets up the preview just like the link shows. May 26 03:21:10 Ok so its just an activity May 26 03:21:16 <_genuser_> how to access the camera: copy/paste code from that link. It actually walks you thru the entire process. May 26 03:21:32 <_genuser_> yeah, it's a regular activity with a Layout that you provide to the camera api to use for rendering the live preview. May 26 03:21:42 Then a shutter button? May 26 03:21:54 Then are you left with a file? or a path to the image? May 26 03:21:55 <_genuser_> yeah, anybutton with a shutter image will do, right? May 26 03:22:34 <_genuser_> you provide an object to the camera object. the camera object calls a method on your object and passes it the jpeg byte array of the image. May 26 03:22:49 <_genuser_> you can dump it to file exactly the way it gives you the data. May 26 03:23:02 <_genuser_> dump it to file.jpg and it's viewable via gallery app or anythign else. May 26 03:23:03 right, you can do whatever you want wih the bytearray May 26 03:23:17 <_genuser_> you tell it before hand whehter you want the image in png or jpeg format. May 26 03:23:26 Right May 26 03:23:35 <_genuser_> it will give you teh data in the correct format all ready to be written to disk. headers, data, all proper. May 26 03:23:40 No idea the stock Camera app sometimes mis fires on me though May 26 03:24:09 So im gonna get to work building this May 26 03:24:10 <_genuser_> I have noticed that I had to pay attention to the messaging. It will send you a message sometimes that the camera server has died. May 26 03:24:20 Really? May 26 03:24:26 <_genuser_> and you have to re-initialize the preview. I wonder if something like that is happening to the stock app. May 26 03:24:42 <_genuser_> the way it works out, in my app you never know if the camera quit or not. it's just "always working". May 26 03:25:04 In the stock app the photo is always taken May 26 03:25:18 Just sometimes after I click "Save" it kills and goes back to activity May 26 03:25:32 If it works, it re-instantiates the activity and gives the image through savedInstance May 26 03:26:11 So I need somehting reliable May 26 03:26:14 <_genuser_> ok, then maybe you just need to leave it alone and only focus on dumping out more details and stackTrace in save. May 26 03:26:38 Im just gonna create the custom camera May 26 03:26:38 <_genuser_> if it's always only failing in Save, can you log the exception and view it? May 26 03:26:54 Nah, it only fails like 5% o fthe time May 26 03:27:10 And nothing happens when it does, If tried to throw logs everywhere May 26 03:27:10 <_genuser_> if it works 90% of the times, 1 out of 10 may not fail but 1 out of 20 will definitely fail. you just launch the debugger and snap snap snap until it craps. then read logcat. May 26 03:27:24 Nothing shows in logcat May 26 03:27:38 <_genuser_> oh, I see if you try/catch in the entire save method, nothing prints? May 26 03:27:49 havent tried that yet May 26 03:28:20 <_genuser_> ok, I'd start with that one. try/catch(Exception e){ Log.e("", e.getMessage()); } May 26 03:28:34 got it May 26 03:28:48 Creating the custom camera activity does seem like a nice learning experience though May 26 03:28:51 Was it for you? May 26 03:30:28 <_genuser_> drose379: it was. since the basic shell was done fast, I knew I could push it out fast to testing. and extras would be on as time permits basis. May 26 03:31:13 I can just have an interface in the camera activity that calls back to the fragment where I need the photo May 26 03:31:17 correct? May 26 03:31:39 <_genuser_> or custom approach? May 26 03:31:42 <_genuser_> *for May 26 03:31:54 yes May 26 03:32:07 <_genuser_> you pass it a class with some methods. May 26 03:32:56 pass what a class? May 26 03:34:10 * bhans slaps drose379 around a bit with a large trout May 26 03:34:26 lol May 26 03:34:53 sorry, yeah I shud just read the documentation first before asking this stuff May 26 03:35:00 <_genuser_> http://pastie.org/10207401 May 26 03:35:10 * g00s puts bhans on bot ignore list May 26 03:35:11 <_genuser_> its pretty simple. May 26 03:35:29 so whats in PictureCallback class May 26 03:36:45 my bad, didnt see that correctly May 26 03:37:46 <_genuser_> you pass it that. in there you have the logic to save. May 26 03:38:04 <_genuser_> trust me, if you just follow the example from the link, you will have finished the app. May 26 03:38:18 <_genuser_> I don't necessarily read the entire thing. I just see code, copy / paste. see more code, copy/paste. May 26 03:38:21 <_genuser_> and then run. May 26 03:38:23 <_genuser_> lol. May 26 03:38:28 really? May 26 03:38:31 I couldnt do that May 26 03:38:40 Do you understand it? May 26 03:38:44 <_genuser_> mostly, like that. within reason. May 26 03:39:03 <_genuser_> yeah, I understand it well now. I needed to see it working. then I needed to take it apart to know what to do with it. May 26 03:39:21 <_genuser_> then I re-arranged it different ways until it fit the app model. So I understand it well now. May 26 03:39:24 <_genuser_> it's pretty simple. May 26 03:39:52 Cool, thanks again man May 26 03:39:58 gonna get going on this May 26 03:40:01 gotta run now though May 26 03:40:08 see ya May 26 04:08:39 Do you guys have any opinions on best fonts for an Android app ? Or do you stick with Roboto for the most part May 26 04:10:12 "Shuttleworth said he expects Ubuntu Phone to be profitable" dunno how he'll fo it, but i wish him the best May 26 04:10:39 liuwenhao roboto and its various weights / thicknesses May 26 04:10:52 like narrow, etc May 26 04:10:58 light May 26 04:19:58 is emulation dependent on GPU, or is it all handled in CPU ? May 26 04:45:58 zivester: depends on your settings May 26 04:46:09 if you use “Use Host GPU” as a setting, then yes, gpu matters May 26 04:46:15 otherwise it’s dog slow and all CPU May 26 04:46:32 these days i use genymotion for > 50% of my development May 26 04:46:41 unless i need to test touch events or real-life performance May 26 04:47:01 whats geny motion? May 26 04:47:34 a virtualbox-based emulator May 26 04:47:41 The best Android emulator by far May 26 04:47:44 for dev May 26 04:47:54 what comes with android studio out of the box ? May 26 04:48:02 the default google android emulator May 26 04:48:14 genymotion is free, you really should be using it May 26 04:50:40 hi, i have develop an e-commerce app. i have show category-subcategory. i get data from endpoint json. I'd like cache response for some request May 26 04:50:54 hope genymotion gets play services :/ May 26 04:51:07 what does i use to cache info ? May 26 04:51:22 every time user closes app i have clean data May 26 04:55:21 devandroid: http://developer.android.com/guide/topics/data/data-storage.html May 26 04:56:14 Leeds, i know all this option. i'd like know your experience May 26 04:56:34 User load 26 category and other subcategory... May 26 04:57:03 so.. he can back and forward in this category and i'd like share data May 26 04:57:57 if it's an arbitrary amount of data, you store it in a file of your own format, or in a sqlite database May 26 05:02:17 how can i tell if genymotion is activated ? i installed it May 26 05:06:22 anyone know offhand if reusing a StringBuilder by settings its length to 0 is worth while from a GC perspective ? May 26 05:07:44 no May 26 05:08:13 thanks May 26 05:08:34 Does anyone know what view "windowBackground" is set on? Is it the root view of the activity? May 26 05:09:10 Leeds going to any remote I/I in HK ? May 26 05:09:14 I/O May 26 05:09:28 nah May 26 05:10:00 the keynote is something like midnight to flibble am, the meetup is a long way across town, and I've got a very early flight on Saturday morning May 26 05:11:39 http://stackoverflow.com/questions/242438/is-it-better-to-reuse-a-stringbuilder-in-a-loop May 26 05:12:13 On the JVM, though. May 26 05:13:37 hm. i'm not in a very tight loop. May 26 05:14:17 wasn't even sure if sb.setlength(0) even reused its internal buffer to whatever size it had already grown to May 26 05:16:53 https://android.googlesource.com/platform/libcore/+/master/libart/src/main/java/java/lang/AbstractStringBuilder.java#539 May 26 05:17:10 yeah looking, if shared hmm May 26 05:18:24 meh May 26 05:27:23 set length does not truncate the buffer May 26 05:27:43 no gc win, other than reusing already allocated memory May 26 05:27:51 and premature optimizations ftl May 26 06:16:23 Hello! I'm having an issue with my freshly-deployed app. May 26 06:17:10 When installing the app from the playstore, it tells me that the app does not need any permissions. However, it does need network permissions. When installing the app directly (without the play store in-between) it correctly asks for network access. May 26 06:17:50 What's the name of that service, kinda like PhoneGap, that will compile your app for multiple platforms? You don't write Java or web, IIRC May 26 06:19:55 DJGummikuh: They updated the Google Play app to not show the network permission (unless users choose to view all permissions at the bottom). May 26 06:20:21 t0astt: Xamarin? May 26 06:20:31 DJGummikuh: http://www.androidcentral.com/new-google-play-store-4820-greatly-simplifies-permissions May 26 06:20:50 TacticalJoke: That's it, thanks! I was trying to think of it for a friend May 26 06:24:53 TacticalJoke: ah good to know. So now I only have to still figure out why my app does not work when downloaded from the store, as opposed to when I manually install it :-| May 26 06:25:03 I somewhat hoped, that this would be the reason (I have no other at the moment) May 26 06:27:50 What network stuff is it doing? May 26 06:29:05 SSL encrypted REST calls May 26 06:34:09 DJGummikuh: You should be getting some kind of error message. Are you sure you're not swallowing exceptions somewhere (e.g,. `catch (Exception e) { /* do nothing */ }`)? May 26 06:45:29 צםרמןמ May 26 06:45:31 morning May 26 06:46:22 boker tov May 26 06:46:32 :) May 26 06:47:12 lol May 26 06:48:11 I'm doing a code review on a chunk of code that attempts to count how many phone numbers the user has in his addressbook. May 26 06:48:19 the current implementation looks like this May 26 06:48:20 context.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, new String[] {ContactsContract.CommonDataKinds.Phone.NUMBER},null,null, null); May 26 06:48:46 I just looked at some PR here May 26 06:48:46 seems like a bad one, but the programmer said there is no way to run a count(*) query on this data May 26 06:48:50 is that true? May 26 06:49:07 someone implemented his own ORM for database May 26 06:49:14 welcome back in the 90s May 26 06:49:19 defaq?! May 26 06:49:24 there are so many May 26 06:49:46 ssssh May 26 06:49:53 let them implement their own May 26 06:50:03 they have problems with not existing table already :D May 26 06:50:12 * gordon_ grabs popcorn May 26 06:51:50 gordon_: are you aware of a way to run a count query on this? May 26 06:52:16 hmm.. havent done this before. May 26 06:52:34 but we have something like thta I guess, wait a sec May 26 06:54:02 yay May 26 06:55:07 TacticalJoke: no I'm not swallowing exceptions, however it seems that my widget event doesn't even reach its activity May 26 06:55:32 Even before attempting network communication I'm coloring the clicked button in a different color for user feedback - and that's not even happening O.o May 26 06:57:11 thepoosh: they are doing the same thing May 26 06:58:03 well we have new String[]{} May 26 06:58:14 (which I assume is fetching whole data) May 26 06:58:23 yeah, thats super lame May 26 06:58:43 how do I prevent a BT keyboard from selecting things in the action bar? May 26 07:01:14 gordon_: so there is no way to just do that?! May 26 07:01:17 oh noez May 26 07:01:51 thepoosh: :( May 26 07:02:28 every time i look at the Contacts provider stuff, i want to barf in my mouth May 26 07:03:27 sharing databases between apps is a stupid idea, we knew that a loong time ago May 26 07:09:08 thepoosh so this doesn't work ? context.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, new String[] {"count(*) as count"},null,null, null); ? May 26 07:10:53 Hmm, this is new: http://www.reddit.com/r/programmerchat May 26 07:11:08 A tabs-or-spaces debate is on the front page. May 26 07:11:28 TacticalJoke lol, vim or emacs ? May 26 07:12:03 haha May 26 07:19:40 thepoosh speak to me, what do you see ! May 26 07:19:59 dead people! May 26 07:21:11 JesusFreke ready to become soylent ! May 26 07:21:32 i could live off my app if dex2oat actually worked May 26 07:21:38 and like made oats May 26 07:21:41 from my dex May 26 07:24:14 can anyone help with this NPE? http://pastebin.ws/4v7fz0 May 26 07:24:58 the nep is on the next line May 26 07:25:55 for (int i : Arrays.asList(R.id.action_change, R.id.action_reset)) { // wat May 26 07:26:03 hehe May 26 07:26:29 easier than alocating an array May 26 07:26:35 also I like my python May 26 07:26:45 lets ask the Nights who Say NPE May 26 07:27:30 any ideas? May 26 07:28:36 s May 26 07:28:37 Jonno_FTW break it down, see whats null May 26 07:28:47 I mean sssshhhhrubbery May 26 07:30:03 it seems getactionview returns null May 26 07:30:17 Jonno_FTW are you using appcompat ? May 26 07:30:21 no May 26 07:30:31 According to your paste, Menu.findItem is returning null. May 26 07:30:52 Anyway, you don't have to guess. You can figure out what is null. May 26 07:30:57 I redid it and it gets the menuItem fine, it's just it can't get the actionview May 26 07:31:01 Use `Log.i`. May 26 07:31:04 I did May 26 07:31:15 g00s: team sync May 26 07:31:18 2 secs May 26 07:31:34 oh I see, it only works if you make a custom actionview May 26 07:32:38 Jonno_FTW: This is really inefficient code on mobile: for (int i : Arrays.asList(R.id.action_change, R.id.action_reset)) { May 26 07:32:48 Allocating an Integer, another Integer, an ArrayList, and an iterator. May 26 07:32:56 it only runs once though May 26 07:33:04 nooo May 26 07:33:10 should I just have 6 lines? May 26 07:34:16 anyway, how should I go about making the menuitem not focussable? May 26 07:34:31 what is it that you wnat to do May 26 07:34:47 You could make much simpler code out of that, without the unnecessary allocations. May 26 07:34:56 Extract a method that takes the resId and does the stuff. Call it twice. May 26 07:36:00 Jonno_FTW at least this works for (int i : new int[] { 1,2,3,4,5}) {} May 26 07:36:02 lol May 26 07:36:08 haha May 26 07:36:12 I want the user to not be able to focus on the menuitems with an input device May 26 07:36:20 but since thats not going to change, why not just make the IDs a static final ? May 26 07:36:23 I refactored the code into a method btw May 26 07:36:50 g00s: looking May 26 07:36:58 im back May 26 07:37:13 Jonno_FTW: menuItem.setEnabled(false) May 26 07:39:18 It still needs to be usable, just no focussable May 26 07:57:03 can i (i.e. using adb command) get current battery discharge rate May 26 07:57:25 for example i want to know if my phone uses more power than USB cable is giving May 26 07:58:41 also whats temperature unit in dumpsys battery? 10 * C? May 26 08:12:43 Ashiren: temp is the value / 10 for celsius May 26 08:13:13 adb shell su -c "cat cat /sys/class/power_supply/battery/batt_attr_text" should give you some more info May 26 08:16:50 Hello. Anyone worked with the telegram source code? I need to open ChatActivity instead of MessagesActivity May 26 08:38:08 hi,im using an imgview i need to scale down its size according to phone screen May 26 08:38:28 i tried some with maxheight maxwidth etc. i couldnt get the result May 26 08:38:32 any recommendation ? May 26 08:39:20 use different xml files for different screen sizes May 26 08:39:27 if you cant solve it with weights May 26 08:41:11 something like styles.xml-v14 and styles.xml ? danijoo May 26 08:42:38 no May 26 08:42:57 someling like layout-sw600dp May 26 08:43:10 ty May 26 09:25:58 Has anyone ever looked into making emoticons very large? May 26 09:26:09 I was just looking into using a very large font size May 26 09:26:13 say 100sp May 26 09:26:21 and it won't draw an emoji May 26 09:26:32 doesn't show at all May 26 09:27:04 anyone else ever come across it? May 26 09:41:45 hi there May 26 09:45:12 I'm using a library in my app which I included in my build.gradle with compile('com.foo.bar:baz:1.0'). I found a memory leak in this library and I can't reach the developer. May 26 09:45:39 How would I go to download the source in a folder and tell gradle to use the java source files now, instead of the library? May 26 09:46:22 cetchmoh: create a new module May 26 09:46:56 or use relative path names to import / include your module that is in a seperate application / project May 26 09:47:17 okay... May 26 09:47:39 new module, or new java package? May 26 10:02:09 cetchmoh: new module May 26 10:02:22 thank you :) May 26 11:02:29 <_rm> in a library project, is it possible to somehow bake a dependency-aar into the resulting aar? May 26 11:02:52 <_rm> (it's not ideal, but necessary in this case) May 26 11:11:33 hi May 26 11:12:12 i want setup my own mqtt backgroud service for all devices that install atleast one of my app May 26 11:12:17 how can i implement it May 26 11:13:21 i don't want multiple instant of service per app installed , apps should check if service don't installed setup it and else do noting May 26 11:14:03 i want make it as library for projects that can easily add advertise system into projects May 26 11:14:11 how can i implement it May 26 11:16:59 Evening all May 26 11:54:13 it's not android dev specific but I found a pretty good general code podcast ... http://www.talkingcode.com/ May 26 12:02:11 Anyone used textwrangler here? May 26 12:08:09 hello May 26 12:09:02 do you guys consider a Nexus 4 for $100 a good deal espciall if it it will be mainly used for app development ? May 26 12:09:47 I'd say yes - assume it's second-hand, but good condition? May 26 12:10:08 yes its good condition May 26 12:10:24 although there's a good chance it won't get M... May 26 12:11:06 or is the Moto G a good choice to be able to support next version of android ? May 26 12:12:05 im reading Romain's Guy code from google io 14 and he references a drawable whichi cannot find. more specifically https://github.com/romainguy/google-io-2014/blob/master/app/src/main/res/drawable/ic_ab_up.xml May 26 12:12:29 There's a ref to android:src="@drawable/ic_ab_up_white" which cant be found May 26 12:13:18 https://github.com/romainguy/google-io-2014/blob/master/app/src/main/res/drawable-xxhdpi/ic_ab_up_white.png May 26 12:13:20 It's right there May 26 12:14:00 hmmm... how did i missed that?Thank you SimonVT May 26 12:16:35 alexi5: I wouldn't assume anything non-nexus will get more than one major upgrade - maybe not even that May 26 12:16:59 ok May 26 12:18:21 alexi5: http://goo.gl/X38Hwe May 26 12:18:47 is it possible to style the buttons in a custom alert dialog that is built using a dialog fragment and have it compatible with android gingerbread ? May 26 12:30:15 fragmentmanager null pointer when closing the activity May 26 12:30:49 no wai May 26 12:31:27 yes May 26 12:32:02 http://pastebin.com/7UbXsjFf May 26 12:32:41 rathodvikas10: take it out of the Runnable May 26 12:33:17 i am using nav drawer and on backpress it gives me this error May 26 12:34:12 onDestroyView i have this if (f != null) getFragmentManager().beginTransaction().remove(f).commit(); May 26 12:35:58 rathodvikas10: look at the stack trace May 26 12:36:21 rathodvikas10: its trying to execute code in a Runnable.. which is being run after the Activity has been terminated May 26 12:36:33 rathodvikas10: so remove the code from the runnable May 26 12:37:00 or call the runnable's run method directly. so its synchronous May 26 12:37:24 That's how fragment transactions work.. They're posted to the message queue by the FragmentManager.. May 26 12:37:52 ok May 26 12:38:23 Assuming f is a child fragment, use getChildFragmentManager May 26 12:38:42 yes its chieldfragment May 26 12:38:51 SimonVT: doh, just noticed the runnable was in FragmentManagerImpl :( May 26 12:38:55 But then again, shouldn't need to remove child fragments May 26 12:38:58 i have map fragment inside a fragment May 26 12:40:02 homeActivity -> TrackingFragment -> GoogleMap and i am removing GoogleMap in onDestroyView May 26 12:40:20 Why May 26 12:40:48 i have two drawer having the Google map fragment May 26 12:41:09 two items in drawer May 26 12:41:31 rathodvikas10: and? May 26 12:42:14 Sounds horrible to pass a fragment around between other fragments May 26 12:42:24 ok ill show you the error if i dont have that in onDestroyView May 26 12:42:47 http://pastebin.com/j9CLtZAb May 26 12:44:09 rathodvikas10: your using the Activities frgment manager instead of the child fragment manager May 26 12:44:15 That says you have it as part of your layout.. May 26 12:44:42 Are you passing a single MapFragment around between multiple fragments, or are you defining your MapFragment in your layout? May 26 12:44:59 Sounds like you just need to give them different id's if it's the latter May 26 12:45:02 i have two different fragment and layouts May 26 12:46:40 check this out i have this problem: http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi/14484640#14484640 May 26 12:47:13 can i share my app on facebook and get callback if user shared it or not without using facebook sdk ? May 26 12:47:22 because i don't want to appear a popup for permission May 26 12:48:43 2012, that was before child fragments were supported.. May 26 12:48:54 Since you're using native fragments, make sure you're running on api17+ May 26 12:49:07 And, using getChildFragmentManager for child fragments May 26 12:51:14 yes i am doing that May 26 13:06:43 why i have this error : http://pastebin.com/j9CLtZAb May 26 13:07:41 Do they have the same id? May 26 13:12:57 no May 26 13:13:21 one one is map and the other is map1 May 26 13:16:06 clean and rebuild project May 26 13:16:10 is there an assertj-android matcher for checking the drawable resource of an imageview? May 26 13:19:14 ok May 26 13:30:12 so using retrofit/okhttp, i am using auth0 for oauth. It can happen that my jwt is expired, resulting in a 403 for my request. If i get a 403, i should call my endpoint asking to refresh the token using a refreshtoken. How can I incorporate this into the retrofit/okhttp flow? So I don't have to check this everytime I make a request to my backend? May 26 13:30:49 basically if the request fails with a 403, insert a new call to the backend giving me a new token, and then doing the original request with the new token May 26 13:36:21 Hmm, can't get my classes around Retrofit to work :/ May 26 13:36:33 I think its probably due to my typeadapter May 26 13:37:46 Anthaas: gist your code? May 26 13:38:00 Sure, one sec. Giving something a shot May 26 13:38:14 osxorgate, write a callback that checks for the error code and makes another request with the same callback May 26 13:39:45 Is there a way to print out the stream that a JsonReader is reading? May 26 13:41:05 log it out? May 26 13:41:13 The reader? Doesn't work. May 26 13:41:56 fix your machine ^^ May 26 13:42:31 You mean: Log.d(TAG, reader.toString());? May 26 13:43:47 I just get: "JsonReader at line 1 column 2" printed May 26 13:44:21 well it must be reading data from somewhere, you're not passing it an URI ? May 26 13:44:38 It is, but I want to Log what it is reading. May 26 13:44:54 store it in a string before passing it to the reader. May 26 13:47:26 take the uri and paste it in the browser? May 26 13:51:55 Think I've located the issue. Thanks guys May 26 13:52:58 danijoo: any idea how i would do this using Observables ? May 26 13:53:25 the same way May 26 13:53:33 replace callback with observable May 26 13:53:55 danijoo, can it be a chat rule that you have to say what solved a given issue, when you resolve it (after having had it debated in chat)? :d May 26 13:56:56 osxorgate: try onErrorResumeNext() https://github.com/ReactiveX/RxJava/wiki/Error-Handling-Operators May 26 13:57:29 Hello, I am struggling to figgure out how i can make use of the expanded set of RecyclerView notify functions (notifyItemInserted, notifyItemMoved, etc.) with a content observer. As far as my current understanding goes, a ContentProducer notifies your RecyclerView via a ContentObserver that there has been a change in the data set, but ContentObserver only exposes onChange(boolean self, Uri uri) which does not provide enough infor May 26 13:57:30 these more specific notify functions. May 26 13:57:41 check for a retrofit error, recover from it, and carry on May 26 13:57:48 Could anyone point me to some code or smaples that utilize this? May 26 13:58:50 shekibobo, danijoo: my problem is that i will have a bunch of different network calls, and they all might get a 403, and i want to automate inserting the extra refresh network call, instead of doing it by hand in every call May 26 13:58:52 if that makes sense May 26 13:59:22 I dont know what hinders you to do that May 26 13:59:25 use inheritance May 26 14:00:00 i think it's knowledge of retrofit and rxjava that hinders me :) May 26 14:00:08 or rather lack thereof May 26 14:01:10 osxorgate: you can probably make a OAuthRefreshAction that takes a retrofit error and retries the call? Not really sure on that point, haven't gotten that far myself May 26 14:01:18 ok, for some reason, when adding a new view to android.R.id.content, I cannot see it May 26 14:01:35 it's in the hierarchy view but under my screen May 26 14:01:38 any thoughts? May 26 14:01:52 android.R? May 26 14:02:23 thepoosh, something else added to content already? May 26 14:02:30 also, why not setContentView? :p May 26 14:02:50 danijoo: it's a custom view that is created dynamically in code May 26 14:03:30 setContentView(View) exists May 26 14:03:34 setContentView(yourView) May 26 14:04:44 Anyway, android.R.id.content is just a FrameLayout.. Your View should appear on top May 26 14:07:32 maybe he added some layout params or translation to move it offscreen May 26 14:10:16 SimonVT: it should but it doesn't May 26 14:11:01 initially we patched it by surrounding with "if this instaceof assholeActivity) ugly patch" May 26 14:11:19 but now, it's a 3rd party lib that is trying to create a view and fails May 26 14:14:46 Is it not a FrameLayout? DOes the view have strange margins? May 26 14:15:04 there is a NavDrawer that is always hidden May 26 14:15:31 Is it being translated? May 26 14:15:37 no May 26 14:15:39 There's a few things you can find ouyt May 26 14:16:30 the basic hierarchy is: sliding drawer > tabbed view > fragment > content May 26 14:24:38 Are the RecyclerView Adapter notify functions not meant to be used with a ContentObserver? May 26 14:37:41 hello all! May 26 14:39:18 I am wondering what is the common architecture to bind a running website and another mobile app, I have already setup a Resrful api service but have issues with authentication May 26 14:40:00 the website is under Ruby on Rails and the app is in Android SDK May 26 14:40:06 Hi guys, I have an app that runs for pretty much ever (in a kiosk sort of setup) May 26 14:40:14 after a while the animations and overall UI start to slow down. May 26 14:41:16 Not too sure how I can go about fixing it. I thought garbage collection would prevent this sort of thing. May 26 14:43:50 I had 9k ad impressions, and I only made $1.45 May 26 14:44:08 people, this is how difficult it is to make money using android apps. May 26 14:47:14 gottaGO: let's talk in the channel May 26 14:47:19 kk May 26 14:47:25 ll May 26 14:47:46 i used admob May 26 14:48:14 and now ? May 26 14:49:05 *I use May 26 14:49:27 ah ok May 26 14:49:59 ok May 26 14:50:16 the slow downs seem to occur when wifi operations are going on in the background May 26 14:50:26 (Android WifiHW tagged debug output) May 26 14:52:21 tx, gc only works to a certain extent. If you do something that leaves orphaned references to things, you're going to leak memory over time for sure. Slowdown doesn't necessarily sound like memory leaking, though - sure you're not constantly registering new events and not clearing out the old ones, or something like that? May 26 14:52:43 dragorn: It seems system related now. The UI outside of the app is slow too. May 26 14:53:00 I can see WiFi events in the debugging log and the UI in general, not just the app May 26 14:53:04 seem very choppy and slow. May 26 14:53:06 :\ May 26 14:53:11 I'll try disabling wifi. May 26 14:53:14 wifi events dont' mean anything May 26 14:53:17 wifi constantly changes states May 26 14:53:34 Well, they just happen to coincide with stuttering. May 26 14:53:39 especially if there's multiple APs nearby, powersaving is active, etc. wifi is very chatty. May 26 14:53:48 paulo_, have you tried any other ad service? May 26 14:53:49 oh look at that May 26 14:53:55 WiFi is off, tablet is fast. :P May 26 14:54:12 gottaGO: not yet. I'm only 2 weeks in. May 26 14:54:17 I'm gonna give it more time. May 26 14:54:18 It could be a voltage issue. The display on this thing has heaps of ghosting. May 26 14:54:36 paulo_, 9k for 2 weeks seems great to me May 26 14:54:56 paulo_, whats the average app rating ? May 26 14:54:58 gottaGo: 9k was yesterday May 26 14:55:04 that was for one day only May 26 14:55:19 gottaGO: ~4.4 May 26 14:58:38 oh May 26 14:58:41 lemme correct that May 26 14:58:53 9k was for 3 days May 26 14:58:59 I had 5k yesterday. May 26 15:00:54 that's 1% CTR. May 26 15:01:07 lol I can talk about this all day. May 26 15:03:05 ads are a volume thing May 26 15:06:44 does android stub out the app's R class in unit tests? i.e. can I test a POJO that returns R.color.status_warning without the system blowing up at me? May 26 15:06:56 not on a computer i can test it on right now May 26 15:17:05 shekibobo, R. will be available at testing May 26 15:17:19 because the test project depends on the app projec May 26 15:17:21 danijoo: Thanks May 26 15:24:19 Leeds: what do you mean by volume? May 26 15:25:51 paulo_, he means that you need a huge amount of ads to actually make money from it May 26 15:26:06 danijoo: like how much? May 26 15:26:14 9k isnt really much May 26 15:26:24 hmm interesting May 26 15:26:56 Hi guys, how can I remove a substring in a spannable string ? May 26 15:26:57 it also depends on your eCPM May 26 15:27:16 if your users click ads often, you will get payed more for them May 26 15:28:08 h3bus, SpannableString#subSequence ? May 26 15:28:13 i'm currently at 1k installs per day, so I guess it's bound to increase. May 26 15:28:28 to 1k+1 :p May 26 15:28:56 danijoo: yas, I can get the subsequence i'm lokking for like that, but cant I delete it from the original spannablestring ? May 26 15:28:58 god I wish the days passed faster May 26 15:29:11 paulo_: What is the app? May 26 15:29:21 Guys is there a way I can get rid of the Deprecated lint? May 26 15:29:33 Like the strikethrough that goes through something that is deprecated May 26 15:29:36 In AS May 26 15:29:56 drose379: http://tools.android.com/tips/lint/suppressing-lint-warnings May 26 15:29:56 deactivate lint ^^ May 26 15:29:57 drose379: @suppressWarning("deprecated") ? May 26 15:30:08 h3bus, dont think so May 26 15:30:09 that doesnt work h3bus May 26 15:30:15 ok, my bad May 26 15:30:21 dont worry about it! May 26 15:30:26 danijoo lemme check tht link May 26 15:30:43 paulo_: lots and lots of volume May 26 15:31:14 paulo_, if its only banner ads, you actually need multiple million impressions per week to make a living from it May 26 15:31:27 interstitials are a bit better, but still.. May 26 15:31:39 ....are annoying af May 26 15:31:41 :P May 26 15:31:55 paulo_, I bet you'll regret ever wishing that when you get ols :p May 26 15:31:56 danijoo so I can deactivate lint? May 26 15:31:59 old* May 26 15:32:07 from lint.xml? May 26 15:32:17 danijoo: i think I use my interstitals in a very reasonable manner May 26 15:32:22 drose379, no. from options May 26 15:32:33 wakelock: what are ols? May 26 15:32:43 danijoo lintOptions{} ? May 26 15:32:48 cartsar, tell that the users that dont want to pay a single $. ;) May 26 15:32:49 paulo_: he meant old May 26 15:33:18 oh yeah, i'm turning 23 May 26 15:33:21 which is a bit scary May 26 15:33:27 drose379, google it :p May 26 15:33:38 yound meat... May 26 15:33:44 I'll be 4 years off my teenage years May 26 15:33:45 young* May 26 15:33:53 But I dont want to completley disable it, just want to disable the deprecated lint May 26 15:34:02 drose379, google it May 26 15:34:05 :) May 26 15:34:13 you got your keywords May 26 15:34:16 use them wisely :p May 26 15:34:24 apply google to lint, done May 26 15:34:28 Found it May 26 15:34:43 see, was that so hard? May 26 15:34:48 it was @SuppressLint("deprecation") May 26 15:34:52 No wakelock :P May 26 15:34:55 My bad my bad May 26 15:35:15 Ok, gotta create a custom camera activity May 26 15:36:13 drose379: hey, i wasnt so far off May 26 15:36:46 Yeah man, good guess May 26 15:37:03 anyone's got experience with Xamarin AXML? we want a teacher that can help us build the mobile application interface, this is similar to a chat, this is for basic functionality, and we are able to pay for every class. Thanks May 26 15:38:14 so yay, I fixed some quite annoying concurrency issues the other day May 26 15:38:21 * wakelock pats back May 26 15:38:42 hey, i want to store my access token in private SharedPreferences. I'm also creating a singleton class to manage access to this auth token, so it's available application-wide May 26 15:39:03 SharedPreferences are always private May 26 15:39:16 it looks like accessing SharedPreferences requires a Context. is that right? May 26 15:39:28 yes May 26 15:39:53 SP are private unless root :p May 26 15:40:30 is there an app-wide context i can use, so my singleton object retrieves the auth token at app load time? May 26 15:40:48 use the application as context May 26 15:41:02 ahh ok cool May 26 15:41:09 thanks May 26 15:41:23 or preferenceManager.getDefaultSharedPreferences(context). May 26 15:41:37 doesnt matter what context you pass, you will always get the same preferences May 26 15:42:14 can i store objects within SharedPreferences? or do i need to store the fields of the access token and reinstantiate the object on retrieval? May 26 15:42:41 you need to serialize them May 26 15:43:58 SP can only store primitives, if you need more than that it's up to you to figure it out May 26 15:44:31 a token should be storeable as string May 26 15:46:25 Guys im looking at an android tutorial on creating a camera preview class May 26 15:46:33 And it has a method SurfaceHolder.getHolder() May 26 15:46:41 But it looks like it doesnt exist May 26 15:47:01 Anyone ever heard of it May 26 15:47:18 Nevermind May 26 15:47:21 damnit May 26 15:47:22 it exists. May 26 15:47:53 Just figured it out May 26 15:48:02 Its not a method of SurfaceHolder May 26 15:48:25 I was trying SurfaceHolder.getHolder when it should have been = getHolder() May 26 15:49:32 getHolder returns the holder.. May 26 15:49:42 apparently you much rather prefer talking than researching :p May 26 15:49:47 how could you have a holder without having it, in order to call that method on it May 26 15:50:03 misterious May 26 15:50:36 I was just confused May 26 15:50:56 and yeah wakelock talking it out helps me out alot May 26 15:51:47 talk it out aloud with yourself :p might sound crazy but many say that actually helps May 26 15:52:30 Yeah the rubber duck effect or something May 26 15:52:39 something like that, I forget May 26 15:53:39 does not help in exams though May 26 15:53:56 ^^ May 26 15:54:09 you were supposed to have done it all before the exam :p May 26 15:54:34 danijoo you in college? May 26 15:54:40 drose379, yup May 26 15:54:50 Cool, studying CS? May 26 15:55:09 nah agriculture May 26 15:55:09 wait. college is the same thing as univeristy isnt it? May 26 15:55:23 wakelock, actually a valid question because im not at all into CS :P May 26 15:55:39 yes danijoo May 26 15:55:40 drose379, Biochemistry May 26 15:55:51 Really, you just do android dev for fun? May 26 15:56:10 danijoo, I know, I wouldn't even assume you are :p May 26 15:56:25 why not? May 26 15:56:27 if I could travel in time, i would have done CS May 26 15:56:30 facebook sdk gives me that what im doing wrong ?Failed to get app name. May 26 15:56:36 Ah ok May 26 15:56:39 also university ~ college, it's the "equivalent" except in some countries May 26 15:57:04 when I began studying we had a huge amount of unemployed CS graduates here in germany May 26 15:57:18 really May 26 15:57:18 thats why I chose to not do it May 26 15:57:40 I bet you could still get a programming job May 26 15:57:41 Hi, The gallery display some pictures from my Google+ Account or something like that. is an easy way to get this file thanks to the URI given by the intent from Intent.ACTION_PICK or via the intent filer? Actually i get error or fileNotFound if i try to use fileDescriptor May 26 15:57:48 You seem to be experienced May 26 15:57:50 enough May 26 15:57:55 drose379, i might try when I finished my studies May 26 15:57:57 for a junior dev position May 26 15:58:01 i already live from it May 26 15:58:01 yeah, go for that May 26 15:58:09 you make your money from it? May 26 15:58:13 well... "live" May 26 15:58:21 live == pay my beer and my coffee May 26 15:58:26 lol May 26 15:58:31 You have some apps out ther? May 26 15:58:36 or freelance? May 26 15:59:00 drose379: give us some classes, we need a teacher May 26 15:59:05 currently trying to get a foot in freelancing May 26 15:59:15 dude, he's getting rich with his apps as we speak May 26 15:59:31 until know ima one man army developing,designing and publishing :p May 26 15:59:49 and promoting May 26 16:00:10 by wasting your beer money on useless ad campaigns May 26 16:00:12 :p May 26 16:00:27 one man army, thats bad ass danijoo May 26 16:01:02 danijoo any apps on the market? May 26 16:01:25 i think it sounds more badass than it is then, lol May 26 16:01:36 Yeah, im a one man army too May 26 16:01:56 drose379, yes May 26 16:01:58 Why dont you team up with one of the CS kids at your school? May 26 16:02:45 also, links to your apps? May 26 16:03:39 team up?? but then he'd have to share the profits! May 26 16:04:30 drose379, no, there are not links to the app in the market :P May 26 16:04:37 Theres gotta be May 26 16:04:57 i could tell you, but then I would have to kill you... :/ May 26 16:05:15 reallyyy May 26 16:05:18 how about you do it the other way around? May 26 16:05:48 Any idea on how to handle easyly Drive/Google+ Image given by the gallery but not on the phone? or how to ignore them within intent-filter May 26 16:06:09 ?? wakelock May 26 16:06:31 you will probably need to ask the content provider to fetch the actual content for you May 26 16:06:51 pretty sure that's how it's supposed to work May 26 16:10:00 danijoo so you make money off your apps? May 26 16:10:04 Id like to hear more about that May 26 16:10:55 read the exclusive interview in The Business Insider next week May 26 16:11:05 wakelock: i ask the picture from the MediaStore (MediaStore.Images.Media.getBitmap(ontentResolver,uri); ) May 26 16:12:00 ok, well gdrive is not mediastore May 26 16:12:43 wakelock: i need to handle drive by myself? May 26 16:13:08 no... May 26 16:16:46 If I want to develop with min sdk=21 then is there a reason I should extend ActionBarActivity ? Or just go with Activity? May 26 16:21:52 wakelock: any ideo on how to do? May 26 16:30:42 Does anyone have experience capturing selfie video? I’m trying to fix the mirror effect and yes, I already tried StackOverflow and even gave up a nice bounty after receiving only wrong answers. May 26 16:32:03 the mirror effect? May 26 16:32:33 he wants to flip the video May 26 16:32:43 horizontaly May 26 16:32:53 lly May 26 16:33:13 Camera.setPreviewOrientation() May 26 16:33:13 ? May 26 16:33:22 whats the best way to put a red left border on a TextView? May 26 16:33:27 what could be wrong if SupportMapFragment.getMap() in onViewCreated() returns null? May 26 16:33:33 but only on samsung devices May 26 16:33:46 Yes, setPreviewOrientation changes the rotation of the preview. It doesn’t mirror the video horizontally. May 26 16:35:26 If you 180 degree flip a video that’s recorded backwards horizontally, you would get an upside down and backwards video, not a correct video. May 26 16:36:34 anyone issued with facebook sdk failed to get app name ? May 26 16:38:36 luist, use a background May 26 16:44:56 i'm caring less & less about bad rtings May 26 16:44:59 *ratings May 26 16:48:34 Schoumi, yes, plenty May 26 16:48:38 hey everyone i'm running into issues with avd setup. i am new to android development. i am trying to setup the haxm but i'm getting vt-x error. this is where it gets tricky i am using a vm running on a dell 2950 III server. I have enabled the VT in esxi i have enable virtualization i have disabled on the vm hyperv. but still not success May 26 16:48:44 anyone have this issue before May 26 16:48:53 Schoumi, for example: getContentResolver().query() May 26 17:00:44 Any idea how I can update the google play services? I can't seem to find it in the play store -.- May 26 17:06:21 god, why does swiftkey absolutely refuse to honor textNoSuggestions May 26 17:07:45 Guys if I try to create a file in a directory that does not exist yet, will it be created? May 26 17:18:30 When I try to write to a Bundle, I get the error: "get/set setting for user asks to run as user -2 but is calling from user 0" May 26 17:19:26 Syzygy, it normally autoupdates May 26 17:19:29 The only "answer" I can find through google is that you can't run as user 0 unless it's a system app. May 26 17:19:36 Which doesn't help. May 26 17:20:12 huh? May 26 17:21:10 Syzygy, https://play.google.com/store/apps/details?id=com.google.android.gms May 26 17:21:17 easy May 26 17:27:01 dragorn: hey! I did a couple of changes adding a clear() at the ArrayList plus I've add the method notifyDataSetChanged() on the SimpleAdapter but the content still being added after click. Would you mind to have a look at the source and see if I didn't make any other mistake please? May 26 17:34:40 lol https://medium.com/@hfuecks/the-real-release-notes-eeeac7212dfc May 26 17:39:03 nteressting kind of blog ^^ May 26 17:39:31 hm. came in too late - what's the blog? May 26 17:39:38 "On top of Google Analytics, Flurry, Localytics, Mixpanel and comCast we just added another SDK to check you’re really all there. And OMG have you seen Facebook’s Analytics for Apps?!? We just have to get some of that." lol May 26 17:40:38 groxx, lol https://medium.com/@hfuecks/the-real-release-notes-eeeac7212dfc May 26 17:42:27 heh May 26 17:42:39 danijoo Weather Channel app just updated on my Lumia, and their improvement was going from tabbed design with banner add, to once huge contibuous scrolling thing with enormous interstitial adds May 26 17:42:45 true, though it would be easier if Google would actually make use of it as a changelog, rather than a "what's new(est)" May 26 17:42:52 *continous May 26 17:43:14 g00s: that sounds like their most-user-requested enhancement. I can see why they did that. May 26 17:52:21 hi! If I use Android built-in string resources (e.g. android.R.string.cancel) - will it be translated into other languages automatically? May 26 17:52:44 I'd expect it to be but I suppose I don't know May 26 17:52:51 alximych: into whatever is on the device, which can vary a fair bit, for both good and bad. May 26 17:52:57 dragorn, yes May 26 17:53:01 ups May 26 17:53:09 alximych, yes May 26 17:53:16 thanks! May 26 17:53:19 this is the reason why i dont use them May 26 17:53:38 alximych: good: some devices are localized to their local region (e.g. supporting languages that aren't in the "standard" set that Google supports. bad: they might be missing all but the major languages. May 26 17:54:23 also bad: If I do translation for 10 languages, and use android.R.string stuff, someone on language number 11 might get an app that is half english and half native May 26 17:54:29 i prefer full english in this case May 26 17:55:15 yeah, there is that too. though I don't really know which is actually better there - an app with buttons and the occasional random phrase that you can understand, or an app with nothing understandable? May 26 17:56:27 i would say an app with nothing understandable. May 26 17:56:43 groxx, i dont think there is a benifit for the user to have a: "Dies ist ein text den niemand versteht" : Yes, Cancel May 26 17:56:56 otherwise, it will give the impression that you half assed it May 26 17:57:04 yeah May 26 17:57:13 exactly May 26 17:57:34 support it or not support it. theres nothing in between May 26 17:57:38 Is there some permission I need in order to create bundles? May 26 17:57:40 danijoo: as opposed to "ja, nein", where you don't even know what might be the safer option? May 26 17:58:42 groxx, if you cant read the text because its not native, there is no point in native yes/no options May 26 17:58:50 how do i remove the “debug” from my APK name? :P May 26 17:58:55 hi May 26 17:59:03 luist, by compiling it with your own key May 26 17:59:11 luist: by... not putting it in there in the first place? May 26 17:59:23 I need to understand how to write versions in gradle May 26 17:59:37 i'd use the keyboard May 26 17:59:44 because I have an app in a repository and I need to update it May 26 17:59:49 xpheres, i'd guess you mean flavors? May 26 18:00:09 I started an app and is accepted in f droid repository May 26 18:00:31 now everytime I improve I want to send a signal to that repository so people will be able to download the update May 26 18:00:51 let me show you a website May 26 18:01:00 Yo May 26 18:01:46 xpheres, you need to change versionCode in build.gradle, compile it and upload it May 26 18:01:49 https://gitlab.com/fdroid/fdroiddata/blob/master/metadata/com.example.root.analyticaltranslator.txt May 26 18:01:54 right May 26 18:02:00 Ok, so I need to populate a grid list (?) with thumbnails which are hosted online May 26 18:02:04 just by uploading to git hub with the new version code May 26 18:02:18 people will know that there is a new version right? May 26 18:02:30 that's what I want to understand May 26 18:02:45 hey everyone i'm running into issues with avd setup. i am new to android development. i am trying to setup the haxm but i'm getting vt-x error. this is where it gets tricky i am using a vm running on a dell 2950 III server. I have enabled the VT in esxi i have enable virtualization i have disabled on the vm hyperv. but still not successful May 26 18:03:19 afaik vm-inside-vm doesn't work with haxm May 26 18:04:24 groxx: its a silly question but is haxm a vm? May 26 18:04:50 ah, I misread, thought you were running a virtualized server May 26 18:04:51 haxm is a hypervisor May 26 18:05:40 groxx: hmm...because i'm running esx which is a hypervisor, i wonder if that is where my issue is May 26 18:05:46 there is any repository that you recommend me to publish my android app? May 26 18:06:03 outside play store, amazon store, dozens of chinese stores: fdroid is the biggest I know of May 26 18:06:17 especially if you're doing open source / gpl work May 26 18:06:33 I want it published everywhere because that way people will know about it and may collaborate to improve the source code May 26 18:06:47 yes that's what I thought May 26 18:07:20 xpheres, a repository is not a store May 26 18:07:21 I may think about amazon and google play May 26 18:07:54 it doesn't matter danijoo, I want to publish it and maybe get some funds I will probably use to improve the app May 26 18:07:56 Hello. Play store says my app supports 15 languages. How can I configure this? I just have one strings.xml file May 26 18:08:03 if you publish to a store and upload a new versionCode to it, everyone that got yout app from that store will get notified. yes May 26 18:08:23 if you upload your code to a repository, nobody will get notified unless they activly follow it May 26 18:08:23 right danijoo May 26 18:08:30 mm May 26 18:08:46 a repository is for managing your source files. a store for publishing May 26 18:08:49 but I have fdroid and I get notification every time there is a new version for any app May 26 18:09:01 so I guess the app manage to know about versions May 26 18:09:04 xpheres, fdroid is a store, not a repository May 26 18:09:10 ok May 26 18:09:14 what's up people? Hyped for Android M?:! May 26 18:09:21 a gas station is not a car :) May 26 18:09:26 yeah I get it May 26 18:09:47 My app has license gpl3 May 26 18:09:50 Afzal, should we? May 26 18:09:56 Yeah!! May 26 18:09:59 I guess I can sell it to get funds as well May 26 18:10:05 Hello everybody , I have two activities if I switch from A->B no memory leaks , but if i add a Surfaceview in activityA layout (xml) (and do ANYTHING in the code) , I have a memory leak (SurfaceView keep a ref to ActivityA) May 26 18:10:08 even If have to publish a free version May 26 18:10:29 Is it normal ? :/ May 26 18:10:47 Afzal, it list with "better memory and battery performance". I translate this to "with even more memory leaks!" May 26 18:11:00 I don't think I will be rich by the app, but If I get funds I may be able to pay people to help me improve and correct issues May 26 18:11:06 you can always sell your own stuff May 26 18:11:06 how do you translate "better memory" to "memory leaks" May 26 18:11:11 no matter what license you chose May 26 18:11:14 great May 26 18:11:14 xpheres: I dunno if github allows this, but you could have the app check for a .version file or something in the current master of your github repo May 26 18:11:23 Afzal, free interpretation :) they said the same for L :p May 26 18:11:27 yes groxx May 26 18:11:31 they didn't :) May 26 18:11:37 they didn't say better memory usage May 26 18:11:39 I know there are several ways to write the version May 26 18:11:46 I was thinking to use the gradle way May 26 18:11:53 by writting in the gradle file May 26 18:11:56 they did say better battery for L, which fits with what I see at least. May 26 18:11:59 but I have to look at github May 26 18:12:11 because I see there is a special file that github use for versions May 26 18:12:16 sup xpheres May 26 18:12:18 groxx, yeah.. after 5.1 this is true May 26 18:12:33 we were working on something the other day, I forget what it was May 26 18:12:44 5.0 hat lots of battery issues on some devices May 26 18:12:45 xpheres: you can ultimately just write java(-like) code in gradle, it can do anything. it's _probably_ easiest to make a shell script that just calls `curl` or something though, and have gradle call it when you make a release build. May 26 18:13:34 groxx they say better battery for "M" too :) May 26 18:13:43 well better still means better May 26 18:13:47 there's plenty of room to improve May 26 18:13:47 "general improvements and bug fixes" May 26 18:13:57 also bug breeding May 26 18:13:57 yeah exactly as groxx said May 26 18:14:04 g00s, lol May 26 18:14:34 we need APIs for the low power dsp though May 26 18:14:37 that thing is gold May 26 18:15:00 instead of just "OK google" we need to be able to talk to the phone at all times May 26 18:15:04 the multi window feature looks horrible to support May 26 18:15:16 its an interessting feature as user, though May 26 18:15:31 Afzal, no thanks May 26 18:15:36 danijoo is it useful for phones and tablets ? May 26 18:15:42 adq why? May 26 18:15:45 g00s, no idea May 26 18:15:52 because it will be abused May 26 18:16:00 leading to more privacy issues May 26 18:16:02 then just don't install the app :/ May 26 18:16:06 wow seriously? May 26 18:16:09 but I wonder how this should be implemented without fucking up guis May 26 18:16:34 adq they just need the right permissions May 26 18:16:44 lol i was semi-joking May 26 18:16:56 but why not in favor or simply waking up when needed? May 26 18:17:14 I just want to say "call and put it on speaker" without shouting "Ok google" 500 times May 26 18:17:26 I end up cursing the shit out of my phone May 26 18:17:57 how would the phone know you are talking to it vs your friend right next to you ? May 26 18:18:20 g00s yeah I just realized that, well then don't make "OK google" wake up some other function May 26 18:18:24 go at IO, hack the speakers output, then say "ok google, [whatever you find funny]" May 26 18:18:30 it could be one fluent sentence May 26 18:18:31 and watch ppl May 26 18:18:41 hahaha, go hack the speaker output first :p May 26 18:18:49 you could borrow the mic May 26 18:18:50 :) May 26 18:18:50 it *should* be one fluent sentence May 26 18:19:27 abracadabra could have been used instead of "ok google", a bit longer but less false positive May 26 18:19:37 of course, marketing strategy to remind the word "google" then fail a lot May 26 18:19:42 boomshakalaka May 26 18:20:06 but back to what you ask Afzal, the chip handling your sim and sms is never sleeping iirc May 26 18:20:06 So guys quick question to make sure I understand May 26 18:20:07 boomshakalaka call my dad and put him on speaker May 26 18:20:10 I have 2 linear layouts May 26 18:20:14 this is why you don't have to "wake" your phone to receive an sms May 26 18:20:16 top one has layout_weight set to 3 May 26 18:20:18 but it has a cost :) May 26 18:20:19 bottom set to 1 May 26 18:20:35 that means that the screen is split into 4 parts, the top layout takes up 3, bottom takes 1 May 26 18:20:37 adq, yeah but that's why they put a lower power dsp in there in the first place :) May 26 18:20:48 how do you rotate the android emulator? May 26 18:20:50 no split into 2 parts, one is 3 times bigger than the other May 26 18:21:00 you can verify that by yourself without asking May 26 18:21:14 So I could also do 1 and 0.25 May 26 18:21:23 you can specify weightSum May 26 18:21:27 when you don't want to use a default one May 26 18:21:35 Whats the default? May 26 18:21:39 The sum of all the weights May 26 18:21:46 instead of the lower power dsp launching something because you said "ok google", it needs to listen to the whole sentence before passing that whole sentence forward May 26 18:21:46 you can also do 300 and 1000 May 26 18:21:48 do I make sense? May 26 18:22:02 http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:weightSum May 26 18:22:13 Hey all, I'm building an android library with JNI components. Is there any reason for structure the directories like I would for a standard android studio project? I'd really like to skip src/main/(java||jni||res) and keep src and jni in the module's root directly. I can change all of the in sourceSets in my build.gradle, but was wondering about the wisdom of it. May 26 18:22:15 If unspecified, the sum is computed by adding the layout_weight of all of the children. May 26 18:22:18 I'm looking for an alternative to the Android emulator that comes with Android Studio. What's the best one, in your opinion? May 26 18:22:25 so the default is the sum of your weights May 26 18:22:31 krang, set it however you like, it really doesn't matter May 26 18:22:33 So I have 1 and 0.25 May 26 18:22:44 Afzal, you make sense but it would not be efficient May 26 18:22:46 szronik aren't really many options beside genymotion May 26 18:22:47 krang, it's nice to follow the standard, but ultimately doesn't matter May 26 18:22:52 pfn: That's what I figured. Cheers! May 26 18:22:54 szronik: genymotion is probably the main one. or a real device :) otherwise, why are you looking for an alternative? the stock ones work pretty well (minus some gaps) May 26 18:22:57 cause in order to have to listen and recognize the sentence, except if hardcoded/calibrated May 26 18:23:01 you need to process a lot May 26 18:23:06 and that will not fly on low power mode May 26 18:23:20 adq 1.25 means that the bottom layout (0.25) takes up a quarter of the top layout (1) May 26 18:23:22 just one second at a decent samplerate (let's say 8kHz for a voice and this is poor) May 26 18:23:25 adq I don't see it being very different honestly. It still looks for the keyword but you now also have to put the code which detects end of speech. That's it May 26 18:23:25 groxx: I'm taking a course on android development and I've been having major issues with the emulator. May 26 18:23:28 that's a tremendous amount of op May 26 18:23:31 in 1 sec May 26 18:23:35 groxx: Apart from the part that it's slow. May 26 18:23:51 szronik do you have an android device? May 26 18:23:54 oh I see May 26 18:23:55 You could just test on that May 26 18:24:02 well then that's just how I want it lol May 26 18:24:04 pfn: Is there any point in splitting my build.gradle into a main and module file, or should I just use a single file, since I'm only building a single library? May 26 18:24:07 drose379, just read the doc May 26 18:24:17 tremendous amount of op never stopped anyone ;) May 26 18:24:24 szronik: have you installed haxm? May 26 18:24:33 szronik: + using an intel image? May 26 18:24:43 two layouts of 1 and 1 weights, make each of their height 50% of the parent height May 26 18:24:48 groxx: HAXM installed and working, intel image. May 26 18:24:56 3 layouts of 1 weights makes them 33% May 26 18:24:59 etc May 26 18:25:09 adq unless i have a bigger weightsum :p May 26 18:25:14 drose379: Three android devices at home. All of them running android 2.3.x, unfortunately. May 26 18:25:19 damn May 26 18:25:20 szronik: + gpu acceleration? typically that results in an emulated-device that's several times faster than any real device May 26 18:25:27 1 layout of weight=2 and 1 layout with weight=2 makes the first one 33% and the second one 66% May 26 18:25:29 it's not complicated May 26 18:25:30 adq I set weight sum to 1.20 May 26 18:25:32 one has 1 May 26 18:25:36 other has 0.20 May 26 18:25:40 oops weight=1 for the first, typo oops May 26 18:25:41 should work May 26 18:25:49 software GPU is pretty slow if you try to run it on a "large" emulated device, I'd say lower the density to mdpi / use something smaller. May 26 18:25:57 drose379, it will work May 26 18:26:05 man drose379, you're still in here talking? lol :p May 26 18:26:12 but the layout with weight 0.20 is not 20% May 26 18:26:14 groxx: I have 4GB of RAM. The emulator + android studio just chew up everything. May 26 18:26:22 ha, yes, that does happen :) May 26 18:26:23 what is it adq May 26 18:26:28 genymotion won't help you there though May 26 18:26:28 I just got back wakelock May 26 18:26:36 you need more ram May 26 18:26:39 or use a real device May 26 18:26:48 me too, and all I already have a screenful of you :p May 26 18:26:53 -all May 26 18:26:54 it's 16.6666% May 26 18:26:57 lol, is that a bad thing May 26 18:27:06 hm ok adq May 26 18:27:09 Have any of you guys heard of coursera? I'm taking a course there, and I've spent 95% of my time dealing with issues instead of coding. May 26 18:27:11 0.20 is 16.6% of 1.20... May 26 18:27:21 yeah. tbh I'd recommend getting a real device too, maybe some old crappy thing. if you don't need it to work as a _phone_, old carrier-locked phones are pretty cheap. May 26 18:27:27 Ohhh ok May 26 18:27:33 why don't you read? May 26 18:27:35 Issues such as, the app loaded yesterday and today the android emulator just goes black. May 26 18:27:39 I do May 26 18:27:55 http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:weightSum May 26 18:27:55 If unspecified, the sum is computed by adding the layout_weight of all of the children. May 26 18:28:07 ..? May 26 18:28:19 groxx: The code I'm working with is for Android 4.0+ The device I can use has 512MB internal memory, won't go past 2.3 May 26 18:28:57 Let me just start up the emulator again, with a stopwatch. May 26 18:30:13 technically 4.4 could work on it, but yeah, device makers don't typically upgrade much. May 26 18:30:32 emulator is unreliable, so you have to restart it from time to time May 26 18:30:51 only if you mess with it too much IMHO May 26 18:30:54 So I assume most of you use real devices? May 26 18:30:58 man you don't use it often May 26 18:31:05 I use it all the time? May 26 18:31:06 you don't have to do anything sometimes except starting it May 26 18:31:16 and wait for the crash May 26 18:31:18 mine works fine *shrug* May 26 18:31:29 never crashed May 26 18:31:41 you're very (to not say extremly) lucky May 26 18:31:47 and i have hard time to believe you, but anyway May 26 18:31:47 HAX is working and emulator runs in fast virt mode May 26 18:31:54 yeah, since ~build tools 19 or so it has been really stable for me. not before then, though. May 26 18:32:06 szronik Android is like a black hole - subtle quirks in the laws of physics, then amplify them to such proportions that they can't be ignored. May 26 18:32:30 Yeah I'm thinking of switching to Xamarin May 26 18:32:49 xamarin will have its own bugs May 26 18:32:51 xamarin... in the context of black holes... sounds legit :D May 26 18:32:58 then you will have xamarin + android bugs :) May 26 18:33:03 is xamarin better then phonegap? May 26 18:33:13 both are crappy, lol May 26 18:33:23 Yeah but I'll have the ability to use the same code base for different OSes May 26 18:33:32 groxx: i have no idea how i put it in there :) May 26 18:33:43 Android launching (5 mins later) May 26 18:33:48 Phonegap uses JS and xamarin uses C# May 26 18:33:53 wonder which is better May 26 18:33:55 szronik, you'd think that helps May 26 18:34:13 just stick with java May 26 18:34:20 as far as android goes anyway May 26 18:34:24 luist: probably: gradle file, manifest file(s), or strings file(s) May 26 18:34:29 yeah, I am enjoying learning android so far May 26 18:34:38 I don't mind Java May 26 18:34:43 Guys I got a question May 26 18:34:44 I Just like C# more May 26 18:34:58 For someone who has only used java for android development May 26 18:35:05 nobody should have any business even thinking of anything non-java on android before they master java to a sufficient level May 26 18:35:06 Would it be reasonable to put java as a skill on a resume? May 26 18:35:09 groxx: thers no such thing in any of these May 26 18:35:26 drose379, yes and no :) May 26 18:35:32 elaborate? May 26 18:35:39 android is the platform and java is the language May 26 18:35:39 :) May 26 18:35:43 for the yes May 26 18:35:56 drose379, java on android overlaps general java substantially, however having to deal with android SDKs and APIs could easily skew your mind if you're not careful May 26 18:35:58 emulator has gone blank May 26 18:36:08 but to be considered as a real skill, you need to have spent year on java i guess (whatever the platform is) May 26 18:36:12 for the no May 26 18:36:33 years* May 26 18:36:34 Ok, so as long as I put time into java seperatley then I can be a full yes May 26 18:36:55 assuming you learn a lot yes, if you're still a noob after years, which i doubt, it would be even lying May 26 18:37:05 if you do 5 yhears in android. you can put a yes in java :) May 26 18:37:25 all in all, java is java, dalvik just compiles it differently then reg VM, correct? May 26 18:37:25 in fact, any skill you got, you should be confident about putting it as skill May 26 18:37:34 there is no modesty here, when it comes to your CV May 26 18:37:47 you should know what you know enough to be considered as a skill May 26 18:38:02 Right May 26 18:38:04 especially know that you dont know everything :_ May 26 18:38:09 Right May 26 18:38:17 I put down Android(Java) May 26 18:38:19 sometimes you have to be bold though, and list something as a skill even if you're not *that* proficient (yet) May 26 18:38:56 yeah last time i helped for some recruiting interview, a guy put Linux, Unix, etc in his CV May 26 18:39:03 sooo... #android-dev is now giving career advice too? lol May 26 18:39:10 lol why not May 26 18:39:13 then in few oral sentences he made during his interview, he clearly mistaken both, many times May 26 18:39:19 he was screwed May 26 18:39:20 drose379, because off-topic? May 26 18:39:21 oh thats not good May 26 18:39:44 adq so if you put it down on resume and can back it up during interview, then its all good May 26 18:39:47 Okay, I'm going to the gym. Need to get away from Android studio for a bit. May 26 18:39:52 lol May 26 18:39:58 this is expected drose379 May 26 18:39:58 weve all felt that way szronik May 26 18:40:01 not even "good" :) May 26 18:40:07 its expected, ok May 26 18:40:29 No seriously I just added five counters to some code. May 26 18:40:34 And I wanted to run it. May 26 18:40:36 I know everything, just ask me May 26 18:40:37 adq, at my former faculty they needed a new sysadmin, they interviewed one guy and he somehow convinced them he's got it all. then an hour later he shuffled down to the current (soon to leave) admin and asked "so um, do you have any learn-unix-fast books to recommend?" May 26 18:40:50 It's been like 6 hours. (First issues with HAXM, solved, now I don't know what) May 26 18:40:51 lol May 26 18:41:09 Doing android dev and learning java while writing android apps will help with java classes in college May 26 18:41:10 will it not? May 26 18:41:20 yes May 26 18:41:32 it will? May 26 18:41:38 I just said yes... May 26 18:41:38 wakelock: Kudos to him for socialhacking. May 26 18:41:48 well it was confusing cause I said will it not May 26 18:41:50 then you said yes May 26 18:41:57 so I didnt know what you were confirming :P May 26 18:41:59 szronik, not really, just shows how the interviewers were utterly and completely clueless as well May 26 18:42:08 not really May 26 18:42:08 ^ May 26 18:42:16 wakelock: Did he keep the job? May 26 18:42:16 drose379, yes May 26 18:42:17 :p May 26 18:42:19 if they got fooled at screening... May 26 18:42:22 szronik, surprisingly, yes May 26 18:42:25 what will happen next lol May 26 18:42:31 shmooz what was the not really to May 26 18:42:32 wakelock: So like I said, kudos to him for socialhacking :) May 26 18:42:41 ok, fair enough :p May 26 18:42:44 it won't really help May 26 18:42:49 really? how come? May 26 18:42:50 wakelock: He said he could do it, he did it. May 26 18:43:03 I think both sides compromised a lot ;) May 26 18:43:07 drose379: you concentrate on what you are doing at the time and do it that way May 26 18:43:16 i just realized May 26 18:43:19 my app has no share buttons May 26 18:43:20 wakelock: As long as he's not sysadmining a nuclear facility, I don't care. May 26 18:43:26 doing one one time doesn't really help another another time May 26 18:43:42 no, it was not the nuclear sciences faculty/college May 26 18:43:42 ok gym time May 26 18:43:49 shmooz but knowing how to write java and knowing OOP principals will help? May 26 18:43:50 adios all I'll be back in 2-3 hrs May 26 18:43:57 paulo_, THAT'S TERRIBAD! May 26 18:44:05 drose379: yes it will May 26 18:44:10 principles! May 26 18:44:12 adios May 26 18:44:15 :P May 26 18:44:17 but you have to usually relearn it anyway May 26 18:44:40 or reremember it May 26 18:44:47 So knowing OOP will help, but making android apps in particular wont help May 26 18:44:49 drose379, are you really *this* insecure? that alone will kill all your hiring chances y'know May 26 18:44:50 and there no buzz about it on twitter. May 26 18:44:54 *'s May 26 18:45:02 Im not insecure, just wondering what you guys think May 26 18:45:11 lol yes you are May 26 18:45:15 it shows May 26 18:45:16 im new, want to make sure im going the right path May 26 18:45:54 you'll have me convinced after you blow their minds at the next job interview ;) May 26 18:46:21 I had one a few weeks ago May 26 18:46:23 :) May 26 18:46:33 minds blown? May 26 18:46:41 dont know, I did get the job May 26 18:46:48 I see May 26 18:46:53 cool May 26 18:46:57 Its an internship, not job May 26 18:47:06 first step, right? May 26 18:47:09 yeah May 26 18:47:14 yet you're already wondering what to put in your CV :p May 26 18:47:19 drose379: don't stop searching for another job May 26 18:47:29 drose379, do your CV in LaTeX :) May 26 18:47:30 is it a paying job? :p May 26 18:47:32 (i did it) May 26 18:47:40 wakelock its an internship so they pay is low May 26 18:47:41 and don't put the skill "LaTeX" in it May 26 18:47:46 Im more interested in the experience May 26 18:48:05 TBH im asking all these questions because I want to know where ill be once I get to my Comp sci courses May 26 18:48:07 adq, surprisingly, that skill is largely unimpressive around here May 26 18:48:19 it's not a skill lol May 26 18:48:22 nobody would care if I did it in latex or even put latex as my skill May 26 18:48:24 (not for me) May 26 18:48:24 and don't put the skill "LaTeX" in it May 26 18:48:45 so you did it in latex for your own sake? well ok May 26 18:48:49 no May 26 18:48:53 drose379: you'll be carrying ethernet cables for some slimey guy or moving heavy old monitors to the basement May 26 18:48:57 because it provides an extremly sober output May 26 18:49:04 haha you think so shmooz May 26 18:49:16 PDF made by libreoffice works perfectly fine for me ;) May 26 18:49:26 i tend to use linkedin when someone asks me for a CV tbh May 26 18:49:26 Yeah I did a pdf wakelock May 26 18:49:35 drose379: that's what they offered me after I finished my programming school ;) May 26 18:49:39 shmooz, replacing toners in dozens of dusty old printers May 26 18:49:50 haha, they said they need a prototype application May 26 18:50:00 And they did ask about techinical stuff during interview May 26 18:50:03 so im hoping for the best :P May 26 18:50:39 adq, in my experience linkedin is good as a starting point, but they usually ask me for a *real* CV afterwards May 26 18:50:56 yeah, they all do May 26 18:51:08 somtimes, they ask specifically for a .doc May 26 18:51:09 lol May 26 18:51:09 wakelock why do you think im insecure? May 26 18:51:21 adq thats when i export my linkedIn as pdf :) May 26 18:51:23 besides the fact that im asking you why you think im insecure :P May 26 18:51:31 g00s wins May 26 18:51:39 drose379, lol, exactly May 26 18:52:01 but nah I dont think I am, just wondering about a lot of stuff for the future May 26 18:52:06 I guess I can see why it comes off that way though May 26 18:52:25 drose379: just do it May 26 18:52:35 just do it? May 26 18:52:37 plus, it was kind of funny how you asked a question and got responses, some of which kind of ambiguous, and then you went to great lengths to make sure you understand each one correctly and don't miss out on any of them May 26 18:52:46 yeah, don't wonder and ponder May 26 18:52:51 yet it was just a "casual chat" kind of question May 26 18:52:51 drose379, extra activities, put good stuff in it, not music video games and movie ;) May 26 18:52:55 or waste time wondering May 26 18:52:57 at least seemed like that May 26 18:53:21 You guys are smart people May 26 18:53:27 with lots more experience then me May 26 18:53:36 Why not try to get some insight :) May 26 18:53:39 hi May 26 18:53:44 anyone has a google market account? May 26 18:53:55 many here, but that's not what you want to know May 26 18:53:57 anyone knows if the 25€ payment is just once for life? May 26 18:54:03 once for life, indeed May 26 18:54:06 right May 26 18:54:07 (until further notice) May 26 18:54:16 so you don't have to pay monthly or yearly fees May 26 18:54:17 xpheres, always avout this kind of unnecessary meta questions May 26 18:54:21 avoid* May 26 18:54:21 drose379: because you'll never what things will be , so you kindof have to decide as you go May 26 18:54:35 yeah May 26 18:54:35 xpheres, nope but if you sell stuff (paid app, or in-app billing), there are fees May 26 18:54:39 ok wakelock, where better should I ask this? May 26 18:54:45 because I'm thinking to open an account May 26 18:54:47 um... what? May 26 18:55:03 I don't recall saying this is the wrong channel or anything... May 26 18:55:06 xpheres, it's mandatory even if you plan to publish free app May 26 18:55:07 yes adq, I know there is also a percentage May 26 18:55:28 or you can choose to distribute your app outside of google play May 26 18:55:34 have you guys used any gradle plugins like fatjar or onejar? May 26 18:55:34 I did indeed May 26 18:55:36 but 25$ is not a big deal May 26 18:55:38 do it :) May 26 18:55:42 it is to me May 26 18:55:45 I'm just thinking to open the market May 26 18:55:52 I'm sure not giving them the extortion fee May 26 18:56:07 has anyone had issues getting android:textViewStyle to work... like... at all? Apparently it was broken in the recent appcompat v7 library, but I'm not using that, so I just don't understand why my TextViews aren't getting styled from textViewStyle May 26 18:56:16 yes wakelock May 26 18:56:23 I prefer to sell it by myself May 26 18:56:26 I agree May 26 18:56:34 um ok May 26 18:56:34 that's what retain me from creating the google account May 26 18:56:53 I'm talking about the membership fee, not the per-sale fees May 26 18:56:56 but okay May 26 18:56:56 wakelock do you have anything on the market? May 26 18:57:02 ... May 26 18:57:02 both things May 26 18:57:15 for a small app that you don't know if you are going to make any sellss May 26 18:57:16 dude I just said I'm not paying the fee May 26 18:57:17 it's too big May 26 18:57:27 how would I have anything on the market? May 26 18:57:30 while people who have huge app and sells millions of apps should pay the same May 26 18:57:33 so how are you gonna get your apps to people? May 26 18:57:34 I don't find it fair May 26 18:57:34 lol May 26 18:57:40 amazon? May 26 18:57:48 yes also May 26 18:57:55 xpheres, it's very cheap according to what the platform provides to you for 25$ only May 26 18:57:59 I have direct download link and f droid May 26 18:57:59 i think you're not fair May 26 18:58:02 drose379, I make apps for carefully targetted audience, and I distributed it to them personally May 26 18:58:07 I don't care if anyone else uses them May 26 18:58:09 ok maybe May 26 18:58:13 and the 25$ has nothing to do with the success of your app May 26 18:58:16 anyway I don't think I'm going to make much money May 26 18:58:19 thats interesting wakelock May 26 18:58:20 it's mainly for banking verification May 26 18:58:30 and to prevent hello world to contaminate the store listing May 26 18:58:38 I'm just interested in making people know about it and getting traffic to my github May 26 18:58:49 I understand that adq May 26 18:58:56 adq, yet there is an abundance of "example" or "tester" apps on it anyway :p May 26 18:59:06 yes... May 26 18:59:11 so I may give it a try May 26 18:59:15 wakelock, yes May 26 18:59:24 but it would be worst without a little fee May 26 18:59:26 adq, probably because $25 is too low :D May 26 18:59:33 I think it is the most famous market May 26 18:59:44 dependson the country May 26 18:59:45 basically because is preinstalled May 26 18:59:51 only because it comes preinstalled on most devices May 26 18:59:53 it's not preinstalled everywhere May 26 18:59:55 like winblows and IE May 26 18:59:59 yes May 26 19:00:03 that's the main reason May 26 19:00:31 adq, it's preinstalled on like 95%+ of consumer devices May 26 19:00:35 I'm just interested in making people know about it and getting traffic to my github <- if 25$ per "many years" (lifetime is too big and make no sense) is too much May 26 19:00:37 good luck May 26 19:00:52 wakelock, not really but i'm too lazy to show stats of just china per example May 26 19:01:00 guys im having an issue with 2 buttons in a linear layout padding May 26 19:01:01 yes adq May 26 19:01:04 is not that much May 26 19:01:04 mmm ok May 26 19:01:13 for some reason the buttons have a margin around them May 26 19:01:20 Im trying to get rid of it but nothings working May 26 19:01:24 maybe because of their drawable? May 26 19:01:25 it is just, that at the begining, I don't think I will even pay the cost by selling it May 26 19:01:29 wondering too about india, many ppl there May 26 19:01:34 lot of "non CTS" devices May 26 19:01:42 world is big May 26 19:02:02 do they have a drawable by default wakelock May 26 19:02:16 on the other side, my apps are open source so people will pay just because they want to support me, because they will always have the app for free May 26 19:02:18 yet when people need worldwide stats, they always turn to play store stats, adq ;) May 26 19:02:29 drose379, how else do you think they are drawn? May 26 19:02:32 drose379, it's probably the 9-patch drawable of the button too May 26 19:02:40 remove the background and set a flat color to see May 26 19:02:41 that's what I'm talking about May 26 19:02:47 ok yeah May 26 19:03:03 or use hierarchyviewer or something close to it to debug your padding/margin May 26 19:03:26 Im trying the background change now May 26 19:03:36 yup, was background May 26 19:03:40 any recommendation regarding making funds with an open source app? like giving special features or updates priority to the paid app? May 26 19:03:41 of course it is May 26 19:03:48 * wakelock knew it all along May 26 19:03:52 nice job wakelock May 26 19:04:08 :P May 26 19:04:20 xpheres, easy, just make it paid and call it a day May 26 19:04:28 xpheres, this is not a financial or PR channel, others in here often struggle with it as well May 26 19:04:29 xpheres, as for making money, not much money to be made... May 26 19:04:29 lol May 26 19:04:32 at least not for niche apps May 26 19:04:43 I've made a couple thousand off my apps... not much at all May 26 19:05:01 couple thousand... gold bars? May 26 19:05:13 ok wakelock I understand those questions are out of scope here May 26 19:05:23 dollars May 26 19:05:34 but my apps are all pretty niche May 26 19:05:43 I just want to be able to pay java developers in the future to correct some issues May 26 19:05:44 maybe enough to pay my phone bill over the years May 26 19:06:04 xpheres, ok, start up a business and hire an expert to manage it May 26 19:06:12 hehe May 26 19:06:24 I wish I would be able to do that wakelock May 26 19:06:36 the only way i've made money off android stuff is to license it to work to include directly on hw May 26 19:06:45 that almost made the hourly equivalent worth it :P May 26 19:06:47 almost. May 26 19:06:48 not quite sure how you expect people in here to help, xpheres May 26 19:06:56 unfortunately I don't think I have such a good skills to start a business in app development May 26 19:06:59 dragorn, on personal stuff? May 26 19:07:05 pfn, yeah May 26 19:07:12 dragorn, oh, you mean you licensed your personal stuff to work, heh May 26 19:07:14 pfn, yeah May 26 19:07:16 that's practically for work :p May 26 19:07:31 well wakelock, I just wanted feedback,I'm happy to hear people's opinion and know about their experience May 26 19:07:37 ok May 26 19:07:46 pfn, except I wrote it before I worked for them, so i ended up with the app I wanted AND most of a new truck. I'd call it a win. May 26 19:07:54 dragorn, not bad May 26 19:08:03 yeah, my personal stuff is just enough for trinkets May 26 19:08:15 Im gonna run guys May 26 19:08:16 should've licensed it for more, to cover the whole truck May 26 19:08:22 either that or get a cheaper truck :p May 26 19:08:26 see ya May 26 19:08:47 pfn, yup. I wrote it while I was unemployed for a while to see if there was any community support for that sort of thing. The answer was, not really, but it worked out in the end. May 26 19:08:59 ugh, i've been doing this refactor so long now i dont even remember why i'm doing it May 26 19:09:06 wakelock, that's when I a) license it for the second gen hw, and b) get royalties past a certain # of devices sold :P May 26 19:09:24 lol g00s May 26 19:09:41 pfn if i want to copy TransferQueue to my project, but it inherits from AbstractQueue stuff, do you think I need to copy its super classes too ? May 26 19:09:56 g00s, dunno, if it's not in framework yet, then of course you need to copy it May 26 19:09:57 not sure if AbstractQueue has changed from 16-21 May 26 19:10:06 xpheres: create a features auction where people have to outpay eachother to get their requested feature added May 26 19:10:08 g00s, I'd imagine you can't compile w/out its parent class May 26 19:10:10 AbstractQueue is in the framework May 26 19:10:20 TransferQueue is just a new impl May 26 19:10:33 g00s, then you're done, unless the base class changed May 26 19:10:33 shmooz, I found long time ago a website that made that kind of auctions... May 26 19:10:39 I wonder how it was called May 26 19:10:47 but good idea shmooz May 26 19:10:49 thanks May 26 19:10:55 yeah ... thats the thing, i guess i have to check if the base class changed :( May 26 19:11:57 dragorn, ok, win :) May 26 19:12:15 wakelock, for something I didn't expect to recoup a sane hourly rate on in the first place, it's all a win. May 26 19:12:32 true dat May 26 19:12:49 I see a business spirit in you, young padawan May 26 19:13:22 yeah I do enough business bullshit already; tho I actually get to work on code today in between meetings, it's kind of nice. May 26 19:13:37 g00s, go into aosp, git log AbstractQueue.java :p May 26 19:13:39 There's an easy way to make money with an open source app...just put the app out with ads May 26 19:13:42 g00s, pretty easy May 26 19:13:51 Ologn, that's only if you get enough eyeballs May 26 19:13:52 mm May 26 19:13:54 I hate ads May 26 19:13:58 I have practically no users/not enough users on my free apps May 26 19:14:01 again, all niche apps May 26 19:14:04 I uninstalled many apps because of the annoying ads May 26 19:14:06 Just put the app out paid with a link to the source May 26 19:14:07 Ologn, good luck with that May 26 19:14:17 pfn: Well without another customers you won't make money under any circumstances May 26 19:14:17 dragorn, yeah, that's what I do May 26 19:14:19 pfn yeah i have sources from sdk manager, but to do git ops i'll need to dl the whole base framework repo ... on 1mbit/s May 26 19:14:21 I think there should be better ways to get funds May 26 19:14:30 I can promise you, there's a very very small number of people willing to compile it themselves. May 26 19:14:37 g00s, go somewhere with good bandwidth and clone it, should always walk around May 26 19:14:44 dragorn, yeah, I think 2 people compiled keepshare on their own, heh May 26 19:14:56 then again, I only have a hundred-ish active users May 26 19:15:09 Out of ~2900 installs I think I've gotten 3-4 people who emailed me about code on one app May 26 19:15:32 and out of 60k installs on the free app I think i've gotten maybe 5 emails about compiling anything May 26 19:15:34 dragorn, compile != learn from ;) May 26 19:16:08 wakelock, that's not the question though. the question is, how do you make any money off an oss app. I'm saying there's no reason not to charge a modest fee and also provide the source. May 26 19:16:49 wakelock, obviously i feel there's benefit in open source stuff, basically everything I do outside of work, and everything I can outside of chipset NDAs at work, is open source. May 26 19:17:03 agreed, and cool May 26 19:17:21 eheh dragorn, https://lh4.googleusercontent.com/-70ZC43c5Jso/SPqQoBkWU0I/AAAAAAAABlc/1P-ItJ_Suws/w859-h644-no/improved-fakeap.png long time ago (just 10 years) you explained to me the issue I have with BSS timestamp (you were involved in kismet at that time) May 26 19:17:38 I've donated to quite a few opensource apps, even though I didn't have to and technically got nothing for it lol May 26 19:17:50 really May 26 19:17:52 that's great May 26 19:17:55 anyhow; the point i was going for was, the "i'll compile it myself" market is really small and isn't going to cut into your app sales in any reasonable amount. If you get any app sales is a different question May 26 19:17:55 I prefer donations to payment May 26 19:18:09 xchat tries to use this model iirc May 26 19:18:10 adq, haha, awesome! I still do kismet stuff, tho work has hammered my life lately May 26 19:18:17 sources were free, binary were not May 26 19:18:21 xpheres, all you've ever talked about in the past hour was about money, are you really sure you're in the right channel? May 26 19:18:21 not sure it worked well May 26 19:18:29 dragorn, glad to hear :) May 26 19:18:41 "how to make money off of it" should never be the primary motivation for making apps May 26 19:18:44 adq, actually just ordered an android auto head unit and have visions dancing in my head of a bt-connected kismet client doing output on the stereo :) May 26 19:19:01 ahah {war|car}-driving is not dead May 26 19:19:05 but still a crime i guess ;) May 26 19:19:19 re: making money, personally I feel zero guilt providing the source and saying "if you don't want to compile it yourself, buy me the equivalent of a coffee." May 26 19:19:28 it has never been a crime to just map wifis May 26 19:19:35 dragorn, yes, it's called a donation ;) May 26 19:19:38 depends on the country danijoo May 26 19:19:44 in germany its k :) May 26 19:20:03 xpheres, be aware that donation are inefficient, it's still better than nothing of course May 26 19:20:24 It's problematic. Specifically in the 9th circuit in the US right now. May 26 19:20:26 but ppl are not willing to give easily, simply, when you see that they are reluctant for an app which cost less than a coffee May 26 19:20:39 * wakelock got some donations too over time, since I didn't do it through gplay I paid no fees at all ;) May 26 19:20:53 and they will 1 star uninstall refund for not so legitimate reasons May 26 19:21:05 etc.. so lazy sorry May 26 19:21:07 * danijoo hopes the google police does not read wakelocks thoughts May 26 19:21:15 danijoo, if you want to get really angry and confused, read some of the 9th circuit stuff re: the google wifi mapping May 26 19:21:39 danijoo, http://blog.kismetwireless.net/2013/09/wi-fi-isnt-radio.html ; i made a bunch of links to other reports on it May 26 19:21:47 dragorn, i always get angry when i read US laws. Unless I laugh about it May 26 19:22:07 laughing could be your defense mechanism ;) May 26 19:22:14 actually DE has some interesting wifi stuff too; I added a bunch of code for some research students in germany a while back May 26 19:22:15 "I'm laughing so I wouldn't cry" May 26 19:22:26 nah its the "i dont live in that country" kind of laugh May 26 19:22:33 it's not LEO-clean, but it hacked around the monitoring problems for them May 26 19:22:49 it's been a while since I've followed the EU monitoring laws so i can't really speak to them off the top of my head anymore May 26 19:23:10 dragorn, the DE law is kinda funny too May 26 19:23:17 you are actually allowed to war drive May 26 19:23:33 but having something like aircrack installed is already illegal May 26 19:23:33 dragorn, what about wifi signals that are bounced off of stuff? technically that's residual echo, does the owner still own those? May 26 19:23:42 you arent even allowed to have it May 26 19:23:51 danijoo, yeah; they didn't get google under criminal laws, they got it under regulatory stuff May 26 19:23:54 does that apply to tourists too? >.> May 26 19:24:04 wakelock, the law really isn't that nuanced May 26 19:24:10 no. laws are always only for inhabitants May 26 19:24:16 tourists are welcome to break them May 26 19:24:21 cool, Imma crack away! May 26 19:24:31 same goes for murder and stealing May 26 19:24:34 but I want to sell my app for 22 Billion dollars like whatsapp toooo! May 26 19:24:41 haha May 26 19:24:48 yeah I can totally see how I could get away with that, dragorn :p May 26 19:24:48 good luck! May 26 19:24:52 er, danijoo May 26 19:24:54 wakelock, we're getting off-topic rapidly, but, tl;dr, it's generally either fine so long as you don't transmit, OR, it's an unlawful wiretap and you're going to have a bad time doing anything. May 26 19:25:05 on court "but.. im a tourist!" May 26 19:25:07 :D May 26 19:25:32 dragorn, I see May 26 19:26:01 a friend of mine accidentally bumped a car while driving a rented car in germany May 26 19:26:03 wakelock, also frequency, etc matters - once you get into SDR there's whole ranges that are completely off limits even for passive rx. If you're doing anything where you plan to use the results commercially or publish academically, you really need to get a lawyer. If you're dicking around for fun and not transmitting, nothing will happen - if you STFU. I cringe every time I see idiots posting pager logs on twitter fo rinstance. May 26 19:26:04 all on an official visit May 26 19:26:27 anyhow, there's channels devoted to that, I'll stop polluting here May 26 19:26:28 in DE its illegal to send with more than 10 mW May 26 19:26:29 he was so scared he decided to not go there for at least 5 years, until the thing gets old by law May 26 19:27:07 lol, I still have my 200mW PCMCIA card, got it from the "black market" :D May 26 19:27:34 in the early 2000s there were not much regulation about power emission May 26 19:27:39 then green washing came May 26 19:27:41 dragorn, wow that's messed up May 26 19:27:47 in germany we say "wo kein käger, da kein richter". May 26 19:27:52 "If there's no claimant, there's no judge." ;) May 26 19:28:16 im also sending 100 mW :p May 26 19:28:28 THIEF! May 26 19:28:30 MURDERER! May 26 19:28:38 I'll report you immediately! May 26 19:28:52 nah too lazy May 26 19:29:12 i think the call to german officials would cost you more then the ticket would cost me :D May 26 19:29:29 nope, got cheap calls May 26 19:29:37 AND a corporate phone ;) May 26 19:29:43 :( May 26 19:32:40 can't tell if you're sadfacing because you're afraid I'm going to use my corporate phone, or because I have it and you don't May 26 19:32:43 :p May 26 19:34:44 I have a corporate phone. But its not that cool if you are the only employee and therefor still have to pay :p May 26 19:35:14 which corporation is that? :p May 26 19:36:03 my one man coorporation :p May 26 19:36:22 not sure if this business model actually exist where you are from May 26 19:36:30 yes it does May 26 19:36:47 so go ask your boss to deal with your phone situation then May 26 19:37:11 "hey danijoo, I don't want to pay for my phone anymore, can the company pay for it instead?" "sure thing danijoo" May 26 19:37:18 and then you shake your own hand May 26 19:37:30 its more like "danijoo can I... " - "no" May 26 19:37:41 :( May 26 19:37:56 als wow, I just realized I talked with the kismet guy! woo, I talked with a celebrity! May 26 19:38:12 (yeah I'm slow sometimes) May 26 19:38:53 heh May 26 19:39:07 removing an animated view from a gridview doesn't work :P May 26 19:39:14 I guess you need to shut it up first. May 26 19:39:43 actually, it's only when there is ONE view left. May 26 19:40:42 why should it not work May 26 19:41:01 I have no idea. It removes views every other time May 26 19:41:05 but if there's one left and it gets removed May 26 19:41:10 bam, it stays there. May 26 19:41:36 getView isn't called May 26 19:41:52 im sorry to say that but.. you have a bug in your code May 26 19:41:59 I hope so. May 26 19:42:04 Otherwise that'd be a nightmare. :p May 26 19:42:47 ok this looks cool :D http://levelmoney.github.io/kbuilders/ May 26 19:42:59 hmm, I call clearFocus on notifyDataSetChanged May 26 19:44:14 yep, that caused it May 26 19:44:15 damn. May 26 19:44:34 glad to be of service, lol May 26 19:45:20 I need it though :P May 26 19:45:32 dang g00s, yet another preprocessor? May 26 19:46:33 g00s, pretty nice use of inline functions May 26 19:47:14 but only available as jar :-! May 26 19:47:31 i'm still kinda looking at kotlin from the outside; lets see what happens at I/O from tooling perspective May 26 19:47:48 g00s, why not come inside? :) May 26 19:48:13 my builds take a long time; i'd want to use jack & jill if they make things much faster May 26 19:48:16 we have cooKies May 26 19:48:23 waiting 40 seconds for a build is intolerable May 26 19:48:59 sometimes they go very fast like 10 seonds, but a clean build is around 4 minutes, avg builds are like 30-40 sec May 26 19:49:01 valid point May 26 19:49:33 and then of course, i find out about a syntax error and then have to go fix that becuase AS is retarded May 26 19:49:45 yeah that also irratating May 26 19:49:48 irri* May 26 19:49:57 i have to "run" in AS to see some error May 26 19:50:03 huh May 26 19:50:08 which takes a incredible amount of time May 26 19:50:31 on M11? May 26 19:50:43 but i see the benefits, it forces me to make less error and focus more on coding instead of changing one line, run, checking the change, changing another line, run May 26 19:50:45 danijoo plain java May 26 19:50:55 still i would like the build time to be decent May 26 19:56:55 can anyone please tell me if #python is open? May 26 19:57:00 I can’t seem to get in... May 26 19:57:57 tricknology: looks like it's open to me, 1901 users May 26 19:58:05 maybe I got banned? May 26 19:58:11 can’t join May 26 19:58:45 Yeah, I got in. May 26 19:58:46 ¯\_(ツ)_/¯ May 26 19:59:06 womp womp May 26 19:59:08 I once asked a question in there and they were helpful and friendly. Having imagined another ##java, I was shocked. May 26 19:59:27 heh they are.. I don’t know why I would have been banned May 26 19:59:38 What does it say when you try to join? May 26 19:59:47 nothing May 26 20:00:07 I’m on colloquy.. I can;’t find the window that tells me thigns from authserv May 26 20:00:48 cooKies, that looks like samsung KIES with cooties May 26 20:01:21 coo(Kotlin)ies May 26 20:01:44 I get that May 26 20:01:50 it's just not how it looked like May 26 20:01:58 weird.. I got in.. had to identify… but I’m in here?? May 26 20:02:18 i thin #android-dev also needs that May 26 20:02:20 weird May 26 20:02:39 tricknology, no you're not May 26 20:02:44 does anybody see tricknology? I don't May 26 20:02:50 Plot twist: tricknology imagined this whole chat. May 26 20:03:23 what a twist May 26 20:03:45 tricknology, have more highlights May 26 20:03:56 thanks wakelock May 26 20:08:51 http://qz.com/411330/the-mystery-of-the-power-bank-phone-taking-over-ghana/ May 26 20:08:57 10,000mAh :D May 26 20:09:31 I see we’re back to 1996 May 26 20:09:32 i need to find that GALACE SQ May 26 20:09:42 wtc May 26 20:09:52 3 sim cards though? May 26 20:10:02 does it connect to satelites too? May 26 20:10:10 looks like it should May 26 20:10:19 cheap as hell too May 26 20:10:32 with that shitty screen, every phone could work days without 10k mAh May 26 20:11:28 resolution == potato May 26 20:11:42 lol @ ghana May 26 20:11:44 but it’s good in places like that.. sometimes power isn’t on for 24h May 26 20:11:52 maybe liek 4h and not concurrently May 26 20:14:48 "is that a phone in your pocket or are you happy to see me?" May 26 20:15:54 "Comes with Facebook and WhatsApp pre-installed" - that's definitely critical for the target area May 26 20:20:06 yo android gurus May 26 20:20:21 what means if my SQLite db.insert method returns -1? May 26 20:21:05 fail? May 26 20:21:14 you failed! May 26 20:21:47 as i thought May 26 20:21:59 but why then it does not throw something May 26 20:22:37 maybe insertOrThrow May 26 20:22:38 doesn't feel like it? May 26 20:25:27 lxknvlk: yeah, insertOrThrow, because otherwise you're supposed to check the return value. also it depends on your database, because you can have a variety of things that hide errors (e.g. "on conflict ignore" in your unique indexes / primary keys) May 26 20:26:13 ok, thanks May 26 20:42:00 Hello all, I want to add an ‘add’ icon to my app, like the round plus icon in the Clock application in Android lollipop. Any idea where I can download it? May 26 20:43:19 is there a way to clear all animations of a layout and its children? May 26 20:43:44 Is it possible to tell "mm" to only build a particular module? May 26 20:43:59 oh, nm May 26 20:48:40 Im trying to setup a bitcoin dice game, using Crypto-Dice when i try to "setup" it doesnt allow me to connect to the wallet, everything is entered properly any idea's? May 26 20:49:57 Nimyz: It's probably here: https://google.github.io/material-design-icons/ (). May 26 20:50:38 TacticalJoke, awesome thanks!! May 26 20:51:33 Heya all. I asked this question earlier today, but got no response whatsoever, so I hope it is ok if it post it here once more. Concerning RecyclerView Adapter and ContentObserver. Details Here: http://stackoverflow.com/questions/30468062/can-a-contentobserver-be-used-with-the-new-recyclerview-notifyitem-functions May 26 20:51:40 Those are the new, "material" icons. The old Holo ones are probably googlable too. May 26 20:52:15 wrong room May 26 20:52:17 lol sorry guys May 26 20:57:38 how can i add version name to my APK name? i use gradle 1.12 i think May 26 20:59:14 hi May 26 21:00:28 someone is here? May 26 21:01:00 luist: I can't answer specifically for an apk, but I did something like that for my smali project (which just builds a normal java jar, not an android apk) May 26 21:01:23 I'm trying to create a ViewPager that is behind a "picture of window".. something like the follow illustration: May 26 21:01:25 https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-xpa1/v/t1.0-9/s851x315/1506529_10153330350587964_6684046832030656643_n.jpg?oh=c2b4d551bb4e4cd04932e4a5f48537cd&oe=55F129FD&__gda__=1443313976_3a9ac3a83d78b69b5dd40a914b48592a May 26 21:01:48 I created a FrameLayout with a Pager, and after that the ImageView May 26 21:01:54 luist: e.g. https://github.com/JesusFreke/smali/blob/master/build.gradle May 26 21:02:33 it works on paper.. the thing is its not rendering as well, and skipping a lot of frames May 26 21:02:49 I/Choreographer﹕ Skipped 35 frames! The application may be doing too much work on its main thread. May 26 21:02:55 works on paper :) May 26 21:03:05 yeha haha May 26 21:03:33 g00s you have an idea how to implement that in a way it will actually work without skipping frames? May 26 21:03:53 AlmogBaku i'm not good with UI stuff, sorry May 26 21:04:04 oh thanks May 26 21:04:52 JesusFreke: sounds complex :P May 26 21:05:38 Hmmm... I am getting no responses at all to my question. If anyone could tell me if it is worded poorly, or if there is something I could change to make it easier to reply to, I am open to contructive criticism on it. May 26 21:05:41 it shouldn't be that complex May 26 21:05:46 AlmogBaku: What is taking so long? May 26 21:06:06 I guess its rendering the transparent parts every frame again May 26 21:07:13 I have know idea how to do something such this otherwise.. I guess the solution related to the `onDraw` something? May 26 21:14:12 AlmogBaku: Maybe I misunderstand your description, but I'm not seeing why something such as you describe would be so laggy. May 26 21:14:37 https://gist.github.com/AlmogBaku/bb66a5491f43c2200154 May 26 21:14:43 thats what i wrote May 26 21:15:16 for some reason, it just laggy (and prints "I/Choreographer﹕ Skipped 35 frames! The application may be doing too much work on its main thread." over and over) May 26 21:15:42 My guess is that on each frame it render the transparent part of the image May 26 21:15:52 AlmogBaku: That's just one XML file; need moar info. May 26 21:16:16 thats almost everything May 26 21:16:33 what part do you miss? May 26 21:18:34 ALL OF IT May 26 21:26:03 mannn May 26 21:26:15 If I have one item left in my gridview that is animating (it's indefinite) May 26 21:26:23 and I remove that item then notify data changed May 26 21:26:36 it sticks there. what's worse is that it somehow obliterate's the gridview as well May 26 21:26:58 as in, if you add any more items after they have all been removed May 26 21:27:12 they all spawn below the one that's animating in limbo May 26 21:28:07 cartsar: It's not worded poorly. In my case, I don't know CursorLoader. However, isn't RecyclerView.Adapter.notifyDataSetChanged a candidate here? May 26 21:28:25 Maybe that's the wrong answer, but I'm wondering why you didn't consider that. May 26 21:30:02 TacticalJoke: Thanks for responding. notifyDataSetChanged is the less optimized function - it will discard and reload all of the data. The new notifyItem___() functions that are in RecyclerView are more optimized to only make the needed changes to the ui for the changed elements May 26 21:30:51 I am not uber concerned about the optimization, but I am also trying to troubleshoot a secondary issue, and I would like to make sure my adapter is working well to narrow down the issues. May 26 21:35:47 wakelock - its a simple pager with this image above.. nothing special May 26 21:37:01 Is it skipping frames on the emulator or a device? May 26 21:37:29 hello May 26 21:37:43 "Material Design—a defining aesthetic not just for Android but for Google products in general—has left hardware makers less inclined to put their own stamp on Android, Lockheimer says" hm, interesting May 26 21:38:18 my gradle build takes 50 seconds for a relatively small project (from a clean project), build tools 22.0.1, latest AS May 26 21:38:26 is it anywhere near normal? May 26 21:39:06 what computer do you have Thorn? May 26 21:39:33 My CPU is a neural net processor May 26 21:39:36 a learning computer May 26 21:39:41 i7 mac mini, 16GB RAM May 26 21:39:46 really? May 26 21:40:02 I have an amd 4 core 1,5Ghz and does not take that much to compile May 26 21:40:20 Compilation takes for EVER on my Debian-based i5 laptop May 26 21:40:21 it May 26 21:40:26 er, it's nearly instant on my Xeon. May 26 21:40:26 it depends on the # of deps, subprojects, etc May 26 21:41:03 I have a very lightweight system and interface to improve performance, I use linux and enlightenment desktop May 26 21:41:06 90% of the time is in dexing, or predex (can't remember) May 26 21:41:34 but that just helps a little... it's all a matter of memory and processor May 26 21:41:35 g00s: same here, dex build takes most of the time May 26 21:41:37 it's a good challenge: who's the slowest? Xcode 6 or AS? May 26 21:41:52 xcode is faster for me May 26 21:42:00 when building swift May 26 21:42:30 on my mac at work it takes ages (objc) May 26 21:42:44 also the simulator is not fast as it was May 26 21:46:02 ugh touch response is confusing me so much... e.getPointerId(0) and e.getPointerId(e.getActionIndex()) inside my ACTION_DOWN event always equals 0... May 26 21:46:23 so, onTouchEvent(MotionEvent e) May 26 21:48:08 switch(e.getAction()){ case MotionEvent.ACTION_DOWN: actionDown(event) } public static void actionDown(MotionEvent e) { Log.d(TAG, "Event id: "+e.getPointerId(0)) } prints out "Event id: 0" every single time.. even with multiple fingers May 26 21:48:54 U MAD BRO? please describe properly your issue (Carefully explaining your problem is half the solution.) and use pastebin May 26 21:49:30 my issue is that getPointerId(0) is always equal to 0... and apologies for not using pastebin on that one May 26 21:50:14 ok looking at the doc May 26 21:50:15 http://developer.android.com/reference/android/view/MotionEvent.html#getPointerId(int) May 26 21:50:23 "Value may be from 0 (the first pointer that is down) to getPointerCount()-1. May 26 21:50:23 " May 26 21:51:00 oops that's the param, not what it returns, sorry my bad May 26 21:51:13 even when I have 5 pointers down, the function getPointerId always returns 0... even when called from different functions, like ACTION_MOVE May 26 21:53:13 ok Mad3ngineer, i've not idea what you're doing above, but i'm gonna paste something which allows me to handle multiple pointers May 26 21:53:15 I was told that getPointerId is persistant between motionevents for pointers, whereas findPointerIndex is not persistant May 26 21:53:36 ok, thanks. and i may have that whole understanding backwards May 26 21:53:45 Mad3ngineer, http://pastebin.com/r0xygkjX May 26 21:53:53 thank you May 26 21:53:55 regardless of what you've been told, the docs should be pretty clear on that May 26 21:53:58 this is in ontouchevent May 26 21:54:10 err onTouch: public boolean onTouch(View v, MotionEvent event) May 26 21:54:10 I also did a multitouch handler, all by just looking at the docs May 26 21:54:41 i have one that should work in theory, except that I am doing something stupid with handling the events May 26 21:54:42 so i've got the coords of each pointer in a loop May 26 21:54:47 and I deal with that May 26 21:55:15 Mad3ngineer, it is wrong to use 0 as an argument, you should use .getActionIndex() instead May 26 21:55:27 ah, that must be my problem May 26 21:55:39 I don't know who told you to use 0 May 26 21:55:43 I assumed that 0 would give me the active object May 26 21:55:47 active pointer* May 26 21:55:49 absolutely not May 26 21:55:56 by using 0, you force to only take in account the first pointer May 26 21:56:09 s/the first pointer/the one at index 0/ May 26 21:56:14 needn't even be the first one ;) May 26 21:56:31 wow... thats a fail. thanks guys May 26 21:57:00 thx wakelock, didn't know it was not orderered lol May 26 21:57:03 ordered* May 26 21:57:12 ah it is ! May 26 21:57:12 Value may be from 0 (the first pointer that is down) to getPointerCount()-1. May 26 21:57:16 and i pasted it May 26 21:57:21 i think i'm very tired, see you guys lol May 26 21:57:30 s/thx// :p May 26 21:57:36 yes but the one at 0 needn't be the first one May 26 21:57:51 cya May 26 21:58:16 I didn't think 0 would be the first one, I thought it would be the pointer the event is referring to May 26 21:58:45 there is absolutely no guarantee on exactly how the OS will decide to arrange the pointers, therefore indexes/order is completely unreliable, but each pointer will be given its ID which will be the same from DOWN to UP, therefore that is reliable May 26 21:58:57 Mad3ngineer, the event is referring to ALL of them May 26 21:59:13 if you're given 10 pointers, the event refers to all of them May 26 21:59:39 meaning I can access any of the 10 pointers' info from the event May 26 21:59:44 if you're only ever interested in one, then record its ID on DOWN and search for it on MOVE and UP May 26 21:59:53 not quite May 26 22:00:10 if the event contains 10 pointers, it means something actively happened to 10 pointers May 26 22:00:28 right, I have a function in MOVE that checks if e.getPointerId(e.getActionIndex()) == pointerid and if so, runs the code on it May 26 22:00:41 sounds about right May 26 22:01:11 hmm... new info to me. I assumed that if 10 pointers were moved near simultaneously, it would call 10 move events; one for each pointer May 26 22:01:15 might seem pretty complex at first but there is definitely logic to it May 26 22:01:29 it definately has me confused May 26 22:01:40 Mad3ngineer, that would be ridiculously wasteful and inefficient May 26 22:01:59 fair point May 26 22:02:03 Mad3ngineer: what's helped me in the past is to do a verbose log of all the pointer events May 26 22:02:20 to get an idea of the events that's coming in, and the data available in each May 26 22:02:29 same here ;) May 26 22:02:43 private void dump(MotionEvent e) { } May 26 22:02:46 I have been trying to log stuff, but so far from all the getPointerId, all i have been seeing is 0... May 26 22:02:48 yeah May 26 22:03:25 and then of course forget to remove it before prodction :p May 26 22:03:29 Mad3ngineer: you should definitely be getting a different pointer id for each "finger" May 26 22:03:35 hahah :) May 26 22:03:49 sounds like me May 26 22:04:00 but yeah, i am trying to get this thing working May 26 22:04:08 yell at it May 26 22:04:10 might help May 26 22:04:18 blow on the edges? :D May 26 22:04:20 maybe beating my tower... and my phone May 26 22:04:31 one with the other May 26 22:04:34 lol May 26 22:04:35 punching the monitor, hammer through hard drive May 26 22:04:43 yada yada yada, you guys know the drill May 26 22:04:49 screwdriver through phone May 26 22:04:54 that too May 26 22:05:28 drop my non-waterproof phone in coffee perhaps? maybe all it needs is a little caffine May 26 22:05:45 if your phone is in fact the emulator, by dealing with the monitor you get two birds with one stone May 26 22:05:55 indeed May 26 22:06:08 you should punch twice anyway though May 26 22:06:09 just in case May 26 22:06:17 yeah, and of course hammer the hard drive May 26 22:06:19 just for good measure May 26 22:06:28 probably burn the house down too May 26 22:06:31 you never know May 26 22:06:41 good idea... probably the storage shed too May 26 22:06:56 god maybe i should just take out the whole block May 26 22:07:02 cant be too careful May 26 22:07:12 sounds sensible May 26 22:08:08 JesusFreke, it's called bleeding edge, not blowing edge :p May 26 22:08:10 horse's time of death: 15:07 PDT May 26 22:08:41 wakelock: it always worked for NES cartridges May 26 22:09:32 yeah, I remember repeatedly plugging NES cartridges. no luck. blow once -> not only does it work, you now have infinite lives and better graphics. May 26 22:10:11 whenever i did that, my NES just blew up May 26 22:10:38 after 5 minutes of the most godly gaming ever, that is May 26 22:10:48 Mad3ngineer: I don't suppose you exhale pure hydrogen, perhaps? May 26 22:10:48 its silicon chips couldn't handle it May 26 22:10:56 only on mondays May 26 22:11:11 ah. understandable May 26 22:11:22 i knew i should have just asked jimmy to do it for me May 26 22:13:28 anyone ever use assertj-android as `testCompile 'com.squareup.assertj:assertj-android:1.0.0'` inside build.gradle? I get a "cannot resolve symbol 'android'" when leaving `import org.assertj.android.api.Assertions.assertThat;` in my code May 26 22:14:11 I am starting to forget why I wanted to write my own gesture detecting code versus using GestureDetectionCompat May 26 22:14:29 *getting frustrated* May 26 22:15:22 JesusFreke, lol, and for CDs too sometimes May 26 22:16:27 Mad3ngineer, because you *wanted* to fiddle with motion events? May 26 22:16:37 maybe May 26 22:16:40 shoerain: don't suppose it should be `androidTestCompile` ? I'm not sure what the difference is, but it seems possible that `testCompile` is for unit, `androidTestCompile` for e.g. integration May 26 22:17:08 shoerain: and the square docs suggest androidTestCompile, so I'd try that, see if it magically fixes things May 26 22:18:18 apparently with gradle it's a lot to do with magic May 26 22:18:43 with gradle, it might be religion. the documentation is roughly bible-sized, anyway May 26 22:19:17 groxx, the difference is that androidTestCompile is for android tests (on device) and testCompile is for junit tests (in the jvm) May 26 22:19:52 danijoo: yeah, sounds right. so assertj-android should be androidTestCompile, yea? May 26 22:20:01 since it's assertions on Android components May 26 22:20:20 i dont know. never used it May 26 22:20:30 and i didnt really follow the discussion May 26 22:21:33 "and I don't know wbat I'm talking about" May 26 22:21:40 :p May 26 22:22:21 good night ;) May 26 22:22:51 what's with this "whateverj" naming? ok I get it, it's all about java, quit shoving it into my face May 26 22:23:10 first it was the "jwhatever" naming, now this May 26 22:23:20 jaspectj May 26 22:23:29 what's next? jWhatever? WHEN WILL THE MADNESS STOP!? May 26 22:23:35 yeah I was about to say May 26 22:23:45 I feel like that about Kotlin. Everything is [something]K, [something with K], or K[something]. May 26 22:23:51 hm? May 26 22:23:54 Javak May 26 22:24:12 no, wait. J/Kava :D May 26 22:24:16 /kick danijooj May 26 22:24:19 TacticalJoke, like anko? :p May 26 22:24:27 like funKTionale May 26 22:24:41 Klass May 26 22:24:42 Yes. lol May 26 22:24:51 Kradle ! May 26 22:25:03 Kats in the! May 26 22:25:04 Kandroid? May 26 22:25:05 * JesusFreke rocks the Kradle May 26 22:25:18 I do prefer 'klass' over 'clazz' :) no triple-pinky-finger combo. May 26 22:25:20 anKroid May 26 22:25:43 danijooj, good niKht ;) May 26 22:25:54 groxx: you should use dvorak! it's only a double-pinky, on the other hand :p May 26 22:25:57 gn waKelokckJ May 26 22:26:01 or rather, 3 on alternating hands May 26 22:26:06 In Kotlin you could say `class`. May 26 22:26:11 JesusFreke: I tried for a bit! then I switched computers, and lost my dvorak layout. May 26 22:26:17 then laziness set in May 26 22:26:38 now I just remember it fondly, as the good-old-days of confusing people who couldn't touch-type. May 26 22:26:48 you should try procrastinating more. put that laziness off until later! ;) May 26 22:26:49 also it doesn't map to vim very well May 26 22:26:57 you remember it while fondling? dude, TMI May 26 22:27:01 This is a valid Kotlin declaration: class `class` May 26 22:27:09 wat. backticks? May 26 22:27:10 how can i find this property: Error:(25, 0) Could not find property 'releaseSigningConfig' on SigningConfig container. May 26 22:27:12 code with voice recognition May 26 22:27:14 Yeah, for escaping. May 26 22:27:17 im using gradle May 26 22:27:21 ew backticks May 26 22:27:44 kotlin must've been concieved by the mysql crowd May 26 22:27:44 `wakelock` May 26 22:27:58 im using a qwerty setting on a qwertz keyboard. I dont even know how to make those backticks on that little devil May 26 22:28:07 g00s: stop I think you're back-ticking him off. May 26 22:28:11 wakelock: fatal error: not found May 26 22:28:12 s/stop// May 26 22:28:13 heh May 26 22:28:25 why does gradle download all dependencies all over again when I run ./gradlew for the first time? does AS use some other gradle installation? May 26 22:28:38 Thorn: Yeah. May 26 22:28:39 Thorn yeah ... another cache May 26 22:28:45 Thorn, because you didnt enable the offline mode :) May 26 22:28:49 not sure where it is though :P May 26 22:28:56 g00s, I'm fairly sure you don't actually want to run something called 'wakelock' May 26 22:29:09 oh yeah. it has its own cache as well May 26 22:29:16 wakelock it starts the gingerbread emulator May 26 22:29:56 are both caches in ~/.gradle? I can't seem to see any other place May 26 22:29:56 its either in the androidstudio programm folder or in the projects folder May 26 22:30:05 g00s, yeah I know for you this is as good as gingerbread: cp /dev/zero /dev/null May 26 22:30:34 groxx: FWIW, this is it: http://kotlinlang.org/docs/reference/java-interop.html#escaping-for-java-identifiers-that-are-keywords-in-kotlin May 26 22:31:44 TacticalJoke: is "blah.is(...)" not unambiguously different than "blah is X" ? or is there some other aspect of the language that makes that vague? May 26 22:32:03 groxx, thats the point May 26 22:32:24 in java "is" is not a keyword. so a method could be called is(....) May 26 22:32:39 you woudnt be able to call that in kotlin because its a keyword like class there May 26 22:32:42 so u must use the ticks May 26 22:32:55 yeah. but even though "is" is a keyword in Kotlin, ".is" seems like it unambiguously defines it as a method call, not a keyword-use. May 26 22:33:07 seems unnecessarily complicated May 26 22:33:18 wakelock, its the same in java May 26 22:33:33 you cant name a method class(..) May 26 22:33:39 or abstract(...) May 26 22:34:09 kotlin has other keywords than java. this is just a little "hack" to make them interop May 26 22:34:09 g00s, truth be told, object.switch() would make it unambiguously a method call, if it weren't for the pesky switch keyword... May 26 22:34:52 yeah. so you couldn't use it without scoping it to `this.switch(val)`, but that's fine May 26 22:35:04 um May 26 22:35:16 you can't name a method 'switch' ever May 26 22:35:35 you can in kotlin :pp May 26 22:35:41 I'm talking about java here May 26 22:35:45 im not May 26 22:35:48 If I try to compile `"test".is(String)` I get "Expecting an element" with "is" red-squiggly-underlined. May 26 22:35:50 I know. I mean from a language-parsing standpoint, that seems like an arbitrary decision when there are unambiguous ways to use it May 26 22:36:00 It's a good question, though. May 26 22:36:14 groxx: it makes the lexical specification messy May 26 22:36:28 The thing is, if that were allowed, it should probably also let us define methods with such names. May 26 22:36:33 A method called "is". May 26 22:36:39 you have tokens that can be one thing, or another thing, depending on context May 26 22:36:41 And then it gets messy, yeah. May 26 22:37:05 JesusFreke: kinda like "public"? May 26 22:37:07 g00s, not really. think about it, how would an implementation look like? maybe something like... public void switch() May 26 22:37:10 keywords and identifiers are usually identified lexically. it's possible to do what you're talking about, but it's not the way it's usually done May 26 22:37:20 wakelock wut May 26 22:37:27 er May 26 22:37:35 I had to do a bit of that in the smali language. It works, but it's a bit of a pain :) May 26 22:37:37 groxx, not g00s May 26 22:37:43 or "final". final means different things in different scopes. May 26 22:37:56 The nice thing about Kotlin is that it's neatly designed from top to bottom. :) May 26 22:38:03 Everything is clean and simple May 26 22:38:12 backticks seem to refute that argument :P May 26 22:38:20 What's wrong with them? May 26 22:38:23 it always means something 'final' though :p May 26 22:38:24 TacticalJoke, this compiles: http://pastebin.com/gnw5mt3z May 26 22:38:31 groxx: lexically, final is always a keyword May 26 22:38:36 Yeah. May 26 22:38:49 JesusFreke: ah, I see the distinction now May 26 22:38:59 groxx: Those backticks are probably used only for cases where you're interop-ing with Java code that happens to use a Kotlin keyword as a visible identifier. May 26 22:39:00 not in strings though :) May 26 22:39:08 but strings complicate things anyway May 26 22:39:35 groxx: strings themselves are a lexical token. the inside of a string is irrelevant, other than the things like checking for an escaped ending quote, etc. May 26 22:39:36 TacticalJoke, no you can use them everywhere in kotlin to make functions have the name of keywords May 26 22:39:38 TacticalJoke: yeah, it makes sense as a "we need to have this because reasons" May 26 22:39:42 Right. Just saying in practice. May 26 22:39:50 true May 26 22:40:05 if i would only use kotlin, id just rename the method May 26 22:40:07 groxx, I suggest you implement your own language parser, a lot will be clearer afterwards ;) May 26 22:40:11 instead of using ticks May 26 22:40:18 Yeah. May 26 22:40:38 I so badly wanna switch to Kotlin. Sigh. May 26 22:40:41 I just can't make the final jump. May 26 22:40:46 (For my current project, that is.) May 26 22:40:58 My code is pretty neat, but there are a few cases where it'd be significantly shorter in Kotlin. May 26 22:41:10 i just started my second kotlin app May 26 22:41:13 groxx: https://github.com/JesusFreke/smali/blob/master/smali/src/main/antlr/smaliParser.g#L548 May 26 22:41:19 meh... kotlin, yet another buzzword/buzztech that will be forgotten after a while May 26 22:41:26 you get crap like that, when the language allows tokens to be used in multiple ways :) May 26 22:41:26 I remember when everybody talked about cordova May 26 22:41:30 nobody does anymore May 26 22:41:36 That's not even remotely comparable, wakelock. :p May 26 22:41:55 just watch May 26 22:42:03 I give it maybe 3-4 months May 26 22:42:04 don't believe me just watch May 26 22:42:11 wakelock: Kotlin has been around for 4 years May 26 22:42:20 If Kotlin doesn't get big, I will eat my hat! May 26 22:42:31 * danijooj wonders if wakelock is ravilov May 26 22:42:33 (Plot twist: I don't own a hat.) May 26 22:42:42 hi all May 26 22:42:47 I root for it but it takes more than a language being good for it to succeed May 26 22:42:50 TacticalJoke: does that mean you'll fast, instead? May 26 22:42:52 JakeWharton, oh? didn't know that. I only heard of it recently. my bad. but still May 26 22:43:00 wifi direct requires the acceptance of the requests May 26 22:43:04 if Kotlin doesn’t get big, it will hopefully be because Google introduced something else for Android development that’s similar May 26 22:43:06 I will eat [error: not found]. May 26 22:43:20 bluethoot the same May 26 22:43:23 JesusFreke: given the amount of time spent creating the language spec vs writing things in the language, that seems insignificantly trivial if it results in a more useful language. May 26 22:43:24 the last thing we need is google coming up with their own language for android May 26 22:43:28 that would be horrible May 26 22:43:35 Yeah. May 26 22:43:35 exists any that does not require? May 26 22:43:48 The way I see it is that Kotlin is Java without the "meh". May 26 22:43:49 groxx: I'm not disagreeing. Just explaining the likely reason why :) May 26 22:43:59 argh. Does anyone else have problems with ADB? Constantly disconnecting then not able to find my device. I have to do some combination of song and dance (kill-server, unplug, replug, etc) to get it to connect again May 26 22:44:07 it doesn’t have to be a language Google creates. It could be an existing language that they gave official support to May 26 22:44:09 yeah, complexity-- drives a lot of things :) May 26 22:44:21 MikeWallaceDev, check if there are other versions of adb interferring May 26 22:44:22 groxx: although, it does have other costs. anything that makes it harder to parse the language will also make it harder to write tools that work with the language May 26 22:44:28 It's easy to learn Kotlin, too. It's pretty simple. May 26 22:44:36 s73v3r, like kotlin? :p May 26 22:44:41 JakeWharton, to my experience it only recently entered the android world. it might have existed for years and might still exist for years to come but I predict it will leave the android world soon enough May 26 22:44:57 danijooj, how would I go about that? As far as I am concerned, I only have one version of ADB on my box May 26 22:44:58 well forgive me for not trusting your experience May 26 22:45:00 well, this is under the assumption that they don’t choose Kotlin, for whatever reason May 26 22:45:08 wakelock: Have you learned Kotlin? May 26 22:45:16 nope May 26 22:45:18 I'm actually cautiously optimistic about kotlin May 26 22:45:23 MikeWallaceDev, for exmaple some genymotion versions install their own ADB.exe. or HTC sync May 26 22:45:26 Same here, JesusFreke. May 26 22:45:35 I hate most languages, but Kotlin is actually decent. May 26 22:45:50 I already have 1 kotlin app in production. They better dont let it down :pp May 26 22:45:55 yeah, I'm not one to jump on most language bandwagons May 26 22:46:02 The Android Emulator has gone blank, any way to wake it up? May 26 22:46:05 first-class nulls seem <3 enough to make me want to use it May 26 22:46:29 szronik, didn't you already ask this? May 26 22:46:34 When I first heard of Kotlin, I assumed it'd be yet another pointless programming language. But I was pleasantly surprised when I started learning it. May 26 22:46:37 killall 'emulator-x86'? May 26 22:46:40 wakelock: No. May 26 22:46:40 it sounds basically like "java, but done right." May 26 22:46:43 It really does justify its existence. May 26 22:46:45 szronik, turn it off and on May 26 22:46:56 again!? May 26 22:47:08 Yeah, Java without all the repetition and bloat. May 26 22:47:09 anyway, kotlin... eh, I guess we'll see. java itself wasn't immediately planetary popular either. May 26 22:47:13 It takes like 4 minutes to boot! May 26 22:47:18 so I guess there's a chance May 26 22:47:29 szronik, dont dev on a toaster then May 26 22:47:45 danijooj: Toasters don't have CPUs. May 26 22:47:54 danijooj, I did find another adb in android_source ... renamed the dir, let's see if that helps May 26 22:48:00 im pretty sure there are smart-toasters with cpu :p May 26 22:48:12 they can post on twitter and instagram May 26 22:48:16 TacticalJoke, repetition? lol, look at smali :p May 26 22:48:23 there are _definitely_ toasters with CPUs May 26 22:48:24 I'd bet taht cheap toasters have cpus.... May 26 22:48:28 danijooj: Post what? Pictures of burnt toast? May 26 22:48:34 yeah, smali's not even in the same category though :) May 26 22:48:40 it's not really meant for actual development May 26 22:48:44 Yeah with a USB port and HDMI output May 26 22:48:56 just plug in a keyboard and start develping in the Toastie IDE May 26 22:48:57 if nothing else, http://newsfeed.time.com/2013/07/30/tweeting-toaster-has-more-followers-than-you/ May 26 22:49:07 http://www.allaboutsymbian.com/images/news/april_1st.jpg May 26 22:49:11 JesusFreke, yeah yeah I know, however I've had my fair share of hacking precompiled apks so I got to know it quite intimately ;) May 26 22:49:22 and had the pleasure of enjoying its verbosity :D May 26 22:49:28 heheh May 26 22:49:34 you're welcome! :p May 26 22:49:40 :p May 26 22:50:00 danijooj: Anyway, this makes no sense. I can't restart the emulator every single time I want to run an app, makes no sense. May 26 22:50:13 szronik, use genymotion May 26 22:50:16 the emulator sucks May 26 22:50:30 groxx: well had a similar problem with androidTestCompile, but I was mainly looking for testCompile as i'm pairing assertj-android with robolectric May 26 22:50:33 Yeah I read about genymotion on a blog. (Going to download it now0 May 26 22:50:51 apparently no dice with the dir renaming... May 26 22:50:53 soo.. kotlin discussion is over? May 26 22:50:57 i want to sleep :( May 26 22:51:04 shoerain: ah. dunno then, sorry - never tried robolectric :| one of these days. May 26 22:51:11 sleep is for woosies May 26 22:51:17 or the uncaffeinated May 26 22:51:28 I slept 9 hours last night May 26 22:51:28 both of which must be culled, for the good of the horde May 26 22:51:33 danijooj, Kappy dreams ;) May 26 22:51:38 MikeWallaceDev, check the usual suspects. Broken USB cable, USB 3.0 port ... May 26 22:51:44 Kotlin is a developer buzzword. It won't be big until it's an exec buzzword. May 26 22:51:58 sleeping is a conspiracy from ppl selling you beds and pillows May 26 22:52:02 Good Knight :) May 26 22:52:06 gn May 26 22:52:10 danijooj, nope, everything else finds it... Only ADB playing hard to get May 26 22:52:22 see ya danijooj May 26 22:52:31 thanks :) May 26 22:54:45 meh, wanted to renick to Kj, but someone already took it :( May 26 22:54:53 bet they'll become an executive somewhere May 26 22:57:58 what is this? danijoo goes away, everything goes dead? May 26 22:58:00 psh May 26 23:01:26 we live for danijoo_KSleep May 26 23:02:31 Anybody feel like critiquing an upcoming open source lib? May 26 23:02:35 http://levelmoney.github.io/velodrome May 26 23:07:33 the worst part about onActivityResult is the timing May 26 23:08:16 never seems to be at a convenient time in the overall lifecycle May 26 23:11:12 asarazan: "Splines reticulated"++ May 26 23:12:31 s/splines/spines/ :p May 26 23:12:46 definitely splines May 26 23:13:19 wakelock: http://sims.wikia.com/wiki/Reticulating_splines May 26 23:13:54 I see May 26 23:14:00 never was much of a gamer May 26 23:14:25 g00s what do you mean? Talking about how there are some points where FragmentTransactions will crash the world? May 26 23:15:03 FragmentTransactions are _definitely_ one of the horsemen of the apocalypse May 26 23:15:08 hah May 26 23:15:59 Guys, what happens to an activity when I click home button and then go back to it? May 26 23:16:17 it explodes into fireworks May 26 23:16:21 Follow-up question: What would you guys think if the handler methods could have params other than intent, with an key annotation to pull that value out of the intent and pass it? May 26 23:16:40 asarazan: seems like a logical extension of the idea May 26 23:17:20 JesusFreke yeah I'm liking it more and more, I'm just trying to think through null safety, etc May 26 23:17:32 Trying to do that cautious developer thing May 26 23:18:07 Also then I need to write all these new tests, and who has time for that! May 26 23:18:28 null safety? do it like kotlin's ?. does ;) May 26 23:18:35 yeah back to kotlin again May 26 23:19:02 god I love kotlin May 26 23:19:11 another fanboy, lol May 26 23:19:14 my only complaint about the idea in general (the library as a whole, I mean) is that you're using reflection. Shouldn't it be possible to inject the method calls directly, in the annotation processor? May 26 23:19:31 idea: would it be possible to join HandleResult and HandleResults into a single annotation? May 26 23:19:38 JesusFreke yeah definitely, it was mostly as a v1 measure just to get the library out May 26 23:19:44 ah, gotcha May 26 23:20:08 and I've never really bought into the need to make all annotation stuff compile-time, since so little of it actually occurs in a performance-critical section May 26 23:20:21 also, what happens if you have an onActivityResult defined already? :) May 26 23:20:43 wakelock yeah that's how it was originally-- it was actually a kotlin issue that caused me to separate them May 26 23:20:43 throws an error? May 26 23:20:49 (which is fine, just curious) May 26 23:20:54 ha, kotlin May 26 23:21:03 Is there a way to change the tint of a widget (Button, EditText, CheckBox, etc) dynamically? I know appcompat does this but not for 21+ May 26 23:21:08 lol legit can't tell how you feel about kotlin May 26 23:21:15 JesusFreke not sure what you mean May 26 23:21:43 speaking of kotlin, http://levelmoney.github.io/kbuilders if anybody's interested :-D May 26 23:21:51 asarazan, it's nothing but a buzzword/buzztech to me currently, I'm waiting to see if it'll actually catch on May 26 23:21:55 asarazan: oh, nevermind May 26 23:22:22 I was thinking you were generating the onActivityResult method from scratch. I didn't notice that you just call into Velodrome within onActivityResult May 26 23:22:23 wakelock ah gotcha. We've actually written a significant amount of Level Money in Kotlin and it's been a huge plus May 26 23:22:31 asarazan, actually g00s linked that earlier :p May 26 23:22:41 oh excellent :-D May 26 23:22:53 now I'm thinking he's your agent :p May 26 23:23:14 Eh I plastered it all over reddit and HN May 26 23:23:23 sank to the bottom of HN predictably, but reddit was okay May 26 23:23:45 yea okay... May 26 23:23:52 no idea what's this HN, lol May 26 23:23:53 Sad I missed the discussion, every time I open my laptop I forget to reconnect to IRC May 26 23:24:26 wakelock a fossil of a time past May 26 23:24:32 I see May 26 23:24:41 news.ycombinator.com May 26 23:24:59 it’s like reddit, except the audience is startup people May 26 23:25:04 asarazan: you need a bouncer ;) May 26 23:25:10 lol May 26 23:25:18 s73v3r and they all hate each other May 26 23:25:23 oh yes May 26 23:25:31 I never understood this ycombinator business honestly, who/what is this, what is it all about, what do they do.... May 26 23:25:42 why isn’t android respecting the heights i specify for my list items? May 26 23:25:47 have no startup aspirations, must be why May 26 23:26:06 because it has no respect for your puny code! May 26 23:26:08 yeah wakelock they were a sacred cow for a long time out here-- I think they've lost most relevance the past year or two May 26 23:26:32 s73v3r where are you specifying it? May 26 23:26:38 everywhere May 26 23:26:56 lol May 26 23:27:03 I’ve specified it on my cell layout’s root FrameView, I’ve specified it on the inner card view, and on the imageview May 26 23:27:26 I’ve also tried specifying it on the imageview alone, and setting everything else to “wrap_content" May 26 23:27:58 hmm maybe an inflation issue May 26 23:28:03 what's your inflate call look like May 26 23:28:04 now override onmeasure :p May 26 23:28:10 wakelock oh god May 26 23:28:47 i’m passing parent into the inflate call May 26 23:28:50 asarazan, not so official, noble sire will do :p May 26 23:29:22 convertView = mInflater.inflate(layout, parent, false); May 26 23:30:13 s73v3r welp that's the best guess I had but I don't see anything wrong there May 26 23:30:17 Do I need an kernel image of my phone to develop applications for it in Java? May 26 23:30:35 Zephyr1138: No. Just Android Studio May 26 23:30:52 Zephyr1138: why do you think you need a "kernel image"? May 26 23:31:39 frodocol buffers xD very nice May 26 23:32:01 ^_^ May 26 23:33:25 waiting for protokolbuffer May 26 23:33:48 ooh that's solid May 26 23:34:14 I was talking to somebody the other day, about the pros and cons of building a kotlin proto library that represents them all as data classes May 26 23:34:30 = > {} May 26 23:35:58 so I've noticed that having 2 GCM push receivers is not even remotely trivial May 26 23:36:00 I'm not sure if I need one. I've installed the Android SDK Manager. I'm trying to figure out who to create a target platform for my Samsung Galaxy S5 phone. May 26 23:36:24 ^who^how May 26 23:36:48 Zephyr1138: you can't create an emulator that matches it exactly. All you can do is create one with the same screen size and version of android. May 26 23:37:13 Zephyr1138: but if you actually have a phone, it's probably better just to use the phone, rather than trying to use the emulator May 26 23:37:29 you can always use your actual device for testing May 26 23:37:39 the emulator would be useful to test your app out on other screen sizes, etc. that you don't actually have a physical device for May 26 23:38:03 ah... ok. I can get that from specs online and from my actual phone. May 26 23:38:13 but yeah it would be ridiculous if you needed the kernel iage to make apps, lol May 26 23:38:25 what about other hardware specs like bluetooth? May 26 23:38:35 emulator doesn't support bluetooth, afaik May 26 23:38:59 lol, google said they were working on BT in emu about 3-4 years ago ... still waiting May 26 23:39:55 Zephyr1138, instead of overthinking and overengineering it like that, how about you sit down and make an actual app? just a simple one, to get a feel for it. a lot of it will just fall into place then. May 26 23:41:09 RE bluetooth in AVD: there is a ticket at https://code.google.com/p/android/issues/detail?id=56608 May 26 23:41:41 a ticket as old as the hills........ May 26 23:41:44 wakelock, true... I'm new to this. I just discovered the need of the AndroidManifest.xml file. May 26 23:41:53 treelzebub yeah, already have that starred May 26 23:42:55 Why isn't it obsolete? May 26 23:42:59 treelzebub, thanks for the link. I was also going to use http://developer.android.com/guide/topics/connectivity/bluetooth.html as a reference as well. May 26 23:44:00 Zephyr1138: that's the documentation for implementing Bluetooth functionality in an Android app. The link I provided is a feature request for Bluetooth capabilities in Android's stock emulator :) May 26 23:46:16 so guys when the home button is clicked May 26 23:46:28 A new intent is called for the home screen May 26 23:46:37 But what about when the app is re-opened after going home May 26 23:46:47 is that onResume() May 26 23:46:54 drose379 most of the time, probably May 26 23:46:59 cool... thanks for tip all. May 26 23:47:03 it's possible that your app will have been cleaned up for memory in the background May 26 23:47:12 but if you go right back to it immediately, it's probably an onResume May 26 23:47:18 onResume ok May 26 23:47:24 Thanks, ill work with that May 26 23:49:27 asarazan it looks like onResume is being called when the activity first opens up too? May 26 23:50:11 It's always called. May 26 23:50:15 When the activity is shown. May 26 23:50:37 Weird May 26 23:50:40 s/It's/onResume May 26 23:50:45 so onCreate and onResume is called May 26 23:51:09 when the activity first opens May 26 23:51:26 drose379: it might be helpful to pull up a diagram of the Android lifecycle at this time. May 26 23:51:36 Ok May 26 23:52:38 drose379: What are you needing this for? May 26 23:52:48 Creating custom camera app May 26 23:52:55 Not app, activity May 26 23:52:56 Sorry May 26 23:53:08 But I need to make sure the camera opens back up after user hits home and comes back May 26 23:53:11 There's a restaurant is China that must really wonder why this guy in Canada is constantly searching for them with the Google Places API.... May 26 23:54:44 I may want to have you guys check out the code in a few, if anyone is available May 26 23:58:06 Guys is this diagram correct: http://developer.xamarin.com/guides/android/application_fundamentals/activity_lifecycle/Images/image2.png May 26 23:58:46 http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle May 26 23:59:19 MikeWallaceDev: Is that the restrauant that sells penis soup from different animals? May 26 23:59:25 Thanks TJ May 26 23:59:36 drose379 lol. this is better https://raw.githubusercontent.com/xxv/android-lifecycle/master/complete_android_fragment_lifecycle.png May 26 23:59:37 you've heard of it phix ! May 26 23:59:42 MikeWallaceDev: I have May 26 23:59:45 Never been though May 26 23:59:57 beautiful g00s :) May 27 00:00:02 Tiger penis soup is quite expensive May 27 00:00:02 anyone have experience with having 2 push receivers in an android app? May 27 00:01:19 basically we're trying to migrate push services without losing anyone in the process May 27 00:02:09 and yes, that's fucking stupid May 27 00:02:38 alas no. I assume you don't mean two GCM sender-keys, but actually switching to a different push-provider thing? May 27 00:03:26 groxx: switching away from Urban Airship May 27 00:03:39 but if we just switched and removed the old SDK, pushes would stop appearing upon upgrade May 27 00:03:49 I can't think of any reason having two push systems would be a problem at the app level, the big problem is on your backend knowing which to use May 27 00:03:51 because the new service isn't initialized, right? May 27 00:04:04 (or just send to both) May 27 00:04:04 matt_j: I have never used push services, what is that all about? May 27 00:04:22 you'd have to duplicate your rx intent handlers, and then you'd just support both gcm and ua May 27 00:04:29 that's what I have May 27 00:04:33 but it doesn't work :( May 27 00:04:39 turns out it isn't that simple May 27 00:04:52 since UA uses GCM under the covers anyhow you won't be doing anything message-wise which won't be compatible across them May 27 00:05:14 Yeah May 27 00:05:25 but when a message comes in, how does Android know which one actually gets it? May 27 00:05:30 they're both using GCM May 27 00:05:32 matt_j: afaik you just switch / add sender IDs http://developer.android.com/google/gcm/client.html May 27 00:06:39 I have a BaseActivity that extends Activity with a method in it - goHome(View view) , however when a user clicks a button in an Activity that extends it, goHome is not found ? May 27 00:07:02 oh, push services looks like apacheMQ / IBM WebsphereMQ / Java JMS May 27 00:07:25 charlie_sanders whats logcat saying? May 27 00:07:52 goHome not found, but I just pasted the method into the Sub controller and its still not found so something else is messed up sorry May 27 00:07:54 matt_j: I think what we did was to just drop their code + add ours in a single release, register with our server to actually do the pushes, and just send to UA vs GCM depending on the recipient (since we stored enough info in our database anyway) May 27 00:07:56 groxx: yeah I dunno May 27 00:08:26 I'm supposed to switch from UA to Localytics May 27 00:08:40 both SDKs can't handle their own pushes together May 27 00:08:45 but if I take one out the other works May 27 00:09:07 I forget what's in the gcm intent extras. does it contain the sender-id? May 27 00:09:21 uhh May 27 00:09:34 you could maybe give a different sender key to Localytics than UA, and then tell where the message came from with that value May 27 00:10:41 so do I need to roll my own GCM receiver to route the messages? May 27 00:10:45 drose379, nevermind it works fine :) May 27 00:10:46 that's what it's looking like May 27 00:10:55 Cool May 27 00:11:02 matt_j: that's what I'm thinking, at least. if you want to keep both libs at once. May 27 00:11:07 shit May 27 00:11:19 eh, the receiver is just a normal broadcast receiver, pretty simple May 27 00:11:36 I tried just putting one in with the same intent filter as UA/Localytics but nothing happened :( :( May 27 00:11:55 I think I need to create a service as well...? May 27 00:12:05 it's gonna break everything, I just know it May 27 00:13:35 and keep in mind this has to work on an app upgrade without running the app :( :( May 27 00:13:35 matt_j: depends on what you have to do with the messages. the WakefulIntentService route is pretty simple, but since you'll be handing it off to either lib based on in-memory information, there's no need to do anything outside the receiver. May 27 00:13:53 if they upgrade from the store, it still needs to work without actually running the app May 27 00:13:54 ah. no on-upgrade receiver, I take it? May 27 00:14:01 well, UA has one May 27 00:14:06 fuck May 27 00:14:19 but that doesn't really help me May 27 00:14:44 I dunno, this feels like a massive minefield; like I probably won't get it right May 27 00:14:52 afaik UA sends normal GCM messages. you could just handle them yourself. new devices obviously won't _register_ with UA, so they'll eventually die off, but they should still receive the messages. May 27 00:15:22 time to roll out that alpha release feature, maybe :) May 27 00:17:14 heh, this is fucked May 27 00:17:31 this looks generally non-trivial to pull off a stunt like this May 27 00:18:20 I am having trouble setting a textview bg color May 27 00:18:23 I hate those StackOverflow answers that are just lame metaphors that don't come close to answering the question. May 27 00:18:30 And they get +200 and "Zomg, best answer ever". Really? May 27 00:18:42 It's not improv -- it's technical questions! :D May 27 00:19:12 my code worked for a button, but then using the same exact code for a textview does not set the bg May 27 00:21:40 is there anything wrong with this code: "textView1.setBackgroundColor(Color.HSVToColor(hsv));"? All variables are declared elsewhere. May 27 00:22:01 TacticalJoke, hehe, what question ? May 27 00:22:34 Oh, I lost it now, but it was an Activity-lifecycle one. :D May 27 00:22:55 I hate those too May 27 00:23:05 can anybody help me with my question? May 27 00:23:32 noahmg123: Why not try something simple, such as `textView1.setBackgroundColor(Color.RED);`. May 27 00:23:55 yeah and ensure your handlers actually getting called now May 27 00:24:04 TacticalJoke: it is dynamic May 27 00:24:27 noahmg123_: The idea is to figure out what is not working. May 27 00:24:51 eliminate as many variables as you can May 27 00:25:22 TacticalJoke: Yeah. It does not throw up any errors at all, which is weird. It just does not color it. May 27 00:27:31 TacticalJoke: I just realized what I did wrong May 27 00:28:04 TacticalJoke: the text view was actually just empty. :P May 27 00:31:07 I was setting it dynamicly and forgot to change the setText line to a variable I was actually using :) May 27 00:31:17 After an edit I made May 27 00:39:44 TacticalJoke: It works now May 27 00:52:17 Hi Everyone, quick question. I'm trying to invoke db.beginTransaction(); where DB is a database that I have created. However it is telling me that it cannot resolve the beginTransaction method May 27 01:00:20 apoc52: probably means it's not an SQLiteDatabase. May 27 01:08:43 Hello folks! May 27 01:09:07 I am with the same problem as this post shows : http://stackoverflow.com/questions/21446361/android-listview-duplicates-itself-when-i-launch-a-new-activity-and-press-back May 27 01:09:27 And I unable to fix it. Could someone help me out here please? May 27 01:11:40 My acual code is here : https://gist.github.com/anonymous/b4396771c96bec6535a7 May 27 01:13:06 ircfox_: What's the TL;DR of your problem? (I'm doing 10 things at once.) May 27 01:13:16 I tried to set the ArrayList, the View and the ListView as global vars and create a new method onResume, but it seems it didn't solve the duplication issue. May 27 01:14:39 TacticalJoke: I have two ListFragments, one updates the other. But when the button is clicked repeatedly the contents get duplicated each time without a refresh. May 27 01:14:50 ircfox_: among other things, you can't safely close the database until you're done reading from the cursor. if there are more results than fit in the window, it'll crash. May 27 01:15:43 also, since you're re-using the cursor each time, it'll never update. you'll just keep re-using the same values in that fragment, forever. May 27 01:16:37 groxx: So, you think this is the Cursor the guy who is duplicating the contents? May 27 01:17:32 groxx: I still trying to adapt this code to the pattern where the database keep open all time. May 27 01:17:34 ircfox_: you were probably running the commented-out code in onResume? since you'll just be re-reading the same contents and _adding_ them to the list every time you resume, of course it'll duplicate. if you want to replace the contents, replace it. May 27 01:17:50 oh wait, nvm, you were making a new list each time. May 27 01:18:37 dont make new lists each time buddy May 27 01:18:38 groxx: this commented code is part of the test I was trying when I read the post. May 27 01:18:41 not sure why it was duplicating. is your parent activity maybe making a second fragment? May 27 01:19:05 what API should I support down to? May 27 01:19:11 phix: 1 May 27 01:19:17 API 1 you say May 27 01:19:24 pre-release, obviously. May 27 01:19:24 :) May 27 01:19:33 how much bigger will my app be with all of the support library bloat? May 27 01:19:34 groxx: the "first" ListFragment is creating a new Fragment each time there is a click. May 27 01:20:24 groxx: do you think this class is alright then. No motive to be duplicating? May 27 01:21:06 ircfox_: there could be reasons, but if that's all the code there is, it seems like it shouldn't duplicate. problem might be elsewhere. May 27 01:21:32 Ok I have a serious question now, in styles.xml I want to modify actionbar stuff, what item name's can I use in there? I created a style of overflow but I cant change the text colours. May 27 01:22:17 If I use Holo.Light as the parent the colour is applied, if I use Holo.Light.DarkActionBar it doesn't May 27 01:22:35 can I get a list of all item atrributes that are supported? May 27 01:22:40 Is this documented? May 27 01:22:48 groxx: this is the ListFragment which launches the other ListFragment : https://gist.github.com/anonymous/cbc0d0250dd6ca37a1f3 May 27 01:26:01 Hi Everyone, another quick quesiton: I'm trying to call a method of another class in my oncreate class of my application May 27 01:26:10 but its telling me that method: cannot resolve symbol May 27 01:26:36 why would it not be able to see that method? it sees the class and i'm able to create a new instance but i can't call that method specifically May 27 01:27:09 apoc52: is the method public and did you import the class? May 27 01:28:54 ircfox_: yes it is May 27 01:29:22 much easier just to paste code instead of just saying something doesn't work. quite a few times its an error with your code May 27 01:29:58 ircfox_: see this pastebin: http://pastebin.com/FyVSTW7m May 27 01:31:47 apoc52: better if you point the line you are receiving the error and best if you past the full code. May 27 01:31:52 apoc52: which method are you trying to call? May 27 01:32:31 the LoadCSVFile method May 27 01:32:33 is the problem 'this'? should show more of the code May 27 01:33:12 can't imagine you'd be loading a file in onCreate, or on UI main thread May 27 01:33:22 that's a static method, not an instance method, but it should still work May 27 01:33:31 nevermind guys May 27 01:33:33 i got it May 27 01:33:34 unless yeah, it's in an inner class in the activity. then "this" wouldn't work May 27 01:33:37 i'm guessing 'this' is the problem May 27 01:33:43 my call to the method was inside another class May 27 01:33:47 BINGO May 27 01:33:49 thanks for your help May 27 01:34:06 np May 27 01:34:15 groxx: still there? May 27 01:34:36 but should i make an new instance of a class everytime when i call a method inside it or is it okay if its static and i call it directly? May 27 01:35:58 depends on what you're doing, it's kind of hard to see the full context from that snippet May 27 01:36:44 general util methods like that I think are ok to keep static, though some may disagree. It does make it trickier to unit-test May 27 01:37:01 ircfox_: yeah, just distracted / busy :) I'm going to guess that .add() is not what you want in the transaction there, since you'll be making more and more fragments. and do you have wrap_content on your listview maybe? May 27 01:38:08 groxx: yes, replace() seems better ;) where should I put the close() method on the second ListFragment? May 27 01:38:40 ircfox_: just don't ever close the database, you don't need to May 27 01:38:54 groxx: ok May 27 01:39:00 groxx: thank you!!!! May 27 01:39:15 closing _cursors_ is useful, once you've pulled all the data from it, but the databases don't really matter. for most people it's faster / better to just never close it. May 27 01:41:50 groxx: when I call replace at first time it crashes the app. May 27 01:42:21 groxx: is there a way to test if it is already loaded? May 27 01:42:45 you can find the fragment by e.g. ID or tag May 27 01:43:03 groxx: Ok. May 27 01:47:21 Guys anyone know why theres a vertical line in my AS window? May 27 01:50:55 drose379 margin ? May 27 01:51:13 Dont know, its a random grey line May 27 01:51:30 maybe a screenshot would help/ May 27 01:51:31 ? May 27 01:53:08 drose379: no idea, why is there a black mark on your car for? May 27 01:53:15 your = my May 27 01:53:21 dont know May 27 01:53:25 maybe a photo would help May 27 01:54:09 :D May 27 01:54:37 groxx: I did : if (getFragmentManager().findFragmentById(R.id.layout).getView() == null) { add } else { replace } and it is crashing. May 27 01:54:52 probably on .getView May 27 01:55:09 drose379: does it flicker at all? I get rendering glitches when it's starting up May 27 01:55:21 Not that ive seen May 27 01:55:26 One sec, gonna upload screenshot May 27 01:57:22 to the right of my mouse May 27 01:57:24 http://i.imgur.com/BMQ3Z3A.png May 27 01:57:45 oh. that's probably the 80 / 100 / 120 character margin May 27 01:58:11 you think so? ok May 27 01:58:23 groxx: o/ working! Thank you!!! May 27 01:58:25 drose379: you can turn it off, if you want. prefs -> search for "margin" May 27 01:58:53 I dont have a preft May 27 01:58:55 prefs May 27 01:59:32 in android studio May 27 02:00:17 I got settings May 27 02:00:20 not preferences May 27 02:00:36 ah. May 27 02:00:44 fwiw: http://cl.ly/image/462g1E3V3X3F + http://cl.ly/image/2N3h3I364335 May 27 02:01:22 For some reason I cannot open those links May 27 02:03:22 hm. cloudapp is sometimes flaky :| May 27 02:03:27 I can see them. May 27 02:04:01 anyway. editor -> code style: "right margin" + editor -> general -> appearance: "show right margin" May 27 02:04:24 ah great, thanks groxx May 27 02:04:53 worked like a charm May 27 02:05:06 For some reason I feel lost without it May 27 02:05:09 shes goin back May 27 02:06:57 I feel lost without the Project tool window on the left. May 27 02:07:06 Though I think it's just because I like central-ish code. May 27 02:07:19 (I don't ever use the Project thing, I think.) May 27 02:08:22 'node.js for embedded systems' hrrrm May 27 02:08:38 i guess it was inevitable May 27 02:11:58 When it comes to JavaScript or PHP, nothing surprises me anymore. :[ May 27 02:13:16 Up next: "Script your way to beautiful Android UIs with our new presentation framework built upon PHP!" May 27 02:23:05 hello, I'm in need of an instructor/trainer that can help us build a mobile application interface based in Xamarin AXML, the app is similar to a chat, we need to build basic functionality, and we are able to pay for every class. Thank you very much May 27 02:23:43 livtyler not too many talk about xamarin here May 27 02:24:19 g00s: I don't lose the hope May 27 02:25:36 speaking of which, how much longer until the opengarden SDK is out :( is Android adhic wifi that busted ... May 27 02:25:48 *adhoc May 27 02:26:05 come on guys, need some back up in Xamarin May 27 02:26:33 livtyler: Is Xamarin any good? May 27 02:26:47 phix: I hope so May 27 02:26:55 livtyler: I have been turned off it since i don't know how to code in C# May 27 02:27:36 livtyler: I am guessing you want to create an app that works under Android, iOS and Windows Mobile? May 27 02:28:19 You realise this is an Android developers channel though, not Xamarin support? May 27 02:30:37 phix: :( May 27 02:30:38 * capella remembers xamarin is on his "list 'o things to waste time tinkering with" May 27 02:30:52 * capella if he ever gets time to waste ;) May 27 02:32:00 capella: same, although learning C# is way down in my things to do May 27 02:32:18 capella: Learning ObjC is slightly higher May 27 02:32:18 yah, for me it's behind Rust atm :) May 27 02:32:42 well, I have received Xamarin support here, heh May 27 02:32:44 Rust as in the computer game? or oxidised iron? May 27 02:32:53 livtyler: really? May 27 02:33:02 I guess there would be a handfull of people that use it May 27 02:33:12 (in here that is) May 27 02:33:23 phix: yes, indeed May 27 02:33:32 http://doc.rust-lang.org/book/hello-world.html May 27 02:33:39 ah rust language May 27 02:33:41 Kotlin is good to learn for people targeting the JVM (in any way). May 27 02:33:54 TacticalJoke: Kotlin? May 27 02:34:01 http://andrewchen.co/mobile-app-startups-are-failing-like-its-1999/ May 27 02:34:02 Even just as a "Here is an example of a well-design programming language" tutorial. May 27 02:34:06 ah a language May 27 02:35:09 capella: Actually learning BrainFuck (http://en.wikipedia.org/wiki/Brainfuck) was higher on my priority than ObjC and C# May 27 02:35:17 mozillas working on a new browser called Servo built w/Rust May 27 02:35:23 oh, heh - brainfuck May 27 02:36:14 is it possible to pass arguments to junit from gradle in an android project? **** ENDING LOGGING AT Wed May 27 02:59:59 2015