**** BEGIN LOGGING AT Fri Mar 18 02:59:58 2016 Mar 18 03:06:33 delt, it is 90gb after it downloads and checks everything out Mar 18 03:22:10 Any more experienced devs available to help a newbie through private? Mar 18 03:23:41 RustyShackleford i dunno, i always set up eclipse by installing the bare RCP and then adding ADT so it was lean Mar 18 03:24:00 i bet many people just grabbed one of the "bundles" Mar 18 03:24:12 which came with a bunch of crap Mar 18 03:26:29 noobKiwiDev: how experienced you looking Mar 18 03:30:34 How can I install the ndk-bundle component of the Android SDK using the command line? It seems to only the visible in the SDK manager UI, but not the command line `android update sdk` Mar 18 03:49:51 in Google Photos, when you press the overflow button , the items all have icons ... Mar 18 03:50:07 i thought items in Popup like that couldn't show icons Mar 18 03:50:25 (icons in action bar, text in overflow) Mar 18 03:50:48 oh maybe this isn't a regular menu Mar 18 03:57:44 wtf?? the repo sync process got interrupted and now the size of the directory is down to 20gb????? Mar 18 04:01:14 I have a fragment list view, with a custom array adapter (multiple buttons on the row). I’ve created a listener from the adapter that the mainactivity listens on to take action on button clicks but something about this seems wrong. It doesn’t seem like i should need to pass the event to the activity and then back to the fragment to execute Mar 18 04:01:37 is there a way listen from the fragment rather than the activity? Mar 18 04:03:31 I'm suprised how crappy some API's can be Mar 18 04:04:09 the city puts out two api's, one for buses and trains Mar 18 04:04:30 you'd think they'd try to make them similar but apparantly not Mar 18 04:06:23 sigh, why are all these examples so crappy and simple, ughh Mar 18 04:07:44 i swear to god i think only 1% of people writing blogs actually know how to code Mar 18 04:07:52 anyway, are enum's really that awful on android? Mar 18 04:08:00 RustyShackleford no Mar 18 04:08:09 static constants are really a nightmare to maintain Mar 18 04:08:19 and enum’s aren’t? Mar 18 04:08:20 but if you're passing them via IPC it could just be plain easier to use ints Mar 18 04:08:35 strings actually Mar 18 04:10:15 omfg im going to flip out if i have to read another question on how to implement the basic row click Mar 18 04:10:37 a lot of examples are too simple unfortunately Mar 18 04:10:45 yeah, like all of them Mar 18 04:10:57 its just the docs regurgitated in a poor implementation usually Mar 18 04:11:10 go to the project on github Mar 18 04:11:17 sometimes they have a sample project Mar 18 04:11:23 someone has to know how to make a listener from the array adapter back to the listfragment Mar 18 04:13:52 there is no sample project for what im trying to do RustyShackleford Mar 18 04:14:18 i literally can’t find any information, all i can find is adding listener from the fragment to the activity Mar 18 04:14:29 and i can make what i want work, it just feels really dirty Mar 18 04:14:52 i shouldn’t have to pass a message to the adapter -> activity -> fragment Mar 18 04:15:01 listeners are messy Mar 18 04:15:08 there should be a way to go directly from the adapter to the fragment Mar 18 04:15:32 doesn't it go adapter -> fragment -> activity? Mar 18 04:15:55 nah, cause the context passed to the adapter is the activity context not the fragment context Mar 18 04:16:08 so the listener in the adapter seems to be communicating with the activity :/ Mar 18 04:16:11 anyway, greenrobot is pretty cool Mar 18 04:16:22 I did implement chained listeners, its a pain Mar 18 04:16:31 ? Mar 18 04:16:38 its an eventbus Mar 18 04:16:54 that’s kind of what i did Mar 18 04:16:55 you can send an event when an item is clicked Mar 18 04:17:00 i have generic abstracted listeners Mar 18 04:17:07 to literally anywhere in your code Mar 18 04:17:30 with great power comes great responsibility. Use it wisely, you could make things really confusing Mar 18 04:17:34 it’s still going through the activity though right? Mar 18 04:17:42 like the event bus lives in the activity? Mar 18 04:18:05 wherever you want to listen to the eventbus Mar 18 04:18:08 sorry, have to disagree with RustyShackleford on this one - using an event bus for a list item click listener is waaaaayyy abusing / overkill :) Mar 18 04:18:09 that’s essentially what i have right now, i abstracted my listfragment class so they have a generic listener that takes the class it was called from and an array of arguments Mar 18 04:18:26 g00s: yes i agree, but i can’t find another solution atm Mar 18 04:18:42 and its a liability that any piece of code can listen in on that Mar 18 04:19:02 i don’t see why i would need to couple the adapter to the activity rather than just coupling it to the fragment Mar 18 04:19:23 i wish i was a shitty coder, this type of stuff bothers me to the point of being unproductive Mar 18 04:19:54 most of my adapters are inner classes to the fragment / activity, so they can just poke the listnener gotten in onAttach Mar 18 04:19:58 I thought it works great for my use case Mar 18 04:20:06 oh no shit g00s, that’s a good idea Mar 18 04:20:08 it beats having a ton of listeners Mar 18 04:20:15 i hadn’t thought of making the adapter an inner class Mar 18 04:20:23 i put them in separate files when the adapter is huge and i get confused :) Mar 18 04:20:24 its dirty but less dirty than going through the activity Mar 18 04:20:41 g00s: im not a java expert, how does in inner class still inner? Mar 18 04:21:09 epop an inner class has access to its outer class Mar 18 04:21:12 can you do: class Outer.Inner in a separate file? Mar 18 04:21:21 oh, in another file no Mar 18 04:21:26 oh ok Mar 18 04:21:49 i do have to say though, these inner classes are getting dirty lol Mar 18 04:21:55 i mean, you could just pass the adapter the fragment :D thats basically all thats happening under the hood with inner classes anyhow Foo$Bar Mar 18 04:22:04 now this adapter is going to have to sit in with my async tasks Mar 18 04:22:17 java is just a pain in the ass Mar 18 04:22:26 it has it’s goods and bads Mar 18 04:22:40 i write PHP for a living and static compilation is a fucking godsend to me Mar 18 04:22:44 along with types Mar 18 04:23:33 been procrastinating doing real work cause i like working in java/c/c++ so much more lol Mar 18 04:24:07 is there a good example of a custom retrofit converter? Mar 18 04:24:31 thats something i've been struggling to find Mar 18 04:25:48 there’s probably a really shitty hundred or two on stack overflow Mar 18 04:25:54 lulz Mar 18 04:27:11 is there a reason you can’t just set button click events for the row in the adapters getView method? Mar 18 04:27:53 for some background, im converting my app from activities to fragments, and it seems like you can’t assign click events in the getView method when you’re using a fragment rather than an activity Mar 18 04:40:32 i dont understand, when i look at the material spec, everything looks so nice. like a plain card. then I put the same thing in my app and it looks like crap :( Mar 18 04:47:12 so I'm using these two api's for train and bus predictions Mar 18 04:47:50 think its worth the trouble to combine them into a similar object? Mar 18 04:50:27 i don't even know how to describe this. The api's return somewhat similar data. I could perform some logic this data and create a Stop model from two different api calls instead of having TrainStop and BusStop models **** BEGIN LOGGING AT Fri Mar 18 04:53:32 2016 Mar 18 05:54:46 mmm https://stackoverflow.com/research/developer-survey-2016 Mar 18 05:57:15 Ashiren, yes, it validates all my viewpoints Mar 18 05:57:16 :P Mar 18 05:58:22 pfn you use notepad++ for scala ? :P Mar 18 06:00:10 vim is #4 Mar 18 06:00:23 intellij isn't far behind either Mar 18 06:16:36 g00s: emacs Mar 18 08:02:19 Is my app is in Alpha ... is there a way to just take the already loaded app and put it in deployed ? Mar 18 08:17:00 hi, what are some simple apps that I can make to get used to android? Mar 18 08:19:38 I have a method that does a lot of work the first time the Activity is created. It takes so long that I am getting ANRs. I want to move this code to background, but onResume requires the other method to complete. I thought of moving both the method and the onResume code to background in an AsyncTask and use a FutureTask, such that the second AsyncTask can Mar 18 08:19:38 only start noce the first is complete. It seems like a bit cumbersome design, though. What would be a better alternative? Mar 18 08:19:48 My AsyncTasks run in parallel, maybe posting some runnables would be better? Mar 18 08:43:06 Is my app is in Alpha ... is there a way to just take the already loaded app and put it in deployed ? Mar 18 08:43:44 IF my app is in Alpha ... is there a way to just take the already loaded app and put it in deployed ? Mar 18 08:47:16 http://eclipser.xmms2.org/Vu1V8_20160318_102008.jpg coworker made this for our test devices Mar 18 08:52:16 Nice :) Mar 18 08:56:28 hi gang Mar 18 09:11:41 Mavrik: Hi there how are you? Mar 18 09:33:06 Any one expirience with two way Binding. http://stackoverflow.com/questions/33362533/create-two-way-binding-with-android-data-binding Problem with solutions from stackoverflow is that restoring Fragments/Views the TextWatcher is already added but it way gc and produce an nullpointer. Mar 18 10:01:14 Hey guys, what are the best practices on uploading image to a server? Mar 18 10:01:44 last time I did was converting the image to base64 and upload the string to server to decode Mar 18 10:19:07 br0mahn, o.O Mar 18 10:19:20 br0mahn, depends on the server Mar 18 10:28:51 Zharf: okay thanks. I'm just worried I'm outdated on this. Because the app i built was like 4 years old lol Mar 18 10:35:40 hrmf Mar 18 10:35:53 Usually just sending payload of image directly is the best way. Mar 18 10:35:59 base64 is going to increase your upload size by 20% or so Mar 18 10:39:26 yeah Mar 18 10:39:37 but in the end it depends on what the server wants Mar 18 11:08:26 hi! Mar 18 11:09:07 can someone help me on how to link statically to file when building with AS2.0 and gradle experimental plugin? Mar 18 11:11:18 is it possible to have both an ActionBar as top menu and a Snackbar/toolbar for the bottom? My top menu actionbar originally required a base theme with "ThemeOverlay.AppCompat.ActionBar" in order for it to function Mar 18 11:11:46 but I haven't been able to get my Snackbar to work without changing that to "Theme.AppCompat.DayNight.NoActionBar" Mar 18 11:12:13 Could anyone point me towards a resource that would help explain the best way to implement both the Snackbar and Actionbar? Mar 18 11:23:43 Mavrik: is it? but what about other params that the client needs to send? does it need to be sent separately then? Mar 18 11:32:17 logicp, snackbar has nothing to do with actionbar. They work independently Mar 18 11:32:29 if you have problems, show your code Mar 18 11:37:54 My manifest points to the following style: Mar 18 11:38:33 only one of my activities uses the snackbar, which is displaying just fine Mar 18 11:39:07 the menu resource is a file containing items such as the following: android:icon="@drawable/login" Mar 18 11:39:13 android:title="@string/goLogin" Mar 18 11:39:22 use pastebin -_- Mar 18 11:39:34 lol sorry.. Mar 18 11:43:07 sorting through.. some of them are pretty big files Mar 18 11:45:12 the part where you try to use the snackbar should be enough ;) Mar 18 11:49:37 oh okay.. so the menu is not displaying on either activity Mar 18 11:49:55 what menu? you talked about snackbars .. Mar 18 11:50:17 the code shows two activities.. the main activity, which demonstrates how I'm loading the menu... and hte second activity, which shows the code for the snackbar (and has the exact same code for the menu, but I didn't paste it in) Mar 18 11:50:21 http://pastebin.com/kxDz44Zr Mar 18 11:51:09 well my app previously had a top menu, but I've recently added a snackbar Mar 18 11:51:17 snackbar works great with these settings.. but no menu anymore Mar 18 11:51:29 i think you confuse some words here Mar 18 11:52:07 or judging from your code its more you dont understand snackbars Mar 18 11:52:18 snackbars dont show any menus Mar 18 11:52:38 they just show a small notification Mar 18 11:53:40 yup I got that.. they're both different things and I'm not trying to use them for the same purpose Mar 18 11:53:47 Dang, seeking files >2GB fails in N Preview. What year is it ? Mar 18 11:53:49 my top menu has buttons to different activities in the app Mar 18 11:53:57 the snackbar is just used to verify that my file has been uploaded Mar 18 11:54:00 if your activity doesnt show a menu, that has nothing to do with the snackbar Mar 18 11:54:02 (within one activity) Mar 18 11:54:27 Chainfire, report it. thats what the pre-lelease versions are for Mar 18 11:54:29 what I believe the conflict to be is that the theme previously had a name which included "actionbar" Mar 18 11:54:41 danijoo I have. I'm just surprised. Mar 18 11:54:51 ThemeOverlay themes are not meant to be used as Activity themes.. Find a regular Theme.AppCompat without .NoActionBar if you want to have the old ActionBar Mar 18 11:54:54 but recent efforts to implement the snackbar resulted in my changing the base theme to one called "noactionbar".. this doesn't seem to allow for the menu Mar 18 11:55:02 Alternatively, keep using a .NoActionBar theme and place a Toolbar in your layout Mar 18 11:55:08 I think you accidently used a theme without an actionbar Mar 18 11:55:15 yeah what SimonVT said Mar 18 11:55:16 ahhhh Mar 18 11:55:18 Also, you don't keep Snackbar in a class field.. make is a static method Mar 18 11:55:24 so I can use a toolbar to implement my menu? Mar 18 11:55:31 yes Mar 18 11:55:36 slick willis! Mar 18 11:55:46 thats the whole point of toolbar ;) Mar 18 11:55:59 there's my ignorance Mar 18 11:56:00 to replace actionbar features Mar 18 11:56:12 I started messing with toolbar to try and get my snackbar to work.. and then removed it when I found it did nothing Mar 18 11:56:17 old ass tutorials :/ Mar 18 11:56:24 thank you so much, both of you! Mar 18 12:12:36 someone an idea why my toolbar popup appears two times when I click on its overflow Icon? Mar 18 12:13:17 the second appearance overlays the first one and just the second has entries Mar 18 12:15:04 AND this behavior only occurs in Android6, my Android4.4 emulator works fine Mar 18 12:18:20 Ben_1, I broke my scrying orb yesterday, so it would be helpful if you provide some code to your question ;) Mar 18 12:19:02 danijoo, you don't break the orb! that's irreplaceable! Mar 18 12:21:57 Zharf, yeah.. how can we help all that people that dont paste their stacktraces and codes now? :( :( Mar 18 12:36:33 danijoo: there is no stacktrace and my code looks like setting a normal toolbar but wait. In my mainactivity I declare my Toolbar: http://pastebin.com/vPeMUC3q Mar 18 12:36:46 this is how my toolbar looks like: http://pastebin.com/cFmNvs8u Mar 18 12:37:26 and this is how I style my toolbar http://pastebin.com/8gb6tFF2 Mar 18 12:40:07 Ben_1, you didnt show anything about the menu thats wrong for you.. Mar 18 12:56:19 danijoo: what do you mean? Mar 18 13:00:14 you said you have problems with the menu Mar 18 13:00:46 I said I have problems by show the menu popup Mar 18 13:01:10 my menu > main.xml contains several items with a title and showAsAction never, so that have nothing to do with my popup appearance Mar 18 13:01:16 yet you show no popup related code at all Mar 18 13:01:28 danijoo: because there is no popup related code Mar 18 13:01:45 just the declared items Mar 18 13:01:52 great. problem solved Mar 18 13:02:04 your popup does not show correctly because there is no popup code ;) Mar 18 13:02:08 ... danijoo Mar 18 13:02:13 Read the question... Mar 18 13:02:14 show the xml Mar 18 13:02:22 Why would he have popup code when the issue is the overflow button Mar 18 13:02:31 danijoo: you are really no help but thanks for your advice ;) Mar 18 13:02:47 maybe my english fails here. isnt he talking about the three dots on the right? Mar 18 13:03:01 I am Mar 18 13:03:28 and where do you initialize that menu items that show twice? thats what I wanted to know. Mar 18 13:04:27 Anyway, could sound like you have multiple toolbars in your layout or something.. So check that with hierarchy viewer Mar 18 13:04:34 Also weird to use activity themes as base for your toolbar styles Mar 18 13:04:42 Not sure if that could cause issues, but try not doing that Mar 18 13:05:12 SimonVT: thx you're right hirarchy viewer could show me some issues Mar 18 13:05:47 danijoo: this is my menu init code: getMenuInflater().inflate(R.menu.main, menu); Mar 18 13:06:19 Ben_1, why dont you make it easy for both of us and show the whole code of that activity? with everything related to that menu? Mar 18 13:06:28 I did Mar 18 13:06:37 (14:05:47) Ben_1: danijoo: this is my menu init code: getMenuInflater().inflate(R.menu.main, menu); Mar 18 13:06:49 there is no other related menu code Mar 18 13:06:54 nvm.. have a nice day. Mar 18 13:07:07 thanks you too :) Mar 18 13:24:05 Hi there. Do you recommend some Statistics Library ? Mar 18 13:24:39 Not to get statistics about the usage. But to process data and get statistics from it. Mar 18 13:38:10 SimonVT: which teams would be better? Widget.AppCompat.Toolbar has a dark font color but I want the light one. Mar 18 13:39:14 *themes Mar 18 13:41:08 I just can find tutorials to style the toolbar using Theme.Appcompat Mar 18 13:42:08 mh I can try ThemeOverlay instead Mar 18 13:50:04 Hello guys, can someone please explain me why I can't show a progress dialog from a fragment?? I'm about to get nuts here: http://paste.ofcode.org/YJDdJ82822CjDQAh7gtPQr Mar 18 13:50:08 Thank you. Mar 18 13:50:53 I hope you can save me from a miserable life :( Mar 18 14:01:27 is there a relieable way to check if a view is unloaded, moved to background or removed? Mar 18 14:04:23 http://goo.gl/forms/q0y089eEU2 << vote for android N's name Mar 18 14:04:30 Syzygy: there is a isShown() method so you can check whether the view is active I think Mar 18 14:05:00 Number5, are you on UI thread ? Mar 18 14:05:09 vegetablesalad19, yes Mar 18 14:05:10 Ben_1: I need a callback version of that I guess. Mar 18 14:05:52 danijoo: is that actually a poll by google? also what kind of dessert is Null? Mar 18 14:06:17 Syzygy: puh then I think there is nothing like that. Mar 18 14:06:24 vegetablesalad19, the only diff is that I call this method from a fragment. But I totally don't understand why it's not showing. Mar 18 14:06:25 getActivity, check if getActivity() returns activity Mar 18 14:06:27 Syzygy, accordning to some guy at slack it is. I cant tell for sure though Mar 18 14:06:28 danijoo: mh nutella would be cool cause it's something popular like kitkat but I prefer nougat :3 Mar 18 14:06:40 Ben_1, german? :> Mar 18 14:07:08 Number5, check if you get context, it could be that you call it before attaching to Activity Mar 18 14:07:09 danijoo: I believe they do have nutella on the other side of the pond. Mar 18 14:07:18 danijoo: you should recognize that cause of my bad english :D Mar 18 14:07:21 at least it's pretty well known. Mar 18 14:07:35 I thought its not that common overseas. good to know Mar 18 14:07:55 vegetablesalad19, good point, so I guess I need to run this in onAttach() Mar 18 14:08:07 nutella would be nice yeah. But I dont think they will do another contract like KitKat Mar 18 14:08:08 Number5, you need to call it on or after onAttach Mar 18 14:08:14 danijoo: at least I think. Ben_1: haven't noticed any obvious mistakes. Mar 18 14:08:16 exactly Mar 18 14:08:20 i guess Nougat will do the race Mar 18 14:08:45 but I just joined the chat a few minutes ago Mar 18 14:08:53 Number5 , if you run it before, you won't have any context Mar 18 14:10:41 vegetablesalad19, nope, it still doesn't work. Mar 18 14:11:17 vegetablesalad19, I call it normally in onStart(), but even in onAttach it doesn't work. Mar 18 14:11:58 can I interact with an AsyncTask with wait(), notify() and similar? Mar 18 14:12:29 it's ridiculous man, it doesn't make sense. Mar 18 14:13:04 Number5, sorry don't know what else could go wrong. Probably something unrelated. Anyway it would be better to call such things from Activity, fragment is peace of UI and it "shouldn't" have such functionality Mar 18 14:13:16 Syzygy: I think so, it is nothing else than a nice looking Thread Mar 18 14:14:13 vegetablesalad19, well, it doesn't matter from where it's called, finally I use the context of the activity, so it should work. Mar 18 14:15:02 sometime I really can hate Android, how difficult can it be to show a dialog, just a simple dialog. Mar 18 14:16:15 By the way, the reason why I call it from the fragment is because it is related to the fragment, which is waiting for the content to be fetched.. Mar 18 14:16:24 Showing a dialog is a line of code. Mar 18 14:16:25 Stop whining. Mar 18 14:16:27 Git gud! Mar 18 14:16:53 http://images.akamai.steamusercontent.com/ugc/360652321503765928/576E6364D09F92E98A2CDA8D7138FCF8429928BA/ Mar 18 14:18:19 Mavrik, can you provide me the code, cause I've tried it with no luck. And I'm talking about a ProgressDialog here. Mar 18 14:18:28 Number5, you need to give entire code, problem is not in few lines you provided Mar 18 14:19:27 vegetablesalad19, I added a log and I can see in Logcat it is actually running the code. Mar 18 14:21:19 Number5: new DialogFragment().show(getFragmentManager(), TAG); <<< this shows a DialogFragment for me Mar 18 14:21:54 http://paste.ofcode.org/YJDdJ82822CjDQAh7gtPQr this doesn't work for me, while looking at the code, it should work. Mar 18 14:23:54 I tried this out: http://paste.ofcode.org/tgdCwsPHh5ZK3zLUeMx5tp and now it works, well, I really need a break, as this doesn't make any sense. Although I found a solution, but the fact I don't understand what's going on here, I'm so frustrated. Mar 18 14:24:42 Number5: does your logcat contains "Showing progress dialog!"? Mar 18 14:24:49 *contain Mar 18 14:25:31 Ben_1, yes my friend. Mar 18 14:25:51 yo how do i change the background of a spinner and keep the little arrow? Mar 18 14:26:07 I call the working solution in the same method, so it is really called. Mar 18 14:26:20 Logcat probably also contains "Dismissing progress dialog!" Mar 18 14:26:50 Number5: remove (Context) before getActivity and try the old version again Mar 18 14:27:01 SimonVT, haven't seen it, but what makes you think it logs that message? Mar 18 14:27:43 Because you're probably dismissing the dialog somewhere else, causing it to not show up Mar 18 14:28:09 Ben_1, I already did it, I added casting to Context after it didn't work, although I knew it makes no difference. Mar 18 14:28:10 this could be also the problem, but it that's the case, his new one line solution would not work either Mar 18 14:28:47 Sure it would, he's assigning to another variable Mar 18 14:28:50 Number5: would be intresting if that problem appears also on a new project without any code infrastructure Mar 18 14:29:06 SimonVT: you're right Mar 18 14:29:31 I'm sure his first code would work if he assigned it to a local variable Mar 18 14:31:55 Anyway thnx for your cooperation my friends. Mar 18 14:33:06 Typical android, doesn't even show dismissed dialogs Mar 18 14:34:22 SimonVT: related to my problem, it just appears when I add an item to my toolbar styles. if there is no item in ToolbarThemePopup or ToolbarTheme it works Mar 18 14:38:19 Guess there are other ways you're meant to be styling it Mar 18 14:38:58 yah for sure but I think styles are existing to use it, and this behavior is not normal :P Mar 18 14:40:27 I only change the background with a regular style, not sure about the popup Mar 18 14:47:55 SimonVT: the strange thing is, that problem only occurs in android6 and not in android 4 Mar 18 14:49:21 it also occurs if I don't style my popup but just the toolbars background color Mar 18 14:54:10 SimonVT: do you use Appcompat23 for ur background color? maybe it's a library bug of the new library :3 Mar 18 14:55:28 Yep, using the latest Mar 18 14:57:10 Could just set the background directly on the Toolbar view if you're tired of messing with styles Mar 18 14:57:38 Hey, question: what's the simplest way to just get the last sensor event for a sensor on Android? Mar 18 14:57:48 Ideally in a service? Mar 18 14:57:54 (Step counter, specifically) Mar 18 14:58:04 (Has to work without any Google APIs) Mar 18 14:58:39 guys, i have a burning problem. i have an actionbar with an actionlayout.. i got to set the title via setTitle and nothing shows up Mar 18 15:02:03 action layout overrides any normal controls Mar 18 15:02:07 there is no title Mar 18 15:04:46 SimonVT: yes I could do this for my toolbar but not for its popup :/ Mar 18 15:09:58 Hi.. I need to know if my file was created to send to my server Mar 18 15:10:14 any idea? Mar 18 15:10:51 frederico: every File object has an .exists method Mar 18 15:11:08 So just new File(filePath) - .exists() Mar 18 15:11:28 Xatenev, http://pastebin.com/AGdFnCwL Mar 18 15:11:41 createSample and next uploadSamples() Mar 18 15:11:51 but my file wasn't created Mar 18 15:13:30 createSample is an asynctask Mar 18 15:14:17 If you needed a persistent keyboard on your app for whatever reason, would you just make a custom view and embed it in your app? Mar 18 15:14:50 frederico: createSample is a method it could be no asynctask. Whats the code of "createSample"? Mar 18 15:15:33 blabhblabh: why not, if you need it the whole time Mar 18 15:17:30 Hi all, sending GCM from server to app, GCM responds successful but message never gets through too app. Trying to work out why. Do you know if the app needs to be live on the store before GCM will work? Mar 18 15:18:02 Ben_1, http://pastebin.com/tn2FD1ZN Mar 18 15:20:09 frederico: but what is createSample(filePath, sampleSize);? I don't know what your first code snippet have to do with your latest. Both are async tasks, but that's it. Mar 18 15:22:04 gcm works as long as you have play services Mar 18 15:25:50 HT4CVJT01507 Nexus 9 100% N API 23 Mar 18 15:26:00 meh, it's annoying how N preview identifies itself as v23 Mar 18 15:52:06 Android databinding: Should I call something to unbind to remove references? Mar 18 15:55:11 Because something is leaking Fragments. Mar 18 16:00:41 I need to cast screen of my android 5.1 moto (not rooted) to ubuntu desktop. Mar 18 16:01:13 LegendThinker, emulator is not an option? Mar 18 16:02:09 danijoo, No. I need to scan QR on my screen in the demo Mar 18 16:02:38 QR code on my laptop screen Mar 18 16:02:42 mh Mar 18 16:04:18 . Mar 18 16:09:04 Any ideas why JavaScript alerts from a WebView are displayed *behind* the webview? Mar 18 16:09:31 they don't Mar 18 16:09:53 unless the alert pops up an android dialog, which doesn't make sense Mar 18 16:10:07 they do in my app Mar 18 16:10:46 onJsAlert only does return super.onJsAlert(view, url, message, result); Mar 18 16:11:03 on the WebChromeClient Mar 18 16:11:17 then it's your hierarchy of views that makes it show underneath Mar 18 16:11:18 * pfn shrugs Mar 18 16:15:34 SimonVT: wow, really, it seems the problem was the toolbar colouring. Setting the color in my style.xml will cause this issue... Mar 18 16:17:57 so how can i have a title in an actionbar that contains an actionlayout? Mar 18 16:18:18 MartialLaw: you can use a Toolbar Mar 18 16:19:28 bleh Mar 18 16:29:54 hey guys Mar 18 16:29:57 may i ask Mar 18 16:30:09 what would a buffer be used for in recording audio? Mar 18 16:31:48 Ologn https://opensource.com/government/16/3/ny-bill-tax-credit-open-source-contributors Mar 18 16:32:28 g00s, cool Mar 18 16:32:58 I can get a writeoff for my Ubuntu patches if it passes Mar 18 16:33:20 Ologn how about the X screensaver stuff ? Mar 18 16:33:34 g00s, that too Mar 18 16:33:38 nice Mar 18 16:33:57 I started working on other screensavers recently Mar 18 16:34:12 non-live Mar 18 16:34:29 and where else would it be used? Mar 18 16:34:31 Although I've been doing the server back-end more than the client Mar 18 16:34:44 if the sampling rate is 44100, why is the buffer size also 44100? ?_? Mar 18 16:35:05 Ologn this was from the other day http://www.bfilipek.com/2016/03/the-matrix-updated.html Mar 18 16:35:27 would be cool project turning matrix rain into any photo Mar 18 16:36:13 XScreensaver has a matrix mode...I didn't try to port that one though Mar 18 16:36:32 Ologn you might catch Agent Smith's attention :D Mar 18 16:38:43 anyhowput you need a primer on audio processing Mar 18 16:40:20 a buffer is used to store data between it coming into the microphone and some app being able to process it. If the sample rate is 44100, then a buffer size of 44100 samples would be one second of audio. The buffer size being a multiple of the sampling rate is common. Mar 18 16:41:08 hey Chainfire how are you liking N so far Mar 18 16:41:11 Thanks chainfire, because I found this link which I might be able to use. But there are some areas which i dun understand Mar 18 16:41:15 https://stackoverflow.com/questions/20461243/how-to-play-two-sine-wave-on-left-and-right-channel-separately-with-16-bit-forma Mar 18 16:41:41 then where else would a buffer be used? ?_? Mar 18 16:41:45 in audioTrack? o.o Mar 18 16:42:24 anyhowput that's playing audio, not recording it Mar 18 16:42:56 you put audio data in a buffer, then send that off the sound card to played. AudioTrack::write seems to do exactly that. Mar 18 16:42:59 oops, ya, but i have to implement something similar to that , to separate the left and right channels. Mar 18 16:43:28 I suggest you go read some documentation Mar 18 16:43:53 g00s FileInputStream breaks on >2GB files Mar 18 16:43:55 sure thanks :) just a last qn Mar 18 16:44:01 g00s I need no other opinion of N Mar 18 16:44:16 any idea where would a buffer be used ? Mar 18 16:45:23 Is it possible that a snackbar turns into a notification automatically if the app is in the background? Mar 18 16:48:27 Chainfire that reminds me a long time ago - memory is fuzzy - on GB you couldn't read assets larger than 1 mb compressed, or something like that ... Mar 18 16:48:39 yup Mar 18 16:49:11 then you'd name stuff .png just so AAPT wouldn't compress them Mar 18 16:49:17 lol Mar 18 16:49:40 and then stupid virus scanners like Avast and whatnot start to complain about files inside APKs that are named .png but aren't really .png Mar 18 16:49:41 ... Mar 18 16:49:54 i just hope this transition to OpenJDK - stuff is tested well ;) Mar 18 16:50:14 isn't AOSP itself built with OpenJDK for a while now? Mar 18 16:50:55 hm dunno, but i'm sure you know harmony is being replaced by openJdk Mar 18 16:51:03 I wonder if the OpenJDK move could be related to that 2GB issue Mar 18 16:51:10 yeah Mar 18 16:51:13 g00s: I think you still can't pass more than 1mb as an extra. Mar 18 16:51:24 but that 1mb is shared by all extras. Mar 18 16:51:24 however, there is no way to check, because there isn't any sauce yet Mar 18 16:52:59 Syzygy isn't that just the parcel size limit in this case? Mar 18 16:53:12 possibly Mar 18 16:53:21 I only ran into that issue once and was annoyed by it. Mar 18 16:53:43 aren't intents supposed to be light ? Mar 18 17:04:16 ndk 11b Mar 18 17:05:50 Chainfire, being built with openjdk isn't the same as being the openjdk rtl Mar 18 17:06:05 and yeah, passing around a 1mb intent is just stupid Mar 18 17:06:05 i have a question there is this app on the google play store its a clone of another app. and well the cloned app they made. it hides certain stuff. from public view Mar 18 17:06:12 and i cannot damn figure out where its doing so Mar 18 17:06:14 xD Mar 18 17:07:24 https://github.com/vergecurrency/coinomi-android = the cloned src https://github.com/Coinomi/coinomi-android = default src. the part im looking for is how does he block the other coins from showing the coins are in still the main class file which is com.coinomi.coins.(COINAME) Mar 18 17:08:54 well actually the file is wallet/constants.java Mar 18 17:09:02 but all off the stuff their is the same in the original Mar 18 17:10:48 you make no sense, and not interested Mar 18 17:11:18 pfn, im tired as hell Mar 18 17:11:19 xD Mar 18 17:11:35 what im trying to say in the cloned src of coinomi which is the vergecurrency Mar 18 17:11:56 in the file https://github.com/vergecurrency/coinomi-android/blob/master/wallet/src/main/java/com/coinomi/wallet/Constants.java its exactly identical from what i can see Mar 18 17:11:59 to the main src Mar 18 17:12:22 so? Mar 18 17:12:36 all those coins you see there show up on the main src. on the app but his app some how has them hidden Mar 18 17:12:44 and im trying to figure out how he's diguising them so they dont show Mar 18 17:12:45 llol Mar 18 17:13:09 so i dont have to butcher src Mar 18 17:13:09 can anyone tell me if google play games services are free? Mar 18 17:13:09 xD Mar 18 17:13:10 https://developers.google.com/games/services/ Mar 18 17:13:42 Im more than capable of editing the heck out of the src pfn i just dont want to if i dont need to Mar 18 17:13:42 xD Mar 18 17:13:45 they talk about quotas and billing but I cant find usefull info Mar 18 17:13:53 about it Mar 18 17:15:31 has anyone used the sqlite.org android binding? i'm stuck figuring out how to d/l them from fossil Mar 18 17:32:11 pycas: https://developers.google.com/games/services/quota Mar 18 17:34:14 heyyy Mar 18 17:35:23 Probably a stupid question, but I can't any direct information for this off hand. There is some code from the googlesamples repository on GitHub that I want to make use of in a BSD licenced project. I don't need the overwhelming majority of the sample code, and would rather not separate this into a separate file. (I can if I need to though!) I see that the sample in question is licenced as Mar 18 17:35:29 Apache, but I don't what is required, if anything, to have BSD and and Apache Licenced code inlined within the same file. Is this a legal action, or do have to keep the Apache code out of a BSD-licenced file? Am I just overthinking this? Mar 18 17:47:40 google the answer Mar 18 17:58:48 is bottom navigation global or is it just a tab bar rehash Mar 18 18:12:06 It looks like it’s more or less global Mar 18 18:12:12 it’s a form of top-level navigation Mar 18 18:16:34 i'm doing my first steps in android (after having read the biggest parts of "android head first"...)... Mar 18 18:16:41 and i'm trying to modify an existing app. Mar 18 18:16:55 the first thing i wanted to do, is to change the name of the package. Mar 18 18:17:12 i'm at the 4th try and it somehow looks ok... Mar 18 18:17:41 only: i have everywhere import old.package.R ... how can i get it to use new.package.R ? what am i doing wrong? Mar 18 18:19:58 you do a find and replace of all the "import old.package.R" Mar 18 18:21:20 well, yes, missingno... i can :-) Mar 18 18:21:29 and it's the way i did during the thrid try... Mar 18 18:21:41 but it looks somehow wrong... Mar 18 18:21:41 hmm I guess there is a way to change applicationId without changing where R.java ends up Mar 18 18:22:02 anyway, i try with a search and replace, then... Mar 18 18:22:15 applicationIdSuffix maybe? Mar 18 18:22:23 idk why you are changing the package name anyhow Mar 18 18:25:13 well, because i'm creating a new app based on the original one... Mar 18 18:25:33 ... i guess it's not really kind to leave the old name in... Mar 18 18:25:42 ok, it compiles and runs again! Mar 18 18:26:21 thanks missingno Mar 18 18:32:55 changing the package name doesn't change existing source Mar 18 18:32:57 that's just stupid to do Mar 18 18:34:54 a-l-e: is this an app that was provided with the book? Or otherwise open source? Mar 18 18:35:01 oh, they left Mar 18 18:45:08 ugh, is there any good way of getting uid from a package name over adb? only way I can think of that's reasonable: pm list packages pkgname; stat -c %u /data/data/fullpackagename Mar 18 19:10:30 converting svg to vector drawable is a pita. i took 2 circles, subtracted one from the other .. result was a donut. no tool could convert this properly to vector drawable (result was filled circle) Mar 18 19:15:10 g00s, if i recall there's a handful of stuff it just can't do, too. I forget the limits though. Mar 18 19:17:39 yeah my output has a few of these Mar 18 19:18:00 not really sure, what i can do about that though ... not really up on editing my svg file by hand :P Mar 18 19:20:05 you have to disable the transforms in svg2android Mar 18 19:20:09 they have that checkbox right there Mar 18 19:20:10 check it Mar 18 19:20:27 pfn i did that, the result was circle not donut Mar 18 19:20:36 in other words, it parsed but wasn't correct result Mar 18 19:20:39 * pfn shrugs Mar 18 19:20:46 the output should not have any Mar 18 19:20:48 if it does, you didn't check it Mar 18 19:20:59 i'm looking at the raw svg atm Mar 18 19:21:03 "bake transforms into path" Mar 18 19:21:03 hey g00s Mar 18 19:21:06 pfn Mar 18 19:21:07 hey Napalm Mar 18 19:21:14 pfn i have that selected too Mar 18 19:21:20 * pfn shrugs Mar 18 19:21:25 * g00s shrugs Mar 18 19:21:27 I have a bunch of svg I processed without a problem Mar 18 19:21:40 * Napalm shrugs (wanted to join in) Mar 18 19:22:06 Napalm any recommendations for good svg -> vector drawable tools ? Mar 18 19:22:18 have you tried putting your svg through this https://inloop.github.io/svg2android/ Mar 18 19:22:24 yeah thats what i used Mar 18 19:22:34 and whats the problem? Mar 18 19:22:45 you still got a matrix referenced? Mar 18 19:23:05 i disabled all that, but the result isn't correct Mar 18 19:23:15 not like i can edit this by hand, no idea what the problem is Mar 18 19:23:18 PM me the SVG Mar 18 19:23:19 oh well Mar 18 19:23:25 Napalm OK Mar 18 19:43:45 i change my android path from ext partition to ntfs partition because of size of that directory and then make link to the previous path so i could not run emulator because on NTFS partition i could not give execute permission so i move two partition tools and platform-tools to ext4 partition and chmod it to 755 then emulator can run. now problem is in android studio when i try to build and run app it said 11:06:19 PM Error running app: Unable to obtai Mar 18 19:44:20 and my emulator is run but $ adb devices doesn't show anything Mar 18 20:08:52 anyone ? android studio doesn't find adb Mar 18 20:36:16 Question regarding the motion sensors, Im a bit new to android. I saw Sensor.TYPE_LINEAR_ACCELERATION. How is it achieved? Does the API single integrate or double integrate the accelerometer values? Same for TYPE_GRAVITY...? Thanks Mar 18 20:40:46 Hello, am looing for help implementing an picture function inside an app. I want to be able to take pictures, and upload directly to instagram - but as far I can see there is no possable soluton to this (Have googled). Can someone please help or point me in a direction? :) Mar 18 20:58:16 could someone let me know what i am doing wrong with creating a volley request, if i use this in my mainactivity, it works fine, if i create a new class and put a public method in i get an issue with my this, sorry am a newboe http://pastebin.com/zURMy1vh Mar 18 21:02:53 Datasmurfen: You’re gonna have to look at Instagram’s API Mar 18 21:10:05 ok, now i figure it, i need my class to extend application, but now i am getting a nullpointer?? Mar 18 21:26:06 Am I the only one that spends so much time doing internal work on the app that things that UI stuff takes way longer than it should when I finally get around to it? Mar 18 21:28:20 After working with grails, I discovered just how horrible working on Android is. Mar 18 21:28:23 I miss the magic. Mar 18 21:29:25 same for me and swift Mar 18 21:29:39 Rendering of my game uses 86% of my cpu time. And it lags :| Mar 18 21:30:07 every time I have to write if( x != null && x.foo != null) and so on, I hate java more and amore Mar 18 21:30:15 and i hate google for thinking Java was a good idea Mar 18 21:30:54 I'm with you on that Mar 18 21:31:15 How do you feel about kotlin? Mar 18 21:32:36 Well, Im using Groovy currently. Mar 18 21:32:44 Especially because of RoboSpock. Mar 18 21:32:48 justGroovy ! Mar 18 21:32:56 Which makes testing a lot easier, too. Mar 18 21:33:33 And, as always, a lot of custom Magic. Mar 18 21:33:40 java is great Mar 18 21:33:44 dont hate Mar 18 21:33:56 my dissatisfaction with java is from coming from years of embedded doing C / C++; just always felt like terrible idea for resource constrained devices Mar 18 21:34:00 Like writing annotation preprocessors to make ormlight as convenient as Hibernate Mar 18 21:34:26 i can understand that Mar 18 21:34:55 I just wanna do Mar 18 21:35:11 Patient.findByUuid(str) Mar 18 21:35:13 i have a soft spot for natively compiled code , don't really like VMs either Mar 18 21:35:20 Or patient.save() or patient.delete() Mar 18 21:36:21 ORMlight is horrible. Greendao isn't better either. Mar 18 21:36:34 s73v3r but what would they have gone with? only thing i can think of is maybe D Mar 18 21:36:39 s73v3r, Java WAS a great idea!! It's one of the main reasons Android is so huge. But it's time has passed, that I agree with Mar 18 21:36:46 g00s, !!! :) Mar 18 21:36:53 hey MikeWallaceDev :D Mar 18 21:37:04 Seriously, coding like with grails is such a huge step up from working for Android, it's hard to go back to default without custom tricks. Mar 18 21:37:16 grails lol Mar 18 21:37:25 shit people are still using that Mar 18 21:37:34 Hello, am looing for help implementing an picture function inside an app. I want to be able to take pictures, and upload directly to instagram - but as far I can see there is no possable soluton to this (Have googled). Can someone please help or point me in a direction? :) Mar 18 21:37:44 g00s: yeah, it's pure magic. Everything just works — but you can actually go into the internals at any time. Mar 18 21:37:45 smurfs up ! Mar 18 21:38:09 Datasmurfen, does Instagram have an API for that? Mar 18 21:38:21 In contrast, we have Android, where everything is super complicated, nothing works as expected, and you can't change the internals either. Mar 18 21:38:41 Java was a terrible idea Mar 18 21:38:51 Luckily, knowing how to write annotation processors, you end up writing annotation processors for everything. Mar 18 21:38:53 justJanne part of that is because its hard to evolve APIs when you can't update the OS quickly :P Mar 18 21:38:55 especially the position Google took of using old-ass java Mar 18 21:39:04 how so s73v3r ? Mar 18 21:39:11 Datasmurfen: I told you before, go look at Instagram’s API Mar 18 21:39:15 g00s: we're now on an ancient version of grails, and it still works well ;) Mar 18 21:39:38 glad it works for you ... Mar 18 21:39:54 s73v3r, the thing with Java is that it is easy and accessible. So it was a great idea in order to get Android on the map. Mar 18 21:40:05 MikeWallaceDev: Because it makes you do shitty things like the if x != null && x.foo != null, and x.foo.bar != null, instead of simply being able to go x.foo.bar and have it return null Mar 18 21:40:10 We had to replace spring loaded, as expected, and had to do several manual configs to use our own LDAP provider for spring security, Mar 18 21:40:15 But it works amazingly well Mar 18 21:40:22 But now the apps are bigger, and the quality of devs is higher, so we should have a better language... Mar 18 21:40:34 lots of other languages are just as accesable if not more, and have much better features Mar 18 21:40:40 s73v3r: or even just the Elvis operator. Mar 18 21:40:55 that would work too Mar 18 21:41:21 just don’t make me individually null check every fucking step in the chain. that makes no god damned sense Mar 18 21:41:41 Wait. So your problem is that you have to check for null?? And not the fact that Java is a slow interpreted language with terrible GC hickups??? Mar 18 21:41:50 lotsa java haters in here Mar 18 21:41:55 s73v3r: or use an annotation processor to automatically add those checks ;) Mar 18 21:41:56 and crappy FFI to C ... Mar 18 21:42:04 not really, everyone loves java in here Mar 18 21:42:19 java is slow? Mar 18 21:42:40 jna is good for ffi, I still haven't bothered trying to see why people don't use it for android Mar 18 21:42:44 Java. Slow. Interpreted. Loool Mar 18 21:42:45 MikeWallaceDev: that’s not my only problem. But the problem is not that I have to check for null, it’s that the compiler isn’t smart enough to check null throughout the chain Mar 18 21:42:49 because its slower than JNI Mar 18 21:43:02 pfn: try jna instead. A lot easier. Mar 18 21:43:06 most other modern languages can do this Mar 18 21:43:24 java doesn't do nullchecking, that is all Mar 18 21:43:36 and most modern languages still don't have nullsafety that work completely well Mar 18 21:43:59 they do for chains like that Mar 18 21:44:01 pfn: Java doesn't do many things, but we luckily got the JVM, and compatible languages, and annotation processors, and can do our own things. Mar 18 21:44:03 s73v3r have you checked out kotlin yet? would think thats closest to swift (i thought you did iOS) Mar 18 21:44:06 swift’s ? operator works just fine Mar 18 21:44:11 no i haven’t tried kotlin yet Mar 18 21:44:38 s73v3r: Kotlin is probably what you want. Or Groovy. Both have all the things. Mar 18 21:44:45 can’t use it Mar 18 21:44:49 not groovy :( Mar 18 21:44:53 at least not on the project at my day job Mar 18 21:44:58 Why? Management? Mar 18 21:45:12 Ah Mar 18 21:45:15 was it the new york times that just did that article about why their groovy android app had to be shitcanned ? Mar 18 21:45:31 the project’s already too far along. It’s almost at the release stage. It would be foolish to try and make a change like introducing Kotlin now Mar 18 21:45:40 g00s: yeah Mar 18 21:45:59 Well, Groovy, Java and Kotlin are binary compatible, and Groovy and Java are source compatible. Mar 18 21:47:03 not when it’s this far along, and there are other people on the project Mar 18 21:47:13 if it was in the beginning, it would be worth a try Mar 18 21:47:54 <|PiP|> is there an easy way to see what Activities/Fragments are currently using an XML layout? Mar 18 21:48:32 <|PiP|> basically i want to remove all layouts that aren't being used Mar 18 21:49:19 if you go into an activity where you know it’s being used, you can do a “Find Usages” on the layout name, and see what else is using it Mar 18 21:49:21 that’s about it Mar 18 21:49:44 <|PiP|> ahh i can actually right click the XML file and click "Find Usages" Mar 18 21:49:49 There's a lint check for unused resources Mar 18 21:49:55 groovy sucks Mar 18 21:50:02 kotlin is a little better than java Mar 18 21:50:28 the android emulator is slowing down my whole computer, I was looking for tips on improving the speed Mar 18 21:50:34 get a better computer Mar 18 21:50:45 * pfn fixes his pidcat for n preview Mar 18 21:50:52 I have a fairly powerful i5 cpu, with 8 gb ram Mar 18 21:50:59 get more ram Mar 18 21:51:07 could someone tell me why i am getting a Attempt to invoke virtual method 'com.android.volley.Request com.android.volley.RequestQueue.add(com.android.volley.Request)' on a null object reference Mar 18 21:51:08 when using the following code in volley ? http://pastebin.com/a76WrChb, if i use this method in Mainactivity its fine, when i create in a new class i get the nullpointer? Mar 18 21:51:25 when I go to look at ram, I am using 5 gb, even with multiple visual studio's open Mar 18 21:51:28 still need more? Mar 18 21:51:39 the cpu is like 4%, but computer is butt slow Mar 18 21:51:44 krippykripkrip, because you shouldn't extend random classes Mar 18 21:52:13 even like typing in notepad, dreadfully slow when the android emulator is open Mar 18 21:52:38 I was thinkin I can start using my tablet for andrid dev, to free up the resources on the desktop Mar 18 21:52:47 then use it Mar 18 21:52:53 but if i don’t extend, then what do i need to put when creating myqueue? Mar 18 21:53:01 do the right thing Mar 18 21:53:11 guideX: the emulator is pretty crappy. there’s not much you can do about it. You can try to upgrade to the 2.0 beta, and use that emulator Mar 18 21:53:22 pfn: do you think that's a good way to do it? I have the i5 cpu on my asus eee slate tablet pc and 4 gb ram, ssd Mar 18 21:53:28 then I can teamveiwer to it Mar 18 21:53:48 so, when I'm waiting for the emulator, I can use my desktop for other tasks Mar 18 21:53:51 good plan? Mar 18 21:54:03 s73v3r: I'll try the beta too Mar 18 21:54:03 why not use a regular Android device? Mar 18 21:54:09 I don't have one yet :( Mar 18 21:54:14 I have all windows phonees Mar 18 21:54:19 your first priority is to get one Mar 18 21:54:23 ah ok Mar 18 21:54:25 hmm Mar 18 21:54:26 before any updates to the computer Mar 18 21:54:44 you absolutely should not release without using it on at least one, but preferably 2 or 3 devices Mar 18 21:55:02 of course, I'm not to the point of release, actually, I'm rapidly approaching functional beta Mar 18 21:55:18 then I will demo my app, and then the polish, then test, then release Mar 18 21:55:25 so i use RequestQueue queue = Volley.newRequestQueue(this) in my mainactivity it works, but what do i need to use in my new class? Mar 18 21:56:26 actually, my wife has a samsung galaxy s4 mini now that I think of it Mar 18 21:56:32 I can always use it to test Mar 18 21:56:36 not sure if that's too old Mar 18 21:59:31 another thing.. in the android emulator, is there anyway I can use my pc keyboard during testing? Mar 18 22:00:51 krippykripkrip, the correct parameter Mar 18 22:05:05 lol, i know, i’m trying to figure out what it is Mar 18 22:09:26 extending application is wrong Mar 18 22:09:32 you don't extend classes randomly Mar 18 22:09:32 period Mar 18 22:10:30 yup, it runs fine in mainactivity but i’m trying to modularise my code so i can call this time and time again without having to repeat code, need to do some more digging the tuts Mar 18 22:21:38 certainly I cannot dev fast enough this way. I will buy an android device, and/or move android dev to my tablet, gah so slow Mar 18 22:28:30 krippykripkrip: You shouldn't be extending the Application class. This isn't how you would implement something like this. There is one, if any, and only one Application class you'd register in the manifest. On application start it will create an instance of it or use the custom one you specified in manifest. You can get ahold of it in Activites and Fragments via getApplicationContext. People usually extend the Application class for storing/holding Mar 18 22:28:31 global objects that are commonly used across the entire application. I think you're extending Application to get a reference to application context? Why not just create a normal class and pass a context in the constructor? Mar 18 22:29:50 yeah i’m not extending anymore, just still trying to figure this out, i’ve changed it to a normal class Mar 18 22:33:22 krippykripkrip: Did you check this guide out? http://developer.android.com/intl/es/training/volley/requestqueue.html Mar 18 22:34:12 yup, was reading thru it Mar 18 22:38:43 Hello everyone. I just installed Android Studio (the latest one, 1.5). I set correctly the android and java DK.. But, Gradle doesn't stop and all Java classes are marked red.... Can anyone help me to fix these errors? Mar 18 22:38:56 I'm on Linux fedora Mar 18 22:44:28 are there tutorials to follow for the code samples that come in the android-studio? Mar 18 22:45:52 I installed it also in Windows and all went well, without tutorial... But honestly I didn't follow any tutorial Mar 18 22:47:01 I just see that there's a lot of sample projects in there, I was curious if there was a tutorial to follow that went through them all... i've seen similar done in other sdk's Mar 18 22:49:53 Yes there are a lot of examples, but I just created a project Mar 18 22:50:03 In windows no problems Mar 18 22:50:20 same steps Mar 18 22:50:34 do you have to do anything onDestroy() using butterknife, or does that get taken care of you when the activity goes out of scope/context? Mar 18 22:51:22 I didn't anything... just created a new project Mar 18 22:52:02 i just want to make sure my memory gets cleaned up properly and nothing is left hanging around unnecessarily Mar 18 22:54:09 got it working, thx codepete :) Mar 18 22:54:18 created a constructor, sweet Mar 18 22:54:34 krippykripkrip: Nice! Good job. Mar 18 22:55:12 http://imgur.com/g2cYs0j detail sacrifice for less overdraw Mar 18 23:00:45 kommunicate: don't do anything Mar 18 23:00:56 awesome, thanks JakeWharton Mar 18 23:11:12 woo got my nexus 6p Mar 18 23:11:16 jesus this phone is humongous Mar 18 23:12:19 RustyShackleford: "phablet" ? Mar 18 23:13:06 isn't it a wee bit smaller than N6? Mar 18 23:13:45 width wise, yeah Mar 18 23:14:08 I was thinking about the 5x mostly because of the size Mar 18 23:14:24 but this phone/phablet is pretty nice I must admit Mar 18 23:14:31 screen is beautiful Mar 18 23:15:39 looks pretty sweet Mar 18 23:16:26 considered grabbing one out of desperation when my N6 appeared to malfunction in security auto-erase Mar 18 23:17:05 I haven't gotten anything new for a while Mar 18 23:17:27 Sporting a couple nexus 7 tablets and a galaxy S5 Mar 18 23:17:53 Can someone explain to me the difference between the different virtual sensors like rotation sensor and orientation and what they do? Mar 18 23:17:55 just upgraded my N9 to Android N. Quite nice Mar 18 23:18:33 hi, i am trying to create a new branch from my the master branch i just finished commiting, but when i try to create a new branch nothing happens when i click on the new branch button on the corner. Mar 18 23:19:27 i tested git under the settings of android studio 1.5 Mar 18 23:20:34 hubjon11: orientation sensor provides the way the device is oriented, while rotation sensor gives you vector of how it rotates (changes orientation) Mar 18 23:20:50 hmm? confused Mar 18 23:20:54 doesnt one do sensor fusion? Mar 18 23:21:02 orientation = compass ? Mar 18 23:23:14 oh, like the orientation tells you what direction it's currently pointed, but the rotation sensor could be used for something like letting you turn your device into a steering wheel for a game... Mar 18 23:23:54 hubjon11: both do sensor fusion, that's why they are virtual sensors (well, the former can be calculated from just gyro, while the latter would use gravitation and I think magnetic) Mar 18 23:24:20 DaveWM, not at all Mar 18 23:25:02 p_l like i want o get a deep understanding, but there is so much to discuss. not meant as sketch, there is andorid discord, can we tlak there? Mar 18 23:25:19 cause there are different methods of fusion, i dont understand how it does it and which way Mar 18 23:25:25 and where the quaternions fit into it etc Mar 18 23:25:41 if u have the know how, please lemme know, i realy need to understand it Mar 18 23:25:54 aliens Mar 18 23:42:38 a way to simulate sensors without physical device? Mar 19 00:15:19 ha just read this on HN " Mediocre engineers really excel at building enormously over complicated, awful-to-work-with messes they call “solutions”." Mar 19 00:17:49 Can someone explain me the different sensors like rotation vector and gyro calibrated? Mar 19 00:18:23 not bad, only own 4500 in taxes this year, yay Mar 19 00:18:28 s/own/owe Mar 19 00:32:28 hubjon11, ask a more precise question maybe, and read about it online like: https://source.android.com/devices/sensors/sensor-types.html#gyroscope Mar 19 00:33:49 i don't remember well, but gyro is giving you speed rotation around axis in deg/s or rad/s Mar 19 00:35:06 hi all, is it possible to connect to MS SQL server from an android app? Will odbc work ? Mar 19 00:35:47 Tazmain not really Mar 19 00:36:03 so webservice then ? Mar 19 00:36:08 i could work OK if the app was on the same network / lan Mar 19 00:36:16 yeah Mar 19 00:38:29 okay so qt can do Json, not so sure how easy it is in android Mar 19 00:39:11 I am loving this nexus Mar 19 00:39:35 Tazmain: retrofit/gson Mar 19 00:39:42 piece of cake Mar 19 00:40:13 really ? Mar 19 00:40:16 adq, is rotation vector sensor (virtual sensor) fusing the accel and gyro? thats how it seems. how is it fusing, kalman filter? Mar 19 00:40:44 so this is android-dev but does qt android aps get discussed here or not ? Mar 19 00:41:04 I would try the qt channel. I think there is one Mar 19 00:41:19 but if you're developing a new app, don't use qt unless you really have a reason to Mar 19 00:41:43 who> Mar 19 00:41:44 ? Mar 19 00:43:21 hubjon11, i have no idea Mar 19 00:44:05 but a quick search reveals it seems to be a kalman filter Mar 19 00:44:18 RustyShackleford, at this point its been far easier to use than android studio actually Mar 19 00:49:47 qt easier than android studio? lies Mar 19 00:50:12 there are no qt android apps Mar 19 00:50:20 none that are worth using Mar 19 00:52:37 it is easier for me, easier to link a button to code. Mar 19 00:52:52 Are there telnet libraries for android ? Mar 19 00:53:24 I got confused and struggled to just get a button to click, it was a lot simpler and easier in qt Mar 19 00:54:56 oO Mar 19 00:55:26 and I hate xml, and that is what the new UI is in android studio righ t Mar 19 00:55:27 well if some bin-utils-like are not available, you can often use busybox Mar 19 00:55:39 but telnet, button to click, qt.. i'm lost :p Mar 19 00:56:15 Tazmain, you can do your whole UI programmatically Mar 19 00:56:19 but it's gonna be painful Mar 19 00:56:26 adq, lol telnet is a diff question. Android studio I got lost trying to get a button click to do something. It was easier in qt Mar 19 00:56:52 it's the easiest thing though, just follow simple tutorials at d.android.com Mar 19 00:57:38 * adq throws at Tazmain some activity + pager + nav drawer + fragments + recyclerview + adapter + etc.. Mar 19 02:23:22 hello, I am beginner/novice android developer and am trying to implement a feature where the user can switch between a custom inapp keyboard and the native installed keyboard Mar 19 02:24:22 something like how Whatsapp has a button for emojis which switches to a tab of smilies instead of the keyboard Mar 19 02:25:45 Also, this is my first time using this channel, so please point out and excuse me for any mistakes or faults that I unknowingly make :) Mar 19 02:31:22 kind of sad, my project android project will be over soon, and then returning to c# related work primarily, kind of feel like this cat http://blog.discourse.org/wp-uploads/2013/04/cat-enters-bathtub.gif **** ENDING LOGGING AT Sat Mar 19 02:59:58 2016