**** BEGIN LOGGING AT Mon Apr 13 03:00:00 2015 Apr 13 03:00:17 hi Apr 13 03:00:33 I just wish I could see that out of my window. :D Apr 13 03:00:48 hey, I have a Blob column in a sqlite database representing a 16 byte hash for unique ID Apr 13 03:01:02 how can a query a select statement with a Where condition on this column ? Apr 13 03:01:23 cause I'm afraid that casting byte[] uid into new String(uid) will make problem Apr 13 03:04:22 Whelp. Apr 13 03:04:36 A friend have me a HTC One M8 with a bad screen. Apr 13 03:04:43 I ripped it apart and there Apr 13 03:04:57 s nothing to be done, besides buying a new screen (about $85( Apr 13 03:04:57 ) Apr 13 03:05:29 Can a factory reset M8 be setup using a MHL (or whatever it's called) connection? Apr 13 03:05:49 I have a listview in my main activity that has multiple locations. Each location has a type. ie Library, Regional Community Center, etc. What would be the best way to filter/display the data. Say I want to just show all library records. Apr 13 03:06:28 I want to have a menu where the user can select a filter. Should I save the filter in a shared preference or something? Apr 13 03:06:43 when they click on the different filter links? Apr 13 03:08:52 TacticalJoke: Thanks for the plug Apr 13 03:09:57 :) Apr 13 03:10:35 drdreed: yeah sounds about right Apr 13 03:10:42 Seems I'm clueless about URLs. I didn't realise that was valid (because of the host name). Apr 13 03:11:26 lasserix_, thanks I will try that. Apr 13 03:11:45 How many parts can host names have? I thought it was three, for some reason. Apr 13 03:12:28 Wait, no. I didn't think that. Never mind; googling. Apr 13 03:15:53 i dont get it TacticalJoke ^ Apr 13 03:16:51 I guess my question boils down to this: Would the host name in the following URL be "valid"? http://a.b.c.d.e.f.g.microsoft.com/ Apr 13 03:16:57 And, if not, where is the line drawn? Apr 13 03:17:35 no i meant the actual image itself Apr 13 03:17:52 Oh. The string "10" represents the base in any numeral system. Apr 13 03:18:08 In hexadecimal, for example, "10" is 16 (decimal). Apr 13 03:18:17 o Apr 13 03:18:18 heh Apr 13 03:20:08 TacticalJoke: I think any url is 'valid' as long as it does not go over the dns character limit perhaps Apr 13 03:20:28 http://www.freesoft.org/CIE/RFC/1035/9.htm Apr 13 03:20:33 Hey guys, any way to get a ViewFlipper to go back to the previous view once something has been touched/clicked that _isn't_ that viewflipper (another one, for example). I have a grid of them and the other side of the flip is a delete view (with a trash icon). I want it to return back if the user interacts with another viewflipper (because they probably don't want to delete it) Apr 13 03:24:14 TacticalJoke nice, kinda want to chuck a paper airplane from there :D Apr 13 03:24:52 Hi all. What's the name of the site that has really nice looking Android apps for inspiration? I forgot the name -.- Apr 13 03:25:39 nevermind i found it http://androidniceties.tumblr.com/ Apr 13 03:56:07 in my listview problem, finally work using this: getLoaderManager().restartLoader( 0, null, mLoaderCallbacks ); <-- but I don't know if the right way :-/ Apr 13 03:57:02 eww, loaders Apr 13 03:57:03 call restart everytime contentprovider (who query to a database) have a change Apr 13 03:58:22 I mean.... semantically doesn't make sense if exist Observers in SImpleCursorAdapter, I need to use notifyDataSetChanged() method Apr 13 03:59:16 Hello, I need to obtain the location coordinates ONCE when user clicks on a button Apr 13 03:59:32 I wonder if I really need to use LocationLister and implement its methods Apr 13 04:04:54 Have any of you worked with freelancers from odesk? Any bad experiences? Apr 13 04:06:56 Anyone see some ways I could better/flatten this view hierarchy - http://pastie.org/10089169 Apr 13 04:21:01 relative layout Apr 13 04:21:16 and why did you extend drawer layout Apr 13 04:23:29 why not Apr 13 04:23:44 never extend unless necessary Apr 13 04:24:08 why. Apr 13 04:24:37 poor practice unless you can justify it Apr 13 04:24:59 breaks encapsulation Apr 13 04:25:09 i disagree Apr 13 04:25:40 * pfnQ moves on Apr 13 04:25:53 my drawer layout view handles itself rather than an activity having a bunch of wiring code connecting everything together Apr 13 04:26:06 instead all my activity has to do is delegate fragments or actions to the drawer layout and it handles it for me Apr 13 04:28:02 you could have encapsulated that behavior through delegation instead of inheritance Apr 13 04:28:31 anyway, you have your answer Apr 13 04:29:12 desmin88 http://www.artima.com/lejava/articles/designprinciples4.html Apr 13 04:29:54 if you google that phrase, you'll find tons of stuff Apr 13 04:30:06 for example, using composition its easier to change things at runtime Apr 13 04:30:13 (Strategy pattern) Apr 13 04:31:07 mostly, inheritance is fragile and not reusable Apr 13 04:36:03 I don't really buy into this (fragile and not reusable). The main problem here is that 1) Java only has single inheritance of implementation and 2) by doing this, you're exposing a lot more than you probably want Apr 13 04:36:12 but not reusable? Nah Apr 13 04:36:41 Actually, the very fact that the naive implementation was to inherit shows that it's reusable :) Apr 13 04:39:58 Do any of you use the design view in android studio? or just edit all XML manulaly Apr 13 04:40:00 manually* Apr 13 04:40:08 i do manual Apr 13 04:40:14 xml manually Apr 13 04:40:41 same here. I wish the designer was better, I would probably use it if it wasn't so messed up Apr 13 04:40:43 i bet google collects metrics on that, i'd be very curious how many people actually use it Apr 13 04:41:08 i'm happy as long as preview is OK Apr 13 04:41:29 preview doesn't work for any of my activities. because they all use RecyclerView Apr 13 04:41:39 The new RecyclerView does not yet work in Studio. We are working on a fix. (Open Issue 72117, Show Exception) Apr 13 04:41:58 its been an open issue since last june... wonder if it will ever get fixed Apr 13 04:42:34 heh Apr 13 04:42:41 most custom views seem not to work with the designer Apr 13 04:43:26 liuwenhao: Very rarely, it's often wrong so if I really want to make sure about something, I have to run it on the device anyway Apr 13 05:12:18 hei i am using the viewholder pattern for my listview adapter but how can I nullify the item views whenever the dataset changed ? Apr 13 05:13:18 notifydatasetchanged on your adapter Apr 13 05:13:37 lasserix_: this will null all the item views ? Apr 13 05:13:43 Marlinski: The views in the view holder should not be changed or nulled though... Apr 13 05:13:46 itll cause the adapter to refresh Apr 13 05:13:56 so by nullify - invalidate Apr 13 05:14:05 causing it to recall getView for all the items Apr 13 05:14:06 you would just want to update the views with the new values that will be shown which invalidate will do Apr 13 05:15:34 hmm, I am using the ViewHolder pattern Apr 13 05:15:49 so calling again getView will not grab new value Apr 13 05:15:58 that's why I would like to nullify it Apr 13 05:16:28 yeah it will Apr 13 05:16:40 you call getItem or get on your array of data Apr 13 05:16:46 then the getview uses the new values Apr 13 05:16:51 that is how it is supposed to work Apr 13 05:17:19 if you dont believe me, try deleting all the items from your list and calling notifydatasetchanged and see what happens Apr 13 05:17:30 *or delete all but one Apr 13 05:17:54 hmm Apr 13 05:17:58 yeah it works :) Apr 13 05:18:04 thank you Apr 13 05:22:25 very cool article https://blindmotion.github.io/2015/04/11/ml-in-navigation/ Apr 13 05:43:29 lasserix_, very interesting Apr 13 05:43:49 wonder if we'll see any mobile ML specific or friendly libs when we get better hardware and batteries Apr 13 05:46:16 I tried to run android studio and get this error http://postimg.org/image/bnkki731n/ . two days ago it worked normal. can someone help me? Apr 13 05:47:47 slani are you using gnu classpath or something ? Apr 13 05:47:57 switch to oracle jvm Apr 13 05:49:51 g00s: thanks. Apr 13 05:53:55 http://stackoverflow.com/questions/29598646/listview-refresh-from-alertdialog <--- anyone :) Apr 13 06:09:06 I have't written an android application in years and need a jump-start. Apr 13 06:10:02 in years? you mean you never written in android :v Apr 13 06:10:21 no, probably in about 2 years. Apr 13 06:11:17 I need some pointers on how you all map projects out in regard to components and their relationship to lifecycle Apr 13 06:11:52 especially in the early stages. or is this too broad a topic for the irc? Apr 13 06:12:11 too broad :) Apr 13 06:12:28 I just throw shit at the screen and use whatever sticks Apr 13 06:12:53 x.x Apr 13 06:13:02 and thats how android was made Apr 13 06:13:18 heh, i'm not the only one who thinks that haha Apr 13 06:13:33 it's how all software is made Apr 13 06:17:19 Well what I'm porting over is a web application we have at work, and it's main function is to poll our internal api (JSON) and show any updated data. What's a good place to start thinking about this kind of activity in an android application? Apr 13 06:17:32 i don't really know where to start Apr 13 06:19:22 hmm is material edittext the first edittext to show floating hints? Apr 13 06:19:32 I guess I should pull in that library Apr 13 06:26:52 so i have a content://.com.googleandroid.apps.docs.storage/... uri to an audio file, how the hell do i open it to play with whatever media player the user has installed? Apr 13 06:27:35 new Intent(Intent.ACTION_VIEW, uri) is unable to actually play the file with any of the media players i have installed Apr 13 06:27:36 save it locally then open it an intent Apr 13 06:28:05 Maybe if you set the mime type it'd work Apr 13 06:28:09 ah Apr 13 06:28:12 otherwise save it first Apr 13 06:29:53 cheers i'll try that Apr 13 06:31:36 pfnQ: yeah looks like i need to save it locally first Apr 13 06:33:16 i saw smoke come out of my usb port when i connected it Apr 13 06:33:36 is that a feature of the galaxy s4? Apr 13 06:34:01 that how you cook roms :) Apr 13 06:34:25 oh alright, i guess i get a rom for every micro usb cord i fry Apr 13 06:34:29 seems like a good deal Apr 13 06:34:51 i wouldn't try it again, in case the li-ion battery goes up in flames Apr 13 06:35:06 and that - is a nightmare Apr 13 06:35:19 damn. Apr 13 06:35:40 its always good to have fireproof bags around, doing android dev Apr 13 06:35:52 hahah Apr 13 06:36:30 "lets see what's going on in the world of android develo --- oh i see" Apr 13 06:36:31 speaking of blowing up li-on batteries, is there a way to charge the samsung battery without the phone? Apr 13 06:41:18 Hey, I need to create a grid of squares, every square neeeds to be swipeable, every time it's swiped I need it to display a different content. How would you suggest implementing that? Apr 13 06:41:46 the swiping of every square, viewflipper? Apr 13 06:43:31 is it unbound content, or finite ? Apr 13 06:44:43 jellybee this isn't a trick question :) Apr 13 06:45:14 g00s: it's finite, lets say 3 swipes max Apr 13 06:45:40 i mean, how many squares - is it bounded or unbounded in items ? Apr 13 06:46:05 oh, it's finite/bounded Apr 13 06:46:10 like a schedule Apr 13 06:46:19 of one day Apr 13 06:48:04 hm, i wonder if you can use ViewPager for that Apr 13 06:49:11 never tried having multiple viewpagers on the screen at once Apr 13 06:49:44 i'm not sure. i don't see napalm around either :( Apr 13 06:50:12 multiple viewpagers works fine Apr 13 06:50:17 nested viewpagers works fine too Apr 13 06:50:33 it's possible to use a few ViewPagers, all the need is differeent Id's set by code Apr 13 06:50:47 but it eats a lof of memory.... Apr 13 06:50:58 I dont know if 40 ViewPagers is a good idea Apr 13 06:51:26 yeah, maybe put them in a recyclerview Apr 13 06:51:48 with gridlayout manager Apr 13 06:51:59 that would be crazy :) Apr 13 06:52:43 Crazy good? Or crazy "they're coming to take me away" ? Apr 13 06:53:19 looks like capella has the lights back on :D Apr 13 06:53:26 jellybee: set page count limit Apr 13 06:53:29 * capella sighs ... late night on irc ... waiting for reviewers to act :) Apr 13 06:53:48 you can also use salvage by jakewharton which enables you to use a convertview like listview for viewpager Apr 13 06:54:10 lasserix_ never heard of that one Apr 13 07:09:45 pfnQ: so to save a content://... Uri to a local file, im looking at using an InputStream and FileOutputStream to write it locally but it seems a bit low level. Am i missing a higher level API somewhere that i should be using to do this? Apr 13 07:10:01 pfnQ: or is the byte array the level you have to work at to do this on android? Apr 13 07:10:42 sounds right Apr 13 07:10:47 if it is stringy you can use json Apr 13 07:11:03 nah it's audio files Apr 13 07:11:19 audio/* Apr 13 07:11:32 yeah then is and fos is fine Apr 13 07:11:44 k Apr 13 07:12:19 man it would be so awesome if google tagmanager let your container be some arbitrary json instead of the simplified k/v style Apr 13 07:12:58 tagmanager? Apr 13 07:13:12 GTM Apr 13 07:13:45 lasserix_ https://developers.google.com/events/io/2013/sessions/332761592 Apr 13 07:14:08 hmm cool Apr 13 07:14:54 wish the client of the current project wasn't locked in some obscure bulls-t analytics Apr 13 07:15:39 lasserix_: so i just randomly choose a byte array size to use with InputStream.read(byte[] buffer)? Apr 13 07:15:51 you can use buffered Apr 13 07:15:57 lasserix_ which one ? Apr 13 07:15:59 i'd like to do this vaguely efficiently but I'm guessing google Drive handles how much to download at a time etc Apr 13 07:18:50 AshyIsMe: why are you reading? Apr 13 07:18:58 thats for disk->memory Apr 13 07:20:12 something like: http://examples.javacodegeeks.com/core-java/io/bufferedoutputstream/write-byte-array-to-file-with-bufferedoutputstream/ Apr 13 07:20:48 heres a whole "low level" http://www.java2s.com/Code/Java/File-Input-Output/ByteArrayforAndroid.htm Apr 13 07:22:20 lasserix_: im reading because the only reference to the file i have is a "content://..." style Uri that google Drive is giving back Apr 13 07:22:28 oh Apr 13 07:22:37 you are writing something from google drive? Apr 13 07:23:28 im asking the user to choose a song and i want to save a reference to the file so they can play it later by clicking it from within the app Apr 13 07:23:58 choose a song from their google drive? Apr 13 07:24:03 if i choose a file through astro file manager i get back a "file://..." style Uri that works fine with an Intent.ACTION_VIEW intent Apr 13 07:24:28 but if i use google drive to choose one i get back the "content://..." style Uri and opening it with an Intent.ACTION_VIEW fails Apr 13 07:24:51 i'd just like to be able to handle audio files no matter where the user chooses them from Apr 13 07:25:31 did you read? https://developers.google.com/drive/android/files Apr 13 07:25:54 ah perfect, hadnt seen that Apr 13 07:26:03 my google-fu is failing me today apparently Apr 13 07:26:20 looks like it gives you content because it wants to sync it internally by downloading it within the local google drive cache Apr 13 07:27:10 here: http://stackoverflow.com/questions/25171246/open-a-google-drive-file-content-uri-after-using-kitkat-storage-access-framework Apr 13 07:27:33 the uri is your content//: thingy Apr 13 07:28:25 yeah cheers Apr 13 07:29:56 thepoosh ! Apr 13 07:31:35 * lasserix_ sees a dog bounding accross a sun shiny field of flowers towards a gelantinous blob rolling towards the pooch Apr 13 07:32:22 * g00s wants what lasserix_ is having Apr 13 07:32:36 * lasserix_ cues etta james at last Apr 13 07:33:23 g00s: ! Apr 13 07:33:28 * thepoosh in a team sync Apr 13 07:34:05 sounds agile Apr 13 07:34:07 :P Apr 13 07:34:38 how can i create a edittext which has a spinner inside ? i try viewgroup and getting cast exception Apr 13 07:35:17 edittext with spinner inside? Apr 13 07:35:26 you mean you want the user to be able to type the selection? Apr 13 07:36:03 just for country code + phone number Apr 13 07:36:12 country code will be dropdown list Apr 13 07:36:33 do like autocomplete textview Apr 13 07:36:46 above textview that has the current selection Apr 13 07:37:12 sci-fic, AutoCompleteTextView yes. Apr 13 07:38:02 thank you Apr 13 07:38:38 no problem just make sure to donate 1/10 of all your app revenue to the android-dev fund Apr 13 07:39:03 ^ it's at paypal account treelzebub@gmail.com Apr 13 07:41:52 <_genuser_> yo yo Apr 13 08:07:36 lasserix_: so i was able to save a local copy of the file but only my app seems to have access to that file, how can i open /data/data/path.to.my.app/files/file.mp3 with the users default music app? Apr 13 08:16:12 Mavrik:im not sure if i can do that with auto complete textview http://postimg.org/image/a40x5gnqj/ Apr 13 08:18:30 AshyIsMe, there's an intent flag for granting read permissions to private data Apr 13 08:59:16 AshyIsMe: you should save the content uri and use that Apr 13 09:04:44 so, weird issue. I have a layout for landscape and portrait, and I catch onCOnfigurationChanged to avoid recreating the activity. Apr 13 09:05:09 but when I change from land to portrait, the layout doesn't adjust the height of the layout Apr 13 09:29:14 thepoosh, what does it return value wise for the height? does it return the shorter landscape height still? Apr 13 09:29:34 will test, give me a second Apr 13 09:39:42 04-13 12:38:42.680: E/thepoosh(2880): screen size is: (880, 600) Apr 13 09:39:42 04-13 12:38:45.349: E/thepoosh(2880): screen size is: (528, 961) Apr 13 09:39:46 whatitis: ^ Apr 13 09:40:04 1st switch is from land to portrait and Apr 13 09:40:09 second is to land Apr 13 09:40:48 so the configuration actually changed but I cannot re-measure the layout Apr 13 09:40:59 tried invalidating Apr 13 09:48:23 is there support WebViewFragment ? Apr 13 09:55:20 I think I've come up with a free and easy way of messaging users of my apps. On launch I do a httpget to read a .txt from my dropbox public folder. If file contains text then show alertdialog with the information. Apr 13 09:55:33 !zin é_ Apr 13 09:55:34 Then I can just update the txt file in my dropbox Apr 13 09:55:39 whenever I want Apr 13 10:15:52 Hi Apr 13 10:16:06 Anybody using Calabash knows how to stub HTTP/Retrofit? Apr 13 11:02:30 Papipo: what you mean stub? Apr 13 11:02:43 My app uses a remote REST API Apr 13 11:02:52 I want to stub it on my tests Apr 13 11:03:09 I won't be hitting the real thing while testing, that is not a good practice Apr 13 11:03:26 So I can set specific responses depending on the scenario Apr 13 11:03:44 Papipo: ok, i see Apr 13 11:05:49 abara, you should mock arround that Apr 13 11:06:10 ? Apr 13 11:06:14 Papipo: https://github.com/mockito/mockito Apr 13 11:06:17 sorry wrong highlight :) Apr 13 11:06:35 meant Papipo Apr 13 11:06:43 calabash deploys the debug apk on devices for testing Apr 13 11:06:56 oh mh. Apr 13 11:07:00 even if the http client is mocked, how can I set the responses from calabash Apr 13 11:07:26 The only solution that appears feasible is to run some sort of fake webserver Apr 13 11:07:27 maybe exclude those tests than. or set a flag that makes an internal mock for debug builds Apr 13 11:07:46 if(BuildConfig.DEBUG) dontDoRealHttpRequests(); else doThem() Apr 13 11:07:55 yep, but still Apr 13 11:07:58 if the tests changes Apr 13 11:08:07 I would need to tweak that code Apr 13 11:08:20 besides the fact that it's fucking ugly to have that code around Apr 13 11:08:28 I think I'll go with the fake server route Apr 13 11:08:48 In fact it might be a good idea, since these tests are meant to test both the android and the iOS versions of my app Apr 13 11:08:56 Papipo: why you guys have to complicate the code u_u Apr 13 11:09:08 complicate what code, abara? Apr 13 11:09:32 or just leave that part of your app out. and do manual testing. Thats what I would do Apr 13 11:09:38 no way Apr 13 11:09:50 of course this is not an option for enterprise :) Apr 13 11:10:03 I want my acceptance tests to cover the entire feature suite Apr 13 11:10:13 I can also do some manual testing of course Apr 13 11:10:24 but mainly for UI related stuff Apr 13 11:10:33 I want the wires to be automatically tested Apr 13 11:11:00 Papipo: so if you're enterprise just pay the price Apr 13 11:11:02 https://www.mockable.io/ Apr 13 11:11:09 Morning/afternoon all! Apr 13 11:11:12 http://www.mocky.io/ Apr 13 11:11:16 I'm not enterprise Apr 13 11:11:26 I just like things being well done Apr 13 11:11:38 Who says that? Apr 13 11:11:45 those services rely on having an internet connection, right? Apr 13 11:12:05 Papipo: your application will rely on internet? Apr 13 11:12:17 my application? yes. My tests? no Apr 13 11:12:38 why is interesting test an REST based application with mocks? how do you fake delays from real scenario Apr 13 11:12:53 adding delays to the stubbed responses Apr 13 11:13:06 delays inside test. :S Apr 13 11:13:14 thats not really good practive Apr 13 11:13:17 delays if you are testing delays, that's it Apr 13 11:13:20 You're testing application likes physicist applying theories Apr 13 11:13:29 on ideal scenario .-. Apr 13 11:13:36 i'd just test the methods themselves. I.e the methods that parse your webresponse etc Apr 13 11:13:44 but not the actual http stuff Apr 13 11:13:48 do you read me? I can add delays if I want Apr 13 11:14:05 I also want my tests to run fast Apr 13 11:14:08 that's the point Apr 13 11:15:34 abara: if you want your tests to be deterministic (and you want them to be), you need to run them on a ideal scenario Apr 13 11:16:03 but nothings stops you to add specific tests for delays, network errors or whatever Apr 13 11:16:11 well last night guys were arguing about testing class/libraries :/ if can get the log of the room to see the name of the options Apr 13 11:16:30 I don't think those were solutions for this Apr 13 11:16:36 for unit testing I am using mockito Apr 13 11:17:45 Papipo: tried to asking about it over the github of Retrofit or on SO? i think they have the answer because they test the library too Apr 13 11:20:00 another idea: mock the HttpClient Retrofit is using Apr 13 11:20:47 there is plenty of mocking options over the reppo .-. Apr 13 11:21:33 you could also have a look into the retrofit source and see how they test their stuff Apr 13 11:21:39 maybe thats a good sourc for inspiration Apr 13 11:24:25 hey, does anyone know a way to upload images the user selects from drive? I suppose I need to download the image first Apr 13 11:26:13 upload to what? your own server? Apr 13 11:26:34 i guess the easiest approach is to load them into memory/ondisk first, yeah Apr 13 11:35:34 guys my button and edittext are 55dp height but button looks smaller from top Apr 13 11:36:21 buttons have inner padding Apr 13 11:36:26 try setting padding to 0dp Apr 13 11:36:32 :o Apr 13 11:37:00 or, make your own selector background Apr 13 11:37:12 i have my own already ty :D Apr 13 11:49:48 I'm working on a simple gallery-type app. I've got the "master activity" working, loading all images from MediaStore.Images.Media.EXTERNAL_CONTENT_URI to a GridView. When an image is clicked, I want the URI for that image to be passed into the "detail activity", which loads it using a CursorLoader. So, onCreateLoader() is called, and the URI is e.g. content://media/external/images/media/339, but onLoadFinished() simply exits (retu Apr 13 11:50:45 so the cursor is empty. If I replace the URI with MediaStore.Images.Media.EXTERNAL_CONTENT_URI (in onCreateLoader()), things work: I get the first image on my device shown in the "detail UI" Apr 13 11:51:29 Is there any obvious error in this approach, for instance with the URI towards a specific image? Apr 13 11:55:56 Is it wrong to have the image-ID as part of the URI? Maybe I should always use URI = MediaStore.Images.Media.EXTERNAL_CONTENT_URI, and then filter in the "where clause" Apr 13 11:59:45 as in: CursorLoader cLoader= new CursorLoader(getActivity(), MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, "_id=" + mId , null, null); Apr 13 12:10:27 Oh wow, getting the user's email address from Facebook is a ballache. Apr 13 12:10:39 You can't use their Profile class, you have to use the GraphAPI stuff Apr 13 12:10:54 put simply, logging in is simple, doing anything else isn't. Apr 13 12:11:00 Although I guess thats a good thing... Apr 13 12:24:04 anyone help me out with loading an image from the mediastore? :) Apr 13 12:25:23 I've managed to load *all* images onto a gridview, plus attach onClick -> DetailActivity w/fragment, but I just can't get the DetailFragment.java to load that image (in its Cursor/CursorLoader) Apr 13 12:33:12 joakimk_: http://developer.android.com/samples/BasicMediaDecoder/src/com.example.android.basicmediadecoder/MainActivity.html Apr 13 12:33:42 why not pass the URI or the actual bitmap in the arguments for that fragment? Apr 13 12:34:00 How to check if file exists in assets? Apr 13 12:34:16 new File(xx).exists() is not working Apr 13 12:34:58 AssetManager#list(path) and check if it contains the name of your file Apr 13 12:35:38 damn Apr 13 12:35:42 you beat me to it Apr 13 12:35:49 thepoosh: I thought the proper approach would be for onClick to pass an URI to detail, but I just keep getting empty cursors. The URI I'm sending on a click, is e.g. content://media/external/images/media/339 Apr 13 12:36:14 danijoo: thanks Apr 13 12:36:16 that could mean it's a simlink Apr 13 12:36:41 *symlink Apr 13 12:36:46 what's wrong with me Apr 13 12:36:56 ^^ Apr 13 12:37:07 bad-keyboard day? Apr 13 12:37:16 worse Apr 13 12:37:24 bad second language fast typing day Apr 13 12:37:33 thats everyday for me :p Apr 13 12:37:54 yep Apr 13 12:38:01 if only this chat was in hebrew Apr 13 12:38:09 i would rock! Apr 13 12:38:27 :D Apr 13 12:38:35 would be pretty empty in here then though :p Apr 13 12:39:40 don't be like that Apr 13 12:40:06 i've been trolling our users past 24 hours Apr 13 12:40:06 thepoosh: best I can get working, is to open a cursor for "the entire MediaStore" (which obviously just shows the first image): return new CursorLoader(getActivity(), MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)... Apr 13 12:40:08 it's fun Apr 13 12:41:27 thepoosh: Does content://media/external/images/media/339 look like a correct URI "towards" a specific image (with ID 339)? Apr 13 12:41:32 Anyone have any experience with Facebook SDK? Apr 13 12:41:38 and logging in via Facebook Apr 13 12:42:21 Anthaas: ask your question :) Apr 13 12:42:29 When pressing the log in button, it doesnt seem to do much. It opens up the Facebook page where you grant access, but closes again back to the Log in screen before showing anything Apr 13 12:42:47 I have added my debug hash key to the developer console too... Apr 13 12:42:48 anything in logcat ? Apr 13 12:42:53 Nope Apr 13 12:43:27 Anthaas: ? Apr 13 12:43:50 look for device level logs (no packagename) for orca Apr 13 12:44:13 Ahh here we go Apr 13 12:44:17 Changed log level Apr 13 12:44:19 com.facebook.http.protocol.ApiException: [code] 190 [message]: Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons. [extra]: Apr 13 12:44:19 yes Apr 13 12:44:41 joakimk_: check out source code for MediaProvider. when using .../id URI it seems just to add where clause with _id = # Apr 13 12:45:28 Then this is further down Apr 13 12:45:29 com.facebook.http.protocol.ApiException: [code] 15 [message]: This method is not supported for native apps (15) [extra]: null Apr 13 12:45:52 what are you trying to do? Apr 13 12:45:59 what version of the sdk are you using? Apr 13 12:46:01 Log in via Facebook Login button Apr 13 12:46:03 the latest Apr 13 12:46:19 4.0.0 Apr 13 12:46:25 icedp: yes, which is what I want, right? What's odd, is that I've also tried to hard code a specific image ID in the detail fragment's onCreateLoader(), and it *still* doesn't work: return new CursorLoader(getActivity(), MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, "_ID = 146", null, null) Apr 13 12:46:26 (unless they have changed it recently...) Apr 13 12:46:33 Anthaas: did you follow documentation ? or did you guess al by yourself how to do it ? Apr 13 12:46:38 followed Apr 13 12:46:44 icedp: ... because *that* really ought to work? Apr 13 12:48:00 problem (symptom) is, I keep getting empty cursor in onLoadFinished() (unless I simply load the entire MediaStore.Images.Media.EXTERNAL_CONTENT_URI, with no where clause of any kind) Apr 13 12:48:16 AS leaking memory again -_- Apr 13 12:48:34 * VnM hands danijoo a box of tissues Apr 13 12:49:05 * danijoo whipes tears away Apr 13 12:49:44 joakimk_: yeah, I'd expect that to work. So you say cursor.moveToFirst() returns false in OnLoadFinished? Apr 13 12:50:02 icedp: yes, precisely. Apr 13 12:50:53 icedp: unless I just "load everything". Then moveToFirst() gives me... the first image ;-) Apr 13 12:51:51 danijoo: do you prefer eclipse just taking all the memory instead of leaking? Apr 13 12:52:32 no. Apr 13 12:52:36 :p Apr 13 12:52:56 id rather let google take over my whole system Apr 13 12:54:43 I am experiencing some weirdness with a DrawerLayout. If I open the drawer I can still click whatever is behind it. What am I doing wrong? I can paste XML and code if necessary Apr 13 12:55:20 surf2b1, make the drawer's root view clickable Apr 13 12:57:10 iprime: That worked, but now all the drawer's children aren't clickable. Apr 13 12:57:35 well, paste the xml Apr 13 12:58:03 icedp: perhaps you could take a look at http://pastebin.com/t8tFDFwp ? :-) Apr 13 12:58:37 surf2b1: nothing wrong Apr 13 12:59:32 iprime: http://pastebin.com/jdJQeipP <-- drawer layout used in fragment Apr 13 13:00:26 joakimk_: what does intent.getDataString() return? Apr 13 13:01:06 icedp: "The same as getData(), but returns the URI as an encoded String" :P Apr 13 13:01:56 surf2b1: I mean how do you set it =) debug it to check if it returns right uri Apr 13 13:02:35 I believe you just set a uri via intent.setData(yourUri) Apr 13 13:04:56 surf2b1, looks good to me, you sure it's not working for you? why do you need the imagebutton focusable? Apr 13 13:05:02 icedp: the URI passed in from the main activity, is e.g. content://media/external/images/media/505 Apr 13 13:05:37 iprime: I added the focusable after doing what you told me to see if that changed anything. Doesn't work either way Apr 13 13:06:34 but whether this is "the right uri", I can't say :-( I think the problem is somewhere else (not the URI), since I can't get it to work with a specific "where clause" neither (by setting "_ID=505" as 4th argument to the new CursorLoader) Apr 13 13:07:16 iprime: so, my bad, it is receiving callbacks for a click listener. It just isn't showing the ripple when I click it. Apr 13 13:07:51 joakimk_: I would just debug to check if uri is light in the line where you create new CursorLoader ) Apr 13 13:08:12 joakimk_: or well are you sure the image _id is right? Apr 13 13:08:23 iprime: yes, in main activity, I set the URI like this: Intent intent = new Intent(this, DetailActivity.class).setData(contentURI); and then invoke startActivity(intent). Apr 13 13:09:08 how can i get all the videos in my android phone ? Apr 13 13:10:38 contentProviders are for that exactly Apr 13 13:11:18 s9iper1: http://stackoverflow.com/questions/10503840/how-to-get-all-videos-on-android-device Apr 13 13:11:36 joakimk_, what are you trying to do? Apr 13 13:11:41 icedp: well, the ID is set (got) in the main activity, like this: http://pastebin.com/dLBxr7Wx Apr 13 13:12:34 I hate it when log cat gives me an error on a meaningless like. Like @Override on onCreate for my activity. Apr 13 13:12:36 iprime: master activity loads all images to a gridview. Then, onClick should pass in an URI to the clicked image, such that detail activity can show that specific image (plus some meta data) Apr 13 13:12:41 simple gallery app Apr 13 13:12:42 surf2b1, i have tried that but its just giving me the ram location. let me check again Apr 13 13:12:49 Its blatently not where the error is. Apr 13 13:13:07 joakimk_, and what's not working out for you? Apr 13 13:13:24 icedp: I think I see the problem :-o Apr 13 13:14:06 icedp: in PhotoFragment.onCreateLoader() I'm getting _ID from MediaStore.Images.Thumbnail... :-) That won't do! Apr 13 13:14:17 ...or? Apr 13 13:14:48 I have to use IMAGE_ID, right? Apr 13 13:14:53 oh Apr 13 13:15:45 iprime: ;-) what a bummer Apr 13 13:15:50 happens Apr 13 13:15:50 joakimk_: baseUri = Uri.withAppendedPath(baseUri, ""+cursor.getLong(0)); what's that Apr 13 13:16:00 Ughk. Apr 13 13:16:15 thanks though, icedp and iprime! It forced me to take a looong look at my code :) Apr 13 13:16:23 joakimk_: ah no seems fine Apr 13 13:16:46 icedp: getLong(0) refers to Thumbnails._ID That was the problem -- it needs to get Thumbnails.IMAGE_ID Apr 13 13:17:41 so, now it works -- just as I wanted. URI passed from main activity loads correct image in detail view :-D Apr 13 13:17:50 thanks again! Apr 13 13:20:14 great :) Apr 13 13:46:04 hi Apr 13 13:46:30 how to put the actionbar menu on bottom with API 22 ? Apr 13 13:46:44 it worked fine with 21, but since 22 it has moved up Apr 13 13:52:11 is there padding stopping it? Apr 13 13:56:02 http://arachnist.is-a.cat/c/f9870779955060b7f47e4ed703041f19.jpg - young chicks bathing on new guinea island (SFW) Apr 13 13:56:16 argh, wrong window :D Apr 13 13:57:26 is there a tool for sending pushes? Apr 13 13:57:32 was worth a laugh Apr 13 13:59:24 Any ideas why Google Analytics for all my apps suddenly show this? http://bildr.no/image/YjcrKzF2.jpeg Apr 13 13:59:46 It's supposed to show average session length and screens per session Apr 13 14:00:01 But suddenly it just says 'undefined is not a function' Apr 13 14:03:46 hi Apr 13 14:06:55 how can you design an expanding list view so that you can get the children stuff dynamically? (Currently I am jsut trying to get all of the children in a map, dynamically setting the children was a bit tough. Apr 13 14:08:26 I think average session length and screens per session is in the default google analytics setup. Am I the only one getting 'undefined is not a function'? http://bildr.no/image/YjcrKzF2.jpeg Apr 13 14:09:51 claint, there's ExpandableListView and related adapter Apr 13 14:12:30 using retrofit, the wikipedia api is located at http://{language}.wikipedia.org/w/api.php . How can I achieve this, when I want to pass this languagecode to my calls? Apr 13 14:12:42 path parameter Apr 13 14:12:51 oh Apr 13 14:12:52 wait lul Apr 13 14:12:53 no Apr 13 14:12:55 just change the endpoint Apr 13 14:13:04 he left his kids wondering the streets Apr 13 14:13:12 you can keep a reference to the Endpoint and then change the URL Apr 13 14:13:23 Use an Endpoint implementarion you write and return different base URLs when the language changes. Apr 13 14:14:40 JakeWharton: ok thanks i will look into it Apr 13 14:14:47 pshawww Apr 13 14:15:07 iprime: I have already written my ExpandableListView and adapter. I am making calls with Retrofit whenever the person expands the list view. I'll figure it out I think. Apr 13 14:17:02 oh Apr 13 14:17:17 I was just not sure if android systems calls getChildView() before getChildrenCount(). Apr 13 14:17:43 so wondering if I can fill the children view on demand that way. Apr 13 14:18:51 sure you can Apr 13 14:19:15 it would be probably a good idea to somehow indicate you're loading the chidlren in the background Apr 13 14:23:05 I just don't know how to tie it together yet. Apr 13 14:23:48 So that I can get the data ready before the getChild.... functions are called. Apr 13 14:28:25 get the data, set the data, call notifyDataSetChangead Apr 13 14:39:56 is there some sort of canonical way to dismiss a notification after a pending intent for the notification is triggered? Apr 13 14:45:07 alexfu: Is it not http://developer.android.com/reference/android/app/NotificationManager.html#cancel(int) Apr 13 14:49:09 other than not being a 'proper' rest response, is there any way to inform gson/retrofit how to stuff this info in a custom class? https://gist.github.com/xorgate/430c21bb471278db06d1 like have a member variable for the first item in the list ("a") Apr 13 14:53:15 xorgate yeah sure use a JsonAdapter or JsonDeserializer Apr 13 14:53:22 that response is valid json Apr 13 14:53:34 you could also do List but not type-safe Apr 13 14:54:18 JacobTabak: thanks, i think List will do for now Apr 13 14:58:05 i think im falling in love with rxjava Apr 13 15:01:35 rxjava is pretty sweet Apr 13 15:02:45 yiati: not quite. i have a couple buttons in my notification and i'd like to dismiss the notification after user clicks those buttons. Apr 13 15:04:54 alexfu: If the buttons go into your app at all, then you could kick off a NotificationManager#cancel() no? Apr 13 15:06:31 yiati: they dont. Apr 13 15:07:19 alexfu: yeah, if they don't go to any code that you own, that I don't think you'll be able to run code that you own Apr 13 15:15:43 Anyone know if there's videos from droidcon montreal talks? Apr 13 15:16:11 not yet Apr 13 15:16:36 Ughk, these facebook errors are useless Apr 13 15:17:14 Will there be videos from droidcon montreal? Apr 13 15:18:36 Why is nothing working right today!!?!?!?!? Apr 13 15:18:45 I have commented code out, and it is still trying to execute it?! Apr 13 15:19:09 it's monday Apr 13 15:19:35 lol Apr 13 15:19:38 Invalidate and restart. Apr 13 15:19:44 Lets see if this sorts anything out Apr 13 15:19:58 does the code execute like "you fucking sissy" or something? Apr 13 15:43:57 If my compilesdk and targetsdk are set to 21, but minsd is 11, is my app guaranteed to install on api 11? Apr 13 15:44:13 Provided it compiles just fine Apr 13 15:46:55 yes Apr 13 15:47:19 change your min to 13, 11 (and 12) don't exist anymore Apr 13 15:47:51 or just change to 15, 13 and 14 don't exist anymore* (*except for those two guys still using their Asus Transformers) Apr 13 15:51:12 JakeWharton: this particular app is not for use on the official market (smth embedded), but thanks Apr 13 16:12:00 My png with transparent background is visible in Android Studio XML editor, but the logo is completely invisible on the app when run on a phone. What can it be? Apr 13 16:18:34 Any ideas why Google Analytics for all my apps suddenly show this? http://bildr.no/image/YjcrKzF2.jpeg It's supposed to show average session length and screens per session but suddenly it just says 'undefined is not a function' Apr 13 16:20:13 session duration I mean Apr 13 16:23:30 quick question Apr 13 16:23:50 if a user signs in to google in the application, how can i make the server authenticate the user with google? Apr 13 16:24:00 ah, seems like google has broken something Apr 13 16:24:21 without having to request the user offline access Apr 13 16:30:24 Urgh, moments of pure panic: "What's the lowest SDK that we're supporting?" "Four" "!?!?!??!" [five minutes later...] "Wait, you meant Android 4.0, right?" Apr 13 16:41:34 jvrodrigues: What do you mean? Apr 13 16:41:52 jvrodrigues: Do you mean how can you make it so that when they press "Sign in with Google" that Google does the authentication for you? Apr 13 16:42:08 When keyboard hides it stutters my view animation. I need to nicely to hide the keyboard and simultaneously nicely animate fragment view before it gets removed Apr 13 16:42:15 the sign in with google is meant to get the identity of the user then send it to my own backend Apr 13 16:42:25 in my own backend im looking to validate the google token Apr 13 16:42:43 nevermind, that android:windowSoftInputMode="adjustPan" helps Apr 13 16:43:46 jvrodrigues: https://developers.google.com/identity/protocols/OAuth2UserAgent Apr 13 16:43:55 That what you are looking for? Apr 13 16:44:21 Scroll to "Validating the token" Apr 13 16:44:21 Ya, i think so Apr 13 16:47:40 hum Apr 13 16:47:43 this appears to be it Apr 13 16:47:47 thank you very much mate Apr 13 17:03:51 I got a Sync Adapter, running with a "PeriodicSync" (https://developer.android.com/training/sync-adapters/running-sync-adapter.html#RunPeriodic). If the user reboot the device, will the Sync Adapter will be running, or does the user need to open the application ? Apr 13 17:04:50 (addPeriodicSync is called on my Application "onCreate" method) Apr 13 17:06:29 hello. how can I access `sourceSet` used for unit tests? Apr 13 17:07:42 blusky: that's the whole point Apr 13 17:18:36 Hi Apr 13 17:19:26 I want to have a server controller, a class that can handle all the client, server communication. This class will create async requests to the server, and when it get a response it should parse it and notify the GUI. I want to know if this is the way to do that or is preferable to have all the client-server communication inside the fragments. If it's ok to do what I want, how can I notify the GUI after a response has been received and parsed? Apr 13 17:20:49 <_genuser_> anyone else still waiting on filing their federal tax return? Apr 13 17:22:20 JoseBravo, Yeah you could use an invisible retained fragment. You could use callbacks after the activity connects, or something like an event bus. Apr 13 17:25:29 I usually use libgdx for Android development, but for a new project I'm considering using stock Android but I'm concerned about development speed with the emulator. Is it still freakishly slow to test in the emulator? Apr 13 17:27:14 darkfrog, you mean you never heard of genymotion? Apr 13 17:27:42 iprime: no, but I'm looking for it now. ;) Apr 13 17:27:53 i'm sure you're gonna like it Apr 13 17:28:22 can Linkify handle phone numbers w/ extensions? Apr 13 17:29:19 alexfu, it can Apr 13 17:29:21 iprime: very interesting...do I need the paid version? Apr 13 17:29:39 darkfrog, probably not Apr 13 17:30:08 iprime: the only thing I can't seem to find an answer about is what "Java API" means. :o Apr 13 17:30:58 in the genymotion world? Apr 13 17:31:42 iprime: yes, it's only available in the paid version Apr 13 17:32:39 it would let you emulate sensors from the java code in your app Apr 13 17:33:19 ah, I see Apr 13 17:33:36 genymotion is great really Apr 13 17:34:15 the only problem i have with it is that virtualization is done via virtualbox which is in conflict with hyper-v.. in case you use that Apr 13 17:34:32 Any thoughts on this way of messaging my app users if server is down etc? http://pastebin.com/WSthinQQ Apr 13 17:34:50 iprime: hmmm, well I currently do development in a VMware Workstation Fedora guest...I wonder if that will cause problems Apr 13 17:35:06 oh vmware is good Apr 13 17:35:20 iprime: I like it. :) Apr 13 17:35:21 hyperv is a windows thing Apr 13 17:35:44 quinnjn what is the best way for you? Apr 13 17:35:48 I think its vulnerable to android.view.WindowManager$BadTokenException: Unable to add window Apr 13 17:37:59 JoseBravo, it depends on how critical the data is to me. Honestly, if the network operation is an idempotent one I don't bother retaining the connection and make them resend if the connection gets lost. Apr 13 17:38:05 Quacked, a lot of people here would suggest you abandon asynctask altogether :) Apr 13 17:38:58 oh? and use what? Apr 13 17:39:18 JoseBravo, if it's a critial network request that can't be easily repeated you'll want to retain the result for sure! Apr 13 17:40:16 Quacked, for networking there are several libs, like volley (google), then you can check eventbus and rxjava, very popular now Apr 13 17:41:39 whats wrong with a simple asynctask? :) Apr 13 17:41:48 im just grabbing 5 lines from a txt file Apr 13 17:41:57 it's not simple. Apr 13 17:41:57 or elegant. Apr 13 17:41:57 or short. Apr 13 17:42:10 well.. what Mavriks said Apr 13 17:42:36 iprime: thanks for the reference to genymotion, that will save me a lot of pain Apr 13 17:42:47 darkfrog, sure, what are you building? Apr 13 17:43:46 iprime: this is a stock tool for Qatar Apr 13 17:44:04 Why does my CheckBox disappear when I check it? Apr 13 17:44:35 I see the check and onTouch animation, but then it disappears. Apr 13 17:52:58 dont like using more libs than I need to :P Apr 13 17:53:22 oh wellp Apr 13 17:54:05 Using Executors is probably better than using AsyncTask in many cases. Apr 13 17:54:23 More control over thread-pool size. Apr 13 17:55:19 s/More c/C/ Apr 13 17:55:45 you can use a custom executor with async tasks Apr 13 17:56:54 iprime right, but then its set globally for all asynctasks in your app Apr 13 17:57:14 which is probably not want you want, for example io vs networking Apr 13 17:58:31 g00s, i was just saying.. but what do you mean it's set for all asynctask? Apr 13 17:59:12 it's per asynctask instance Apr 13 18:02:00 oops executeOnExecutor is 11 Apr 13 18:02:45 Is there any convention on UI for allowing a user to edit a listview, and an action to remove all items Apr 13 18:03:55 g00s, yeah, very different behavior of the async tasks in android < 11 Apr 13 18:06:02 yiati: What do you mean by "edit a listview"? You can use a BaseAdapter and call notifyDataSetChanged() after removing or adding items. Apr 13 18:08:37 surf2b1: I mean as an app user I would like to remove items from a list. Is there a UI convention for that Apr 13 18:10:21 hmm maybe a contextual action bar Apr 13 18:11:14 or swipe them right into oblivion Apr 13 18:11:19 I've never been a big fan of long click actions though which is how contextual action bars usually come up. I personally like long click actions, but I assume 99% of users are going to have no idea what it is Apr 13 18:11:32 iprime: Yeah I was thinking about something like what gmail does Apr 13 18:11:44 iprime: but what about an action to remove all at onece Apr 13 18:11:51 s/onece/once/ Apr 13 18:13:29 an actionbar/toolbar button? FAB? menu item? probably depends on your other UX Apr 13 18:14:04 meh, Ill just use the asynctask as an inner class Apr 13 18:14:16 1000 lines in MainActivity now Apr 13 18:15:04 Quacked: or rxjava :D Apr 13 18:15:27 hehe Apr 13 18:15:35 Quacked, that doesn't really solve the problem Apr 13 18:16:03 iprime, what problem? Apr 13 18:16:41 all problems that might arise from using asynctask Apr 13 18:17:00 oh, right, if I launch app, exist activity, it will force close Apr 13 18:17:17 trying to build an alertdialog with no parent activity Apr 13 18:18:34 you can use an activity with a dialog style Apr 13 18:19:24 yeah, or surround the new AlertDialog with try catch :) Apr 13 18:19:24 shit. another user saying my app doesn't work on their Samshit Galaxy Note 3 Apr 13 18:19:37 i wish those those things would just dissapear Apr 13 18:19:39 TacticalJoke, hello Apr 13 18:19:53 Hi Apr 13 18:19:57 g00s, ugh.. the samsungs... Apr 13 18:19:59 I've tried this just now http://stackoverflow.com/questions/20280872/android-studio-exports-strings-from-support-library-to-apk and the APK size is not decreasing Apr 13 18:20:19 TacticalJoke, I've found the reason of the issue Apr 13 18:20:30 Im using over 10 libraries, can this be the reason? Apr 13 18:20:41 what happens when I include a library, does the code sit in my own project or what Apr 13 18:21:00 who tells you that Apr 13 18:21:08 Odaym over the 64K limit ? Apr 13 18:21:11 Which issue? Apr 13 18:21:22 TacticalJoke, textview in activity Apr 13 18:21:32 its at a size which I dont believe is reasonable Apr 13 18:22:59 other issues with this than being asynctask? :) http://pastebin.com/zpFeT3kE Apr 13 18:27:28 hey guys! how can i restrict charecters on a EditText in java code with the same ease as on XML "android:digits" Apr 13 18:27:53 ill also do a check to prevent alertdialog if file is empty Apr 13 18:29:24 abara: The programmatic way to do it is right next to the android:digits field on the EditText documentation page Apr 13 18:30:51 abara: Also a quick search for "set X in android programmatically" in google gives you what you want 99% of the time Apr 13 18:31:29 abara: And if you use that template the first google response happens to have the answer you want Apr 13 18:32:05 Cool, Cristian. Apr 13 18:33:41 hm, i'd like to reproduce a build from 2011 but i can't find the build-tools and stuff i used from back then Apr 13 18:33:45 heh Apr 13 18:34:15 does it not build at all under the newer ones? Apr 13 18:35:03 that would suck, if so :\ dunno if the tools team has really tried to maintain backwards compatibility though. Apr 13 18:35:19 totally different versions of proguard among other things, ugh Apr 13 18:35:27 shit targsetSdk=froyo Apr 13 18:35:32 lolol Apr 13 18:35:43 doomed Apr 13 18:36:41 don't suppose you could build an android.jar out of the aosp repo? I've never tried :| Apr 13 18:37:04 some (all?) build tools are in there too, at least Apr 13 18:38:35 yiati: Thanks, i'm using setKeyListener(DigitsKeyListener.getInstance("0123456789x") but it's force the numeric keyboard, so the "x" is not showing up :( Apr 13 18:39:21 abara: yeah x is not a digit Apr 13 18:42:10 yiati: yes, but got it working over xml attributes: app shows the normal keyboard (text/digits/...) but the edittext only accepts the digits and letter "x" Apr 13 18:42:51 ok wel proguard got me down to 3MB Apr 13 18:44:41 abara: That's likely because with the xml it's a matter of order. If the text/digits attribute is listed last in the xml then it will set the keyboard specifically to text/digits. With the programmatic way you are explicitly stating that you only want a "DigitsKeyListener". If that's not the one you want then use a different KeyListener subclass Apr 13 18:45:33 yiati: basically i need to write one from scratch .-. Apr 13 18:45:46 abara: Probably not no Apr 13 18:46:18 abara: Use one of the other default KeyListeners which is obviously being chosen when you do it in xml Apr 13 18:46:53 Look at "Known Indirect Subclasses" in http://developer.android.com/reference/android/text/method/KeyListener.html Apr 13 18:47:04 One of those is what you want Apr 13 18:47:13 obviously not DigitsKeyListener Apr 13 18:50:25 yiati: i see the others dont have a method to set the group of characters Apr 13 18:52:23 hello Apr 13 18:52:51 does this still work for the English locale only? http://android-developers.blogspot.com/2014/10/the-fastest-route-between-voice-search.html Apr 13 18:53:00 yiati: thanks for the help mate! Apr 13 19:24:25 What is the state of pre-preprared? Apr 13 19:25:38 " "up and to the right" disease. here you split-test everything and just do whatever moves the numbers. pretty soon you are selling porn or psychic hotlines." Apr 13 19:25:39 lol Apr 13 19:27:34 yiati: think of it as primary/secondary. primary must be explicitly (ad / remove button either on the row or in a context action bar), secondary doesn't have to be explicit (but anything non explicity is necessarily secondary) such as swiping Apr 13 19:27:43 always make sure you have primary mode of operation Apr 13 19:28:13 is there any table where i can see what html5 resources each API webview supports? Apr 13 19:29:22 luist: caniuse.com is the best I know of Apr 13 19:29:55 I don't know if it has any webview-specific data though :| Apr 13 19:30:05 groxx: ooh but i have to test that on each api right Apr 13 19:31:05 luist: ? Apr 13 19:31:14 icanhaz.com would've been cool. Apr 13 19:31:29 groxx: this website will test if the current browser can run these itens Apr 13 19:31:39 groxx: oh nvm Apr 13 19:31:53 groxx: yeah this wont help me with webview Apr 13 19:31:53 luist: I _think_ it has tests, but it's mostly a repository of results. Apr 13 19:32:20 luist: unless webview is equivalent to "android browser"? it would fit, since the most-recent version is "40" == android chrome v40 Apr 13 19:35:18 TacticalJoke, the issue was due to the layout in main.xml, not to the code :D Apr 13 19:35:53 groxx: i don’t think it’s the same because you can update the android browser even with a lower API, while the webview can’t be updated Apr 13 19:36:36 ah, that could be Apr 13 19:51:17 anyone have any good references for creating type safe builder DSLs in java ? i found this and it gets interesting around slide 20 http://www.slideshare.net/ekabanov/embedded-typesafe-domain-specific-languages-for-java Apr 13 19:51:22 but i was hoping to find more Apr 13 19:51:50 i guess these are the more fluent varierty, not the vanilla Builder pattern Apr 13 20:07:41 How I can add a Map with 1500 markers? I get OutOfMemoryError, I want to check markers in current map zoom only (max 60) for example Apr 13 20:08:37 Narzew google uses an algorithm in myTracks to avoid that; find the sources and look at the mapping parts Apr 13 20:09:08 I have loop that add markers from database Apr 13 20:09:11 the algorith decides the best # of markers to use for zoom level, given the size of a marker vs size area covered by pixel Apr 13 20:09:32 yeah, brute force approach won't work well Apr 13 20:09:32 but my code works fine with 30 markers, and crash with 1500 Apr 13 20:09:36 sure Apr 13 20:10:28 why should I do to fix that ? Apr 13 20:11:11 I have a gradle question. If I define a variable in the build.gradle outside of the app folder, would I be able to access those inside the build.gradle for the app module? Apr 13 20:11:22 cr5315 Apr 13 20:11:39 sure. in the root build.gradle, you can put in in ext { foo = 123 } Apr 13 20:11:51 Awesome Apr 13 20:11:55 and then in your subprojects, you say blah blah rootProject.foo Apr 13 20:18:15 Does anyone about good use cases of Android development with Scala and Kotlin? Some talks from conferences or a document with multiple pages. I am consider one of these languages for my small hobby project and I would like to see all caveats. Apr 13 20:20:34 SneakerXZ you can start here Wharton/posts/WSCoqkJ5MBj Apr 13 20:20:36 lol Apr 13 20:20:41 https://plus.google.com/+JakeWharton/posts/WSCoqkJ5MBj Apr 13 20:20:53 lol, I am just reading that :) Apr 13 20:20:59 was first link in Google :) Apr 13 20:21:02 but thanks anyway Apr 13 20:21:11 do you know about anything else? Apr 13 20:21:39 SneakerXZ: http://beust.com/weblog/2015/04/11/android-rx-and-kotlin-part-3/ Apr 13 20:21:47 SneakerXZ https://www.youtube.com/watch?v=dJscNr1silY Apr 13 20:23:01 SneakerXZ without using either, my impression is that kotlin is lower risk than scala on android. better tooling (from the people making Intellij), smaller runtime, and they explicitly care about Android. Typesafe has so far ignored android, Apr 13 20:23:26 even though individuals have put in a lot of work to get things working Apr 13 20:24:01 g00s: I grab the source, which files are for Mapping part ? I tried to find in MarkerListActivity but I don't find much Apr 13 20:24:16 Narzew you'll have to look through it - its been a few years Apr 13 20:24:54 Yeah Typesafe has zero interest in android. Also, the Scala runtime has 50k methods compared to Kotlin’s 5k Apr 13 20:25:15 sorry for OT just in case you want the spacex launch in 8 minutes http://www.spacex.com/webcast/ Apr 13 20:27:11 g00s: jaana My problem with Kotlin is that it has zero reusability outside. Scala got really nice support on backend. Apr 13 20:28:10 SneakerXZ: I don’t understand what you mean Apr 13 20:28:17 “zero reusability”? Apr 13 20:28:24 Typesafe has a lot of interesting components, like akka etc Apr 13 20:28:27 jaana: With Scala I got Play, Akka and a lot of nice frameworks Apr 13 20:28:33 jaana: What do I have with Kotlin? Apr 13 20:28:53 So what, use the right tool for the right thing Apr 13 20:28:59 so, basically, you like Scala because it has zero reusability on mobile Apr 13 20:29:05 lol Apr 13 20:29:22 groxx that was great, you get 100 internet awards Apr 13 20:29:25 On mobile, use Java or Kotlin, on back end, use Kotlin, Java, Scala, whatever works best Apr 13 20:30:47 i'm guessing that SneakerXZ is considering 'isomorphic' components that work both on mobile / backend, like validation possibly Apr 13 20:30:47 Hello. Could anyone help me out with gradle config? I'd like my task to use a different variable for each buildType. I could do so with multiple tasks but perhaps there's a workaround? Here's a snippet of my code: http://pastebin.com/JYayAi5u Apr 13 20:31:00 jaana: You are right, but I am not keep up with all languages so I prefer to have one language that I can master and use it with different libraries on different platforms. Apr 13 20:31:12 g00s: possible Apr 13 20:31:15 SneakerXZ: Then Java is that language Apr 13 20:31:21 \(^∀^)/ thank you, thank you. I'd like to thank the (╯°□°)╯︵ ┻━┻ BWAHAHAHA Apr 13 20:31:40 jaana: Of course, but it has a lot of problems so that is why I seek replacement. Apr 13 20:32:03 SneakerXZ: Java is the language that has the fewest problems on both Android and the back end, so it should be your rational choice Apr 13 20:32:03 SneakerXZ do you know scala now ? Apr 13 20:32:29 Why not Kotlin? It targets the JVM (I've missed most of the conversation). Apr 13 20:32:33 SneakerXZ: It feels more to me like you really want to find a good reason to use Scala on Android and you’re unhappy I’m telling you it’s a bad idea :) Apr 13 20:32:39 g00s: I wrote some projects in it, definitely more knowledge than in Kotlin Apr 13 20:32:47 and kind of big projects Apr 13 20:32:50 10k lines Apr 13 20:33:00 jaana: kind of :) Apr 13 20:33:03 SneakerXZ you can ask pfn for some ideas if he's here Apr 13 20:33:09 oh i see he's not here Apr 13 20:33:19 oops, pfn_ pfnQ :) Apr 13 20:33:35 ok, who got pfn wet after midnight? Apr 13 20:33:46 With Scala’s runtime of 50k methods, you’re pretty much limited to toy apps on Android. Or hello multidex hell Apr 13 20:33:57 JesusFreke: I don't think I want to know Apr 13 20:34:05 and using a platform that can break what you’re doing any release because they don’t test on Android Apr 13 20:34:11 groxx: gremlins :p Apr 13 20:34:15 he's multiplying Apr 13 20:34:43 jaana: I can ProGuard :) Apr 13 20:34:58 oh, I guess the water thing wasn't time specific. only eating Apr 13 20:34:59 I prefer to re-interpret your gremlin-loaded question in the worst possible way. or maybe not "prefer" so much as "did it once by accident, now have no choice." Apr 13 20:35:00 SneakerXZ: You have to use proguard, but that won’t shake that runtime down by much Apr 13 20:35:16 actually there are a lot of issues with proguarding scala code, which is why you need special libraries such as pfn's Apr 13 20:35:36 again, another symptom that Typesafe doesn’t support android Apr 13 20:35:44 and/or proguard, but yeah Apr 13 20:36:07 special library? Apr 13 20:36:07 it's not a special library Apr 13 20:36:10 how bad is multidex now anyway? I thought there were a few improvements latelyish? Apr 13 20:36:15 also Scala 2.12 requires Java 8 Apr 13 20:36:18 multidex is slow if you use the support multidex Apr 13 20:36:22 g00s, that's not exactly true anymore Apr 13 20:36:25 g00s: ah yes there’s that too Apr 13 20:36:40 pfn_: runtime-slow or compile-time slow? Apr 13 20:36:45 groxx, compile time Apr 13 20:36:57 SneakerXZ, scala on android works perfectly fine Apr 13 20:37:01 ignore naysayers such as jaana Apr 13 20:37:09 lol jaana , you naysayer ! Apr 13 20:37:14 nay Apr 13 20:37:17 oh oops Apr 13 20:37:48 :) Apr 13 20:38:49 oh, this is important Kotlin has a very low learning curve and most people can pick up a majority of the language in a single day Apr 13 20:39:29 kotlin is a bit too simple of a language, it's like java++ Apr 13 20:39:33 pfn_: I understand you have a vested interest in Scala but saying “ignore naysayers like jaana” is pretty disrespectful. He asked for some facts, I gave him some. You’re welcome to disagree with me but let’s behave like adults Apr 13 20:39:43 scala is shit Apr 13 20:39:55 yes, that warehouse. bring extra bolt cutters Apr 13 20:40:01 wrong window Apr 13 20:40:06 scala is poop Apr 13 20:40:24 i think 'excrement' would be more adult ;) Apr 13 20:40:40 jaana, all you've really ever done is just be negative without any real support Apr 13 20:40:41 facts? it works easier than getting android studio and gradle working Apr 13 20:40:59 JakeWharton: Do you still use Kotlin at Square? How do you like it after some time? Apr 13 20:41:01 pfn_: I gave numbers and facts, prove them wrong and let’s have an adult discussion Apr 13 20:41:07 what numbers and facts? Apr 13 20:41:08 SneakerXZ: we have never used it Apr 13 20:41:10 prove what wrong Apr 13 20:41:14 just vetted it Apr 13 20:41:17 you haven't proven anything Apr 13 20:41:27 Like runtime sizes Apr 13 20:41:34 jaana, the runtime size is mostly irrelevant Apr 13 20:41:35 Like Typesafe’s absent support for Android Apr 13 20:41:43 JakeWharton: Why? You didn’t like it at the end? Apr 13 20:41:53 lack of support for android is somewhat of an issue, not a whole lot Apr 13 20:41:59 Java 8 Apr 13 20:42:00 scala versions 2.7 through 2.11 all run fine on android Apr 13 20:42:00 because we have real shit to do Apr 13 20:42:06 Perils of proguarding scala code Apr 13 20:42:07 JakeWharton: :) Apr 13 20:42:09 jaana, java 8 may not be as big of an issue as one thinks it is Apr 13 20:42:13 there are no perils of proguarding scala code Apr 13 20:42:17 Kotlin is available for use now if someone were to choose to use it Apr 13 20:42:29 but there's higher-value wins at the moment Apr 13 20:42:32 like shitting on scala in this channel Apr 13 20:42:42 :) Apr 13 20:42:49 but no really, we'll get to it Apr 13 20:43:04 there's also a lot of churn right now to iron things out Apr 13 20:43:31 jaana, and no, I have no vested interest, I get no money or sponsorship or support from people using scala on android Apr 13 20:43:34 good for the language, bad for adoption. i prefer the former be sorted early. Apr 13 20:43:36 JakeWharton: Did anything change about tools like Dagger on Kotlin? Or what would be the alternative? Apr 13 20:43:46 no Apr 13 20:44:01 hand-rolled DI, reflection-based DI, not using DI Apr 13 20:44:10 iron out? in Square or in Kotlin? Apr 13 20:44:16 Kotlin Apr 13 20:44:32 they're breaking and changing all the things for the betterment of the future users Apr 13 20:46:00 Is there any benefit for using a separate developer account for AdSense, Google Play? Or are the account only used for logging into the websites and getting email from Google about news, updates…? Apr 13 20:48:11 JakeWharton: Do you know when they will be done with that and release 1.0? Apr 13 20:48:27 no. makes no difference to me. Apr 13 20:49:19 breaking changes in a library that compiles to bytecode means nothing Apr 13 20:49:24 you upgrade like you upgrade anything else Apr 13 20:50:16 JakeWharton: so If you were to start a new project, you would use Kotlin, right? Apr 13 20:51:48 sorry guys for interrupting your discussion about Scala and Kotlin (which is intriguing) but anyways.. what if I need to share a cursor between fragments? Would it work if I implement OnCreateLoader in activity and then OnLoaderFinished will pass the cursor to both fragments' OnLoaderFinished? Should it work? Apr 13 20:52:30 Any comments on a proper way to do would be appreciated Apr 13 20:55:52 icedp: here you have some suggestions: http://stackoverflow.com/questions/26889890/how-to-share-cursor-between-fragments-activities Apr 13 20:56:18 SneakerXZ: no idea Apr 13 21:02:00 mEck0: thanks, I actually saw it. Just thought maybe somebody would have any comments Apr 13 21:02:13 icedp i thought you could start a loader in the activity and share it among fragments, i could be wrong though Apr 13 21:10:41 hey all. found this difficult to search for. can anyone shed some light? do reviews "for an older version" affect rating metrics differently than current ones? meaning, does the algorithm take into account that bugs/issues are often fixed in app updates? Apr 13 21:17:17 treelzebub: hard one, tried send email to google/playstore about it? there's no material about it over the dev account section? (never posted app over there) Apr 13 21:18:33 Doesn’t anyone have an idea of which account type to create for AdSense/AdMob/Google Play? What have you done, are you using your private account even though you have a small company? Apr 13 21:21:08 hello Apr 13 21:21:32 is needrom.com a decent website to download roms? Apr 13 21:21:47 see topic Apr 13 21:23:26 Why does Android Studio launch a Java application and doesn't close it when Android Studio closes? That thing can eat up to 1GB. Apr 13 21:25:07 Android Studio itself goes up to 1.5GB and doesn't compress any of the RAM used. Apr 13 21:25:10 0 bytes. Apr 13 21:25:12 mEck0: if your developer account gets banned gets what, you will loose all your personal emails and so on Apr 13 21:25:32 mEck0: Don't use a private account for any google business stuff. Even if you canyou don't want any resulting actions to the business stuff to affect your personal account Apr 13 21:26:07 mEck0: That's pretty much a surefire way to break a limited liability barrier. Don't do that. A google account takes two minutes to set up. Apr 13 21:27:07 icedp, yiati, freeone3000: okay, but I have already connected AdSense to my private. It can be closed as far as I’ve read? So I can connect AdSense to a developer-only account? Apr 13 21:28:46 Muchoz it starts a gradle daemon Apr 13 21:29:52 abara: good idea! i'll look into that, thx Apr 13 21:30:59 treelzebub: okkey buddy, dont forget to get back here if you find out something about it Apr 13 21:31:33 will do! Apr 13 21:31:42 i'm in here frequently Apr 13 21:32:09 me too, o/ Apr 13 21:32:52 "Sharp Goes Crazy, Makes Crazy-Sharp 3840x2160 5.5-Inch Smartphone Display With 806 PPI" Apr 13 21:33:04 everybody get ready for xxxxdpi assets :) Apr 13 21:33:31 g00s: what. Apr 13 21:33:39 http://www.androidpolice.com/2015/04/13/sharp-goes-crazy-makes-crazy-sharp-3840x2160-5-5-inch-smartphone-display-with-806-ppi/ Apr 13 21:33:45 that counts as literally insane, I think Apr 13 21:35:23 actually... hm. I wonder if they're aiming for the VR market? Apr 13 21:36:01 with google cardboard + the nexus 6, pixels are easily visible. this would be a significant improvement. Apr 13 21:36:52 g00s nay, I can see pixels at 318 ppi, so maybe 806 is all right ) Apr 13 21:37:25 icedp don't be a naysayer ! Apr 13 21:37:28 I've gotta get _really_ close to my N6, which is ~500 ppi? Apr 13 21:37:43 https://plus.google.com/+RonAmadeo/posts/Zs3m4fS2YoJ Apr 13 21:37:45 to see pixels, that is. Apr 13 21:38:50 relevant? http://www.sammobile.com/2015/04/09/galaxy-note-5-will-reportedly-tout-ultra-hd-super-amoled-display-with-record-ppi/ Apr 13 21:39:05 762 != 806, but close enough to not matter. Apr 13 21:39:32 "The results of the study conclusively show that users can discriminate between 339 and 508 PPI and in many cases between 508 and 1016 PPI." Apr 13 21:40:25 (at 30 cm viewing distance) Apr 13 21:44:23 'cannot resolve symbol Fragment' Apr 13 21:44:30 oh boy, here we go again Apr 13 21:46:01 that doesn't sound right Apr 13 21:46:34 g00s, if only it were to close that daemon. And damn that daemon takes a lot of memory too! Apr 13 21:46:37 just realized since i updated to gradle-plugin 1.2 that i've been working in non-android part of the app Apr 13 21:49:31 icedp: ya know what else people notice? 15fps because that many pixels takes a beast of a GPU that doesn't exist yet. Apr 13 21:50:32 oh look, they fucked up the manifest merger again Apr 13 21:50:38 groxx: Things like static display and H.264 decoding will handle 4k just fine. Apr 13 21:51:13 freeone3000: yeah, but everyone wants animations and smooth flappy bird :) Apr 13 21:51:29 i've come to the conclusion that providing a robust build system is beyond xav's teams ability Apr 13 21:51:33 groxx: And actually, a single 970 can handle a 4k display fine at 30fps, dual 980s handle 60fps fine. Apr 13 21:51:35 and h.264 only works fine because of specialized processors. but yes. Apr 13 21:51:40 g00s: Of course, these don't fit in phones. Apr 13 21:51:53 groxx: Graphics at all only works because of specialized processors, so I don't see your point. Apr 13 21:52:20 true. but "can decode this one algorithm quickly" vs "can implement a game in" are different levels of specialization. Apr 13 21:52:38 and the former does nothing for new codecs. Apr 13 21:56:18 Does anyone know if exoplayer handles RTSP? Apr 13 22:01:14 lasserix what did you do to deserve having to use android media stuff :P Apr 13 22:06:00 its like the bulk of attraction for the clients app Apr 13 22:06:06 but finally got it down Apr 13 22:06:12 using exoplayer as base player Apr 13 22:06:25 if user has 15 then they can only do static via video view Apr 13 22:06:36 above 15 exoplayer can do static and streaming, and is much, much better than videoview Apr 13 22:06:56 so I ripped open the exoplayer demo boiled it down to something like mediaplayer with simplified callbacks Apr 13 22:07:00 finally getting there tho Apr 13 22:09:14 ive written like 5 different classes for all the use cases now trying to abstract/encapsulate Apr 13 22:11:13 how's the exoplayer source? Apr 13 22:16:50 there seems to be some weird non-determinism with AS / gradle - sometimes i get a manifest merger error, sometimes i dont Apr 13 22:18:01 i'm coming to the conclusion these days, that this was not such a sucessfull experiment; let the IDE build its way, let gradle build its way Apr 13 22:18:29 they're not the same? Apr 13 22:19:15 if i sync gradle & clean & build 50/50 i get manifest merger problem Apr 13 22:19:21 from AS Apr 13 22:19:40 i think i see the problem, but why it doesn't always fail is perplexing Apr 13 22:19:43 dang that was one of the main attractions to me...that at any time i could go to the command line and invoke gradle directly Apr 13 22:20:24 myke i think eclipse had much better feedback and 'micro-knowledge' of your code Apr 13 22:20:53 i think its cool gradle can tell the IDE the structure of your app, but i'm thinking now its better to defer to the ide to build on day-to-day Apr 13 22:21:00 no incremental compilation in AS/gradle yet, yea? Apr 13 22:21:10 2 minute build, i dont think so Apr 13 22:21:19 yeah that stinks Apr 13 22:21:38 even on my old hw eclipse is fast, i always chalked it up to incremental compilation and i guess dex merging Apr 13 22:21:38 that got a little longer since i added play services though. phew luckily no multidex / proguard :) Apr 13 22:22:16 on trivial projects i can get an app running on my test phone in 8 seconds with eclipse, never less than 20 seconds with gradle Apr 13 22:28:55 groxx still there ? Apr 13 22:29:18 it seems to be doing some level of incremental compilation - clean builds are way longer than rebuilds Apr 13 22:29:23 g00s: I'd love to know what you are making Apr 13 22:29:51 g00s: intermittent merging errors sound awful D: Apr 13 22:29:55 Anthaas my sw is used by the military Apr 13 22:30:07 Twitter for the Army? Apr 13 22:30:11 lol Apr 13 22:30:36 nowait. Uber for the Airforce Apr 13 22:31:02 Grindr for the navy Apr 13 22:31:11 even better Apr 13 22:32:03 groxx question: imagine a gradle subproject called 'bluetooth-utils'. this has both br/edr and ble BT stuff; but BLE is minSdk=18 - the rest of the app is minSdk=16. would you break this into 2 modules like google/support: bluetoothUtils-V18 + bluetoothUtils-V16 or keep it together, but use the manifest tools:override all over the place Apr 13 22:32:13 "Yeah, errr, this is alpha two niner, I need a jet to go to the supermarket plz" Apr 13 22:35:29 g00s: interesting. probably override, unless they're actually useful in separate pieces. sounds like the overrides are causing problems though? Apr 13 22:36:04 override is causing problems in one of the subproject androidTests Apr 13 22:37:21 but it builds from the command line. you know when you build from AS, and you see a ton of compiling :a:b, :B:c, :d:e, :e:f - i think this is a different order than gradle from CLU Apr 13 22:37:26 ¯\_(ツ)_/¯ dunno. v16 + v18 projects is probably the most tool-agnostic, which has some benefits. Apr 13 22:37:38 *CLI and so a path is being traversed that trips the bug in AS only Apr 13 22:37:45 oof. I hope it's not different :| Apr 13 22:37:57 could it be that the CLI builds aren't using the daemon? Apr 13 22:38:15 I have now created a dev-only account for AdSense etc. and want to cancel my previous AdSense connection to my private account. There should be a Cancel account button when logged in, but it’s not visible. How to do it? Apr 13 22:38:16 they are all using the deamon, i just think that AS gives it a specific list of targets Apr 13 22:38:34 and do you maybe have "compile independent modules in parallel" turned on? Apr 13 22:38:35 that list is in a different order than gradle CLI would determine Apr 13 22:38:47 no i dont have that Apr 13 22:40:00 hm. dunno, not sure how to bugfix that one. you can add gradle commands when building from AS though, there's probably some verbose mode that would let you figure out if they are in fact different. Apr 13 22:40:30 the android build system is damn complicated Apr 13 22:40:41 yeah :( Apr 13 22:40:47 gradle is a very mixed bag there. Apr 13 22:43:33 God, animated GIFs. I'm loading one right now that's taking over five minutes to download. How are we still using animated GIFs for video content in 2015. Apr 13 22:43:40 In fact, why did humans ever use animated GIFs for video content. Apr 13 22:43:43 I have menu with 4 items. I would like to have one action show up as a button on the action bar AND on the menu. Can I do that? how? Apr 13 22:43:56 TacticalJoke: eventually we, as a species, will evolve proper alpha channels, and use APNG. Apr 13 22:44:50 dcorbin: I don't think you can do that without adding the item twice (once with showAsAction=always/ifRoom and once with showAsAction=never). Apr 13 22:44:58 dcorbin: Why do you want to do that, anyway? Apr 13 22:44:58 with progaurd, if you enable optimization but NOT obfuscation, will you stack traces still be accurate? Or will they still require mapping Apr 13 22:45:26 TacticalJoke: ooh, I just remembered: have you considered taking the gifs, and ffmpeg-ing them into movie files? Apr 13 22:46:05 Nah. Is that worth doing? Apr 13 22:46:18 So far, I'm using Movie (lawl), but I was gonna move to GifDrawable. Apr 13 22:46:18 TacticalJoke: it was a user request. He feels like it will be easier to activate the primary action when using one hand/thumb if it's on the menu button Apr 13 22:46:19 Wavesonics: I think you'll still need mapping, since optimization essentially rewrites your code. not certain about that. Apr 13 22:46:39 dcorbin: A floating action button might be even better. :D Apr 13 22:46:51 Can you elaborate? Apr 13 22:46:54 TacticalJoke: no clue. and ffmpeg is a few megabytes per binary. just realized it's an alternative I hadn't mentioned / seen discussed :) Apr 13 22:46:57 Or is that sarcasm Apr 13 22:47:02 TacticalJoke: actually a lot of sites started autoconverting gifs to mp4. gifs were used in the first place because it was widely supported unlike video codecs Apr 13 22:47:26 groxx: ok, ya I figured as much :? Apr 13 22:47:45 dcorbin: It's this at the bottom-right: http://material-design.storage.googleapis.com/publish/material_v_3/material_ext_publish/0B6Okdz75tqQsQUxBamxwdy15Vlk/patterns_actions_fab1.png Apr 13 22:47:50 From . Apr 13 22:48:00 groxx: Interesting, thanks. Apr 13 22:48:04 mornin' Apr 13 22:48:29 icedp: Yeah. I think GIF works well for super-simple (a few frames at most) animations. Just insane for video content. :D Apr 13 22:48:57 TacticalJoke: gifycat displays the filesize saved converting gifs to mp4. It's usually a few tens of megabytes. Apr 13 22:49:02 Yeah Apr 13 22:49:20 Wavesonics: hm. maybe it only matters for some optimizations. like, auto-finaling things probably doesn't need a mapping, but enum -> integer probably does. Apr 13 22:49:32 TacticalJoke: https://github.com/sidorares/vnc-over-gif Apr 13 22:50:14 Wavesonics: is there a worry about the mapping file? nearly everything works with them, it seems, or at worst you can un-map it and give the output to a tool Apr 13 22:50:23 so I'm doing a contacts contract query in order to get a list of emails addresses and phone numbers associated with a user ... the way I'm currently doing it is very slow Apr 13 22:50:28 Whats the best way to handle a method you need to overriden in subclass but one that you want to also implement in superclass? Apr 13 22:50:34 it looks like i need to do a separate email and separate phone number query Apr 13 22:50:36 for every use Apr 13 22:50:42 groxx: looking at what proguard-android-optimize.txt enables by default Apr 13 22:50:45 i get the impression that below all of this is sqlite Apr 13 22:51:14 am I to think that I'm dealing with multiple tables that have foreign key constraints Apr 13 22:51:22 and that I'm just using some kind of ORM to access them? Apr 13 22:51:36 lasserix: Do you have any more details? Like, why does it *have* to be overridden in the subclass? Apr 13 22:51:45 or is my idea of how it is internally structured completely incorrect? Apr 13 22:52:41 Thanks, TacticalJoke I may play around with ti as an optional settting. Apr 13 22:55:11 lasserix: three classes in play? the middle one could override X to call abstract-method-Y. Apr 13 22:58:26 kristopolous: dunno. depends on the query. and yes, it's all SQLite underneath - if you want to know indexes / detailed structure, the source is available, and afaik it's reasonably stable between OEMs. Apr 13 22:58:34 Anyone know how to add dependencies in Eclipse? I'm trying to move one of my projects from Android Studio to Eclipse so a freelancer can work on it Apr 13 22:58:49 abstract and concrete: the super has abstract method like "onFullscreenToggle" which in the super class needs to something, but i also _need_ the subclass to call this method to do its own things in response Apr 13 22:59:41 lasserix: maybe this is in the wrong direction, but would something like onMeasure -> setMeasuredDimension make sense? that's handled with a boolean + a throw. Apr 13 23:00:15 yea was thinking something but theres no compiler time check ofcalling that method Apr 13 23:00:25 *like that Apr 13 23:00:42 nope. could make it return whatever data it would be passing to method X? Apr 13 23:01:04 no returning here Apr 13 23:01:39 so better example showInitialViewState() right, so subclass has specific widgets that need to be manipulated BUT super class also needs to do things like reset Apr 13 23:01:55 obsviously i can not make it abstract, then override, but that's not a compiler gaurentee the subclass will override Apr 13 23:02:03 I'm not aware of any way to enforce it at compile-time, without e.g. building an annotation processor to verify it. Apr 13 23:02:07 ahh Apr 13 23:02:11 yeah that would be the way Apr 13 23:02:32 android studio's processor integration is pretty crappy, sadly. they work, but you don't get in-line error messages. Apr 13 23:02:51 TacticalJoke: Got a REST API set up now :D Apr 13 23:02:56 And its actually RESTful! :D Apr 13 23:03:11 What about composition with events? The "superclass" is wrapped instead of inherited and it raises events which the wrapper subscribes to. Apr 13 23:03:15 and I'm not sure what other limitations there may be around doing this. I've pondered building a "write-your-own lint" processor, but haven't done so yet. Apr 13 23:03:18 Cool, Anthaas. Did you go with PHP in the end? Apr 13 23:04:06 inheritance is complicated, composition for the win ) Apr 13 23:05:29 lasserix: you mentioned yesterday that i should just use the content uri, i would prefer to do that but when i fire up an intent to open it the apps can't seem to access the uri Apr 13 23:06:40 TacticalJoke: Yeah, using the Slim framework. Nice and easy to set up and what not, got a little help from ##php's equivalent of CedricBeust Apr 13 23:07:06 I WILL learn python at some point (for my next project), I am just getting comfortable with the whole set up and things first, PHP just seems easier because I am familiar with it already. Apr 13 23:08:14 a solid argument. Apr 13 23:08:44 A lot of people love Python, but its lack of static typing drove me mad the one time I used it. Apr 13 23:08:56 Anthaas: don't suppose you've looked at HHVM? and does AirBnB or someone have something similar too? Apr 13 23:09:33 yeah, I have had a little bit of experience, I found the if __name__ == "__main__" hilarious. Apr 13 23:09:53 TacticalJoke: you'd LOVE ruby then Apr 13 23:09:54 groxx: Cant say I have. I had someone recommend Slim to me as it was simple for someone just starting out with REST APIs Apr 13 23:10:08 Anthaas: ah. know what HHVM is? Apr 13 23:10:38 groxx: I don't. Apr 13 23:10:45 Looking now though - ever the student, me! :P Apr 13 23:11:09 Anthaas: it's Facebook's "HipHop Virtual Machine". basically, a compile-able subset of PHP + a virtual machine that runs it quickly Apr 13 23:11:24 I do get a good impression of Ruby. Never used it, though. Apr 13 23:11:41 People were talking about adding a tap() thing to Kotlin. Apr 13 23:11:44 groxx: Oh nice. I get the impression a Raspberry Pi might struggle with it a little? haha Apr 13 23:11:52 Its what I have everything set up on until September. Apr 13 23:12:07 Anthaas: heh, that I haven't seen :) I haven't looked into it too deeply, just hoping to find someone with an opinion, some day :) Apr 13 23:13:12 "started android because didn't have a mac" Apr 13 23:13:14 lol ! Apr 13 23:13:20 TacticalJoke did you see that ? Apr 13 23:13:32 groxx: Perhaps the guys over at ##php might have somethign to say? Apr 13 23:13:51 Anthaas: probably. but that means going to another chat room, and that's too much work :P Apr 13 23:14:02 Didn't see that one. :) Apr 13 23:14:09 /join phoh screw it, I'm lazy Apr 13 23:14:11 Haha :P "We don't take kindly to your sort round 'ere" Apr 13 23:14:16 hahaha :P Apr 13 23:17:10 lasserix: if by any chance you go down the annotation processor route, mind letting me know how it goes? I've wanted to build a "@RequiresApi()" annotation to pair with @TargetApi to mark "can't use without checking" classes / methods, since I can't find any equivalent. Apr 13 23:17:56 theres a really good link on building an anootrationprocessing i think i pulled from romain guys twiter,when i get home ill send you the url Apr 13 23:18:15 Hasn't JakeWharton got a talk on AnnotationProcessing? Apr 13 23:18:26 it might hav ebeen jakewharton i can't remember Apr 13 23:18:37 yeah, he has a good one, and I have a few other sizable blog posts bookmarked Apr 13 23:18:59 He has one Apr 13 23:19:23 icedp: I totally agree with that. I like to compose all the things. Apr 13 23:19:29 Inherit few of them. Apr 13 23:19:46 ok, "one of the better ones", and happily modern enough to recommend sensible things like "use libraries" and "test your processor" Apr 13 23:29:20 fucking info button Apr 13 23:29:32 everytime i need to see params or javadoc and i hit that damn info button or whatever and it crashes as Apr 13 23:30:00 Params : Ctrl-P, JavaDoc : Ctrl-Q Apr 13 23:30:44 that is windoze Apr 13 23:31:37 F1 / cmd-P? Apr 13 23:31:45 Linux... Apr 13 23:34:51 how would I handle saving the state of a mapview between orientation changes? Right now it is redrawing everytime Apr 13 23:35:19 drdreed: there's probably a mapview fragment? Apr 13 23:35:29 What APIs are exposed for manipulating Do Not Disturb mode on Android 5? Apr 13 23:35:44 correct Apr 13 23:36:05 drdreed: not that that's a general solution, but google seems to like fragments for cases like this. call setRetainInstance(true) and it'll basically "just work". Apr 13 23:36:18 hopefully. I'm not familiar with mapview in particular though. Apr 13 23:36:54 where would I call that? Apr 13 23:37:02 ghostbusters ! Apr 13 23:37:05 haha Apr 13 23:37:19 onPause? Apr 13 23:37:40 drdreed: as soon as possible, generally. so onCreate, or whenever you add it. Apr 13 23:37:45 onStopGhost Apr 13 23:38:07 if (neighbourhood.contains(somethingStrange)) { makePhoneCall(ghostbusters); } Apr 13 23:38:13 step 1: s/throw/bust/. step 2: ???. step 3: profit! Apr 13 23:38:14 ok Apr 13 23:39:41 ghostthrowers?? Apr 13 23:39:56 wait, no, that's backwards :D Apr 13 23:40:21 probably `bust new RuntimeGhostException()`ers Apr 13 23:40:32 catch (SlimedException e) Apr 13 23:47:21 I don't know why the reddit site collapses low-score comments by default. Those are the best comments. :D Apr 13 23:48:28 TacticalJoke: Found any new subreddits whilst doing your app? Apr 13 23:48:42 I found /r/changemyview a while ago. It's not bad. Apr 13 23:49:50 This is a good site for finding subreddits: http://redditlist.com/ Apr 13 23:50:18 TacticalJoke: Me and a friend once jokingly created /r/boris Apr 13 23:50:24 For pictures of Boris Johnson. Apr 13 23:50:38 :D Apr 13 23:51:43 86 people subscribed haha Apr 13 23:54:33 //r/tinder makes me laugh Apr 13 23:56:48 Anthaas: Are you "the girl with the voice of Boris Johnson"? Apr 13 23:57:36 TacticalJoke: Except I am a guy - you have seen this now despite your previous misconceptions haha Apr 13 23:58:00 Yeah. haha Apr 14 00:07:06 TacticalJoke lol, i'm going to lose all my karma Apr 14 00:07:19 worth it to be a wise ass though :) Apr 14 00:11:15 I upvoted, but I'm seeing +1 on here for both of your comments. Apr 14 00:11:26 The last time I commented, I lost about 150 karma because I disagreed with everyone. :D Apr 14 00:11:47 Wait, what are your guys names on reddit? Apr 14 00:11:54 I wanna upvote stuff Apr 14 00:12:01 and I like smart ass comments Apr 14 00:12:11 I'm afraid to link to my username. :S Apr 14 00:12:20 haha youve seen mine Apr 14 00:12:27 I believe it is proper protocol to now show me yours Apr 14 00:14:45 Oh man, I make the best scrambled eggs ever. Apr 14 00:25:10 nice new post on Kotlin CedricBeust - I'm enjoying the series Apr 14 00:25:20 linlk? Apr 14 00:25:22 link* Apr 14 00:25:32 http://beust.com/weblog/2015/04/11/android-rx-and-kotlin-part-3/ Apr 14 00:26:21 I'm hoping it turns into the DSL for Android, I've enjoyed playing with it Apr 14 00:27:38 from some of the talks I've seen IntelliJ seems like they are doubling down on droid Apr 14 00:29:39 I dunno Apr 14 00:36:01 does ART recompile all installed apps when you reboot ? Apr 14 00:36:31 My nexus 7 is SO F***ING SLOW! Apr 14 00:36:36 I have barely used the bloody thing Apr 14 00:36:43 Might just use it as a coaster. Apr 14 00:36:48 Anthaas what version N7, what version of Android ? Apr 14 00:37:04 5.x Apr 14 00:37:06 and errr. Apr 14 00:37:13 I got it about a year ago? Apr 14 00:37:13 2012 or 2013 Apr 14 00:37:20 2013 Apr 14 00:37:41 interesting. i stayed on 4.4.4 - keep hearing the same things about 5.x on that device (slow, etc) Apr 14 00:37:51 Oh its just horrible. Apr 14 00:38:00 If it was a dog, you'd take it behind the shed. Apr 14 00:39:45 i hope they come out with a 2015 n7 :) Apr 14 00:40:01 or, some wifi nexus device for $200 :) Apr 14 00:41:17 Anthaas: which N7? the 2012? Apr 14 00:41:33 Anthaas: 5.1.0 has made my 2012 N7 actually usable again. frickin' amazing. Apr 14 00:41:47 g00s: I hope they just come out with one that works for more than 5 mins Apr 14 00:41:59 groxx: 2013 I think. Some fucker on my placement broke my 2012 one. Apr 14 00:42:29 huh. I thought the 2013 was acceptably fast? though 5.0 had some issues, maybe it's worse there :| Apr 14 00:42:35 2012 had problems with flash trim support i guess Apr 14 00:42:59 Anthaas also do you have full device encryption enabled ? Apr 14 00:43:14 g00s: No? Apr 14 00:43:16 yeah, 2012 is unusable. tap an app, it might launch, it might (no exaggeration) take 2 minutes to launch, and you get warnings about core OS processes not responding. Apr 14 00:43:17 Should I? Apr 14 00:43:40 Anthaas encryprion can make it slower i think Apr 14 00:44:01 but 5.1.0 on the 2012 has made it feel better than it ever has since it was brand new. KitKat never responded this quickly. Apr 14 00:45:07 groxx so ... dumb question but, i'm using 4.4.4 + dalvik. so if I start testing on 5.x device, how long does it take for ART to recompile the app each time its uploaded Apr 14 00:46:35 g00s: you mean on app install? Apr 14 00:46:42 yeah Apr 14 00:47:01 hm. not sure. Apr 14 00:47:05 let me see if the logs say Apr 14 00:47:10 so then you don't notice it ? Apr 14 00:47:13 thats all i care about Apr 14 00:47:22 don't think so. but build -> run is slow anyway. Apr 14 00:47:40 if i have to wait 20 seconds for gradle and 20 seconds for ART ... Apr 14 00:47:49 another second wouldn't be noticed (but if it exists, it's somewhere around a second or less) Apr 14 00:47:54 ok Apr 14 00:49:32 hey guys, i've search over the internet a way to block/disable the touch event over an layout, what i found was response based on access the "root" layout view and disable the propagation manually. So my question here is there any other method to achieve that without having to access the View's tree!? .-. Apr 14 00:51:41 abara: depends on what you mean. or maybe more simply, what do you want to do? Apr 14 00:52:06 Samsung S6 in the house! Apr 14 00:52:44 I need to prevent any touch while requesting something over the server. Apr 14 00:52:57 abara: Sounds like you need to handle the touch and do nothing with it. Apr 14 00:53:17 freeone3000: yeah. it's Apr 14 00:53:21 abara, either that or inflate an opaque black xml over it, make that clickable Apr 14 00:53:26 abara: A great way to indicate to the user that this is going on is a modal progress dialog, which convienently does nothing useful on touch events and, as a modal dialogue, cannot be touched-past. Apr 14 00:53:26 then your touch wont transfer down Apr 14 00:53:50 I've just asked a question on stackoverflow: http://stackoverflow.com/questions/29617426/android-open-audio-content-uri-with-an-intent Apr 14 00:54:00 if anyone can see what im doing wrong i'd love some tips Apr 14 00:54:01 you can put whatever you want in it too.. message, progress dialog Apr 14 00:54:01 Condolences. Apr 14 00:54:11 yeah, make a progress-dialog, and disable "touch outside closes". but ultimately they could just leave the app. Apr 14 00:54:44 i can't seem to open a content uri to an mp3 with an Intent Apr 14 00:54:46 groxx: how can i disable the "touch outside closes" Apr 14 00:54:56 AshyIsMe, already gave you suggestions Apr 14 00:54:59 freeone3000: What does modal mean in a computing context? Apr 14 00:55:14 AshyIsMe, you never intent.setContentType Apr 14 00:55:16 dialog.setCanceledOnTouchOutside(false); Apr 14 00:55:23 abara^ Apr 14 00:55:27 wow Apr 14 00:55:38 that was trick Apr 14 00:55:41 pfn_: oh, i did try that, forgot to put it in the question Apr 14 00:55:44 i still get the same thing Apr 14 00:55:45 AshyIsMe, and if failing to set content type works, then copy the content stream locally then send a local uri to view Apr 14 00:55:47 thanks mates Apr 14 00:55:51 np :) Apr 14 00:56:51 pfn_: once i copied the file to a local folder for my app i wasnt able to get the media players to read from that uri either Apr 14 00:57:01 AshyIsMe, you don't give the content uri once you copy it Apr 14 00:57:03 even after setting the read uri permission Apr 14 00:57:05 abara: setCancelable(false) and setCanceledOnTouchOutside(false) Apr 14 00:57:06 AshyIsMe, you give the uri to the local folder Apr 14 00:57:31 pfn_: yeah it was file:///data/data/my.app.path/files/song.mp3 Apr 14 00:58:04 abara: it's part of the Dialog API, which ProgressDialog inherits: http://developer.android.com/reference/android/app/ProgressDialog.html Apr 14 00:58:24 someone else here mentioned that i should be able to use the content uri to open the file so i thought maybe i was doing something wrong originally while trying to do that Apr 14 01:00:24 groxx: ok, thanks again mates o/ Apr 14 01:00:28 A day of JavaCC and Python tomorrow :( Apr 14 01:00:30 AshyIsMe, your data dir isn't readable Apr 14 01:01:24 pfn_ -> pfnQ. Something tells me pfn is on the toilet haha Apr 14 01:03:31 pfnQ: ive updated the SO post with what happens when i explicitly set the mime type Apr 14 01:03:43 maybe "audio/*" is the wrong mime type? Apr 14 01:04:00 but it opens with vlc and then vlc reports thaht it can't read the file Apr 14 01:04:10 no, my bnc is busted and I'm away from the PC for the day Apr 14 01:04:29 it's interesting that it chooses vlc without asking which app to open the uri with in that case Apr 14 01:08:03 anyone have the S6? Isn’t is supposed to come with Samsung Pay? Is it not released yet? Apr 14 01:09:17 ..that’s because it launches in the summer if anyone is wondering Apr 14 01:18:31 Hello, I'm learning Android Apr 14 01:18:37 so I need to get device's location once Apr 14 01:18:59 I did an implementation and seems to be working but I wonder if I'm doing it right. I submitted a post at stackoverflow Apr 14 01:19:28 http://codereview.stackexchange.com/questions/86824/ Apr 14 01:46:54 "Making Bank By Running A BDSM Dungeon Out Of Your Apartment" ... dang, but i went into Android development Apr 14 01:48:54 g00s: a false dichotomy Apr 14 01:49:40 hm, i think i made a mistake structuring my submodules. in the early days, i just had all the Rx things go into ':rx' - but now that seems kinda silly Apr 14 01:49:56 since, almost everything is rx now :) Apr 14 01:52:26 icedp actually BDSM and Android seem kinda complimentary ... now that i think about it Apr 14 01:53:54 diegoaguilar: The problem with getting a location "once" is that it's going to be really inaccurate Apr 14 01:53:59 can anyone tell me about requestfutures on volley? Apr 14 01:54:07 it takes time for the device to get a lock and give you a good location Apr 14 01:54:19 g00s: Rx do help? Apr 14 01:54:39 (unless something else requested the location recently) Apr 14 01:55:30 diegoaguilar: You'll want to create a GPS listener that starts up long before the user will hit the button Apr 14 01:56:10 should I sign up for the udacity course certificate for 200 bucks? Apr 14 01:56:49 Guys anyone know why I would be getting this error: Apr 14 01:56:51 org.json.JSONException: Value [{"lesson_privacy":"PUBLIC","subscribed":"0","category":"Programming","bookmark_id":"332328"}] of type org.json.JSONArray cannot be converted to JSONObject Apr 14 01:57:27 it's a jsonArray? Apr 14 01:57:48 So I wold need to pass it into a new JSONArray Apr 14 01:57:55 yeah Apr 14 01:58:07 But then could I do get("category") Apr 14 01:58:29 send a link to the raw json Apr 14 01:58:51 diegoaguilar: a (probably crappy) example: https://github.com/pR0Ps/LocationShare/blob/master/app/src/main/java/ca/cmetcalfe/locationshare/MainActivity.java Apr 14 01:59:31 Pwines I could just do get(1) and get (2) Apr 14 01:59:37 I would just have to know which values are where Apr 14 02:01:12 Pwnies: depends on what is $200 to you. you a little bit late to http://developerstudyjams.com/ but that may reoccur Apr 14 02:01:47 Pwnies http://pastie.org/10090949 Apr 14 02:02:41 EHHHHHHH the closest one to me is in Burbank near Los Angeles, waaay too far Apr 14 02:04:08 lol, oh man. just type getString("category") or w/e you wanna get from the JSONObject you're using Apr 14 02:04:35 those are strings/ints at that point Apr 14 02:05:26 the jsonObeject isnt working Apr 14 02:05:29 Only JSONArray works Apr 14 02:05:34 I could just do get(i) Apr 14 02:06:31 it should be getJSONArray.getJsonObject(w/e index it is).getString/Int(category/subscribed/etc.) Apr 14 02:06:59 Ok Apr 14 02:07:13 Anyone know how to work with volley here? Apr 14 02:07:31 Im using OkHttp Apr 14 02:09:30 did it work drose? Apr 14 02:09:41 it works Apr 14 02:10:04 did what work Pwines? Apr 14 02:10:14 Okhttp? Yeah it works great for what im doing Apr 14 02:11:27 no, parsing the json object for whatever you needed Apr 14 02:11:34 Oh yeah, thank you! Apr 14 02:11:39 wooooooooooooooooo Apr 14 02:13:01 So who here has been to a hackathon Apr 14 02:15:23 ... Apr 14 02:15:54 hello Apr 14 02:16:22 Melvinov ? Apr 14 02:16:30 My app uses a web inside it Apr 14 02:16:46 when I click on a .doc file, it just loads. how can I allow users to download it Apr 14 02:16:55 lol. you burn your app to the groun Apr 14 02:16:56 d Apr 14 02:17:15 Pwnies: me? Apr 14 02:22:47 * pfnQ tries out the coursera reactive course Apr 14 02:28:39 Pwnies: me?? Apr 14 02:38:12 Hey guys I have file under app\src\main\java\com\myapp\test\DataAccessLayer\data.json ... How I can pass the path to File object? I doing File file = new File(whatToWriteHere) Apr 14 02:39:46 Almis90: you should put it in your assets folder, or res/raw folder Apr 14 02:40:33 and then you can read it using http://developer.android.com/reference/android/content/res/AssetManager.html Apr 14 02:40:34 Just for fun, anyone know of a android voice changer app that changes voice during calls? Apr 14 02:40:42 On a per-contact basis? Apr 14 02:41:19 can I have dibs on your shrunken-bettlejuice-voice? Apr 14 02:41:58 JesusFreke ok I will try now Apr 14 02:42:20 man, I need to watch that movie now :( Apr 14 02:43:18 lol, this is hilarious - c++ is #2? http://appleinsider.com/articles/15/04/13/apples-swift-takes-crown-of-most-loved-language-among-developers Apr 14 02:43:38 im not buying it Apr 14 02:43:53 yeah crazy Apr 14 02:44:26 well, its from here http://stackoverflow.com/research/developer-survey-2015 Apr 14 02:44:38 java is no show :) Apr 14 02:44:45 hmm Apr 14 02:45:33 http://stackoverflow.com/research/developer-survey-2015#tech-super Apr 14 02:45:38 'Most Dreaded' Apr 14 02:45:46 heh Apr 14 02:45:52 Cordova, Salesforce Apr 14 02:46:50 34.7% use Notepad++ :| Apr 14 02:47:33 TacticalJoke oh no, look at the source control section ! Apr 14 02:52:12 Can somebody please explain where I'm going wrong in my app? I'm attempting to change the color of the ActionBar on my app away from the default black. I've consulted several online sources at this point but none of them seem to be doing the trick. Apr 14 02:52:37 g00s: wow, I can't believe that many people are still using svn Apr 14 02:52:42 styles.xml: http://pastebin.com/ku1Zs6MB AndroidManifest.xml: http://pastebin.com/FWpM22Wj Apr 14 02:53:15 "Upon closer examination of the data, a trend emerges: Developers increasingly prefer spaces as they gain experience" - hah, interesting Apr 14 02:53:17 g00s: it also is the first time I hear about Rust Apr 14 02:53:44 JesusFreke i like spaces :( Apr 14 02:53:46 that matches my experience - I went from pro-tab to eventually pro-space Apr 14 02:55:36 interesting LAMP was among most dreaded Apr 14 02:56:34 JesusFreke I using InputStream inputStream = getAssets().open("data"); but it gives FileNotFoundException, if I use getResources().getIdentifier("raw/appdata", "raw", getPackageName()) then it works.. I doing anything wrong? Apr 14 02:56:54 raw/data* Apr 14 02:56:55 compensation by stackoverflow rank - hah. interesting Apr 14 02:57:06 stackoverflow rep* Apr 14 02:59:08 by an employer who doesn't know how to gauge technical skills? **** ENDING LOGGING AT Tue Apr 14 02:59:58 2015