**** BEGIN LOGGING AT Sat Nov 23 02:59:59 2013 Nov 23 03:01:51 <^cheeky> hi, how would i be able to have a list, and each row in the list to have a horizontalscroll view displaying different images. my implementation as of now is using a listview and and for its list item layout i have a horizontalscroll view and my custom image view nested in it, but when i run it, i only get one image for each row. could anyone please point me in the right direction on how to acheive this Nov 23 03:02:56 <^cheeky> i am thinking i would need to use two adapter or something along those lines ? Nov 23 03:17:31 Hi I'm having trouble running robotic tests with intellij. I get this error: http://pastebin.com/qUsz3PU0 Nov 23 03:19:59 Cant; have the getSize() call at all if the min target is set below API 13, so I can't use the if statement - what's the deal with that? Nov 23 03:21:18 can I just use suppressLint? Nov 23 03:33:06 I hate java so much sometimes Nov 23 03:33:25 Hello, I overrided LONG_PRESS_SEARCH with an intent filter and set catagory to default to launch my app, but it doesn't show up when the physical search button is long pressed. Anyone have a clue as to why? Nov 23 03:33:38 for example, why does it have to be so difficult to convert a char[] into a List ? Nov 23 03:37:21 lasserix: SEARCH_LONG_PRESS, not LONG_PRESS_SEARCH Nov 23 03:40:13 yeah Nov 23 03:40:19 sorry just tired, that is what it is set as Nov 23 03:41:27 what is the replacement for deprecated SCREEN_BRIGHT_WAKE_LOCK, for a service? Nov 23 03:55:00 hello. I have a small problem that I am hoping should be easy for someone here to help me fix :) Nov 23 03:55:10 I am following the novice tutorials on android dev on the official site and have gotten this far: http://developer.android.com/training/basics/actionbar/adding-buttons.html Nov 23 03:55:18 Unfortunately my search icon is not showing up in the action bar when i test it. Nov 23 03:55:33 Im not sure why it is missing, but am trying to sort it out Nov 23 03:55:33 Please see here for more details http://i.imgur.com/dDQGZGp.png Nov 23 03:59:35 zzxx: weird. it should be showing as an icon Nov 23 03:59:57 yeah, im not sure what is happening Nov 23 04:00:18 my onCreateOptionsMenu impl is a little different, i call the super's method before inflating my menu Nov 23 04:00:19 im new to android dev too, so im not too sure how to troubleshoot it wither Nov 23 04:00:37 <^cheeky> zzxx: is this inside a fragment or activity Nov 23 04:00:47 <^cheeky> istead of returning the super function Nov 23 04:01:01 <^cheeky> just return true and check if that would work ? Nov 23 04:01:58 <^cheeky> inside oncreateoptionMenu Nov 23 04:02:00 <^cheeky> return true Nov 23 04:02:48 just returning true did not help Nov 23 04:03:13 it is a fragment for the activity, but not the menu... if that makes sense. Nov 23 04:03:30 oh, this is inside a fragment? Nov 23 04:04:17 try doing it in an activity Nov 23 04:04:33 well im still trying to understand it, and the project wizard inside android dev studio added a fragment, which was different from the tutorial, but if i tried to remove the fragment, and jsut use an activity i get a build error that I dont know how to fix Nov 23 04:04:59 you can stick oncreateoptionsmenu inside the activity Nov 23 04:05:01 keep the fragment Nov 23 04:07:34 actually i think it is in the activity. There is a fragment, but the oncreateonptionsmenu is in the activity. Full code here: http://ideone.com/FVnpbd Nov 23 04:08:47 I'm having trouble with onCreateOptionsMenu not being called 'quick' enough, i have a worker thread that when finished updates a menu item icon and it's finishing before the menu is being created, thus menu is null Nov 23 04:09:35 zzxx: you're using ActionBarActivity, which is part of the v7 support library. here's the solution to your problem: http://stackoverflow.com/questions/18099221/action-bar-not-showing-action-view-icons Nov 23 04:10:21 Thanks. I'll read that. is that because my min supported version is api 7? if I went up to 11 (android 3.x) would it dissapear? Nov 23 04:10:25 I'm using actionbarcompat also Nov 23 04:10:40 or should i just read whatoyu posted instead of jumping to conclusions? :P Nov 23 04:11:01 zzxx: it's because you're using the support library. if you were using a regular Activity you wouldn't have this issue Nov 23 04:11:53 seand: ok yes, thanks. reading the solution now. Nov 23 04:12:13 porten_: why don't you have the worker thread update a variable which, if true, will automatically set the new icon when the menu is created Nov 23 04:13:49 seand: yes that's a good idea Nov 23 04:15:31 seand: I'm somewhat disturbed by the issue though, sometimes it works, sometimes it doesn't, it's some sort of race condition Nov 23 04:17:18 porten_: if you also set a variable then the race condition disappears, doesn't it? Nov 23 04:18:20 seand: yep Nov 23 04:24:10 is there a trick to getting Log and Logcat to work? Nov 23 04:24:14 im not seeing anything im logging at all Nov 23 04:26:39 how do I manually upgrade nexus 4 to kikkat with adb ? Nov 23 04:26:42 four33: do you see any output in adb? Nov 23 04:26:48 sorry, it's totally working now Nov 23 04:27:00 I just had to close and open it for some reason Nov 23 04:27:00 thanks Nov 23 04:28:25 porten_: that's the thing about threads, you don't know how long it might take for one to execute Nov 23 04:29:12 and that's why you always leave a note Nov 23 04:29:21 dragorn: yea, it's adding a bit more complexity, not anything out of control but it's muddying up the code :( Nov 23 04:30:07 i was thinking about going hardcore and putting a while(menu == null); Nov 23 04:30:26 porten_ it's not muddying up the code... it's a pattern Nov 23 04:31:54 porten_: yeah don't do that. set a variable. Nov 23 04:32:09 porten_: that would cause it to sit and consumer as much battery power as possible, indefinitely. Nov 23 04:32:20 s/consumer/consume/ Nov 23 04:34:44 dragorn: yea i know, i was just messing around Nov 23 04:35:26 a bad joke Nov 23 04:38:04 seand: thanks for the tips and i'll keep that in mind in the future Nov 23 04:39:01 np Nov 23 05:07:45 axisys: if you typed exactly what you have written there (typo and all) into google, the first search result will walk you through how to do it. Nov 23 05:18:05 greeting all: I am trying to work on a udp thread server .. the client works fine.. I can send msgs.. but the responses arnt showing up.. any help is appreciated... been googling my brains out! Nov 23 05:18:05 http://pastebin.com/XzPHm02f Nov 23 05:19:13 blah Nov 23 05:19:25 I have a super duper simple fragment layout: http://pastebin.com/HbE4Zqds Nov 23 05:19:31 but when I bring it up as a DialogFragment Nov 23 05:19:34 it is basically zero size Nov 23 05:19:41 and I can't figure out how to enlarge it Nov 23 05:19:51 any ideas? Nov 23 05:22:37 okay, part of the problem is that getActivity().getWindow().getAttributes().width is -1 Nov 23 05:22:38 wtf? Nov 23 05:23:38 android:layout_width="100dp" android:layout_height="100dp" ? Nov 23 05:23:46 -1 is match_parent Nov 23 05:23:47 lol im super noob, so that's likely not the issue Nov 23 05:24:08 wrap_content may work best Nov 23 05:24:19 kevinb: what would the parent of the window be, though Nov 23 05:24:23 I want the screen size Nov 23 05:24:31 zzxx: but… the content is a webview Nov 23 05:24:36 does that even have a size? Nov 23 05:25:04 not sure how match parent works for dialogs, might just interpret it as wrap content Nov 23 05:25:23 when I set the LinearLayout to wrap_content it is the same Nov 23 05:25:24 durka42: sorry, im not even sure. like i say i am super noob. Nov 23 05:25:29 no problem Nov 23 05:25:43 to get the available screen size at runtime you can use Resources.getDisplayMetrics Nov 23 05:25:44 it looks like the fragment has some sort of title bar Nov 23 05:25:47 but then the webview is zero height Nov 23 05:25:52 kevinb: I tried that too Nov 23 05:25:54 will try it again Nov 23 05:26:11 you could set a minwidth/minheight for the webview (or the dialog directly) Nov 23 05:26:33 can I do that as a percentage? Nov 23 05:26:37 no Nov 23 05:27:54 well anyway… this http://pastebin.com/ej2b0J1S does not do anything Nov 23 05:27:59 I stuck that in onCreateView Nov 23 05:29:25 no udp guidance out there? Nov 23 05:29:35 wtf why is this so difficult Nov 23 05:34:47 how low do you guys worry about supporting as far as api's go? is there anywhere you can get data on what share of devices are running what version of android? Nov 23 05:35:22 http://developer.android.com/about/dashboards/index.html Nov 23 05:36:03 API 15+ will cover a lot, and is notably easier to develop for compared to 10+ (or 8+ or whatever) Nov 23 05:36:18 kevinb: thanks that's great. Why is 2.3 so high? Nov 23 05:36:43 3.0 was tablet only, so phones either jumped from 2.3 to 4.0 or didn't make the cut and got stuck on 2.3 Nov 23 05:36:52 so apparently WebView completely disregards any sort of width/height properties? Nov 23 05:37:10 any kind of minHeight, minWidth, layout_width etc seem to have no effect at all Nov 23 05:37:35 durka42: does wrapping your webview in a frame layout (that isn't wrap content) work? Nov 23 05:38:10 let's see Nov 23 05:38:15 s/LinearLayout/FrameLayout Nov 23 05:39:04 aha Nov 23 05:39:10 the FrameLayout listens to those properties Nov 23 05:39:50 TIL, if you use Android Studio in power save mode, you may as well use vim ;) Nov 23 05:40:39 android studio has a power save mode? like electricity power? for laptops?! Nov 23 05:40:58 yeah Nov 23 05:41:28 huh. interesting Nov 23 05:41:37 less cpu cycles I guess Nov 23 05:41:55 okay, I more or less got it to work using setMinimumHeight/Width on the FrameLayout Nov 23 05:42:02 now just need to get rid of the DialogFragment title bar Nov 23 05:42:03 durka42: great! Nov 23 05:45:59 Hi, is it possible to make a view transparent? Nov 23 05:46:53 maven__: yes. Nov 23 05:46:59 maven__: hang on a second. Nov 23 05:47:35 I have googled, but almost all the answers are related to make a whole activity transparent without title which is not what I want Nov 23 05:47:48 maven__: http://kismetwireless.net/gitweb/?p=android-smarterwifi.git;a=tree;f=SmarterWifiManager/src/main;h=43b3c1668ae1777f0b1269f5b2d8ecfe91813d34;hb=HEAD ... look at activity_quickconfig in the xml and code Nov 23 05:48:03 ah. perhaps I don't understand then / that code isn't what you want Nov 23 05:48:08 Thank you, I will have a try. Nov 23 05:48:31 you can make a canvas transparent in a view as you draw it Nov 23 05:49:00 the view is a RelativeLayout viewgroup Nov 23 05:50:54 uh Nov 23 05:50:57 what the hell did I do Nov 23 05:51:14 suddenly the WebView refuses to load pages because   is an invalid entity Nov 23 05:51:18 it worked fine a few minutes ago... Nov 23 05:51:30 ...... Nov 23 05:51:37 It is a smarterwifi.. Nov 23 05:52:04 what? Nov 23 05:55:43 maven__: I'd expect a layout to be transparent when a view isn't obscuring it, but I don't know how it would work when condensed into a composite view Nov 23 05:55:45 I don't understand Nov 23 05:55:50 I was editing a totally different activity... Nov 23 05:57:41 dragorn, which view is transparent? Nov 23 05:58:15 maven__: in that code? quickconfig is a floating activity which appears on top of whatever the current activity is (including other applications); it's activated by the notification Nov 23 05:58:53 You mean this? http://kismetwireless.net/gitweb/?p=android-smarterwifi.git;a=blob;f=SmarterWifiManager/src/main/res/layout/activity_quickconfig.xml;h=3466775a81a93fd02902ece2bbd77b36614d99ac;hb=HEAD Nov 23 05:59:36 Do user defined styles not show in the intelliJ preview? Nov 23 06:06:17 How can I get more targets in the Virtual Device manager thinger? Nov 23 06:06:39 It's only showing 7, 15, and 17, despite me having installed my required APIs from the SDK manager Nov 23 06:08:35 four33: did you install the images for the other api's? Nov 23 06:08:55 yeah Nov 23 06:09:03 8, and 9 Nov 23 06:09:34 it's extremely annoying Nov 23 06:10:23 what os platform Nov 23 06:10:30 and what dev env Nov 23 06:12:07 OSX and Eclipse... Juno I think? Nov 23 06:12:32 but I guess that doesn't matter Nov 23 06:12:33 Eclipse! Nov 23 06:16:11 four33: did you install the OS images or just the SDK Nov 23 06:16:39 I installed "SDK Platform and Google APIs" in SDK Manager Nov 23 06:17:35 four33: make sure you installed the OS images for those api's that aren't showing Nov 23 06:18:16 Where can I do that? Nov 23 06:18:16 Anyone know how to get user/app defined styles to show in the intelliJ preview? Nov 23 06:18:22 four33: in the sdk manager Nov 23 06:18:34 four33: are you going through the "new device" thing or just expecting them to show up? Nov 23 06:18:59 im downloading and installing through the SDK manager Nov 23 06:19:31 but then you need to go to the AVD manager and add a new device Nov 23 06:19:33 take a screenshot of the api you installed that isn't working in your sdk manager and post a link here Nov 23 06:19:34 then there is a choice of sdks Nov 23 06:19:37 The onCreateDialog for activity is deprecated, which is the alternative? Nov 23 06:20:28 this is always the question, why don't they provide this in the deprecation warnings, or have a page with a list of them! Nov 23 06:20:43 http://i.imgur.com/bMbihlT.png Nov 23 06:21:29 uhh Nov 23 06:21:32 those are not installed Nov 23 06:21:36 since they say, Not Installed Nov 23 06:22:10 yes but they are currently installing Nov 23 06:22:28 and the ones I have installed are not showing in the target dropdown when I create a new device Nov 23 06:22:36 Hey anyone here to help me with a small problem with my android app? Nov 23 06:22:49 do you want me to show you a screenshot of them when it says "installed"? Nov 23 06:23:03 I believe you Nov 23 06:23:16 Demon_Jester: don't ask to ask, just ask Nov 23 06:23:19 maybe I need to restart... Nov 23 06:23:23 yeah maybe restart eclipse Nov 23 06:23:36 it's so unstable they have a helpful File->Restart menu item :p Nov 23 06:23:45 yeah :P Nov 23 06:24:19 I wonder what language they wrote eclipse in Nov 23 06:24:24 Ok guys, I have a personal app where it shows toast message whenever I copy something. But it only shows my previous copy and I have to shut down the app to show the current one, and even if I go copy something new it will still show the old copy. Nov 23 06:24:30 I would assume java but I could be wrong Nov 23 06:24:41 copy to clipboard* Nov 23 06:25:08 wikipedia says it's mostly written in java Nov 23 06:25:12 which could explain some things :p Nov 23 06:25:30 Demon_Jester: maybe post a code snippet? Nov 23 06:25:33 wow, I just restarted and im getting "Location of Android SDK was not set in preferences" Nov 23 06:25:42 I've never used the clipboard though Nov 23 06:25:43 I will is pastebin recommended or something else? Nov 23 06:25:45 four33: that could be an issue... Nov 23 06:25:52 I was JUST using it!! Nov 23 06:25:59 pastebin is fine Nov 23 06:26:37 yeah, well, I was JUST happily using my WebView until it decided to switch into xml super strict mode Nov 23 06:26:50 (I fixed it by switching the user agent a few times) Nov 23 06:27:22 ok here is the pastebin http://pastebin.com/e0bxPDSk Nov 23 06:29:25 Demon_Jester: my first impression is that you are setting those instance variables (lines 46-48) once when the ClipboardListener is constructed, when really you should be reloading them every time the onPrimaryClipChanged is called Nov 23 06:29:43 not 100% sure however Nov 23 06:30:17 this is fucked Nov 23 06:30:31 :( Nov 23 06:30:37 now Eclipse is crashing :(( Nov 23 06:31:04 how should I reload it cause I had to throw in a handler to keep my app from crashing. Nov 23 06:32:02 I would set the variables inside the handler run() then Nov 23 06:32:37 what did it crash with, incidentally? Nov 23 06:33:00 demon jester why are you startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ? Nov 23 06:33:24 also dont name things h it is totally useless name Nov 23 06:33:53 "Unable to read repository at jar:file:/Users/name/Downloads/cdt-master-8.0.2/content.jar!/content.xml" Nov 23 06:34:19 im guessing line ClipData.Item item = abc.getItemAt(0); is the problem because you grab it then do a post Nov 23 06:34:26 maybe there is incommunicatipn? Nov 23 06:36:21 OK so I think I found the problem: Nov 23 06:36:42 I needed to update the SDKs when I installed some API images Nov 23 06:37:12 but there's a bug in eclipse, in which you have to remove "http://dl-ssl.google.com/android/eclipse/ " from the available software sites" list and re-add it Nov 23 06:38:10 of course Nov 23 06:38:12 totally intuitive Nov 23 06:39:59 yaaay Nov 23 06:40:03 that did it Nov 23 06:40:21 I am 20 minutes closer to the grave. Nov 23 07:03:12 boosh Nov 23 07:03:15 fixed all the bugs Nov 23 07:03:24 achievement unlocked Nov 23 07:03:37 first app - android is a pain! Nov 23 07:03:55 yeah it is but it's fun though Nov 23 07:04:02 yeah for sure Nov 23 07:04:09 thanks for the help Nov 23 07:04:24 got any good app ideas? :P Nov 23 07:04:43 not sure I helped much :) Nov 23 07:04:46 password manager? Nov 23 07:04:51 I guess there might be a bunch of those already Nov 23 07:05:32 is it alright to suppress lint warnings? my app won't compile otherwise... Nov 23 07:06:17 first of all, that must be a setting somewhere, I never had a problem compiling even though there are warnings Nov 23 07:06:28 usually the warning is telling you something useful though Nov 23 07:06:39 if you understand the warning and why it doesn't apply to your case, you can suppress it Nov 23 07:06:44 OK, cool Nov 23 07:06:56 but if you don't understand why that particular code is causing a warning, that's a bad sign :) Nov 23 07:07:07 yeah it's just the "new api" warning where im using getSize, but im checking for the API and calling getWidth/getHeight instead Nov 23 07:13:28 boo Nov 23 07:13:41 I want to use this photo as an icon but I am afraid of copyright BS :( Nov 23 07:14:15 would suggest make your own Nov 23 07:17:18 four33, minSdkVersion="14" :P Nov 23 07:17:20 or 15 Nov 23 07:17:34 ive totally punked images and soundfiles for my latest app Nov 23 07:18:15 if I set minSDKVersion to 14, i'll be missing a bunch of Android users! Nov 23 07:18:43 gingerbread users... :P Nov 23 07:19:03 gmail is 14, calendar is 15 Nov 23 07:19:05 both are awesome apps Nov 23 07:19:17 my own crappy app is 8. it's crappy Nov 23 07:19:21 notice a pattern? Nov 23 07:19:22 :P Nov 23 07:19:38 Yeah... Nov 23 07:19:59 big developers don't give a shit Nov 23 07:20:09 hehe Nov 23 07:20:15 ~_~ Nov 23 07:20:22 oh g00s go away Nov 23 07:20:26 usually i can count on you Nov 23 07:20:27 :D Nov 23 07:20:29 but in this case... Nov 23 07:20:30 :P Nov 23 07:20:44 but no, how are things? it's been a while Nov 23 07:20:44 but we... we are the makers of crappy apps! Nov 23 07:20:51 crappy apps for the masses! Nov 23 07:21:00 i want to say "s/we/you/" Nov 23 07:21:05 but i dont mean to singel you out Nov 23 07:21:06 haha Nov 23 07:21:19 i've only made one so far, it's fairly useless Nov 23 07:21:35 canadiancow oh just trying to make heads/tails out of a mess of callbacks atm Nov 23 07:21:37 all my lwp is 7 :P Nov 23 07:21:40 my first app was probably useless Nov 23 07:21:42 i dont even remember Nov 23 07:21:47 lwps dont need all that advanced stuff Nov 23 07:21:50 lwp? Nov 23 07:21:56 live wallpaper Nov 23 07:22:10 ah yes Nov 23 07:22:13 i did one of those once Nov 23 07:22:28 is it a dwp now ? Nov 23 07:22:37 anyone know why MediaPlayer might be cutting off sounds in 2.2? Nov 23 07:22:48 because 2.2 Nov 23 07:23:24 and even then, i got confused by the acronym "lwp" :P Nov 23 07:23:25 reason number 1 to do minSdkVersion="14"... Nov 23 07:23:29 hm, is 0.6.3 still the latest gradle plugin ... Nov 23 07:26:46 apparently :| i thought they would have bumped it for gradle 1.9 already Nov 23 07:28:00 canadiancow are you going to have a relaxing weekend ? :) Nov 23 07:36:24 i'm having one of those moments in AS where - i just restarted the IDE and hald the stuff has red squigglies since it didn't seem to grab a dependency; even though absolutely nothing changed. it seems to get really confused Nov 23 07:44:14 one of you guys put a curse on my AS project Nov 23 07:45:16 how trustworthy are these emulators? Nov 23 07:45:39 seemed to work ok for me, but then my pc can only emulate froyo Nov 23 07:46:17 i'm using genymotion emu, its pretty damn good Nov 23 07:46:33 im using the ones in eclipse that you can download Nov 23 07:46:38 in the SDK Nov 23 07:47:01 just wondering if I should trust, push my app to prod, and finally go to sleep Nov 23 07:50:39 hi Nov 23 07:51:13 should the code inside a tab being shown by SherlockFragment activity run Nov 23 07:51:36 night all Nov 23 07:51:40 thanks to those who helped Nov 23 07:51:52 mainly code is inside onCreater Nov 23 07:52:48 I mean, I am not even able to see any Log.d message Nov 23 07:57:12 ok, so there is no code of the class which executes Nov 23 07:57:23 what did I do wrong :-( Nov 23 07:59:52 ok, looks like I got my first hint Nov 23 08:00:16 g00s you prefer vim over nano? Nov 23 08:01:10 nano :| Nov 23 08:02:46 XXCoder1: just finished photoshopping my own icon :) Nov 23 08:03:52 oh cool just starting to use shell prompt to code and such Nov 23 08:03:56 so much easier! Nov 23 08:04:44 echo 'import foo.*" >> myproject.java Nov 23 08:04:52 lasserix: the most useful thing in a shell is Ctrl + R Nov 23 08:05:59 then you only need to type a small unique part of some complicated command that you have to keep typing, and it brings it up from history Nov 23 08:07:51 g00s: in my humble opinion, it would be a better option to have a traget in build.xml for creating new class Nov 23 08:08:14 *it would be a better option to have a ... Nov 23 08:09:35 shmooz: thanks! Nov 23 08:10:27 http://www.androidbegin.com/tutorial/implementing-listview-into-actionbarsherlock-fragment-tabs-tutorial/ and now I need to modify my fragmentactivity to adapt with respect to fragmenttabhost Nov 23 08:12:10 lasserix: and you can cycle through more previous matching instances by hitting Ctrl - R again , once it has found the first instance Nov 23 08:28:50 Yeah thank you, just learning this stuff (finally) and that kind of searching is the entire reason i finally am swtiching over Nov 23 08:41:00 and back to ab-initio Nov 23 08:41:16 no data in tabs :'( Nov 23 08:42:09 I'm trying to fiddle with some android jars in jython, but I'm not resolving some classes. Where does the SDK stick everything by default? (I'm on OSX if that helps) Nov 23 09:40:10 does java nio work on android? Nov 23 10:27:27 What minimum API level do you guys usually use? Nov 23 10:33:19 shvelo, take a look at platform destribution and decide accordingly Nov 23 10:33:33 it's kinda outdated Nov 23 11:01:21 Is it hard to develop for android without owning an android? Nov 23 11:02:58 datapolitical: no, but it's easier with a real device Nov 23 11:04:30 If I'm developing a smartphone app that's not graphics heavy but needs system access Nov 23 11:05:00 Is there a device constraint I should consider Nov 23 11:05:19 Or just buy any decent android running 2.4 Nov 23 11:05:42 System access = call log, address book Nov 23 12:10:25 damccull: you mean 4.2 probably Nov 23 12:10:44 oh sorry datapolitical is out already. hate that Nov 23 12:10:54 pfn: Are you there? Nov 23 12:22:04 Hey everyone Nov 23 12:22:51 Could someone help me with converting a currency from a string to a double? Nov 23 12:23:27 Atm I'm getting €1.000,00 Nov 23 12:23:36 which is 1 thousand euros Nov 23 12:24:24 but I don't know how to transfer that string to a double and remove the € and the '.' and then change the ',' to a '.' Nov 23 12:24:31 because then it would be 1000.00 Nov 23 12:24:40 and that's a double which would work Nov 23 12:24:59 can't you run a replace? Nov 23 12:25:40 str.replace("€","") and str.replace(".","") and str.replace(",",".") Nov 23 12:25:53 I'm not sure about the syntax Nov 23 12:28:38 marrrk: that would end in : 1.000.0 not good... markyosullivan: you may want to look a DecimalFormat.parse Nov 23 12:31:28 why is that not good? Nov 23 12:31:30 marrrk: I did try that first and thought it worked Nov 23 12:31:42 until I tried €1.000,00 Nov 23 12:31:55 because then the "." was in the wrong place Nov 23 12:32:05 "E1.000,00".replace("E","").replace(".","").replace(",",".").toDouble Nov 23 12:32:06 res6: Double = 1000.0 Nov 23 12:32:30 would it not replace the "." which replaces the ","? Nov 23 12:32:36 for christ sake Nov 23 12:33:01 marrrk: sry, you're right Nov 23 12:33:07 markyosullivan: write it on piece of paper and do step by step please Nov 23 12:33:41 I don't know how robust your solution needs to be. There are probably loads of libraries for this. Nov 23 12:33:57 marrrk: Nov 23 12:34:28 I need it to work for all different currency formats Nov 23 12:34:29 so some could be $1,000.00 Nov 23 12:34:43 I just want a format like this xxxx.xx Nov 23 12:35:34 Are you doing this in java? Nov 23 12:35:38 Yes Nov 23 12:36:13 Maybe try this: .substring(1).replace(".","").replace(",",".").toDouble() Nov 23 12:36:25 oh no I see Nov 23 12:36:55 Yeah problem when you use different currencies Nov 23 12:37:17 when you're working with the italian currency it's €1.000,00 Nov 23 12:37:18 Can you assume anything about the format? Nov 23 12:37:33 when you work with the spanish currency its 1.000,00 € Nov 23 12:37:53 Are there always two digits denoting the amount of cents? Nov 23 12:38:00 Usually yes Nov 23 12:38:21 Unless it's a currency which doesn't use cents, then I'm in bother lol Nov 23 12:38:58 Where are you getting this from in the first place? Nov 23 12:39:05 the string? Nov 23 12:39:29 Yes Nov 23 12:39:33 Wait Nov 23 12:39:54 maybe I could just create a get method from the other class Nov 23 12:40:20 then create a return method for this class, and it'll return the double which I use to create the string in the other class Nov 23 12:40:41 I really need to redo this app Nov 23 12:41:10 But it was my very first app, so I was sort of adjusting it as I went along Nov 23 12:44:34 Yep, that doesn't work lol Nov 23 13:16:12 Gee, don't use doubles for money. o_O Nov 23 13:16:23 marrrk. Nov 23 13:16:36 Me? Nov 23 13:16:39 He asked for doubles. Nov 23 13:17:25 Right. :< Nov 23 13:17:26 12:56:23 -!- markyosullivan [6d94157f@gateway/web/freenode/ip.109.148.21.127] has quit [Quit: Page closed] Nov 23 13:43:55 i have a very strange problem Nov 23 13:44:27 in my manifest i have declared one activity to be locked in portrait orientation Nov 23 13:45:21 when i start my app and i have my device in landscape mode the activity starts in portrait as it should but when i press the back button Nov 23 13:45:38 the activity is being recreated instead of being closed Nov 23 13:46:07 i have put some log messages and this strange situtation is being confirmed Nov 23 13:46:16 what do i do wrong? Nov 23 13:51:23 resu01, did the orientation change back to landscape? Nov 23 13:55:13 no it just recreates the activty in portrait mode Nov 23 13:56:08 i can see that the first activity is being destroyed and immediatly is being recreated Nov 23 13:56:41 hm, maybe try to handle orientation changes yourself Nov 23 13:56:45 if i strart the app in portrait mode then when i press back button the activity is being closed from the first time Nov 23 13:57:48 what does your actual manifest look like? for locking the orientation i mean. Nov 23 13:58:33 Nov 23 13:59:06 i have tested the setRequestOrientation in the onCreate Nov 23 13:59:11 but nothing changed Nov 23 14:01:02 the way the activity behaves from the logcat is the following: Nov 23 14:01:06 onCreate Nov 23 14:01:20 after that back button is pressed Nov 23 14:01:30 onCreate Nov 23 14:01:32 onStop Nov 23 14:01:42 onDestroy Nov 23 14:02:04 and when i press the backbutton again onStop and onDestroy are being called Nov 23 14:03:20 a splash screen calls this activity but i don't think that this has any impact on this behavior Nov 23 14:03:50 get rid of android:screenOrientation and give it a try for me Nov 23 14:04:29 burmat, ok wait for my results Nov 23 14:04:53 should i use setRequestOrientation Nov 23 14:05:01 or should i leave it to rotate Nov 23 14:05:31 no, that is probably why it is calling onCreate a second time. Just leave the android:configChanges for now and see what happens Nov 23 14:07:09 burmat, the activity started in landscape mode and the same behavior appeared Nov 23 14:07:19 i will remove configChanges Nov 23 14:07:38 i don't think it has to do with your method of locking to portrait then. sounds like you are calling the activity twice. Nov 23 14:09:08 you are right i have to check the splashscreen which calls this activity Nov 23 14:10:31 burmat, you found my problem. Nov 23 14:11:15 i set the splash screen orientation programmatically using setRequestOrientation Nov 23 14:11:35 yeah, that can be bad ju-ju sometimes. and you found it! : ) Nov 23 14:11:53 and when the device screen is large i set the orientation to landscape Nov 23 14:12:00 resu01: were you able to resolve your issue? Nov 23 14:13:07 EPG2, actually no because when i useSetRequestOrienation the splash screen is being recreated and that's why it calls the activity twice Nov 23 14:13:55 the solution to this is that i have to override onConfiChanges in order to do nothing and the activity will be called only once? Nov 23 14:14:05 sorry for my english Nov 23 14:14:31 resu01: that is actually wierd because i'm pretty sure that configChanges="orientation" is meant to *not* call onCreate on orientation changes. you may have to read the docs on that though.. Nov 23 14:15:16 i am using a thread to start the appropriate activity Nov 23 14:16:15 after setrequest orientation Nov 23 14:16:26 maybe that will cause the problem Nov 23 14:16:54 thanks for helping me to find the root of the problem Nov 23 14:18:50 one last question. The code after setRequestOrientation is being executed if the activity has to be recreated Nov 23 14:18:51 ? Nov 23 14:24:16 sorry if i am not clear on what my problem is. You will help me a lot if you can tell how can i create a splash screen which will be locked in portrait mode for devices < 5" and in landscape mode for other devices Nov 23 14:27:47 android:id="@+id/prev_button" Prev" <-- i've added these two in their respective XML file, but still i can't do "R.id.prev_button" wtf and why? Nov 23 14:32:10 would there be any reason to avoid having static reference to a SharedPreferences object? Nov 23 14:32:38 i'd like to allow it to be accessed easily without a Context Nov 23 14:33:22 android:id="@+id/prev_button" Prev" <-- i've added these two in their respective XML file, but still i can't do "R.id.prev_button" wtf and why? <-- nebkat do you know why? Nov 23 14:33:49 ovrflw0x: what does the string have to do with i t Nov 23 14:34:12 ok but what about @+id/prev_button Nov 23 14:34:36 i checked R.java but "prev_button" is not getting registered there Nov 23 14:34:57 hello! Nov 23 14:34:57 ovrflw0x: you have it set up incorrectly then Nov 23 14:35:09 error in some xml file most likely Nov 23 14:35:09 how & why? Nov 23 14:36:28 I need to make an app and im trying to decide what i should use to make it. It's an app that is just lists of information, but we want to make it graphic rich, with very nice UI. So multi touch interaction, and detail blocks that slide left or right. The other problem is that i need to make this for iOS very soon too, and I can't decide on a platform. I've very experienced with AS3 so adobe air seems good. what do you guys think? Nov 23 14:36:37 brx_: here's the xml http://ix.io/97E Nov 23 14:36:37 thing with adobe air is im not sure how well it will run on devices.. Nov 23 14:38:35 brx_: ? Nov 23 14:39:38 nebkat: ? Nov 23 14:40:13 ovrflw0x: i dont know Nov 23 14:41:08 k Nov 23 14:41:15 brx_: you there? Nov 23 14:41:40 are you in ec,ipse? Nov 23 14:41:45 yes Nov 23 14:41:47 cleam the project Nov 23 14:41:49 clean Nov 23 14:43:34 right click project->run_lint checkl for common errors Nov 23 14:43:49 see if you get any red crosses next to your xml files in the left side Nov 23 14:44:08 brx_: after cleaning R.java disappeared! Nov 23 14:44:14 how to get it back? Nov 23 14:44:40 once you remove all errors it will build again :) Nov 23 14:44:51 anyone.. Nov 23 14:45:00 brx_: i'm getting only "R" errors Nov 23 14:45:04 where did R.java go? Nov 23 14:53:49 R is generated from your resources.. If there are errors in your resources it will not be generated Nov 23 14:56:06 SimonVT: how to know if there's error in res? Nov 23 14:56:19 there're no red marks anywhere is res folder Nov 23 14:58:31 If R is not being generated then there are errors Nov 23 14:58:47 Or eclipse is just being eclipse Nov 23 14:58:55 Either way, check your latest changes Nov 23 14:59:15 SimonVT: what IDE do you use? Nov 23 15:00:19 AS Nov 23 15:00:26 android studio? Nov 23 15:00:40 it's still under development Nov 23 15:01:05 yes Nov 23 15:01:25 SimonVT: should i ditch this weird eclipse and go to AS? Nov 23 15:01:46 If you can figure out gradle, sure Nov 23 15:01:54 If not, you should probably wait Nov 23 15:02:14 SimonVT: all the errors i get is that "R cannot be resolved" Nov 23 15:02:41 R is generated before your java files are compiled, so those errors don't matter Nov 23 15:03:17 then how come there's no R.java Nov 23 15:03:28 Because there are errors in your resources Nov 23 15:04:30 SimonVT: here's it http://ix.io/97E <-- xml Nov 23 15:04:37 i don't see any errors in it Nov 23 15:05:27 that's the only file i modified Nov 23 15:07:22 Any build system but eclipse would tell you where the issue is Nov 23 15:07:53 ^ lol Nov 23 15:08:28 burmat: ? Nov 23 15:09:10 I'm not a big fan of eclipse Nov 23 15:10:10 what ide do you use burmat? Nov 23 15:10:42 eclipse lol Nov 23 15:10:51 when it comes to android dev, it is just easier Nov 23 15:10:57 that doesn't make it *good* Nov 23 15:10:59 (to me at least) Nov 23 15:11:19 but then how do you go about fix this kinda of weird errors? Nov 23 15:11:30 fixing* Nov 23 15:12:32 is there a command i can give manually to build this project? Nov 23 15:12:58 hey, I've got a huge problem with my bluetooth connection. Every third connection attempt im getting this message:java.io.IOException: read failed, socket might closed or timeout, read ret: -1 And I have no clue, how to fix it. Anyone? Nov 23 15:14:06 ovrflw0x: I usually go up to the build menu and uncheck "build automatically" Nov 23 15:14:34 then right click the project -> android tools -> fix project properties Nov 23 15:14:57 then i go back up to the build menu and run "clean" Nov 23 15:15:00 then build project Nov 23 15:15:12 cool now i see R.java! Nov 23 15:15:19 it worked? Nov 23 15:15:38 i was manually trying out different stuff and it appeared Nov 23 15:16:08 lol Nov 23 15:16:17 that's good though Nov 23 15:19:41 how do i convert string to byte[] (min api 10) Nov 23 15:20:11 dnl_tp: getBytes method Nov 23 15:20:49 accepts a charset parameter. Use it. My typical technique is a private static final Charset UTF8 = Charset.forName("UTF-8") Nov 23 15:21:10 alankila, i'm using MIME_TYPE.getBytes(StandardCharsets.US_ASCII) Nov 23 15:21:22 Why are you using US_ASCII? Nov 23 15:21:27 but StandardCharsets is API 19 Nov 23 15:21:37 Are you actually trying to discriminate against everyone who needs more than ASCII? Nov 23 15:21:41 because i work with NDEF MIME_TYPE Nov 23 15:21:45 and that is ascii Nov 23 15:21:47 mh Nov 23 15:21:52 no Nov 23 15:21:58 they did that :) Nov 23 15:22:56 so Charset.forName("whatStringHereForUS_ASCII")? Nov 23 15:23:00 I think world is evil for having more than one charset. Since UTF8 produces the same result for US_ASCII for the chars defined in it, I'd be likely to use it Nov 23 15:29:09 thanks Nov 23 15:37:06 Has anyone here worked/experimented with the ZXing library? Nov 23 15:37:32 i have Nov 23 15:37:44 unsurprisingly, I use it to read barcodes Nov 23 15:46:02 there now pfn ? Nov 23 15:47:01 alankila: wow, I thought you used it to read Sherlock Homes stories. :) Nov 23 15:47:15 ok anyway, Nov 23 15:47:47 alankila: Did you integrate it directly to your app or used the intent method to call their app? Nov 23 16:11:34 Hi, how can I grant android.permission.NET_ADMIN to an app? I have full control over the app and device Nov 23 16:11:57 pm grant android.permission.NET_ADMIN throws an SecurityException Nov 23 16:12:14 "Operation not allowed: java.lang.SecurityException: Permission android.permission.NET_ADMIN is not a changeable permission type" Nov 23 16:16:01 I think that means, that this is a permission that only system apps can have. Nov 23 16:18:20 Is anybody using pfn's android-sdk-plugin? Nov 23 16:18:54 marrrk: that permission has protection level signature last time I checked, doesn't that mean that a signed (debug build) APK is sufficient? Nov 23 16:20:16 Anyone sees the error in my SQL statement: http://ideone.com/ZJsgvK ? Nov 23 16:20:30 Lekensteyn: Is your app a device administrator? Nov 23 16:21:32 marrrk: not that I know, it needs to gain access to control secondary network interfaces. Nov 23 16:22:04 While reading, I found that "signature" means that only apps signed with the key used for the framework can be granted permissions Nov 23 16:22:30 Yatekii: No ' after first .mp3 Nov 23 16:22:35 I think I have this key somewhere on the build machine, but isn't there another way to assign permissions? Nov 23 16:22:57 I don't know, just try read up on your specific permission and see whether you might have to make your app a device administrator. Nov 23 16:25:11 marrrk,? Nov 23 16:25:16 Ahh! Nov 23 16:25:26 There you are, I am trying to make an existing project use scala. Nov 23 16:25:37 First I tried with android-19, but it didn't seem to like it. Nov 23 16:26:00 ? Nov 23 16:26:07 Now I changed it to 17 and now it complains about this: java.io.FileNotFoundException: /Users/mark/Documents/Menthal/android/AccessibilityMonitor/../../../workspace_menthal/google-play-services_lib/AndroidManifest.xml Nov 23 16:26:57 I have no idea what you're doing Nov 23 16:27:04 Okay, sorry. Nov 23 16:27:18 I have an Android project, and I want to move it to scala. Nov 23 16:27:40 And I followed the instructions in here: https://github.com/pfn/android-sdk-plugin Nov 23 16:28:51 So I have to create a build.sbt where I specify the android version in a line like this: "platformTarget in Android := "android-19" right? Nov 23 16:29:38 ok Nov 23 16:29:49 so then I do: Nov 23 16:29:56 but you have to have the sdk for that version Nov 23 16:30:02 I do have that Nov 23 16:30:20 That's 4.4, right? Nov 23 16:30:26 yes Nov 23 16:30:47 oh, somehow after having installed 17 as well it now works Nov 23 16:30:51 maybe something was wonky Nov 23 16:32:22 But when I do "run" it tries to find AndroidManifest.xml in google-play-services-lib and does not find it so Manifest merging fails Nov 23 16:32:25 for the play services, use the aar, not the library project Nov 23 16:32:54 path is wrong Nov 23 16:33:06 where do I set that path? Nov 23 16:33:07 or disable manifest merging Nov 23 16:33:20 see readme Nov 23 16:34:04 ah okay Nov 23 16:37:02 To be honest, I didn't eve know that we were using this play services thing. Nov 23 16:37:20 on newsstand you can add a subreddit Nov 23 16:57:06 SimonVT: ty! Nov 23 16:59:20 pfn: Can I reference the dependencies relatively to the project directory somehow? Nov 23 17:00:59 yes Nov 23 17:01:11 what dependencies Nov 23 17:07:19 The Google Play Services one for a start, because I'm still stuck there. Nov 23 17:07:50 I found online that you said I needed to add the repo to my resolvers, I'm now trying to find what the repo is. Nov 23 17:07:54 why aren't you using the aar Nov 23 17:08:04 you don't need to add it Nov 23 17:08:14 I could use the aar. Do I just need to put it in the libs folder? Nov 23 17:08:18 you need to install it from the sdk manager Nov 23 17:08:34 just install repo and spec dep Nov 23 17:08:45 specify the dependency Nov 23 17:09:15 Okay, I'm on it. Nov 23 17:10:04 be fast, I don't have time and will be gone until the 11th Nov 23 17:10:19 Okay, what do I need to specify as the dependency? Nov 23 17:10:25 I downloaded it Nov 23 17:10:32 see readme Nov 23 17:10:43 proper version I guess Nov 23 17:11:44 find version by looking at the local repo the sdk manager downloads Nov 23 17:12:10 ANDROID_HOME/extras/google/m2repository Nov 23 17:14:28 There is no m2.. folder Nov 23 17:14:44 then you need to install it... Nov 23 17:14:50 sdk manager Nov 23 17:14:52 do it Nov 23 17:16:13 I'm installing all extras now Nov 23 17:16:50 no, just repositories Nov 23 17:17:22 Google Repository? Nov 23 17:17:32 ah I see Nov 23 17:17:36 it's starting to dawn on me now Nov 23 17:18:52 Okay, it downloaded the dependencies now but it seems still to be looking in the wrong place for the AndroidManifest Nov 23 17:21:00 When building firmware with userdebug, the keys in build/target/product/security/ are being used to sign system APKs right? Doesn't that mean that anyone can publish rogue apps signed by these not-so-private keys? Nov 23 17:22:25 marrrk, remove reference to the old one... Nov 23 17:22:33 ah alright Nov 23 17:22:46 <|0xD34D|> Lekensteyn: one could build a system app using those keys but that app would need to reside in system/app/ or system/priv-app/ Nov 23 17:27:07 |0xD34D|: are there other possible dangers? Like an app being able to use certain permissions that normal apps cannot get? Nov 23 17:27:14 okay now maybe I can resolve the next error by myself Nov 23 17:27:36 (as a dev, I need to get NET_ADMIN for my app. But as a user, I am concerned that such default keys can be abused in other ways) Nov 23 17:27:59 <|0xD34D|> if you are building your own ROM, you can generate your own keys Nov 23 17:28:44 It's test keys.. No devices are signed with them Nov 23 17:29:25 SimonVT: well, I am not so sure. I built cm from source and see "test-keys" in the About screen Nov 23 17:29:35 <|0xD34D|> unfortunately most custom ROMs are built with the, Nov 23 17:29:36 <|0xD34D|> *them Nov 23 17:30:10 <|0xD34D|> but people that flash custom ROMs should know they are assuming some risk when flashing non-stock firmware Nov 23 17:30:18 <|0xD34D|> although I know a lot of people have no clue Nov 23 17:30:23 Flashing a custom rom is a possible danger in itself, so then it doesn't really matter Nov 23 17:30:38 <|0xD34D|> sure it matters, to those that flash them Nov 23 17:30:40 I'd imagine CM have their own keys Nov 23 17:30:57 <|0xD34D|> maybe for the commercial version Nov 23 17:31:07 <|0xD34D|> not for their regular builds Nov 23 17:31:21 The build instructions (http://wiki.cyanogenmod.org/w/Build_for_i9300) do not mention anything about the signing keys Nov 23 17:31:45 <|0xD34D|> like I said, you can generate your own if it is a concern you hvae Nov 23 17:34:58 pfn: Do I have to add the support libraries jar in a similar way? Right now I am getting IllegalArgumentException already added: ... Nov 23 17:35:28 which is better for PhoneGap, Android Studio or ADT? Nov 23 17:46:39 marrrk, remove it Nov 23 17:46:54 I did, then it fails, I just added the support repository Nov 23 17:47:07 now I need to figure out the version and add it as a libraryDependency, I guess Nov 23 17:49:48 ohhhhhh Nov 23 17:49:56 it's saying Installing... that's a good sign! Nov 23 17:50:06 yes!! Nov 23 17:50:37 thank you pfn, now I have to figure out why it crashes immediately Nov 23 17:54:25 Perfect, so thank's a lot and have fun, whatever you will be doing until the 11th! Nov 23 17:54:33 thank's <-- hahaha Nov 23 17:54:53 you're welcome Nov 23 17:55:23 hey pfn Nov 23 17:55:30 pfn: i've fixed my issue Nov 23 17:55:42 yeah? Nov 23 17:55:49 yeah, huge overhaul Nov 23 17:56:01 turns out dlopen/dlsym was making things do crazy Nov 23 17:56:12 so I've looked into golang external linker Nov 23 17:56:21 and now i got everything compiled inside one binary Nov 23 17:56:25 no more .so's Nov 23 17:56:42 interesting Nov 23 17:56:53 so... why go? :p Nov 23 17:56:55 the hint was that letting the linker resolve the symbols on 4.3 worked, but using dlopen/dlsym on 4.3 made things crash Nov 23 17:57:06 pfn: because i wanted to learn it this summer :) Nov 23 17:57:17 it's a multi os project btw Nov 23 17:57:24 android doesn't seem like the ideal place Nov 23 17:57:32 and android was asked by a lot of users Nov 23 17:57:46 if I wanted to do go, I'd probably start off with appengine Nov 23 17:58:26 pfn: don't. Nov 23 17:58:36 heroku is much better Nov 23 17:58:40 because standard Nov 23 17:58:49 I've done a lot on appengine already Nov 23 17:58:58 appengine forces you to use their own modules Nov 23 17:59:02 I know Nov 23 17:59:25 mostly standard, except for scale related things Nov 23 17:59:48 well, if you want to make a HTTP call Nov 23 17:59:49 bigtable, memcache, etc Nov 23 17:59:55 you gotta use their client Nov 23 18:00:03 no big deal of course Nov 23 18:00:14 but annoying when you're learning a language/platfor Nov 23 18:00:15 platform Nov 23 18:00:55 but all in all Nov 23 18:01:04 i gotta say i'm pretty impressed by Go so far Nov 23 18:01:44 I want a haskell that compiles to native... Nov 23 18:01:57 you might want to look into Rust then Nov 23 18:03:11 but you know, compiling for: Win/x86, Win/x64, Linux/x86, Linux/x64, Linux/arm, Mac/x86, Mac/x64 and now Android/arm Nov 23 18:03:21 all of this from my mac prompt, without VMs Nov 23 18:03:37 i'm pretty amazed by that Nov 23 18:04:02 cross compilers are nice Nov 23 18:04:15 but yeah, rust isn't interesting Nov 23 18:04:27 when my binary ran on android I was floored Nov 23 18:04:30 static compilation ftw. Nov 23 18:05:03 speaking of android, i'm wondering: can an android app launch console commands ? Nov 23 18:05:12 yes Nov 23 18:05:13 ie: i'm doing an addon for XBMC Nov 23 18:05:17 that runs a cli program Nov 23 18:05:24 (the program i had issues with) Nov 23 18:05:33 it can exec a command Nov 23 18:05:41 interesting Nov 23 18:05:45 what are the requirements ? Nov 23 18:05:50 not a terminal without additional work, of course Nov 23 18:05:59 Runtime.exec Nov 23 18:06:01 yeah I just want to launch my cli Nov 23 18:06:09 or ProcessBuilder Nov 23 18:06:24 ok, any requirements to where it has to be ? Nov 23 18:06:43 cause it's launching from the Python interpreter in XBMC Nov 23 18:06:57 in your data dir Nov 23 18:07:04 not external storage Nov 23 18:07:28 so /data/data/org.xbmc.xbmc/files is fine ? Nov 23 18:08:39 sure Nov 23 18:09:07 it seems i can't chmod in this dir Nov 23 18:09:16 from the app i mean Nov 23 18:10:02 OSError: [Errno 1] Operation not permitted: '/data/data/org.xbmc.xbmc/files/torrent2http' Nov 23 18:11:30 should be able to... Nov 23 18:11:35 * pfn shrugs Nov 23 18:11:59 you own that dir? Nov 23 18:12:13 AH I KNOW Nov 23 18:12:16 the file is root/root Nov 23 18:12:17 crap. Nov 23 18:12:28 What's the correct way to add a margin to a ListView without moving the scrollbar inward? Nov 23 18:13:58 padding? Nov 23 18:14:06 padding has the same effect Nov 23 18:15:09 pad the items then Nov 23 18:15:56 hm. only issue there would be getting the first/last ones right Nov 23 18:16:32 actually, I'll just apply left and right, easier Nov 23 18:25:27 Hey guys I download a battery widget and I am on android jelly bean, how do I remove the battery indicator from the drop down menu? Nov 23 18:25:57 I've got a RelativeLayout (with layout_height and _width set in an .xml) inside a ScrollView. How do I change RelativeView's size? ;o Nov 23 18:26:09 I tried using `paper.getLayoutParams.width = 123` and this surely does *something*. Nov 23 18:26:15 Is it the right way though? Nov 23 18:26:29 It doesn't seem so. Nov 23 18:28:56 2 Questions about multithreading in android apps. First https://gist.github.com/anonymous/ab47da840b6e5d8c67f5 This is my class on line 151 I have onCameraChange method inside I call Handler & Runnable Nov 23 18:29:09 Now since I'm also calling context > main looper Nov 23 18:29:09 Even after calling rl.invalidate(), the width changes. The height does not. Nov 23 18:29:32 Does this mean that the task is given to the UI Thread to complete or does this actually create a new Thread ? Nov 23 18:29:42 And execute that code inside that Thread Nov 23 18:30:37 I wanted to use the standard way Thread x = new Thread(...); x.start(); But this throws an exception saying Not on the main thread. Nov 23 18:42:43 neredsenvy: what about runOnUiThread? Nov 23 18:50:33 michalrus: You need to call requestLayout when changing layoutparams. setLayoutParams does this for you Nov 23 18:52:01 SimonVT, mkay, thanks I figured that out. This is working well. But my real problem turned out to be different. Nov 23 18:52:15 How do I keep a RelativeLayout from expanding when adding child views to it? Nov 23 18:52:40 Don't make it wrap_content Nov 23 18:53:14 SimonVT, in its .xml, I've set both height and width to `0dp`. Nov 23 18:53:29 Is wrap_content somehow implicitly assumed? Nov 23 18:53:40 That would make it invisible Nov 23 18:54:00 SimonVT, that's why I'm updating its width and height later in code. Nov 23 18:54:22 And after adding children, the relative layout... expands. Nov 23 18:54:27 But only graphically. Nov 23 18:54:33 It still reports its small. Nov 23 18:54:36 *it's Nov 23 18:54:41 o_O Nov 23 18:59:36 class not foudn exception when running my app, even if i can browse the source code in android studio, jar added to the build.gradle, any idea what should i do? Nov 23 19:13:48 Guys what's your opinion on singletons? Nov 23 19:19:19 They're forever alone Nov 23 19:30:44 *SNRK* Nov 23 19:56:59 hi all Nov 23 19:57:46 GreetingsManager.getDefaultGreetingsManager(getActivity()).newInstance(this).edit().greet("fusion44").commit() Nov 23 19:57:47 I see lots of apps writing to my /internal_memory/Android/data/ Nov 23 19:58:14 is there a standard way of accessing this directory? Nov 23 20:13:16 <|0xD34D|> fusion44: http://developer.android.com/reference/android/content/Context.html#getFilesDir() Nov 23 20:18:33 More likely it's getExternalFilesDir Nov 23 20:22:13 <|0xD34D|> actually it could be either or Nov 23 20:22:23 <|0xD34D|> the path he mentioned is rather vague Nov 23 20:23:51 I've only seen Android/data/ used on external storage Nov 23 20:24:11 <|0xD34D|> have you seen /internal_memory/ anywhere? Nov 23 20:24:49 Not really. Could be some device that has two external storages and uses sdcard/ for an actual sdcard Nov 23 20:25:11 <|0xD34D|> see it's vague, it could be anything :P Nov 23 20:25:23 I'm still gonna go with external storage :p Nov 23 20:25:44 <|0xD34D|> I'm gonna go with "My Documents" Nov 23 20:27:35 I'm writing a file to my applications directory, but I can't find it in the directory with windows explorer Nov 23 20:29:39 <|0xD34D|> well if it's stored on "external" storage it will be in Android/data/ Nov 23 20:30:12 <|0xD34D|> if it's internal it will be /data/data/ which you won't be able to access in Windows explorer Nov 23 20:31:15 hey guys Nov 23 20:31:20 <|0xD34D|> HEY! Nov 23 20:31:21 when I access the directory via File f = getActivity().getBaseContext().getExternalFilesDir("test"); I should actually see it? Nov 23 20:31:50 is there a way to start a activity dialog, but without showing the rest of the app? Nov 23 20:32:22 the stragne thing is, when I use an on device file browser I can see the directory without a problem Nov 23 20:32:27 <|0xD34D|> fusion44: the parameter is not a name though it's a TYPE Nov 23 20:32:38 <|0xD34D|> The type of files directory to return. May be null for the root of the files directory or one of the following Environment constants for a subdirectory: DIRECTORY_MUSIC, DIRECTORY_PODCASTS, DIRECTORY_RINGTONES, DIRECTORY_ALARMS, DIRECTORY_NOTIFICATIONS, DIRECTORY_PICTURES, or DIRECTORY_MOVIES. Nov 23 20:33:00 |0xD34D|: ouch, you're right Nov 23 20:41:17 when I access the directory via File f = new File(Environment.getExternalStorageDirectory() + "/Android/data/" + packageName + "/"); I can see created files in an internal browser, but not in explorer Nov 23 20:43:09 <^cheeky> after noon anyone have link to the latest devox ? Nov 23 20:44:00 devox? Nov 23 20:44:15 <^cheeky> sorry nvm Nov 23 20:44:29 <^cheeky> shitty cold day here Nov 23 20:44:52 I was wondering if that was some new slang that I'm not hip enough for Nov 23 20:46:32 haha Nov 23 20:47:26 if you're trying to develop an app with the most platform support possible, what version should you aim to support? Nov 23 20:48:20 1.5 Nov 23 20:48:53 eep Nov 23 20:50:10 okay, what if you're trying to hit 90% of devices sold in the past 3 years Nov 23 20:50:21 or 2 years Nov 23 20:50:27 http://developer.android.com/about/dashboards/index.html Nov 23 20:51:35 so Ice cream sandwich Nov 23 20:51:42 Datapolitical: if you want to hit everything in use now, support back to 2.3 Nov 23 20:51:57 if you want to support ~75%, 4.0 and above. Nov 23 20:51:57 Datapolitical: don't even program an App then :P Nov 23 20:52:00 I don't need to hit everything, just most Nov 23 20:52:12 ? Nov 23 20:53:07 how can I find out what value newer versions will bring to developing my app? Nov 23 20:53:23 reading the developer docs and the release notes for each API. Nov 23 20:53:35 makes sense Nov 23 20:54:56 You should always build against the latest API. Just pay attention to the minimum level of API calls you use; if you call something that doesn't exist on an old device you'll fail. use the support libraries and work around missing calls if they're not in the support lib, if you care about older versions. Nov 23 20:55:10 If you're doing something which is core to your application and which only exists on a newer API, your problem is solved Nov 23 20:57:01 Can I have OnTouchListener in MainActivity or does it need to be in MainView? Nov 23 20:59:56 android studio or eclipse? Nov 23 21:00:09 eclipse Nov 23 21:00:16 why? Nov 23 21:00:31 android studio Nov 23 21:00:42 Oh, that wasn't to me? Sorry :p Nov 23 21:00:54 it was to anyone Nov 23 21:01:11 I was asking you to explain your reasoning Nov 23 21:01:14 ah Nov 23 21:01:22 I misunderstood the question Nov 23 21:01:25 AS is where it's going to be headed in the future most likely Nov 23 21:01:36 but if you like eclipse, use that Nov 23 21:01:40 they both get the job done Nov 23 21:02:06 AS is somewhat more resource-efficient, at least in my experience. I like the UI better. Try either, see what you like. Nov 23 21:02:26 Maybe I should upgrade to Android Studio then Nov 23 21:02:32 I am starting on a new project now Nov 23 21:02:46 I'm a new android developer Nov 23 21:02:50 do you know eclipse? use eclipse. do you know intellij? use intellij. Nov 23 21:03:18 I know eclipse a little, not enough to justify using it Nov 23 21:03:22 but like it was said, Android Studio will be the one in the future Nov 23 21:03:53 Will we notice any limits with AS? Nov 23 21:04:06 As it is version 0.x Nov 23 21:04:07 Limits? Nov 23 21:04:40 It is basically the same thing, just different IDE? Nov 23 21:05:23 if you're not good with UI, are there any great resources? Nov 23 21:05:30 Do you know Eclipse? Use IntelliJ. Do you know IntelliJ? Use IntelliJ. Nov 23 21:06:09 I know neithet Nov 23 21:06:16 IntelliJ? Nov 23 21:06:21 I haven't coded for apps before Nov 23 21:06:51 Is AS good enough in it's current state that I just as well can use that over Eclipse? Nov 23 21:07:15 AS is a fork of intellij.. Nov 23 21:07:18 And yes, it works fine Nov 23 21:07:23 ah, cool Nov 23 21:07:44 To bad I have to download it over mobile network :§ Nov 23 21:08:48 I'm doing a backup app right now and I'm wondering: do you think it's a good idea to use AsyncTask since download/upload might take more than a few seconds ? Nov 23 21:10:01 Always use a thread for networking Nov 23 21:10:34 but I have a great app, and I'll build it even if it takes six months Nov 23 21:12:21 SimonVT: okay I will get back to Thread and Handler I guess. Thanks ! Nov 23 21:12:56 AsyncTask uses threads Nov 23 21:13:13 but it's the UI thread Nov 23 21:13:36 doInBackground is the ui thread? Nov 23 21:14:11 Asynctask sucks at everything; avoid it Nov 23 21:14:23 Yeah that was I was wondering: is AsyncTask good for downloading in background since in the documentation it said "no more than a few seconds" Nov 23 21:14:34 for that use intentService Nov 23 21:15:15 one of my beefs with asynctask is communicating exceptions that happened back to the main thread Nov 23 21:15:34 Oh okay Nov 23 21:15:38 thats where the rxjava style onX, onfinish, onerror style is better Nov 23 21:16:18 g00s, check out my futures implementation Nov 23 21:16:53 oh, I didn't make the actual implementation oss Nov 23 21:19:07 https://gist.github.com/pfn/7442087 Nov 23 21:19:16 I can never decide what I want to actually make open source or keep hidden in my project. Nov 23 21:19:30 https://gist.github.com/pfn/7451900 Nov 23 21:19:43 Kake_Fisk: I use AS as my primary IDE and have for some time. It's getting better all the time and public support is getting better as well. Go for it. Nov 23 21:19:45 I should make that a library Nov 23 21:19:52 pfn cool thanks Nov 23 21:20:00 dragorn: Thanks :) Nov 23 21:20:18 Kake_Fisk: The biggest stumbling block is libraries - and that's getting much better. Nov 23 21:20:19 I just cram stuff in my spastic library when I decide to make it open source. Nov 23 21:20:19 basically, took twitter futures and reimplemented them in java Nov 23 21:20:48 yeah i think as is decent now; i still wouldn't ask gradle to merge a bunch of library project swith different flavors and suuport-screen for each flavor; you know xcrazy shit like that, but for most basic things its fine Nov 23 21:20:51 Well, at least that means you did futures more or less correctly. Nov 23 21:20:52 dragorn: I never really use much libraries, so that's fine anyway :) Nov 23 21:21:29 I use as many libraries as I can Nov 23 21:22:19 I make games from scratch, so I haven't needed them yet Nov 23 21:22:59 I need to be better at using libraries and existing technology though. It will improve the quality of my works Nov 23 21:23:11 I just love making things myself Nov 23 21:26:17 It's all a matter of if there's libraries that fit your needs, and if they don't completely is it faster to re-write completely or make a patch Nov 23 21:26:46 yeah Nov 23 21:28:42 i think it also depends on the nature of the project, the nature of the library, and your personality. just like there are 'investor personalities' some are more conservative by nature; sometimes you can be more risky depending on context. personally i prefer well supported community driven things; but i'm more risk-averse. worked well in enterprise which had multiple criteria for selecting OSS libraries Nov 23 21:32:26 anyone here can help me with a custom java camera plugin (build for appcelerator titanium)? Its opening the camera (launchActivityForResult) with an overlay and taking a picture. But the onResult function is not called so I can't transfer the image back to my titanium app. Nov 23 21:55:17 I need your help to understand a thing about IntentService: what is the Intent parameter called here : onHandleIntent(Intent intent) ? I would like to test a SSH connection and get the answer if it worked or not. I have to create "public class Connectiontest extends IntentService" and do the test in "protected void onHandleIntent(Intent intent)" right ? (I have coded the ssh functions already) Nov 23 22:04:27 I am using ANDROID STUDIO... I am getting GRADDLE error... saying that it can not find sybal variable... Its like it lost reference to my Activity or something. Is there a way to make gradle spot these files and deal with this error.... Nov 23 22:05:03 It happens a lot... and the code worked fine up until a little while ago.. then bang!!!!! it crashes on these issues Nov 23 22:14:01 bad code you're writing there... Nov 23 22:16:00 http://pastebin.com/bxr7NXD9 used with http://pastebin.com/hh5Lazi2 do you think I'm doing something totally shit about IntentService ? I am not sure if I have understood all well Nov 23 22:17:16 intent service is basically a job queue Nov 23 22:17:20 that's all it is Nov 23 22:18:24 if you want any sort of callbacks or your own messaging you need to handle it yourself, maybe by using broadcasts, etc Nov 23 22:18:40 "IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand. Clients send requests through startService(Intent) calls; the service is started as needed, handles each Intent in turn using a worker thread, and stops itself when it runs out of work." Nov 23 22:18:55 http://www.speedtest.net/my-result/a/656783138 Nov 23 22:19:10 man, lte service in San Jose is crazy Nov 23 22:19:32 that's faster than my home Internet 45/6 Nov 23 22:21:25 pfn: i'm surprised, usually metropolis lte is awful Nov 23 22:21:37 pfn: I get better speeds in all respects at home than I get near nyc Nov 23 22:21:56 it's terrible at my house in Santa Clara... Nov 23 22:22:03 I get like 2mbps... Nov 23 22:24:02 wifi at ONE of my local StarBucks... is piss slow... Nov 23 22:24:08 SimonVT: Connectiontest testco = new Connectiontest("Test connection", user.toString(), host.toString(), password.toString()); startService(testco); The problem is startService doesn't work ("not applicable for the argument") but Connectiontest well extends from IntentService Nov 23 22:24:45 You don't instantiate services, you just start them.. With an intent Nov 23 22:24:50 Like you'd start an activity Nov 23 22:25:58 But I need to define what the service do : like connect to something then disconnect Nov 23 22:26:48 start the service ,then pass it a message Nov 23 22:27:49 http://developer.android.com/training/run-background-service/index.html Nov 23 22:29:00 isn't that binding to services is for? Nov 23 22:31:24 thank you I will read all Nov 23 22:32:12 is there a reason that ANDROID STUDIO... changed all of my R.id. to... android.R.id.... and confused the hell of of me. Nov 23 22:32:14 ? Nov 23 22:32:35 never had that happen Nov 23 22:38:29 When trying to install an APK signed with the platform key, it fails because it does not get installed to the system partition. Has this something to do with SELinux in Android 4.3? Nov 23 22:42:35 IrishGringo: why do you unneccessariliy capitalize things Nov 23 22:42:55 excuse me, why do YOU unneccessarily CAPITALIZE things Nov 23 22:43:01 :P Nov 23 22:46:54 desmin88: seriously? you care? other than ANDROID STUDIO and GRADDLE... so what? Nov 23 22:47:55 its gradle Nov 23 22:48:01 capitalizing things on irc (and text messaging in general) is consifered 'shouting', and is against almost every netiquette you could find Nov 23 22:48:10 it's also in the freenode guidelines I think Nov 23 22:48:33 what do you acomplish by capitalizing certain word is my question thats all Nov 23 22:48:51 So.. a permission of a framework package with protection level "signature" can only be applied to an APK installed to /system/app/ ..? Please correct me if I am wrong, I would only install my app in /system/ as a last resort. Nov 23 22:51:09 hahahahahah yes Nov 23 22:51:20 * Nilium finally got something stupid working Nov 23 22:57:26 IrishGringo: you did something to change the package settings most likely Nov 23 22:57:36 i've seen it happen in AS. Nov 23 22:58:00 and it is mightily confusing Nov 23 23:14:56 Hi, I'm trying to display a PreferenceFragment on a tablet, and it looks like this: http://i.imgur.com/tZL33fl.png Nov 23 23:16:05 How can I reduce the padding inside the fragment, or even better: make it use the default values for phone screens (the fragment is 320dp wide, which is normal for 'medium' phones I heard) Nov 23 23:17:08 there is no "normal" for phones Nov 23 23:17:46 the nexus 4 was 384dp, the nexus 5 is 360dp Nov 23 23:18:05 the second you make an assumption about screen size, you're going to have an app that looks horrible on most devices Nov 23 23:18:45 nope, I only use this two-pane layout on screens that actually are that wide, and use two seperate activities on anything smaller Nov 23 23:19:06 'layout-w720dp' Nov 23 23:19:09 so you want the padding reduced so the preference spans the whole fragment? Nov 23 23:19:13 yes Nov 23 23:19:17 can i see your xml? Nov 23 23:19:41 there's no layout xml for the right fragment, because it is a PreferenceFragment Nov 23 23:19:48 which has a system-provided layout Nov 23 23:19:53 ahhhh ok Nov 23 23:20:01 *that* is my issue :p Nov 23 23:20:15 because I'd know where to look if there would've been a layout xml :) Nov 23 23:20:19 ive done some overriding of preference stuff in the past Nov 23 23:20:36 I've done it with layout weights Nov 23 23:20:36 but that was to make it completely custom UI, but still behave like preferences Nov 23 23:20:41 (with generic fragments) Nov 23 23:20:55 which is "not the best way" but since it's a single expansion I don't think it hurts much Nov 23 23:21:00 How can I give object to InstentService please ? Do I really have to serialize it ? :s Nov 23 23:21:12 what is the difference between registering a BroadcastReceiver for ACTION_PHONE_STATE_CHANGED vs making a PhoneStateListener? Nov 23 23:21:27 Arkky: if the service is in the same process you don't have to serialize it. If the service is in its own process or communicates with other apps, you have to serialize. Nov 23 23:21:50 So, what's the current state of TDD with Android Studio? Does anyone successfully run Robolectric? Any alternatives? Nov 23 23:21:52 durka42: broadcast registered in manifest will cause your bcastrx to be woken up Nov 23 23:22:12 durka42: whereas a phonestatelistener would only be alive for the duration of the activity that creates it Nov 23 23:22:33 mm okay Nov 23 23:22:39 so in a service there is no big difference really Nov 23 23:22:54 unless you want your service to be launched on the phone state changing Nov 23 23:22:56 anyway for now I registered the broadcast at runtime in the service Nov 23 23:22:59 no the service is already running Nov 23 23:23:00 Today, I made Scala's type system do what I want. I feel proud. Nov 23 23:23:04 I don't want it woken up if it's not running Nov 23 23:23:06 then probably no difference Nov 23 23:23:16 Nilium did you add a 4th type system ? Nov 23 23:23:17 cool Nov 23 23:23:44 dragorn: okay thank you :) Nov 23 23:23:56 Anybody see this? Looks really promising. Nov 23 23:23:58 https://github.com/commonsguy/cwac-masterdetail Nov 23 23:24:04 No, but I got this working: for (frag <- fragmentWithTag(BarSettingsFragment)) frag.checkCatMode() Nov 23 23:24:04 Where frag is correctly typed based on the fragment tag passed to the method. Nov 23 23:24:35 So in that case, frag is a BarSettingsFragment. Nov 23 23:25:07 is this the right way to hang up a call? Nov 23 23:25:09 http://stackoverflow.com/questions/5320046/how-can-i-answer-a-phone-call-and-hang-it-up Nov 23 23:25:18 the reflection thing to get a TelephonyService seems like a huge hack Nov 23 23:25:20 Never looked at commons's stuff. Nov 23 23:26:11 What reflection thing? Nov 23 23:31:42 desmin88 thats frightening, is there really that much to master / detail ? i have no idea, i'm working on my first tabet optimized app Nov 23 23:32:04 i guess there is... Nov 23 23:32:06 but yeah, if you have 2 fragments up, what does action modes do, etc - i have no idea Nov 23 23:32:13 but atleast this library should help Nov 23 23:32:44 i'd rather get burned first, to realize what the challenges are then decide whether its worth using the library Nov 23 23:33:25 ehh, all of cwac's stuff is really great so im going to use this off the bat Nov 23 23:33:32 has anyone used maxSdkVersion on uses-permission yet? Nov 23 23:51:56 I'm getting a fatal exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {nl.haas_en_berg.rijksdriehoekscoordinaten/nl.haas_en_berg.rijksdriehoekscoordinaten.RDPreferenceFragmentActivity}; have you declared this activity in your AndroidManifest.xml? Nov 23 23:52:05 The following line os from my manifest file: Nov 23 23:52:14 so what am I doing wrong now? Nov 23 23:54:45 What's your application package? Nov 23 23:55:09 answer: I refactored that class name, and eclipse f***d up. Clean => Build => problem solved Nov 23 23:55:43 I don't think that's really Eclipse's fault, much as I'd love to say "well I'm sure glad I don't use Eclipse" Nov 23 23:56:01 is Android Studio that much better? Nov 23 23:56:12 if yes, I'd try it with my next project :) Nov 23 23:56:21 I don't use AS, so who knows Nov 23 23:56:27 What do you use? Nov 23 23:56:46 IntelliJ. Nov 23 23:56:55 isn't AS based on that? Nov 23 23:56:57 Builds are all done via sbt, so really IntelliJ is just the editor. Nov 23 23:57:49 It is, but AS seems to make you use Gradle, and I don't really want to try to figure out how to build a scala project using gradle. Nov 23 23:58:26 As such, I've never bothered with AS since I already have IntelliJ and I don't think there's going to be any improvement by swapping it out Nov 23 23:58:53 If anything, it just seems like AS is a less stable version of the IntelliJ 13 EAP. Nov 23 23:59:32 Nilium: thats why AS is in alpha Nov 23 23:59:45 Nilium: afaik android changes first make it to AS *then* to EAP... which would explain the lack of stability ;) Nov 24 00:00:01 Oh, that's why ADT is (still) the default Nov 24 00:00:11 Then I'll try AS later, not now Nov 24 00:00:32 I'll just stick with IntelliJ since all I need is to be able to edit scala. Nov 24 00:00:55 p_l jetbrains probably wants strict qa gates on google's code entering their ide ;) Nov 24 00:02:07 Also just realized that if I click on a def or any other construct (e.g., if), IntelliJ will highlight the result blocks. Nov 24 00:02:10 That is fairly awesome. Nov 24 00:02:11 How bad is it to do this? I.e performance taxing wise. http://pastebin.com/RRF5YreM Nov 24 00:02:18 Dunno, profile it. Nov 24 00:02:43 Nilium: JetBrains are great when it comes to refactoring-related stuff, especially for syntax-rich languages :) Nov 24 00:03:02 * p_l met one of their employees, talking about ReSharper Nov 24 00:03:03 The Jetbrains IDE is great. Nov 24 00:03:11 Indeed. Nov 24 00:03:11 Just never noticed that little thing until now. Nov 24 00:03:32 I never could deal with the IDE environment, though. :\ Nov 24 00:03:50 I like having fine-grain control. A little bit of a control freak. >.< Nov 24 00:04:37 Auv: unfortunately certain environments make it hard to work with anything else than a designated IDE... Nov 24 00:04:57 I normally prefer a regular text editor, but for anything involving Java/Android, I really can't do without it Nov 24 00:04:59 p_l, Android's easy on the command line. Nov 24 00:05:17 Just the sheer disaster that Java APIs are makes it somewhat necessary Nov 24 00:05:27 Auv: debuggers and Java APIs navigation in editor Nov 24 00:05:28 "ant debug" "adb install -r bin/.jar" Nov 24 00:05:31 Well, typical Java APIs, i.e., those that try to be Java-y Nov 24 00:07:40 java apis arent a disaster. wat? Nov 24 00:07:55 Some of the APIs are pretty bad. Nov 24 00:07:59 You shut your lying, brainwashed mouth Nov 24 00:08:04 some are Nov 24 00:08:05 most arent Nov 24 00:08:13 Java has gotten so complicated that IDEs are thought of as a requirement. Nov 24 00:08:15 * g00s throughs Calendar class at desmin88 Nov 24 00:08:20 *throws Nov 24 00:08:34 jodatime pls. Nov 24 00:08:35 Ever seen a factory factory? I've seen a factory factory. Nov 24 00:08:43 I wonder if I can find a factory factory factory. Nov 24 00:08:53 but have you seen an abstract factory factory ? Nov 24 00:09:01 It's factories all the way down. Nov 24 00:09:03 Factory factories are the place where overengineered solutions go to die. Nov 24 00:09:10 Yes, I have seen an abstract factory factory. Nov 24 00:09:17 i think i saw one in spring Nov 24 00:09:25 have you seen a factory to produce factories that make factories? Nov 24 00:09:28 i havent Nov 24 00:09:31 :p Nov 24 00:10:04 That's why I was wondering if I could find a factory factory factory. Nov 24 00:10:15 I don't think I've ever seen one. Nov 24 00:10:35 Either way, not all Java APIs are bad, but the point is that Java seems to encourage strange, strange behavior at times. Nov 24 00:10:44 java is pretty verbose imo Nov 24 00:10:51 not that thats a bad thing, but its annoying at times Nov 24 00:11:01 tbh i think a lot of android apis are total shit Nov 24 00:11:02 Nilium its the kingdom of the nouns :) Nov 24 00:11:06 Might be because you end up with people going "well do I use an interface or an abstract class or.. OR BOTH" Nov 24 00:11:10 over there is the kingdom of the verbs -> Nov 24 00:11:43 I think the worst I have in my project right now is SaveConfigDialogFragment. Nov 24 00:12:54 I work with Android perfectly fine without an ide Nov 24 00:13:05 but I've been getting lazy Nov 24 00:13:14 pfn, As do I. Nov 24 00:13:28 I haven't found a good text editor that isn't emacs that highlights scala as nicely as IntelliJ, unfortunately, either. Nov 24 00:13:49 Sublime Text. Nov 24 00:13:57 But it is closed source, unfortunately. Nov 24 00:14:17 Like I give a rat's ass. >_> Nov 24 00:14:20 Sublime's problem is it uses TM highlighting for Scala, which is not great. Nov 24 00:14:36 sublime text is a no-go for me because of it's somewhat weird and definately non-free licensing Nov 24 00:14:40 I use Vim for Android and Sublime for web. Nov 24 00:14:56 I use geany for web and python Nov 24 00:15:01 I bought a license for Sublime, so I don't have to really worry about it. Nov 24 00:15:02 and ADT for android Nov 24 00:15:22 I don't do web stuff, I just use Sublime for C/C++/Ruby/Lua these days. Nov 24 00:15:24 I'm not one of those "Oh, it's not free? It has a bad license? I can't do it... :(" people. Nov 24 00:15:53 Though I guess I realize that those people have to be there for FOSS to survive. Nov 24 00:16:00 i like using ST to browse a project i don't feel like loading into an IDE. seems to have better file nav than vi/emacs Nov 24 00:16:10 butno foss would mean no android ;) Nov 24 00:16:31 oh well, let's go coding again Nov 24 00:16:49 Android is pseudo-FOSS. Nov 24 00:17:33 yeah, it's not fully open (Google Play, etc) but it would never be what is it now if foss wouldn't have existed Nov 24 00:17:51 They seem to be replacing all the apps with closed-source versions. Nov 24 00:17:58 And abandoning the FOSS ones. Nov 24 00:18:06 i think the web browser is next on the chopping block Nov 24 00:18:21 Well, they'll probably replace it with Chrome. Nov 24 00:18:27 Which is already based on FOSS. Nov 24 00:18:41 yeah, if you look at plain AOSP, then you really have a very barebones system Nov 24 00:18:44 oh well Nov 24 00:18:49 How can I make this simple article reading better? http://gyazo.com/fb812bb9dba15d6b21e9689dd8f91c98 Atm i use roboto light Nov 24 00:18:54 it's still more open than iOS or WP Nov 24 00:19:35 Peetz0r for devs and hobbyists, but practically for consumers i dont think so Nov 24 00:20:00 i'd like it if my nexus device only came with Play Nov 24 00:20:06 desmin88: something goes wrong in subpixel rendering I think. The choice of your font shouldn't have much impact Nov 24 00:20:22 and then i could add gmail, books .. done .. but they are really baking their shit into every corner of the os Nov 24 00:20:27 Peetz0r: hmm? Nov 24 00:21:17 desmin88: subpixel anti-aliasing Nov 24 00:21:26 ort anti-aliasing in general Nov 24 00:21:30 oh you mean that Nov 24 00:21:37 yes Nov 24 00:21:38 thats just because i zoomed out of the screenshot Nov 24 00:21:50 oh Nov 24 00:21:52 Thing is, they're abandoning development of the AOSP stuf. Nov 24 00:21:53 stuff Nov 24 00:22:02 can you upload a 1:1 version of the screenshot? Nov 24 00:22:06 It was more of just a how to make the layout better Nov 24 00:22:07 yeah sure Nov 24 00:22:11 oh, the layout Nov 24 00:22:18 then I wouldn't know :p Nov 24 00:22:30 Auv the sad part about abandoning the aosp apps, is that i learned quite a bit code-style wise from reading that stuff Nov 24 00:22:46 maybe somewhat larger padding on the sides Nov 24 00:22:48 Man, I just swallowed a chunk of pizza that was a little too unchewed :| Nov 24 00:22:59 :\ Nov 24 00:23:03 Nilium: at least you *have* pizza Nov 24 00:23:11 I just have a bottle of tap water :D Nov 24 00:23:32 Get on my level. Nov 24 00:23:36 At least you have a bottle. Nov 24 00:23:36 you mean a bottle of unfiltered pharma products Nov 24 00:23:42 Nilium: that is the worst feeling ever. Nov 24 00:23:42 (which is *the* best tap water in the world, by the way) Nov 24 00:23:45 I've got a glass of water! Nov 24 00:23:46 Well, not choking and I can breathe, so that's good. Nov 24 00:23:47 g00s: nope Nov 24 00:23:57 Heres a full 1080p screen cap. http://i.imgur.com/yU4f0RZ.jpg Nov 24 00:24:12 Just looking for suggestions to make the reading better Nov 24 00:24:12 Tap water in this part of my country is better quality than most bottled water on the world Nov 24 00:24:18 maine? Nov 24 00:24:18 Presumably it will make its way down the esophagus without killing me. Nov 24 00:24:34 maine tapwater is supposed to be amazing Nov 24 00:24:46 or vermont Nov 24 00:24:47 hmm. Nov 24 00:24:49 Maine? dunno. But I live in Almere, the Netherlands Nov 24 00:25:01 oh Nov 24 00:26:45 desmin88: maybe there shouldn't be a '\n' after your paragraph ;) Nov 24 00:26:54 but for the rest, font looks very smooth to me Nov 24 00:27:36 but please never ever upload screenshots as jpeg anymore. png it better suited for this. Nov 24 00:27:49 the text has jpeg artifacts all over the place now :p Nov 24 00:28:18 dont think i can change that Nov 24 00:28:26 ofcourse you can Nov 24 00:28:40 thats just what imgur did to it Nov 24 00:28:55 you uploaded it as a png, but imgur jpeg's it? Nov 24 00:29:03 weird, it never does that for me Nov 24 00:29:15 yep my source image was png Nov 24 00:29:34 my latest screenshot: http://i.imgur.com/tZL33fl.png Nov 24 00:29:59 whats it do Nov 24 00:30:23 I use png unless site limits me Nov 24 00:30:59 I wish mng had better support Nov 24 00:31:18 http://www.libpng.org/pub/mng/ Nov 24 00:31:50 desmin88: for unregistered users, imgut compresses images to 1mb, so if your image was over 1mb when you uploaded it, then it's compressed Nov 24 00:32:03 thats the problem then Nov 24 00:32:32 but I am a registered user, so my limit is 5mb. *and* my screenshot is 1280*800 while yours is 1920*1080 Nov 24 00:32:44 (my original was only 280kb or so) Nov 24 00:33:13 Better? http://i.imgur.com/GcFITWt.png :p Nov 24 00:35:18 yes, much better. What did you change? Register and login? Nov 24 00:36:09 yep :P Nov 24 00:38:54 bollocks Nov 24 00:39:12 im probably going to have to use different dimensions for different screen sizes Nov 24 00:39:19 or this will be a puny image on tablets Nov 24 00:39:50 or will i. Nov 24 00:39:56 is the value of MediaStore.Audio.Media.DATA always a file URI? Nov 24 00:45:57 sure Nov 24 01:01:33 My issue in my PreferenceFragment thing is not really the margin, but the fact that, while I have not set any icon, there is an icon being renderen on tablets (and not on phones) Nov 24 01:01:37 http://i.imgur.com/rAhbPqN.png Nov 24 01:03:15 So, why is a non-existing icon being rendered, and how do I disable it Nov 24 01:03:45 not sure, but whats with dat wrench icon Nov 24 01:04:41 that is my settings button, which enables/disables the right pane in that layout Nov 24 01:04:53 (or, on phones, launches the activity) Nov 24 01:05:09 but why the * does the fragment, which is 360dp wide, behave like a tablet screen, and not a phone screen? I gave it the widt of an average phone, so I'd like to see the margins and font sizes and icon stuff that belongs to phones. Nov 24 01:05:32 Because layouts are provided based on screen size Nov 24 01:06:00 Okay, I udnerstand that Nov 24 01:06:05 but can I change that? Nov 24 01:06:12 is the value of MediaStore.Audio.Media.DATA always a file URI? Nov 24 01:06:16 No Nov 24 01:07:06 aahw, so I\'' *have* to look at, and waste space for, a non-existing icon? Nov 24 01:07:42 Either find out if you can provide your own layout for preferences, or don't use preferencefragment Nov 24 01:07:52 oh well Nov 24 01:11:50 would it be possible to find that view in my code, and just do view.setVisibility(View.GONE) ? Nov 24 01:12:11 findViewById(android.R.id.icon) finds null Nov 24 01:15:03 Don't do that Nov 24 01:15:04 <^cheeky> string_Ray ? Nov 24 01:16:47 Hi Nov 24 01:17:29 SimonVT: that what should I do instead? Nov 24 01:17:53 actally re-creating the whole Preferencefragment class because of a stupid icon goes too far Nov 24 01:30:08 So what do I need to download to start messing around with android development Nov 24 01:34:02 zwergnjkl: http://developer.android.com/training/basics/firstapp/index.html Nov 24 01:34:31 If you follow that tutorial, then you'll find and install all the tool's you'll need Nov 24 02:00:56 Hm, trying to find an Android phone I can get on Verizon so I can force myself to use Android, but it looks like the only good one is the Moto X, which seems kind of underwhelming. Nov 24 02:01:48 lg g2 brah Nov 24 02:02:06 That thing's a piece of crap. Nov 24 02:02:15 Mostly because LG has no idea how to make software. Nov 24 02:03:24 seriously not going to buy the phone because of touchwiz? Nov 24 02:03:26 root that shit Nov 24 02:03:41 Nilium pfn has vz, maybe he can recommend Nov 24 02:03:48 desmin88: Touchwiz? Nov 24 02:03:53 Also, I do not root phones. Nov 24 02:04:10 Period. This isn't up for discussion, so stow your bullshit about it. Nov 24 02:04:29 lel Nov 24 02:04:30 i wonder if the moto x is stock android Nov 24 02:04:40 uh, i meant the moto G Nov 24 02:04:42 Don't know why everyone seems to think they should try to convince me to root my devices. Nov 24 02:04:46 uhh Nov 24 02:04:47 which isn't out yet Nov 24 02:04:48 i never said that Nov 24 02:04:55 It's not stock, though it's apparently pretty close. Nov 24 02:05:03 but you do develop android apps so it sort of lends itself Nov 24 02:05:10 if its close enough they update easily, i guess thats good :) Nov 24 02:05:40 the moto x got 4.4 before my n7 did :D Nov 24 02:05:45 Well, the Moto X is close enough, seeing as it got 4.4 something like yesterday or the day before. Nov 24 02:05:59 i still don't have 4,4, ya i know i can do it myself Nov 24 02:06:09 Nilium: why dont u root phones Nov 24 02:06:19 The real question is when the xyboard will get it Nov 24 02:08:41 Starting my package names with ca is weird. o_O Nov 24 02:09:16 it could be worse: caca Nov 24 02:09:20 caca? Nov 24 02:09:41 ca? O_o Nov 24 02:09:58 caca is the colour ascii art library :) Nov 24 02:10:24 Nilium, I'm doing an app for a website with a .ca (canada) website. Nov 24 02:10:33 I guess it's better than my use of "spastic Nov 24 02:10:33 Plus a closing " Nov 24 02:11:04 Ah. Nov 24 02:11:11 Well, write it as net or com to begin with then just refactor it later. Nov 24 02:11:46 In fact, later, refactor all package names to ca Nov 24 02:12:09 So you have ca.ca.ca.CaCaCaActivity Nov 24 02:13:36 I think you just fixed every single obfuscation problem ever. Nov 24 02:13:44 any of you guys use Android Studio ? Nov 24 02:14:03 On and off dodobrain. Nov 24 02:14:07 Depends on project size. :P Nov 24 02:14:23 you move to eclipse for big projects? Nov 24 02:14:23 What's up? Nov 24 02:14:27 or the other way around? Nov 24 02:14:38 For small projects, I use the command line tools. Nov 24 02:14:42 i just saw it, never used it before.. infact i've never used idea before Nov 24 02:14:51 I can't deal with ADT. :P Nov 24 02:16:17 It's a good piece of software, but it's definitely beta software. Nov 24 02:17:26 right, i'm new to android-dev.. just wanted to know what i should be using: eclipse/adt or android studio Nov 24 02:17:40 i could go with command line, but i'm not yet familiar with the entire process Nov 24 02:17:49 so eventually i want to go back to vim + console Nov 24 02:17:50 Command line probably isn't a good idea. Nov 24 02:17:58 Note to self: do not use the remove redundant braces fix in IntelliJ because it is _not_ intelligent about it Nov 24 02:17:59 At least at the start. Nov 24 02:18:32 Nilium, A lot of the more "magic" tools for refactoring in IntelliJ aren't too great. Nov 24 02:19:02 Well, in Scala's case, it just joins all the lines in the braces together. Nov 24 02:19:03 And that makes the code invalid. Nov 24 02:19:10 I'd say to start out with Android Studio and if it doesn't do the stuff you need or isn't stable enough, use ADT. Nov 24 02:25:28 Still trying to figure out the Git branch support in IntelliJ. Nov 24 02:26:41 Anyone had any luck? Nov 24 02:29:00 i use the command line Nov 24 02:29:13 So do I usually. Nov 24 02:29:40 But I don't usually make big Android projects. Nov 24 02:34:50 Nilium, what are you talking about, moto x is the best android phone Nov 24 02:34:59 there's absolutely nothing underwhelming about it Nov 24 02:37:17 unless you want a bigger screen, I suppose Nov 24 02:37:29 only spec whores can have anything negative to say about the moto x Nov 24 02:37:45 you really can't beat active display and touchless control Nov 24 02:45:18 I've used it, it's a good phone, just seems like it's running on half-year-old specs Nov 24 02:45:27 half year old specs Nov 24 02:45:28 who cares... Nov 24 02:45:38 Well, I'll be using one in a week anyway, so that's what I'm going to be fiddling with Nov 24 02:45:43 my pc from 5 years ago still runs fine today Nov 24 02:46:16 admittedly, some parts got upgraded along the way, though... Nov 24 02:47:14 I care if it means the phone won't last long enough to see another update, meaning I'm out cold for two years on hardware running old OS versions. Nov 24 02:47:27 it will always be the case on verizon Nov 24 02:47:53 * pfn pack & Nov 24 02:53:25 Does rthe Moto X come with stock android? Not with whatever motoblur? Nov 24 02:53:59 It comes with a mostly stock. Nov 24 02:54:04 More stock than other moto devices Nov 24 02:54:30 hello Nov 24 02:54:40 but less stock than nexus? Nov 24 02:54:51 How can I have some preferences protected by password ? Nov 24 02:59:56 it's basically stock **** ENDING LOGGING AT Sun Nov 24 02:59:58 2013