**** BEGIN LOGGING AT Fri Jan 10 02:59:59 2014 Jan 10 03:09:48 do the emulators give me a fair representation of what my app would actually look like? mostly regarding text size Jan 10 03:10:12 they can, but you should generally not be depending on a particular text size. Jan 10 03:13:17 well, my interface is completely custom and i'm trying to match it up to how the ipad version of my app looks Jan 10 03:13:30 i'm not sure if that changes things Jan 10 03:13:48 yes Jan 10 03:13:58 you should also not try to match it to the ipad version Jan 10 03:14:17 Android has an actual layout system Jan 10 03:14:28 it's not applicable to my app Jan 10 03:14:28 devices are not all exactly the same size Jan 10 03:14:37 yeah, but the layout is all defined based on screen size Jan 10 03:14:39 and do not all have exactly the same size fonts, etc Jan 10 03:15:17 http://www.sub-version.net Jan 10 03:15:27 that grid adapts to whatever screen size Jan 10 03:15:48 there can be any number of buttons but they scroll in various ways Jan 10 03:16:28 so laying out everyting manually has been working well for me, but the font size on a nexus 10 emulator looks nothing like a physical nexus 7... way smaller on the 10 Jan 10 03:20:58 If I'm using the action bar for navigation, should I be using fragments or is it okay to use a different activity for each page Jan 10 03:24:43 windwaker: fragments should be used for all the same 'type' of content Jan 10 03:24:57 what's the benefit to doing that Jan 10 03:29:52 bankai_ ^ Jan 10 03:30:53 hello, anyone online? Jan 10 03:30:59 nobody at all :) Jan 10 03:31:09 err Jan 10 03:31:29 ./who Jan 10 03:31:37 /who ? Jan 10 03:32:07 you. Jan 10 03:32:22 i came here for placing a question, dun know if here is the correct place or if this is my 'lucky day' :D Jan 10 03:32:31 but, I gonna shooot Jan 10 03:32:45 first rule of irc, don't ask to ask Jan 10 03:33:44 I have a 2nd phone that I dont use it, so I found an application that allows me to connect on irc, good.. my Question is if there's an application for android as bouncer (psybnc) Jan 10 03:34:21 I can keep ON that phone and connected to my wireless network, would be great to use it as bouncer :P Jan 10 03:34:42 I did look on google for such thing but .. no succes :\ Jan 10 03:40:12 ailaviu: why would you want a bouncer running on your phone. I would look into something like ZNC http://wiki.znc.in/ZNC Jan 10 03:41:12 you can VPSs for like 5 bucks a month if you need to Jan 10 03:41:57 since I have this phone and not using it.. :) I do prefer to have my own service, hehe Jan 10 03:44:08 ailaviu: can you write java? Jan 10 03:44:23 i think there is a quassel client for android Jan 10 03:44:32 hm, im not good at that Jan 10 03:44:32 :\ Jan 10 03:45:18 client != bouncer g00s Jan 10 03:45:36 right, but you could use quassel core somewhere lese Jan 10 03:45:40 *else Jan 10 03:45:59 quessel run in only 12 parascs ;) Jan 10 03:46:02 wherever you would run your bouncer Jan 10 03:46:04 or was it 22 Jan 10 03:46:48 ah 18-parsec route Jan 10 03:47:58 huh Jan 10 03:48:18 I'm only a noob person who does just Install/uninstall Jan 10 03:48:19 :))) Jan 10 03:48:53 heh was joking because quassel was almost spelled kessel - as in star wars kessel run in 18-parsec Jan 10 03:52:31 so.. it's an imposible mission Jan 10 03:52:33 :D Jan 10 03:52:36 * ailaviu -_-' Jan 10 03:57:54 Hello dudes Jan 10 03:58:17 hi Jan 10 03:58:18 Is it bad practice to keep a retrofit service instance at application class ? Jan 10 03:58:40 and be created again on application create Jan 10 04:13:29 Baluse: no Jan 10 04:23:20 hehe now I feel safe to use it Jan 10 04:23:42 Hey guys! I'm trying to "mSensorManager.unregisterListener(mSensorEventListener);". I have a service which creates a thread (along with a Handler) in which I registerListener and in which I have a sensorEventListener. If I want to unregisterListener, do I have to do it from inside the sensorEventListener, from inside the new thead, or from the service? Or, it does not matter at all? Jan 10 04:24:27 JakeWharton I know its your library , so using ((MyApp) getApplication()).getService() is okay ? Jan 10 04:26:10 wilornel do not know but why registering outside the thead ? it wont run ? Jan 10 04:26:34 I'm doing registerListener inside the new thread Jan 10 04:26:51 It's because I don't want the calculations to be slowing down the main thread Jan 10 04:27:12 Now, where from do I need to unregisterListener ? Jan 10 04:27:37 I dont know , but I guess it could be from anywhere since you have da instance.... Jan 10 04:28:14 Baluse: That's what I thought. Jan 10 04:28:41 The real problem is that even though I unregisterListener, my onSensorChanged is still being called inside SensorEventListener... Jan 10 04:30:39 There are many submissions on StackOverflow about unregisterListener not working, but none of them has a correct answer Jan 10 04:32:46 hm Jan 10 04:33:16 could it be wrong instance or whatever ? Jan 10 04:33:31 i recall I had simillar problem once Jan 10 04:33:41 Nope, not wrong instance. I'm starting to think that unregisterListener is not unregistering all sensors Jan 10 04:33:51 Wait, you had a similar problem? Jan 10 04:35:12 Baluse: Jan 10 04:37:25 yes but I dont remember now Jan 10 04:37:46 its 6:37 am here havent sleep - insomnia probs Jan 10 04:41:55 I just set the sensorManager to null....I guess it's fine? Jan 10 04:42:02 ... for now? Jan 10 04:43:36 Baluse: Yep.you want them to be singletons Jan 10 05:18:19 What's the most efficient way to get the current date in Android. I'm looking to get a format in M/D/YYYY. Jan 10 05:19:33 eghdk: https://www.google.com/search?q=current+date+in+Android ? Jan 10 05:19:38 That way lies madness. Jan 10 05:19:59 Which way? Jan 10 05:22:04 if you're making an app that's not just for you , please please DON'T use that format Jan 10 05:22:30 There's probably a way to get the system format. Jan 10 05:23:00 In which case, you should just use that and then blame Google for stuff. Jan 10 05:23:54 Oh crap. M/D/YYYY, ew Jan 10 05:26:01 whats wrong with month day year Jan 10 05:26:18 2/3/2014 Jan 10 05:26:26 well, it's unlogical Jan 10 05:26:43 and confusing Jan 10 05:26:46 yeah Jan 10 05:27:11 there is D/M/YYYY and there is M/D/YYYY. Sometimes you have to try and figure out the date is which Jan 10 05:27:13 the entire us uses that date format, so if you target the us, that format is probably the way to go Jan 10 05:27:15 for example with 2/3/2013 Jan 10 05:27:41 desmin88: The entire us? Are you sure? Maybe some people will find that way unlogical, and will go with day month year Jan 10 05:28:12 well not speaking in absolutes Jan 10 05:28:20 but it is the accepted date format in thus Jan 10 05:28:22 the us* Jan 10 05:28:25 so what? fuck everyone that doesn't live in the USA? Jan 10 05:28:41 great way to support the american stereotype :) Jan 10 05:28:48 "the entire us uses that date format, so if you target the us, that format is probably the way to go" Jan 10 05:29:09 don't put words in my mouth please. Jan 10 05:30:35 also, 'the american stereotype' lol Jan 10 05:31:31 i think the date/time format is stored in system prefs Jan 10 05:31:43 ^ Jan 10 05:31:51 wasn't there a class to get the user's preferred format ? Jan 10 05:31:54 DateFormat.get* will return that format Jan 10 05:32:16 its one of these mofos Jan 10 05:32:17 http://developer.android.com/reference/android/text/format/package-summary.html Jan 10 05:32:18 getDateFormat, getLongDateFormat, getShortDateFormat, getMediumDateFormat Jan 10 05:32:29 If I was making an app, I would check if it would be US and format it for US, for everyone else, I would put it in rest of world format. This APP is for me. So I woant the simplewst way to get the date. Jan 10 05:32:58 just get the system set format Jan 10 05:33:02 everybody wins Jan 10 05:33:04 ^ Jan 10 05:33:37 isnt ther ;library for sorting region stuff like this Jan 10 05:33:49 like set region to usa, show date stuff Jan 10 05:34:00 XXCoder: see the above links and references Jan 10 05:34:15 What object do I use to get the date? Jan 10 05:35:04 the date object Jan 10 05:36:27 myDate.getDate() is depracated? Jan 10 06:29:44 What's the best way to get if today is a monday, tuesday, etc; Jan 10 06:41:20 Calendar.getInstance().get(Calendar.DAY_OF_WEEK); Jan 10 06:41:26 eghdk, Jan 10 07:14:46 Can I download programatically the Statistics data for my Android application? Jan 10 07:15:00 * lut4rp yawns Jan 10 07:15:11 i.e. the data you can Export as CSV from the Developer Console -> All Applications -> Statistics Jan 10 07:15:31 I want to be able to download it with wget/curl/etc or from a programming language Jan 10 07:23:27 I see there is no mention of gsutil tool like for the Financial reports Jan 10 07:23:35 in the Statistics section Jan 10 07:23:36 :( Jan 10 07:23:59 Google should allow developer to download usage statistics programatically Jan 10 07:42:45 i.e. the data you can Export as CSV from the Developer Console -> All Applications -> Statistics Jan 10 07:45:12 use Charles to watch the request Jan 10 07:45:21 emulate via curl Jan 10 07:48:37 JakeWharton: yeah, I thought of doing that, see what is the ajax request the page sends Jan 10 07:48:52 probably doesn't need much Jan 10 07:57:16 Hello. I'm using Html.fromHtml("Ϭ"); but it's not working, not displaying anything. Jan 10 07:57:20 What am I doing wrong? Jan 10 07:58:06 not giving us enough info to help Jan 10 08:01:56 :D Jan 10 08:02:46 Spanned newText = Html.fromHtml(existing+ "Ϭ"); myButton.setText(newText); Jan 10 08:02:55 I just see the existing text plus a bit of space Jan 10 08:03:00 so clearly it's updating Jan 10 08:03:09 but the html.fromhtml isn't working properly Jan 10 08:10:28 Anyone here using eclipse in Linux.? Jan 10 08:12:43 please help me in solving "PANIC: Could not open: Motorola" Jan 10 08:12:52 what does this means?? Jan 10 08:21:16 dheeraj_, open a shell, type "dmesg | grep -i panic" Jan 10 08:21:42 Is there any output? Jan 10 08:21:59 Ologn: No output Jan 10 08:22:31 If you do a "dmesg | tail ", does it say anything about panic's or Motorola? Jan 10 08:23:24 Ologn: No nothing is there about panic or motorola Jan 10 08:23:28 :/ Jan 10 08:23:42 dheeraj_, OK, so it wasn't a kernel panic probably Jan 10 08:24:06 Ologn: so whats the problem here? Jan 10 08:24:27 wouldn't a kernel panic halt the box ? Jan 10 08:24:45 g00s: Means? Jan 10 08:25:05 g00s: that's usually the default way a kernel panic would be handled Jan 10 08:26:15 dheeraj_, the problem is you're trying to open an AVD and the message is a symptom of that not working currently Jan 10 08:26:16 I googled about this but they all say about Windows.. To create a environment variable.. Jan 10 08:26:43 An AVD probably called Motorola...or perhaps an actual Motorola device Jan 10 08:27:11 Ologn: this is the device i made from AVD menu, Jan 10 08:27:33 Previously it was PANIC: Could not open: AVD for_Nexus_S_by_Google in linux Jan 10 08:27:59 dheeraj_, the problem is Eclipse is not finding the .android directory Jan 10 08:28:56 Ologn: I found that directory in /root/.android Jan 10 08:28:57 http://stackoverflow.com/questions/15103782/avd-panic-could-not-open-not-a-path-issue Jan 10 08:30:03 Ologn: I read this link before also Jan 10 08:30:03 Also, if it is in root, the permissions might be strange Jan 10 08:30:13 I usually create avd's as a normal user Jan 10 08:30:38 Ologn: so do i copy them any where else..?? Jan 10 08:30:45 If yes where?? Jan 10 08:31:21 dheeraj_, what happens when from the command line you run "emulator -avd Motorola", or whatever the avd is called? Jan 10 08:32:21 it is saying emulator: command not found. Jan 10 08:34:05 I have a website that uses sockjs and websocket for chat. Can I interface an android app to communicate with the website's chat users as well? Jan 10 08:34:36 dheeraj_, it should be in the tools subdirectory of your android SDK directory Jan 10 08:34:40 the emulator command Jan 10 08:34:57 let me see Jan 10 08:35:48 Ologn: same output as on eclipse "PANIC: Could not open: Motorola" Jan 10 08:37:20 dheeraj_, you said it was in root...I think it's a permission problem Jan 10 08:37:38 Ologn: .android directory is in /root/ and android SDK directory is in /home/dheeraj/android Jan 10 08:38:02 does it make some thing wrong/ Jan 10 08:38:04 ? Jan 10 08:38:27 You can probably create a new AVD and use it...and if you can do that and not use the old one...it's probably a permissions problem Jan 10 08:39:18 Ologn: i tried that too, before it was nexus_by_Google then i made a new ADT Motorola. But same problem Jan 10 08:40:37 I think everything points to some kind of permission problem Jan 10 08:41:03 How can i change the permission? Jan 10 08:41:53 (sudo) chown -R directory changes who owns a resource Jan 10 08:43:28 You mean .android? Jan 10 08:43:41 chown -R /root/.android Jan 10 08:43:59 chown -R /home/dheeraj/android Jan 10 08:44:45 (sudo) chown username -R directory Jan 10 08:45:01 so username now owns directory and whatever is under it Jan 10 08:47:27 Ologn: same problem Jan 10 08:47:43 do i restart? Jan 10 08:49:10 Personally I would create a user called test, log in as test, get the Android SDK, and do everything as test - no pointing to root or dheeraj Jan 10 08:49:20 I would create an AVD and try to launch it Jan 10 08:49:41 Do everything in one account, in one directory /home/test Jan 10 08:50:42 If that works, you can then go back and sort out the permissions for the other stuff Jan 10 08:51:15 It should work, and it makes things less complex...if it works you have one working avd on your machine, while you debug the rest Jan 10 08:51:44 Ologn: actually i am new to android, i had never worked Jan 10 08:51:47 before Jan 10 08:51:59 i just need to test the app i got here Jan 10 08:52:27 dheeraj_, it's unusual to have a /root/.android My .android is in my home directory Jan 10 08:53:21 With a new test user, it would be /home/test/.android and maybe /home/test/sdk , all in the same directory, all owned by the same user Jan 10 08:53:23 Ologn: so do i copy that in /home/dheeraj Jan 10 08:53:42 ohkk Jan 10 08:54:26 Create a test user, get it working all by itself as the test user. If it works there, you can play with the AVD as test, and debug the rest at your leisure. Jan 10 08:55:47 That you're pointing to /root/.android makes it seem like your setup got botched somewhere Jan 10 08:56:22 /home/dheeraj/.android would be a much more normal place for that directory to be Jan 10 08:56:44 bbl Jan 10 08:56:46 i copied that in my home directory Jan 10 09:00:52 Hey folks, quick question - when I set a mock location on Android, the actual location I get is ~3 kilometers away from what I needed, and logging the coordinates shows variation in the first decimal... any way to avoid this? Jan 10 09:06:05 Tee_Pee_: sounds like you are doing something very wrong Jan 10 09:07:09 How wrong can you make a new location and send it to your location provider? :S Jan 10 09:09:47 idk, but when i mock my locations i get accurate down to 5m or so Jan 10 09:10:01 sounds like the mock location youve set is wrong Jan 10 09:10:16 Triple and quadrouple checked with google maps Jan 10 09:10:25 what are you using to mock your location? Jan 10 09:10:46 I set the lat, long, accuracy to 1, no bearing, no altitude, the location provider is set to PRIORITY_HIGH_ACCURACY Jan 10 09:10:53 Code Jan 10 09:11:02 the location request is set to * Jan 10 09:11:17 I connect my location provider, set it tmock mode, create the location and assign it Jan 10 09:12:56 have any code? Jan 10 09:13:05 *to show Jan 10 09:13:06 I do, but let me just try this... one second Jan 10 09:14:03 Yeah, now it becomes funky... no matter what I set the lat and long to, mock location provides me the same coordinates Jan 10 09:14:23 show me some code :) Jan 10 09:14:34 been a while since ive mocked locations Jan 10 09:16:10 http://pastebin.com/cyuybM4z Jan 10 09:16:16 there, that's the extent of it Jan 10 09:16:28 ignore the bearing, I just tried that now, didn't work without it either Jan 10 09:18:01 ok... herp derp I'm an idiot... the location I get is actually my real location... i.e. mocking doesn't work at all. Jan 10 09:18:07 I have it enabled on my device and in my manifest Jan 10 09:19:46 you have enable mock locations on device? Jan 10 09:20:00 Yup Jan 10 09:20:05 However I know what might be the issue Jan 10 09:20:15 before assigning the location in my app I do a quality check against what it already has Jan 10 09:20:22 might be that the mock location is failing that Jan 10 09:20:54 nope... it keeps returning the real location Jan 10 09:21:04 you could try https://play.google.com/store/apps/details?id=com.lexa.fakegps just to check that everything works when going that direction Jan 10 09:21:19 so go there, set a fake location, back to your app and check what you get then Jan 10 09:21:39 if that didnt change your location something else is wrong Jan 10 09:23:33 cant see anything wrong with your code. Go through http://developer.android.com/training/location/location-testing.html again and just double check everything Jan 10 09:23:35 let's see Jan 10 09:23:56 didnt see a mLocationClient.connect() anywhere in your code, but i guess its somewhere else? Jan 10 09:24:19 also, make sure to check that your code is actually run :P Jan 10 09:25:40 ok yeah, even that returns my actual location Jan 10 09:25:42 so it's not my code Jan 10 09:25:48 it's there Jan 10 09:27:02 Hi. Jan 10 09:30:43 Ok, stupid solution attempt - rebooting my phone Jan 10 09:31:32 :D Jan 10 09:33:44 Can I assign VERY little data to a view ? (For example using getTag setTag method of the views) Jan 10 09:34:45 I seem that this is good way: http://stackoverflow.com/questions/5291726/what-is-the-main-purpose-of-settag-gettag-methods-of-view Jan 10 09:37:30 nothing Jan 10 09:37:39 looks like cyanogenmod doesn't like mock location Jan 10 09:39:30 hm, i dont think thats the issue since ive used mock locations on my cm devices Jan 10 09:39:39 however, maybe theyve broken something in latest Jan 10 09:39:52 if you run the demo code by google, is there still an issue? Jan 10 09:40:03 Anyway, if you run the code in your emulator thing should work Jan 10 09:43:04 hey, I got it to work Jan 10 09:43:16 I had to disable network location in my phone's location settings Jan 10 09:44:34 huh, weird Jan 10 09:56:17 hi, how can I solve "Error executing appt: Return code 138"? I tried googling it, but didn't find anything that could help me. Jan 10 09:59:13 hmm Jan 10 09:59:20 does genymotion support faking of internet speed? Jan 10 10:16:13 How can I change ui from onPostExecute() from asynctask ? Jan 10 10:22:16 bluesm: Just do it; you're already on the ui thread when you get called in that method. Jan 10 10:27:55 is it correct that a libraries AndroidManifest.xml file is not used (unless using gradle which seem to merge all modules manifests)? at all Jan 10 10:28:39 ohcibi, yes. Jan 10 10:29:08 <_genuser_> I can't figure out why the TextView isn't taking up fill width and centering the text. http://pastebin.com/nvqM5TFZ Jan 10 10:29:49 <_genuser_> I have tablelayout width fill_parent, table rows is also fill_parent and textview is also fill_parent. however it just shows as wrap_content on teh left side. Jan 10 10:30:25 _genuser_: user match_parent instaed of fill_parent.. fill_parent is usefull if you have two views in a linearlayout and want one of the views to fill up all space not used by the other view Jan 10 10:30:30 _genuser_: s/user/use/ Jan 10 10:30:50 _genuser_: maybe this fixes the centering as well but i'm not sure Jan 10 10:31:20 <_genuser_> testing it now. I thought fill_parent says take up all the space , and you're done. : Jan 10 10:31:23 <_genuser_> :) Jan 10 10:32:29 _genuser_: it does actually but as you want to have one view to take the _whole_ space match_parent is the correct one.. I don't know why its not working with fill_parent.. Jan 10 10:32:38 <_genuser_> row and textview set to layout_width="match_parent" and tablelayout set to fill_parent. nothing different. Jan 10 10:32:57 _genuser_: also have a close look at all your xml files.. maybe you are including some styles that define padding or margin.. they are generated by default when creating a new project Jan 10 10:33:45 _genuser_: if tablelayout has no other view in its parent view you want match_parent there as well Jan 10 10:33:49 <_genuser_> right above it, I have a linearlayout with a textview, and it works for that one. Jan 10 10:34:05 then maybe the tableview has some styles applied Jan 10 10:34:43 <_genuser_> I was using it cleanliness. Jan 10 10:35:03 <_genuser_> is there any reason not to just use LinearLayout with vertical and use more LinearLayouts with horizontal inside? Jan 10 10:35:16 <_genuser_> inner LinearLayouts being "rows" Jan 10 10:35:28 _genuser_: i just tried it and it takes up all the spaces (tried the first paste) Jan 10 10:35:52 <_genuser_> even in the emulator it doesn't work. Jan 10 10:35:53 _genuser_: does the root view has match_parent? Jan 10 10:36:03 <_genuser_> let me try it on a real device. Jan 10 10:36:13 <_genuser_> no, nothing has match parent in mine. 'coz I like to run a tight ship. Jan 10 10:36:20 <_genuser_> when I tell it to fill_parent, that's it, lol!!! Jan 10 10:36:25 oO Jan 10 10:36:45 _genuser_: are you only joking? Jan 10 10:37:12 <_genuser_> yep. I'm a new android dev. Have recently been getting more comfortable with designing UI. Jan 10 10:37:21 <_genuser_> Using what I know and learning more along the way. Jan 10 10:37:46 _genuser_: oh so you don't need any actual help? Jan 10 10:38:17 <_genuser_> I need help. I meant I was joking about "run a tight ship, it muyst be only fill_parent" Jan 10 10:38:43 <_genuser_> ok, I have set all of them to "match_parent", except the rootlevel scroll view, which is fill_parent. Jan 10 10:38:44 fyi, fill_parent is the same as match_parent Jan 10 10:38:49 <_genuser_> should I change that one also? Jan 10 10:38:58 CallumTaylor: no its not.. Jan 10 10:39:02 yes, it is Jan 10 10:39:11 quite literally the same Jan 10 10:39:16 http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT Jan 10 10:39:36 <_genuser_> now, they're all set to match_parent from that TableLayout to it's parent(s). still now centering or filling up the parent. Jan 10 10:39:37 no... match_parent will set the width to the width of the parent... fill_parent will set the width to what is available in the parent view Jan 10 10:39:56 match_parent = -1, fill_parent = 1 Jan 10 10:39:57 -1 Jan 10 10:40:07 _genuser_: there must be somethine else wrong.. as I said I even tried it with fill_parent and it works... fill_parent should be the same as match_parent for only one child indeed Jan 10 10:40:08 they are the same, fill_parent got renamed to match_parent in api 8 Jan 10 10:40:27 oO Jan 10 10:40:36 yep Jan 10 10:41:33 <_genuser_> tried it on a real device, still the same. Jan 10 10:41:39 okay.. makes sense anyways.. Jan 10 10:41:44 <_genuser_> ohcibi: let me delete the entire view, and create with just that much code. Jan 10 10:42:11 _genuser_: you must be doing wrong something else: your code worked in my example Jan 10 10:42:57 _genuser_: http://pastebin.com/zM4bxwqX this is my full layout.. shows a black row which takes upt he entire width Jan 10 10:43:46 <_genuser_> ohcibi: nice! I'm going to clean up the entire file just start with that. if that works, then it's something inside that file that's messing it up. Jan 10 10:43:58 _genuser_: or styles Jan 10 10:44:21 <_genuser_> are there any styles that would be getting applied here if I'm not specifically adding them in my UI tags? Jan 10 10:44:23 _genuser_: they get generated when creating a new application and they contain padding for the root view... Jan 10 10:44:36 _genuser_: iirc you can define styles in the manifest Jan 10 10:44:43 no Jan 10 10:44:46 just themes Jan 10 10:44:50 which can have styles Jan 10 10:45:25 <_genuser_> right, I see proj/values/styles.xml only has one tag: