**** BEGIN LOGGING AT Sat Apr 12 02:59:59 2014 Apr 12 03:39:56 any devs interested in trading downloads/ratings for free aps? Apr 12 03:40:25 apps' Apr 12 03:40:52 PM me if so Apr 12 04:08:01 I have a PreferenceScreen nested in a PreferenceScreen and I'm using an OnPreferenceChangeListener, but it's not working on the items in the nested PreferenceScreen, do I need to do something special to interact with the nested screen? Apr 12 04:13:19 If I login with an Android application and send the data via JSON to a POST, do I need to use base64 encoding? Apr 12 04:24:26 nebby: how are you making the json? Apr 12 04:26:27 getJSONfromUrl and params.add Apr 12 04:32:11 nebby: it would depend on what the backend is expecting Apr 12 04:32:30 I mean, safety wise Apr 12 04:32:35 Should I be? Apr 12 04:32:53 Because I read base64 should be used in HTTP requests? Apr 12 04:33:03 or does json encoding already take care of similar issues? Apr 12 05:03:22 safety? encoding != encryption Apr 12 05:18:55 i have a LinearLayout in a RelativeLayout, and i have set the layout_width of the LinearLayout to match_parent, but there is spaces between the LinearLayout and both sides, how to remove it? Apr 12 05:20:05 do you have padding set on relativelayout? or margins/padding on linearlayout Apr 12 05:20:28 should paste code Apr 12 05:20:57 in RelativeLayout, android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" Apr 12 05:21:16 padding left&right, what r those values Apr 12 05:21:21 more than 0dp? Apr 12 05:21:27 16dp Apr 12 05:21:30 yes Apr 12 05:21:31 there you go Apr 12 05:21:37 remove those Apr 12 05:21:37 thx Apr 12 05:21:51 f2prateek: not safety as in security. safety as in HTTP requests being able to read all the data Apr 12 05:22:34 canvs2321: it works :) Apr 12 05:22:38 :) Apr 12 05:34:04 hey Apr 12 05:34:05 fukn Apr 12 05:34:29 I'm trying to create a new dialog and I'm a bit lost. I'm targeting android 2.2 and I think DialogFragment isn't supported!? Apr 12 05:34:50 I just need a dialog to pop up, let the user enter some info, then press OK Apr 12 05:34:55 seems overly complicated Apr 12 05:35:01 to do such simple thing Apr 12 05:35:48 * g00s chcuckles Apr 12 05:36:06 Koolaids- you've made your life overly complicated supporting 2.2 anyhow Apr 12 05:36:50 but...I want my app to run on a wide audience, not just people using the latest technology Apr 12 05:36:58 Hell, my personal phone only runs 2.3 Apr 12 05:37:44 1% is a wide audience according to your math :) Apr 12 05:38:09 for real? is that how many use 2.2? Apr 12 05:39:43 oh, the light bulb goes off Apr 12 05:41:25 well ok then what should i target then? 2.3.6? Apr 12 05:41:39 aka gingerbread? Apr 12 05:42:07 if your phone is 2.3, i suppose Apr 12 05:42:17 or target 19 and minsdk=9 Apr 12 05:42:25 use the support library, appcompat Apr 12 05:42:36 well I just want to be able to create a fucking dialog box, dunno why support for that isn't in 2.2 Apr 12 05:42:52 of course 2.2 creates a dialog box Apr 12 05:43:11 it and you *can* use dialogfragment on 2.2 anyhow Apr 12 05:43:21 cool Apr 12 05:43:27 splain how? Apr 12 05:44:38 look at the support lib examples you lazy bumb Apr 12 05:45:15 ok Apr 12 05:45:57 Bumb (verb) to turn a lesbian straight ; oops i think i meant bum but hehe Apr 12 07:04:52 Greetings, cab anyone give me insight on where to start for import java.fingerprintscanner Apr 12 07:07:18 Alright, dialog layout done, time to fill in the values. Apr 12 07:12:59 I'm trying to set up a data base for fingerprints or even to Learn how this scanner I know nothing about import java.fngscn Apr 12 07:13:30 I'm trying to figure out how to dump system info through adb Apr 12 07:13:52 Hardware then api Apr 12 07:14:39 The battery for this s5 at is holding a good charge so far ! Apr 12 07:17:07 My Lenovo averages 9 hours on battery. Apr 12 07:20:12 Wow that's beast Apr 12 07:21:00 Only get 1 for this dell Apr 12 07:21:16 lol Apr 12 07:21:45 I love my tablet. Apr 12 07:21:53 That has a red scroll on the middle of the keyboard? Apr 12 07:22:34 ??? Apr 12 07:23:29 Older Lenovo laptops have a mouse built in the keyboard Apr 12 07:23:50 Oh, no. This is a new tablet. Apr 12 07:23:53 What's the cpu ghzs Apr 12 07:24:26 yeah add a Bluetooth keyboard. Apr 12 07:24:31 Crap, forgot that. Quadcore .... let me check the cpu again. Apr 12 07:24:52 It's basically a desktop g Apr 12 07:25:41 You would happen to know anything about Android java programming for a finger print scanner? Apr 12 07:26:15 I have crossed sights about using external hardware that's just about it Apr 12 07:26:27 Sites Apr 12 07:26:57 1.2 gjz. Apr 12 07:27:00 ghz Apr 12 07:27:23 I don't know about the fingerprint stuff yet. Apr 12 07:27:42 I have only been working with Android for about a month now. Apr 12 07:28:05 Still getting use to this keyboard layout I setup. Apr 12 07:29:01 But tablets are the new PCs, so I figured I should get one. lol Apr 12 07:32:05 I can't wait to get into OpenGL ES. Apr 12 07:32:23 I finally have a machine that's bleeding edge. lol Apr 12 07:43:40 Yea 9 hrs battery power I'd say! Apr 12 07:46:29 Lenovo is an underrated brand, because of a rocky start. Apr 12 07:47:13 But I really love this machine. I wonder how I lived without it. Apr 12 07:49:03 Yesterday I got lost, I don't have a smartphone yet, but found a free wifi and got on Google Maps ... found my way. Apr 12 07:51:15 Asking again :( Apr 12 07:51:22 What are the prereq of android RAM_CONSOLE for persistent RAM during a reboot (to preserve it) Apr 12 07:51:28 I think the persistent RAM is erased or lost in my case Apr 12 07:52:17 In a reboot the RAM should be cleared, that's one of the most common reasons to reboot. Apr 12 07:52:55 persistent RAM is a feature to get the log with /proc/last_kmsg Apr 12 07:52:59 This is why I ask here Apr 12 07:53:03 To store the RAM for an app you are writing you'll have to save the state to the storage memory. Apr 12 07:53:13 Dr-shadow: why you need it? Apr 12 07:53:19 No, I'm not writing an app, it's for kernel debugging Apr 12 07:53:25 oh. Apr 12 07:53:32 lol Apr 12 07:54:14 I don't mess with kernels now, they got too complicated for me to keep up about 15 years ago. Apr 12 07:54:48 ^^ Apr 12 07:56:10 Sometimes, my build breaks the kernel and I need to see what happened but the ram console is specific for mtk phones so I removed it and I'm trying to re-enable android ram console but it seems the memory is lost or not protected Apr 12 07:56:46 Dr-Shadow please see topic Apr 12 07:57:39 There is two irc chan for android so I assumed that android-dev is for all development questions right ? Apr 12 07:57:43 i had a client email me today with this very elaborate diagram of what he wanted his app to look like, but didn't explain anywhere what he wanted the app to actually 'do' ... ahh very awkward lol Apr 12 07:58:00 Dr-Shadow: app development, yes Apr 12 07:58:20 Actually, I know of four Android channels here. :P Apr 12 07:58:48 bankai_au: that sounds annoying. Apr 12 07:59:00 android, android-dev, android-root and ? Apr 12 07:59:07 he's put a lot of thought into the design, which is great, just not enough into the context lol Apr 12 07:59:14 android-off Apr 12 08:00:06 Not here then Apr 12 08:00:10 There are probably more channels too, I'm usually the last to know. Apr 12 08:00:32 There is two officials android and android-dev so ... Apr 12 08:00:52 I'm in here just in case I need some help with app dev. Apr 12 08:02:10 So I should ask on #android I suppose... Apr 12 08:03:55 No, #android-root would be for kernels. Apr 12 08:04:39 but android-root has topic set to Root/custom ROMs Apr 12 08:05:31 The kernel is part of the root for Linux systems. ;) Apr 12 08:06:02 is this #android-yellowpages? Apr 12 08:06:27 (String .getBytes ("US-ASCII")) is supported but it replaces characters with diacritical marks with a question mark. Apr 12 08:06:28 Gah, seems so, all of the sudden. Apr 12 08:06:31 Oh yes I see what you mean Apr 12 08:06:55 But this is not an official chan Apr 12 08:06:57 Is there a similar way to get bare letters? Apr 12 08:07:08 'bare?' Apr 12 08:07:16 (less ppl on this) but nvm Apr 12 08:07:25 A-Z Apr 12 08:07:41 Ah, alphabet only. Apr 12 08:08:19 i'm kinda shitty that escape and wq do nothing in intellij. i'm sick of seeing :wq in my code hehehe Apr 12 08:08:29 I need to see if it changed from pure Java before I try to answer, yecril71pl Apr 12 08:11:11 The Java runtime does not officially support US-ASCII. Apr 12 08:11:44 yecril71pl: can you follow urls in your client right now? I found a page that has a solid answer. Apr 12 08:11:58 Yes I can Apr 12 08:12:19 I am on a Galaxy Apr 12 08:13:40 http://www.roseindia.net/tutorial/java/corejava/convert.html this should be the same. Apr 12 08:17:33 I haven't learned all the differences between Android and Java EE yet. lol Apr 12 08:18:25 KittenKoder thats easy; they have nothing in common Apr 12 08:18:31 But (IDN .toASCII ()) will return Punycode, won't it? Apr 12 08:18:32 except 'Java' Apr 12 08:19:04 Java EE is for servers Apr 12 08:20:00 java.net packages are in the Android SDK. ;) Apr 12 08:20:14 thats not jee Apr 12 08:20:27 Punycode? Gah, all this new lingo. Apr 12 08:21:56 The Internalisation tutorial does not say what happens to characters out of scope Apr 12 08:22:08 No, but that's why I don't know if it's the correct answer. ;) Apr 12 08:22:16 Wait. Apr 12 08:23:40 In Java EE it was a String method that originally did such conversions, why isn't that in Android? Apr 12 08:25:22 (IDN .toASCII), as the name suggests, is not for arbitrary text. Apr 12 08:25:47 It is for Interationalised Domain Names. Apr 12 08:26:34 So then you have to use the regex method for typical screens in Android? Apr 12 08:27:13 I do not know, I am still looking Apr 12 08:28:25 BTW, the tutorial says "Updated for Java 8" Apr 12 08:28:41 and it contains gems like Apr 12 08:28:55 Wait, UTF still uses the first 256 codes for letters. Apr 12 08:29:31 "Few text editors currently support Unicode text entry." Apr 12 08:29:35 All you have to do is walk over the char array and only add those under the value of 256. Apr 12 08:30:12 But I want to get letters for letters Apr 12 08:30:36 And ASCII only Apr 12 08:31:03 as the old sayng goes "use utf8 and fargettaabartit" Apr 12 08:31:26 Yeah, the Latin letters are in the 0x00nn range of UTF anyway. Apr 12 08:32:30 In my case, it would be easier to get ASCII letters first. Apr 12 08:33:04 Aren Apr 12 08:33:26 Sorry, still getting use to this keyboard. Apr 12 08:33:39 NP :-) Apr 12 08:34:00 Are you interrupting keyboard input for a field or do you have a String object? Apr 12 08:34:28 I have a String object. Apr 12 08:35:08 "If you are using the JDK software that is compatible with version 1.1", says the tutorial updated for Java 8. Apr 12 08:36:48 Let me write out a quick pseudo-code to illustrate what I am trying to explain. Apr 12 08:38:29 There are letters above 0377 that I need to convert to ASCII letters Apr 12 08:39:04 So your method does not work, KittenKoder Apr 12 08:41:17 ??? What letters? Apr 12 08:41:22 What letters?!? Apr 12 08:42:04 Nothing above those would be Latin letters. Apr 12 08:43:51 There are letters based on Latin alphabet above 0377. Apr 12 08:44:53 I need to recast them into US-ASCII. Apr 12 08:47:08 "based on?" example? Apr 12 08:47:33 É => E Apr 12 08:47:50 Ę => E Apr 12 08:48:23 Erm, those are actually different alphabets, technically. For that you'd have to regex. Apr 12 08:50:25 Solution found: Normalize to form D first and delete thevquestion marks. Apr 12 08:50:43 Solution found: Normalize to form D first and delete the question marks. Apr 12 08:51:03 That would mean you'd also have no question marks in the result. Apr 12 08:51:54 It happens that the original text does not contain question marks, so NP with that. Apr 12 08:52:00 lol Apr 12 08:52:04 okay then. Apr 12 08:52:41 Gah, I'm in here to avoid the math of my current project. Apr 12 08:53:33 Hexagonal maps. Converting to array points. Apr 12 08:53:55 From a touch point with an arbitrary offset. Apr 12 09:10:04 bankai_au around ? Apr 12 09:11:27 I figured out what I want to do for my first real app, after a couple learning/practice ones. Apr 12 09:13:47 SimonVT ? Apr 12 09:13:57 Hi. I am starting out with Android development and have read about making location based apps using the LocationManager(both types of providers). Now I read about the Google Play Services Locations API which is supposed to be high level and does a lot of book-keeping for me. But I still am confused - can someone orient me with the pros/cons of each? Apr 12 09:29:56 hi all Apr 12 09:30:40 I have a question about this, https://groups.google.com/forum/#!topic/android-platform/YzAdLtzM6MU Apr 12 09:30:56 doens't android support absolute HID requests Apr 12 09:31:09 the kernel has support for it Apr 12 09:31:14 EV_ABS..... Apr 12 09:38:51 When an app is set to suspend state to claim the resources when in the background, are static objects Apr 12 09:39:12 When an app is set to suspend state to claim the resources when in the background, are static object states maintained? sorry about the double post. Apr 12 10:23:21 Hello everyone Apr 12 10:23:54 anyone got an idea how they achieved the middle column list? https://lh3.ggpht.com/deVZucz-RJnP5xbuAQqk2TNgi2c8Ds0nwThCo7gA-zaZTSLpuDw_V1A1JTiFL6CLK8s=h900-rw Apr 12 10:24:14 Im curious about the styling Apr 12 10:27:48 or this list: http://dd6xle2n4vut.cloudfront.net/com.romantymchyk.squawk_1.png Apr 12 11:05:30 With a ListView Apr 12 11:26:06 Hi Apr 12 11:26:38 How to make text size as possible as screen size Apr 12 11:30:44 hello Apr 12 11:31:11 could anyone suggest good book related to android development? Apr 12 11:34:05 arietis, you need to learn the java programming language to develop android apps Apr 12 11:34:59 i know java language, i just need book related to android sdk Apr 12 11:35:19 http://d.android.com/ Apr 12 11:35:19 best practices etc Apr 12 11:35:26 here you go! Apr 12 11:35:28 docs are for nerds Apr 12 11:37:25 there should be the book which covers most of the SDK Apr 12 11:38:31 just see it Apr 12 11:39:15 https://developer.android.com/training/basics/firstapp/index.html Apr 12 11:39:26 arietis ^ Apr 12 11:39:40 i wanna read it on paper Apr 12 11:39:51 print it Apr 12 11:39:56 lol Apr 12 11:40:25 i think it's nice reading for WC Apr 12 11:41:35 are you guys using native SDK only? Apr 12 11:41:47 or QT aswell? Apr 12 11:42:10 What is the easiest way to give a friend an application I am developing to test on his phone? Apr 12 11:42:26 use hockey app Apr 12 11:45:52 looks cool Apr 12 11:45:55 no free option though Apr 12 11:46:22 there is free trial Apr 12 11:46:30 nebby, send the APK to him :) Apr 12 11:46:58 cool and he can run it as long as he he enables developer options? Apr 12 11:47:47 there is also testflightapp.com but i'm not sure if they still support android Apr 12 11:48:23 nebby, he just has to enable unknown sources under security, he doesn't need dev options Apr 12 11:48:42 And he just copies it into the storage or what? Apr 12 11:49:03 he can just click on the attachment in email. copy on stoage. install from pc Apr 12 11:49:04 stuff. Apr 12 11:52:25 I know how to open email attachments o.o Apr 12 11:58:14 I hate Eclipse Apr 12 11:59:52 use idea Apr 12 12:09:37 arietis meh Apr 12 12:09:44 I still don't get how this issue still exists Apr 12 12:09:54 Eclipse throws a fit every now and then that too many files are open Apr 12 12:10:16 I don't get how it's opening that many files that it hits the kernel limit Apr 12 12:15:44 hi Apr 12 12:21:21 hi Apr 12 12:21:48 hello Apr 12 12:22:20 :) Apr 12 12:22:21 I don't have an SD card on my Galaxy I9000, how could I make a Nandrobackup before installing a New Rom Apr 12 12:22:38 is it possible to turn off quit/join messages? Apr 12 12:23:28 jackbrown: #android-root Apr 12 12:24:10 ok found it in the options Apr 12 12:24:53 SimonVT: ok thanks Apr 12 13:24:25 if I use Debian, what is the least painful way to get a working SDK Apr 12 13:24:27 ? Apr 12 13:24:37 I don't particularly care about Eclipse Apr 12 13:27:40 Has anyone had a problem making actionbaractivity launching onActivityResult? Apr 12 13:29:59 Cause I'm launching a ActionBarActivityfrom a fragment but when i close the activity the onActivityResult isn't even launched Apr 12 13:54:03 I want to improve my java programming skill, which will be useful in android app development. Any resource or Book you can recommend? Apr 12 13:55:07 just program something, it gives you better experience than a book usually unless you are absolute beginner Apr 12 13:58:39 :ktwo I am not beginner, but still not fill confident ;( I am inspired by http://square.github.io/ guys, amazing guys with amazing code. But having difficulties to get simple ideas Apr 12 13:59:49 and I do programming, just copying someone code Apr 12 14:00:17 and strugalling to make it work in my way Apr 12 14:07:41 kamol, well copying some code isnt really bad, you can copy it and try to adapt it. programming without using google is almost impossible these days Apr 12 14:11:02 Do fragments run through onPause() and onResume() when they are swiped off and on the screen respectively? Apr 12 14:12:35 generally, yes. Apr 12 14:12:50 hm Apr 12 14:13:04 what do I do when my app doesn't have an activity per se Apr 12 14:14:03 I mean, I'd like to be an account provider Apr 12 14:14:18 what would I use as my default activity? Apr 12 14:17:13 Thorbear: Thanks Apr 12 14:21:11 imho having an activity is not technically required Apr 12 14:21:28 but it could be good so the user sees an icon he can open and see some options Apr 12 14:21:57 and get some quick inline help Apr 12 14:24:20 hey guys, i want the text in a texview centered vertically. this works. BUT if i set the height of the textview to "42dp" the text sticks at the top of the textview. how can i make it centered vertically even then? (textview is within a linearlayout) Apr 12 14:24:20 Hello :). Apr 12 14:26:31 is there another iab helper class besides the one from google? Apr 12 14:26:38 the one from google is terribly bug ridden Apr 12 14:27:17 mmm we have more questions than answers. Apr 12 14:27:42 Here is another one: Can I have different layouts for each element in my ListView ? Apr 12 14:30:54 Unknown0BC: Yes, if you code your adapter such that it loads different views under different circumstances. Im not sure what performance issues you might hit with dynamically loading different views multiple times, though. Apr 12 14:31:27 Unknown0BC: Generally, an adapter on the list view caches the view you are inflating so it doesn't have to keep reloading. Im not sure if it caches multiple views. Apr 12 14:32:19 Look up getViewTypeCount and getItemViewType to use multiple layouts in a listview Apr 12 14:33:21 adkins: You center the text in a TextView with android:gravity Apr 12 14:34:00 hi all Apr 12 14:34:40 SimonVT: perfect, thank you! Apr 12 14:35:20 I am using startActivityForResult(i, 1); to fetch an account from phone book the code works on many android versions but not working on android 4.04 ,any help? Apr 12 14:56:11 :ktwo thank you Apr 12 14:56:26 what do you think about this book ? http://www.amazon.com/gp/product/0321498054/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=introcs-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0321498054 Apr 12 15:14:33 hi guys Apr 12 15:14:47 i have a problem with a listview...... Apr 12 15:15:05 in my listview there is 4 labels Apr 12 15:16:27 there are 5 labels... and i have 1 position[1] strings arrays ...and i want set the textview with array value... example... tv1 = array[1] etc... Apr 12 15:17:15 how to create a new rows for set the continue position array's in textview? Apr 12 15:59:57 looking for a simple advice on how to achieve this: http://i.imgur.com/GbaYyHT.png (I want Fragment1 refreshed after hitting the back button) Apr 12 16:11:40 so I can install my app using adb install bin/MyApp-dbug.apk Apr 12 16:11:44 but how would I uninstall it? Apr 12 16:11:51 when I try to reinstall after building again I get an error Apr 12 16:12:07 Failure [INSTALL_FAILED_ALREADY_EXISTS] Apr 12 16:13:07 adb install -r your.apk Apr 12 16:13:09 try -r bufferloss Apr 12 16:13:27 SimonVT: to the rescue before I hit the enter :-P Apr 12 16:13:34 yep that works, thanks Apr 12 16:29:04 any hints on my issue? Apr 12 16:34:31 where do Intent and View come from? (which package(s)) Apr 12 16:36:06 ok I see intent, but View hasn’t been stated yet in the android tutorial Apr 12 16:36:12 https://developer.android.com/training/basics/firstapp/starting-activity.html Apr 12 16:37:07 Its is java tutorial ? Apr 12 16:37:24 For android develop Apr 12 16:49:22 hi Apr 12 16:49:34 according to this link : http://stackoverflow.com/questions/6009487/get-the-height-of-virtual-keyboard-in-android Apr 12 16:49:41 we can't get the height in fullscreen Apr 12 16:49:52 How to get the virtual keyboard height in fullscreen ? Apr 12 16:52:40 Right, so i'm not specifying a theme for my application so it will use the default theme of the phone. And thats working. Should I rather do it some other way ? Apr 12 16:53:52 But now more to the actual question I have, How can I get the color of the title bar's background when I have not specified a theme ? Apr 12 16:53:57 * Unknown0BC blinks Apr 12 16:55:56 Is that going to be difficult ? Apr 12 16:56:14 haha Apr 12 16:56:17 * Unknown0BC shakes head Apr 12 16:57:12 * lesge wait for answer Apr 12 16:58:23 what was your question lesge ? Apr 12 16:58:35 according to this link : http://stackoverflow.com/questions/6009487/get-the-height-of-virtual-keyboard-in-android Apr 12 16:58:38 we can't get the height in fullscreen Apr 12 16:58:41 How to get the virtual keyboard height in fullscreen ? Apr 12 16:59:55 * Unknown0BC shrugs Apr 12 17:00:36 * lesge kick android ui creator Apr 12 17:11:27 "great" eclipse just totally froze up... Apr 12 17:12:23 and killing it does not kill it. Apr 12 17:14:13 is someone here ? Apr 12 17:15:45 ? Apr 12 17:17:00 hello Apr 12 17:17:02 thepoosh can you help me Apr 12 17:17:10 i don't know Apr 12 17:17:17 I need to ge the virtual android keyboard height IN FULLSCREEN Apr 12 17:17:31 ??? Apr 12 17:17:34 according to this link : http://stackoverflow.com/questions/6009487/get-the-height-of-virtual-keyboard-in-android Apr 12 17:17:34 i´m having problems to unterstand how to use services, someone know how to call services methods from an activity? Apr 12 17:17:44 it's not possible to get the keyboard height in fullscreen mode Apr 12 17:17:57 there are a lot of examples on internet about two buttons, one of them to start the service and the other to stop but i need to start and stop my services w/o buttons Apr 12 17:32:05 is it a ghost channel , Apr 12 17:32:07 ? Apr 12 17:32:12 no one talks Apr 12 17:33:23 lesge: ghosts only haunt and eat the innocent Apr 12 17:33:32 talking is forbidden Apr 12 17:33:34 lesge: I don't think there is a way to measure the height of the keyboard at all, but you can measure the rest Apr 12 17:33:46 yes I know that Apr 12 17:33:54 my problem is I want to do that in fullscreen mode Apr 12 17:34:03 so? Apr 12 17:34:06 and it seems that resize event don't works in fullscreen Apr 12 17:34:14 according to this post : http://stackoverflow.com/questions/6009487/get-the-height-of-virtual-keyboard-in-android Apr 12 17:34:25 they said : It only pushes the window upwards if it is not in fullscreen. Apr 12 17:36:43 @thepoosh is that right ? any idea ? Apr 12 17:37:16 don't measure the softkeyboard Apr 12 17:37:21 or don't use fullscreen Apr 12 17:43:47 lol I cant believe i'm still sitting here trying to figure out how to get the background color of the current themes title bar, when the theme is the phone default. Apr 12 17:43:55 sorry I have a dc Apr 12 17:44:04 @thepoosh did you told me something ? Apr 12 17:44:26 don't measure the softkeyboard Apr 12 17:44:26 or don't use fullscreen Apr 12 17:44:31 These guys who design these languages like to put things in things in things in things in things and takes ages to scratch them out. Apr 12 17:45:38 wat? Apr 12 17:46:12 your answer is to not measure the keyboard ? Apr 12 17:46:17 that make no sense :) Apr 12 17:46:44 why do you need to measure it? Apr 12 17:46:56 I'm making my own ui in a OpenGl context Apr 12 17:47:04 I need the height for my textfield Apr 12 17:47:28 it's for a game Apr 12 17:48:06 so there is no way to measure the height in fullscreen mode ? Apr 12 18:04:29 hi guys.. i have a big problem with my listview. when i lunch the application.... there is http://imagebin.org/305217 Apr 12 18:04:33 all == ...why?? Apr 12 18:05:09 this is my code http://paste.ubuntu.com/7240769/ Apr 12 18:06:40 * Unknown0BC shakes head Apr 12 18:07:45 mamma mia, all equal! Apr 12 18:07:59 SuD: sei italiano? Apr 12 18:08:42 sorry, español, just kidding Apr 12 18:09:32 ok ok :) can you helpo me? Apr 12 18:09:35 i think the problem is that you use "end" instead of "position" Apr 12 18:10:52 or maybe i did not understand the code... Apr 12 18:11:28 does "lista" contain all data of one single flight, or all flights? Apr 12 18:11:58 all flights Apr 12 18:12:20 i have this problem with and not end Apr 12 18:12:43 you have to make the code depend on "position" i think Apr 12 18:13:00 is all ok, i ve tried with debug... the latest problem is rows Apr 12 18:13:46 i have readed this tutorial http://www.learn2crack.com/2013/10/android-custom-listview-images-text-example.html Apr 12 18:14:00 i think that instead of "end" you should use something like "position*6" in most places Apr 12 18:14:27 position isn't rows1 , rows2? etc? Apr 12 18:15:27 maybe this? row-1-of-flight-1, row-2-of-flight-1, ... row-1-of-flight-2, row-2-of-flight-2, ... Apr 12 18:16:17 is it a simple array holding "multidimensional" data? Apr 12 18:17:13 SuD: String[] lista = new String[200]; this is my strings array and i have popultate this with JSOUP Apr 12 18:18:00 and it contains all fields of all flights, right? so it is multidimensional data Apr 12 18:18:12 yes Apr 12 18:18:36 it's ok, you could have a different array for each type of field, or a multidimensional array Apr 12 18:19:12 SuD: http://paste.ubuntu.com/7240816/ Apr 12 18:19:43 so if each flight has exactly, lets say 6 fields, in order to access a field you need to something like: lista[position*6 + 1] Apr 12 18:20:41 SuD: yes with end! end+6.. it's work fine Apr 12 18:20:57 the problem are the rows == Apr 12 18:20:59 but "end" is fixed, isn't it? Apr 12 18:21:08 you need a variable Apr 12 18:21:12 yes Apr 12 18:21:29 if you always use end, you will always get the same flight Apr 12 18:21:33 with end or without end... in my app shows all rows == Apr 12 18:21:49 have you tried with position*6 ? Apr 12 18:22:01 uhm... tryy :) Apr 12 18:25:43 dosen't work ... i have used position for set the backgrounds rosw.. and it works... but i look any worw == Apr 12 18:26:42 can you paste the code again? Apr 12 18:27:51 SuD: this is customlist.java http://paste.ubuntu.com/7240855/ Apr 12 18:28:34 SuD: and here arrive.java http://paste.ubuntu.com/7240860/ Apr 12 18:31:10 i'd like you to use "position" variable, test it, and it if fails then paste the code again Apr 12 18:31:48 do you understand that if you always use "lista[end-4]" it will always access the same data and that's why all rows look the same? Apr 12 18:32:11 they are different rows, but filled with same data over and over Apr 12 18:40:31 Hey, if I continue to create new mediaplayers over and over to play different songs, eventually the music no longer plays. Do I have to do a mp.release() or something? Apr 12 18:44:32 is it possible to call notifyDataSetChanged from inside adapter? Apr 12 18:44:39 *from inside fragment Apr 12 18:44:40 SuD: no..no... http://paste.ubuntu.com/7240931/ see here... end+6 Apr 12 18:44:48 in debugging is all ok., Apr 12 18:45:08 i read all with end+6 Apr 12 18:45:25 all flights Apr 12 18:45:39 but that is valid only while the list is growing Apr 12 18:46:05 once it has got to its definitive size it doesn't change anymore Apr 12 18:46:27 how can register sensorEventListener in onCheckedChanged method of toggle button Apr 12 18:47:58 SuD: and solution? Apr 12 18:48:08 ... Apr 12 18:48:21 position*6 + ... Apr 12 18:50:11 where? SuD Apr 12 18:50:51 in getView() Apr 12 18:51:19 replace every "end" with "(position+1)*6" Apr 12 18:51:39 the only thing to be tuned is the "+1" Apr 12 18:56:01 hey guys, my S2 just died. Please suggest what other good Android phones out there for me to research. Apr 12 18:56:34 ascend p6 Apr 12 18:57:17 How do I know which phones get Kitkat update? Apr 12 18:57:24 SuD: my app crash Apr 12 18:58:41 check gsm-arena :D Apr 12 18:58:46 SuD: http://paste.ubuntu.com/7240988/ Apr 12 18:59:12 now time for fine tuning Apr 12 18:59:42 length=9 ? odd Apr 12 19:01:23 OraPrevista = OraPrevista.substring(10); SuD here Apr 12 19:02:43 what's the value of "end" ? Apr 12 19:03:11 end is 0 - 6 - 12 - 18 Apr 12 19:04:00 i'm not sure if understand Apr 12 19:04:12 sorry but... i don'tunderstanding this...one moment Apr 12 19:04:16 by the time getView gets called end should have a final value i think Apr 12 19:12:03 you may start by printing to logcat the value of position, and the value of list[...] Apr 12 19:12:12 or use step-by-step debugging Apr 12 19:14:11 SuD: http://paste.ubuntu.com/7241047/ Apr 12 19:14:43 is it when it crashes? Apr 12 19:16:07 if i replace with "(position+1)*6 Apr 12 19:16:19 crash Apr 12 19:16:56 now i try to print tv1.setText(lista[end-4]); //codice volo Apr 12 19:17:00 ecc Apr 12 19:19:36 hi, please help with this https://gist.github.com/meadhikari/10551834 i am not able to send the post request, please help what sm I doing wrong, thanks in advance Apr 12 19:22:11 i have identifier the error... SuD Apr 12 19:22:21 is end!!!!!! Apr 12 19:22:45 Position is ok Apr 12 19:28:14 Hey, trying to set up a paid app, google lets me set the price in my local currency, I dont see a way changing that to USD, am I missing something? Apr 12 19:30:29 aviran: you can setup price per-country Apr 12 19:32:25 p_l: yeah, but that would would mean different prices for different countries, seems weird that google doesnt let you choose the default currency... Apr 12 19:33:58 aviran: probably to better manage expectations - you set the price in the currency you will receive Apr 12 19:35:05 that would create weird numbers in other currencies, even if i calculate it to be 2usd, it would change the next day when the rates shift Apr 12 19:36:05 just created a first simple app with layout-land version of the xml, but it's only showing the default. with and without configChanges="orientation"... what do? Apr 12 19:36:51 on android studio emu Apr 12 19:37:13 aviran: the reverse is true for receiving the money, I guess Apr 12 19:52:23 Hi all, does anybody in here have experience with TelephonyManager? I could use some help Apr 12 19:52:24 I'm trying to find a picture/diagram of the Android software stack. Googling this gives me results, but theyre all from blogs and such. Is there such a diagram... or is it written out somewhere on d.android.com or in aosp? Apr 12 19:55:12 I have tried to make my class extend BroadcastReceiver and have edited the onReceive() method to get the state of the phone. If it is ringing, I have tried to change the volume to silent using AudioManager. I am having some issues troubleshooting though and would appreciate any feedback Apr 12 20:27:24 How can I vertically center the TextView inside a DialogFragment using a custom layout? I've tried using RelativeLayout/LinearLayout with gravity/layout_center to no avail. The text always goes near the top of the dialog window. Apr 12 20:30:14 how do I get the sql string that SQLiteStatement sends to the db? toString() keeps the '?'s, I want the full string after the bindings. Apr 12 20:36:27 Greetings, can anyone enlighten me on where to start with finger print scanner Dev? Apr 12 20:39:23 How hard would it be to port a java application to android. Apr 12 20:40:10 slie: redo of the whole UI Apr 12 20:40:42 slie: plus changes necessary to deal with UI being on separate thread from the rest of application Apr 12 20:40:45 What about if I just wait to build the ui for when if port it. Apr 12 20:41:15 slie: depends on what the application uses. Check with the libs available on android etc. Apr 12 20:42:07 Sounds good thanks Apr 12 20:45:13 Eventually i will answer my own questionBiometric security for android device? Apr 12 20:48:34 Hi guys, I`m using a tutorial for starting dev on android and it has been good so far. I get to a step where I have to install android sdk and select the version of the sdk. He says 2.3.3 is most popular but I`m guessing time has passed... can anyone tell me which would be most popular or a good choice for now.. and learning Apr 12 20:50:12 I presume older version will work on newer? I.e for dev purposes, an older version best Apr 12 20:53:46 Raynerd: http://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net Apr 12 20:55:05 if u are beginning, you should just start with whatever version the tutorial suggests. there are differences. you will install other versions later on. Apr 12 20:55:10 api15 Apr 12 20:55:25 tutorials suck, ignore them Apr 12 20:55:26 thanks.. Apr 12 20:55:53 got me going so far!! Apr 12 20:56:01 What pfn said. I dont know anyone who has learnt Android via tutorial. Apr 12 20:56:30 they just guessed their way through it? Apr 12 20:56:31 The best thing to do, is to decide on a basic application which will use many different features, and search how to do each bit. Read the API etc. Apr 12 20:56:45 Is there some kind of View container that I can layout lots of View Components in and then hide some of the top most and bottom most views components and have the rest automatically fill the available space? Apr 12 20:59:41 I want to make something similar to this. My first thought was to layout all combination of images within the view, and the toggle Gone on the images (the top ledges) when not needed. Then the rest should scale to fit. Apr 12 20:59:43 Would that work? Apr 12 21:00:46 Hi! Im Using a PreferenceFragment for dealing with Preferences. I want to fetch additional data from a webserver, after user finished editing the settings and when they get stored. How can I do that? is there a listener I can register or is there a method to overload? Apr 12 21:00:53 It's just that I think my RelativeLayout acts weird when images are offset partly outside of it. Apr 12 21:08:44 If I develop an application that uses Google Cloud Messaging, would it be fairly easy to add suport for iOS later even if it does not support GCM? I mean rolling something similar for Android. Apr 12 21:09:18 iOS has its own version of push messaging. Apr 12 21:09:36 urban airship Apr 12 21:09:46 GCM goes through Google Servers, APNS goes through Apple Servers Apr 12 21:10:28 So could I use google appengine if i want notifications for iOS? Apr 12 21:10:39 You should run them separately. Apr 12 21:11:01 Anthaas: But i want someone on iPhone to be able to play someone on Android. Apr 12 21:11:22 since google appengine only supports http i need notifications to tell the clients to make a request. Apr 12 21:11:55 Is there any online directory where I can find "safe" android apps? Or "secured" apps? Apr 12 21:12:31 Then you could probably work out a way to send both messages to the same script and have it distribute as necessary Apr 12 21:12:43 Although someone with a bit more know-how such a pfn might be able to suggest a better way. Apr 12 21:32:49 How can I use MediaPlayer to play a video from a byte[]? Apr 12 21:36:43 you can't right now Apr 12 21:36:47 it expects an url Apr 12 21:38:17 Hmm, I tried using a FileOutputStream to a file and using the file descripter of the fos as the source for MediaPlayer, but it doesn't work - fails to set up the media player Apr 12 21:42:42 Import android.hardware.sensorforfinger2 --help Apr 12 21:43:18 Is every persons heart diff too? Apr 12 21:43:29 Biometric security 101 Apr 12 21:44:41 is there biometric on heart? Apr 12 21:46:06 Not sure if the particular hardware I'm trying to develop software for supports signature Apr 12 21:48:42 I know one thing I'm only scanning my pinky I'm not giving the NSA anymore intel Apr 12 21:49:53 what if that's what they want you to do? Apr 12 21:51:06 So is there any way to play a video in my app from a file that's still being written to? Apr 12 21:52:19 My heart just turned blue I caught a trout Apr 12 21:53:25 Beautiful day in the Appalachian mountains Apr 12 21:55:20 don't let it get away Apr 12 21:57:41 Is the only way to play a video file still being written to, to set up a local http server and use a localhost url? Surely there must be a cleaner way than that :( Apr 12 22:00:15 Thanks Apr 12 22:00:58 io u a solid Apr 12 22:01:24 if you could play from a stream, i don't know Apr 12 22:07:55 I really must be missing something obvious Apr 12 22:08:43 heqs: it is possible Apr 12 22:10:21 funkbox, I really hope so :( but google is not producing anything useful - mainly people are asking about audio and are directed to AudioTrack, or told to run a local http server Apr 12 22:13:33 Can anyone help me with implementing a BroadcastReceiver? I am trying to use TelephonyManager to do something when a user receives a phone call, but I can't even get a Toast notification to show up Apr 12 22:14:28 I have a AlertDialog.Builder that calls .setItems(R.array.document_modified_options, ...) is there any way to set any menu item entry as disabled? Apr 12 22:15:02 Link to my code in question: http://stackoverflow.com/questions/23035556/do-something-when-a-phone-call-is-received Apr 12 22:18:14 An app doesn't receive system broadcasts until an activity in it has been launched once by the user Apr 12 22:26:36 Thanks @SimonVT. So how do I structure my application so that an activity launches and starts to listen for broadcasts? I want it to run in the background. There is not really a need for a UI Apr 12 22:27:19 You just need to launch an activity once, then broadcastreceivers registered to listen for system broadcasts will be invoked Apr 12 22:27:32 I have a AlertDialog.Builder that calls .setItems(R.array.document_modified_options, ...) is there any way to set any menu item entry as disabled? Apr 12 22:38:30 Sorry @SimonVT, I am still a bit new to Android development. Does this mean that I need to create another Android Activity class and start it? At the moment, I only have the IncomingCallInterceptor class in my application. Apr 12 22:52:10 Does Log.*() log to a specific app log or some general system log? Apr 12 22:56:19 isnt onPause called when you drag down the statusbar? i mean the app is not visible then... Apr 12 22:56:33 leg Apr 12 22:56:37 lag oir log Apr 12 23:38:46 What is the best way to check a user's calendar for if they are busy? Apr 13 00:14:13 Hey wondering because I can remember. But will "onActivityResult" on an Activity thats not the active Activity shown to the user? Can I use it just for callbacks without overriding the main Activity? Apr 13 00:15:06 O is there a way to fire off a function pointer / delegate of "onActivityResult" thats attached outside the Main Activity class? Apr 13 00:15:22 Like Windows APIs usally have type thing? Apr 13 00:16:23 On iOS I can have a class act as a delegate without it being the root View. On Windows I can simply attach a callback delegate. Apr 13 00:17:13 But on Android it seems like its required Activity "onActivityResult" can only be called when the activity is the one thats active, or am I wrong? Apr 13 00:18:38 zezba9000: How are you ending the activity when it is not active? Apr 13 00:20:32 Fenny: I'm trying to add features such as "AdMob" that requires "onActivityResult" without overriding the current activity. Apr 13 00:21:17 I don't have access to the source code of the main Activity, thus can change the way "onActivityResult" works. Apr 13 00:22:45 Hmm, sounds like a problem. Especially where you don't have the source. Is it just a jar library or...? Apr 13 00:22:50 I also can't override the main Activity as it conflics with other plugins Apr 13 00:23:02 Its for a Unity3D plugin Apr 13 00:23:11 ahhh, I see. Apr 13 00:23:49 Well, you could decompile the plugin using baksmali, and inject your code into it, and rebuild it with smali. Apr 13 00:23:56 I rly don't understand the logic behind "onActivityResult"... calbacks should be used not "onActivityResult" that has no way to acess it outside the context of the Activity Apr 13 00:24:38 Well the source is Unity3D source Apr 13 00:24:41 cant do that Apr 13 00:24:53 My plugin as it is now overrides the Unity3D activity. Apr 13 00:25:26 But I need to get away from that as Android has to many other Unity3D plugins that try to do that because of stupid "onActivityResul" Apr 13 00:25:55 IAP(GooglePlay) and Loading Images require "onActivityResult" Apr 13 00:26:50 I have a BroadcastReceiver that listens for the phone's state to change. When a user receives a phone call, I want the application to check the user's calendar to see if they are busy or not. If they are busy, then silence the phone. If they are not, then allow it to ring normally. Do I check the user's calendar within the onReceive() method or how would you structure this? Apr 13 00:27:40 zezba9000: Man that is a stumper. Apr 13 00:27:43 Goolge needs to STOP using "onActivityResult" in there APIs or add in a delegate option for it in the Activity. iOS and WP8 never have these issues Apr 13 00:57:47 Where can I make feature requests for the Android API? Apr 13 00:58:43 Activities should have delegate callbacks done the same way iOS does. Would solve so many issues and allow for keeping callback logit where it belongs. Apr 13 01:45:18 does anyone know how to use a mediaplayer to play a video file that is being written to? Apr 13 02:15:02 heqs, yes. Apr 13 02:15:19 make sure that the file is write locked only. Apr 13 02:15:38 if it is read/write locked it won't work. Apr 13 02:18:18 Fenny, ah, so even though I need to simultaneously write to it though? Apr 13 02:19:39 because currently i was trying to use a fileoutputstream to write to the file and a fileinputstream to get a filedescriptor to supply to mediaplayer Apr 13 02:19:51 how would i introduce locking in that scenario? Apr 13 02:20:40 If YOU are writing to it, you can make an audio pump. Apr 13 02:21:10 all you have to do is open a socket, and spoof the http headers. Apr 13 02:21:20 then you can pass a URL to the player. Apr 13 02:21:50 Make sense? :D Apr 13 02:22:13 I think so Apr 13 02:22:23 do you have any link to help me out? Apr 13 02:22:28 bit of a noob Apr 13 02:22:44 something like this? http://stackoverflow.com/questions/14977663/java-sockets-send-a-file-from-the-client-to-the-server Apr 13 02:23:05 just not sure what the socket code should look like Apr 13 02:27:07 I might have an old C# project that did that with grooveshark back in the day, sec. Apr 13 02:29:30 I would snag a web debugger like fiddler2, and look at the contents of the responses, and requests. Apr 13 02:30:03 Hmm Apr 13 02:30:05 I have a raw http CLIENT socket code I hacked together you can look at. Apr 13 02:30:51 https://github.com/FennyFatal/android-grooveapi/blob/master/src/com/fennyfatal/GrooveApi/Utils.java Apr 13 02:30:53 so is there no way to play the video without serving it as a url? Apr 13 02:31:28 Not unless you have a player you can import as a lib, and feed from a stream. Apr 13 02:32:58 hmm Apr 13 02:33:33 http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html Apr 13 02:34:28 i mean i have a series of byte[]s coming in to my app representing an mp4 and i want to just render them to some view in the activity Apr 13 02:34:51 yeah i will have a look at just trying to serve the file as a url, thanks Apr 13 02:38:11 Retrofit will automatically deserialize JSON into POJOs if the member variables of the POJO are named correctly. is there an annotation to specify a different name than what the variable name is? Apr 13 02:39:08 mattblang: its gone through gson Apr 13 02:39:21 mattblang: @SerializedName Apr 13 02:39:26 And yes, it's Gson Apr 13 02:39:29 mattblang: you can use gson's @SerializedName Apr 13 02:40:14 f2prateek, JakeWharton perfect. thanks! Apr 13 02:50:26 Hmm, Fenny, I'm still a bit confused about this method of serving the file Apr 13 02:51:01 Am I right in understanding that the end result can be supplied to MediaPlayer.setDataSource()? Apr 13 02:51:08 Since that's what I need ideally Apr 13 02:52:19 Ah I just found this: http://stackoverflow.com/questions/5343730/mediaplayer-stutters-at-start-of-mp3-playback/5432091#5432091 Apr 13 02:59:37 heqs, yeah that should work. **** ENDING LOGGING AT Sun Apr 13 02:59:59 2014