**** BEGIN LOGGING AT Fri Mar 20 02:59:59 2015 Mar 20 03:01:54 I have logs in the onContextItemSelected in both frag 1 and two, and when I choose an item from frag2, both logs from 1 and 2 are being fired Mar 20 03:02:06 But only on the first item Mar 20 03:02:42 woah http://www.theverge.com/2015/3/19/8260073/google-ftc-leaked-anti-trust-report Mar 20 03:02:45 google is the new MS Mar 20 03:05:47 Actually TacticalJoke, all the UI stuff is already inside a runnable Mar 20 03:06:27 In the code I'm looking at, registerForContextMenu (and other stuff) isn't. Mar 20 03:07:03 Ok, im gonna have to cut out now, ill be back tomorrow, did you see what I was talking about with the frags methods interfering> Mar 20 03:07:05 ?* Mar 20 03:07:23 BTW, stuff like this isn't good: catch (Exception e) { e.printStackTrace(); } If you're gonna ignore exceptions, do it this way: catch (Exception e) { throw new RuntimeException(e); } Mar 20 03:07:28 At least you get clear notification then. Mar 20 03:07:37 throw AssertionError(e);, even better Mar 20 03:07:39 Yeah. Mar 20 03:07:54 Ok Mar 20 03:08:15 Thanks guys, talk to you later Mar 20 03:08:17 Later. Mar 20 03:17:15 that exception throwing thingie, I could use that :P Mar 20 03:17:25 me too Mar 20 03:17:30 thanks for that tidbit Mar 20 03:17:36 what's the difference btw? Mar 20 03:18:27 Basically, he was catching all Exceptions (which is a lot of things, including NullPointerException) and simply printing something to LogCat (which is easily missed). Re-throwing it as an unchecked exception ensures that it crashes the app and gets your attention. Mar 20 03:19:45 I guess I should say "unchecked throwable" because of JW's idea. Mar 20 03:20:26 Again, thanks for all the help today.. I'll crash to bed now that I've reached the days goal :P Mar 20 03:20:33 I'll be back ;) Mar 20 03:25:46 groxx: im going to work with that, thanks Mar 20 03:29:12 I automatically reject a code review that contains a printStackTrace() in, on principle Mar 20 03:30:21 I wish IDEs wouldn't generate that stuff. ;| Mar 20 03:34:21 For a new app, should we require API 15 or 16? 15 seems to have even less users than 10, but does 16 add anything that is very valuable? Valuable as in, significantly eases the development process? Mar 20 03:50:22 i think it would be pretty interesting with eye tracking, to have a plugin records where everyone is actually looking in the code - and give a heatmap of the file(s) Mar 20 03:51:03 those are probablt wtf blocks of code Mar 20 03:54:43 sonOfRa i'd probably go 16 Mar 20 03:59:00 sonOfRa here is a nice chart http://en.wikipedia.org/wiki/Android_version_history#/media/File:Android_historical_version_distribution_-_vector.svg Mar 20 04:05:01 go 19 or go home Mar 20 04:06:53 i'm already home Mar 20 04:08:20 then don't go 19 Mar 20 04:08:25 D: Mar 20 04:08:34 unless you happen to live at number 19... Mar 20 04:33:29 I am inflating and adding views programmatically. I am inflating the save view, so the parent has more than one view with the same id. This is a problem when the activity is resumed. Right now I am removing the views in onPause and recreating them in onResume. Is there a better way? Mar 20 04:33:44 * same view not save view Mar 20 04:39:44 surf2b1: you could use a fragment Mar 20 04:43:38 My Application's onCreate() is called, but the launcher activity's onCreate() is not called. Did something change in api 21? (previous min api was 18) Mar 20 04:44:45 myke: I plan to put it in a fragment. Would that really fix the issue though? It looks similar to this: http://stackoverflow.com/a/22928540/1048340 Mar 20 04:53:35 I can't seem to figure out how to respond to reviews in the play store, does anyone know how to do this? Silly question I know, I assume I am missing something obvious. Mar 20 04:54:21 ah doh, its in the developers console Mar 20 04:54:24 :) Mar 20 05:18:00 anyone know if any of the OpenHFT goodies work on android http://openhft.net/products/chronicle-map/ Mar 20 05:18:14 chronicle-map looks nice. i tried the queue, but that didn't work Mar 20 05:20:00 their goal is to be insaley fast, so they use tricks galore from official jvm Mar 20 05:22:53 Interesting stuff Mar 20 05:23:25 thanks for the link :) Mar 20 05:23:36 originally it was just Queue, but their toolbox of things keeps growing :) Mar 20 05:40:01 is it possible to have location services running for an app at intervals in the background? even if the user has navigated out of the app? Mar 20 05:44:07 Does Bluetooth LE scanning require an advertiser or can two scanning devices find one another? Mar 20 05:44:32 I'm testing with nexus 4s that don't support the advertising mode Mar 20 05:46:15 you need a peripheral and central Mar 20 05:46:58 broadcaster / receiver Mar 20 05:59:12 software these days http://i.imgur.com/IfCty1H.jpeg Mar 20 06:00:40 :) Mar 20 06:07:08 hey bankai_ gotta make one of these http://i.imgur.com/F1SChho.gifv Mar 20 06:08:14 beautiful dog, looks like belgian malinois? Mar 20 06:08:48 Carbonflux do you have a review you need to reply to ? good one or bad one ? Mar 20 06:24:45 Folks, is there any way to force the Genymotion dummy camera to a specific image? Mar 20 06:25:58 I'm attempting to do some protocol analysis on something similar to a QR-code reading app, but it's not playing nice with the camera on my laptop. Mar 20 07:15:38 I found a way to override webview's http client at one point Mar 20 07:15:47 not sure where that link ran off to Mar 20 07:17:25 I want more control than shouldInterceptRequest. because it doesn't include headers etc until API 21 Mar 20 07:43:08 g00s, a mixture of both, mostly just comments about my app, I figured it out tho :) Mar 20 07:44:02 i haven't replied to any of my comments yet Mar 20 07:45:23 I did not for a long time but I was doing an update and also filling out the ratings survey Mar 20 07:45:47 I felt guilt about not relying Mar 20 07:55:22 I try build my App with Qt 5.4.1 for Android with NDK. I got http://pastebin.com/6CU7N1PP any help to fix that ? Mar 20 07:55:44 I use Qt-Creator. Mar 20 08:52:52 people, why SingleThreadScheduledExecutor rejectig my task with this error: http://privatepaste.com/a3fd016c2f Mar 20 08:53:16 executor is empty and just created Mar 20 08:53:40 how do you create the executor Mar 20 08:53:45 also, woo eclipse is starting Mar 20 08:53:57 why Mar 20 08:53:58 private final ScheduledExecutorService mScheduler = Executors.newSingleThreadScheduledExecutor(); Mar 20 08:54:06 Ashiren: careful, it'll use all your RAM Mar 20 08:54:38 and you dont shutdown the executor, do you Mar 20 08:55:07 yes Mar 20 08:55:37 hmm Mar 20 08:56:02 try Executors.newScheduledThreadPool(1) then Mar 20 09:00:39 well, i shutdown it ^) Mar 20 09:00:42 thanks Mar 20 09:04:44 How do I reset leaderboards for my Android game? Mar 20 09:31:55 Anyone have any experience changing the dummy graphic on genymotion's dummy cameras? Mar 20 09:59:23 good morning Mar 20 10:40:33 Is there a good way to draw a view as an overlay on top of any activity in my app? Mar 20 10:42:21 cezium you can add your view to the window... but if you close the activity the view will stay there, is this the effect you want? Why not just use a dialog and call it in every activity when an event happens? Mar 20 10:43:27 I don’t want a blocking UI. Just something global showing that I’m running a background task that will take some time. Mar 20 10:44:05 As an alternative I’m thinking of putting it as an notificaiton but it would be less obvious for the user. Mar 20 10:50:43 A toast? Mar 20 10:52:26 would be good if you could propose() a Toast instead of just show() it. Mar 20 10:57:14 Was thinking of a toast. Mar 20 10:57:35 Is it possible to update a progressbar in a toast after show is called? Mar 20 11:02:21 cezium yes Mar 20 11:11:42 people Mar 20 11:11:43 Hi all. I have a custom view class, using in xlm layout and I see the view (basic just a background color set). But none of the constructors is called / onDraw also not called. What can be the problem? Mar 20 11:12:45 jvrodrigues: are your sure changes to the custom view is reflected after show has been called? Mar 20 11:12:46 START_REDELIVER_INTENT says that it will redeliver intents. So if i will stop service with simply stopSelf() do i have to wait that system will redeliver intent again and restart service? Mar 20 11:14:38 right now it does not restart service, but i dont know if it decide to redeliver intent month later? Mar 20 11:15:16 Cezium keep a reference to your toast, change whatever you want, then call show again Mar 20 11:37:48 just started using the gmaps android SDK. made myself a TileProvider. does anyone know if there is a setting to have gmaps scale tiles from other zoom levels while i prepare the current zoom Mar 20 11:58:14 Anyone have experience setting up a virtual camera to point at a specific image with Genymotion? Mar 20 13:14:13 Hello fellas. Mar 20 13:15:20 aloha Mar 20 13:15:32 So I'm writing some database related thing where some objects get updated sometimes and I was wondering how best to communicate that to the GUI. If I send a broadcast intent with object type and ID list whenever a bulk of objects changes, would I get problems or do broadcasts scale? Mar 20 13:16:14 RedNifre, you could use a bus Mar 20 13:16:28 or contentprovider Mar 20 13:16:55 hm, I have a vague understanding of contentprovider and don't know about bus. Guess I'll look that up. Mar 20 13:17:00 broadcasts should be fine too but i would not recomment them for things that occur every few seconds Mar 20 13:17:11 It's not every few seconds, more every 10 minutes. Mar 20 13:17:31 just go with broadcasts then if you are used tot hem :0 Mar 20 13:17:44 Well, there's no harm in learning something new ;) Mar 20 13:18:19 Currently, it's like this: Fetch data from server, write to DB and RAM, broadcast update, GUI reacts to update and fetches the changed things if it was showing something of that data type. Mar 20 13:18:21 if you use cursors, you dont need any notification mechanism at all Mar 20 13:18:28 they keep track themselves Mar 20 13:18:43 You mean database cursors? Mar 20 13:18:50 yep Mar 20 13:19:03 well, I'm not using the DB directly, there's an object mapper on top. Mar 20 13:19:05 for example a cursor adapter automatically updates the list when database changes Mar 20 13:19:12 ormlite? Mar 20 13:19:15 yes. Mar 20 13:19:34 OrmliteCursoradapter :p Mar 20 13:19:56 that updates itself and you can use it for lists, grids .... stuff like that Mar 20 13:21:15 they arent included in the maven build though (noone knows why). you would have to build ormlite from source for that Mar 20 13:21:32 Well, the data structures involved are a bit special, given that there are lists with over 100000 entries (I know that this is an odd user experience, but the customer is king...) Mar 20 13:21:46 wow :D Mar 20 13:22:07 thats much for android Mar 20 13:22:15 but should not be a problem performance wise Mar 20 13:22:45 Wait, aren't the cursor adaptors synchronous? Mar 20 13:23:19 adapters are always synchronous Mar 20 13:23:27 they need to operate on ui thread Mar 20 13:23:40 but you can load the cursor asynchron Mar 20 13:24:25 Yeah, that's the problem, DB access is too slow in that case. I currently use a custom cache layer that preloads 200 entries in both directions so you can smoothly scroll over them without running into DB accesses. Mar 20 13:25:06 that should not be the case with a cursor no matter if its 10 entries or 10 million Mar 20 13:25:13 But I'll check out content providers, ORMLite cursor adapter and bus... hm, could you give me some more keywords about bus to make sure I'll find the right thing? Mar 20 13:25:29 you load the cursor in an async task, set it to the list in a cursor adapter and it smooth goes over all items then Mar 20 13:25:53 Yeah, that's the problem, you can't have 200000 objects in a list in RAM. Mar 20 13:26:03 why should you want to do this? Mar 20 13:26:49 Maybe I missunderstood you. When does the cursor adapter access the DB? exactly? What happens when you scroll down faster than the DB answers? Mar 20 13:27:03 it caches in a way you are doing it manually atm Mar 20 13:27:13 it loads the first few entries and acts like an iterator Mar 20 13:27:27 once you hit the end, it loads new items from database Mar 20 13:27:36 but in a smooth way you dont have to care about Mar 20 13:29:00 But what happens when you scroll down 100000 entries and scroll up faster than the DB loads? I thought you could not block scrolling when scrolling up? (My custom adapter displays a "Loading" entry in that case while that part of the list gets reloaded). Mar 20 13:30:04 if you do this with a cursor loader and see stutters, they are not from the cursor Mar 20 13:30:17 but from the listview being too slow in getView() Mar 20 13:30:28 because of image loading for example Mar 20 13:30:46 I want to use two views that I can slide to each other as a navigation drawer for example, do you know how i can program that pls ? :) Mar 20 13:30:48 the performance of a cursor usually is by far faster than android can scroll Mar 20 13:30:56 I don't know what class i can use Mar 20 13:31:42 Hm, I guess I should profile my DB accesses then. Or make the objects smaller (They currently contain some data that is not really required for the currentl list entry look) Mar 20 13:31:48 Lern-X, NavigationDrawer Mar 20 13:32:29 RedNifre, you should really try cursors. They are really fast and helpful :) Mar 20 13:32:42 I am having a weird error concerning multi-threading with android and the camera. On my Samsung Galaxy S3 I can take pictures. But on my Epson-BT-200 I receive the following error message: http://pastebin.com/p6Xq2JH5 Mar 20 13:32:50 Thanks danijoo, I will :) Mar 20 13:32:58 danijoo: yes, but the NavigationDrawer is just a menu and I want to be able to customise it as a common view Mar 20 13:33:29 What I do is taking the picture in a new thread. I await the callback of takePicture to spawn in the Main-Thread. Within the callback I let a CountDownLatch countdown. The Thread, I created waits until the picture is taken. Mar 20 13:34:12 tokam GRIS? ;) Mar 20 13:34:37 almost ;) CS is Darmstadt but not GRIS Mar 20 13:34:49 I listened to Stefan Roths lectures. Mar 20 13:34:53 Not sure what the problem is in that case. The only problem I ever had that might be remotely related is that Drawables and/or Bitmaps break when passed across thread borders. Mar 20 13:35:22 But iirc I didn't get an error, instead the images just turned white. Mar 20 13:35:26 RedNifre: how did you assume GIRS? Mar 20 13:35:27 GRIS Mar 20 13:36:00 Lern-X, no its not Mar 20 13:36:20 RedNifre: I must catch the exception and print it out. Mar 20 13:36:22 Lern-X, a NavigationDrawer is just a viewgroup. You can display whatever you want in the view Mar 20 13:36:26 the package name in the error message contains tu-darmstadt and it has to do with taking photos ;) Mar 20 13:37:12 you are from the TU? Mar 20 13:38:15 another darmstädter? that would be funny Mar 20 13:38:20 Is this code with the Looper valid? I had some issues without adding a new handler and starting these looper methods, when in the callback I tryed to call handlers. http://pastebin.com/mYmkneRq Mar 20 13:38:21 we're taking over the channel :D Mar 20 13:42:55 Yeah, let's change the channel language to Hessisch ;) Mar 20 13:43:07 :D Mar 20 13:43:27 I think the issue is, that on the Epson BT my takePicture let's the callback not spawn inside the main thread. Mar 20 13:44:11 is my procedure of opening a thread in java which receives handle posts right? Mar 20 13:53:18 tokam, you are not posing on the main thread Mar 20 13:54:12 what do you mean by that? I assume that due to my fancy logic I am not posting on the main thread, but I do not know, if all function calls of the Looper class, which I made, are right. Mar 20 13:55:06 Looper.prepare() creates the looper for the current Thread Mar 20 13:55:53 try new Handler(Looper.getMainLooper()) Mar 20 13:55:58 and post to that handler Mar 20 13:56:29 In a Debugger I monitored, that the code within the Runnable, which I passed to taskExecutor.execute is not executed. Mar 20 13:56:33 ExecutorService taskExecutor = Executors.newFixedThreadPool(1); Mar 20 13:56:46 I create a new executor within an other executor of the pool-size 1 Mar 20 13:57:43 hm. i never worked with executer honestly? Mar 20 13:57:53 danijoo: The issues with positings occoured (that's why I assumed) by the native methods like mCamera.takePicture or (Toast.makeText(MainActivity.this, "picture taken", Toast.LENGTH_SHORT)).show(); Mar 20 13:58:07 cant you just run it in an async instead of using executor? Mar 20 14:04:28 how do i rotate a drawble i have if the app direction is rtl? Mar 20 14:04:41 danijoo: I am providing an API Mar 20 14:05:12 joroci, have you tried googling it? Mar 20 14:05:17 yes Mar 20 14:05:21 didn't find much info Mar 20 14:05:31 maybe i'm searching for the wrong term Mar 20 14:05:40 joroci, google "android rotate drawable" Mar 20 14:05:41 I wanted to avoid having callbacks all the time, so I planned to start a new thread, where my api's public function is called, and let the thread wait for async calls to finish Mar 20 14:06:56 I assumed takePicture callbacks to spawn in the main thread. Mar 20 14:07:46 tokam, i think they spawn in the thread that you used to start the operation Mar 20 14:07:52 hi, is there any way to show a ripple drawable inside of a ColorStateList ()? Mar 20 14:08:00 on the galaxy s3 they spawn in the main thread Mar 20 14:08:06 oh ok. Mar 20 14:08:19 are you sure its a thread problem at all? Mar 20 14:08:31 danijoo: Is how I prepare the looper, start it and terminate it correct? Mar 20 14:09:31 tokam, the Executor tasks are run in their own thread, correct? Mar 20 14:09:42 if this is the case, your looper is also not in main thread Mar 20 14:09:54 what do you mean by this? Mar 20 14:10:22 I mean you have two options to make a looper Mar 20 14:10:33 Looper.prepare() > this thread Mar 20 14:10:54 Looper.getMainLooper() -> main thread Mar 20 14:11:40 also I just realized you didnt set the looper to the handler Mar 20 14:12:01 how to do that? Mar 20 14:12:21 Looper.myLooper() ? Mar 20 14:12:23 ah nvm Mar 20 14:12:28 you dont have to do that :p Mar 20 14:12:29 my bad Mar 20 14:13:29 so: Handler tHandler = new Handler(Looper.myLooper()); equals Handler tHandler = new Handler(); Mar 20 14:14:20 just forgot whay i said last ^^ Mar 20 14:19:22 If I do have a ExecutorService executor = Executors.newFixedThreadPool(1); Mar 20 14:19:41 and start within it a new pool, will the size get n+m or 1? Mar 20 14:20:08 i never worked with executorservice :/ Mar 20 14:21:47 hi Mar 20 14:22:57 Can I simply start a thread? Mar 20 14:25:08 hy all Mar 20 14:25:28 tokam, sure Mar 20 14:25:30 what is the difference between PowerManager and JobScheduler API? Mar 20 14:25:40 you just dont know if it will finish when app gets minimized ;) Mar 20 14:26:30 Do I know it with an executor? Mar 20 14:26:47 tokam: what about starting async work in an IntentService then have an API level listener block for the return? Mar 20 14:31:48 morning Mar 20 14:32:13 android:showAsAction="always" is not always showing as action... Mar 20 14:32:18 anyone else encountered this? Mar 20 14:33:01 aah missing namespace Mar 20 14:33:09 app:showAsAction-// Mar 20 14:34:11 danijoo: i found a way to do it for api 17+ but what about 15+? Mar 20 14:35:18 joroci, is the drawable in an imagevirew? Mar 20 14:35:24 or in a custom view? Mar 20 14:36:50 imageview Mar 20 14:36:59 use a matrix Mar 20 14:37:46 but how to do it for rtl? Mar 20 14:38:21 i dont understand? does rtl rotates in other dimensions? Mar 20 14:38:42 danijoo: honestly I dislike android development right now Mar 20 14:38:58 danijoo: implementing parcebale and stuff -.- :D Mar 20 14:39:04 for ltr the drawable is fine , i want to rotate only when it's rtl Mar 20 14:39:15 tokam, yeah parcelables suck : Mar 20 14:39:20 Check out Parceler. :) Mar 20 14:39:43 https://github.com/johncarl81/parceler Mar 20 14:40:04 joroci, check if its an RTL locale and rotate Mar 20 14:41:17 so i have to do it programmatically for 15 Mar 20 14:41:19 + Mar 20 14:41:32 boy GCm is hard to get your head around on your first go Mar 20 14:41:39 I got my app working Mar 20 14:41:58 wrapping take picture in a handler, which was associated with the main loop helped. Mar 20 14:43:11 somebody? Mar 20 14:43:28 gregtom6: Didn't Mavrik answer that? Mar 20 14:43:37 Anyone know if GCM rate limits? Mar 20 14:43:39 TacticalJoke: nope Mar 20 14:43:45 eghdk, yep Mar 20 14:44:06 thanks danijoo Mar 20 14:44:42 Mavrik: I've looked up answers on stack overflow but they seem to point to obsolete resources. Can you recall these limits, or possibly help me find the appropriate docs? Mar 20 14:45:11 eghdk, hmm, I don't think they're documented, but you'll definetly start getting error messages from Google server if you do it too fast Mar 20 14:45:21 also I think 100 stored messages per client is the limit as well Mar 20 14:45:35 yeah and they also limit client side Mar 20 14:45:42 Mavrik: Error on my server implementations or client side? Mar 20 14:45:51 eghdk, on the server of course Mar 20 14:45:58 so even if the client receives every message, you cant send one guy 500 msg Mar 20 14:46:16 just making sure, because on SO it says that after you hit a limit the client will recieve a message Mar 20 14:46:22 that the limit was hit Mar 20 14:48:38 eghdk, hrmf Mar 20 14:48:43 so? Mar 20 14:48:47 That doesn't make alot of sense :) Mar 20 14:49:22 gregtom6, your question is as nonsensical as it was yesterday still :) Mar 20 14:49:49 You're asking what the difference between a dog and a spoon is. Mar 20 14:50:14 Mavrik: "Note: There is a limit on how many messages can be stored without collapsing. That limit is currently 100. If the limit is reached, all stored messages are discarded. Then when the device is back online, it receives a special message indicating that the limit was reached. The application can then handle the situation properly, typically by requesting a full sync." Mar 20 14:50:15 Mavrik: but why? because I can see on them they're both for energy management Mar 20 14:50:29 eghdk, yeah they removed that Mar 20 14:50:35 eghdk, and there's no mention of it in the doc either Mar 20 14:51:08 Okay, thanks, I just wanted someone else to make sure I wasn't crazy. Mar 20 14:52:02 Mavrik: hmm? Mar 20 14:52:24 gregtom6, while the side effect might be better energy management, they don't do the same thing Mar 20 14:52:51 Mavrik: then describe me what does one of them and what does the other Mar 20 14:52:51 PowerManager is API that lets apps manipulate and read the power state of the device Mar 20 14:53:16 JobScheduler lets apps schedule periodic or later jobs like sync, background updates, etc. Mar 20 14:53:39 Mavrik: I see Mar 20 14:53:59 JobScheduler API probably uses PowerManager internally to grab wakelocks and determine power state of when to run the jobs Č= Mar 20 14:54:01 :) Mar 20 14:56:08 I have been spending lot of time on a seemingly simple issue. Please refer to my code here http://stackoverflow.com/questions/29169340/linearlayout-weightsum-not-working-as-expected Mar 20 14:56:41 I want the initial View in my layout to take only 1/20th of the screen. But it is taking almost 80% Mar 20 14:57:00 Can't identify what I am doing wrong in WeightSum Mar 20 14:58:37 2 views, don't use weightsum, give one item 4 weight, the other 1 Mar 20 14:58:54 you have one view at 80% and the other 20 Mar 20 14:59:06 done Mar 20 14:59:30 of course width or height should be 0 as necessary Mar 20 15:01:41 @pfn Sorry but I think I could not convey my need properly Mar 20 15:02:22 Actually the View that is the first child to linear layout should be only 1/20th of the screen as it is having a wieght of 2 of total 40 Mar 20 15:02:35 But right now it is taking 80% of the screen Mar 20 15:02:41 then 1 and 19 Mar 20 15:02:51 I actually want it to be only a thin strip Mar 20 15:06:54 but in reality you probably don't want 5% Mar 20 15:08:40 Yeah, having a full layout defined with % seems funny to me too Mar 20 15:08:45 You practically never want that. Mar 20 15:09:07 looks bad on tablets as well Mar 20 15:10:06 This layout is not to be set as content view of any activity Mar 20 15:10:26 is ResourceCursorAdapter deprecated, or just one constructor of it, will it always load cursor data on the UI thread? Mar 20 15:10:30 This is to be inflated to a custom view to an adapter Mar 20 15:11:05 I still could not figure out the mistake I am commiting Mar 20 15:13:04 AS on mac should have used Cmd + R to run apps. People who uses xcode gets cofused. :) Mar 20 15:13:41 napster, then remap it Mar 20 15:13:56 ok Mar 20 15:14:27 also, when using a CursorAdapter to populate a ListView, when is it best to close the cursor...when the ListView fragment is no longer in view? Mar 20 15:14:32 as its easy to customize keymaps in as Mar 20 15:14:55 Actually you can copy the Mac OSX10+ keymap as it is in one click Mar 20 15:15:11 I did for myself anyway Mar 20 15:16:05 cool feature that is Mar 20 15:29:42 just to make sure I'm not wasting time, there is not native Android class that easily supports displaying gifs is there? Mar 20 15:30:03 s/not/no/ Mar 20 15:31:06 I can see gifs are listed as a supported codec in the decoding column here, http://developer.android.com/guide/appendix/media-formats.html Mar 20 15:31:26 i dont think they play... Mar 20 15:31:26 But don't see a reference any actual interface to it Mar 20 15:31:34 Have tried using video views? I'm not quite sure they work. Mar 20 15:31:35 i might be wrong Mar 20 15:32:05 I have it going in a WebView right now :P it's working decent enough, just need to find the height of the gif in the webview to wrap the container around it Mar 20 15:32:09 android.graphics.Movie Mar 20 15:32:11 try that class Mar 20 15:32:18 short sample here Mar 20 15:32:18 https://code.google.com/p/apidemos/source/browse/trunk/ApiDemos/src/com/example/android/apis/graphics/BitmapDecode.java#103 Mar 20 15:32:27 not much other documentation though Mar 20 15:32:56 I would decompose it into frame and use an animation-list if it isnt too small Mar 20 15:33:26 *large Mar 20 15:33:39 if it is too large you might hit OOMException Mar 20 15:33:55 in which case you might be better off animating it, depengin on what it is Mar 20 15:33:56 I'm getting these gifs from a backend, so I would have to do frame-by-frame composition runtime if I wanted to do that Mar 20 15:34:13 oh nasty.. yea, that won’t work Mar 20 15:34:19 try the movie class Mar 20 15:50:02 PSA - when you have to compare views form XML, compare their ID, not their tag. Mar 20 15:54:34 has anyone here ever used Venmo with their app? Mar 20 15:54:59 Hi Mar 20 15:55:03 How can I get the width of a view that is using layout_weight? Mar 20 15:55:23 In this case is an ImageView and getMeasuredWidth() returns the width of the image Mar 20 15:55:38 layoutparams? Mar 20 15:55:42 papipo: I do that in my app with a ViewTreeObserver. Mar 20 15:55:50 I have to wait till the ImageView has been laid out. Mar 20 15:56:06 oh yeah. I ran into that issue with gravity as well Mar 20 15:56:15 and animating views.. their layout ghosts were still there Mar 20 15:56:19 I need to set the height keeping the aspect ratio Mar 20 15:56:31 i have an ArrayList in my Activity that has 3 items when onPause() is called, and it's cleared out when onStop() is called. does anyone know why? Mar 20 15:56:34 otherwise my list rows are squished until the images are drawn Mar 20 15:56:39 and then stretched Mar 20 15:56:52 seand: Activities are destroyed upon screen rotation. All (instance) fields will go down with it. Mar 20 15:56:54 I just want them to have their final size when initially drawn Mar 20 15:56:55 put in a dummy view the same height as your vimageview Mar 20 15:57:00 But this is if onDestroy happens (not just onStop). Mar 20 15:57:16 TacticalJoke: this isn't on screen rotation, this is on navigation to another activity Mar 20 15:57:17 make that dummy view invisible Mar 20 15:57:19 not gone Mar 20 15:57:27 way to the side with width = 0dp Mar 20 15:57:29 or 1dp Mar 20 15:57:30 seand: Is Activity.onDestroy being called? Mar 20 15:57:30 onDestroy doesn't get called Mar 20 15:57:33 Okay. Mar 20 15:57:58 so I force the parent height to be at least that height, ok Mar 20 15:58:04 seand: How are you verifying that the list is cleared? Mar 20 15:58:08 but why can't I do that with the ImageView directly? Mar 20 15:58:26 i'm putting a breakpoint inside onPause and onStop and examining the list Mar 20 15:59:01 seand: Weird. Are you sure you're not clearing the list, reassigning the reference, or something like that? Mar 20 15:59:22 seand, code or it didnt happen ;) Mar 20 15:59:32 TacticalJoke: yeah, i should double-check that... Mar 20 15:59:37 Code or it's a feature, not a bug. :D Mar 20 16:00:13 Can anyone recommend a payment service for use in an app? Mar 20 16:00:29 t0astt: Don't you *have* to use Google Wallet? Mar 20 16:00:41 If it's going on Google Play, I mean. Mar 20 16:01:04 TacticalJoke: Uhm, maybe? I'm not sure. I was just looking to facilitate person-to-person transfers within my app Mar 20 16:01:17 not in-app purchases or anything Mar 20 16:01:28 TacticalJoke, only if its user to developer transfer afaik Mar 20 16:01:31 TacticalJoke: ah okay, it was something my code was doing... oops. can this ArrayList be cleaned up by Android when the Activity is stopped, though? should i be persisting it somewhere? Mar 20 16:01:44 TacticalJoke: that requirement is only for content deployed through Play Store Mar 20 16:01:51 seand, yes. use onSavedInstanceState Mar 20 16:02:02 thanks danijoo Mar 20 16:02:07 p_l: Ah, okay. Mar 20 16:02:08 danijoo, so if I"m just facilitating person-to-person transfer through my app, I don't have to use GWallet? Mar 20 16:02:25 I think you dont Mar 20 16:02:30 ok Mar 20 16:02:33 seand: Note that you can test this by rotating the screen (as long as you haven't disabled normal configuration changes). Mar 20 16:02:33 but i didnt read the TOS in that detail Mar 20 16:02:40 so dont sue me when you get banned :p Mar 20 16:03:15 TacticalJoke: rotation is actually working fine, because i'm preserving the state in onSaveInstanceState and restoring in onCreate. but onCreate isn't called when the Activity is restarted Mar 20 16:03:33 Yeah, onCreate will be called only when you have a new Activity instance. Mar 20 16:04:04 seand: You only need to worry about it in onCreate because if Android has killed your stopped Activity it will be recreated through onCreate anyway Mar 20 16:04:33 g1bbs: ah, okay... thanks Mar 20 16:04:37 um no Mar 20 16:04:49 g1bbs, not really Mar 20 16:04:53 your state can get restored :) Mar 20 16:05:03 gah, misread, sorry Mar 20 16:05:15 * ravilov hands Mavrik more coffee Mar 20 16:05:16 anyway, proper way to test that is to enable "Don't keep activities" in developer options and doing orientation changes. Mar 20 16:05:19 danijoo: I don't see why these companies would create Android APIs for their services if they WEREN'T allowed though... ? Mar 20 16:05:22 g1bbs: so i guess i should stop manually clearing my list in onSaveInstanceState :) Mar 20 16:05:41 anyone need a .gitignore? Mar 20 16:05:49 Every developer should do that before release in their app, shows alot of hidden bugs concerning restoration states Mar 20 16:06:21 t0astt, paypal library was released and google banned kinda all apps using it once Mar 20 16:06:25 so ... ;) Mar 20 16:06:29 UGH Mar 20 16:06:30 Mavrik, do what? Mar 20 16:06:32 Mavrik: do what exactly? Mar 20 16:06:55 t0astt, there are shops beside googles market that allow everything Mar 20 16:06:58 danijoo, you don't *have* to publish on playstore only ;) Mar 20 16:07:22 thats what i said :P Mar 20 16:07:24 tricknology, seand, enable "Don't keep activities" in developer options and then do orientation change in each activity :) Mar 20 16:07:29 but I said it first! Mar 20 16:07:39 Mavrik: okay, will give it a try Mar 20 16:07:49 Do any of you know how to get ADK working on arduino? Mar 20 16:07:56 Alright, so let's say I HAVE to use GWallet. If/when my app is available on iOS, what do I do then? Those users aren't likely to have a GWallet account? Mar 20 16:08:01 ADK? Mar 20 16:08:02 it's hard for me to care about orientation change when a lot of the big players are locking to portrait and not getting complaints Mar 20 16:08:03 aah Mar 20 16:08:13 my orientation is locked for some activities Mar 20 16:08:18 g1bbs, stop caring about big players Mar 20 16:08:21 Android development kit 2012 Mar 20 16:08:22 g1bbs, start caring about users. Mar 20 16:08:24 depending on if they have a tablet or phone Mar 20 16:08:26 gibbs, I'm complaining Mar 20 16:08:27 for open hardware applications Mar 20 16:08:29 g1bbs, _all_ tablets are landscape Mar 20 16:08:33 Mavrik: but but... they have the money! :P Mar 20 16:08:38 also Mar 20 16:08:45 g1bbs, if your orientation change doesn't work Mar 20 16:08:49 your state restoration doesn't work either Mar 20 16:08:57 tru dat Mar 20 16:09:05 I said it before and I'll say it again - money should not be the *primary* driver when making apps, g1bbs Mar 20 16:09:13 and once you get your state restoration right you stop shipping broken apps Mar 20 16:09:15 win! :) Mar 20 16:09:19 also boatload of money Mar 20 16:09:25 PROFIT Mar 20 16:09:33 3) ?????? Mar 20 16:09:38 ravilov: guess I'm still on 3) Mar 20 16:09:58 gibbs, we were locked to portrait and got complaints Mar 20 16:10:13 yes, and how long you stay there depends on whether you implement orientation changes or not Mar 20 16:10:14 tricknology: is your app keyboard heavy? Mar 20 16:10:16 t0astt, that makes no sense Mar 20 16:10:22 some parts Mar 20 16:10:29 because you cant publish an android app for iOS Mar 20 16:10:34 tricknology: because that's really the only valid complaint I can see Mar 20 16:10:37 I locked my app in landscape (for very good technical reasons) and it's killing me inside. Mar 20 16:10:45 I feel like a bad dev Mar 20 16:10:48 danijoo: I'm saying when my app is ported to iOS Mar 20 16:10:56 then you dont use gwallet Mar 20 16:10:57 holding ia tablet is easier in landscape Mar 20 16:11:12 because apple does not pay to gwallet like google IAP does Mar 20 16:11:16 I'd like to hear those technical reasons ;) Mar 20 16:11:16 most tablets are impossible to use in portrait Mar 20 16:11:20 I hold my phone in landscape too :) Mar 20 16:11:23 especially Samsung crap with capacitive buttons Mar 20 16:11:52 Samsungs arent useable in any orientation Mar 20 16:11:58 danijoo: +1 Mar 20 16:12:07 ravilov, it's a drawing application. Once it's started in landscape, it can't really be changed orientation. Mar 20 16:12:23 thats in fact a point Mar 20 16:12:36 surely there is a way to make it more dynamic and adaptable? Mar 20 16:12:48 not really... Mar 20 16:13:02 I guess it's hard to translate a drawing over to a new canvas in a useful way. Mar 20 16:13:10 scaling? Mar 20 16:13:11 yeah Mar 20 16:13:21 ravilov, did you ever paint something? ^^ Mar 20 16:13:22 what I might do in the future is let you rotate the device if the drawing is empty, then lock it once you start Mar 20 16:13:24 Scaling would change the image. Mar 20 16:13:28 danijoo, yes, on paper :p Mar 20 16:13:38 works pretty nicely when I rotate my paper to portrait Mar 20 16:13:43 then you should now you cant simple make a 9:16 out of a 16:9 Mar 20 16:13:43 well no, I don't want to scale :D Mar 20 16:13:44 Scaling might be okay for vector graphics but not for bitmaps. Mar 20 16:13:53 without making people having really long heads :p Mar 20 16:13:57 actually... why even rotate the painting? just rotate the toolbars and stuff Mar 20 16:14:07 leave the painting as is Mar 20 16:14:07 good point Mar 20 16:14:24 then why even rotate? Mar 20 16:14:35 that's up to the user Mar 20 16:14:37 your house would be sideways Mar 20 16:14:42 who are you to limit how your app is used? ;) Mar 20 16:14:43 maybe the user wants to hold it a different way Mar 20 16:14:47 the user is a 6 year old :D Mar 20 16:14:52 Wouldn't the toolbar move change the canvas size? Mar 20 16:15:03 Unless the toolbar is overlayed, I guess. Mar 20 16:15:09 my toolbar hovers Mar 20 16:15:16 MikeWallaceDev you've never been coloring and you're like "i should rotate this bitch so i can color this one part easier" Mar 20 16:15:23 overlaid* Mar 20 16:15:24 when you're 6 Mar 20 16:15:31 NEVER!!! Mar 20 16:15:33 lol Mar 20 16:15:34 ok, maybe. Mar 20 16:15:35 :D Mar 20 16:15:38 well you musta sucked at colorin Mar 20 16:15:39 I totally think this makes sense Mar 20 16:15:41 if your users are 6 year olds put ads in that thing Mar 20 16:15:43 I rocked! Mar 20 16:15:43 I'd do it that way Mar 20 16:15:46 they will click anything Mar 20 16:15:49 tricknology: ;o Mar 20 16:15:58 lulz Mar 20 16:16:02 this one is a salesman lol Mar 20 16:16:02 i forgot how much fun coloring was Mar 20 16:16:04 brb coloring Mar 20 16:16:08 iOS dev friend told me that Mar 20 16:16:13 he makes a lot of games for kids Mar 20 16:16:16 "Click here to transfer $50,000 dollars to our developers." Mar 20 16:16:22 lol Mar 20 16:16:23 That's bad, tricknology. :D Mar 20 16:16:24 tricknology, be ready for the angry parent mob to come and kill you afterwards Mar 20 16:16:35 seand, when you rotated the book, you wanted to rorate the image, that's what it does now. :) Mar 20 16:16:43 well. they cant kill you if you can afford bodyguards :p Mar 20 16:16:49 and you will :D Mar 20 16:16:58 i’m not talkign adultfriendfinder or in app purchases.. Mar 20 16:17:03 TacticalJoke, that's the primary goal of my app : SAFE!!! No internet access. No ads. Mar 20 16:17:03 safe content Mar 20 16:17:04 you underestimate the power of numbers... :p Mar 20 16:17:12 MikeWallaceDev: yeah, it's perfect the way it is. #shipit Mar 20 16:17:18 Yeah, I find it really distateful when kids' apps have ads. :[ Mar 20 16:17:19 tricknology, clearly you've never dealt with children Mar 20 16:17:19 * tricknology fears pitchforks and torches Mar 20 16:17:34 no that’s why I said ioS dev friend Mar 20 16:17:40 I don’t make anythign for children Mar 20 16:17:47 racist Mar 20 16:17:47 :p Mar 20 16:18:00 TacticalJoke, even the coloring books are a separate download. It has to be done by the parents. Mar 20 16:18:01 parents probably don't care about ads on their kids apps either Mar 20 16:18:24 seand, oh you are VERY wrong friend. They hate it Mar 20 16:18:25 I've made a few things for children myself... not that they like me more because of it though Mar 20 16:18:32 like this one app that limits the wifi usage... Mar 20 16:18:35 depending on the ad Mar 20 16:18:39 I give them candy from my van ravilov Mar 20 16:18:44 lol Mar 20 16:18:46 :D Mar 20 16:18:56 insanity wolf Mar 20 16:19:08 Maybe you could hand out copies of your app from your van. Mar 20 16:19:14 jeez, think of it, WE hate ads, how much do you think that a parent hates it? Mar 20 16:19:17 seand, clearly you've never dealt with children either Mar 20 16:19:27 ravilov: why is that clear Mar 20 16:19:50 I've seen my niece accidentally tapping ads over and over, and it's annoying because then I have to click Back for her. Mar 20 16:19:55 And she's like "lolwtf". Mar 20 16:19:58 LOL Mar 20 16:20:04 clearly you don't know how it's like when a child wants to do something and then accidentally clicks an ad that takes them who knows where and the child doesn't know what's going on or how to fix it Mar 20 16:20:08 my iOS friend did mention that too Mar 20 16:20:11 screaming galore Mar 20 16:20:27 OMG! We started "Where's my Water 2", TWO ads before the game even starts! Mar 20 16:20:31 Yeah, you have to be tech support for a three-year-old. Mar 20 16:20:37 One in the middle of the screen, without an X Mar 20 16:20:49 that's not right. Mar 20 16:20:56 no, it's center Mar 20 16:20:56 Yeah, that's bad, MikeWallaceDev. Mar 20 16:20:58 hey if they can figure out the game they can figure out how to hit back :P Mar 20 16:21:11 I left. Mar 20 16:21:17 ravilov, ^^ Mar 20 16:21:30 MikeWallaceDev, so long as you stayed on top of things Mar 20 16:21:35 gibbs, _I_ had trouble figuring it out! Mar 20 16:21:50 don't be me down, man Mar 20 16:22:02 hit rock bottom already? Mar 20 16:22:13 g1bbs: It's really distatesful. Basically exploiting three-year-olds for money. Mar 20 16:22:20 TacticalJoke, BINGO! Mar 20 16:22:33 it's very distasteful. Mar 20 16:22:46 Some app devs would probably have people killed if it gave them an extra $5,000. Mar 20 16:22:48 Enough to make me write an app that took months! Mar 20 16:23:08 tricknology, in short, your ios friend is an a**hole and you should not be friends with them Mar 20 16:23:12 :p Mar 20 16:23:15 I even added a safe mode where the kids can't get out of the canvas Mar 20 16:23:24 lol Mar 20 16:23:29 Yeah, ads are a big part of the reason I'm making my app, too. Mar 20 16:23:32 he’s funny though Mar 20 16:23:38 and if you don't defriend him right now we're going to defriend you Mar 20 16:23:39 Fuck ads! Mar 20 16:23:40 TacticalJoke, reddit, right? Mar 20 16:23:43 Yeah. Mar 20 16:23:51 ok let me go to FB real wuick Mar 20 16:24:01 whatever happened to ad blockers...? mine works exceptionally well Mar 20 16:24:07 yeah i hate ads, so i don't put them in my apps Mar 20 16:24:20 Yeah, I remember cause everytime I see you talk about it, I'm like "damn, I don't use reddit :-/" Mar 20 16:24:37 A lot of ads are like punches to the face. "Oh, you wanted to start that music track? Well, fuck you -- you're gonna see a full-screen video for 30 seconds instead." Mar 20 16:24:47 hahaha Mar 20 16:24:54 maybe it's the video of the song? Mar 20 16:24:55 *cough* pandora Mar 20 16:25:08 music can wait, MONEY CAN NOT Mar 20 16:25:24 I actually uninstalled and did not buy Trivia Crack because they exagerated. Mar 20 16:25:48 damn, I heard that it still has ads when you buy it!!! Mar 20 16:25:52 can you believe that ?? Mar 20 16:25:57 not confirmed though Mar 20 16:26:08 did you think you're paying to not have ads? Mar 20 16:26:19 when creating your own Textedit, use append Mar 20 16:26:22 not setText Mar 20 16:26:24 I'm amazed at what users tolerate regarding ads. Mar 20 16:26:24 no, you're paying because deep inside you support this practice of plastering ads everywhere :p Mar 20 16:26:35 PSA Mar 20 16:26:36 I haven't made one cent with ads. I put them there so people will buy the ad free version :D Mar 20 16:26:53 ^ Mar 20 16:27:01 in which case the angry parents can buy that one Mar 20 16:27:09 hehe Mar 20 16:27:12 MikeWallaceDev: i just put restrictions on the free version, so it's free to try, cheap to buy Mar 20 16:27:14 is that something like being a street musician while being tone-deaf and then people pay you to STOP playing? :p Mar 20 16:27:23 It's like our phones have tiny screens already, and people are okay with 1/6 of the screen being taken up by some flashy "Click me!!!" thing. It's a shame people aren't intolerant of it. Mar 20 16:27:38 seand, that's what I did with Focus. Mar 20 16:27:51 TacticalJoke: you know what's a shame. android users think they should get everything for free Mar 20 16:28:09 MikeWallaceDev: link? Mar 20 16:28:21 Sure, but I don't make that argument. I think ads are just (in general) awful. Mar 20 16:28:23 https://play.google.com/ Mar 20 16:28:30 Ads on phone apps, I mean. Mar 20 16:29:12 seand https://play.google.com/store/apps/details?id=com.risesoftware.focus.free Mar 20 16:29:29 Paying for stuff is fine. Ads that trick people into thinking they have malware installed, ads that trick people into clicking something they don't want, etc. are not fine, IMO. Mar 20 16:29:45 eh, I got the start of the URL right :p Mar 20 16:29:47 It's for the times that you want to show people a picture/video, but not have them see anything else Mar 20 16:29:49 Apps that have such ads might as well qualify as malware. Mar 20 16:30:10 TacticalJoke, agreed. Totally. Mar 20 16:30:33 hey, speaking of... Is it possible to get a virus on Android? Mar 20 16:30:41 my thought is no, but maybe things changed Mar 20 16:30:50 MikeWallaceDev: ah okay, cool Mar 20 16:31:06 I third that Mar 20 16:31:21 you can't break the android permissions so all malware is user isntalled Mar 20 16:31:28 I guess if an app has Internet and run-at-startup permissions then it may be possible to make a device a bot that could be used in a DDoS attack, but I'm not sure. Mar 20 16:31:29 MikeWallaceDev, it was possible to downlaod a malicious app that hid your text notifications Mar 20 16:31:34 memorion, that's what I think too Mar 20 16:31:40 basically letting an outside user control your app by remote Mar 20 16:31:57 depepnding on your permissions they could turn things on just by sending a text Mar 20 16:32:05 fixed as of 4.4 Mar 20 16:32:16 well kind of.. the texts will fall through all the way and not be caught Mar 20 16:32:24 Another avenue is vulnerabilities in Android itself (e.g., in older versions of WebView). Mar 20 16:32:26 so in your messenger you would get some weird stuff and knwo something was up I guess.. Mar 20 16:32:28 yes, but still user installed... Mar 20 16:32:30 I guess there are a few exploitable things around. Mar 20 16:32:33 I have Cerberus installed, am I at risk? >.> Mar 20 16:32:57 There is a book Napalm suggested for me. I haven’t gotten around to crackign it but it’s called Android Security Internals Mar 20 16:33:10 If the user installs an app, that has permissions, and uses those permissiosn, that's not a virus. Mar 20 16:33:13 seems to have everything Mar 20 16:33:36 you're just an idiot. Mar 20 16:33:43 I guess but aren’t most viruses user installed? just by accident? Mar 20 16:33:46 MikeWallaceDev: But users don't know what those permissions are needed for. The Internet permission could be used to download info for the user, or it could be used to attack a web site. How would people know? Mar 20 16:33:52 (re : installing app, not you tricknology !@@) Mar 20 16:33:53 ^ Mar 20 16:33:57 well by definition a virus is self spreading isnt it? Mar 20 16:34:04 tricknology, pretty sure he meant "conciously" Mar 20 16:34:09 memorion, exactly Mar 20 16:34:11 i see Mar 20 16:34:31 Hello, I am using getIntent in onCreate() of an activity. I see here http://developer.android.com/reference/android/content/Intent.html#getIntent(java.lang.String) that getIntent() has been deprecated, whereas here http://developer.android.com/reference/android/app/Activity.html#getIntent() I see no mention of that. Is it only deprecated for an Intent? btw, i'm using it like this if (getIntent().getBooleanExtra("EXIT", Mar 20 16:34:35 not sure how a malicious program can spread through Android’s acrhitecture Mar 20 16:34:39 I was obsessed with computer viruses (classical ones, ones that spread on a single host) as a teen. I never released one, though. Mar 20 16:34:46 the upfront grant all permission or get nothing may not have been the best idea Mar 20 16:34:47 It's quite fascinating when you look into self-replicating programs. Mar 20 16:34:54 TacticalJoke, agreed, but if you install an app, that you don't know, from unknown source, that asks for those permissiosns, it's your own damn fault... Mar 20 16:35:00 I still use getIntent() android_sandwich Mar 20 16:35:29 Just say no to unknown apps. Mar 20 16:35:29 I'm afraid would it cause problems for our users using 5.0 OS Mar 20 16:35:34 I think users are just too clueless to be considered responsible. And producers often try to trick users into allowing stuff they don't want (if only they knew). Mar 20 16:35:47 There aren't many regulations relating to apps. Mar 20 16:35:57 If you think of food, there are all kinds of regulations saving us from ill health. Mar 20 16:36:01 yeah, I don't think that you can expect users to be able to judge what they install Mar 20 16:36:03 it won’t android_wich.. depending on what you’re using it for Mar 20 16:36:04 You couldn't go to Walmart, buy something, and die (probably). Mar 20 16:36:08 But for apps anything could happen. Mar 20 16:36:11 No, I don't agree with that, ignorance isn't an excuse. Mar 20 16:36:24 wait Mar 20 16:36:24 that method is not the same as getIntent() Mar 20 16:36:28 I didn't say that right Mar 20 16:36:30 Users are just too clueless. Mar 20 16:36:33 android_sandwich ^^ Mar 20 16:36:43 MikeWallaceDev, did you say it left? Mar 20 16:36:48 they may be clueless, but they are still responsible. Mar 20 16:36:53 is what I meant to say Mar 20 16:37:07 I think the people who make malicious apps are responsible. Users just don't have the power to beat them. Mar 20 16:37:14 ravilov, nice call back to old joke :D Mar 20 16:37:16 Users need to be protected, because they're clueless. Mar 20 16:37:20 agree Mar 20 16:37:24 tricknology, so using it should be fine? Mar 20 16:37:38 android_sandwich getIntent() for what you’re using it for is fine Mar 20 16:37:40 I don't agree with that either, that's what fucked up Android for me. Mar 20 16:37:57 Imagine if we had to become experts in nutrition so that we can check everything we buy from Walmart, for example. Mar 20 16:37:57 the other method is to call an intent for a URI Mar 20 16:38:01 It's not practical. Mar 20 16:38:05 my mom can't judge app based on their permissions how should she? Mar 20 16:38:10 but you want the intent to get the bundle/extras so you use getIntent() android_sandwich Mar 20 16:38:29 from a URI* Mar 20 16:38:40 oh ok. Thanks Mar 20 16:38:46 np Mar 20 16:38:51 I agree that it's difficult to choose a safe app. Mar 20 16:39:05 if you told people to read the permissions and only install what they think is ok they wouldn't install anything Mar 20 16:39:08 The rule should be: don't install ANYRHING that you don't completely trust. Mar 20 16:39:09 there's a difference though - you NEED food/nutrition, whereas you can totally do without apps and smartphones Mar 20 16:39:15 how would I pass this to a Uri....intent.putExtra("EXIT", true); Mar 20 16:39:24 I've been doing Android programming for a while, and I've been programming in general for many years, and I still struggle with understanding some Android permissions. What chance does someone's nan have? Mar 20 16:39:49 forget the permissions :D Mar 20 16:39:52 why do oyu want to? Mar 20 16:39:58 they're worthless Mar 20 16:40:01 android_sandwich? Mar 20 16:40:12 are you starting another activity? or another application? Mar 20 16:40:16 the point is: don't install stuff you don't completely trust Mar 20 16:40:24 ^! Mar 20 16:40:37 I never look at permissions, I either trust the app, or I don't Mar 20 16:40:41 maybe google should hide the unknown sources bit in the developer options so normal people can't find it Mar 20 16:40:52 How do you figure out what you can trust? A lot of stuff on Google Play is shady. :) Mar 20 16:40:54 I look at permissions if I’m curious Mar 20 16:40:59 FB has some weird ones Mar 20 16:41:04 FB Messenge Mar 20 16:41:09 the twitter app is really bad with permissions too Mar 20 16:41:22 EXACTLY! You have to decide if you trust FB or not. Mar 20 16:41:29 We have an Exit button in our app. when a user clicks that I clear task and then the Login screen is shown. I would like to just exit the app and not showing the login activity Mar 20 16:41:29 So for curiosities sake, how can I setup a proxy server on my computer and then route my connection on my phone through that so I can view requests? Mar 20 16:41:47 sec android_sandwich Mar 20 16:42:21 huh, interesting, I never tried to kill the app from within... Mar 20 16:42:30 MikeWallaceDev but how can people decide that? Mar 20 16:42:38 must be someting in the Application class... Mar 20 16:42:41 android_sandwich: Is that a good idea? That seems to go against Android's general design. Mar 20 16:42:47 but first, do you want to exit the process or put the app in the suspended state? Mar 20 16:42:51 The user can press Home if they want to go back to the home screen. Mar 20 16:42:59 android_sandwich you could call return; after finish() Mar 20 16:43:30 although, yeah, android_sandwich that doesn't seem like good Android UX Mar 20 16:43:44 there are exceptions to every rule. there are indeed apps which need to clear out completely and not just become "inactive" Mar 20 16:43:44 memorion, we decide that all the time. Mar 20 16:43:51 Exit the process. Due to company requirements this needs to be forced. I do understand that this is not a normal process flow. However, it's an internal app and this is needed. Mar 20 16:44:02 i see Mar 20 16:44:08 System.exit(0) i think Mar 20 16:44:10 Boom, great answer android_sandwich Mar 20 16:44:12 ... Mar 20 16:44:13 that will kill the process Mar 20 16:44:16 MikeWallaceDev yes, based on permissions and an understanding of what those are used for Mar 20 16:44:18 don't EVER do System.exit() Mar 20 16:44:21 haha Mar 20 16:44:44 memorion, exactly, then their is the ring of trust. YOU trust it, so your mom can trust it. Mar 20 16:44:59 tricknology, you have a very strange sense of humor. I see now why you're friends with that ios guy and why you think "he's funny". Mar 20 16:45:00 http://pastebin.com/QPMJBWta Mar 20 16:45:06 MikeWallaceDev but I don't want my mom to call me for every app she install or every update with added permissions Mar 20 16:45:09 tricknology, can't you do System("rm -rf /") ? Mar 20 16:45:15 U do ravilov Mar 20 16:45:22 I don’t think i want to do that Mar 20 16:45:28 memorion, I don't know what your point is anymore? Mar 20 16:45:34 I do*, i meant, ravilov Mar 20 16:45:40 er Mar 20 16:45:43 okay then Mar 20 16:45:49 that was too confusing Mar 20 16:46:03 android_sandwich, maybe you want somehting like this? http://pastebin.com/QPMJBWta Mar 20 16:46:10 One problem is that we're all nerds and this stuff is interesting and easy to us. Others don't have a freaking clue. :D Mar 20 16:46:16 based on your previous questions that’s where you were going? Mar 20 16:46:21 MikeWallaceDev I don't have a solution I just know that I'd rather have my mom buy an iPhone next time so the chances of installing crap a slimmer Mar 20 16:46:33 buy crap instead? Mar 20 16:46:42 get rid of the middle man, good idea. Mar 20 16:46:48 btu the activity will be available in the thingey.. closed activites drawer,, Mar 20 16:46:51 whatever they call it.. Mar 20 16:47:19 obviously crappifying the phone with apps takes too long :p Mar 20 16:48:00 android_sandwich, maybe try App.close() Mar 20 16:48:11 seriously though (and this has nothing to do with your mother!) if you can't handle an Android phone, then yes, buy an iPhone Mar 20 16:48:33 TacticalJoke, I see, however from that paste I don't see a point in using intent.putExtra(....) since I don't ever call startActivity(intent) and I call return. Mar 20 16:48:34 http://stackoverflow.com/questions/6330200/how-to-quit-android-application-programmatically Mar 20 16:49:21 or this: http://pastebin.com/zVJCiubX Mar 20 16:49:39 ah that’s from my code. Mar 20 16:50:05 I needed that because another company launches the app, so when this one finishes that way I need to include EXIT so that their app knows to exit Mar 20 16:50:22 ok I guess that would work since it seems to kill the process. Mar 20 16:50:26 why nto call System.exit(0) though? Android doesn’t get a chance to clean up? Mar 20 16:50:38 2nd one is probable safer Mar 20 16:50:57 yeah, I don't like the bypassing of Android either... Mar 20 16:51:16 smells of lost resources Mar 20 16:52:50 MikeWallaceDev yeah, leak city if not handled correctly Mar 20 16:53:25 If I only call System.exit(0), somehow the task is not cleared and I have to hit log out multiple times (as deep as I've gone into the app) Mar 20 16:54:09 that’s the problem with System.exit i guess Mar 20 16:55:12 try deleting your activity history first.. intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); Mar 20 16:55:41 or see this one: Mar 20 16:55:44 http://stackoverflow.com/questions/27050357/force-quit-of-android-app-using-system-exit0-doesnt-work Mar 20 16:55:48 android_sandwich, maybe this will help : http://stackoverflow.com/questions/2092951/how-to-close-android-application Mar 20 16:56:04 specifically the answer that involves putting onBackPresed in your LoginActivity Mar 20 16:56:23 or getParent().finish() after System.exit(0) Mar 20 16:56:40 btu don’t use System.exit() if you’re using bg resources.. Mar 20 16:59:13 yea I set those flags. It seem to work as needed I was just wanted to make sure I'm not introducing a bug that I can't think of. Since it's a hack to exit the app I wanna be careful Mar 20 17:00:49 tricknology, that's a good link, thanks Mar 20 17:01:17 MikeWallaceDev, I am reading your link. it a really good explanation Mar 20 17:01:28 good :) Mar 20 17:01:32 no problem. I was curious too since I came across the same issue, but we didn’t want o force the whole app closed Mar 20 17:02:56 that _is_ a nice link MikeWallaceDev Mar 20 17:03:22 hahaha, I got a little help from www.google.com Mar 20 17:03:35 your results seem better Mar 20 17:03:50 yesterday it was the opposite, I just couldn't find what I was looking for Mar 20 17:03:52 do persons A and B get different search results now? Mar 20 17:04:04 and I think it was memorion that found everything for me Mar 20 17:04:05 I hate that.. and then when you do find things it’s outdated blogs.. Mar 20 17:04:12 now??? ALWAYS! Mar 20 17:04:22 hehe Mar 20 17:04:29 YOU will get different results if you don't use the same computer Mar 20 17:04:36 sometimes I would not like that Mar 20 17:04:43 even in incognito? Mar 20 17:04:52 oh, probably not. Mar 20 17:05:11 But I never use it. It would bring my porn status down. Mar 20 17:05:14 :D Mar 20 17:05:24 lol Mar 20 17:05:36 lol Mar 20 17:05:47 are you one of the 10 people that hit the “share” button on porn sites? Mar 20 17:05:53 when I search for porn, I want it personalized for me!! Mar 20 17:05:54 lately I've been getting the same links on youtube even in Cognito mode Mar 20 17:06:00 lolol Mar 20 17:06:02 porn is bad for you, i just gave it up Mar 20 17:06:11 that means once or twice you weren't actually in incognito mode... Mar 20 17:06:24 I gave it up too. But then.. it ... pulled me ... back in!!!! Mar 20 17:06:32 hmm I see Mar 20 17:06:41 i'm done for life... and sometimes it makes me sad Mar 20 17:06:51 That was my Pacino impersanation Mar 20 17:10:50 Hi. I'm currently working on my first android app. I want to have a list of inputs. Each input is a text field on the left, and a button on the right. Clicking the button it shows a menu, in which the user can choose the texts type (URL, E-Mail address, ...). When the user types something in the last row, another empty row is shown so he can just go on. How do I do this on android? Sounds like a job for something like a model? Mar 20 17:15:25 Papierkorb: what do you have so far? Mar 20 17:16:57 One-Man-Bucket: Okay, so I have the ImageActivity, with a ScrollView and a LinearLayout where I want to display the inputs. I also have a Fragment of the row. Code is completely missing, it's just whatever AndroidStudio created for me Mar 20 17:18:23 One-Man-Bucket: Where ImageActivity is a ActionBarActivity Mar 20 17:19:37 I would like to be able to perform some functionality on my android phone remotely (very close proximity, so distance or obstructions wouldn't be an issue), would I have an easier time through bluetooth or Wi-Fi P2P? Mar 20 17:19:52 And that's where I'm lost now, I don't even know what to look for. Mar 20 17:19:54 so I’m adding a fragment to another fragment but it is behind the fragment I’m adding it to.. what do? Mar 20 17:20:08 is there a fragment.bringToFront()? Mar 20 17:20:10 bkboggy both are buggy, pick your poison :D Mar 20 17:20:22 Papierkorb: if this is the first thing you're writing for android maybe you should start with something really simple? or follow a book / tutorial out there? Mar 20 17:20:24 Papierkorb: you should make the input at the top, always static such as | INPUTBOX INPUTTYPECHOICE ADDBUTTON | then a list underneath, and just add the elements when they press add Mar 20 17:20:29 So, I know C++/Qt, where I'd have a ListView and a model, and then use a 'delegate' to display that in a fashion I like Mar 20 17:20:36 g00s, have you tried something of that sort on either one? Mar 20 17:20:43 you can use a listview underneath this veiw, where the item type of the listview is your model representing the input/datatypes Mar 20 17:21:13 i think your delegate is an adapter, papierkorb Mar 20 17:22:18 bkboggy i've used BLE, its workable but buggy; wifi direct ... almost not workable at all from what i've heard Mar 20 17:23:48 g00s, hmm, alright... thanks Mar 20 17:24:02 bkboggy you can follow the opengarden guys Mar 20 17:24:25 g00s, this? https://opengarden.com/ Mar 20 17:24:56 bkboggy yeah, they did firechat etc. when they have something working for android you know its at least possible :D Mar 20 17:25:16 g00s, true... but they use wifi, so it is workable Mar 20 17:25:20 from that view Mar 20 17:25:41 oh not sure about regular wifi, i thought you meant wifi direct Mar 20 17:25:50 regular wifi should be fine Mar 20 17:25:54 g00s, oh, i did... you know, i wasn't sure if there is a difference Mar 20 17:26:03 yeah big difference :D Mar 20 17:26:10 g00s, ah, i'll look into it then Mar 20 17:26:11 one owrks the other ... Mar 20 17:26:44 Is there any recommended tutorial source, or just random google searches? Mar 20 17:27:18 g00s, shows how little i knew on the topic... i was always under impression that WiFi had p2p capability from the get go, but i guess not Mar 20 17:27:43 isn't that a Ad-Hoc Wifi network? Mar 20 17:28:21 someone mind helping me figure out an issue I am having with my app? my activity is here http://pastebin.com/xDX8cjtC and I am getting the following error messages here http://pastebin.com/JEBi6rfp Mar 20 17:28:45 Papierkorb, well, i guess WiFi direct is WANET, but regular is not? that seems to be the impression, unless i'm wrong Mar 20 17:29:08 newkidd, soemoen is going to say use square’s http connecter thing Mar 20 17:29:12 forget that it’s called Mar 20 17:29:12 bkboggy: I've no idea if Wifi Direct is something else Mar 20 17:29:29 okhttp Mar 20 17:29:32 "http connector thing" Mar 20 17:29:37 https://github.com/square/okhttp Mar 20 17:29:43 :) Mar 20 17:29:46 :P Mar 20 17:31:03 bah then back to square 1 again Mar 20 17:31:07 hey good night all, i have a simple question, im new to ormlite and sqlite so i want to ask here Mar 20 17:31:16 well wait Mar 20 17:31:18 newkidd, read this: Mar 20 17:31:19 http://stackoverflow.com/questions/3904467/android-http-user-agent Mar 20 17:31:43 and it’s fairly easy to implement okhttp, just a little easier than apache’s.. Mar 20 17:32:01 i write almost 300 rows to my database with ormlite, databases are created when datas written Mar 20 17:32:53 it does lots of job, you know first create db and write datas Mar 20 17:33:06 tricknology: thanks ill look into it Mar 20 17:33:13 instead i want to create db at free time for example startup Mar 20 17:33:42 sci-fic, an sqlite db? i have no exp with ormlite Mar 20 17:34:29 tricknology: it doesnt matter i just want to do create and write processes at different times Mar 20 17:34:39 i dont want to create db before writing to it Mar 20 17:34:48 http://developer.android.com/training/basics/data-storage/databases.html#DbHelper Mar 20 17:34:53 like create if not exists? Mar 20 17:34:59 or you mean the file? Mar 20 17:35:11 i want to create empty database at startup Mar 20 17:35:17 touch a fiel Mar 20 17:35:30 then use the database helper to create the table Mar 20 17:35:42 and let is sit for as logn as you like Mar 20 17:36:10 or you can include them in you rpackage Mar 20 17:36:16 and move them on first start Mar 20 17:36:31 get it Mar 20 17:37:06 what about adding a field just a char Mar 20 17:37:31 a database column == field? Mar 20 17:37:51 i would probably use TEXT, or CHAR Mar 20 17:41:43 If i have a dialog that im closing with a runnable in postdelayed of a handler, and that activity goes to the backgroudn Mar 20 17:42:05 will the dialog still get dismissed or should i remove the callback, remember it needs to be closed and reapply the runnable in onresume? Mar 20 17:42:08 How many Android Devs does Square have JakeWharton? Mar 20 17:42:15 no clue Mar 20 17:42:17 15ish Mar 20 17:42:38 nice, not bad Mar 20 17:50:40 JakeWharton has anyone requested ByteString learning absolute position getXXX methods like nio ByteBuffer getFloat(int pos) getInt(pos) , etc ? Mar 20 17:51:31 no Mar 20 17:57:04 Anyone know what happens when i post delayed a runnable to handler that changes the visibility of a view after 10 seconds, when the user presses home after 2 seconds? Mar 20 17:57:16 does the app crash? does the view visibility get changed in the background? Mar 20 17:58:15 lasserix its a good practice to remove pending messages in onStop or onDestroy Mar 20 17:58:49 yeah i know Mar 20 17:58:54 but i was just curious Mar 20 18:04:00 Is there any way to see what countries an app is available for in google play? Some api or so? Mar 20 18:04:32 Your app? Mar 20 18:04:43 or an unrelated app? Mar 20 18:05:54 unrelated app Mar 20 18:06:55 not that I know of Mar 20 18:07:03 but I haven't really looked either, so *shrug* :) Mar 20 18:07:55 ok :) Mar 20 18:14:04 it is a bug or a feature that apps using sensor data can change the sampling period (samplingPeriodUs) for the other app listeners? (last opened app choose sampling period and assuming it's on the background) Mar 20 18:19:06 i guess you should stop your listeners onStop and not onDestroy Mar 20 18:24:25 should I include my .iml files in my git commits on a remote group project? Mar 20 18:24:32 or is that something I should ignore Mar 20 18:30:23 Anyone ever had an issue where context menu options will only fire on the first item in the listview? Mar 20 18:40:00 Why would the onContextItemSelected method from one fragment effect the context menu of another frag Mar 20 18:41:10 android gradle questions can be asked here? Mar 20 18:41:17 is there a way for Calligraphy to respect spannable tags like and in strings? Mar 20 18:41:43 "ERROR: DebugAndroidTest has an indirect dependency on Android API level 15, but minSdkVersion for variant 'debugAndroidTest' is API level 7" Mar 20 18:46:17 is android studio official out of beta? Mar 20 18:47:19 eeyup Mar 20 18:47:22 kewl Mar 20 18:47:55 which doesnt mean it is out of bugs Mar 20 18:48:02 of course Mar 20 18:48:57 right Mar 20 18:49:03 i love VS but there are plenty of those there Mar 20 18:49:56 Anyone have a genymotion HDPI phone? Mar 20 18:52:09 hmm, when i install android studio, should i point to the latest jdk? or should it be based on what version of android i want to be able to support Mar 20 18:52:19 java tends not to be backward compatible Mar 20 18:52:19 so sad mac windows can't span screens Mar 20 18:53:07 bkboggy the ide can use jdk 8 altough you can't use that for android Mar 20 18:53:09 java is backward compatible, sometimes its very annoying Mar 20 18:53:22 you can points to latest jdk Mar 20 18:53:37 memorion, i'd have to use jdk 7? Mar 20 18:53:49 but when making android project, choose appropiate java version for building(?) Mar 20 18:53:54 gotcha Mar 20 18:54:09 so what's the point of picking up from the beginning, is that the default/ Mar 20 18:54:16 or is it used for something else as well Mar 20 18:54:26 picking one* Mar 20 18:54:56 as in, if i can't use jdk 8 for android, why pick it Mar 20 18:55:03 you can't Mar 20 18:55:08 for fun Mar 20 18:55:11 but your ide can use it Mar 20 18:55:24 memorion, "bkboggy the ide can use jdk 8 altough you can't use that for android" Mar 20 18:55:28 you told me i can use it Mar 20 18:55:38 what do you mean by "your ide can use it" Mar 20 18:55:51 yes because the IDE is written IN java it can use 8 internally Mar 20 18:55:56 i see Mar 20 18:56:04 so, for its own rendering Mar 20 18:56:10 and functionality Mar 20 18:56:18 yes Mar 20 18:56:21 k ty Mar 20 19:07:11 how many emulators can this machine run? Mar 20 19:07:13 1 Mar 20 19:07:16 2 Mar 20 19:09:00 6 Mar 20 19:10:51 all of them Mar 20 19:13:49 how do include quotes inside a string? my server is responding to requests as "incorrect!" and I need to make my conditional statement match Mar 20 19:14:35 newkidd: usually `"the string, followed by a \" quote character"` Mar 20 19:15:07 er, that was more confusing than intended. if it's surrounded by "", usually inner " characters are escaped with a backslash, like other control characters. Mar 20 19:15:54 groxx: thanks that helped Mar 20 19:19:19 What do I need to get started with Android development for Arch Linux? I have an LG G3 and a tablet on which I can test things. Do I need to start with Eclipse and some plugin? Should I buy another computer with a powerful GPU and CPU and install Windows on it? Mar 20 19:20:14 xnil: you definitely don't require windows Mar 20 19:20:20 xnil http://developer.android.com/sdk/index.html Mar 20 19:20:23 nor a powered cpu Mar 20 19:20:26 powerful* Mar 20 19:20:31 JesusFreke: a powerful GPU, though? Mar 20 19:20:38 nope Mar 20 19:20:45 memorion: is Android Studio stable nowadays? Mar 20 19:20:59 as stable as the Eclipse setup? Mar 20 19:21:02 xnil yes it officially replaced eclipse Mar 20 19:21:04 I would recommend grabbing android studio :) Mar 20 19:21:07 that wasn't my question Mar 20 19:21:19 xnil: more stable, in my experience. Mar 20 19:21:21 more stable Mar 20 19:21:25 ok, thanks Mar 20 19:21:32 xnil: though the logcat connection is slightly worse (not that it was great in Eclipse either, though) Mar 20 19:21:38 groxx: logcat? Mar 20 19:21:48 i've no experience with anything for android dev besides unity3d Mar 20 19:21:57 xnil: ah. system log output. Mar 20 19:21:58 the runtime logger Mar 20 19:22:01 xnil: logcat is android's common logging infrastructure Mar 20 19:22:09 ah, ok Mar 20 19:22:09 logging system* Mar 20 19:22:16 groxx: what about it is worse? Mar 20 19:22:22 I usually just use "adb logcat" in a terminal window Mar 20 19:22:32 I never cared for the logcat views in eclipse or AS Mar 20 19:22:41 how much RAM do you have Mar 20 19:22:53 Ashiren: i believe i have around 4gib Mar 20 19:22:58 xnil: it occasionally has trouble staying connected / reconnecting in android studio, and it lags behind the real output by a fraction of a second or so, occasionally up to a few seconds. but there's a "restart" button for fixing that. Mar 20 19:23:04 fair enough Mar 20 19:23:25 Ashiren: just in case i have 2gib, why were you asking? Mar 20 19:23:47 everyone once and a while i lose ref to genymotion emulators, anyone know how to fix this w/o restarting them? Mar 20 19:24:22 xnil: AS does tend to be a bit memory hungry Mar 20 19:24:28 xnil: but eclipse has so many weird errors, and changing branches causes it to crash and corrupt project files, and so many annoying things for library projects (and stuff like appcompat)... android studio is both worth using, and better in _almost_ every area. Mar 20 19:24:37 well 4gb should be enough, but 8gb would be enougher Mar 20 19:25:03 lasserix: nope. I've just abandoned genymotion :| the built-in emulators are good enough, and more stable. Mar 20 19:25:11 :O Mar 20 19:25:17 but slow Mar 20 19:25:19 groxx: excellent Mar 20 19:25:30 Ashiren: not really. gpu acceleration + haxm = genymotion speed. Mar 20 19:26:20 I forget if genymotion lets you save the state when you close it? you can't do that on the stock emulators when using gpu acceleration, but they boot in like 20 seconds so it doesn't really matter. Mar 20 19:26:49 I am a c++ developer, How I could learn to develop android applications? Mar 20 19:27:04 The_Photographer: d.android.com Mar 20 19:27:07 read Mar 20 19:27:27 For me is very complex all about view files, configuration ...I cant simply take a focus in the busines? Mar 20 19:27:47 The_Photographer: one caution though, if you want to write C/C++ code: Android Studio doesn't have NDK support yet, so you'll want to either build binaries externally and add them to the project, or use Eclipse. Mar 20 19:28:33 What is better for developp android applications, eclipse or Android studio? Mar 20 19:28:50 The_Photographer: er. how did you learn C++ then? it's an entirely different OS + application stack, you kinda just have to learn it, like switching between linux + gtk and windows dev. Mar 20 19:29:05 android studio is officially supported Mar 20 19:29:20 although i personally stil use eclipse, i wanted to convert my projects into AS but meh Mar 20 19:29:49 groxx: how does eclipse support NDK? Mar 20 19:30:02 i did c++ things and complied outside eclipse Mar 20 19:30:18 groxx: in c++ you have only files, .h and .cpp, in android you need use infinite files for layout, configuration language, configuration device, configuration activites... Mar 20 19:30:29 Ashiren: afaik it just blends the java + native build process more transparently, and you can use Eclipse to do C++ dev (and it's decent at it) because Eclipse has a plugin for everything. Mar 20 19:30:51 I preffer dont use a GUI ide for developp android applications Mar 20 19:31:02 The_Photographer: yes, programming for Android is different than programming in c++. Mar 20 19:31:20 The_Photographer: not entirely true of C++. depends on your OS and what it requires. similar things are necessary for an OSX .app package, for example. Mar 20 19:31:24 Yes, there are new things to learn. Mar 20 19:31:45 teoretically you could just use any text editor to write programs and build using gradle in command Mar 20 19:31:48 but why Mar 20 19:32:19 it's a little more extreme on android because it uses a lot of that to automagically restore your app after killing the process, and to simplify inter-app communication. but that's no different than sharing a ton of .h files, and it's more version agnostic. Mar 20 19:32:28 I find configurations, layout files very hard to mantenance in the future, why not take the focus only in the busines? Mar 20 19:32:56 not sure what you mean by "focus only in the busines(s)". if you don't want to write it, pay someone else to, there's very little alternative. Mar 20 19:33:27 groxx: Do you know some kind of mvc framework for android? Mar 20 19:34:21 The_Photographer: not off-hand. aside from the framework itself. activities are essentially controllers, though. Mar 20 19:34:23 What is the advantages of use a android application or is better use a web application with a mobile interface? Mar 20 19:34:51 I could use jbpm and EJB in android developping? Mar 20 19:35:32 no Mar 20 19:35:46 it's the usual native vs web tradeoffs. there's like a million things on the internet debating which is better. Mar 20 19:36:37 I underestand that not everything can be done with web or native tradeoffs Mar 20 19:36:58 If i want a faster application i should use a native application Mar 20 19:37:06 however android itself is not native Mar 20 19:37:26 that doesn't make sense Mar 20 19:38:28 the only way it's "not native" is if you consider "native" to only be things hand-built in assembly or binary. then sure - but C++ isn't native either. Mar 20 19:38:30 android OS is not full native Mar 20 19:38:37 "In computing, the "native" adjective refers to software or data formats supported by a certain system with minimal computational overhead and additional components. This word is used in such terms as native mode or native code." the system is android and on android java and c++ are the native languages Mar 20 19:38:39 it sounds like you're confusing different meanings of the word native Mar 20 19:39:06 memorion: about binary blobs Mar 20 19:39:15 wut Mar 20 19:39:39 native like binary blobs Mar 20 19:39:57 asm for the win Mar 20 19:39:59 android OS is not a OS full compilated like IOS Mar 20 19:40:17 if it's not compilated, then what is it? Mar 20 19:40:42 Because to ensure compatibility has created a layer of amalgam Mar 20 19:41:15 android OS does not speak directly to devices Mar 20 19:41:23 sure it does Mar 20 19:41:36 it does, just the applications don't speak directly to the hardware Mar 20 19:42:25 I'm curious where you think llvm fits in here Mar 20 19:42:35 The_Photographer: it sounds like you're making excuses for not wanting to learn how to develop Android applications Mar 20 19:42:48 that's a c compiler that compiles to a virtual machine, like java. Mar 20 19:43:14 JesusFreke: I dont know if you know Dalvik VM Mar 20 19:43:23 The_Photographer: hahaha Mar 20 19:43:41 The_Photographer: I wrote a assembler/disassembler for dalvik's bytecode ;) Mar 20 19:43:54 JesusFreke: nice Mar 20 19:44:47 The_Photographer: you realize that dalvik has a jit layer, yes? Which actually compiles the bytecode to native code? Mar 20 19:44:58 and in lollipop, there's art, where everything is compiled to native code. Mar 20 19:46:03 JesusFreke: in the native code convertion you have a big quantity of trash Mar 20 19:46:26 The_Photographer: is that so? Mar 20 19:46:31 And you know this how? Mar 20 19:48:18 wait. do you really think GCC doesn't add a pile of trash to your C++ code? Mar 20 19:48:27 JesusFreke: it is a high-level conversion Mar 20 19:48:53 thus it is proven. I bow to your impeccable logic :) Mar 20 19:49:22 groxx: well, maybe for win is better borland, vc or ibm Mar 20 19:49:27 *compilers Mar 20 19:50:03 ... (╯ಠ□ಠ)╯︵ ┻━┻ Mar 20 19:50:10 How can I get the NDK to work in ARMv7 mode? Currently it's complaining about missing assembly for movw whic is present in A7 but not in A5. Mar 20 19:51:41 JesusFreke: I could use this "interview" to make a post in my blog under CC0 ? Mar 20 19:51:46 freeone3000: the ndk intro page says there's ARMv7-A info in the docs/CPU-ARM-NEON.html file. does that cover it? Mar 20 19:52:54 The_Photographer: interview? Mar 20 19:53:03 JesusFreke: well, irc chat Mar 20 19:54:36 The_Photographer: towards what purpose? Mar 20 19:54:43 to what* Mar 20 19:55:22 Due to.. reasons, I'm not going to agree to be quoted :) Mar 20 19:55:32 groxx: Not quite. I'm cross-compiling a library outside of an Android project. Mar 20 19:55:39 groxx: I'm running https://gist.github.com/freeone3000/7bc723f3f18dc25b9490 Mar 20 19:55:45 JesusFreke: Compare the ease of developing an application in c ++ form and Android, I'll use your comments as reference to certain points. Mar 20 19:56:07 but how can you judge that if you never developed android apps? Mar 20 19:56:28 freeone3000: ah. unfortunately I'm not sure :| I've pretty much only stumbled around with ndk stuff Mar 20 19:59:50 freeone3000: have you ever successfully cross-compiled something (so this is some abnormal error), or would this be the first? Mar 20 20:00:35 groxx: Libs that don't use assembly work fine. Libs that don't use these particular assembly instructions work fine. Mar 20 20:01:20 ah. yeah, unfortunately you're out of my league for this :) hopefully someone else picks up the thread. Mar 20 20:08:15 groxx use rx ? Mar 20 20:08:26 groxx does not use rx :( Mar 20 20:09:36 hm, well anyone - if i'm implementing something like Observable.map() and i'd like to signal onError() - do i just throw an exception from Func1(call T) { } body ? Mar 20 20:09:48 suspicious correlation detected: mention "thread", get "rx" recommendation. Mar 20 20:10:11 oh build-sdk tools 22.0.1 out Mar 20 20:10:32 should i use openjdk with android Mar 20 20:10:33 what's new since 22.0.0 ? Mar 20 20:10:54 hmm how to take a text file and squash it into one line? Mar 20 20:10:56 groxx: Rx helps a lot with threading considerations Mar 20 20:10:59 adq lol, you're looking for changelog :P good luck :D Mar 20 20:11:03 :)) Mar 20 20:11:07 (i knew the answer) Mar 20 20:11:10 Hiho! Mar 20 20:11:19 adq the answer is 'things happened' Mar 20 20:11:25 'things were fixed' Mar 20 20:12:17 g00s: How does reactive whatever solve a valgrind cross-compilation issue? Mar 20 20:12:20 lasserix: I'm gonna go with ruby: `File.put File.new(filename).lines.join("")` I think. Mar 20 20:12:36 freeone3000 rx ... valgrind ... wut O.o Mar 20 20:12:46 lasserix: maybe you can tr -d the newlines though? never tried. Mar 20 20:12:52 yeah Mar 20 20:13:08 other than the richedit by Commonsware https://github.com/commonsguy/cwac-richedit, are there any other richtext editors/viewers Mar 20 20:13:15 what JDK should i install for android-studio on linux? Mar 20 20:13:26 Hi. I have imported a 3rd party library into my project as a module and modified some of the source code. I need to upgrade to the latest version of the library, and I'm not sure the best way to do that and still keep track of the modifications i made. any tips? Mar 20 20:13:34 in Android Studio Mar 20 20:14:19 blndidiot: Fork and make your changes in a branch Mar 20 20:14:28 groxx rx is very helpful. but a few times, even where it would be elegant, i still went with other primitives to reduce GC - just gotta know how it works Mar 20 20:15:12 jaana: good idea. As far as "updating" the library goes... do I just delete the current module in my project, and start fresh, then copy my changes back over? Mar 20 20:15:39 blndidiot: Is that project a git project? If yes, you are in luck Mar 20 20:15:54 jaana: svn Mar 20 20:16:16 Then take a diff of what you did, save that in a patch file, clone the latest version of the project and try applying this patch Mar 20 20:16:23 g00s: yeah, tbh that makes me a bit :S about rx on android. looots of new-object-ing. Mar 20 20:16:37 blndidiot: also consider sending a pull request to that project with your changes, not much to lose Mar 20 20:17:02 g00s: I understand _why_, but it's still :S. maybe there's a variant that works on object pools that could be more efficient. Mar 20 20:17:14 groxx i think where it shines is "low frequency" composition of async typed streams Mar 20 20:17:14 jaana: OK thank you for the help, I'll see what I can figure out (just recently set up the SVN repo, so it's a bit new to me) Mar 20 20:17:16 Is OpenJDK the preferred option for a JDK when using Android Studio? Mar 20 20:17:41 blndidiot: Stop using Subversion, learn git Mar 20 20:17:59 groxx also, once a chain is in place, there overhead is typically an object per notification. where you get in trouble, is constantly creating new chains so ... it depends on the design Mar 20 20:18:10 jaana: or mercurial Mar 20 20:18:18 No, forget mercurial Mar 20 20:18:33 I know many have migrated to git over the years.. is it really that much better? Mar 20 20:18:41 it's night and day :) Mar 20 20:18:52 I used to use svn, and actually liked it Mar 20 20:19:00 And then I moved to git, and I can't imagine using svn now. Mar 20 20:19:05 huh. Mar 20 20:19:07 jaana: mercurial is good for some organizational structures Mar 20 20:19:10 I might take a look at it Mar 20 20:19:19 git is often best for a solo or small team project Mar 20 20:19:20 xnil: I’m not saying mercurial is not good, just to forget about it Mar 20 20:19:23 blndidiot: the main thing you'll gain with git over svn is, imo, local branches. it makes branching a thing you do _all the time_ instead of some big decision. that changes how you use and think about version control. Mar 20 20:19:27 blndidiot: there is definitely a learning curve though Mar 20 20:19:31 jaana: depends on what they want to do Mar 20 20:19:34 mercurial is on the way to irrelevancy, no point in learning it Mar 20 20:19:49 and if you ever have to learn it one day and you alreayd know git, it’s trivial Mar 20 20:19:51 it probably comes down more to centralized vs distributed workflow. i've heard svn merging has gotten much better Mar 20 20:19:51 so learn git now Mar 20 20:19:52 blndidiot: there's a lot of other neat stuff that isn't usually actually useful, but drives a better underlying concept. Mar 20 20:20:00 COBOL programmers making 6 figures comes to mind Mar 20 20:20:11 mercurial is on the way to irrelevancy, no point in learning it << wat?! Mar 20 20:20:20 what have i started.. lol Mar 20 20:20:30 nothing, don't worry Mar 20 20:20:43 blndidiot: I highly recommend http://git-scm.com/book/en/v2 Mar 20 20:21:16 thank you Mar 20 20:21:17 blndidiot: version control, it's new the vi vs. emacs :) Mar 20 20:21:40 i do think its funny though; back in the day when svn came out - there was the red svn book. thats all you needed. svn was easy. with git, there is a new tutorial like every day because ... git Mar 20 20:21:53 JesusFreke: fortunately emacs is getting common lisp scripting and vim is being superceded by neovim Mar 20 20:21:59 blndidiot: ^ and also it's probably worth learning how git works underneath, since it helps explain a lot of its behaviors and interface decisions Mar 20 20:22:07 xnil: I can't stand either, so I'm good :) Mar 20 20:22:15 fair enough Mar 20 20:22:27 i feel like not liking vim is the result of not knowing all its features though Mar 20 20:22:47 I can't stand a dual mode editor Mar 20 20:22:55 a modal editor* Mar 20 20:23:49 g00s: well, also because the internet seems to be in a big tutorial craze at the moment. _everything_ is a tutorial, because everything wants to be agile, rather than reading the source. Mar 20 20:23:59 xnil: but in any case, let's not get into it :) Mar 20 20:24:12 not necessarily claiming it's bad, but it's a thing, and it influences things. Mar 20 20:24:26 only if you'll tell me if openjdk is the preferred option for android studio Mar 20 20:24:42 doubt it makes a difference Mar 20 20:24:46 xnil: ^ Mar 20 20:24:50 Does overridePendingTransition(0,0); apply to finish? Mar 20 20:24:59 lasserix: yeah, but call it after finish Mar 20 20:25:13 how do you prevent current activity animation out ? Mar 20 20:25:47 Hi guys Mar 20 20:25:49 * groxx hates that overridePendingTransition is even a thing Mar 20 20:25:59 what does everyone here use as their jdk? Mar 20 20:26:14 I'm planning on making a little fire animated fire element, which will spread on a canvas. Mar 20 20:26:26 xnil: jdk1.8.0_05 Mar 20 20:26:32 Is anyone here who can help me with a little problem in my android code? Got one or two questions. Mar 20 20:26:41 I guess I don't have a quesiton, just wanted to share. Mar 20 20:26:43 my plans. Mar 20 20:26:50 Barny: ask away, hard to know who can help before we know the questions :) Mar 20 20:27:37 groxx _05 is pretty raw. i'd update to 40 or something :D Mar 20 20:27:56 dunno if there is an update for osx :) but noted, I'll see if there is one Mar 20 20:28:09 oracle jdk sure Mar 20 20:28:30 just don't install ask.com toolbar XD XD Mar 20 20:28:34 honestly i didn't see that option Mar 20 20:28:39 :D you´re right^^ Got two activities, and started a thread in the first. After that I start a second activity and want to access the created thread. Is that possible? Tried it with intent extras, but no result... Mar 20 20:28:44 g00s: lol Mar 20 20:30:38 Barny: Instead of starting a thread directly in your activity, you might consider starting and/or binding to a service instead Mar 20 20:30:46 Barny: technically: you can put threads in a Parcelable object (just don't serialize it), BUT they won't exist if your process dies and is being recreated. odds are you're better off using a Service. Mar 20 20:30:58 Barny: and depending on what you're wanting to do, you might consider an IntentService Mar 20 20:31:01 Barny: what are you trying to do in the thread? Mar 20 20:31:10 Barny: in / with Mar 20 20:31:20 threads in parcelable ? Mar 20 20:31:56 groxx what is a legit use case for that ? Mar 20 20:32:04 g00s: yeah. Parcelable objects aren't actually parceled unless necessary, so they survive until it crosses process boundaries / saves to disk. Mar 20 20:32:09 My thread communicates with a chatserver. And I want to retrieve the messages in all Activities. But I dont want to create multiple connections Mar 20 20:32:29 Barny: that definitely sounds like a Service :) Mar 20 20:32:56 g00s: for threads, not much :) for passing arbitrary non-serializable data between things in an intent, e.g. as an optimization: it works fine, though there are other options too. Mar 20 20:32:59 just note that starting a Service doesn't start a new thread, so you would still need to create a thread in the service Mar 20 20:33:44 And then you could bind to that service in order to get a reference to it from your activities Mar 20 20:34:02 JakeWharton if you need to signal onError in a supplied rx operator like map, just throw an exception ? Mar 20 20:34:11 Okay, thx for the help! I will try it :) Mar 20 20:34:22 But you'll also likely want to start the service (not just bind to it), so that the lifetime of the service isn't bound to your activities Mar 20 20:34:24 g00s: yep Mar 20 20:34:29 thx Mar 20 20:34:41 g00s: everything is wrapped in a "safe subscriber" which will correctly propagate runtime exceptions Mar 20 20:35:16 yeah sounds right. thanks! Mar 20 20:43:51 http://blog.echolocker.com/performance Mar 20 20:44:14 hi, can I ask about android application development or android channel is for that? Mar 20 20:44:55 this chan is for that yes Mar 20 20:46:21 I wanted to get started at android development, can you suggest any good book/site/material? Mar 20 20:48:58 do you guys prefer android studio or eclipse as your default IDE? Mar 20 20:48:59 eze, I've heard the coursera course is pretty good https://www.coursera.org/course/androidpart1 Mar 20 20:49:26 android studio is what most ppl use now Mar 20 20:50:47 nothing beats notepad Mar 20 20:50:52 nice, I just bought a book about android development Mar 20 20:51:12 and I'll try to learn :) Mar 20 20:51:50 But syntax highlighting is nice so I mostly use word and highlight keywords and stuff different colors Mar 20 20:51:51 Thanks, I think I have a place to start I guess Mar 20 21:02:49 hey anyone know how I can store a future time, lets say someone picks a day on the calendar and then a time, how do I combine the two Mar 20 21:02:52 hi there o/ Mar 20 21:03:55 reading through adt-dev posts ... i feel amazingly lucky i'm not having those problems Mar 20 21:04:27 is any one using cwac-camera ? I have a little problem, the preview is kind of blinking at the begining (i'm suspecting it to reload, 2 or 3 times). I use "singleshot mode", and if the blink occurs after the shot has been done, the preview is still activated once the user has taken the picture. Does this bug ring a bell to someone ? Mar 20 21:04:29 Lonesoldier728: plug that info into a Calendar, and call getTimeInMillis() on it. Store that value. Mar 20 21:04:40 yeah just got it Mar 20 21:04:47 blusky i thought he gave up on cwac-camera ? Mar 20 21:05:06 Hello everyone. Using Android Studio, I created both a portrait and landscape layout but, at least on the emulator, it only uses the portrait layout. I created the landscape layout in the "\app\src\main\res\layout-land" folder and it shows correctly in the project explorer and ion design mode. Can someone please help me find why my layout is not being used? TIA!! Mar 20 21:05:11 g00s: nop, using it, but concidering changing it if I can't correct this ... Mar 20 21:05:20 (and it would be a lot to refactor ...) Mar 20 21:06:48 nimbiotics: do you have any configChanges="" set on your activity? Mar 20 21:07:54 I am trying to actually do something pretty confusing... I want to let people customize what a day is if it is 6am to 5pm or 8am to 8pm... then I want to let them say what day the week starts on for them, if it is monday at 7pm or wed at 3am... then I want to let them choose an end date for the task so this wed 8pm till next tues 3am... and I want to figure out how many hours are considered daytime (according to their day c Mar 20 21:07:54 ustomization) Mar 20 21:08:57 Lonesoldier728: makes sense. though watch out for DST changes :) Mar 20 21:09:31 aha, well outside of worry about DST changes, how do I go about what I described Mar 20 21:09:37 having a hard time piecing it together Mar 20 21:09:43 Anyone know how linkify works? I have ... in textview using html.fromhtml if i setMovementMethod it works, but if I add linkify.PHONENUMBERs it fails Mar 20 21:10:39 was thinking maybe getting the start time putting it in the calendar then see what hour of the day it is and going like that but not sure how I would calculate each day Mar 20 21:12:47 groxx: no Mar 20 21:12:54 Lonesoldier728: yeah, that's pretty much what I would suggest. Calendar has a "add" function to advance values + move the day/week/month/hour/etc if necessary. check out the intro at the top of http://developer.android.com/reference/java/util/Calendar.html Mar 20 21:13:32 Lonesoldier728: otherwise, if the API seems to make more sense, consider JodaTime. it's the time library for java 8, and it seems nicer to work with. I haven't used it though. Mar 20 21:14:07 nimbiotics: do you have any other layout-/ folders? Mar 20 21:15:20 Lonesoldier728: but to summarize: date / time math is hard, because it's inherently complex. think carefully about what you want, and make sure you do calculations in the right context (e.g. UTC vs local-time vs whatever). Mar 20 21:15:30 there's no getting around that Mar 20 21:17:11 yeah ok Mar 20 21:17:23 thanks im looking into the joda and the regular calendar Mar 20 21:21:05 Lonesoldier728: https://github.com/dlew/joda-time-android Mar 20 21:21:34 Joda time android that dan lew made helps out with the memory footprint Mar 20 21:22:01 it used to take joda time forever to parse the tzdata Mar 20 21:22:06 like ... seconds ... Mar 20 21:22:27 Relavent blog post http://blog.danlew.net/2013/08/20/joda_time_s_memory_issue_in_android/ Mar 20 21:27:29 hmm thanbks Mar 20 21:27:31 thanks Mar 20 21:32:00 I see 90% of the market has Android version 4.0 or later. At this point, is it unreasonable to develop for >= 4.0 or later when building a new app? Mar 20 21:32:10 Looking for opinions Mar 20 21:32:41 Api 19 or bust! ;) Mar 20 21:33:24 But yes. There isn't much reason to support older than 4.0 unless you're a team working on a commercial product. Imo. Mar 20 21:33:56 The added burden really needs money to drive it, I'd say. Mar 20 21:38:22 lewellyn, what if you're a startup wanting to launch a new app? I suppose it makes sense to ease development, and you can always support later if necessary, right? Mar 20 21:41:55 If you're a startup, you need to gauge your market and act appropriately. Mar 20 21:42:33 For example, if you are targeting people who have low end devices, gingerbread all the way. Mar 20 21:43:48 AndreasL http://en.wikipedia.org/wiki/Android_version_history#/media/File:Android_historical_version_distribution_-_vector.svg Mar 20 21:44:57 lewellyn, yeah, that's a good point. I think for our particular case it is unlikely that there is any particular relation between our target market and android version, but it is of course an assumption that must be validated! Mar 20 21:45:26 thanks g00s, that's useful! Mar 20 21:49:25 I swear api 9 and 19 will never die. :( Mar 20 21:50:42 Oh hey. Can someone link the standard gcm page? I want to bookmark it on my phone. Mar 20 21:50:54 Standard reply link, that is. Mar 20 21:51:35 https://developer.android.com/google/gcm/index.html Mar 20 21:51:36 this one? Mar 20 21:52:43 No. The one about how to do it right. :) Mar 20 21:56:03 lewellyn: the push bullet one? Mar 20 21:57:16 expecting browser updates in 3 .. 2 ... 1 Mar 20 21:58:42 Groxx, sounds right. Mar 20 22:00:00 lewellyn: https://blog.pushbullet.com/2014/02/12/keeping-google-cloud-messaging-for-android-working-reliably-techincal-post/ Mar 20 22:00:33 Thanks. :) Mar 20 22:01:15 I knew there was a typo in the url, but that knowledge was insufficient to find it. :) Mar 20 22:11:19 just got a xoom tablet working, 4.0.2, newer than i thought it would be Mar 20 22:11:32 not even 4.0.4? D: Mar 20 22:12:17 the desktop is still honeycombs Mar 20 22:15:12 I would like a widget, like an horizontal listview (mainly icons), and selected item must be centered. It would be kind of a selector. Mar 20 22:15:21 does any one know a widget that does that ? Mar 20 22:15:36 maybe a viewpager? Mar 20 22:15:46 groxx: it's not linked to fragment Mar 20 22:15:49 but that's the idea Mar 20 22:16:05 viewpager isn't fragments-only, fwiw Mar 20 22:16:12 oh Mar 20 22:16:17 I'm gonna look into that then :) Mar 20 22:17:59 "Fire extinguisher factory destroyed in massive blaze" Mar 20 22:21:01 JakeWharton: https://github.com/JakeWharton/ViewPagerIndicator gave me a 404 on the android market link Mar 20 22:21:13 i removed it last year Mar 20 22:21:17 oh Mar 20 22:22:14 the last commit date on the project should give you an idea of how up-to-date it is Mar 20 22:22:29 indeed :D Mar 20 22:22:54 i would like to rewrite the whole project from scratch, but I have neither the time nor interest Mar 20 22:23:29 I can understand that :D so many awesome projects you already have :) Mar 20 22:23:29 blusky this exists: https://github.com/jpardogo/PagerSlidingTabStrip if you're looking for something like that Mar 20 22:23:49 memorion: it's exactly that !!! Mar 20 22:23:50 thanks :) Mar 20 22:24:48 blusky np, but maybe it's worth implementing that yourself there is an official sample: https://www.youtube.com/watch?v=tRg_eDfQ8fk + link in the description Mar 20 22:26:06 groxx: getting 4.0.4 now Mar 20 22:26:39 JakeWharton looking at this link you posted a few days ago ... wouldn't you want the unsubscription action to remove the task from the executor? it looks like it just cancels the task https://github.com/square/retrofit/blob/parent-1.9.0/retrofit/src/main/java/retrofit/RxSupport.java#L41 Mar 20 22:26:56 Goos, is that fire thing legit? Mar 20 22:26:59 cancel is all you need Mar 20 22:27:02 if it hasn't run it doesn't Mar 20 22:27:11 lewellyn yeah haha Mar 20 22:27:27 we can't reliably interrupt with Retrofit v1's synchronous HTTP client Mar 20 22:27:32 so whatevs Mar 20 22:29:04 it's me or every AS >1.1 have several performance issues Mar 20 22:29:46 i notice 1.2 using more memory. editor? gradle? my builds are usually 30 seconds Mar 20 22:30:13 hello Mar 20 22:30:27 hey can someone help me with a question i have Mar 20 22:30:40 Goos, the Chicago Tribune tried hard to not make the headline seem at all amusing. Mar 20 22:30:47 DeathCode: only once it's asked :) Mar 20 22:30:57 ok Mar 20 22:31:16 so i'm making an app that is basically going to create people's profiles and put them on the web for retrieval later Mar 20 22:31:19 lewellyn :D hopefully nobody was hurt, i didn't read the story Mar 20 22:31:30 how do i even start on learning that? Mar 20 22:31:52 DeathCode you start learning that by starting to learn how to learn Mar 20 22:32:03 No injuries. http://www.chicagotribune.com/news/local/breaking/chi-extra-alarm-fire-chicago-20150319-story.html Mar 20 22:32:03 mostly the layout editor, it's taking 2-5 seconds to apply changes from design or text Mar 20 22:32:23 DeathCode: pick a server stack, learn it, pick up android, learn it. probably in parallel. Mar 20 22:32:25 DeathCode: Learn to program? Mar 20 22:32:27 ohh that thing, i never use layout editor Mar 20 22:32:34 i learned how to program java Mar 20 22:32:36 and make the app Mar 20 22:32:49 i just need my app to store its data on a web server so it can be retrieved later Mar 20 22:32:52 from any country Mar 20 22:32:54 anywhere Mar 20 22:32:57 from the internet Mar 20 22:33:09 make a web service Mar 20 22:33:17 DeathCode: if you like javascript, try node.js. otherwise maybe django or rails or PHP via LAMP. Mar 20 22:33:27 which one is simplest/easiest? Mar 20 22:33:34 really? Mar 20 22:33:43 man i just wanna get this shit underway Mar 20 22:33:47 dont judge me Mar 20 22:33:53 Ask stack overflow! ;) Mar 20 22:33:54 Well then how bout we code it for you too Mar 20 22:34:01 we'll get this shit done Mar 20 22:34:06 there's no easy answer :) all the fast-to-start ways have big learning curves if you want to get past the basics / change the default behavior. Mar 20 22:34:16 g00s what do you use for design? I feel stuck with regular AS editor :( Mar 20 22:34:46 DeathCode: or, I dunno, firebase / parse / some other fully-hosted solution might be fastest. Mar 20 22:34:47 omg u guys are so snooty Mar 20 22:34:55 except groxx Mar 20 22:35:14 cliffreich i use the preview but just edit XML by hand. onw i have more serious problems with 1.2, like beingable to type wrong Java without red feedbackmarkers. then they show up after a build is attempted Mar 20 22:35:15 groxx so i want to start with javascript Mar 20 22:35:26 where to even start learning it? Mar 20 22:35:29 groxx ? Mar 20 22:35:45 how did you start learning android? do the same for javascript Mar 20 22:35:46 ping him/her a few more times Mar 20 22:36:09 DeathCode: dunno. googling "node.js guide" got a handful of promising things though Mar 20 22:36:22 ok thank you so much :) Mar 20 22:36:43 memorion:i learnt java while tied to a stick back in afghanistan Mar 20 22:37:01 memorion:i used code to escape from my prison Mar 20 22:37:08 g00s what about 1.3? i officially hate 1.2 as my laptop died (bad shutdown) and corrupted all my config files Mar 20 22:37:37 DeathCode: mostly I lean towards recommending node.js because it's relatively simple, so there aren't that many surprises. I do rails for work, and though I really like it, there's a _massive_ leap in difficulty once you need to break outside its defaults. Mar 20 22:37:57 cliffreich AS 1.3 O.o Mar 20 22:38:03 gonna learn node.js and ruby rails next Mar 20 22:38:05 1.2 is canary Mar 20 22:38:12 node is also a bit quicker to get started with / cheaper to host, rails uses a lot of CPU and memory Mar 20 22:38:21 Gotta learn em all Mar 20 22:38:25 interesting :) Mar 20 22:38:47 Codémon! Mar 20 22:39:08 Fortran can process things faster though so you might want that Mar 20 22:39:12 want to learn that* Mar 20 22:39:19 http://memegenerator.net/instance/35368938 Mar 20 22:39:20 oh yes, i mean 1.2 preview 3 Mar 20 22:39:33 Don't forget COBOL. Mar 20 22:39:41 I ALMOST DID Mar 20 22:39:45 WHAT Mar 20 22:39:47 great suggestion, lewellyn Mar 20 22:40:03 Prolog and Lisp too Mar 20 22:40:13 bah. go pure: run lisp on a lisp machine. Mar 20 22:40:36 http://azac.pl/cobol-on-wheelchair/ Mar 20 22:40:40 http://en.wikipedia.org/wiki/Lisp_machine Mar 20 22:40:57 or maybe http://is.gd/WVZvnI Mar 20 22:41:04 When I see "Lisp machine" I think of a bunch of tongues spitting at me Mar 20 22:42:32 I still haven't looked at gnu COBOL's java c api layer yet. Mar 20 22:42:58 Is it possible to add text to the bottom of an email, started with ana activity? Mar 20 22:43:00 It'd be neat to see if it can be made to work with android. Mar 20 22:43:38 Probably requires awt or something though. Mar 20 22:43:46 lewellyn: kinda. add an Intent.EXTRA_TEXT string. Mar 20 22:44:05 Wrong l. ;) Mar 20 22:44:38 I'm the one rambling about a language no one else in here has even likely seen in the wild. :) Mar 20 22:44:50 ah, right. names are almost the same width and color :| lasserix ^ Mar 20 22:46:35 ? Mar 20 22:46:41 whaaa? Mar 20 22:46:47 lasserix: "add an Intent.EXTRA_TEXT string" Mar 20 22:46:50 yeah Mar 20 22:46:53 but how to put it at the bottom? Mar 20 22:46:57 err Mar 20 22:47:14 i guess, is it possible to place cursor at the beginning ofthe email, above the extra text? Mar 20 22:47:18 well, since you'll be providing _all_ the text, it'll implicitly be at the bottom, kinda :) Mar 20 22:47:48 lasserix: there should be some "quote previous" option or something Mar 20 22:47:53 I don't know of any way to control the cursor, no. but I think gmail at least starts you scrolled up. Mar 20 22:47:55 I forget what it's called Mar 20 22:48:07 orly? that would be cool Mar 20 22:48:40 lasserix: "respond inline" Mar 20 22:49:01 oh, from an intent though? Mar 20 22:49:02 not sure Mar 20 22:59:45 Is there some way to dump the retrofit log to a string? Mar 20 23:02:25 setLog Mar 20 23:19:43 xoom is at 4.1.2 now, same as my droid 4 Mar 20 23:19:51 first totally generic android device i've used Mar 20 23:19:56 outside of emu Mar 20 23:20:23 myke: "generic"? like, not samsung-ized? Mar 20 23:20:42 right, looks just like 4.1.2 on an emu Mar 20 23:20:51 or verizon-ized, etc Mar 20 23:35:05 When I run the emulator, I use dot get a handful of buttons (Home, back, menu, etc.) Now I don't . I can't figure out how to ge tthem back. Suggestions? Mar 20 23:36:08 dcorbin_: it's the emulator skin. you can change it in the advanced options when editing the emulator Mar 20 23:39:26 groxx: I could care less what it looks like. I need one that functions. Care to recommnend on? ( Mar 20 23:39:53 dcorbin_: the skin defines the emulator buttons. try one of the others, they're built in. Mar 20 23:45:26 groxx: my point is nothing in the skin name tells me if it shows buttons. Mar 20 23:45:59 And I wouldn't care if the pictured icons on the skin were active, but they don't appear to be. Mar 20 23:46:19 dcorbin_: ah. most or all of the generic (WXVGA, etc) ones have keys, i think Mar 20 23:47:34 I don't know why they switched them all to "none" in the current version :| it's annoying. Mar 20 23:56:32 I don't have any generic skins. They're all nexus (or tv or the really wierd ones) Mar 20 23:57:00 huh. definitely weird. what are the dimensions? I can find or modify one of mine (they're stock ones, maybe from older build tools versions?) Mar 20 23:58:48 480x800 is what I'm doing mostly (so far). Mar 21 00:00:20 anyone use new relic crash reporting? Mar 21 00:01:23 dcorbin_: http://cl.ly/2i020X170S2Y Mar 21 00:02:06 lasserix: for a couple years, until a year ago, yeah Mar 21 00:02:15 oh yeah groxx? what is it like? Mar 21 00:02:17 pos? Mar 21 00:03:15 lasserix: expensive if you go past their free tier. beyond that, it gives you a LOT of info, and on rails the setup is practically nothing. no real complaints, aside from the occasional update of their gem to patch security holes. Mar 21 00:03:35 you used their android sdk? Mar 21 00:03:43 aah, for android, no. sorry, just server. Mar 21 00:04:37 their server stuff is pretty rich and useful though. I'd consider them worth a try. Mar 21 00:04:58 ahh Mar 21 00:05:06 yeah being forced to use it but their android sdk looks really shabby Mar 21 00:05:09 *incomplete Mar 21 00:05:29 trying to find an example of what they track on android :\ Mar 21 00:05:37 not much luck, which isn't usually a good sign Mar 21 00:06:09 I can at least say that fabric / crashlytics' analytics is totally worthless. the crashlogging is among the best though. Mar 21 00:07:04 annoying UI at times, doesn't give you details in a few important (at times) areas, but it's free and handles a lot of data well. Mar 21 00:07:25 groxx do they still require some gradle plugin ? Mar 21 00:07:29 or AS plugin Mar 21 00:07:38 g00s: yeah, and by default it tries to upload EVERY build >:[ Mar 21 00:07:46 wtf Mar 21 00:08:02 and it doesn't play nicely with multiple user accounts, though there's a hidden keyboard shortcut to do it apparently Mar 21 00:08:27 g00s: in theory I guess it would be useful if you used the debug builds for a while, away from the computer. then you'd get logs. Mar 21 00:08:42 but I find it unacceptably intrusive Mar 21 00:09:14 :/ Mar 21 00:10:43 g00s: ah, there we go. I haven't tried it before, but they claim you can set buildType { { ext.crashlyticsEnabled = false } to stop the upload. which is not documented anywhere I've seen. Mar 21 00:10:55 Using fabric with maven here, simply not including it for dev builds. It is simply amazing for production builds though. Also great way to let testers send us crash reports. Mar 21 00:11:39 prior to learning that from a bit of emailing, I added a beforeTask that deletes their actions, which fixed things. Mar 21 00:19:13 Chainfire: Ping Mar 21 00:20:03 Any chance you can share the vid, pid list for Android devices ? Mar 21 00:20:35 It was available at http://usbhost.chainfire.eu/ a while ago. Mar 21 00:22:43 It would be of great help for our open source project. https://github.com/praveendath92/bard-linux Mar 21 00:24:59 Hi Mar 21 00:25:02 why can it be that a View is not responding to CENTER_IN_PARENT? Mar 21 00:25:07 it's on top Mar 21 00:25:19 I had this working but I changed something and it broke some commits ago, apparently Mar 21 00:28:54 show your Mar 21 00:28:55 code Mar 21 00:30:31 groxx yeah they use it for their servers so i am stuck implementing it for the android app Mar 21 00:30:47 but it reaally looks like an aftertought so well anyways Mar 21 00:32:33 is there a screenshot of what logs look like with Timber? Mar 21 00:33:44 https://gist.github.com/Papipo/27dc37d1195c90dee7ae Mar 21 00:33:54 I think that's all the relevant code Mar 21 00:34:13 the progressbar here https://gist.github.com/Papipo/27dc37d1195c90dee7ae#file-imagewithprogressbarview-java-L21 Mar 21 00:34:21 http://i.ytimg.com/vi/ADgOdcuY28M/hqdefault.jpg Mar 21 00:34:25 is what is on top instead of centered vertically Mar 21 00:35:06 well Mar 21 00:35:11 its match parent height Mar 21 00:35:22 so... Mar 21 00:35:28 it can't be centered as far as layout Mar 21 00:35:32 vertically Mar 21 00:36:13 lol lasserix you know what I meant Mar 21 00:37:44 Yeah I still don't have any idea what Timber does :/ Mar 21 00:37:58 if I set the layout_height to wrap_content, I still have the same problem Mar 21 00:38:11 then something is wrong in how you add the parent view Mar 21 00:38:39 Afzal: https://github.com/JakeWharton/timber/blob/master/timber/src/main/java/timber/log/Timber.java Mar 21 00:39:18 Afzal: as you can see, it prints things as if you were on Pandora, and were in fact a blue space monkey Mar 21 00:39:20 I'm looking at it. Does it automate logging or does it format log messages? I understand what the example does and that's cool Mar 21 00:40:33 eh, I'll just compile the sample app Mar 21 00:41:43 ugh, not a gradle project :/ Mar 21 00:42:55 eh screw it Mar 21 00:46:58 Hi!, how to get a editText inside an alert? I'm using "creating custom layout" code example from https://developer.android.com/guide/topics/ui/dialogs.html and in onClick method from setPositiveButton only say as a comment "// sign in user" but inside it I need to call what and how??? Mar 21 00:48:54 this center on parent thing is driving me mad Mar 21 00:48:56 sigh Mar 21 00:51:06 feathersanddown: I don't really understand your question. Are you asking how to get a reference to the EditText? Mar 21 00:51:25 yes, get value Mar 21 00:51:32 sorry my english is very poor Mar 21 00:52:28 One way would be to say something like "final View rootView = inflater.inflate(R.layout.dialog_signin, null); builder.setView(rootView); ... EditText editText = (EditText) rootView.findViewById(R.id.whatever_edit_text); doSomethingWith(editText.getText().toString());". Mar 21 00:52:50 aahh, a local variable Mar 21 00:53:14 It has to be final because it's accessed in the anonymous class. An alternative is to use a field. Mar 21 00:53:36 (I'd use a field and inner classes instead of anonymous classes, personally, but I'm kinda weird about that. :) Mar 21 00:54:07 oh , i'm following the example, i'm new to android :) Mar 21 00:54:17 thanks for the help :) Mar 21 00:54:32 Both ways lead to the same result (just different-looking code). They're both good. :) Mar 21 00:54:44 papipo: What is driving you mad? Mar 21 00:55:02 A progressbar that refuses to center on its parent Mar 21 00:55:22 and I had it working at some point (or at least I think so, it's late here) Mar 21 00:57:16 Should work without issue in a RelativeLayout or whatever. Mar 21 00:57:49 have you seen my gist? Mar 21 00:57:56 Nah, I just joined. Mar 21 00:58:00 https://gist.github.com/Papipo/27dc37d1195c90dee7ae#file-imagewithprogressbarview-java-L21 Mar 21 00:58:11 I think that's all the involved code Mar 21 00:58:30 it's just a custom RelativeLayout to show a progressbar while an image loads Mar 21 00:58:45 and there is a child class that just squares it Mar 21 00:59:04 in case it needs to be squared to display instagram images (in this case) Mar 21 00:59:27 I already tried changing the LayoutParams Mar 21 00:59:43 wrapping content or matching parent Mar 21 00:59:48 same with the XML Mar 21 01:00:49 the layout is square and big enough, I can see that while the image loads Mar 21 01:03:25 papipo: where is the progressbar currently displaying? Mar 21 01:03:49 the view is being inflated from XML Mar 21 01:03:53 it's on the bottom of the gist Mar 21 01:04:16 papipo: I'm wondering where on the screen it is actually showing rather than the center Mar 21 01:04:26 top Mar 21 01:04:29 Top left? Mar 21 01:04:32 just top Mar 21 01:04:36 top center Mar 21 01:04:38 Oh. Mar 21 01:04:48 so it centers. a bit Mar 21 01:05:04 Try "new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);". Mar 21 01:05:08 Instead of MATCH_PARENT for the latter. Mar 21 01:05:16 (For the ProgressBar.) Mar 21 01:06:06 papipo: What is the layout_width and layout_height of the parent of SquareImageView? Mar 21 01:06:30 both match parent Mar 21 01:07:10 papipo: I would also suggest trying wrap_content for both of the layout params Mar 21 01:07:17 for the progress bar Mar 21 01:07:52 yeah, I already tried that Mar 21 01:07:57 papipo: Hmm.. Mar 21 01:08:04 actually that's how it was on the first place Mar 21 01:08:18 I guess that I started poking around once it stopped working Mar 21 01:08:27 because I am *pretty* sure it worked Mar 21 01:08:29 papipo: Then try it again? Mar 21 01:08:32 but who knows Mar 21 01:08:39 MATCH_PARENT doesn't look right for a circular ProgressBar. Mar 21 01:08:45 I agree Mar 21 01:08:47 that's what I have now Mar 21 01:08:52 hmm Mar 21 01:09:13 papipo: What do you have now? Mar 21 01:09:16 My theory was that if the progress bar's height matched it's parent, then it won't center vertically because it matches the parent's height. Mar 21 01:09:18 LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); Mar 21 01:09:32 sure, that makes sense Mar 21 01:09:41 but it's not why is broken Mar 21 01:09:42 not in this case Mar 21 01:10:02 papipo: Have you tried changing SquareImageView to wrap_content for both width and height as well as that? Mar 21 01:11:50 not sure, let's try Mar 21 01:11:57 I think I tried all combinations Mar 21 01:12:01 but, who knows :P Mar 21 01:12:09 let's try it for sanity's sake :) Mar 21 01:12:42 same result Mar 21 01:12:59 sigh Mar 21 01:15:15 exactly Mar 21 01:16:15 Did changing to WRAP_CONTENT/WRAP_CONTENT change the position of the ProgressBar from top-middle? Mar 21 01:17:28 I still have a feeling this is related to the width/height of the views. Something that might help is to color the background of each of the views to see the area they're taking up. Mar 21 01:18:02 Another thing that I would suggest..is changing the ImageView to WRAP_CONTENT/WRAP_CONTENT as well Mar 21 01:18:02 Yep, it's the best hypothesis really. Mar 21 01:18:13 (The first thing you said.) Mar 21 01:20:21 gonna try the background thingy Mar 21 01:20:48 TacticalJoke: I got the same result with wrap wra Mar 21 01:20:49 p Mar 21 01:21:11 question Mar 21 01:21:16 before trying that Mar 21 01:21:20 this is a relative layout Mar 21 01:21:32 are all elements supposed to be relative to something? Mar 21 01:21:39 because the progressbar is relative to its parent Mar 21 01:21:48 via center_in_parent Mar 21 01:21:54 but the imageview is just added there Mar 21 01:22:09 It's fine for something to simply have layout_centerInParent set. Mar 21 01:22:24 I think he's asking about a view that has no layout alignment to it Mar 21 01:22:25 Stuff is added at the top-left by default. Mar 21 01:22:29 yeah Mar 21 01:22:44 s/added/drawn/ Mar 21 01:23:13 ok, I am quite new here so just checking :) Mar 21 01:23:30 The fact that your ProgressBar isn't at the top-left shows that something is going on. Mar 21 01:24:25 I'm curious to know what happens to a view that has match_parent in a relative layout which has another view inside it. Mar 21 01:25:33 amarein: It'll match the size of the RelativeLayout and just ignore the other view. Mar 21 01:26:12 It might be drawn behind or in front of the other view (but of course transparency might mean this is inconsequential). Mar 21 01:26:36 so Mar 21 01:26:37 TacticalJoke: Interesting, for some reason I thought only frame layouts can draw stuff behind or in front Mar 21 01:27:11 the layout has the expected dimensions Mar 21 01:27:14 it's square Mar 21 01:27:16 like the image Mar 21 01:27:31 the spinner is just of its visible size Mar 21 01:27:41 s/spinner/progressbar Mar 21 01:27:52 nothing unexpected here Mar 21 01:28:15 hm Mar 21 01:28:26 I don't really know if this is how you are expected to add a progressbar to a loading image Mar 21 01:29:25 Are you reusing this ImageWithProgressBarView a lot? Mar 21 01:29:31 btw, I tried not adding the image and the result is the same Mar 21 01:29:45 in two places now Mar 21 01:29:49 but I might reuse it more later Mar 21 01:29:51 I see, just wondering. Mar 21 01:29:59 I have a list of pics Mar 21 01:30:05 like the instagram app Mar 21 01:30:08 and I also have a list of videos Mar 21 01:30:13 I show their thumbnails Mar 21 01:30:14 anyone here use the better pickers library? Mar 21 01:30:24 just different aspect ratio, but same expected behaviour Mar 21 01:31:36 DadFoundMy why use betterpickers, when you can use BestPickers ! Mar 21 01:32:17 ok, betterpickers Mar 21 01:32:20 another library Mar 21 01:32:30 this android ecosystem is tiresome T_T Mar 21 01:32:45 and I am not even able to center a damn view Mar 21 01:33:04 g00s: im embarressed by how much i just google bestpickers Mar 21 01:33:19 :D Mar 21 01:33:21 papipo: This is really simple. You must be doing something basic wrong. Mar 21 01:34:01 papipo: its what makes android so great :D Mar 21 01:34:13 I don't mean that negatively. Meant it like "This is surely fixable". Mar 21 01:34:16 excspecially now that gradle is intergrated with AS Mar 21 01:35:38 sure Mar 21 01:35:42 that's what pisses me more Mar 21 01:35:48 it's probably something stupid Mar 21 01:35:56 I should try to strip down my code Mar 21 01:36:05 and see if I can find the source of the problem Mar 21 01:36:07 anyway Mar 21 01:36:11 thanks a lot for your help Mar 21 01:36:22 I'm going to bed, it's 2:35 AM here Mar 21 01:36:28 enough android Mar 21 01:40:07 I tried adding the betterpickers library to my project with gradle but i am getting some gradle errors "Attribute "track" has alreadybeen defined" Mar 21 01:42:19 it seems as though the altest version of the library doesnt work with api 21 :/ Mar 21 02:04:16 hehe http://cocoamine.net/blog/2015/03/20/replacing-photoshop-with-nsstring/ Mar 21 02:10:32 g00s: lol Mar 21 02:10:57 groxx easier to put art under version control :) Mar 21 02:11:02 indeed Mar 21 02:11:08 also readable in code is kinda nice :) Mar 21 02:11:26 though I guess that should be: "readable" in code Mar 21 02:12:38 along similar terms, I love things like this for documentation: http://asciiflow.com/ Mar 21 02:14:21 quicker to understand everything at play than the prose above it: http://cl.ly/image/0R0C13220Z0Z Mar 21 02:15:23 That's interesting. I actually find myself using ASCII Art by default when sketching GUIs. There's something so fundamentally simple about it. Mar 21 02:15:24 I am still here and I haven't been able to fix the CENTER_IN_PARENT thing Mar 21 02:15:29 now I am really going to beed Mar 21 02:15:33 bed* Mar 21 02:15:34 see ya Mar 21 02:16:35 groxx: This is what I've always needed. ;o Mar 21 02:18:06 TacticalJoke: lol, it would be kinda fun to describe an entire UI in ascii :) Mar 21 02:18:25 2D ascii, not iOS's autolayout strings Mar 21 02:23:51 this is all wrong, art in java files ! i want to be able to put code in Photoshop .psd files - the other way around Mar 21 02:23:59 using the text tool Mar 21 02:24:14 * g00s submits enhancement to xav : extract source code form psd Mar 21 02:24:43 terrifying Mar 21 02:24:49 I might not sleep tonight D: Mar 21 02:26:25 whats faster: String.format("%.2f",doubleVal) or new BigDecimal(doubleVal).setScale(2, RoundingMode.HALF_UP).toPlainString() Mar 21 02:26:55 my bet's on the former Mar 21 02:26:56 they probably both suck, honestly Mar 21 02:28:12 wow. that's a nerd trap.... and something I'd expect to hear in some interviews :) Mar 21 02:29:27 yes they both suck but i need the less shitty heh Mar 21 02:30:13 BigDecimal probably Mar 21 02:31:43 BigDecimal is an arbitrary precision number, isn't it? Mar 21 02:31:47 that just screams slow :) Mar 21 02:34:07 I would guess the String.format is an order of magnitude faster. Mar 21 02:34:08 * g00s suspects he'd never pass groxx interview :D Mar 21 02:34:27 obv we have to resolve this. to the profiler! Mar 21 02:35:48 JesusFreke maybe, i think that if you don't need to apply formatting to the decimal is fine (big number to 2 decimals string) Mar 21 02:36:26 aint nobody need that precision for UI display Mar 21 02:36:40 multiply by 1000, truncate to int, add 5, divide by 10, divide by 100f Mar 21 02:36:44 cliffreich: but the logic to deal with arbitrary precision numbers will almost certainly be slower, even for a number that would fit within a normal double Mar 21 02:36:45 unless its a calculator or something like that Mar 21 02:37:30 heh Mar 21 02:37:59 if (decimalVal > 1_000_000) return "big" Mar 21 02:43:25 JakeWharton all those sounds like one of those magic tricks to guess the number you are thinking Mar 21 02:43:38 haha Mar 21 02:52:48 Selfie-sticks have to be the worst invention ever. Mar 21 02:53:38 I.. don't think I even want to know what they are Mar 21 02:54:20 In case anyone is interested: http://upload.wikimedia.org/wikipedia/commons/9/91/Groufie.jpg Mar 21 02:55:51 they're certainly in the running, yeah Mar 21 02:57:37 humans are doomed **** ENDING LOGGING AT Sat Mar 21 02:59:59 2015