**** BEGIN LOGGING AT Sun Jul 27 03:00:00 2014 Jul 27 03:03:08 Hey fellows how would one go about resolving synonymous namespace issues in android studio. I hava a support library that was built for a custom tablet and for the life of me cant get the project to compile. The problem is the support library utilizes the same namespaces as that standared sdk. Jul 27 03:04:02 so android studio does not know what file to properly import and pulls the default file from the sdk Jul 27 03:05:22 in eclipes the only way it worked was placeing the support library befor the standard sdk in the java build path Jul 27 03:07:33 Hi guys! Jul 27 03:09:27 Anyone with and thoughts? Jul 27 03:10:16 xMYTHICx, about what? (sorry - just came in) Jul 27 03:10:36 Hey fellows how would one go about resolving synonymous namespace issues in android studio. I hava a support library that was built for a custom tablet and for the life of me cant get the project to compile. The problem is the support library utilizes the same namespaces as that standared sdk. Jul 27 03:10:46 so android studio does not know what file to properly import and pulls the default file from the sdk Jul 27 03:10:55 in eclipes the only way it worked was placeing the support library befor the standard sdk in the java build path Jul 27 03:11:51 which Android Studio are you talking about? The one which is Eclipse based? Jul 27 03:11:59 or JetBrains? Jul 27 03:12:52 HikaruBG eclipsed based AS ? thats new one :) Jul 27 03:13:05 HikaruBG, Android .8.2 Jul 27 03:13:12 sorry guys - there was ANdroid IDE based on Eclipse Jul 27 03:13:31 wasn't it called also Android Studio? Jul 27 03:13:39 lol Jul 27 03:13:43 :D Jul 27 03:14:29 :D indeed :D Jul 27 03:14:38 OK got it Jul 27 03:14:43 Anyone knows how do I make an app for displaying the RSS Feed from my blog? Jul 27 03:15:55 So any thoughts on clashing namespaces Jul 27 03:16:22 xMYTHICx where did this support library come from ? if it collides with android sdk, fix the library :) Jul 27 03:16:39 if its THE support library, everything should work Jul 27 03:18:08 I do not have the source code. It is not THE support library. Simply a library that was built for my company. We have a custom tablet that was built specifaclly for us. and the support library came with it Jul 27 03:18:42 I have no way of accessing the source code :) Jul 27 03:19:06 xMYTHICx ok, well then if you have a jar, you can use jarjar maybe Jul 27 03:21:13 It seems I have tried and the only way to successfully get it to compile in android studio is by adding the following in build.gradle and completly removing any referance to the library eleswhere options.compilerArgs << '-Xbootclasspath/p:/path to jar’ Jul 27 03:21:56 this works although codesense does not and errors all over the place Jul 27 03:21:59 :) Jul 27 03:22:14 g00s, Thanks I will try that Jul 27 03:28:31 xMYTHICx: does this support library actually contain anything that you need? does your app still work/compile if you don't include it at all? Jul 27 03:29:13 It almost sounds like it's an android.jar Jul 27 03:29:52 oops he's gone Jul 27 03:29:56 ah, right Jul 27 03:57:00 reading this article http://developer.android.com/training/basics/firstapp/running-app.html it says do 'android avd' to bring up the android virtual device manager. OK. And it says create a virtual device. OK. it says do 'ant debug' OK. And here's the part that puzzles me. It says do 'ant install bin/MyFirstApp-debug.apk' Last time I did that, it installed to my device, and the instructions Jul 27 03:57:00 they give for installing to device also say to do that. So what controls whther it installs to virtual device or installs to actual device? Jul 27 04:00:48 garyserj: adb -e to send commands to an emulator, adb -d to send commands to a device Jul 27 04:01:24 otherwise, if you only have 1 device/emulator available, you can leave off the -d/-e Jul 27 04:20:46 i think you can also specify the target of adb commands without using target modifiers like that Jul 27 04:21:55 Yeah, but that's a pain :) Jul 27 04:22:31 and not usually needed, unless you have multiple devices or multiple emulators Jul 27 04:29:53 xMythic, trying going new module --> existing JAR AAR file Jul 27 04:30:05 then it'll be a new module in your project, then right click on your project Jul 27 04:30:50 goto module settings -> select your project, not the new module you just added -> dependencies tab -> add from dependency -> the new module / the jar you added Jul 27 04:31:07 oops he is gone doh Jul 27 04:31:07 he left awhile ago Jul 27 04:31:23 anyways that's how you use library projects, add them as new modules then add them as module dependency Jul 27 04:31:29 if you are stuck with a jar or aar file Jul 27 04:35:51 the graphical way to do it anyways Jul 27 04:47:55 Anyone know why I would be getting an NPE while trying to pop the backstack? (backstack should not be, and isn't as far as I can tell, empty.) Jul 27 04:48:27 because something is null Jul 27 04:51:24 zzxx: when you press the back button (arrow) you cause finish to be called on your activity, calling onPause/onStop/onDestroy which tears down the backstack and everything else. when you press the home button, you cause onPause to be called, but not onStop/onDestory Jul 27 04:51:51 i dont know if that helps but if you were expecting something to be there, when it's not, it might be due to the fact the home and back button do different things Jul 27 04:52:17 lasserix: Thank you. That is helpful information :) Jul 27 04:52:27 .....canvas on the other hand :/ Jul 27 04:52:28 :P Jul 27 04:52:35 vague question, vague answer Jul 27 04:52:38 heh Jul 27 04:52:44 my answer was a shot in the dark ;p Jul 27 04:53:12 It game me somewhere to start looking :) Jul 27 04:53:14 zzxx you might override abunch of the methods in activity and investigate how they called and in what order when you do basic user actions Jul 27 04:53:24 stacktrace gives you somewhere to start looking Jul 27 04:53:33 ^^canvs Jul 27 04:54:32 indeed. It is the first place I look. the stack trace did not include any of my own code though, only system calls, so I was a bit puzzled Jul 27 04:55:29 it should tell you the exact line causing the NPE Jul 27 04:56:26 if you don't get it, post your stacktrace&maybe some relevent code if you are able to Jul 27 05:05:42 I've found the issue. I had a typo in a FragmentManager.findFragmentByTag call which was causing me to try and remove a fragment "null" Jul 27 05:05:47 thanks for the help Jul 27 05:06:05 did it show in your stacktrace? Jul 27 05:09:16 You are welcome to take a look. http://pastie.org/9423994 I am unfamiliar with the android code where the trouble occured, thus me coming here for help :) I ended up finding it just by looking over my code and reasoning about the issue. Jul 27 05:10:35 that doesn't look like whole trace if you were removing or accessing a null object Jul 27 05:12:33 it is indeed all of it. not sure what else to say about that Jul 27 05:12:56 Hi, I need small help in wiring my custom view adapter with custom grid view Jul 27 05:13:24 bg123: please go ahead and ask your question :) Jul 27 05:13:43 zzxx: would need to see the full logcat, but glad you got it Jul 27 05:14:48 zzxx: do i need to specify width and height for my custom view that i'm returning from getView() in GridView adapter? Jul 27 05:15:49 bg123: Are you using a BaseAdapter? and you would define your layout parameters in your xml that getView inflates Jul 27 05:16:31 canvs2321: i'm using base adapter, but i havent created layout xml for my custom view, its just a class X extends View Jul 27 05:17:05 you inflate your layout in getView that gets populated with your adapter data Jul 27 05:17:09 paste your adapter Jul 27 05:17:15 or atleast what isn't working Jul 27 05:17:35 public View getView(int position, View convertView, ViewGroup parent) { Jul 27 05:17:36 if (convertView == null) { Jul 27 05:17:36 convertView = new Cell(mContext); Jul 27 05:17:36 } Jul 27 05:17:36 return convertView; Jul 27 05:17:39 and recycle views etc if convertView isn't null Jul 27 05:17:44 use pastebin Jul 27 05:17:53 what is Cell? Jul 27 05:18:19 Cell is just public class Cell extends View Jul 27 05:18:45 what tutorial are you following, or are you just winging this? Jul 27 05:18:55 is it a single view per entry? Jul 27 05:19:42 i'm not actually following any tutorial Jul 27 05:20:00 then how did you come up with this design? Jul 27 05:20:46 actually, i'm trying to create http://gorried.github.io/inverter/game.html this in android Jul 27 05:21:12 so, to represent cells in this game i've created that class Cell Jul 27 05:22:05 Well if convertView!=null you are recycling, how are you defining the data? is that your whole getView? Jul 27 05:22:07 canvs2321: I reintroduced the bug for your amusement. here is the entitre logcat for your review: http://fpaste.org/121156/43845814/ Jul 27 05:23:17 canvs2321: that is the whole getView(), the view itself dont show any data, it just changes its background color when user taps on it, thats it Jul 27 05:24:14 zzxx: yeah that stacktrace doesn't help show your code, but google does http://stackoverflow.com/questions/13393693/android-fragmentmanager-backstackrecord-run-throwing-nullpointerexception Jul 27 05:25:05 bg123: so you have an onItemClickListener? i just don't get why you are using a custom adapter if it doesn't do anything, what is the actual question? Jul 27 05:26:40 canvs2321: my question is that i cant see any items when the view is rendered Jul 27 05:28:03 bg123: unless you are changing entries bg colors upon click that is done in onItemClickListener, the adapter would help keep color settings if scrolling, otherwise, there isn't really a question here, as much as you need to rethink your design Jul 27 05:28:24 and not seeing anything when rendered is due to your bad adapter code Jul 27 05:28:58 you need to set the bgcolor in onItemClickListener&or when the view gets rendered in the getView Jul 27 05:29:20 you are doing nothing in the getView that does anything except create 1 Cell, cause the views are recycled Jul 27 05:29:39 so first view == new Cell, everything else just returns the recycled view Jul 27 05:30:25 canvs2321: i just want your view on how to implement this game http://gorried.github.io/inverter/game.html Jul 27 05:31:09 canvs2321: how would you suggest me to create the layout for that grid Jul 27 05:31:23 you have to implement an onItemClickListener that sets the data your adapter is using so your adapter can set backgrounds Jul 27 05:32:04 canvs2321: which layout would you suggest for laying out those views Jul 27 05:32:30 i don't understand the game on first&second look, so i don't know the logic, but your Gridview entries bgcolors will be set in getView based on what was clicked Jul 27 05:32:57 do you know what an adapter is? Jul 27 05:33:16 yes yes i know about adapter, recycled views Jul 27 05:33:33 no, adapter just displays your data Jul 27 05:33:40 where is your data? Jul 27 05:34:43 canvs2321: there is no actual data, only the background color information is there Jul 27 05:35:29 That is data Jul 27 05:35:35 you should read up a bit on it Jul 27 05:36:22 canvs2321: sure Jul 27 05:36:38 your adapter should read the data(bgcolor for each item) and set the color per position that is available Jul 27 05:37:16 or visible Jul 27 05:37:28 canvs2321: i would like you to comment on my code, do you have time to see? Only 3 classes are there Jul 27 05:39:11 not sure i can be much help without rewriting what you've done. Basically, if you have 4 Cells, your data will have 4 items related to positions 0-3, when your getView gets called, if convertView is null, create, then set bgcolor based on Position, if not null recycle convertView&set bgcolor based on Position Jul 27 05:40:17 canvs2321: thank you so much for your comments and time, I will read a bit more about it. Once again thanks.... :) Jul 27 05:40:42 just read up on using BaseAdapter, i'm sure there are a ton of examples that'll help you grasp what you want todo Jul 27 05:41:45 basically, your adapter is just a means to display your backing data, and your backing data is just something that you have set based on what you want shown Jul 27 05:42:51 canvs2321: ok, currently, i'm not doing anything in getView, so i need to set bgColor in getView appropriately and return the view, right? Jul 27 05:47:28 you need to define your data, 2x2 grid, you have 4 data items, onItemClickListener adjacent views set colors, call adapter.notifyDataSetChanged(); that'll update your 4 views bgcolors. your main logic is gonna be with clicking, then calling your adapter to update the colors Jul 27 05:48:23 What's 4.4W? API 20? Jul 27 05:48:33 it shows up as separate to L preview which is also API 20 Jul 27 05:48:40 W is for Wear devices, api 20 is the preview for L Jul 27 05:48:46 ohh that makes sense. Jul 27 05:49:09 canvs2321: got it! Jul 27 05:49:17 good :) Jul 27 06:15:15 Is there a way to change the colors in the project window in as? Jul 27 06:16:51 what do you mean? Jul 27 06:17:25 you use darkula theme? Jul 27 06:19:08 Hello. Anyone knows if android actually renders/draws the views that are set to GONE? Or are they drawn when they are set to VISIBLE? Jul 27 06:20:33 GONE == not rendered, INVISIBLE&VISIBLE are rendered Jul 27 06:23:17 but GONE views still take up memory right? Jul 27 06:23:41 nope Jul 27 06:23:49 they don't get rendered Jul 27 06:24:15 what's your real question? Jul 27 06:24:45 or atleast issue Jul 27 06:25:30 [VIEW][VIEW2] VIEW.setVisibility(View.GONE); [VIEW2] Jul 27 06:26:00 Well using an expListView and an adapter and 1st item has to have a special layout. Thinking which is better a layout for all items with specific items set to GONE, or manipulating the adapter Jul 27 06:26:39 You can always choose another layout without views your don't want based on your needs Jul 27 06:27:05 Already got the adapter to work properly by overriding getChildTypeCount = 2 and return appropriate type id in getChildType Jul 27 06:27:46 This answer suggests that GONE views do take up memory http://stackoverflow.com/a/17883768/3249477 Jul 27 06:27:50 the only issue you might have with a custom adapter is setting the view to GONE, shouldn't do alot of if/else etc... in getView Jul 27 06:28:09 don't do any logic in adapter getView, have it pre determined Jul 27 06:28:49 Not much of logic when i run single if statement and inflate specific layout if convertView is null Jul 27 06:29:40 if just an if statement to inflate then that is fine, but if inflating then doing if/else that is bad Jul 27 06:30:09 don't have any logic in getView, have it pre set Jul 27 06:30:09 Maybe code speaks better than me :P http://pastebin.com/pwfXUEQw Jul 27 06:30:56 that code looks fine, as views are recycled, you are only doing an if statement if null Jul 27 06:31:40 Yes i'm wondering if this would be better performance-wise than using a single layout with 2 buttons that are set to gone and made visible only if childPos == 0 Jul 27 06:31:52 but if convertView ==null then position is 0, so your if statement is kinda redundant Jul 27 06:33:02 Mmm i'm not sure how I can change that Jul 27 06:34:02 you have to remove it, if null it is position 0, if not then recycle and set accordinly Jul 27 06:34:08 accordingly? Jul 27 06:34:36 But it can be null on other positions too can't it? Jul 27 06:34:46 you'll still have to set your buttons no matter if null or not Jul 27 06:34:50 no Jul 27 06:34:53 they are recycled Jul 27 06:36:13 canvs2321, and what if i have multiple child's which have position 0 on the screen at the same time? :) Jul 27 06:36:57 you only have 1 position 0 Jul 27 06:37:11 your data is what fills the adapater Jul 27 06:38:18 String[] blah = new String[]{"1","2",3"}; position 0 is 1 Jul 27 06:38:23 hi guys! Jul 27 06:38:27 how hi? Jul 27 06:38:34 what about gals? Jul 27 06:38:42 what happens with the application if i switch to another app? Jul 27 06:39:00 hi guys and gals! :) Jul 27 06:39:01 haha Jul 27 06:39:12 canvs2321, i've just tried and 2 calls we're issued to the block where convertView==null and pos==0. Is that because you're wrong or because of my code? Jul 27 06:39:38 HikaruBG: onPause,onStop,onDestroy Jul 27 06:40:06 skulltower, position 0 == your first data entry Jul 27 06:40:07 what happens with an app when I switch to another app? is it sutomatically paused? Jul 27 06:40:11 or stopped? Jul 27 06:40:26 HikaruBG: just answered that Jul 27 06:40:35 and when the memory get available again Jul 27 06:40:38 canvs2321, btw i believe it's how it's supposed to be. As on a normal listview there are as many convertViews as fit on the screen. Jul 27 06:41:08 canvs2321, you said three options. which one? Jul 27 06:41:10 skulltower, your adapter only displays your data, but it reuses views upon multiple entries Jul 27 06:41:24 HikaruBG: it depends Jul 27 06:41:43 onPause for sure, onStop probably for sure, onDestroy maybe Jul 27 06:42:03 It re-uses views but not a single view! If i have multiple children which have position 0 on the screen at the same time there will be 2 convertViews. Jul 27 06:42:08 and when the memory is available again - onDestroy Only? Jul 27 06:42:32 skulltower, it calls getItem, etc...there is only 1 position 0- Jul 27 06:42:56 canvs2321, it's an expandable list view Jul 27 06:42:59 an array has 0-X, your adapter uses that for position Jul 27 06:43:02 don't matter Jul 27 06:43:24 your adapter is based of data Jul 27 06:43:52 Ok can you please edit my code so it inflates the 1st child only 1 time and then re-uses it? Jul 27 06:44:05 data as String[] Blah = new String[]{"1","2","3"}; position 0 is 1, position 1 is 2 etc Jul 27 06:44:41 canvs2321, Maybe i misunderstand you but we seem to be talking about completely different things :D I'm not sure how your array example helps here. Jul 27 06:45:03 because the adapter uses data(arrays) to fill the views Jul 27 06:45:28 But before it fills them, it has to create them. Jul 27 06:45:30 List bleh = new ArrayList(); bleh.add("1"); etc... Jul 27 06:45:46 no you create your data then set it to your adapter Jul 27 06:45:58 create the views i mean!! Jul 27 06:46:04 and upon chaning data your notifyDataSetChanged() on adapter Jul 27 06:46:41 skulltower you have to override getViewItemType, getViewItemTypeCount to enable multiple convert views to be passed into getview Jul 27 06:46:42 skulltower, you have your data then set the adapter to show those values Jul 27 06:46:56 by default you only get one Jul 27 06:47:05 canvs2321, I'm not talking about the data.. I'm talking about the views. Jul 27 06:47:12 lasserix, i've done that http://pastebin.com/QzJsPvf4 Jul 27 06:47:20 but your views are defined by your data Jul 27 06:47:23 :/ Jul 27 06:48:16 in getView, myData.get(position) then do what you want to your view Jul 27 06:48:44 view.gone -> view part of the hierarchy, but takes up no layout space view.invisible-> view part of the hiearchy, and laid out, but is not visible (takes up space) Jul 27 06:49:01 blah = myData.get(position); in getView myTextView.setText(blah.getWhatever); Jul 27 06:49:28 skulltower, how much data do you have? Jul 27 06:49:32 is there an upperbound? Jul 27 06:50:07 http://postimg.org/image/cs1ae235l/ Jul 27 06:50:08 tbh imho it is far better to simply define a static lay out, where you gone/visible views that you don't need, and bypass the adapter altogether if you can Jul 27 06:50:38 do you expanded views all look the same? Jul 27 06:50:52 anyways Jul 27 06:50:55 what's the problem you're having? Jul 27 06:51:55 Well canvs2321 is saying that i am using only 1 view for all the 1st children Jul 27 06:51:59 oh Jul 27 06:52:07 you should probably subclass listview Jul 27 06:52:12 and you special header Jul 27 06:52:16 as a static part of the listview Jul 27 06:52:23 err subclass a viewgroup Jul 27 06:52:29 like linearlayout, or relative layout Jul 27 06:53:25 what i'm saying is use your position of you data to set your layout Jul 27 06:53:35 since you say "Well using an expListView and an adapter and 1st item has to have a special layout. Thinking which is better a layout for all items with specific items set to GONE, or manipulating the adapter", you can think of the first one as a special header, and the rest as the actual list. ie, the first one is not part of the list Jul 27 06:54:23 lasserix, Yes that would probably be better but im too lazy to create custom views xD Jul 27 06:54:39 its easy.. you can do it in xml Jul 27 06:54:40 skulltower, show your data Jul 27 06:54:44 easier than this anyways Jul 27 06:54:49 btw, what does Ok can you please edit my code so it inflates the 1st child only 1 time and then re-uses it? this mean? Jul 27 06:55:11 canvs2321, consider that all my list is like in the image Jul 27 06:55:30 it's not Jul 27 06:56:29 it's simple, if i have data "header1", "1","2",3", "header2", "1" ,"2","3" you have to justify it in your adapter Jul 27 06:57:16 skulltower, is your code not working as expected? Jul 27 06:58:06 lasserix may be able to help you more thoroughly, i'm just straight to the point :) Jul 27 06:59:07 canvas heh i am just a little buzzed, so i see where you are going with this Jul 27 06:59:10 I'm trying to understand what canvs2321 said: "but if convertView ==null then position is 0, so your if statement is kinda redundant" Jul 27 06:59:23 looks like the code should work, you're just trying to explain why it does work ;p Jul 27 06:59:39 skulltower: the first time getview is called, is there any view inflated yet? Jul 27 06:59:53 which came first the chicken or the egg? Jul 27 07:00:07 in this case, the chicken cause you can reuse the egg ;p Jul 27 07:00:09 you have if convertView == null, if(position ==0) etc...., in the adapter views are recycled, so if position ==1 then it's not gonna be null....sooo Jul 27 07:00:45 The code does work, but i don't understand why canvs says 1st child view get's re-used. If i have 2 children visible which both have position 0 then they will both use different views Jul 27 07:01:05 they won't both be position 0 Jul 27 07:01:19 position is based on data, you can't have 2 0's Jul 27 07:01:21 childPosition, that is Jul 27 07:02:21 You are basically saying that adapter creates 1 view and then re-uses it for all the items. But that isn't so. It creates as many views as are needed to display the first page of the list. Then as you scroll the view that goes out of the screen gets re-used. Jul 27 07:02:23 once the first time getview is called inflates a view, it will be reused (unless viewItemTypeCount == mData.size()) Jul 27 07:02:26 arrays are 0 based, data is arrays Jul 27 07:03:02 skulltower, you are wong Jul 27 07:03:48 skulltower: the whole point of convertview being a part of the getView parameter arguement is that you DONT have to inflate new views each time Jul 27 07:03:52 do a Log.i() call to see if position 1 is reused or not Jul 27 07:04:18 if you don't use the viewholder /convertivew pattern and inflate a view for each position, then yes you are right, but that's not recomended Jul 27 07:04:28 lasserix, canvs2321 then why is this: http://pastebin.com/5GbWvJtc Jul 27 07:04:31 and it isn't what your code is doing Jul 27 07:06:02 something with your viewtype code is incorrect Jul 27 07:06:15 So this shouldn't be?? Jul 27 07:07:04 I've made multiple lists and they've all behaved in the same way. Create as many views as needed and then re-use them as you skip through the list Jul 27 07:07:11 skulltower: what adapter are you even using? post whole adapter Jul 27 07:09:47 ahh sorry you are right Jul 27 07:10:08 that's why i actually abandoned the listview and adapter and just wrote my own adapter that preallocates everything Jul 27 07:10:33 And i thought i was going mad xD Jul 27 07:11:21 How do you pre-allocate? Jul 27 07:12:31 ahh so basically you create a listview with say, 30 rows, put in a scrollview, then make an adapter (not related to base adapter) that basically iterates over a set and then binds the data of the set elements to the rows, hiding those it doesn't need Jul 27 07:12:56 you can then use pagination to iterate over very large sets, since at most ~10 rows are visible at once Jul 27 07:13:45 in this way you never inflate a row more than once, ever. tho this is very overkill and i did it as an expiriement since properly implemented listview/baseadapter is usually ways fast enough Jul 27 07:14:11 So you issue a single inflate for the whole list? >.> Jul 27 07:14:34 yeah when you create the first time, then just make visible / make gone on the visibility Jul 27 07:15:19 And you can display multiple rows that way? Jul 27 07:15:28 that was more complicated but yea Jul 27 07:15:29 at the same time i mean Jul 27 07:15:53 Ok. I'd like to go back to my original question :D Does a GONE view use up memory? Jul 27 07:16:06 its still part of the view hierarchy Jul 27 07:16:27 you're thinking remove view Jul 27 07:16:55 is my custom adapter a better choice than using multiple layouts with GONE views? Jul 27 07:17:10 the code you showed? Jul 27 07:17:13 Yes. Jul 27 07:17:25 your custom adapter is probably the better choice Jul 27 07:17:37 because properly implemented you're talking about 50-60 milliseconds Jul 27 07:17:49 ie, the difference in what you're trying to optimize is like 1 frame Jul 27 07:18:01 which really means if you are at that point, it's good enough Jul 27 07:18:10 xD that's.. something Jul 27 07:18:27 games try to achieve like optimal refresh rate of one frame every 16 milliseconds Jul 27 07:18:52 television is like 24 milliseconds for the illusion of continuos movement, "smooth animation" Jul 27 07:19:08 so really you could spend a lot of time worry ing about this or just implement it as recomended and move on to more important things Jul 27 07:19:14 so monitor refresh rate is similar? like mines 8ms or so Jul 27 07:19:19 *worrying about premature optimization Jul 27 07:19:34 note that one way to help accomplish smooth movement illusion is by motion blur. Jul 27 07:19:48 i believe past 30 hz or so it doesn't matter the eye can't distinguish Jul 27 07:20:06 this reduces the frame-to-frame differences, which reduces the perceivable impact from lower refresh rates. Jul 27 07:20:15 skulltower: as alankila mentioned, if you already have a properly implemented listview, instead of trying to reinvent its inflation methods, spend the time implementing a nice motion blur effect Jul 27 07:20:27 alankila, nice idea Jul 27 07:20:36 *reinvent inflation methods to shave off a few milliseconds Jul 27 07:21:21 anyway you absolutely can't afford stutter. I was just abstractly talking about how to deal with lower refresh rates than might be optimal Jul 27 07:23:47 the people dealing with VR headsets think that refresh rates to excess of 100 Hz may be required. It's a bit of a special case though. It's just that if object moves on screen, the eye tracks that smoothly and if the framerate isn't high enough the movement of eye will blur the object in motion inappropriately Jul 27 07:24:24 hehe alankila yeah probably cause your eyeballs are literally bootstrapped into the viewport ;p Jul 27 07:25:04 Umm maybe someone can shed some light on this one: https://drive.google.com/file/d/0B392C6uXO6ihVW5pbFZfUnFZcEU/edit?usp=sharing Jul 27 07:25:54 Basically i'm using a cursorloader that loads from a contentprovider with uses sqlitedatabase. But i don't think the problem is with loading the data. All is displayed on a listview with the help of cursoradapter Jul 27 07:26:14 However textviews with more text are lagging like hell. While the single line text views are okay. Jul 27 07:26:58 Well this is frustrating. This library is supposed to be on Maven Central, it even lists the gradle "compile .net.....@arr" for the file but I can't get it to work - doesn't find it and if I search for the Marven repo, the version listed in the readme isn't up there. Jul 27 07:28:13 for https://github.com/passy/Android-DirectoryChooser Jul 27 07:40:24 Time2303: http://search.maven.org/#search%7Cga%7C1%7Cnet.rdrei.android.dirchooser Jul 27 07:40:55 the repo talks about 2.1 and says it should be on Maven Central.. but it's just 1.0. >_> Jul 27 07:41:08 ah Jul 27 07:42:26 On https://oss.sonatype.org/#nexus-search;quick~dirchooser it shows however Jul 27 07:42:43 Yeah, I don't think the maven central repository hosts snapshots at all Jul 27 07:43:01 What's the difference? Jul 27 07:43:05 I'm guessing you'll have to add the sonatype repository to your project. I'm not sure how to do that :) Jul 27 07:44:00 I think sonatype place that maven central pulls from, but it's not maven central itself. Or something like that Jul 27 07:44:08 not really sure, tbh Jul 27 07:45:04 I pretty much blocked out the part of my memory dealing with trying to upload a project to sonatype/maven central :) Jul 27 07:45:24 skulltower: use systrace Jul 27 07:45:36 err Jul 27 07:45:39 systrace Jul 27 07:45:42 err traceview Jul 27 07:45:49 sysview? Jul 27 07:46:05 viewtrace? Jul 27 07:46:15 traceview Jul 27 07:46:35 it'll show you the durations of method execution Jul 27 07:46:41 viewsys. definitely viewsys Jul 27 07:47:08 sysviewtrace? Jul 27 07:47:20 oh no no its viewsystrace Jul 27 07:47:27 xD Jul 27 07:47:33 Time2303: I think a maven { url: https://oss.sonatype.org/content/repositories/snapshots/ } should do the trick Jul 27 07:47:34 traceview won't start says to use ddms Jul 27 07:47:43 JesusFreke: Thanks I'll give it a shot Jul 27 07:47:45 amd* Jul 27 07:47:49 in repositories in your build.gradle Jul 27 07:47:59 skulltower: you using AS or eclipse or? Jul 27 07:48:02 as Jul 27 07:48:15 http://tools.android.com/tips/traceview Jul 27 07:48:17 sorry, no : after url, I think Jul 27 07:49:04 Updating repositories Jul 27 07:55:22 JesusFreke: Thanks, it seems to work now Jul 27 07:55:27 lasserix, wow. this is a powerful tool Jul 27 07:55:29 nice :) Jul 27 08:01:05 How can I retrieve the fragment at specified position in a layout when they're added dynamically? Jul 27 08:14:12 Hi, did someone know a pictureViewer who accept directly JPEG pictures ? (as ByteArray or something else) ? Because the ImageView sucks, it need a Bitmap, and all the problem is here: I receive a video stream (multiples jpeg pictures), every pictures do around 30kO - 50kO, But ... When i want to show them on ImageView, I use a "Bitmap" class, and it convert the JPEG in Bitmap .. So when i watch the size i get something around 1.3mo (4*640*4 Jul 27 08:14:47 ImageView only accept Bitmap's-like [...] Jul 27 08:17:40 Any ideas please ? [...] If i have to made my own JpegViewer (with canvas + seting the color of every pixels) it's a "borring" work (i have to watch how is the jpeg file exactly inside [..] Jul 27 08:18:29 cyber37: you should clarify a few things in your mind. Jul 27 08:18:54 jpeg is really an encoding for an image matrix, meaning certain width and height of pixels defined in RGB colorspace. Jul 27 08:19:20 you should decode the jpeg to an optimal size for display by using the BitmapFactory's inSamp property Jul 27 08:19:24 then it takes no more memory than it has to Jul 27 08:19:47 additionally, you can upload the thing as a texture for GPU which can help you a bit further though the texture may have to have power-of-2 dimensions Jul 27 08:20:25 but your process could be as follows: read bitmap from file or whatever jpg you have, upload it to gpu, recycle bitmap, then use the texture ID for rendering. Jul 27 08:21:31 also be very careful about releasing bitmaps as soon as you don't need them anymore. For instance, if you change an image, you might want to release the old image before even touching the new jpeg data Jul 27 08:23:21 if user zooms into an image, consider decoding the jpeg stream again ata new inSampleSize setting and with bounds that are sufficient to display whatever is visible on screen. Do not decode the entire image at full resolution if you can avoid it. Jul 27 08:23:56 this sort of thing makes imageviews work for arbitrary sized jpeg images -- no matter what the resolution, if you only decode what you need and no more, it doesn't really matter. Jul 27 08:24:08 alankila, when i decodeinputstream with bitmapfactory Jul 27 08:24:21 The bitmap size is around 1.3 mo Jul 27 08:24:55 yeah that's actually a rather small image. I'm guessing you did 16-bit decode, so that's sqrt(700000) or so pixels at some dimension, not even 1000 Jul 27 08:26:36 but you are speaking about texture for GPU, what is that .? Something like openGL in android ? Jul 27 08:26:59 well there is graphics hardware on every android device, with dedicated memory set aside for application textures Jul 27 08:27:29 Did you have a "text" that i can type on google for watch that ? the name of that ? Jul 27 08:27:33 we can access it ? Jul 27 08:27:41 GLSurfaceView might be a way. Jul 27 08:27:47 it's just GLSL programming. Jul 27 08:27:59 I'm not quite understanding why you worry so much about mere 1.3 MB Jul 27 08:28:28 I'd understand if you said your bitmaps were 13 MB. That sort of thing is pushing the limits for what can still be made to work in practice. Jul 27 08:29:33 I receive a video stream, in standard java my parser is ok, and viewing OK Jul 27 08:29:47 In android i have big lattence, so i was doing "size test" Jul 27 08:30:00 I see the picture who comes is around 30ko -50ko/ pictures Jul 27 08:30:03 at 20FPS Jul 27 08:30:29 and when i show them it do 1.3 mo/pictures, and the FPS is MAYBE around 5 FPS (or less) Jul 27 08:31:16 And "MAYBE" it's because of that conversion to bitmap with 1.3M of Bytes Jul 27 08:31:27 OK. It might be cpu bound -- limits at decoding speed. You might try parallelizing to multiple cores if you can prove that jpeg decoding is the slow step for instance Jul 27 08:32:00 you might try setting inSampleSize=2 to drop the decoding cost to about 25 % Jul 27 08:32:06 see if that gets you 20 fps now Jul 27 08:32:28 this of course halves your image DPI so it could look ugly Jul 27 08:32:35 Has anyone (presumably not anyone here) tried developing hardware JVM coprocessors? Jul 27 08:32:46 That is - JVM CPU cores Jul 27 08:32:51 For android Jul 27 08:35:34 I've also written some java code to display images from camera viewfinder using just regular ImageIO crap and swing components Jul 27 08:35:52 it blows me away to see it run smoothly considering that I know how costly work it is Jul 27 08:36:41 but I did the ImageIO equivalent of inSampleSize to decode the image to nearest factor of 2 size to the target window (with image larger than target window) and then bilinearly interpolated it to screen Jul 27 08:36:51 this gives a smooth/filtered image at quite low cost Jul 27 08:39:04 Shh Android Studio, stop talking https://i.imgur.com/R3sNGqQ.jpg Jul 27 08:39:50 lol Jul 27 08:49:10 writing custom content provider is fun Jul 27 08:58:08 i'm watching for GLSurfaceView i come back latter (i stay online) Jul 27 08:58:31 note that this isn't that likely to help you... Jul 27 08:58:54 if your limiting step is the ability to decode jpegs, you aren't going to win anything from avoiding imageview and using some opengl programming instead Jul 27 08:59:15 you need to determine what you are limited by and then see what you can do to workaround that Jul 27 09:24:42 I want to implement LoaderCallbacks for a custom db table Jul 27 09:24:49 then store in listview, in ListFragment Jul 27 09:24:59 dunno where to start Jul 27 09:50:03 hello Jul 27 09:51:24 hey guys, i`m calculating the height of some views in onrestoreinstancestate by getmeasuredHeight. it works for all views but not for a linearlayout. i`m getting 54 but it should be rather 250........any advice? Jul 27 09:55:36 i think it is time for me to rewrite my app to use one activity and a bucketful of fragments instead of 4 activities Jul 27 09:56:05 iffa: what's the advantage/purpose of that? Jul 27 09:57:17 more complex layouts and i can keep everything in almost one place that way... and then i can use onPause/onResume to detect when my app isnt in the foreground :D Jul 27 09:57:59 hmm I see Jul 27 10:01:07 I need to try and plan this app out Jul 27 10:01:18 wanting to make an attractive looking audibook app Jul 27 10:01:33 and im wanting to make my not-so-attractive audio player an attractive one Jul 27 10:01:34 :) Jul 27 10:01:48 compared to https://play.google.com/store/apps/details?id=ak.alizandro.smartaudiobookplayer&hl=en Jul 27 10:02:11 that's pretty horrid to be honest Jul 27 10:02:24 yeah. Jul 27 10:02:36 and it was updated a week ago, so it's not like it's an abandoned app Jul 27 10:03:04 that is overly complex for an audiobook app Jul 27 10:03:32 there is so many buttons everywhere Jul 27 10:03:40 that was what i noticed first Jul 27 10:03:49 especially https://lh5.ggpht.com/_uHbSFYMX5udnRMEESA-629iqymB9YRkEq6_10WzolN2fJA8vFun_MasaiuStpYvhwNq=h900-rw Jul 27 10:03:49 they could all be put in a menu somewhere Jul 27 10:04:35 yes, i think a better way to pull that off would be to have only one progressbar, have the artwork take the whole screen, media controls in the bottom (or layered on top or whatever you want) Jul 27 10:04:42 then move those silly buttons in a menu Jul 27 10:05:00 https://drive.google.com/file/d/0B4FYiBGnJeG-Ujd1blNheHQ3TTg/edit?usp=sharing Jul 27 10:05:08 or keep some of them in the action bar (the most useful ones) Jul 27 10:05:17 pretty file menu from a library I found Jul 27 10:05:25 that is nice Jul 27 10:05:36 for some reason it forces you to decide what the user can call the folder though.. Jul 27 10:05:52 you have to pass it in via the code instead of allowing them to enter a name Jul 27 10:06:00 have to edit that later if the license lets me Jul 27 10:06:42 sounds odd Jul 27 10:07:01 i'm currently scanning through libraries that can make my app prettier when im redesigning it later today Jul 27 10:08:42 https://drive.google.com/file/d/0B4FYiBGnJeG-dUx5QW5NaV9VN00/edit?usp=sharing Jul 27 10:08:55 surely it wouldn't have been much more difficult for him to chuck a edit box in there, ehh Jul 27 10:09:09 so do it yourself :P Jul 27 10:09:30 or do everyone using the library a favor and implement it in the library and make a pull request Jul 27 10:09:59 * Time2303 adds it to to-do list Jul 27 10:11:24 https://github.com/Issacw0ng/SwipeBackLayout im not sure if i should add this to have a fancy quit-gesture Jul 27 10:12:11 it does look fancy Jul 27 10:12:28 i like the bottom one the most Jul 27 10:14:30 strange, I can see this folder (created by the library I'm using) in the apps directory chooser but not when I view it on my computer Jul 27 10:20:01 restarting and it appears Jul 27 10:23:49 i'm going to take some inspiration from play music for my app Jul 27 10:24:20 I've never used Play Music Jul 27 10:24:45 already had Spotify and with my carrier I get a Spotify sub Jul 27 10:25:06 i only use it for local files Jul 27 10:25:11 ive also got spotify Jul 27 10:25:41 I'm going to take the music controls notification layout from play music, and then the music controls in the bottom (in the app itself) Jul 27 10:25:51 with some modifications of course Jul 27 10:28:34 I was using Audible as a bit of a guide for what I want Jul 27 10:28:49 since it's not nearly as fugly as that other audiobook app that I linked, but it only works with Audible audiobooks Jul 27 10:28:58 Is there a way to set environment variables in android studio? Jul 27 10:36:50 Hmm since it's for playing audiobooks that potentially consist of multiple files, I'll need to be able to figure out which file is at what point of the book Jul 27 10:37:16 for resuming. Jul 27 10:37:24 and skipping though, I guess Jul 27 10:39:21 ive found tons of libraries i'm going to take advantage of... so much good stuff in the world Jul 27 10:42:22 Grr. I know how to code but actually designing an app is harder Jul 27 10:42:33 I need to grab some paper Jul 27 10:53:06 https://github.com/amlcurran/ShowcaseView this is the best thing Jul 27 10:54:48 oh wow it's THAT thing Jul 27 10:55:07 see that all the time Jul 27 10:55:19 it's really useful for first-time "tutorial" things Jul 27 10:55:31 Time2303: File with mapping of milliseconds since start to file? Jul 27 10:55:58 Time2303: how are you going to handle the audi playing? using the mediaplayer/mediacontroller stuff? Jul 27 10:56:04 audi + o Jul 27 10:57:03 it's how I've done audio playing the only other time that I made an app, but that app was just playing short clips Jul 27 10:57:21 https://github.com/jaydeepw/audio-wife i found this last night Jul 27 10:57:30 I had fun with AudioTracks. Loads of fun. Don't use them if you can avoid it. Jul 27 10:58:23 Well, actually, I had more fun with AudioRecords, but yeah... Jul 27 10:59:29 does dalvik store a single byte as 32bit (word size), like the jvm does? Jul 27 11:00:34 depends on what do you mean by single byte. Jul 27 11:00:45 audio-wife looks so clean to use, im going to have fun using that instead of all these 5 million lines of code for mediaplayer/mediacontroller Jul 27 11:01:58 iffa: I'll look into it once I get to audio playing :) Jul 27 11:33:29 Did the location of some tools change again? Jul 27 11:42:59 Does anyone have experience with aFileChooser? https://github.com/iPaulPro/aFileChooser . It says: "Using FileChooserActivity and LocalStorageProvider together are redundant if you're only trying to insure your user has access to local storage. If this is the case, you should enable/disable based on the API level (above: @bool/use_provider and @bool/use_activity). See the aFileChooserExample project for their values." but looking at the code I Jul 27 11:43:00 still can't understand what to do. Jul 27 11:43:24 I don't want to use the LocalStorageProvider because it requires a later android version Jul 27 11:58:54 In the sample code for a SurfaceView inplementation (LunarLander) teh SurfaceView subclass where I implement SurfaceHolder.Callback also creates an inner class which extends Thread for the secondary drawing thread. Isnt this a tad outdated? Im not sure if I should be using an AsyncTask or a Handler and a Runnable. Any pointers? Jul 27 12:12:36 dont use asnytask Jul 27 12:12:48 you can use runnable or thread Jul 27 12:12:57 usually people do thread Jul 27 12:13:04 but it's overkill since you only need runnable Jul 27 12:13:13 leaving your game looper class to extend something else :) Jul 27 12:13:23 such as usrfacevhiewholder. allbacks Jul 27 12:13:29 then you can integrate the game state into the loop Jul 27 12:13:50 but anyways, use runnable or thread Jul 27 12:13:59 have asynctasks fallen out of favor Jul 27 12:14:45 no Jul 27 12:14:55 but for surfaceview? you want a dedicated runnable task Jul 27 12:15:00 not a single shot Jul 27 12:15:21 oh. Right. Jul 27 12:34:15 Thanks for the pointers but excessive enters do not make it more understandable ;) It seems a somewhat dubious claim that peope "usually use thread" since elsewhere I read its far better to use runnable since it's a lot more flexible and just as straightforward if not more so. Jul 27 12:38:23 whats the best library for those sliding menu things ? Jul 27 12:42:12 Is surfaceview supposed to get destroyed each time on pause is called? Jul 27 12:42:35 excessive enters --> exessive lack of sleep Jul 27 12:43:07 rgr if you look online a lot of people extend thread, but then people like chris pruget or whatever his name is (replica island) specifically recomends using runnable (for those reasons) Jul 27 12:53:59 so, this weird thing just happened Jul 27 12:55:13 lasserix, yes, surfaceview gets destroyed when onpause is called Jul 27 13:00:25 I wanted to see if a text has a web link in it, so I ran this code: http://pastie.org/private/5ar6uim6ur410cpl4ds0q# Jul 27 13:00:40 and it crashes in line 2 for some reason Jul 27 13:00:50 am I missing something on using Matcher?! Jul 27 13:01:11 you're missing reading the actual error and fixing the cause. Jul 27 13:01:52 I get this error "java.lang.IllegalStateException: No successful match so far" Jul 27 13:02:02 but from my understanding, Matcher.find Jul 27 13:02:11 will return true if it was found Jul 27 13:32:50 Can someone help me understand something? https://github.com/iPaulPro/aFileChooser says "Using FileChooserActivity and LocalStorageProvider together are redundant if you're only trying to insure your user has access to local storage. If this is the case, you should enable/disable based on the API level (above: @bool/use_provider and @bool/use_activity). See the aFileChooserExample project for their values." . The example code is here: https:// Jul 27 13:32:50 github.com/iPaulPro/aFileChooser/tree/master/aFileChooserExample . I want the file chooser to show external storage but can only get it to do so when using "LocalStorageProvider". From the text it seems it should be possible without it? Jul 27 13:36:41 Otherwise I'd have to start searching for another file chooser because the LocalStorareProvider requires api 19 which sucks Jul 27 14:05:30 Greetings, for some reason, after I moved to a new home as a new user on my Ubuntu laptop, and having moved all the eclipse config files and dirs that I know of ( like .eclipse, workspace etc ) my eclipse is not seeing the adt... Jul 27 14:06:42 It does not make sense. I also moved the android-sdk-linux directory from my old home to my new. Jul 27 14:07:17 Eclipse will see all my projects, but I cant compile a thing now. Jul 27 14:08:41 i'm trying to understand the lifecycle of static variables Jul 27 14:09:22 i believed they would keep their value until changed by code, but i'm seeing the being reset when the app is in the background Jul 27 14:09:42 Is it possible to get R.layout id from the layout you passed in setContentView for the acctivity Jul 27 14:10:39 has anybody had a similar experience? Jul 27 14:15:01 peres, when the app is destroyed and recreated the values aren't kept/restored Jul 27 14:16:12 epg: sure, but that seems to be happening when the app comes back from the background Jul 27 14:17:21 peres, how do you know the app wasn't killed? Jul 27 14:17:48 because if the had been killed, the code that set that static would have been executed Jul 27 14:20:48 unless i have severely misunderstood how things work Jul 27 14:49:34 hi! i have problems in android studio. gradle say cannot run program aapt Jul 27 14:49:50 i have 64bit linux Jul 27 14:50:18 can not run aapt error=2 no such file or directory Jul 27 14:50:42 i checked that aapt is 32bit Jul 27 14:52:03 is it possible to work without polluting my system with 32bit libs? Jul 27 14:52:58 No, the sdk is 32bit Jul 27 14:55:31 Anyone knows where can I find a downloadable Android Documentation so I can use it offline? Jul 27 14:55:51 In the sdk Jul 27 14:56:05 In it's folder? Jul 27 14:56:16 The sdk lets you download the documentation Jul 27 14:56:21 I'd like to show the weekdays in the DatePicker - any suggestions how to achieve that? (Mon, 28 instead of 28) Jul 27 14:56:58 I'll check that out Jul 27 14:59:54 i was wondering why my application looked like a pile of horse ****, i abused this library to death apparently, doing it totally wrong Jul 27 15:01:38 Best way to show my blog's RSS Feed on my app? Jul 27 15:19:18 Hi! Jul 27 15:19:51 How can I integrate apps in an Android L port ROM? Jul 27 15:20:11 I read I have to use dex2oat to convert classes.dex to .oat files Jul 27 15:20:34 If I copy an unedited .apk file, will it be converted at the first boot? Jul 27 15:21:25 dex2oat is run the same way dexopt is, on the phone Jul 27 15:25:49 Hi Jul 27 15:27:17 I've been trying for the last day to use JNI with Android Studio. I hvae the latest version of android studio, but none of the things I've read are working so far. ndk-build is not called automatically, and when I finally build manually, the .so files are not loaded on the emulator and I can't load the library. Jul 27 15:27:50 Did anyone ever succeded in loading a jni library using Android Studio ? Jul 27 15:29:27 Hmh. I have a piece of native code that apparently works. Jul 27 15:30:02 unbelievable Jul 27 15:30:18 it's mostly just an experiment, I wanted to see what a cepstrum analyzer is like so I run FFT couple of times over data. I did run ndk-build manually but it seems that the apk contains the .so Jul 27 15:30:39 in which folder did you pu the .apk ? Jul 27 15:30:41 I did not check if android studio could run ndk for me. I'm also not using gradle, I think, just the regular android studio build system Jul 27 15:30:58 android studio or eclipse Jul 27 15:30:59 ? Jul 27 15:31:02 it goes into libs/$arch/libfft.so Jul 27 15:31:08 this is is android studio Jul 27 15:31:21 latest version ? Jul 27 15:31:37 well it's a week since last time I touched it Jul 27 15:31:52 (I discovered that cepstrum analyzers look like shit visually, so I lost interest.) Jul 27 15:31:59 hehe Jul 27 15:32:14 so it's possible to use android studio without gradle Jul 27 15:32:16 interesting Jul 27 15:32:29 since gradle appears to be the problem Jul 27 15:32:39 IDEA has an android build mechanism Jul 27 15:33:28 I just read that as IKEA... I think it's bedtime :) Jul 27 15:34:42 I don't have anything in particular against gradle, I suppose, other than that I don't really know anything about it Jul 27 15:35:39 it seems like I don't need it Jul 27 15:36:08 AS tends to notify me about project not being defined in gradle format but I ignore such whines Jul 27 15:36:36 Right now, beside the fact that I've been trying to run JNI stuff for a day without success, ... I have no opinion Jul 27 15:37:06 this stuff never was a problem in eclipse world, you'd just run ndk-build once, see the libs/shit stuff, and after that you'll know System.loadLibrary() will succeed Jul 27 15:37:10 and native invocations will be fine Jul 27 15:37:27 you should probably start by unzipping your apk to see if the relevant libraries are included in it Jul 27 15:37:40 I'm downloading eclipse right now Jul 27 15:37:41 if it isn't assembled correctly (i.e. is missing the .so files) then that's a solid clue that the build is at fault Jul 27 15:38:06 I don't even find the .apk with android studio Jul 27 15:38:18 It has a path where to stuff it... I had to set it manually at some dialog Jul 27 15:38:33 you can just download it from the device or emulator if you can't find where it keeps it Jul 27 15:39:39 I do admit that I don't much care for android studio, I found eclipse to be superior in terms of needing less configuring and general bullshitting about Jul 27 15:39:52 but android studio and complex build systems like gradle is The Future and who am I to tilt against windmills Jul 27 15:40:09 maybe it even works one day Jul 27 15:40:46 one day maybe Jul 27 15:40:55 no seriously, The editor is nice Jul 27 15:41:03 I'm just pissed that nothing I read works Jul 27 15:41:16 I even followed a video with eclipse, once again, not working Jul 27 15:41:42 well, at some point in the video is downloads the ndk stuff for eclipse Jul 27 15:41:45 not working on my side Jul 27 15:43:59 I haven't touched any ndk stuff in eclipse either. I've done a commandline ndk-build when changing the jni-related stuff Jul 27 15:44:23 it's enough to have updated stuff in libs, maybe hit F5 in eclipse to make sure it has noticed that things are different. Jul 27 15:44:32 Not sure if AS needs anything more Jul 27 15:44:38 jpdery: have you created an android app before? Jul 27 15:45:04 canvs2321: more or less, once with phonegap Jul 27 15:45:37 just saying why are you mucking about NDK if you don't understand the process of making a java app. what do you need ndk for? Jul 27 15:46:14 using V8 javascript engine Jul 27 15:46:17 from android app Jul 27 15:46:34 sounds like you should start off simple Jul 27 15:46:40 that is an interesting use case. Also a significant source of problems. Jul 27 15:46:46 iirc V8 allocates 1 GB of virtual memory as a heap Jul 27 15:47:00 that sort of thing could run into any resource limits Android may be imposing, though maybe not. Jul 27 15:47:23 Quite possible, but I'm not there yet. I'm just tring to run a hello-jni example Jul 27 15:48:16 I've given up using Android Studio, I hope I'll have better luck with eclipse Jul 27 15:48:32 I wonder if v8 is available through the ordinary webview Jul 27 15:48:41 isn't webview supposed to be backed by chrome these days? Jul 27 15:49:17 Did you manage to do it using Eclipse jpdery ? Jul 27 15:49:18 I believe it's fairly recent Jul 27 15:49:28 AlbertoCG: Trying :) Finished downloading Jul 27 15:51:30 I'm just starting with Android Dev. Reading some RSS Feeds' libraries to learn how to implement them into my app Jul 27 15:52:21 I have some liking for v8 myself... I've used v8 to successfully escape Perl and run some scripting code like 100 times faster than I could have done it from Perl Jul 27 15:52:29 but that was server side Jul 27 15:53:11 the language is in trouble if a good thing about it is that you can use some better language from within it Jul 27 15:57:14 how would I add a shadow under a something? Jul 27 15:58:10 iffa: what have you tried, or found that isn't working? Jul 27 15:58:37 i googled but i only found dirty hacks to do it, wondering if theres a more official way ( isee shadows in play music for example) Jul 27 15:58:46 dirty hacks? Jul 27 15:59:17 there are 8billion examples of adding shadows, just read Jul 27 16:08:46 I'm getting Gradle project refresh failed with "Error: " i.e. just a blank error. Why might that be? Jul 27 16:18:20 hm bad, adobe removes linux acrobat reader downloads Jul 27 16:18:40 those guysr are as bad as oracle :| Jul 27 16:19:05 when drawing directly to a canvas using a secondary thread are built in drawable helps like animation-list unavailable? Jul 27 16:23:48 g00s: tell me, how many people used linux build of reader in recent years? :> Jul 27 16:24:11 i ... did :( Jul 27 16:24:21 * g00s embarrassed Jul 27 16:24:55 I sometimes did, but frankly speaking, I'm hurting back for... Xpdf Jul 27 16:24:58 there were ebooks I had, where they basically said requirements: adobe reader (rather than "PDF") ... you can imagine that they didn't quite render correctly in others Jul 27 16:25:22 oh yeah, xpdf Jul 27 16:31:44 Those are things that make me wonder if nobody at Adobe may use GNU/Linux or if these people just don't have enough influence... Jul 27 16:32:31 flan3002 i have a friend that works at adobe Jul 27 16:33:02 i can tell you a few things about their culture. (1) if they were engineering driven in the past they aren't any more - more of marketing machine Jul 27 16:33:13 (2) they outsourced most of their core apps Jul 27 16:33:33 Outsources? 0.0 Jul 27 16:33:35 i only bring up 2 because, their software is their product - you don't outsource shit thats critical to your business imho Jul 27 16:33:41 Really? Jul 27 16:33:56 g00s: unless you're in USA... Jul 27 16:34:00 and (3) they have a terrible security culture - lots of known bugs, not getting fixed Jul 27 16:34:12 (4) they just disbanded CoreTech Jul 27 16:34:26 #4 - those are the people who work on the special sauce algorithms Jul 27 16:34:41 it's unfortunately common to consider IT of all kinds to be cost center... Jul 27 16:34:43 Seriously, 2 is awful... I don't even... Jul 27 16:34:54 flan3002: #4 is very bad Jul 27 16:35:06 g00s: sounds like they got the same management as HP Jul 27 16:35:12 Disbanded? What does it mean? Jul 27 16:35:23 flan3002: doesn't exist anymore Jul 27 16:35:28 Ouch. Jul 27 16:35:51 i wonder how much of this has to do with investors asking for higher returns; perhaps that money would have gone into r&d Jul 27 16:36:05 * flan3002 hopes Google doesn't outsource development of their core apps sometime... Jul 27 16:36:21 g00s: the idea of "shareholder satisfaction" is often involved... Jul 27 16:36:30 Or... outsourcing their share of AOSP dev... Jul 27 16:38:01 hi. I am looking for information from an experienced mobile/android dev regarding real time messaging within an android app Jul 27 16:40:32 ingsoc you can look at mqtt or stomp. FB uses mqtt for their messaging Jul 27 16:40:46 i haven't used GCM, not really an expert Jul 27 16:42:03 I am just wondering, do these use a TCP connection while the application has focus, but then rely on android notifications for receiving messages when app no longer has focus Jul 27 16:42:12 or are notifications used exclusively Jul 27 16:42:53 i understand that using android notifications is less power use as there is only one network connection that has to be maintained for all apps on device Jul 27 16:44:33 Android notifications == GCM? Jul 27 16:44:38 probably :) Jul 27 16:44:56 ingsoc: GCM is just an already implemented low-power service that multiplexes all clients etc. Jul 27 16:46:14 messaging is probably handled by a service running in separate process Jul 27 16:47:50 OK, GCM sounds like it is the thing to use Jul 27 16:49:05 ingsoc btw, oreilly is coming out with a book on mobile messaging Jul 27 17:15:16 hi Jul 27 17:15:21 how i ca get the context from activity ? Jul 27 17:16:48 ? Jul 27 17:17:14 t0th_-: use this Jul 27 17:17:23 activity is a context Jul 27 17:17:28 activity inherits from context Jul 27 17:17:56 just cast? Jul 27 17:18:03 no Jul 27 17:18:09 activity is a context Jul 27 17:18:13 u don't need to cast anything Jul 27 17:20:00 I have a singleton object that handles callbacks to activities. Everything works as expected when the first activity utilizes the singleton. The activity recieves the callback properly. However, when I go to any other activity that requires notification from the callback only the first activity is receiving the callback. Is there a way around this? http://pastebin.com/5nqfTTru Jul 27 17:20:07 hey, currently my build.gradle targets Android L preview (API 20). How can I change the target to support API 19? Jul 27 17:20:58 MarkyC: change where it says target from 20 to 19 Jul 27 17:21:19 targetSdkVersion? Jul 27 17:21:39 MarkyC: if u are targeting API 20 then that encompasses all other lower API’s Jul 27 17:22:04 has anyone worked with xmlrpc to connect to server? Jul 27 17:22:35 dlaroche: I'm trying to debug it on an API level 19 device. In the device chooser, it says not compatible: LaunchCompatibility{compatible=NO, reason=minSdk(API 20, L preview) != deviceSdk(API 19)} Jul 27 17:22:57 ic Jul 27 17:23:03 which is weird, because minSdkVersion in build.gradle is 15 Jul 27 17:23:53 MarkyC: Do you have a minSdk in AndroidManifest as well? don't know which takes precedence Jul 27 17:23:55 Here's the relevant parts of build.gradle: https://gist.github.com/MarkyC/e4e04768c6d6aa5de47d Jul 27 17:24:05 canvs2321: I'll check that out Jul 27 17:24:35 canvs2321: no minSdk in AndroidManifest.xml Jul 27 17:26:31 I think this solves my problem: http://stackoverflow.com/a/24449812/1778273 Jul 27 17:42:14 Why does the sdk manager keep offering to install android L preview? I have the option to show previews unchecked. Jul 27 17:43:06 Hi! Jul 27 17:43:22 how does one turn on code folding for XML? Jul 27 17:44:29 kwayzeee: Context? Jul 27 17:44:50 WHen editing from xml layout editor Jul 27 17:44:51 Hello, anyone know why I am catching JSONException on this code? https://github.com/papaecho91/Parkapp/blob/master/Parkapp/src/com/parkpkg/parkapp/ParkingService.java Jul 27 17:44:55 XML is a structured data format. It has no code folding. Jul 27 17:45:34 that sucks, it should Jul 27 17:45:42 If you want us to tell you how to do that in your current IDE/editor/favorite_tool, you have to tell us! Jul 27 17:45:45 almost all xml editors let you fold nodes Jul 27 17:45:55 eclipse surely does, i bet AS does too Jul 27 17:45:58 Sure, but he has to tell us what tool he uses... Jul 27 17:46:04 even vim does it Jul 27 17:46:47 i'm using android ADT adt-bundle-windows-x86_64-20140702 and it's xml layout editor Jul 27 17:47:20 kwayzeee on the bottom there should be 2 tabs like 'structure' and 'text' Jul 27 17:47:23 thats one way Jul 27 17:47:30 but in the text editor you can do it also Jul 27 17:47:35 can't remember though :( Jul 27 17:47:39 (how) Jul 27 17:47:52 at the bottom of what? Jul 27 17:47:59 the xml editors Jul 27 17:48:17 there are two tabs but they say 'Graphicalo Layout' and 'actvit.xml' Jul 27 17:48:20 also, you can try #eclipse Jul 27 17:48:26 ok. Jul 27 18:04:30 I am getting a strange bug. I have a fileinputstream for a process (like this: http://developer.android.com/reference/java/lang/Process.html) When I try to run in.read() (in a thread) I get this error: read failed: EBADF (Bad file number). I looked online and added some permissions but the error persists. Any idea? Jul 27 18:05:19 deadmund: How sure are you the process is still running when you try to read from it? Jul 27 18:05:35 Can your read /some/ data? Jul 27 18:05:39 *you Jul 27 18:06:18 I think I know the problem. The process runs ping and airplane mode is on. Jul 27 18:06:41 are you running it as su? Jul 27 18:07:46 deadmund: Well, try it with a long running process. Jul 27 18:07:55 canvs2321: No, I have root on this device but I'm not running this as root Jul 27 18:08:04 just a moment... Jul 27 18:08:14 from commandline it won't let me run ping til i su Jul 27 18:08:49 canvs2321: I'm running cynanogenmod and I do not have to be root to run ping Jul 27 18:09:00 k Jul 27 18:09:06 canvs2321: Whatever, I'll change it to ls /sdcard so there is no doubt Jul 27 18:09:15 deadmund: depends on where you run it from - you need network permission Jul 27 18:09:32 deadmund: some terminal emulators may not provide it.. i think shell user does have it though Jul 27 18:09:38 zinx: A-ha! Jul 27 18:09:39 probably right Jul 27 18:10:38 is there a reason you're not using Java API? Jul 27 18:10:53 he's probably just playing with Process Jul 27 18:11:00 instead of buggering in shell, which is ROM related, buggy and requires you to retrofit whole environment around it? :) Jul 27 18:13:18 I am playing with Process. I am following this guide: http://developer.android.com/reference/java/lang/Process.html Jul 27 18:13:53 Do I have to be root to run ls / ? Jul 27 18:14:05 Maybe I'll just run that. I just want a process to run, doesn't matter what it does really Jul 27 18:14:45 don't need root todo that Jul 27 18:50:28 Still getting the Bad file number error regardless of if I use ls or ping (I have the Internet permission). http://pastebin.com/vZYrJ02S Jul 27 18:50:30 Any ideas? Jul 27 18:51:12 Sorry about the mangling tabbing from pastebin.com Jul 27 18:52:52 are you destroying P while reading? Jul 27 18:55:43 i've got a RotateAnimation, how do i make it a "toggle", so it goes smoothly from 0 degrees to 180 and back etc? Jul 27 18:56:02 canvs2321: P.destroy() is called after... Jul 27 18:56:03 oh Jul 27 18:56:12 canvs2321: maybe, that was in the example, lemme try to remove it... Jul 27 18:56:15 it's called immediately Jul 27 18:56:24 with your new thread Jul 27 18:57:30 canvs2321: Yep! Great! Problem solved! When should I P.destroy() ? Does P give some signal when it's finished? I have to use a thread to read it so everything is asynch here... Jul 27 18:57:49 when you are done reading/using it Jul 27 18:59:06 canvs2321: Yeah, well, the process is "ls" so it will run and finish almost immediately. I guess I can P.destroy() after I read? Jul 27 18:59:19 Is there any open source projects on Online/Offline GPS for android? Jul 27 18:59:40 yea once you are done reading, if you are done with it close it Jul 27 19:03:31 Newark, NJ Jul 27 19:03:35 07105 Jul 27 19:04:03 is it safe to make ui handlers synchronized? Jul 27 19:04:15 byte0x00: thats you? Jul 27 19:04:28 yea Jul 27 19:04:42 byte0x00: heh Im in bergen co. Jul 27 19:04:53 byte0x00: gonna go to njit in a little bit Jul 27 19:05:25 Oo Jul 27 19:05:35 im in the crib lol Jul 27 19:05:47 likewise Jul 27 19:06:31 you know about reverse engineering apk? Jul 27 19:06:41 byte0x00: noooo Jul 27 19:06:48 byte0x00: way too advanced for my shit Jul 27 19:08:09 I'm still in training, but I got this caller id faker decompiled Jul 27 19:08:19 now I just gotta convert .class to .java Jul 27 19:08:21 jamesson: what are you trying todo? if you need your data to be sync then yea Jul 27 19:11:38 canvs2321: I have a thread that reads a bt sensor. I want to make sure I dont break anything by making the "start reading" method synchronized. Jul 27 19:12:42 sorry, not method, function Jul 27 19:13:02 could someone help me with a problem on ubuntu? i was trying to get a small test-program to my android phone via terminal and ran into the problem that it gives me a "android: command not found" error Jul 27 19:13:41 When I run my android project from the "run" menu, it wants to start a specific avd even though I have started another one. How can I specify which avd my project should run on? Jul 27 19:13:47 (eclipse) Jul 27 19:14:59 jamesson: i don't follow, sorry Jul 27 19:15:21 jesperj: I think you may not able to do that, with android studio you will Jul 27 19:15:44 android studio is still in development Jul 27 19:16:03 gdrc: it's the "adt bundle" Jul 27 19:16:12 byte0x00: then what? Jul 27 19:16:43 what's the point with being able to create different avds if I cant specify which i want my code to run on? o_O Jul 27 19:16:56 you wait til they publish a fixed clean version Jul 27 19:17:14 seriously? Jul 27 19:17:15 unless you dont mind experiencing bugs Jul 27 19:17:25 thats why ill stick to adt Jul 27 19:17:48 adt-bundle-linux* Jul 27 19:18:05 byte0x00 AS in in development, but ADT is mostly abandoned :| Jul 27 19:18:24 no it is not Jul 27 19:18:28 sure it is Jul 27 19:18:38 xav pretty much said it in the i/o talk Jul 27 19:18:39 not by me. Jul 27 19:19:02 in a diplomatic way of course :) Jul 27 19:19:02 g00s: you're wasting your time Jul 27 19:19:02 so I seriously can't run my android project on an avd of my choosing? it just defaults to the first avd i created? Jul 27 19:19:22 gdrc yeah, you are right. its a tired subject Jul 27 19:19:28 everybody, use what you like :) Jul 27 19:20:30 jesperj do you have an android phone? Jul 27 19:20:35 im hoping yes Jul 27 19:20:54 byte0x00: yes... Jul 27 19:20:57 because if you do, why not just develop on your phone? Jul 27 19:21:10 download AIDE Premium. Jul 27 19:21:13 byte0x00: because i want to test and see how my app behaves on other devices? Jul 27 19:21:30 oo Jul 27 19:21:35 you mean different api's? Jul 27 19:22:06 different api's and different screen res/density etc Jul 27 19:22:54 anyway I can almost not believe that it is real that I cant choose to run my code on a specified avd. whats the point in being able to create different avds if I cant use them? Jul 27 19:23:04 Hi all, I asked the other day but what is the best way to prevent a webview from reloading when the device rotates? The webview is hosted in a fragment with retaininstance = true which appears to be a problem Jul 27 19:23:05 there must be some misunderstanding. it must be possible. Jul 27 19:23:29 jaspertheghost there should be an option 'ask every time' or something. you need to have a few emus running Jul 27 19:24:11 yea, there should be a popup every time to choose which AVD Jul 27 19:24:15 i remember back in the day, freaking ADT would always ask you regardless of what was plugged in / what emu was running - it was annoying as hell Jul 27 19:24:39 it still prompts me Jul 27 19:24:49 I use both emu and android. Jul 27 19:25:33 canvs2321: like so; http://hastebin.com/ifowatejif.java Jul 27 19:26:04 g00s: byte0x00: I found it under "run configurations". there was a setting for always choosing which avd device to launch Jul 27 19:26:11 thanks Jul 27 19:29:09 np even though you figured that on your own :P Jul 27 19:30:26 I'm trying to build an array of Alertdialogs final AlertDialog.Builder builder[] = new AlertDialog.Builder[CardCount]; but here do I put the context? Jul 27 19:31:15 Is it possible to store a WebView in a variable and add it to each inflation with retain instance? Would it be a problem that it previously had a parent? Jul 27 19:31:51 jjbrunton: I don't think it should be a problem. Jul 27 19:32:07 if you think about e.g. listviews, they reuse views all the time. Jul 27 19:32:37 * alankila is idly wondering if he could turn an android phone into a2dp sink Jul 27 19:33:13 can anyone see my comments? Jul 27 19:34:22 callmeDarwin: the array is just a container for pointers. You haven't yet created any alertdialog.builders. Jul 27 19:36:03 OK So I put builder[CardCount] = new AlertDialog.Builder(this); for each use? Jul 27 19:36:35 if your CardCount, which should be called cardCount, has a value smaller than length of array, it could work Jul 27 19:36:43 byte0x00: forgive me for making assumptions, but am I speaking to one of the few serious black coders? Between being in Newark and your vocabulary Jul 27 19:36:50 since you just created CardCount-sized array, I doubt it Jul 27 19:38:19 alankila, yea I look thru the cards so Cardcount-- before creating Jul 27 19:41:11 We need more, frankly Jul 27 19:42:40 well that works but still doesn't but thanks at least I got past that issue Jul 27 19:43:37 programming is taking a couple of stones from the whirlwind of chaos, planting them firmly in place, and then doing a complicated blind dance on them. Jul 27 19:43:46 jamesson? Jul 27 19:43:58 byte0x00: yeeees Jul 27 19:44:07 what do you mean by that? Jul 27 19:44:07 sup guys! Jul 27 19:44:23 what is the best way to do a put, post, get, delete requests in android? Jul 27 19:44:40 byte0x00: Just that if I walk into another IT situation and se nothing but white people I may be violently ill :) Jul 27 19:45:25 Lol Jul 27 19:46:45 I'm trying to queue up a couple AlertDialogs to get input before I finish the activity but it seems to finish before they all display Jul 27 19:47:43 byte0x00: Not strictly true, many asians and latinos, but stupid education system and HR cannot train and recruit black people. One of the best coders I know is black, but definitely not a meritocracy Jul 27 19:48:15 I am puerto rican, and I would not claim to be a professional programmer, but I am self taught. Jul 27 19:50:19 byte0x00: I used to work for a puerto rican man, then I got promoted. Now I'm sorta rican. Jul 27 19:50:34 I work for jews -_- Jul 27 19:50:50 byte0x00: and I am a jew. See how that works? =P Jul 27 19:50:59 well imm not racist lol Jul 27 19:51:24 byte0x00: but re black people, same as women, if society tells you that you are dumb long enough you start to believe it Jul 27 19:52:02 or then you might just be dumb thing. Sometimes the endless lemming choir we call society isn't wrong. It's a testable theory. Jul 27 19:53:08 alankila: absolutely right. The theory that telling people they are stupid for long periods of time makes them underperform has been exhaustively tested. Jul 27 19:53:45 I was called dumb all the time in elemntary Jul 27 19:53:55 even by girls Jul 27 19:54:14 hearing that stuff, yea I felt retarded. Jul 27 19:54:14 so are things like hereditary nature of intelligence. And the significance of intelligence-as-measured-by-IQ-tests in achievement. I suspect both sides have a point. Jul 27 19:54:46 I took speech classes part time Diagnosed with ADHD Jul 27 19:55:07 may this is for #android-defocus Jul 27 19:55:12 you do better in a culture that supports you the right way, whether it's by busting your balls or coddling you along to higher achivement (whatever fits your personal style). But you may also be born below average, and there's nothing anyone's education can do to change that. Jul 27 19:55:27 yeah, sure. Jul 27 19:57:12 is it possible to make a portion of text in a textview align on the left and another one on the right side on the same line? Jul 27 19:57:47 I actually did better on my own away from bullies Jul 27 20:01:07 I wrote a book based on SQL Injection, well more like a short tutorial converted into .PDF, but I never shared it with anyone. Jul 27 20:01:18 byte0x00: same here. But, don't get too comfy by yourself, it may make it hard to interact. I had to relearn alot of that stuff Jul 27 20:01:45 Yea I know what you mean, I am anti-social Jul 27 20:01:56 unless the topics is based on computers, then I can go all day. Jul 27 20:02:12 and or if you smoke marijuana, then we will get a long great. Jul 27 20:03:05 byte0x00: I'm more prosocial than I used to be, but tbh I am not at all interested in a long-term IT careeer Jul 27 20:03:57 Has anyone here experimented with ViewAnimationUtils.createCircularReveal in the Android L API? Jul 27 20:05:17 Sometimes it is better to start your own company. Jul 27 20:06:40 I do not know what the future holds for me, but owning my own website based on android development and publishing my first android app, I hope I see some accomplishments. Jul 27 20:07:13 everyone starts his own company now Jul 27 20:07:21 little more and everyone will be the boss Jul 27 20:07:33 too bad there wont be developers to do the job :D Jul 27 20:10:33 the bosses are the developers then Jul 27 20:11:23 alankila: I want my own company, but not in IT. Jul 27 20:11:25 of course, if you have good business sense, you'll be soon occupied in directing rather than developing roles. Jul 27 20:11:41 * alankila suspects he's only good at developing shit Jul 27 20:12:17 Look how Mark Zuckerburg did it, he stole a source code, changed into his, removed unnecessary functions, add new functions, changed some variables and had a couple other heads develop for him. Jul 27 20:13:05 I'd say he had business sense & the requisite drive. Jul 27 20:13:13 True Jul 27 20:13:23 he also did have years of experience too. Jul 27 20:13:32 I only have 2.5 years of experience. Jul 27 20:13:35 doesn't really matter who wrote the first version of the code, it's not like it takes long from that level of genius to produce in any case. Jul 27 20:15:31 Does anyone know that link to the material desing release thingy Jul 27 20:16:02 concepts on the side, you click one and then you can scroll down on the right Jul 27 20:16:07 and it overviews the material concepts Jul 27 20:16:33 for example under Cards it had info like the dp for rounded corners Jul 27 20:16:38 when they should be used Jul 27 20:16:39 etc Jul 27 20:17:20 found it Jul 27 20:22:44 appaerently i wrecked my sdk-manager after when i did export ANDROID_HOME like described here: http://stackoverflow.com/questions/10969753/android-command-not-found Jul 27 20:22:55 anyone got an idea how i can fix that? :/ Jul 27 20:42:36 Hi. I'm interested in creating the first continuously-looping app for video. Where should I start? Jul 27 20:44:01 never use the word first, you'll lose all hope eventually if you do that Jul 27 20:44:26 half-trolling for any app that can really vj loop Jul 27 20:44:33 all of them have black reset frames Jul 27 20:44:42 you want the the app to loop or the video ? Jul 27 20:44:56 o.O Jul 27 20:48:33 why does android studio make all new projects compile and target android l Jul 27 20:50:00 because there is no reason not to desmin Jul 27 20:50:18 its a preview Jul 27 20:50:34 I believe they want to start, incrementing it when you need a high api Jul 27 20:50:43 higher* Jul 27 20:50:46 They probably just choose the newest sdk available Jul 27 20:50:56 i think so too SimonVT Jul 27 20:51:06 Just change it if that's not what you want Jul 27 20:52:17 championswimmer every app I try, on SDcard or native, has black frames tha tgap out between end of video and start of replay, on any looping setting Jul 27 20:52:44 I can code barely, done some javascript/jslibs and PHP Jul 27 20:52:52 you should start by learning jav Jul 27 20:52:53 java Jul 27 20:53:02 I have coded applets a few times. Jul 27 20:53:16 I have Eclipse. What next Jul 27 20:53:22 some googling Jul 27 20:53:33 Thank you, IRC as google frontend. Jul 27 20:53:38 Anyone else? Jul 27 20:53:49 what kind of response are you looing for Jul 27 20:53:51 looking* Jul 27 20:55:01 "I have an idea. What now?" is your question essentially Jul 27 20:55:11 Ecliptic: Personally I recommend using Android Studio. Jul 27 20:55:18 I recommend it, hard. Jul 27 20:55:29 Then go for the udacity Android Fundamanetals course by Google Jul 27 20:56:04 okie, thanks Jul 27 20:57:03 people these days... Jul 27 20:57:09 seriously Jul 27 21:26:10 Anyone uses Dagger? Jul 27 21:27:33 I am still too dump to understand dependency injection :-/ Jul 27 21:29:36 have you read the sample on dagger site ? Jul 27 21:30:06 bankai_au: just going through it again :) I am not a big fan of using coffee maker as an introductory example Jul 27 21:30:44 well I guess I get it Jul 27 21:30:52 that's ok, have a look at jake's github, he has an android example Jul 27 21:31:26 https://github.com/square/dagger/tree/master/examples Jul 27 21:33:08 I am sure I have many classes where I can use this by now Jul 27 22:06:45 In regards to nav drawer, materials says "side nav width = screen width - app bar height" Jul 27 22:07:11 how can you set this in xml Jul 27 22:07:30 id rather not programmatically do it Jul 27 22:12:03 desmin88: you cant Jul 27 22:12:07 i know Jul 27 22:12:11 im just sad :( Jul 27 22:14:06 guys, is there any major difference in working with http or https? I have this JSONParser class - http://pastebin.com/3YUNjbdL Jul 27 22:14:16 it works for http URLs, but not for HTTPS Jul 27 22:15:06 yes Jul 27 22:15:08 httpps is secure Jul 27 22:15:19 i mean Jul 27 22:15:23 the s stands for secure Jul 27 22:15:34 httpi Jul 27 22:15:44 lol Jul 27 22:15:46 http insecure Jul 27 22:15:59 Yes, I know that. I just don´t get it why this class doesnt work for https url. Jul 27 22:17:03 Well, what is the error you're getting? Jul 27 22:18:28 im going to root my emulator Jul 27 22:19:10 cool Jul 27 22:19:40 07-28 00:18:15.566: E/Buffer Error(17263): Error converting result java.lang.NullPointerException 07-28 00:18:15.566: E/JSON Parser(17263): Error parsing data org.json.JSONException: End of input at character 0 of Jul 27 22:20:03 i will post log to pastebin, one second please Jul 27 22:20:46 no hold music ? Jul 27 22:20:50 http://pastebin.com/M27JbhCr Jul 27 22:21:40 print out what your getting back Jul 27 22:22:25 or use breakpoints -- why do so few people use breakpoints and step into/forward/over ? Jul 27 22:23:15 beats me Jul 27 22:23:33 Stuff is already broken, no need to set further breakpoints ;_; Jul 27 22:23:40 Surely that will only make things worse! Jul 27 22:27:19 how would setting a breakpoint make things 'worse' ? Jul 27 22:27:34 the whole idea of setting them is to find out what's going on Jul 27 22:29:07 ok so Jul 27 22:29:11 basically Jul 27 22:29:42 http://pastebin.com/KyLNW5TJ Jul 27 22:29:56 this returns null, I don´t understand why Jul 27 22:30:00 when its http, it works Jul 27 22:30:40 test with your browser, links, curl,openssl etc. -- does this work outside your code? Jul 27 22:31:47 yes, URL works in browser regardless of using http/https. :( Jul 27 22:32:35 sup guys! Jul 27 22:32:49 is there any library for working with get, put, post, delete and patch requests? Jul 27 22:33:13 volley Jul 27 22:33:40 and documentation for that? Jul 27 22:33:52 wherever you downloadit Jul 27 22:34:04 make sure it is what you are looking for, the question was kind of vague Jul 27 22:34:28 naschurmann, retrofit is also pretty nice Jul 27 22:34:29 any ideas guys? I am totally stucked. Jul 27 22:34:48 lasserix: i need to do get, post, put, patch and delete requests. Jul 27 22:35:00 you can use HttpUrlConnection to do all that Jul 27 22:35:04 and of course capture the response. Jul 27 22:35:09 no no no Jul 27 22:35:09 and manipulate that response Jul 27 22:35:11 use okhttp Jul 27 22:35:30 or as Mavrik said, an actual library is Retrofit "A type-safe REST client for Android and Java" Jul 27 22:35:42 desmin88: why okhttp not httpurl? httpurl is android recomended Jul 27 22:36:03 lasserix, okhttp is an implementation of httpurlconnection interface. Jul 27 22:36:09 * Mavrik slaps desmin88. Jul 27 22:36:23 plus more Jul 27 22:36:34 it doesnt implementi t Jul 27 22:36:46 what is more? Jul 27 22:36:59 since i am using httpurlconnection, i mean, what's the point of switching to okhttp? Jul 27 22:37:01 Mavrik: httpurlconnection hasnt been in okhttp for a while Jul 27 22:37:25 but there is a 'module' that supports it Jul 27 22:37:31 http://square.github.io/okhttp/ Jul 27 22:37:46 desmin88, congratulations, you win the nitpick contest Jul 27 22:37:59 lasserix, SPDY support among other things Jul 27 22:37:59 what you said was just wrong Jul 27 22:38:05 "implementation of httpurlconnection interface." Jul 27 22:38:09 its nothing of the sort Jul 27 22:38:28 desmin88, yes, yes Jul 27 22:38:31 I said, you won. Jul 27 22:38:58 thanks for the acknowledgment. Jul 27 22:39:21 well i'm new to android development, so i cannot seem to find anything that actually tells how to do a good implementation of a rest client in android ;:P Jul 27 22:39:27 retrofit Jul 27 22:39:35 http://square.github.io/retrofit/ Jul 27 22:39:59 ahh i see Jul 27 22:40:05 lasserix, also note that from Kitkat on OkHttp is the bundled HTTP client on Android Jul 27 22:40:14 ahh thanks Jul 27 22:41:03 retrofit seems easier :P Jul 27 22:41:08 it is Jul 27 22:41:45 naschurmann, Retrofit implements bunch of boilerplate stuff you'd have to write for network communication, so it's a pretty neat choice for REST client :) Jul 27 22:42:11 Mavrik: :D, i will look for some tutorials for that :P Jul 27 22:43:18 bankai_au: I am kidding Jul 27 22:44:24 never know with this channel ... :P Jul 27 22:51:24 That's part of the magic Jul 27 22:53:23 Hi guys - whats the easiest/safest way to send things like passwords from an app to a PHP script? Jul 27 22:55:20 Anthaas: your problem. easy != safe. So there is no easy way that is safe. Jul 27 22:55:52 is there a good tutorial or example for retrofit? Jul 27 22:55:57 http://square.github.io/retrofit/ Jul 27 22:56:12 it doesnt get easier than that Jul 27 22:57:23 desmin88: forgot to tell that i'm also kind of new in java Jul 27 22:57:32 so where should i put that code that they are showing :o Jul 27 22:58:58 that goes in the activity?, in a separate class? Jul 27 22:59:42 people, you there?, you dissapear? Jul 27 23:00:05 Disconnected - did anybody answer me? Jul 27 23:00:54 Anthaas: your problem. easy != safe. So there is no easy way that is safe. Jul 27 23:01:19 Napalm: One of that sufficiently safe* Jul 27 23:01:31 Anthaas: well easiest I can think of is to use SSL Jul 27 23:01:34 I understand that there is a balance between the two needed, and that easy solutions are often not safe, etc. Jul 27 23:01:35 desmin88: didn't get the how to implement, it's not very clear the website Jul 27 23:03:22 anyone has used retrofit? Jul 27 23:04:24 I have my Java base, but using Android is quite different. Do you recommend reading the API Guides on website? Jul 27 23:07:00 AlbertoCG: yes Jul 27 23:07:11 AlbertoCG: its a different beast Jul 27 23:08:50 any experienced guy consuming rest apis? :D Jul 27 23:12:08 Napalm, definitely. Even trying to make the simplest app without knowing the android libraries gets complicated. Jul 27 23:12:57 AlbertoCG: that's true, also there is not a lot of good documentation. Just trying to use retrofit seems like a pain Jul 27 23:13:34 naschurmann: theres plenty of good Android documentation now. retrofit is another matter Jul 27 23:14:32 Napalm: so there must be good documentation on how to consume rest APIs... but i cannot seem to find it. Perhaps is my lack of googling ability? Jul 27 23:15:00 naschurmann: retrofit is the consumer.. what are you trying to do? Jul 27 23:16:03 i don't understand why is so difficult to understand that i want to make calls to an api in an android device... and show the data, post to the api, send put, delete request. etc Jul 27 23:16:42 now, what i'm trying to do is making a get request to an endpoint of an api Jul 27 23:17:01 The best way to learn seems to be reading open source apps. I'm reading the API Guides because it shows me how's the app environment. The Reference site also looks good, but cannot find a good introduction into android dev Jul 27 23:17:49 AlbertoCG: also doing a get is lots of coding Jul 27 23:19:00 naschurmann: i'm not sure i understand your problem.. you've explained what you are trying to do... just do it.. create some views.. use retrofit to make your calls... update the ui.. Jul 27 23:19:05 Napalm: You ever seen the MCrypt library? Jul 27 23:19:06 So we're all agreed that Android Dev is WAY different Jul 27 23:19:15 I say library, more a couple classes... Jul 27 23:19:29 Napalm: i'm trying to do a get request... and get the data Jul 27 23:19:55 and retrofit doesn't explain well how to use it Jul 27 23:20:09 it does Jul 27 23:20:17 the example at the top seems fine to me Jul 27 23:20:23 http://square.github.io/retrofit/ Jul 27 23:20:28 Napalm: yeah?, my IDE throws an error Jul 27 23:20:32 just copy/pasting Jul 27 23:20:48 not editing anything Jul 27 23:21:03 define your rest-api.. create an adapter to your end-point. now construct your service-api from the adapter end-point. now call methods and get data. Jul 27 23:21:42 ?, i don't understand what you are telling. The adapter i should define it after i retreive the data Jul 27 23:21:42 no? Jul 27 23:21:53 no Jul 27 23:21:56 its not that type of adapter Jul 27 23:22:19 naschurmann: read the docs "RestAdapter is the class through which your API interfaces are turned into callable objects. By default, Retrofit will give you sane defaults for your platform but it allows for customization." Jul 27 23:23:15 k... let me go with the first line... in the GitHubService interface... what is "Repo" in the List definition? Jul 27 23:23:30 And ListRepos Jul 27 23:23:39 Repo is your model Jul 27 23:23:48 List is a Java List of Repo Jul 27 23:23:48 lol Jul 27 23:24:24 how do i import that? Jul 27 23:24:30 import what? Jul 27 23:25:07 Repo model Jul 27 23:25:26 is defined by retrofit right? Jul 27 23:25:29 no Jul 27 23:25:31 omg Jul 27 23:25:37 its the result of your Rest call Jul 27 23:25:47 Super good documentation!, i don't get it :D Jul 27 23:25:50 naschurmann: https://github.com/square/retrofit/blob/master/retrofit-samples/github-client/src/main/java/com/example/retrofit/GitHubClient.java Jul 27 23:25:51 look Jul 27 23:25:57 next time... read Jul 27 23:26:28 Napalm: Hmm, its seems I need to purchase an SSL certificate to use? Are there any methods that are less financially demanding? Jul 27 23:26:43 Napalm: i see the code but still seems kind of confusing Jul 27 23:26:45 Anthaas: you don't you can pin your own cert Jul 27 23:27:24 Anthaas: you create your own CA cert.. and sign your server's cert. then send your CA public cert in your build and attach it to your SSLSocketFactory Jul 27 23:27:47 naschurmann: how can you be confused by such a simple example? Jul 27 23:27:54 naschurmann: what Rest API are you trying to access? Jul 27 23:27:59 Napalm: Thanks - I'll keep looking into it now. Jul 27 23:28:25 is a local api that i've built with node Jul 27 23:28:37 so the endpoint is "/restaurants" Jul 27 23:28:40 Anthaas: read this IN FULL https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning Jul 27 23:28:45 and will return a list of restaurants Jul 27 23:28:57 Anthaas: it will explain everything.. if you skip bits.. it will only be confusing Jul 27 23:29:07 Ok, Ill read everything now :-) Thanks. Jul 27 23:29:09 jesus, i just cant get that https to work.. Jul 27 23:29:42 Anthaas: https://www.owasp.org/index.php/Pinning_Cheat_Sheet should also help Jul 27 23:29:57 Just opened that :D reading it once I've finished. Thanks though :D Jul 27 23:30:17 Napalm: also, the example is not that simple, doesn't explain the purpose of the components Jul 27 23:30:29 lol Jul 27 23:30:41 naschurmann: it doesn't get more basic Jul 27 23:30:56 what can i say?, i'm more used to "high level documentation", like symfony2, expressjs, etc Jul 27 23:31:09 ok.. let me check line by line :D Jul 27 23:31:10 it looks like HttpResponse httpResponse = httpClient.execute(httpPost); doesnt work Jul 27 23:31:33 or at least i never get an response Jul 27 23:33:08 Napalm: i'm not talking about basic. I'm talking about techniques of comunication. Jul 27 23:33:18 Also... there are not tutorials Jul 27 23:33:44 naschurmann: i dont think anyone has needed tutorials more than that default page Jul 27 23:34:04 Napalm: even a hello world have a tutorial... your argument is invalid Jul 27 23:34:27 erm? what argument Jul 27 23:34:41 naschurmann: you do know that there is JavaDoc with that library? Jul 27 23:34:55 nope Jul 27 23:35:00 lol Jul 27 23:35:02 lol Jul 27 23:35:04 Your argument is therefore invalid. Jul 27 23:35:08 ;-) Jul 27 23:35:09 loool Jul 27 23:35:28 to many information to actually get to nowhere Jul 27 23:35:49 http://lmgtfy.com/?q=How+to+use+a+website Jul 27 23:37:13 Ok... to much connection with nonhelping guys Jul 27 23:37:29 i dont know how much more we can help you Jul 27 23:37:34 if you dont show us your api Jul 27 23:38:00 let me check a default api, is not about the api is more about setting the library Jul 27 23:38:00 Napalm: What I'm getting from this then, is that you should create the certificate for your server at development time, and then when you contact the server and receive a certificate you should compare the two. The idea of adding at development time is you know the version that the application has is true, and any difference shows that shenanigans have occured? Jul 27 23:38:31 Anthaas: sort of, thats all done for you.. thats what SSL is. Jul 27 23:39:11 Ahh, and adding at development time is what "pinning" is. Its just associating your server with the cert? Jul 27 23:39:11 the api returns this [{data: "foo"}, {data: "bar"}] Jul 27 23:39:13 Anthaas: you create a CA cert key-pair... look up self-signed certificates.. then you add the CA public cert to your app.. and ask it to verify the SSL connection with it. Jul 27 23:39:28 and the url is localhost/restaurants Jul 27 23:39:59 naschurmann: Whats the problem? Jul 27 23:40:30 guys, any idea why my json parser class works for http website, but not for the same website with https? I can post link to pastebin again. Jul 27 23:40:35 Anthaas: i need to connect to an API using android... never done it before. I have little experience with android Jul 27 23:40:55 Have any programming experience? Jul 27 23:41:02 and i don't understand how to implement retrofit for an endpoint Jul 27 23:41:11 MetalGuru: are you sure your connection is even working? Jul 27 23:41:22 well I hope so Jul 27 23:41:28 yeah, php, some java (a week or 2), javascript, perl, python Jul 27 23:41:36 MetalGuru: as-in. once you enable SSL. if your cert fails to verify then you'll get a failure. Jul 27 23:41:40 ls Jul 27 23:41:44 oops, wrong window haha Jul 27 23:41:47 I tried the website with http/https in my browser, everything worked Jul 27 23:41:51 tried http in app, works Jul 27 23:42:01 rewrote url to https, its not working anymore Jul 27 23:42:32 MetalGuru: whats the https url? PM if you dont want public Jul 27 23:43:42 and this is the parser class - http://pastebin.com/HsY0YhG1 Jul 27 23:43:44 Anthaas: and now, just the very first point... i need to connect to an API, with a get request, the api send [{"data":"foo", "qwe": "asd"},{"data":"bar", "dfg":"etr"}] Jul 27 23:43:59 and retrofit seems "cleaner" Jul 27 23:44:21 because doing a 15 lines operations with the standard libraries is to much Jul 27 23:44:42 in php is with curl, javascript you can use even jquery to get data super easy Jul 27 23:45:08 naschurmann: they are all based on scripting languages where there is no model Jul 27 23:45:11 Anthaas: but you don't have a method like get(url, callback); Jul 27 23:45:23 java is not scripting Jul 27 23:45:26 Napalm: did you get the PM with link? Jul 27 23:45:40 yes Jul 27 23:45:53 The problem seems to be that you can't be bothered rather than it can't be done. Jul 27 23:46:24 And do you have any clue why is it not working? I am hopeless.. Jul 27 23:46:30 MetalGuru: it works in your browser because you accepted and added the public cert as an exception... your phone does not have that public cert.. and so will never validate.. also your cert is for domain "*.*" which is invalid. Jul 27 23:46:31 @Optional views with butterknife, if the view doesn't exist, is it just null? Jul 27 23:46:45 Anthaas: the problem is that i need to make a call to an api. I thought that i said this before :S Jul 27 23:46:48 desmin88: it is null Jul 27 23:46:53 thanks Jul 27 23:47:05 MetalGuru: go up the conversation and check what I was telling Anthaas about cert pinning Jul 27 23:47:07 naschurmann: How would this be done? Sending variables to a PHP script? Jul 27 23:47:22 Napalm: ok, thank you :) Jul 27 23:47:47 Anthaas: i thought that i told you too... doing a GET request to "localhost/restaurants" Jul 27 23:48:05 right Jul 27 23:48:14 gordon_: makes determining master/detail pretty easy. Jul 27 23:48:19 So whats wrong with just using the standard Java libraries for HTTP stuff? Jul 27 23:48:32 If you can't work out Retrofit, use something you can work out. Jul 27 23:48:49 Anthaas: what do you mean standard ? Jul 27 23:48:51 Thread ? Jul 27 23:48:52 if you cant work out retrofit, you cant work out regular java Jul 27 23:48:53 Anthaas: because i want to do it with retrofit Jul 27 23:48:57 Napalm: Oh, so I dont have to pay for my own cert? Because my hosting provider does this... for 49 euros/year :D Jul 27 23:49:01 Why? Jul 27 23:49:12 Why use any library at all. Jul 27 23:49:17 ^ Jul 27 23:49:23 Anthaas: for what i see is less coding, and also seems easier to use for get, post, put, patch, delete Jul 27 23:49:31 MetalGuru: correct. but just make sure you keep your CA private cert PRIVATE! and also encrypt it and NEVER forget the password :D Jul 27 23:49:43 I dont know, I found regular Java pretty simple to implement. Jul 27 23:49:48 desmin88: because AsyncTask... Jul 27 23:50:00 Anthaas: what do you mean by regular Java? Jul 27 23:50:09 MetalGuru: Anthaas: ps. all private certs can be encrypted.. its part of the standard. you can look it up Jul 27 23:50:11 Non Library, sorry. Jul 27 23:50:19 Anthaas: I mean what class ;) Jul 27 23:50:21 Anthaas: thanks for the observation, but that was not the question Jul 27 23:50:28 Napalm: gonna google it out. thank you! :) Jul 27 23:50:30 Anthaas: Oooh thanks. I'm reading and doing on the go, so the reading makes more sense. Jul 27 23:51:19 naschurmann: No, the point is you need to do something that you can't do after getting a lot of help from people in this channel. You refuse to change your method despite still not understanding how to use the library, when there are lots of examples out there, most of them completely working examples, of how to do it without the use of a library. Jul 27 23:51:59 anyway Jul 27 23:52:11 just dont use regular java threads Jul 27 23:52:20 but android AsyncTask Jul 27 23:52:22 and then it will work Jul 27 23:52:24 I mean Jul 27 23:52:27 Espresso ;) Jul 27 23:53:42 Anthaas: you don't seem to understand the point of the conversation. And basically the help that i've got from here from the begining was laughs and a name of a library. More than that i haven't received. So if you don't want to help or want to keep doing whatever it seems to be to feed more you ego do it somewhere else. Or just don't answer. Jul 27 23:54:20 naschurmann: No, not at all. I offered an alternative and all I got was "I want to use a library". Jul 27 23:54:43 naschurmann: what do you expect, when you haven't even tried to use the library Jul 27 23:54:50 ^ Jul 27 23:55:04 Nobody gets it right first time - play with it until you do. Jul 27 23:57:01 Yeah.. playing with it is some sort frustrating :P Jul 27 23:57:33 the RestAdapter.Builder().setServer() method cannot be resolved :P Jul 27 23:58:02 Napalm: ok, so I registered at cacert.org, I now basically need to create new server certificate, right? Jul 27 23:58:53 fixed that Jul 27 23:58:54 MetalGuru: nice choice of provider. yes, create a new server certificate and you need to add the CACert CA public cert to your app Jul 28 00:00:03 Napalm: Whereas I am attempting to make my own CA cert Jul 28 00:00:24 Napalm: Following this https://workaround.org/certificate-authority Jul 28 00:00:41 you can do that, it means if CACert ever fold and close up shop.. you are ok. Jul 28 00:00:54 Anthaas: Napalm: yay!, got it ^^ Jul 28 00:00:59 it makes no real difference.. CACert just makes it easier Jul 28 00:00:59 got it working :P Jul 28 00:01:05 naschurmann: see. Jul 28 00:01:06 :P Jul 28 00:01:17 Napalm: still... the documentation SUCKS ¬¬ Jul 28 00:01:30 jesus, I dont even know if I need https communication for what I am doing :D Jul 28 00:01:35 i think we can agree to differ on that point Jul 28 00:01:41 it all gets a bit complicated and frustrating Jul 28 00:01:46 haha, we agree to disagree Jul 28 00:01:57 Napalm: Its a pain - I have 3 .pem files so far haha Jul 28 00:03:36 oh shit, looks like I have to generate CSR on my hosting server? Jul 28 00:03:44 I don´t know if I can do that ... Jul 28 00:04:19 MetalGuru: no you dont Jul 28 00:04:26 MetalGuru: you can do it locally on your computer Jul 28 00:04:53 Napalm: really? I don´t know anything about CSR, I was just reading this Jul 28 00:05:09 MetalGuru: what OS? Jul 28 00:05:09 Napalm: tehy say you need to generate it on the server where it will be used Jul 28 00:05:32 Napalm: me? Windows 7, hosting? idk Jul 28 00:06:02 MetalGuru: http://slproweb.com/products/Win32OpenSSL.html Jul 28 00:06:06 install openssl Jul 28 00:06:09 Im doing this on my own server - I only have 3 .pen files Jul 28 00:06:12 Im also using openssl Jul 28 00:06:23 MetalGuru: then run openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr Jul 28 00:06:50 oh ok :)) Jul 28 00:06:52 MetalGuru: when you are asked for Common Name (CN) enter your domain name EXACTLY! Jul 28 00:07:01 so far, I have ran ...CA.pl -newca and -newreq and 0 Jul 28 00:07:04 -sign* Jul 28 00:07:27 Im doing to start again haha Jul 28 00:08:04 Anthaas: you are doing it slightly differently, but the idea is the same, once you've created your CA cert key-pair.. you then create a key and csr for your domain name and then.. sign the csr with your ca-cert Jul 28 00:08:22 Anthaas: this might help http://www.sslshopper.com/article-most-common-openssl-commands.html Jul 28 00:09:14 Napalm: dumb question - yourdomain.key and yourdomain.csr - in my case andrejbroncek.com.key? is that right format? Jul 28 00:09:44 Napalm: So, I want to create a new CA using CA.pl -newca, and then run the top command? Jul 28 00:09:54 MetalGuru: yup. its just a filename but best to call them the same as the CN so not to confuse them Jul 28 00:10:10 Anthaas: no idea, never done it that way Jul 28 00:10:38 Hmm, wish there was a free CA I could use haha Jul 28 00:11:10 you can Jul 28 00:11:10 Which I could then use on my Raspberry Pi server haha Jul 28 00:11:21 Anthaas: thats what cacert.org is Jul 28 00:11:30 Oh, i missed that, sorry. Jul 28 00:11:55 ok, I might be doing something wrong here... Jul 28 00:12:18 MetalGuru: like what? Jul 28 00:12:52 Napalm: I entered that command into openssl.exe command prompt, but looks like nothing happens Jul 28 00:13:05 remove openssl from the start Jul 28 00:13:26 Napalm: Unable to load config into from /usr/local/ssl/openssl.cnf Jul 28 00:13:36 Napalm: error in reg Jul 28 00:13:38 *req Jul 28 00:13:49 erm.. try running it from command prompt Jul 28 00:14:57 openssl is not recognized bla bla Jul 28 00:15:03 without that openssl in the beginning? Jul 28 00:15:48 MetalGuru: you have to open the command prompt in the directory where you have openssl Jul 28 00:16:26 either that Jul 28 00:16:33 or put the directory before openssl.exe Jul 28 00:16:43 ok, serious question now - do I even need https? :D I am sending hashed and salted registration details and then some (not very important) data Jul 28 00:17:19 I could point you to the HTTPS google video from I/O this year. But in short, yes. Jul 28 00:17:34 nuh don't worry about it, NSA has your data anyway Jul 28 00:17:48 http://www.youtube.com/watch?v=cBhZ6S0PFCY Google I/O 2014 - HTTPS Everywhere Jul 28 00:17:51 btw - it does the same error, unable to load config info from ... Jul 28 00:18:51 MetalGuru: PM Jul 28 00:19:09 jesus, can´t people just stop hacking and stuff, everything would be so much easier :D Jul 28 00:19:38 I genuinely think the price to be paid for hacking should be a LOT higher to fit in with the modern day and age, Jul 28 00:25:27 g00s: you around ? Jul 28 00:25:34 hey bankai_au Jul 28 00:25:46 how did you do your service rxjava magic ? Jul 28 00:26:58 starting to forget. haven't touched any of my android stuff in like 2 months :P. generally, i have my long tasks running in a service , using rx. then I use BehaviorSubject as a bus to communicate stuff back to any activities / fragments. Jul 28 00:27:41 i have some rx stuff in fragments too, but async on the main thread, i haven't used any of the rxjava-android stuff beside the scheduler i don't think Jul 28 00:28:14 i'm working on R , machine learning, and D3 atm. lots of fun ~ Jul 28 00:29:04 I found this @ API Guides http://pastebin.com/pCxNiAH1 Is that sendActivity(sendIntent) okay? I don't see sendIntent anywhere Jul 28 00:29:16 g00s: do you really like rx? Jul 28 00:29:18 how do you get your behaviorsubject, through the onBind ? Jul 28 00:30:01 Napalm for certain scenarios, absolutely ! and i think they are adding backpressure with 0.20. it would be much prettier with closures though :( Jul 28 00:30:20 AlbertoCG: it looks like a mistake its suppose to be intent Jul 28 00:30:39 bankai_au yes; you can have the hot observable in a service as a regular getThis() or you can make it static like for an intentService, so the result is always available Jul 28 00:31:16 gotcha. thanks Jul 28 00:31:43 yw ;) Jul 28 00:31:58 Napalm, So intent passess to the chooser automatically when I startActivity(intent) Jul 28 00:32:50 AlbertoCG: pass, i got a lot im working on Jul 28 00:36:40 Has anyone encountered "NoClassDefFoundError: javax/swing/SwingUtilities: javax/swing/SwingUtilities" when using crashlytics in AS? Jul 28 00:40:24 pretty interesting http://techcrunch.com/2014/07/21/the-majority-of-todays-app-businesses-are-not-sustainable/ Jul 28 00:49:32 ladies. Jul 28 00:55:20 Hi all, got a little problem. I got this textview filled with a string, part of which is a hyperlink. I need to either Catch the hyperlink click, or set a onclicklistener on Only the hyperlink, not the rest of the string. Jul 28 00:55:53 I have no idea if either of these is even possbile, or what to search for. Anybody knows what I'm looking for / what is possible? Jul 28 00:56:30 So apparently j1.8 doesnt work with the crashlytics plugin Jul 28 00:56:38 TomQ: yes, you need to replace the URLSpan's on the text Jul 28 00:57:08 or Jul 28 00:57:09 https://github.com/laurencedawson/activetextview Jul 28 00:57:28 Napalm: Already did. The url is a spannable, then mixed in with the rest of the string Jul 28 00:57:44 Use above Jul 28 00:58:24 ThomQ: you miss my point, extend a ClickableSpan and override the onClick method, use that instead of URLSpan.. either by adding them yourself or removing and replacing the current URLSpan Jul 28 00:59:02 ThomQ: either that, or replace the URLs of the span's with a custom scheme that you register in your manifest under an intent-filter Jul 28 00:59:26 Ah thanks, both of you Jul 28 00:59:38 downloading the library, and I'll check out Napalm's suggestions Jul 28 00:59:54 a lib is always nice, but learning is maybe nicer :D Jul 28 01:00:27 learning how it works Jul 28 01:00:31 then using a lib that did it for you Jul 28 01:00:34 is the best Jul 28 01:00:40 hehe exactly Jul 28 01:17:35 is it possible to instead of recieving sms with the default application Jul 28 01:17:39 receive it using mine? Jul 28 01:18:18 make yours the default Jul 28 01:18:21 then yes Jul 28 01:21:18 with what api? Jul 28 01:21:23 can you link me please demin88 Jul 28 01:21:26 desmin88* Jul 28 01:21:33 no Jul 28 01:30:33 Y'all my new frans. Jul 28 01:31:04 thanks Napalm and desmin, got it working And understanding it Jul 28 01:32:49 http://www.wacom.com/en/us/creative/intuos-s Has anyone been able to use this device on linux for game dev? Jul 28 02:00:48 any reason butterknife shouldnt work with AS with annotation processing enabled? Jul 28 02:05:25 hi, anyone here make money on Google Play store? and how much you get per month? Jul 28 02:05:30 ... Jul 28 02:05:32 please don't lie :) Jul 28 02:05:37 you join just to ask that Jul 28 02:05:38 get out Jul 28 02:09:50 pjds248: http://techcrunch.com/2014/07/21/the-majority-of-todays-app-businesses-are-not-sustainable/ Jul 28 02:10:21 such a stupid question to come in here and ask Jul 28 02:11:01 desmin88: chill... Jul 28 02:11:17 im always chill Jul 28 02:11:32 because i make billions from the google play store Jul 28 02:11:34 owait Jul 28 02:11:40 now he knows Jul 28 02:12:16 But really, why isnt "compile 'com.jakewharton:butterknife:5.1.1'" good enough to pick up the annotation processor Jul 28 02:13:48 sometimes IJ is a bit fickle with the annotation processor, you might need to rebuild/clean your project for it to fire off Jul 28 02:16:56 ive done thagt Jul 28 02:16:58 that* **** ENDING LOGGING AT Mon Jul 28 03:00:00 2014