**** BEGIN LOGGING AT Fri Jan 01 02:59:59 2016 Jan 01 03:08:15 is it possible to bring linux 4.3 to android? Jan 01 03:09:13 yes Jan 01 03:09:26 the big problem is porting all the code necessary to run your device Jan 01 03:10:22 this guy built a custom kernel for my phone, but has decided to maintain it no longer because he does not have the specific model of the phone himself Jan 01 03:10:56 he is however maintaining versions of his kernel for other models of the same phone... I really would like to maintain the kernel for this phone if nobody else is willing to Jan 01 03:11:07 BUT, I am not sure I have the sufficient knowledge to do that Jan 01 03:11:42 I don't know what all changes have to be made and done in order for it to work properly with this model as opposed to the other one, and while I'm genuinely willing to learn, I have no idea where to start. What should I do? Jan 01 03:17:11 I have access to sony's repo https://github.com/sonyxperiadev/device-sony-kitakami Jan 01 03:17:13 how do you draw text into a textview thats specified in your xml. i have the R. entry for it but nothing I do puts text in the view Jan 01 03:17:27 and his custom kernel repo https://github.com/BustyLoli-Chan/android_kernel_sony_msm8994_kitakami_r2 Jan 01 03:17:33 but how do I do? Jan 01 03:18:20 it looks like he even has a build script for the satsuki "my current model" but I have no idea if it actually works or will crash Jan 01 03:18:45 also I should probably hop on a linux host for this lol Jan 01 03:20:16 i have a textview that im generating programatically and i can write text into that but the textview i specify in my layout.xml is causing me problems. nothing i do will put text in it Jan 01 03:20:49 the view is a custom view with a 9 patch bitmap as its background but its NOT a dynamic size, its fixed by the space available Jan 01 03:21:26 so far all i can do is go OOM or just not accomplish anything Jan 01 03:23:00 tv.setText() doesnt put anything in the view Jan 01 03:26:12 internet why Jan 01 03:26:33 alright so my first plan of action is clone this repo run his build script watch it explode and go from there Jan 01 03:29:16 also I can't tell if this guys readme is relevant or not... Jan 01 03:30:21 how do you draw text into a custom view specified in xml. nothing i do is working Jan 01 03:30:36 tv.setText(t); nothing shows Jan 01 03:31:23 did you give the textview an ID? Jan 01 03:31:29 yes Jan 01 03:31:38 and reference it via R.adroid.id.whatever Jan 01 03:31:49 and i have a TextView tv = (TextView) R...... Jan 01 03:32:22 you should try (TextView)ParentLayout.getChildByID(R.whatever) Jan 01 03:32:43 whith whatever reference you have to your parent/containing layout Jan 01 03:32:43 ? Jan 01 03:32:51 I know way back in the day you use to have a layout inflator Jan 01 03:33:07 i dont need to inflate this view its already in the display Jan 01 03:33:13 i just need to update its contents Jan 01 03:33:20 nothing i do puts text in the view Jan 01 03:33:48 t=(TextView)findViewById(R.id.TextView01); t.setText("Step One: blast egg"); Jan 01 03:33:58 yup. doing that Jan 01 03:34:01 no text shows Jan 01 03:34:46 hmmm Jan 01 03:34:51 do you have a source example? Jan 01 03:35:14 gimme a sec Jan 01 03:35:20 ill post one Jan 01 03:39:30 https://bpaste.net/show/69cda25c8a44 Jan 01 03:39:46 its FooView not fooView btw thats a typo Jan 01 03:39:49 I realize I might need the android SDK to build kernels/roms for android Jan 01 03:40:16 tbubble is a 9 patch Jan 01 03:40:34 is the last item/line in your list blank? Jan 01 03:40:38 the window is of a set size, not a 9 patch sized by content Jan 01 03:40:47 no Jan 01 03:40:59 all items in the list have content Jan 01 03:41:10 the magic number 6 goes away once i get it working Jan 01 03:42:23 i get no text displaying in the view at all Jan 01 03:42:32 nvm that shouldn't matter... you're added everything in the string together... and then setting it.... Jan 01 03:42:44 happy new year! Jan 01 03:42:51 is R.id.bugView and R.id.fooView also a type? Jan 01 03:42:54 now stop complaining about android! Jan 01 03:42:59 not for another 2+ hours lo; Jan 01 03:42:59 l Jan 01 03:43:22 its actually bugView i meant to change everthing to foo to protect the guilty lol Jan 01 03:43:51 the view is BugView and the class is BugView Jan 01 03:44:13 i spilled irish cream on my sweater and i think it melted it lol Jan 01 03:44:20 okay... I'm just fishing for ideas here... but did you think to call super.onDraw(c)? Jan 01 03:44:36 maybe after you've set the text... Jan 01 03:44:43 erm thats in there i must not have pasted it Jan 01 03:45:21 have you debugged to see if it gets to the "setText" line? Jan 01 03:45:51 Honestly, I'm probably of no help. Nothing I'm looking at here looks like it should be failing Jan 01 03:46:03 actuALLY the super call isnt in there Jan 01 03:46:10 dafq lol gimme a sec Jan 01 03:46:44 I don't know if that will fix anything, but I would think it to be important, otherwise nothing would get painted at all? perhaps? Jan 01 03:47:56 actually none of my other views call super Jan 01 03:49:26 truthfully I don't know if it's inherited by default or not Jan 01 03:49:35 it's something I've always included Jan 01 03:51:26 yup that fixed it Jan 01 03:51:41 super.onDraw(c) anmd now i see text Jan 01 03:51:58 but the font is fscked up and ther line spacing is also jacked Jan 01 03:52:48 cant see a setText that takes a paint as a parameter Jan 01 03:54:15 what is the paint for? Jan 01 03:54:22 to set the line spacing Jan 01 03:54:32 and the typeface Jan 01 03:54:51 erm actually the line spacing is set on the view itself my bad Jan 01 03:54:59 but the p sets the typeface Jan 01 03:57:33 tv.setTypeface(Typeface); Jan 01 04:01:30 will I ever become cool enough that people will but me phones just so I can build firmware for them? Jan 01 04:07:37 I am damn near forking useless :| Jan 01 04:10:55 can anyone show me how to install the toolchain on a linux computer Jan 01 04:11:07 http://developer.android.com/ndk/guides/standalone_toolchain.html Jan 01 04:11:18 I feel like this doesn't actually tell me anything about the toolchain and how to get it Jan 01 04:31:23 okay I installed the NDK Jan 01 04:31:57 I have the toolchains folder and stuff and I have the aarch64-linux-android-4.9 folder... Jan 01 04:32:29 what exactly am I supposed to do here so that I stop getting Jan 01 04:32:29 ccache: error: Could not find compiler "aarch64-linux-android-gcc" in PATH Jan 01 04:42:47 okay... I have gotten up to the point where I build the standalone toolchain with the script Jan 01 04:43:00 I have put it in my home directory and added the bin directory to my path Jan 01 04:43:34 I now have x86_64-linux-android-gcc.. but the build script wants aarch64-linux-android-gcc... Jan 01 04:44:14 I'm an idiot Jan 01 04:44:17 I build the wrong toolchain Jan 01 04:45:19 is crystax the best solution to port a c++ application onto android? Jan 01 04:58:37 Has anyone here ever worked with calDAV? Jan 01 04:58:50 I'm trying to get multiple calendars in that format and combine them to output one calendar Jan 01 04:59:07 but don't really know how to go about it Jan 01 05:03:40 as far as I could tell when working with it, everything about the calendar API sucks dongs Jan 01 05:08:36 BustyLoliChan: Where did you start? Jan 01 05:08:45 I was thinking of first making a demo using python or something Jan 01 05:09:56 I use the web API Jan 01 05:10:01 *used Jan 01 05:10:33 I was talking about the google calendar API though Jan 01 05:12:05 Happy new year and my android studio 2.0 motivate you to code the next best app :D Jan 01 05:12:21 BustyLoliChan the content provider ? Jan 01 05:13:45 has anyone used crystax before? i'm looking to port a c++14 app Jan 01 05:15:35 or have other suggestions for native c++ app code? Jan 01 05:35:28 is anyone awake? Jan 01 05:35:41 i need someone to test my online game with me Jan 01 05:35:42 https://drive.google.com/file/d/0B268BQaVqBiFNUkzaW1jSGhXWlU/view?usp=sharing Jan 01 05:35:52 very simple Jan 01 05:36:01 Air Hockey Game Jan 01 05:36:38 its desktop jar Jan 01 05:36:44 not mobile Jan 01 05:40:01 https://drive.google.com/file/d/0B268BQaVqBiFNUkzaW1jSGhXWlU/view?usp=sharing Jan 01 05:40:06 can anyone try it with me Jan 01 05:40:07 ? Jan 01 05:41:02 https://drive.google.com/file/d/0B268BQaVqBiFNUkzaW1jSGhXWlU/view?usp=sharing can anyone please download my game and try it with me for a seconds? Jan 01 05:41:33 MoshDev: er, you're off-topic and spammy Jan 01 05:42:01 sorry Jan 01 06:17:25 the best thing about having a recovery partition in your phone is knowing that if your Rom utterly facks shiz you're still golden Jan 01 06:22:44 eh, as long as you have a usable bootloader Jan 01 06:44:09 Android development is not as bad as I thought Jan 01 06:50:24 Android development is not as bad as I thought Jan 01 06:50:30 it's worse! Jan 01 06:52:16 shmooz: maybe you are learning from the wrong sources? Jan 01 06:52:25 I found udemy one is quite good Jan 01 07:01:11 fukin ie Jan 01 07:09:13 b4b: then use edge Jan 01 07:16:35 hi everyone Jan 01 07:16:51 it is my problem after running android-studio : http://pastebin.com/dcDbxggC Jan 01 07:18:15 im trying to embed an IE control in an app but its causing all types of trouble Jan 01 07:18:29 just cant be simple like webviews in android Jan 01 07:20:53 and of couse there are no win dev channels around Jan 01 07:32:01 is my problem after running android-studio : http://pastebin.com/dcDbxggC Jan 01 07:54:08 iresf: why not install android studio using ppa Jan 01 07:54:36 iresf: https://paolorotolo.github.io/android-studio/ Jan 01 07:54:43 the easiest way to install android studio Jan 01 07:57:22 horny-sama : i know but i have two version of android studio but does not work on debian Jan 01 07:57:43 iresf: two version of android? Jan 01 07:58:03 iresf: uninstall both then start fresh Jan 01 07:59:01 horny-sama : i dont need to uninstall android-studio because i just run ./studio.sh Jan 01 07:59:56 horny-sama : did you see my problem : http://pastebin.com/dcDbxggC Jan 01 08:00:00 iresf: the moment you have type ./studio.sh you installed something in background Jan 01 08:00:26 iresf: you have installed oracle java? Jan 01 08:00:46 horny-sama : yes i have installed Oracle java Jan 01 08:01:02 iresf: what's the output of java --version Jan 01 08:01:14 horny-sama : how to uninstall android-studio Jan 01 08:01:43 iresf: do you how to view hidden files? Jan 01 08:01:53 * horny-sama is making a guess Jan 01 08:02:18 java version "1.8.0_66" Jan 01 08:02:19 Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Jan 01 08:02:19 Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode) Jan 01 08:02:57 do you have anything android related installed in /home/userName Jan 01 08:03:16 horny-sama : yes Jan 01 08:03:17 honestly I don't really know Jan 01 08:03:24 iresf: then remove it Jan 01 08:04:14 horny-sama : then ? Jan 01 08:04:40 iresf: try ./studio.sh Jan 01 08:04:51 what do you mean by you have installed two versions of android studio Jan 01 08:06:25 i mean , i have android-studio 1.5 version and android-studio 2 preview 4 Jan 01 08:07:49 horny-sama : do you know what my problem is ? Jan 01 08:08:13 iresf: err now I think i do Jan 01 08:08:17 you are screw Jan 01 08:09:45 horny-sama : i can run android-studio but gradle works and does not finish it's work Jan 01 08:11:29 iresf: aka can't compile Jan 01 08:11:39 maybe try genymotion to build? Jan 01 08:11:41 I don't know Jan 01 08:11:45 android-studio work on ubuntu correctly but on debian it does not work Jan 01 08:34:22 what yall nerds think about chromium embeddeable framework? Jan 01 08:34:31 is it worth the 80mb to not embed IE? Jan 01 08:38:26 <_genuser_> so do I just use snackbar without any third party library now? Jan 01 08:44:26 bed time Jan 01 08:45:37 I cant seem to find a working link for the GDG Dev Kit Pilot. can anyone point me in the right direction? Jan 01 09:03:48 this boot image is 17 megabytes.... Jan 01 09:03:55 that's the lightest boot image I have ever seen : Jan 01 09:03:56 :O Jan 01 12:21:26 I have made changes in styles.xml such that my Theme has .NoActionBar Jan 01 12:21:45 and I created a Toolbar using the support library Jan 01 12:21:53 do I need to call setActionBar? Jan 01 12:23:20 Nick007, no. but you can if you like it Jan 01 12:23:29 setSupportActionBar() Jan 01 12:23:32 if you do, you can use all the getActionbar methods Jan 01 12:23:36 if you dont, you cant Jan 01 12:24:05 also menu will automatically will be inflated in this toolbar Jan 01 12:24:31 some people do it, some people prefer the new Toolbar methods Jan 01 12:24:50 will setSupportActionBar() work if I changed theme in Styles.xml to .NoActionBar Jan 01 12:25:29 I have parent="Theme.AppCompat.Light.NoActionBar" and it's working Jan 01 12:25:56 yes it does Jan 01 12:26:17 the theme tells android to not use a default actionbar. and with setSupportActionbar you set your own as a replacement Jan 01 12:27:07 don't forget android:layout_height="?android:attr/actionBarSize" on Toolbar Jan 01 12:27:17 okay... and I have included the Toolbar in my activity layout xml file as a widget... So now I guess I either call setSupportActionBar or I set the Toolbar as a widget... correct? Jan 01 12:27:49 you can do both Jan 01 12:28:44 yup I can do both... but I think doing both at the same time would create 2 bar things, am i right? Jan 01 12:29:01 nope Jan 01 12:29:15 vigilancer, oh Jan 01 12:30:01 I'll stick with adding it as a widget... Jan 01 12:30:33 you just conducting the way you will deal with toolbar - as widget reference or via actionbar api. any it will be one widget Jan 01 12:30:56 *any=anyway Jan 01 12:31:06 vigilancer, okay Jan 01 12:31:29 and... what do I do to access the current theme colors? I am learning to create a navigation drawer Jan 01 12:32:32 "?android:attr/textColor" Jan 01 12:33:01 got it Jan 01 12:33:17 heck, I love this irc more than stackoverflow :) Jan 01 12:34:01 depends on time of day and devs mood) but in general I tend to agree :) Jan 01 12:35:01 vigilancer, thanks a lot... you too danijoo_ Jan 01 12:35:39 hate those faceless "+1" buttons )) Jan 01 12:38:18 Nick007, my question would've been burried under downvotes because it's too "beginner" Jan 01 12:44:33 for the navigation drawer menu, I created a menu XML containing and Jan 01 12:45:05 now I am setting a click listener for the menu requires a MenuItem Jan 01 12:46:27 and the method which I am supposed to implement to override expects me to return a boolean Jan 01 12:47:11 what "boolean" am I supposed to return... I am going to code the listener to call the FragmentTransaction instance to replace a Fragment Jan 01 12:48:04 What does the docs say? Jan 01 12:49:08 I'm reading the docs... wait I'll paste a few lines here Jan 01 12:50:40 I'm overriding NavigationView.setNavigationItemSelectedListener(NavigationView.OnNavigationItemSelectedListener listener) Jan 01 12:50:49 The listener method is: abstract boolean onNavigationItemSelected(MenuItem item) Jan 01 12:50:55 Read the documentation, it's quite clear what boolean you should return Jan 01 12:51:01 for the method, the docs describe: Called when an item in the navigation menu is selected... true to display the item as the selected item Jan 01 12:51:34 So.. do you want to display the item as selected when clicked? Jan 01 12:52:24 To be honest, I don't know... I'm learning it and trying to have a fragment changed according to the menu item clicked Jan 01 12:53:13 "display the item as the selected item" - I don't think I'm understanding the words Jan 01 12:55:32 Try both Jan 01 12:55:58 I wrote some test code... running it now Jan 01 12:57:45 SimonVT, oh I see what it does now, I didn't even think about that Jan 01 13:53:42 he;llo Jan 01 13:53:44 I have an LG L34C phone that is giving Unfortuntely, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 01 14:12:55 hy all Jan 01 14:13:26 can you link me to a tutorial about creating Android widgets? I would make a weather widget Jan 01 14:14:29 http://developer.android.com/guide/topics/appwidgets/index.html Jan 01 14:14:49 Leeds: I have already found that Jan 01 14:15:00 good! problem solved then Jan 01 14:15:19 Leeds: and what will I need for a weather widget? I think that should refresh periodically Jan 01 14:18:31 Leeds: it would be better if somebody, who developed a lot widgets, would help me in 1-2 sentences, because my friend asked me to find informations about that and I don't want to do a lot research for this Jan 01 14:19:00 Leeds: I think I will need to connect to an existing weather site and download informations from that periodically, but I'm not sure Jan 01 14:29:39 yes, of course Jan 01 14:29:51 but that's nothing to do with a tutorial about widgets... Jan 01 15:00:28 Leeds: sry, my question was not correct then Jan 01 15:06:00 Leeds: and how to do that weather site and update thing? what tools will I need for that? Jan 01 15:06:29 Leeds: I think their names are collections Jan 01 15:08:24 I'm not sure what level you're asking at Jan 01 15:09:03 are you asking about Java implementation details, or what service to use, or... what? Jan 01 15:34:20 greyline: Leeds gave you link on widgets info, also you need: Service to update data and notify widget with new data, AlaramManager to schedule periodic updates, and BroadcastReceiver catching ON_BOOT to reschedule periodic updates Jan 01 15:36:00 vigilancer: oh, it's a very good summary. Thx Jan 01 15:37:17 incidentally, I'm possibly the only person here who has actually written and released an auto-updating weather app, though it doesn't have a widget :) Jan 01 15:37:52 Leeds: widgets have some gotchas, you should try to write it) Jan 01 15:38:04 Leeds: now that you said that, greyline won't stop stalking you Jan 01 15:38:17 Leeds, everyone who did the udacity android course did this :P Jan 01 15:38:37 danijoo_: everyone released a weather app? Jan 01 15:38:41 danijoo_: so those course worst to spend time ha? Jan 01 15:38:47 wrote it and put it on github i mean Jan 01 15:39:13 vigilancer, i think yes Jan 01 15:39:20 most stuff on udacity seems to be pretty good Jan 01 15:39:38 shmooz: I won't do anything about it right now, since I'm not an android developer Jan 01 15:40:05 hm, I thought this course is some sort of 101 Jan 01 15:40:08 shmooz: I have 2-3 totally different type works, and none of them is android related right now Jan 01 15:40:27 everyone should know the 101 :) Jan 01 15:40:42 greyline: you should focus on one thing at a time and get that done, instead of pondering other stuffs Jan 01 15:41:03 shmooz: in Hungary, I get only small money from 1 job, so... Jan 01 15:41:27 my condolonces Jan 01 15:42:03 shmooz: I teach robotics and game development in a university, I want to do telecommuting works in game development, and I will have a job in iOS Jan 01 15:42:26 wow, you shouldn't have to work so hard Jan 01 15:42:44 shmooz: and if I have a bit luck, I will be accepted into an award won game's development Jan 01 15:42:59 shmooz: I don't have girlfriend, so... Jan 01 15:43:03 what languages do you use to develop games ? Jan 01 15:43:16 that was funny Jan 01 15:43:19 shmooz: C# Jan 01 15:43:25 about girlfriend Jan 01 15:44:04 vigilancer: well, the girls I would like never interested in me, and I don't care about the type of girls who wants me Jan 01 15:44:21 you should skip it and go straight to wife, you'll have more free time Jan 01 15:45:01 vigilancer: and who should I choose for wife? I don't think I want a wife Jan 01 15:45:02 not should, just may) Jan 01 15:45:15 I suggest you stick with the right hand, you can quickly get done and be productive again without having to do all the other things that eat up your time Jan 01 15:45:16 vigilancer: it's a very hard decision Jan 01 15:45:32 Is there a way, that I can create a layout, with % of the height I want? Jan 01 15:45:51 shmooz: I always wanted to get a very talented girl, who's interested in video games and movies Jan 01 15:45:53 aindriu: Percent*Layout Jan 01 15:46:08 which layout is that? Jan 01 15:46:17 aindriu: percent support lib Jan 01 15:46:26 where do i find that Jan 01 15:46:32 in google? Jan 01 15:46:32 or linearlayout with weight Jan 01 15:47:29 i tried using linearlayout with weight but doesn't work Jan 01 15:47:55 because you weigh too much Jan 01 15:47:57 * Ashiren hides Jan 01 15:48:44 i put the linearlayout weighsums as 100 Jan 01 15:49:11 and i set the weight to 50 in one of them but it shrinks to invisible Jan 01 15:49:24 and height to 0dp? Jan 01 15:49:25 happy new year guys Jan 01 15:51:32 thanks, i think i got it working Jan 01 15:53:42 cheers, thanks a mil guys Jan 01 15:55:41 how do we create custom google maps? for example i want to create a map with only shows markers for hotels Jan 01 15:56:46 did you read the maps docs? Jan 01 15:56:56 yeah, but i couldnt figure it out Jan 01 15:57:07 i created a map by documents Jan 01 15:57:43 it shows markers for hotels but when i click on a marker, it shows its information on the same screen and there is also an search bar at screen Jan 01 15:57:55 i just only want to show a map and markers , thats all Jan 01 16:19:41 Can I use "anchor" links (or something to that affect) in scroll view that contains a textview? Jan 01 16:25:36 you would calculate that yourself Jan 01 16:46:18 pfn: that's what I was thinking. I will look into it Jan 01 17:25:26 should have good range http://imgur.com/BoaI6Uk Jan 01 17:34:30 g00s: expecially with two antennas Jan 01 17:45:15 Hi, I positioned out my layout correctly and it looks good on the design and works on my tablet, but when i transfer to my phone, the layout is messed up, and the LinearLayout with weights and text size is all messed up. Can anyone help? Jan 01 17:47:51 tiobe, all jokes aside .. http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Jan 01 17:48:19 aindriu look up 'responsive design android' Jan 01 17:51:23 of course, Java is massive, we've all known that forever Jan 01 17:53:06 nat pryce talks about kotlin here http://natpryce.com/articles/000815.html Jan 01 17:55:38 I dont get the responsive design Jan 01 17:56:15 Can I make a dynamic font size? Jan 01 17:56:38 thats cheating :D Jan 01 18:00:08 aindriu start here https://www.google.com/design/spec/layout/responsive-ui.html#responsive-ui-patterns Jan 01 18:02:01 looks complicated Jan 01 18:09:51 I don't really get the responsive layout design pattern. I just want my design to be uniform the way I make it. I thought using weights on LinearLayout and using sp would do that, but it looks shit Jan 01 18:12:46 can I add a scroll Jan 01 18:14:50 I basically have several components, one under each other, but when I move between screen sizes it gets messed up, because it needs to scale. Can I place my items into some kind of scroll layout? Jan 01 18:15:45 what layout buckets are you using? Jan 01 18:16:44 Just TextViews and one editview Jan 01 18:17:02 wrapping it in a ScrollView will add scroll Jan 01 18:17:05 Oh wait, the scrollview actually works Jan 01 18:17:09 Thanks Jan 01 18:22:11 hello guys, i was trying this https://developers.google.com/maps/documentation/android-api/utility/geojson, it says , use this : GeoJsonLayer layer = new GeoJsonLayer(getMap(), geoJsonData); , what should that geoJsonData ? i want to use places api but what is url ? Jan 01 18:25:16 how do i make an imageview an image smaller? Jan 01 18:25:43 smaller image or override width/height? Jan 01 18:27:01 smaller image Jan 01 18:30:35 make the png smaller or decode it smaller Jan 01 18:39:27 my android studio is stuck. i can't select components and the component tree is empty Jan 01 18:40:45 oh nm its back again Jan 01 18:56:04 in a scrollview I have LinearLayout and weighted items. How do I make one item larger because if I weight it more it stays the same Jan 01 18:56:40 scrollview only allows one child Jan 01 18:57:19 which is linearlayout ~ Jan 01 18:57:34 do you use a bluetooth headset? Jan 01 18:57:57 my galaxy s5 comes with headphones that have a mic, I use them all the time Jan 01 18:58:09 more weight should make the items in it bigger. if you apply the weight correctly Jan 01 18:58:25 but the cord makes noise when I move around Jan 01 19:00:10 When I press on an editable EditText that I am meant to be able to type into, no keyboard comes up to type in... what is with that? Jan 01 19:01:00 emulators use hardware keyboard by default Jan 01 19:04:56 how can i tell how wide a font character is? Jan 01 19:05:18 i can see how to determine its height, i set that! Jan 01 19:05:29 how can i tell how WIDE one character is (mono spaced font) Jan 01 19:10:29 RustyShackleford, then use a bluetooth headset Jan 01 19:10:47 for talking, I use a headset, for music, corded phones Jan 01 19:10:57 for exercise, bluetooth headphones Jan 01 19:11:21 you use phone for exercise :? Jan 01 19:11:52 * g00s never listened to music running, need to hear those rattlesnakes ! Jan 01 19:11:54 sure, run tracker, or just music in general if lifting Jan 01 19:16:55 I have several sections that prev and next buttons cycle through. The text is shown in a TextView inside a ScrollView. When I tap next, it always scrolls to the top of the next section. But the back button never scrolls. They both are using the same method. Jan 01 19:17:27 EDIT: back scrolls if you are not all the way at the bottom. Jan 01 19:21:31 scroll manually Jan 01 19:49:00 how do we use GeoJsonLayer layer = new GeoJsonLayer(getMap(), geoJsonData); ? what is geoJsonData there ? Jan 01 19:53:02 dcz: Look at the source (Ctrl+click or middle-click the constructor reference) or look at the documentation. Jan 01 19:54:03 how can i use my places api ? what should be that url to get sources ? Jan 01 19:54:32 i just want to show a map with hotels markers , thats all Jan 01 19:54:46 not a search bar or info of a marker Jan 01 20:02:45 I have a cheap Android tablet (an Insigna Flex). My computer (Windows 8.1) recognizes it, and I can send files to it just fine, but adb doesn't. How can I resolve this? Jan 01 20:03:09 Enable USB debugging? Jan 01 20:03:15 Mavrik: It is enabled Jan 01 20:03:52 replug and connect as MTP (PTP?) Jan 01 20:03:52 Hrmf, Windows can be kinda crap sometimes when it comes to ADB drivers... try toggling PTP/MTP/Charge only mode and see if device manager gives you yellow marks. Jan 01 20:04:17 also adb driver for windows Jan 01 20:04:23 BlueProtoman, install the adb drivers Jan 01 20:04:30 pfn: Where can I get them? Jan 01 20:04:42 google.com has a reference to them Jan 01 20:04:44 from your device vendor Jan 01 20:05:22 danijoo_: You mean that table with links to Samsung, Toshiba, etc.? Jan 01 20:05:56 http://developer.android.com/tools/extras/oem-usb.html#Drivers Insignia isn't on here. Jan 01 20:07:44 BlueProtoman: omg first link in google http://adbdriver.com/ Jan 01 20:08:27 Ashiren: I thought you were referring to the link I just posted? Jan 01 20:09:50 is this your first link in google :? Jan 01 20:10:06 Ashiren: Not my first link, and newbies shouldn't just assume sites like that are legit. Jan 01 20:10:42 My links are suggesting installing the Google USB Driver (which can be gotten via the SDK manager). I'd probably try that, personally. Jan 01 20:10:47 Ashiren: Yes, it *is* the first link, but as TacticalJoke mentions, I'm skeptical of the site's legitimacy. Jan 01 20:10:56 TacticalJoke: I did install that, but my device is not being recognized. Jan 01 20:12:08 it is legit i say that. what else do you need than stranger approval? Jan 01 20:12:42 Ashiren: Thanks, your approval means a lot to me. Jan 01 20:14:11 BlueProtoman: Did you try 'Settings > Storage > ... (menu) > USB computer connection > Enable MTP'? Jan 01 20:14:15 Someone is suggesting that fixed it for them. Jan 01 20:15:26 TacticalJoke: No, but I *did* select "MTP" when connecting. I'll have a look. Jan 01 20:18:40 TacticalJoke: Yep, did it, nothing changes. Jan 01 20:32:48 you have to install the adb driver for your device on windowsal Jan 01 20:32:51 windows Jan 01 20:33:03 any other suggestion is absolutely wrong Jan 01 20:34:59 pfn: I can't *find* the driver. My tablet is an Insignia. Jan 01 20:35:10 But it's not on that table. Jan 01 20:35:47 google for insignia adb driver Jan 01 20:35:57 like I said, from your device vendor Jan 01 20:39:37 pfn: No dice. Jan 01 20:45:06 greetings and happy new year! Jan 01 20:46:51 happy new year to you Jan 01 20:47:22 srsly wish they would hurry up and release as 2.0 Jan 01 20:47:24 I have a question for the experienced: is it a bad practice on Android to create a SQL database that uses lots of relations? e.g. Instead of row="id, name, profession, favorite_food", having three tables: "id, name", "id, profession", "id, favorite_food" and linking them in another table: row="id, id_name, id_profession, id_favorite_food"? Jan 01 20:47:52 my debug sessions are "click debug... wait 5 minutes for it to compile and load into the emulator, wait another 2 minutes for it to run" .. . . Jan 01 20:48:24 trying to draw a line between data that are composed together and data that are pre-composed Jan 01 20:48:40 hesperaux if you are asking about normalization, i dont think it has anything to do with android. its more about convenience and replication Jan 01 20:48:56 anybody here worked on google maps ? Jan 01 20:49:54 g00s, hi! I'm not familiar with the term "normalization." But the reason I was asking is whether there is a performance problem doing lots of table joins, or separate lookups in software. Namely, a performance hit that prevents justifying the convenience of isolated datums. Jan 01 20:51:14 hesperaux sqlite has a query analyzer, you can measure the alternatives yourself Jan 01 20:51:16 right now I've got a table with some columns that are IDs that point to other data objects. Other columns just contain the data itself. Not sure when to do one or the other Jan 01 20:51:44 impossible to say which of your alternatives will be better at this point, depends on indexing, worload, etc Jan 01 20:51:52 g00s, I guess that's the only answer that makes sense... however it would require I write some code just to run that kind of test, right? Jan 01 20:52:06 no you can use the sqlite3 command line Jan 01 20:52:11 hmm Jan 01 20:52:20 you'll have to populate the db to have a typical amount of data Jan 01 20:52:53 as of yet that has never happened, but I could venture a guess I suppose (regarding "typical" amount of data) Jan 01 20:53:51 I'm in the middle of a big refactoring so I'm torn on whether to stop and side track again Jan 01 20:53:54 well, even if there isn't a lot of data the query planner should still give insights Jan 01 20:54:18 g00s, ok I think I'll take a look at that Jan 01 20:54:29 hesperaux don't forget about #sqlite Jan 01 20:54:44 ah, indeed Jan 01 20:55:26 ot, one thing i've noticed about HN - any article mentioning something negaitive of tesla gets banned Jan 01 20:55:37 or deleted, hidden, whatever Jan 01 20:56:01 don't really find that interesting in itself, just a reminder all these websites are feeding shit through a filter Jan 01 20:57:03 some day, I'm tempted to write an auto adb driver app Jan 01 20:57:13 so I don't have to edit the inf manually Jan 01 21:15:14 it it safe to TimerTask.cansel inside the timer task itself? Jan 01 21:19:02 http://pastebin.com/veaLLCy1 - how do i get this TextView centered in the middle? Jan 01 21:20:33 aindriu google android:gravity and android:layout_gravity Jan 01 21:20:40 ok thanks Jan 01 21:20:40 and read the docs ;) Jan 01 21:35:50 how can i show just a map only with markers only shows restaurants in a city ? Jan 01 21:38:02 how can i show just a map only with markers only shows restaurants in a city by using Uri gmmIntentUri = Uri.parse("geo:37.7749,-122.4194?q=restaurants"); ? Jan 01 21:41:12 Is it possible to have the user edit a selection on a spinner? I have a list of options and want to add an "other" item where the user inserts something that isn't listed in the spinner. Jan 01 21:42:03 have you tried making one item of the spinner an edittext? Jan 01 21:42:57 danijoo_, No, I didn't even think about that, is that possible? Jan 01 21:43:38 I guess it should .. Jan 01 21:44:14 no idea if the focus will work Jan 01 21:44:17 but if should Jan 01 22:23:21 I think the next time I write an app that has to interface with a json service, I might just go back to using org.json Jan 01 22:23:57 i had such a terrible time with one service where they kept breaking their feeds and would always affect users in production negatively Jan 01 22:24:25 it would have been much more defensive if I used org.json instead of gson parsing directly to model objects Jan 01 22:29:54 pfn: madness. maybe it is worst just wrap gson parsing in try-catch. you don't know how model will be affected on server next time after all Jan 01 22:30:34 that still results in negative impact Jan 01 22:30:45 unless you go through and can data for failures Jan 01 22:31:12 org.json do not solve this problem still Jan 01 22:32:09 best way I can see is to have middle man Jan 01 22:34:28 Hi. Do you use Java or Kotlin for your apps? Jan 01 22:35:08 who you asking ? ) Jan 01 22:35:21 People who write Android apps :) Jan 01 22:35:58 only kotlin for now Jan 01 22:36:00 Ah, I guess I should change my question to "Do you use Java, Kotlin or something else for your apps?". Jan 01 22:36:06 fwtw Jan 01 22:36:23 why? Jan 01 22:36:31 << kotlin Jan 01 22:37:42 Just curious. I switched to 100% Kotlin and see it as having no downsides, but I wanted to conduct a reality check. E.g. if half of you avoided Kotlin it might mean that I overlooked something. Jan 01 22:37:50 I think the big majority uses java Jan 01 22:38:02 followed by scala and kotlin Jan 01 22:38:27 has anyone used crystax before? i'm looking to port a c++14 app Jan 01 22:38:28 Scala? I thought its 40k method library made it difficult to use on Android? Jan 01 22:38:33 *standard library Jan 01 22:38:51 you can proguard it down to not-so-much Jan 01 22:38:55 guys, http://stackoverflow.com/questions/34560662/google-maps-with-only-markers-for-restaurants Jan 01 22:38:56 Yeah, I guess the majority out there uses Java, but I'm curious about the people in this channel. Jan 01 22:39:03 and multidex isnt a problem these days too Jan 01 22:39:12 Yeah, but compiling with proguard takes time which makes developing less convenient. Jan 01 22:39:31 you can proguard only in production and use fast multidex in dev Jan 01 22:39:48 Ah, haven't tried that combination yet. Jan 01 22:40:23 but you are right. in general kotlin will add less methods to your apk Jan 01 22:40:46 Another thing, what are the implications of Google's move to OpenJDK? Does this mean Java byte code instead of dex? Java 8 for everyone? Or only for devices running Android 6 or newer? Jan 01 22:41:09 this will mean nothing for devs Jan 01 22:41:17 no change at all for now Jan 01 22:41:43 N will be shipped with openJDK but this doesnt change anything for the dev api Jan 01 22:42:16 and no java8 for you Jan 01 22:42:29 Why no java 8? Jan 01 22:42:31 the problem with java 8 is still fragmentation Jan 01 22:43:02 it requires VM changes which means that your java 8 features wont work on older phones Jan 01 22:43:23 am I missing something? I thought java7 is max forever Jan 01 22:44:26 Ah, so Java 8 will only work on N and newer? Bummer. Guess I'll have to convince management to switch to Kotlin then. Jan 01 22:44:29 if they would migrate to 8, your apps compiled for 8 wouldnt work on 7 Jan 01 22:44:40 ah. anyway, kotlin generates java6 compatible bytecode Jan 01 22:44:40 unless they come up with some magic Jan 01 22:45:07 But afaik theres no intent to move to java 8 in the next time Jan 01 22:45:08 please no more magic Jan 01 22:46:13 Kotlin it is then. Jan 01 22:48:46 RedNifre: there is useful doc from Jake Wharton about kotlin Jan 01 22:49:27 if you still not feel like buying) Jan 01 22:49:44 Oh, I'm sold and I read Jake's doc. Jan 01 22:50:27 I'm using Kotlin for all my private Android projects, I was just wondering whether Google's switch to OpenJDK meant that Kotlin got some competition (looks like it doesn't). Jan 01 22:51:46 Hey, do you people use Kotlin in the office? Or only for private projects? Jan 01 22:51:49 RedNifre: another nice thing is REPL Jan 01 22:52:05 maybe I'll switch from python to kotlin for scripting Jan 01 22:52:48 i have a question here like described, http://stackoverflow.com/questions/34560662/google-maps-with-only-markers-for-restaurants-in-android Jan 01 22:53:38 dcz_, you cant. show it in your own app if you want to customize the view Jan 01 22:54:05 how ? Jan 01 22:54:20 read the docs on the maps api Jan 01 22:54:41 where is information on docs ? Jan 01 22:54:49 RedNifre: fwtw I'm using it from m14-1beta. so not so much code written. but at least one project on kotlin at work. next one just starting and I'm also sticking with kotlin Jan 01 22:55:54 dcz_, i wont search it for you. thats your job Jan 01 22:56:08 what do you do then ? :D Jan 01 22:56:20 I pointed you to the solution. Jan 01 22:56:26 No hand feeding in here. Jan 01 22:57:25 if i cant find it, then you could try that, but you just acting like go figure it out yourself, i already couldnt , so thats why i am asking here :D Jan 01 22:57:29 its funny Jan 01 23:00:01 danijoo_: you cant disable the search bar? Jan 01 23:00:20 geri, why should you be able to do? Jan 01 23:00:29 idk Jan 01 23:00:39 you just fired an intent to maps app Jan 01 23:00:46 me? Jan 01 23:00:47 why wopuld they let him disable the search bar in their app Jan 01 23:00:50 he Jan 01 23:01:19 i guess he just wants to query to receive data and display markers Jan 01 23:01:47 and the example he found kinda does it like that Jan 01 23:01:48 what he wants is to show a map in his own app instead of opening another one Jan 01 23:02:27 cant he query the restaurant geo information? Jan 01 23:02:33 and create the markers manually? Jan 01 23:02:47 in his own app yes Jan 01 23:02:57 which own app? Jan 01 23:03:08 i remember doing this from google maps on javascript Jan 01 23:03:19 using Jan 01 23:04:52 all he needs to do is creating a map in his own app and showing the markers there. then he has full control of how it looks Jan 01 23:08:01 Last time I used google maps in an app you had to register for an API token somewhere. Jan 01 23:09:24 danijoo_: what do you mean by his own app? Jan 01 23:09:57 geri, this is for an app developing channel isnt it ;) Jan 01 23:09:57 is he not doing that? :D Jan 01 23:10:23 :D Jan 01 23:10:25 is he not doing that? Jan 01 23:10:26 I dont understand your question then Jan 01 23:10:44 i guess he currently creates his own app or not? Jan 01 23:10:58 i guess so Jan 01 23:11:15 and I said, display the map in that app instad of opening another one to show a map Jan 01 23:11:46 he used Intent to do that Jan 01 23:11:54 which seems wrong... is that what you mean? Jan 01 23:26:24 danijoo_: which seems wrong... is that what you mean? Jan 01 23:26:29 he used Intent to do that Jan 01 23:26:51 I mean what I said Jan 01 23:27:01 He should show the map in his app, not open another. Jan 01 23:27:13 whats unclear with that? Jan 01 23:29:37 what do you mean ? Jan 01 23:32:12 dcz_ they say that you can't launch Google Maps and have it look the way you want. They say that you can use a Google Maps view in your own app and configure it to look the way you want. Jan 01 23:32:16 I wont say the same thing a 4th time. Jan 01 23:32:23 danijoo_: you talk in puzzles Jan 01 23:33:22 how do we configure view then ? Jan 01 23:35:04 it might be called "android google maps api" Jan 01 23:35:20 If you cant read the google maps api docs, developing might not be the right thing for you. Jan 01 23:36:18 nice bullshitting :D Jan 01 23:36:31 you could also use openstreetmap instead, that one won't require you to register an api token (probably). Not sure how it compares to google maps though, haven't used it in an app yet. Jan 01 23:37:54 speaking of bullshit, if I put a gradient drawable that fades from blue to transparent as the background of a view that sits in front of a white background, why does the fade go from blue to grey? Where is this grey coming from? Jan 01 23:38:20 i didnt say that to you RedNifre Jan 01 23:39:14 not sure but maybe blue + white = gray? :S Jan 01 23:39:47 sounds wrong Jan 01 23:47:20 Nah, it works when I use it in other views. Jan 01 23:47:51 Luckily I can just change it to fade from blue to white since it will only be used in front of white backgrounds anyways. Jan 02 00:38:01 does anyone know of a self hosted metric platform that we could create user accounts and limit what data they see? Jan 02 00:44:40 not sure if this is what you want but parse.com? Jan 02 00:47:22 danijoo_ : thanks, but parse it too limited in the analytics part of what it offers Jan 02 00:51:54 combine it with analytics :) Jan 02 01:00:31 sup with my nerd fanatics? Jan 02 01:02:53 anyone competent with chromium embedded framework? Jan 02 01:24:41 http://stackoverflow.com/questions/34560662/google-maps-with-only-markers-for-restaurants-in-android hi here is my question.can anyone help me please Jan 02 01:25:24 ok so now i have a totally screwed up app because there are things i need to happen in onResume but they MUST happen after a specific views onMeasure Jan 02 01:25:43 which does not happen till after onResume returns Jan 02 01:26:58 how do you guys resolve that sort of thing? Jan 02 01:27:15 fix the design :p Jan 02 01:27:31 yea thats what im trying to do Jan 02 01:27:49 Call them in the resolution of the onMeasure? Jan 02 01:27:51 every solution i can think of makes the entiere app 100 times more complificated and then doesnt work Jan 02 01:28:03 yea thought of that Jan 02 01:28:23 but thats tying application specific code to a library function Jan 02 01:32:08 why noone is helping me ?? Jan 02 01:34:00 milkshake: You are actually launching Google Maps, right? Jan 02 01:34:01 because you dont do your homework Jan 02 01:34:20 what ? this is not homework Jan 02 01:35:05 yes BobChao87 Jan 02 01:35:42 So you can't "turn off" the bar and panels, but you might be able to hide them by default. Jan 02 01:36:25 thats what I told him hours ago.. Jan 02 01:36:39 But he refuses to read the maps api docs :p Jan 02 01:38:49 BobChao87 how can hide ? Jan 02 01:39:22 danijoo_ i am new. so i need help Jan 02 01:39:25 Not sure. It'd be part of the intent declaration options. Jan 02 01:39:39 BobChao87, you cant hide it with intent options Jan 02 01:39:53 he needs to host his own map view in his own app Jan 02 01:40:43 milkshake, https://developers.google.com/places/android-api/signup?hl=en Jan 02 01:40:51 Ah, thanks, danijoo_. Yeah, I wasn't sure, but I knew it'd be there if it existed. I've not tried anything overly fancy with Maps before. Jan 02 01:42:28 milkshake, begin with this link and read through the developer's guide section Jan 02 01:42:40 after that you have the skills to do what you want Jan 02 01:43:06 this channel is not for building the code for you. Jan 02 01:43:24 danijoo_ i did that. how to create a custom map which only shows markers of restaurants ? Jan 02 01:44:25 you didnt do anything from that guidelines in the code you showed on SO Jan 02 01:46:28 danijoo_ what should i supposed to do ? Jan 02 01:46:50 implement your own map view and put the markers on it Jan 02 01:46:57 at the geolocation of your interest Jan 02 01:48:06 You may also find https://developers.google.com/android/reference/com/google/android/gms/maps/MapView useful, milkshake. Jan 02 01:48:46 how do we do that , thats the fucking problem ? :D Jan 02 01:48:53 ty BobChao87 Jan 02 01:49:23 meh I give up. gn8 everyone Jan 02 01:49:31 Night Jan 02 01:53:23 mark4, view tree observer Jan 02 01:53:34 mark4, use it and a promise or rx Jan 02 01:54:23 pfn? Jan 02 01:54:44 i think i solved my problem, not 100% yet tho Jan 02 01:54:54 hmm, jdeferred.org supports android, that's convenient Jan 02 01:54:56 but whats a view tree observer? Jan 02 01:56:31 sounds kinda shitty, jdeferred.org... Jan 02 01:56:42 thought I could retire my future lib Jan 02 01:56:48 mark4, read it and learn Jan 02 02:10:31 yo nerds Jan 02 02:15:10 pfn yea that listener would do it too, probably better than the way im doing it now! Jan 02 02:15:21 how the hell do you find these things in the first place lol Jan 02 02:20:02 read the api doc Jan 02 02:21:05 most of what i read in there would go way over my head. i would never recognize this as something i would find useful Jan 02 02:21:37 till you suggested it in context with my problem i would never have connected them or see a use for this Jan 02 02:25:16 it gets better with practice Jan 02 02:34:25 with experience :) Jan 02 02:37:14 how do you find the width of the characters you are writing to a textview? Jan 02 02:37:34 i know the height because i set it but how do i find out the width of the characters? Jan 02 02:37:40 it is a fixed width font Jan 02 02:40:29 textView.getPaint().measureText or similar Jan 02 02:42:00 there is no getPaint() on textView ? Jan 02 02:43:46 hmm Jan 02 02:44:03 http://developer.android.com/reference/android/widget/TextView.html#getPaint() Jan 02 02:44:18 Since API 1 @mark4 Jan 02 02:44:28 ~ Jan 02 02:44:49 BobChao87, i was going by intellij, forgot my view is a customview i had to cast to a textview Jan 02 02:45:09 That would do it. Jan 02 02:45:20 :) **** ENDING LOGGING AT Sat Jan 02 02:59:59 2016