**** BEGIN LOGGING AT Mon Dec 16 03:00:01 2013 Dec 16 03:00:22 Alright. If I call invalidate in one of my main view classes. Should it call the on draw for the other view objectics in the same layout which are of a different class? Dec 16 03:46:45 How do I work around that invalid description thing when importing Dec 16 03:46:56 I cloned from git into my workspace folder, and it won't let me import Dec 16 03:47:10 When I do this in normal eclipse with normal java, I've never had a problem Dec 16 03:52:18 Any knows of a library or piece of code that wraps Bluetooth in SelectableChannel or something that acts similarly? Dec 16 03:54:27 So I've just sent the email declingin a job offer which I was supposed to start tomorrow. Not looking forward to the reply :P Dec 16 03:54:40 just curious on why Dec 16 03:55:01 Why I declined? Dec 16 03:55:04 low pay Dec 16 03:55:18 hmm same reason i declined that offer few years ago Dec 16 03:55:20 It's a junior role but £18k per annum Dec 16 03:55:24 for a 9 - 6.30 job Dec 16 03:55:55 junior android dev, i'd be the only android dev there Dec 16 03:56:13 that wouldn't be fun Dec 16 03:56:18 nope! lol Dec 16 03:56:28 that's what I got as a graduate... Dec 16 03:56:29 but for real £18k is pretty low right? Dec 16 03:56:44 oh.. really Leeds, I'm sure that was 10 years ago where 18k was a fortune Dec 16 03:56:54 Not saying you're old... Dec 16 03:57:10 <|0xD34D|> you're implying :P Dec 16 03:57:14 hehe Dec 16 03:57:18 rather more than 10 years :) wasn't a fortune - it wasn't like it was pre-decimalisation or anything - but it was nice Dec 16 03:57:32 well he was correct, he didn't actually say it ;) Dec 16 03:57:59 right now I am just looking for desk job of some form Dec 16 03:58:03 bit hard to find Dec 16 03:58:20 i could probably earn £18k now as a tesco supervisor where I wouldn't have as much responsibility Dec 16 03:58:21 but yeah Dec 16 03:58:36 XXCoder, desk job? Dec 16 03:58:54 yeah as in not very physical and outside Dec 16 03:59:24 I see Dec 16 03:59:49 yeah Dec 16 03:59:56 last offer was for tech support tier 3 Dec 16 04:00:09 $12 per hour was quite low for that Dec 16 04:00:16 as well as 3,000+ miles move Dec 16 04:01:29 yeah that's roughly £18k Dec 16 04:01:37 3,000 miles, where did you find it?? Dec 16 04:01:45 oh I live at one corner of usa Dec 16 04:01:51 oh I see lol Dec 16 04:01:53 and it as at opposite corner lol Dec 16 04:02:15 yeah in europe it would be several countries away Dec 16 04:02:23 yeah Dec 16 04:02:33 well out for a bit gonna do dishes Dec 16 04:02:46 aight Dec 16 04:29:43 back Dec 16 04:30:25 sup Dec 16 04:31:11 Hm, that's interesting, dx hates scala-react. Dec 16 04:32:23 On windows, my phone is not showing up in device manager Dec 16 04:32:36 I already tried installing samsung's driver, and rebooted Dec 16 04:32:56 Google seems to indicate I haven't done enough voodoo magic to get it working Dec 16 04:33:35 that crap can be "fun" to fix :P Dec 16 04:38:53 I usually install adb drivers by editing google's usb_driver.inf file Dec 16 04:38:57 and presto, done Dec 16 04:39:06 easiest way to go without searching for driver files Dec 16 04:39:19 just edit the usb_driver.inf, copy/paste a couple lines in the right section, and set the right vid/pid Dec 16 04:39:24 (vid/pid are in device manager) Dec 16 04:39:30 just get the adb unified driver, it works for everything Dec 16 04:39:36 but it doesn't Dec 16 04:39:44 because windows is stupid and requires a vid/pid for every driver Dec 16 04:40:03 the unified one contains them all Dec 16 04:40:08 unless someone is maintaining a list of every single android device in existence and putting it in a single .inf Dec 16 04:40:18 yes, that's exactly the point of that driver Dec 16 04:41:24 Yes, but my phone isn't showing up in device manager, we're not at the drivers step yet Dec 16 04:41:43 for debug or what Dec 16 04:41:54 if it doesn't show up at all, something is just broken with your hardware and/or windows installation Dec 16 04:41:58 \o/ Dec 16 04:42:16 My phone dosen't even know it's connected, other than the fact it started charging Dec 16 04:42:33 Somehow it just worked on linux Dec 16 04:42:45 on the same cable, same port? Dec 16 04:43:14 No, different computer, different cable Dec 16 04:43:39 so, then something with the cable or that computer is srewed Dec 16 04:43:42 +c Dec 16 04:43:47 oh, what do you know Dec 16 04:43:55 use a diffrent one. Dec 16 04:43:59 Tried another cable, and it just started installing drivers Dec 16 04:44:41 ಠ_ಠ Dec 16 04:44:45 either it wasnt data cable (charge only) or it was just screwed up cable Dec 16 04:45:38 do those cables even exist? Dec 16 04:45:46 Well aparantly I had one Dec 16 04:45:53 well, broken cables do exist Dec 16 04:45:55 bt yeah it does Dec 16 04:46:02 but yeah broken more common lol Dec 16 04:46:02 but i never heard of charge-only ones Dec 16 04:46:05 You can see things like "usb condoms" Dec 16 04:47:16 charge only ones definitely exist Dec 16 04:47:24 it's very slightly cheaper to run 2 contacts instead of 4 Dec 16 04:47:33 they often show up w/ shitty chinese battery packs or wall chargers Dec 16 04:47:46 yeah, but aren't the data wires usualy used to indicate a charger with more than just 500mA? Dec 16 04:47:47 i make it a point to cut them in half as soon as I discover I've got one Dec 16 04:47:49 charge only is sometimes awesome though Dec 16 04:47:59 This was a cable from a LG phone Dec 16 04:48:09 XXCoder: it is, but invariably, i find myself expecting it to be a real cable :P Dec 16 04:48:12 those virus ridden airplane phone chargers cant do shit to charge only cable Dec 16 04:48:16 lol Dec 16 04:49:26 yeah, there's that Dec 16 04:49:41 virus ridden chargers? oO Dec 16 04:50:02 yeah some airplane charge stands will try to place spyware on your android phone., Dec 16 04:50:12 expecially if you was idiotic enough to leave debug on Dec 16 04:50:12 how should they do that? oO Dec 16 04:50:18 well lots reason Dec 16 04:50:24 money profitting for one Dec 16 04:50:29 how, not why Dec 16 04:50:39 adb.exe has stopped responding.... Dec 16 04:50:45 because a lot of phones allow downloading the contact book over serial Dec 16 04:50:49 even with debug enabled the phones ask auth from new adb clients Dec 16 04:51:01 depends on what android version Dec 16 04:51:07 earlier ones dont. Dec 16 04:51:22 besides even with that there there is still exploits Dec 16 04:51:31 prior to 4.3, no. But more so feature phones Dec 16 04:51:37 as long as device is rootable it is exploitable Dec 16 04:51:43 though I still wouldn't go plugging into random shit Dec 16 04:51:49 me either Dec 16 04:52:04 XXCoder: precisely. This is why I buy dev model phones; screw waiting for carriers to fix things :) Dec 16 04:52:12 lol ok Dec 16 04:52:23 I am not about to buy any new phones Dec 16 04:52:40 no new real keyboard ones Dec 16 04:52:58 yeah; i gave up on real keyboards a few years ago Dec 16 04:53:01 I use hacker keyboard for my touchpad though, it rocks. Dec 16 04:53:19 (around the time I got into the beta program for the bionic and decided 'new free phone' was worth dealing with lack of keyboard) Dec 16 04:53:22 it is almost as good as webos keyboard Dec 16 04:53:22 too few people are interested in keyboard phones. It's just not realy usefull Dec 16 04:53:36 BtbN: I strongly disagree, but it's a matter of personal use patterns. Dec 16 04:53:40 ah free I might go for it Dec 16 04:53:59 yeah I like real keyboard for sms Dec 16 04:54:00 Typing on such micro-keyboards is incredibly annoying Dec 16 04:54:08 unfortunately there's no good real keyboard devices on the horizon Dec 16 04:54:12 heh I still miss my bb 8830 keyboard Dec 16 04:54:25 it was THE physical keyboard, bb sure knew shit Dec 16 04:54:39 BtbN: no more annoying that on-screen keyboards w/ no tactile feedback and which obscure what you're trying to type over Dec 16 04:54:43 s/that/than/ Dec 16 04:55:04 I'm realy happy with swype, i'm nearly as fast with it as with a real PC keyboard Dec 16 04:55:27 good for swype; unfortunately when you need to fix a server remotely, it doesn't do so well. Dec 16 04:56:00 I wouldn't use a phone for that oO Dec 16 04:57:03 I would: If I can carry a phone, or carry a laptop and phone, I'll just take the phone whenever possible. Dec 16 04:57:07 heh I used my sidekick 2 to do my commandline homework once ;) Dec 16 04:57:17 programmed C project Dec 16 04:57:40 I had a C compiler hosted on the palm pilot for a while Dec 16 04:57:45 it was excruciating, but functional Dec 16 04:58:00 I forgot to do that homework and I wasn't in position to do homework till I arrived right on time Dec 16 04:58:15 so screw it, install term connect to college and do homework lol Dec 16 06:11:51 ladies. Dec 16 06:16:22 Ma'am. Dec 16 06:16:53 found a bitchin bug the other day Dec 16 06:17:06 Didn't we all. Dec 16 06:17:19 we'd pass a file path to HttpUrlConnection.guessMimeType(whatever) Dec 16 06:17:35 and the thing just fucking grenades if it has weird chars or too long Dec 16 06:17:50 MimeTypeMap doesnt know about the MAJORITY of file types Dec 16 06:17:59 as its setup on all the android devices I've seen anywya Dec 16 06:19:26 So you've made your own list. Dec 16 06:20:53 I rigged it Dec 16 06:20:58 just manually determine extension Dec 16 06:21:04 then run that method on blah.extension Dec 16 06:21:05 lol Dec 16 06:23:05 Oh, I thought the internal db just wasn't extensive. Dec 16 06:28:06 well the guessMimeType works well Dec 16 06:28:14 unless you feed it filenames it doesnt like Dec 16 06:28:27 the mimetypemap depends on mime maps installed on device etc Dec 16 06:28:39 which in my case often didnt know enough about the filetypes to mess with Dec 16 06:33:45 how the hell do i know what version of TLS i am using Dec 16 06:33:52 hey ron_frown Dec 16 06:34:05 how things gong Dec 16 06:34:09 find work yet? Dec 16 06:34:14 heh, no Dec 16 06:34:24 so 4.1 should have TLS 1.2 Dec 16 06:34:29 or .. uh Dec 16 06:35:55 holy shit, connected only with TLS1.0 seriosly ? Dec 16 06:36:02 i must be doing something wrong Dec 16 06:36:11 although openssl was behind there a bit Dec 16 06:50:16 "you will not get OpenSSL 1.0.1 (and hence support for TLSv1.1 or higher) by default on Android 4.1 or higher, where it is available, without some custom code" Dec 16 06:50:20 WAAAT Dec 16 07:25:58 Is it illegal for users of an application to pay for in app goods by means other than through Google Play store? Dec 16 07:26:05 i.e. bank transfer, check, cash Dec 16 07:35:14 I beleive you can do paypal payments in app Dec 16 07:35:17 I've seen that before Dec 16 07:50:52 anyone here use parse for push notifications? Dec 16 07:51:46 normally they work OK, but we went one out yesterday, but on parse.com its showing up as 'Done (with errors)', but in our API logs, itshows that the API call succeeded Dec 16 07:51:52 is there any way to find out what went wrong? Dec 16 08:23:43 Is it possible to somehow improve Animation class framerate? I have an animation where applyTransformation is called only 8 times so finally animation looks laggy. Dec 16 08:46:10 hey how can i have a button in actionbar for right nav drawer toggle? (i already used ActionBarDrawerToggle for left drawer) Dec 16 08:57:53 I'm not aware of the design guidelines for this, but you can use the overflow menu to toggle the drawer Dec 16 08:58:27 in onOptionsItemSelectred, toggle the drawer if the overflow menu button was clicked Dec 16 09:07:35 how do I put a line as part of a view? Dec 16 09:07:44 like to underline a section Dec 16 09:08:22 Exactly like the Twitter app, the line between the tweets it is showing Dec 16 09:08:23 f2prateek: i already added a button on actionbar beside overflow, but dont know how to make it open right nav drawer on click Dec 16 09:34:32 Hello Dec 16 09:34:42 hi Dec 16 09:35:02 Anyone know if their is an xda channel on this or any other network? Dec 16 09:38:26 M Dec 16 09:44:58 wait, android requires gradle 1.6? Dec 16 09:49:06 storkme latest 0.6.3 requires gradle 1.8 Dec 16 09:49:28 any day a new gradle plugin will come out, i expect it will require 1.9 Dec 16 09:50:00 probably a stupid question but how do i find out what version of com.android.tools.build:gradle i'm using? Dec 16 09:50:32 because I was pointing at 0.5.6, I'm guessing that's out of date? :s Dec 16 09:50:36 well, you should specify it in your build.gradle :D Dec 16 09:51:10 i check in a concrete dep coordinate, but during dev usually have it at 0.6.+ Dec 16 09:51:28 you just have to follow the lists to know when a new one came out Dec 16 09:53:48 i have crated new widget with edittext and textiveiew.. and on change of orientation Dec 16 09:53:57 text in edittext gets updated wrong Dec 16 09:53:59 anyone? Dec 16 10:02:57 mapiko.. what do you mean "wrong" ? Dec 16 10:03:18 i have 2 componets on vie Dec 16 10:03:22 view and both get the same text Dec 16 10:13:53 how are you saving? how are you setting? note that autocorrect will usually force on text input when the softkeyboard is closed (as in during a rotation) Dec 16 10:17:01 every time I try to import using the 'default gradle wrapper' I get an assertionError in IDEA :/ Dec 16 10:28:08 not going well so far :D Dec 16 10:41:28 anyone have experience with AOSP ? Dec 16 10:42:22 i'm compiling a module app_process into (frameworks/base/cmds/app_process) with command "mm", but when i launch emulator, i can't view changes... why ? Dec 16 10:42:54 if i recompile !ALL! with make, so launching emulator i view changes... Dec 16 10:47:34 Quick q: what is best practice to start a new activity vs. replacing a fragment? Dec 16 10:48:16 I remmeber reading a couple of years ago that it was best to split it semantically (ie an activity should encapsulate a particular user desire). Is that still the case? Dec 16 10:49:57 hi folks, i developed 2D two games with andengine. one 8in1 math and other one was memory game but now want to try 3D games. I have a modelling problem. what kind of modelling tools could u recommend? for example only Unity enough or need blender 3dmax etc..?? i already tired gameplay3d , project anarcy, Jmokeyengine, unity.. Dec 16 11:09:19 Hi there. I am trying to configure the built-in android sip client. I adapted my asterisk config, but when I have two clients connected via NAT, I can't call each other. Any ideas? Dec 16 11:10:03 hey, can i reset the emulator to have no GPS fix, after setting a location? Without resetting the whole device? Dec 16 11:15:28 Any idea why my R.raw isn't generated? Dec 16 11:16:10 Oh, I couldn't have subfolders Dec 16 11:18:46 this is going to be a shot in the dark, but is there anyway in gradle to automatically upload an app to google play as alpha/beta/production? Dec 16 11:18:57 i'd love to be able to do daily alphas without manually having to upload Dec 16 11:25:47 CallumTaylor: I don't think there is a way yet. I am looking for this for a long time too. Currently using maven and did not see any chance in doing so Dec 16 11:26:04 awh that's a shame, that would be so useful Dec 16 11:26:21 yeah, its a shame that this is still impossible... Dec 16 11:26:26 i also have like 30 apps based on the same codebase that I have to update, an automated way would be amazing Dec 16 11:27:05 you could try to execute HTTP requests which do uploading Dec 16 11:29:10 problem with google play is it's all JS Dec 16 11:29:21 if it was a basic form, sure i'd give it a hack Dec 16 11:30:41 yeah, that doesn't make it easier Dec 16 11:31:30 CallumTaylor: what I did was building the app via jenkins and providing a second app that does updating Dec 16 11:32:03 just an "update"-button that downloads and starts installation of apk Dec 16 11:33:39 what's the easiest way to get volley into android studio? Dec 16 11:34:05 CallumTaylor: or can't you just deliver one app with the 'core' code plus extensions? Dec 16 11:34:10 no Dec 16 11:34:38 they are all separate apps with a common library which does all the heavy weight in the app Dec 16 11:36:36 CallumTaylor: well ok, if that's not an option, alright. Do you have an open alpha / beta or just for a small group of ppl? Dec 16 11:37:16 oh the alpha thing was for another app, but the upload script could benefit another app i work on that has (and will) have over 30 different separate versions Dec 16 11:37:17 There's no way a share preference set could be deleted unless you force delete it? Dec 16 11:40:15 CallumTaylor: well why don't you want to provide one "core" application that does nothing but provide interfaces? Dec 16 11:40:20 CallumTaylor: like a dependency Dec 16 11:40:35 because each app is for a specific country Dec 16 11:40:44 with content specific for that country Dec 16 11:41:11 CallumTaylor: yeah, that's why you have each app for each country, but the code in common in another one Dec 16 11:41:28 but I see the point that this isn't a good idea Dec 16 11:41:49 oh thats what I do, each APK is just the content, and the stuff doing the UI and what not is in a library dependancy Dec 16 11:42:06 but its just annoying I have to manually upload an APK for each app when we do an update Dec 16 11:44:36 CallumTaylor: an update of the core? Dec 16 11:48:38 almost there, on my last dependency now :D Dec 16 11:51:22 if I update the core library I still need to create every APK because the library is a dependancy for each app Dec 16 11:53:51 * TheSeven has an odd NDK linker problem Dec 16 11:53:55 Can anyone tell me why if I do setLayoutParams() with match_parent for both parameters and even requestLayout() after, the view's height and width equal to 0, the view is of course "visible" Dec 16 11:54:16 soinfo_link_image(linker.cpp:1635): could not load library "libolaserver.so.0" needed by "/system/bin/olad"; caused by soinfo_link_image(linker.cpp:1635): could not load library "libolaartnet.so.0" needed by "libolaserver.so.0"; caused by soinfo_link_image(linker.cpp:1635): could not load library "libolacommon.so.0" needed by "libolaartnet.so.0"; caused by soinfo_relocate(linker.cpp:975): cannot locate symbol "ceil" referenced by Dec 16 11:54:16 "libolacommon.so.0"...CANNOT LINK EXECUTABLE Dec 16 11:54:28 so it doesn't find ceil. Dec 16 11:54:48 IIUC that's supposed to be in libm, which is present on the system, an at least contains the string "ceil" Dec 16 11:55:02 libolacommon.so.o doesn't contain the string "libm" though Dec 16 11:55:23 how can the linker even produce such a situation? Dec 16 11:59:36 any idea if it's possible to somehow inspect the resources that gradle fetches from maven? I'm tryng to use 'com.viewpagerindicator:parent:2.4.+' and it's 'not working', AS keeps telling me @style/Widget.TabPageIndicator isn't found Dec 16 12:10:45 storkme: just look for the aar or whatever file type it is Dec 16 12:13:41 Hi. I'm trying to compile a simple kernel module as per this guide: http://yatsec.blogspot.it/2011/01/guide-to-compiling-custom-kernel.html -- but there is no config.gz on my phone. Can anyone advise? thanks Dec 16 12:14:23 no idea what file type it is :p Dec 16 12:15:39 frib: blame your manufacturer for removing that Dec 16 12:16:56 TheSeven, does that mean there is no way to do this? Dec 16 12:21:03 storkme: look for the folder where dependencies are cached. I know for maven its ~/.m2 Dec 16 13:02:40 Quick sanity check: setting an arrayadapter on the listview. adapter.getCount() is correct, why is my listview not populating? Dec 16 13:05:45 are you sure your listview is visible and the right size and stuff? Dec 16 13:05:56 Yeah, I set a background on it to be sure. Dec 16 13:09:04 Sigh, found it. Was returning inflater.inflate(..) rather than rootView :# Dec 16 13:10:16 one of those things. Dec 16 13:18:08 Following the UI guidelines - when the user is on the top level, and pressing Up will open the drawer menu - then pressing Back should exit the app, correct? Dec 16 13:18:42 Some are requestion I open the drawer before another Back kills the app Dec 16 13:18:52 requesting Dec 16 13:23:03 i'm trying to get the boot.img from my phone using adb shell cat /proc/mtd | awk -F'[:"]' '$3 == "boot" {print $1}' but it doesn't return anything. anyone know what's wrong? thanks Dec 16 13:33:51 Any ideas how to create a mock UsbManager? The public constructure to UsbManager has a service interface argument IUsbManager, which is not available in the SDK. That is, I cannot subclass UsbManager and call the public constructor. Any ideas? Dec 16 13:47:04 The only solution I can come up with is to wrap UsbManager in my own class and implement a mock version of that. Dec 16 13:49:59 anyone knows a message queue that actually works relyably on android? Dec 16 13:50:11 like that actually deals with disconnects etc Dec 16 13:50:28 most mq's apparantly assume a stable internet connection Dec 16 13:55:52 Hello, could you tell me what is the best way to start an activity only if it is not already on the stack please? i can't find anything about that. i'm calling startActivity(myIntent), but this should not do anything if that activity has been opened previously (and not closed) Dec 16 14:00:14 have a problem with proguard in android build, can i ask here? Dec 16 14:03:18 i need to remove log using proguard. if i use only my proguard file works fine. if i use android default and my file, log stay in build. why? Dec 16 14:03:36 "-assumenosideeffects class android.util.Log { *; }" Dec 16 14:03:48 "proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt" Dec 16 14:03:54 why? Dec 16 14:14:21 anyone skilled with proguard? Dec 16 14:14:37 there is a better chan? Dec 16 14:16:17 Is it okay that after returning false from onInterceptTouch onTouch is called on the same object? Dec 16 14:19:00 posplaw, yes. Dec 16 14:19:22 posplaw, it says directly that in documentation as well. Dec 16 14:19:59 Mavrik: well, then why? I want it to call onInterceptTouchEvent from parent view hierarchically downside on next touch Dec 16 14:23:46 The problem is that everything was working fine until one of rebuilds with no changes -.- Dec 16 14:33:42 Morg0th: Is Activity.onNewIntent() called? Dec 16 14:36:16 procton: i didn't redefine that one, i'm handling the intent in onStart() Dec 16 14:38:39 Morg0th: It is called whether or not you implement it. Depends on how the activity is defined. Dec 16 14:38:40 Hello Dec 16 14:38:45 anyway... gtg. Dec 16 14:38:49 Anyone know how to do this? http://stackoverflow.com/questions/20613219/use-a-fragment-as-a-navigationdrawer Dec 16 14:39:20 what view are you using atm for your drawere Dec 16 14:39:23 drawer* Dec 16 14:39:59 I don't have a drawer view yet Dec 16 14:40:04 http://developer.android.com/training/implementing-navigation/nav-drawer.html Dec 16 14:40:06 this exampke Dec 16 14:40:12 use instead of Dec 16 14:40:13 done Dec 16 14:40:19 Ah Dec 16 14:40:36 or use a frame layout and instantiate the fragment yourself in code Dec 16 14:40:36 I actually didn't know how to implement a fragment via XML Dec 16 14:40:48 I thought it had to be done programmatically Dec 16 14:41:03 http://developer.android.com/training/basics/fragments/creating.html Dec 16 14:41:06 procton: i just checked and no it's not called Dec 16 14:41:22 compile 'com.android.support:support-v4:19.0.+' Dec 16 14:41:25 is this correct? Dec 16 14:59:35 im having some problems with rotating a bitmap. the bitmap is 72 by 72 and im rotating it about the center but as i rotate it it walks down a diagonal and then back up. why is this happening? Dec 16 15:01:21 anyone know of a working vnc server for 4.3 Dec 16 15:08:08 Do you know about any examples or tutorials on how to make on-screen controller? Dec 16 15:25:54 Hi! Dec 16 15:26:32 What's the easiest way to use a different google analytics tracking id when I build a store release? Is there a way to tell proguard to put different ids into the xml? Or what's the right way to do this? Dec 16 15:30:52 hello, is there a way to refresh an alertdialog without restarting it ? Dec 16 15:31:10 i want to disable the "ok" button if the user select the wrong item Dec 16 15:31:30 but i cant do it without restarting the whole dialog Dec 16 15:31:42 wich is useless Dec 16 15:32:36 i want to display menu on same entity where i already have edittext and button. how to place menu on remaining area of screen? Dec 16 15:33:28 anyone here used the Dropbox Sync API in an app..?? Dec 16 15:33:42 if anybody know hiw to do that, plz tell em Dec 16 15:34:22 lacx, i have no idea, im newb Dec 16 15:35:17 i am going to finish little android app this week. plz help Dec 16 15:37:31 nobody can help to display menu? Dec 16 15:38:19 android channel is dry? Dec 16 15:40:53 you guys see my msg? Dec 16 15:42:31 something went wrong with registration of nick or wh t? Dec 16 15:43:12 lol Dec 16 15:43:28 android Dec 16 15:43:35 plz wake up Dec 16 15:43:57 any little god here in this channel? Dec 16 15:46:19 well, as expected Dec 16 15:46:47 If noone answers your question, wait an hour and ask again Dec 16 15:46:52 Don't start spamming the channel Dec 16 15:46:59 Alternatively, ask on stackoverflow Dec 16 15:47:28 ah thanks for responding Dec 16 15:56:54 compile 'com.android.support:support-v4:19.0.+' <-- is this correct? having some weird issues compiling (PageTransformer not found, getChildFragmentManager() not found) Dec 16 15:57:52 jaami-win: "on same entity" what do you mean - where do you want to display the menu? what type of menu? Dec 16 16:02:30 snowpong, thanks for asking. the idea is simple. i want one edittedt and button on top of main view. user type a code in edittext and hit button. the menue shows many items with code as text. so when user hit button i want to bring up the relevent code from menu. Dec 16 16:04:38 as soon main view is shown menue will display items. and later when button will be hit the entered code will be searched from all menu items and the one that matches will be shown as seleted menu item Dec 16 16:06:05 snowpong is gone? Dec 16 16:07:17 thats badluck lol... Dec 16 16:19:20 Why would I use a sparsearray? Dec 16 16:20:36 Because you want to preserve indexes without having to fill each spot in the array. Dec 16 16:20:47 ah Dec 16 16:24:15 hi Dec 16 16:25:04 why did everybody suddenly leave? Dec 16 16:25:16 I just built Android from sources, master branch of today, for Nexus 7 2013 (flo) Dec 16 16:25:37 but the device is stuck at reboot with Google logo, is flo still supported with master branch? Dec 16 16:29:58 error: cannot find symbol method getChildFragmentManager() :///////// Dec 16 16:30:35 does anybody knows the spans available for an spannedstring Dec 16 16:32:03 Does anyone know where I can find an example of AccountManager handling multiple accounts of the same type? Is there an open source Google app which does this well? Dec 16 16:39:37 toxie, http://developer.android.com/reference/android/text/style/CharacterStyle.html Dec 16 16:39:42 see subclasses Dec 16 16:42:59 anybody know when WRITE_EXTERNAL_STORAGE became a hard requirement for Maps in Google Play Services? Dec 16 16:47:17 Hey guys, I'm trying to implement a solution from this stack overflow question, but I'm having difficulty. Can anyone spare a minute to help me out? Dec 16 16:47:19 http://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row Dec 16 16:50:15 eghdk, and what seems to be the problem? Dec 16 16:54:51 I don't quite understand getItemViewType Dec 16 16:54:55 and what to do there Dec 16 16:55:19 that's just a helper for android to help with performance Dec 16 16:55:25 In getItemViewType, should I be setting the layout? Dec 16 16:55:46 eghdk, you just tell android there which type (an arbitrary number) that view should be Dec 16 16:55:49 so it can properly cache views Dec 16 16:55:50 nothing more Dec 16 16:55:55 you still set layout in getView() Dec 16 16:56:19 in getItemType() you just need to ensure you return a same number for same type of view for that position, nothing more Dec 16 16:56:27 bbl Dec 16 16:56:39 can i have multiple intentservices running at the same time? Dec 16 16:56:45 if they are seperate classes Dec 16 16:57:48 Mavrik: You lost me on that last comment. Dec 16 16:57:54 getItemType? Dec 16 17:02:41 i have spent literally this entire day trying to import an eclipse project to android studio/gradle Dec 16 17:02:48 i am *so* not telling my boss this. Dec 16 17:03:30 think of all the company time you'd have saved Dec 16 17:03:39 in the long run you're doing the company a favour Dec 16 17:03:57 if anyone calls me out on it that's exactly what i'll say Dec 16 17:09:50 burmat Dec 16 17:11:22 hello, i was wonderding if there is anyone here with a knowladge about andoid OS wifi layer (not the Java API)? I am implementing c++ module for handling wifi, on my setup i have removed all Java code from OS. i have few questions regaring libhardware_legacy.so and libnetutils.so Dec 16 17:12:55 does inputType="phone" for EditText format phone numbers based on the phone's locale? Dec 16 17:14:32 Any idea why MotionEvent.ACTION_UP doesn't get's called when I remove my finger? Dec 16 17:20:37 Either you got ACTION_CANCEL before that or you're mistaken Dec 16 17:21:05 Kake_Fisk: Not sure if this is related at all… http://stackoverflow.com/questions/11790573/onclick-event-is-not-triggering-android Dec 16 17:21:29 or this: http://stackoverflow.com/questions/11786993/my-onclick-method-only-works-80-of-the-time Dec 16 17:21:43 hello, is there a way to refresh an alertdialog without restarting it ? Dec 16 17:22:04 i want to disable the "ok" button if the user select the wrong item Dec 16 17:22:53 macTAR: Couldn't you okButtonView.setEnabled(false); Dec 16 17:24:37 eghdk: no its not refreshing Dec 16 17:25:59 because when i create the alertdialog i dont know if i want to enable this button, it will depend of the user choice from the list displayed with the dialog Dec 16 17:26:37 hi Dec 16 17:28:08 When building encrypted OBB with jobb tool (Windows) and trying to open this OBB on Android device I'm getting the error: Error loading mapping table (Invalid argument) Dec 16 17:28:09 ASEC device mapping failed (Invalid argument). No errors reported when building OBB. Any idea to fix this error? (sometimes it works, but sometimes produces this error when loading OBB) Dec 16 17:35:25 SimonVT: My CANCEL comes last. I have it like this case MotionEvent.ACTION_UP: case MotionEvent.ACTION_POINTER_UP: case MotionEvent.ACTION_CANCEL: break; Dec 16 17:35:50 eghdk: It looks like this has more to do with UI elements. And my ACTION_DOWN works Dec 16 17:36:39 Kake_Fisk: Sorry! Thought an old question of mine could still be worth some value. heh Dec 16 17:36:55 Thanks anyways ;) Dec 16 17:38:27 Kate_Fisk: do you have a break after every MotionEvent in your switch statement? Dec 16 17:39:05 Kake_Fisk: * Dec 16 17:39:20 Hehe, I'm very used to be called kate and fist Dec 16 17:39:33 heater89: Some of them, not all Dec 16 17:39:49 I could show you the code Dec 16 17:40:21 http://pastebin.com/vd42WgEd Dec 16 17:40:26 http://stackoverflow.com/questions/20592148/set-listview-row-background-color-to-edittext-entry?noredirect=1#comment30823431_20592148 Dec 16 17:40:42 Kake_Fisk: i believe you need a break after each of them, otherwise it will fall through Dec 16 17:40:57 ohh Dec 16 17:41:07 your action up falls through to cancel Dec 16 17:41:37 let me know if that helps Dec 16 17:41:54 I thought it was going to execute the code anyway, but I'll try Dec 16 17:42:46 yea it should execute both the UP and Cancel event if there is no break for UP Dec 16 17:43:32 I wanted it to do that, the problem is that UP doesn't get executed at all Dec 16 17:43:44 And I tried put in a break, with no difference :| Dec 16 17:43:52 gotcha, sorry misunderstood Dec 16 17:44:07 No problem. I'm glad for all help I can have :) Dec 16 17:44:18 I have a question about building the android platform Dec 16 17:44:37 can I ask that here? Dec 16 17:44:57 heh. there should a channel name #android-platform-dev Dec 16 17:46:31 Try one of the mailing lists Dec 16 17:47:56 I might have figured out, I need to return true when ACTION_DOWN is fired Dec 16 17:48:08 Is there anything else I need to know about returning OnTouch event? Dec 16 17:48:18 Because multitouch doesn't seem to work Dec 16 17:49:04 I have a list view, and I'm adding views dynamically to certain items in the listView. The dynamically added view is there, but if I start scrolling it dissapears. Any idea? Dec 16 17:57:16 Maybe you're not properly handling view reuse Dec 16 17:59:07 SimonVT: Yeah, apparently not. But I honestly have no clue where to start to fix this. Dec 16 17:59:20 thanks Mavrik Dec 16 17:59:44 SimonVT: I am trying to use this question as a solution… but no difference: http://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row Dec 16 18:04:54 Seems to explain quite well how those two methods work Dec 16 18:05:54 Yeah, well the methods work and all. Dec 16 18:06:13 After I implemented them, I just still have the problem with the dynamically added views. Dec 16 18:10:44 SimonVT: And if I skip all of that all together, and just do a check if view is null, then everything works perfect (EXCEPT that it uses the wrong layout at certain times) Dec 16 18:11:24 eghdk http://wptrafficanalyzer.in/blog/dynamically-add-items-to-listview-in-android/ Dec 16 18:13:23 eghdk http://www.vogella.com/android.html Dec 16 18:14:43 I feel terrible Dec 16 18:14:55 It's not that my dynamically added items are messed up. I am dynamically adding VIEWS to the listItem. Lets just say I'm an imageButtonView everytime a certain listItem meets a certain criteria. Thats when my listView stops working. Dec 16 18:15:47 You should try and design your app so you know your layouts beforehand Dec 16 18:16:00 Then just toggle visibility or use different layouts for different items Dec 16 18:16:31 Yeah, but thats not an option for this application. Which if it were my app, I would do that of course. But its a project. Dec 16 18:19:09 Is there anyway to keep a service running in the background if the app is force closed? Dec 16 18:20:04 no Dec 16 18:20:19 * yuvipanda is getting the Glass SDK, just got his unit today Dec 16 18:20:21 sounds like fun! Dec 16 18:20:24 SimonVT: Do you have any idea why a log statement in my getView keeps getting called. Even though I'm not moving through the listView Dec 16 18:20:27 yuvipanda: :( Dec 16 18:20:43 I have a glass invite but can't afford it Dec 16 18:20:59 Damn Dec 16 18:21:37 eghdk: no Dec 16 18:21:39 ollienx: I can't either. I work for Wikimedia Foundation (we run Wikipedia!) as the android dev, and so... Dec 16 18:21:48 You lucky son of a bitch Dec 16 18:21:59 What you guys doign with it? Dec 16 18:22:14 ollienx: i just got it today. Dec 16 18:22:28 I mean does wikimedia have any plans? Dec 16 18:22:30 ollienx: I don't know yet. Reading wikipedia in this is horrible, and I guess a fully scrolly reading experience also does not make sense Dec 16 18:22:38 yeah Dec 16 18:22:48 ollienx: have you seen wikidata.org? That feels like a better target to integrate into glass Dec 16 18:22:52 so I'll probably be exploring that Dec 16 18:23:06 ollienx: plus images from commons.wikimedia.org Dec 16 18:23:18 I haven't seen wikidata Dec 16 18:23:19 checking it out now Dec 16 18:24:04 So is it basically a database of informations scraped from wikipedia/other wikimedia stuff? Dec 16 18:24:26 ollienx: the other way around, almost Dec 16 18:24:26 im trying to change the background color of my edittext entryies in a listview based on what the user types any ideas?? http://stackoverflow.com/questions/20592148/set-listview-row-background-color-to-edittext-entry?noredirect=1#comment30823431_20592148 Dec 16 18:24:38 ollienx: it's a proper wikimedia project, and information in wikipedia is slowly coming from wikidata Dec 16 18:24:44 ollienx: it's the single source of information as such Dec 16 18:24:47 ah I see Dec 16 18:25:22 MrMeTooo: You could have drawables and do .setBackgroundResource Dec 16 18:25:26 Do you need the color code to be programatically set Dec 16 18:25:46 You could also do setBackgroundColor() every time the user types a character Dec 16 18:26:35 ollienx yes that are the steps i thought i could take but its not working Dec 16 18:26:46 Are you using .addTextChangedListener? Dec 16 18:26:57 http://stackoverflow.com/questions/10217051/how-to-avoid-multiple-triggers-on-edittext-while-user-is-typing Dec 16 18:26:58 no..."if" statements Dec 16 18:27:07 Use that Dec 16 18:27:14 ollienx: do explore Wikidata/Wikipedia :) Let me know if you think of anything that could be done with glass Dec 16 18:27:18 ittl fire a function when a user enters a character Dec 16 18:27:29 yuvipanda: Maybe an idea, allow the user to scroll through the sidebar elements? Dec 16 18:27:40 Like if I go to Bill gates, I could scroll through his age, his net worth, etc Dec 16 18:27:47 ollienx: ah, so that is called the 'infobox' Dec 16 18:27:52 ollienx: and yes, that's the first plan on my mind :) Dec 16 18:28:06 ollienx: 'wiki search' -> 'bill gates', then see the infobox Dec 16 18:28:11 yep Dec 16 18:29:23 ollienx: :) Dec 16 18:29:36 ollienx: we're also rewriting the app to be native. the current one is PhoneGap based and not something I'm proud of Dec 16 18:29:54 yeah, it looks like something out of 2009 Dec 16 18:29:54 haha Dec 16 18:30:04 ollienx: heh, that's putting it mildly :P Dec 16 18:30:53 Looking at the play page "The code is 100%open source and community built. If you're a developer and good at JS/HTML5 come fork us!" Dec 16 18:30:54 ollienx: http://yuvi.in/blog/wikipedia-apps-reboot-taking-shape-nicely/ is how it looks like right now Dec 16 18:30:59 I found that last part of the sentence mildly amusing Dec 16 18:31:12 alankila: heh, I think I can take credit for that sentence ;) Dec 16 18:31:26 Very holo Dec 16 18:31:27 nice Dec 16 18:31:50 gonna be adding actionbar elements I assume? Dec 16 18:31:50 alankila: yup! Dec 16 18:32:10 alankila: well, that's the basic activitiy, and I think it'll remain that way Dec 16 18:32:23 alankila: more 'Chrome'-y - search bar than actionbar Dec 16 18:32:48 ollienx why is the background not changing http://stackoverflow.com/questions/20592148/set-listview-row-background-color-to-edittext-entry?noredirect=1#comment30823431_20592148 Dec 16 18:33:17 background color Dec 16 18:33:28 of listview entries Dec 16 18:33:36 of ListView? Dec 16 18:33:39 I thought you wanted EditText Dec 16 18:34:16 uuuh I set the background of my ListView elements with Drawables Dec 16 18:34:18 but I do it via XML Dec 16 18:34:47 try doing .setBackground(R.drawable.myRedDrawable) Dec 16 18:35:09 no the background color sooo if you type "Red" when red is typed and added to the listview the background will be the color red Dec 16 18:35:16 ok Dec 16 18:35:40 Maybe I'm wrong, but is that line of code even being run? Dec 16 18:35:48 Have you checked with breakpoints? Dec 16 18:36:41 witch line? the "if" statement? Dec 16 18:36:49 convertView.setBackgroundColor(Color.RED); Dec 16 18:38:02 im guessing not because its not changing the bg color Dec 16 18:38:15 guessing doesn't help Dec 16 18:38:19 What IDE are you using? Dec 16 18:38:46 eclipse Dec 16 18:38:52 Are you familiar with the debug function? Dec 16 18:39:06 sort of, not really Dec 16 18:39:14 do you know how to set breakpoints? Dec 16 18:39:18 no Dec 16 18:39:26 right click on the space next to the line Dec 16 18:39:30 next to the line number Dec 16 18:39:35 and there hsould be an option to toggle breakpoint Dec 16 18:39:39 then run it in debug mode Dec 16 18:39:44 The program will suspend if it hits that line Dec 16 18:39:56 *should Dec 16 18:41:06 ok im giving it a try if it suspends does that mean its not runnig? Dec 16 18:41:13 SimonVT: I'm looking up more stuff for this listView problem, and I keep seeing "viewHolder" do you know what that is? Dec 16 18:41:14 if it suspends that means it does run Dec 16 18:41:33 Try and trigger what would make the line run Dec 16 18:41:41 ittl suspend if you do Dec 16 18:41:45 (hopefully) Dec 16 18:41:50 A class that holds references to views Dec 16 18:42:04 It's not built into android though? Dec 16 18:42:13 The io talk on listview covers this Dec 16 18:42:38 I will check that out, but do you know the actual class name? Dec 16 18:43:04 Usually people call the class ViewHolder Dec 16 18:43:55 no suspend loaded fine Dec 16 18:44:48 eghdk http://www.youtube.com/watch?v=OTEiRiMaQ7M Dec 16 18:45:11 I'm using multitouch and when I hold one button down, I don't get the POINTER_UP event from any other pointers. Any idea? Dec 16 18:46:48 MrMeTooo: Yes ittl load fine Dec 16 18:46:55 but when you try and make the box red Dec 16 18:46:57 does it suspend? Dec 16 18:47:35 let me try it real quick Dec 16 18:48:10 need example of a LinearLayout inside LinearLayout Dec 16 18:48:10 ollienx: fwiw, https://github.com/wikimedia/apps-android-wikipedia is the new app's source :) Dec 16 18:48:32 ollienx no Dec 16 18:48:41 MrMeTooo: then your line of code isn't being run Dec 16 18:48:53 Your trigger for setting the background to red Dec 16 18:49:17 If i understand correctly, when a user enters 'red' into an edittext, ittl change the bacgkround to red? Dec 16 18:49:47 the bg of the entry no the entire bg as int he wallpaper Dec 16 18:50:05 *in the wallpaper Dec 16 18:50:11 what? Dec 16 18:50:24 oh the background of the edittext? Dec 16 18:50:57 the bg of the entry not the entire bg as in he wallpaper and not the edittext bg Dec 16 18:51:28 What do you mean 'background of the entry' Dec 16 18:51:30 the listview entry? Dec 16 18:51:34 yes Dec 16 18:51:41 ok Dec 16 18:51:43 i wait for the time when someone gona answer my question too Dec 16 18:51:46 Let me write you a quick block of code Dec 16 18:51:51 ok Dec 16 18:52:06 can't guarentee ittl work, but it should give you the idea of what to do Dec 16 18:52:55 ok thanks Dec 16 18:55:16 MrMeTooo: http://pastebin.com/AmQMZdtM Dec 16 18:55:28 change TextWater to textWatcher Dec 16 18:55:30 that's a typo Dec 16 18:55:36 *TextWatcher Dec 16 18:56:38 will textwatcher change the text color or the bg color? Dec 16 18:57:04 Hey I was wondering if someone could do me a favor. I need a Settings.apk build quickly but can't do it here, but I can provide the framework files and resource files. Dec 16 18:57:15 Would anyone be so kind to quickly build it and upload the result? Dec 16 18:57:56 MrMeTooo: TextWatcher simply calls a function when text has been entered Dec 16 18:58:18 myListView.getChildAt(positionToChangeBackgroundInListView).setBackgroundColor(Color.RED); is the line that changes the background color Dec 16 18:58:32 ok ill give it a try Dec 16 18:58:33 I'm out to a meeting now, sorry Dec 16 18:59:20 need example of a LinearLayout inside LinearLayout Dec 16 19:02:26 why i get error Unexpected namespace prefix "xmlns" found for tag LinearLayout Dec 16 19:02:48 can someone help here? Dec 16 19:03:04 lol Dec 16 19:03:07 Pastebin it. Dec 16 19:03:12 ok Dec 16 19:03:31 But it's probably like the error says, you have the xmlns:android attribute on the inner linearlayout Dec 16 19:03:45 yes it needs to be in the root layout Dec 16 19:06:54 Estel, http://pastebin.com/2rE8Av1Y Dec 16 19:07:10 Delete line 16 Dec 16 19:07:38 The xmlns:android attribute is only allowed on the root element. Dec 16 19:08:05 Greetings, folks. Can anyone suggest me some tutorial on onInterceptTouchEvent and onTouchEvent behavior in view hierarchy. Because once I return true for child's onInterceptTouchEvent - parent's one is never called then no matter what child's onInterceptTouchEvent and onTouchEvent return. Dec 16 19:08:10 ok, but when i deleted the line, error moved to next line Dec 16 19:08:27 is there a way to tell which process generated a broadcast intent ? Dec 16 19:08:43 jaami-win: the error being? Did you clean and rebuild? Dec 16 19:08:51 sjmikem: not that I know of Dec 16 19:09:11 im doing it. just a second Dec 16 19:10:20 any memory limits on WebView? trying to download a VERY BIG json returning from a webservice, makes my app crash (even using it inside Chrome on a Samsung Galaxy Tab 3) . Any tip ? Dec 16 19:10:43 this error is on line 19 now error: Error parsing XML: not well-formed (invalid token) Dec 16 19:11:02 do i need to pastebin again? Dec 16 19:11:12 nah, sc Dec 16 19:11:23 *sec Dec 16 19:11:26 use javascript hooks to download it in native code and then pass it to the webview through a javascript call? Dec 16 19:12:16 jaami-win: the quotatation marks look like unicode characters in the pastbin for lines 18-21 Dec 16 19:12:17 i'm trying to use plain Apache Cordova, so same code runs also on iOS, etc Dec 16 19:12:33 oh ok, i check Dec 16 19:12:33 Estel: good eye. I was about to suggest the same thing :) Dec 16 19:12:53 JesusFreke: then good eye you, too :P Dec 16 19:13:07 I *hate* issues like that. so annoying Dec 16 19:13:17 Though apparently my ability to type this evening has diminished to null. Dec 16 19:14:08 all clear now. thanks for help Dec 16 19:14:33 jaclinuxhelp: downloading json from web view, hum? Dec 16 19:14:50 yes Dec 16 19:14:52 i copied the example from web that is why double quotes were different Dec 16 19:37:58 has anyone used the AppEngine EndPoints wizard in Android Studio? Dec 16 20:13:54 is Android studio supposed to use your style information when showing layout preview? I have my own Theme that has a buttonStyle, and that button style has android:background set to @color/new_yellow, but all my buttons in the preview have a gray background Dec 16 20:14:22 they are yellow as expected when I run on the device Dec 16 20:15:22 remember it's a beta software project Dec 16 20:15:47 i would not ue it for production software Dec 16 20:16:46 I know, I know. I just can't find this information anywhere (if this function is working) and I'm trying to decide if I want to spend another 20 minutes trying to make it work or just leave it Dec 16 20:23:15 why not try it on a Stable IDE, such as Eclipse included with the SDK?\ Dec 16 20:23:39 i like eclipse Dec 16 20:25:19 me too Dec 16 20:26:49 private List people = new List(); Dec 16 20:26:53 this is correct right? Dec 16 20:27:09 Its telling me that List is abstract :/ Dec 16 20:27:19 It is, you should choose a subclass Dec 16 20:27:38 Perhaps ArrayList? Dec 16 20:27:57 So I have a custom FrameLayout that includes an ImageView, and I have a ViewPager that instantiates these custom FrameLayouts. Everything works great but sometimes when I open the ViewPager the ImageView in the FrameLayout doesn't display until i touch the screen... Would anyone here know whats going on? I've tried posting some invalidates to the FrameLayout but it didn't seem to help Dec 16 20:28:11 Oh lol, I got confused with C# Dec 16 20:29:02 thanks Dec 16 20:34:22 SSLContext ctx = SSLContext.getInstance("TLSv1"); Dec 16 20:34:35 anyone know where these string constants are defined ? Dec 16 20:41:15 g00s: you could do SSLContext.getSupportedSSLParameters().getProtocols() ? Dec 16 20:41:33 Estel yeaahh .. but no Dec 16 20:41:46 i guess i have to hardcode TLSv1.2 Dec 16 20:41:58 or search that list for TLSv1.2 Dec 16 20:48:37 getDefaultCipherSuites still returns "SSL_RSA_WITH_RC4_128_MD5", as the first choice - thats *terrible* Dec 16 20:48:57 conspiracy theory time Dec 16 21:11:43 genymotion 2.0.2 update is out :) Dec 16 21:13:01 I FIGURED IT IT OUT!! Dec 16 21:13:08 is it me, or is that emulator getting slower and slower? 20 minutes now and still not finished loadig Dec 16 21:15:44 KNERD virus scan and clean your project Dec 16 21:16:07 sorry, but I dsont get viruses Dec 16 21:16:16 and it's a brand new project Dec 16 21:16:48 logcat output might provide insight what it's doing... Dec 16 21:17:13 it says waitng to be launched Dec 16 21:17:57 ah...i will just use my ow phones...this si getting cxrazy. Whith eahc new "update" the emulator keps getting slower Dec 16 21:28:35 can an apk have more than one activity? Dec 16 21:28:57 yes Dec 16 21:29:33 this confuses me Dec 16 21:29:36 makes me wonder whats limit of activities lol Dec 16 21:30:29 does each activity in the apk get its own launcher or would the main activity (main activity?) call launch activity on the secondary one? Dec 16 21:30:40 both is possible Dec 16 21:31:20 I440r: http://developer.android.com/guide/topics/manifest/manifest-intro.html Dec 16 21:31:26 I440r: there's a manifest that declares how activities are acted upon&sets their position Dec 16 21:31:29 The last paragraph under "icons and labels" Dec 16 21:31:50 ty Dec 16 21:37:12 I've got a short renderscript that is failing with an 0. parser at end of file error. https://gist.github.com/wiredfool/7994831 Dec 16 21:37:24 the error refers to a different renderscript that is unchanged. Dec 16 21:37:38 if I remove just the one in the gist, everything compiles fine Dec 16 22:07:49 since my fragment is just going to be interacting with a service, would it be bad to bind to the service at the end of onCreateView (and have a corresponding unbind in onDestroyView), then initialize the view of the fragment in the onServiceConnected callback? Dec 16 22:12:36 storkme are you the same storkme from #diablo? Dec 16 22:12:45 i am Dec 16 22:12:52 hue hue hue Dec 16 22:12:54 if #diablo is in same irc server then yes lol Dec 16 22:12:59 what a god damn tiny world this is Dec 16 22:14:36 Are there any good open source android apps? I'm having a hard time organizing my app with tons of similar but different fragments and want to get a feel for how others do it Dec 16 22:15:14 ls is pretty good Dec 16 22:15:21 ls? Dec 16 22:15:25 sorry jk Dec 16 22:15:26 storkme: what do you mean by the fragment is going to be interacting with the service? displaying information from the service? Dec 16 22:15:42 correct, yeah Dec 16 22:16:09 Why would you wait to initialize the view of the fragment Dec 16 22:16:17 bitcoin wallet by andreas schildebach is the app i used to kind of figure out how to do things Dec 16 22:16:26 it's source is on github Dec 16 22:16:27 you could probably implement some sort of loader for your service Dec 16 22:16:31 I guess I mean 'populate', not really initialize. Dec 16 22:16:36 *its Dec 16 22:16:48 storkme: then loaders would probably be the easiest pain free solution Dec 16 22:17:00 I've never understood Loaders to be pain free :x Dec 16 22:17:10 i use them extensively, had no problems... Dec 16 22:17:39 I'm probably missing something, but I never understood the point. Dec 16 22:18:01 also shouldn't your service be running on startup? Dec 16 22:18:24 storkme as an exercise, do it with AsyncTask handling screen rotation and re-queries :) Dec 16 22:18:31 then you will see the point Dec 16 22:18:59 why would I use AsyncTask Dec 16 22:19:05 is it 2009 again Dec 16 22:19:05 i was scared away from asynctask after reading about their lifecycle issues Dec 16 22:19:13 asynctasks fucking blow Dec 16 22:19:33 but he meant as an exercise to get to know loaders Dec 16 22:19:52 off the top of my head the biggest pain i had was implementing a MediaStore loader Dec 16 22:19:55 hm Dec 16 22:20:06 but that was more because the media store stores shit in a weird way Dec 16 22:20:56 a loader just seems like a really verbose way of doing what I need to do Dec 16 22:21:07 hello guys. Where can I find an example of a text field where the keyboard does not show. Like the dialer number field where you can move the cursor, copy and paste text but no keyboard? Dec 16 22:21:42 storkme: verbosity is good because Java hue hue Dec 16 22:21:48 :D Dec 16 22:22:51 i'm not seeing any downsides with the approach that i postulated Dec 16 22:23:07 starting the service when the fragment is created? Dec 16 22:23:12 that has no point really... Dec 16 22:23:21 at that point you might as well just spawn a thread Dec 16 22:23:42 it's a long running service (music player) Dec 16 22:24:25 well if its already running, then you should just add some accessors... Dec 16 22:24:35 not sure what the problem is D: Dec 16 22:24:45 me neither :< Dec 16 22:24:48 that's why i asked :< Dec 16 22:25:18 in your initial question, i would just bind the service when the app is in the foreground Dec 16 22:25:25 when the fragment is in view it can query info from the service Dec 16 22:25:37 no need to handle the binding in a fragment Dec 16 22:26:30 service needs to call back to the app, though, thus the need for a binding. Dec 16 22:26:49 right but i dont understand why you want to bind it in the fragment Dec 16 22:26:52 and not the application Dec 16 22:27:34 why bind from the application when I only need the service in a fragment? Dec 16 22:27:51 multiple binds unbinds vs one bind unbind Dec 16 22:27:53 dunno Dec 16 22:28:00 it just doesnt make sense to me to put it into a fragment Dec 16 22:31:49 reusability I guess, would rather not pollute the application state if I can avoid it Dec 16 22:42:02 Is a design that allows an arbitrary amount of pages to be pushed to the backstack a problem? Dec 16 22:42:12 I feel like it is Dec 16 22:43:10 Is there something like Percent that I can use to size images on my list view? Dec 16 22:43:16 so that it looks good on multiple screen sizes Dec 16 22:43:18 is dp the same as percnet? Dec 16 22:44:12 GEEGEEGEE: You can use a weighted linear layout to get your image to take up a certain percentage of the layout but i dont know if thats what you're going for Dec 16 22:45:10 http://i.imgur.com/YbegNSU.png desmin88 this i is what I have at the moment Dec 16 22:45:23 if i change the preview to a Nexus 7 or 10, it looks quite empty and small Dec 16 22:46:34 GEEGEEGEE, weight should work well Dec 16 22:46:38 In my app, I have the height to match, then width to wrap and it looks nicely on all screens Dec 16 22:46:38 Assuming you mean horizontal Dec 16 22:55:18 Does anyone know how to get AS logcat to not scroll down on a new line of text? Dec 16 22:55:32 it actually kinda boggles my mind why that is even on as default.. Dec 16 22:57:37 nvm, found it Dec 16 23:05:17 If i change the input type on an EditText field, what event/method needs to be called to get the text sitting there to dynamically change? Example: changing from text to phone for input type, and having the phone format applied right away without interaction Dec 16 23:08:42 under what circumstances would View.setVisibility() not work? Dec 16 23:09:08 i have two views that are on top of each other, once I hit a button one is supposed to be set to View.GONE and the other to View.VISIBLE Dec 16 23:09:20 however you can still see the one that is being set to GONE under the one that is being set to VISIBLE Dec 16 23:09:34 i have a fade animation applied to these views before hand, would that mess anything up? Dec 16 23:09:49 I'm under the assumption that View.GONE overrides all alpha settings, etc Dec 16 23:09:50 :( Dec 16 23:33:46 why does my avd display not rotate when i rotate the avd? Dec 16 23:34:26 auto rotate screen is set in the settings Dec 16 23:35:08 I440r: some apps (like certain configurations of launcher) don't support landscape Dec 16 23:35:18 no. NOTHING rotates Dec 16 23:35:24 i can be on the home screen. it doesnt rotate Dec 16 23:35:35 my app does rotate when the phone is rotated but not inside this avd Dec 16 23:35:36 yes. see my comment about the launcher :) Dec 16 23:35:45 I dunno then Dec 16 23:36:05 its like the broadcast about the rotation is never being sent Dec 16 23:47:17 anyone know of a 'best practices' guide to implementing SSL on Android ? (not specific to HTTP) ? so that i basically don't wind up making one of these mistakes Dec 16 23:47:23 https://threatpost.com/research-shows-serious-problems-android-app-ssl-implementations-101912/77131 Dec 16 23:47:33 "The researchers discovered several separate classes of vulnerabilities, including apps that accepted any certificate; allowing all hostnames; trusting a huge number of certificate authorities by default; and apps using mixed-mode or no SSL." Dec 16 23:47:33 testing latency Dec 16 23:47:38 anyone understand building renderscript scripts? Dec 16 23:47:51 https://gist.github.com/wiredfool/7994831 Dec 16 23:48:26 compiling that breaks the project, removing it fixes it. So, despite the error message seeming to point elsewhere, that script is the problem Dec 16 23:54:03 wiredfool: I would start with a fresh file, make sure it works, and then add individual "things" from the one that isn't working, checking each time that it builds Dec 16 23:54:09 when it doesn't build.. you found the problem :) Dec 16 23:54:16 ah Dec 16 23:54:21 I don't see any problem offhand, but it's been a while since I've done any rs Dec 16 23:56:29 ah Dec 16 23:56:47 apparently that means "you're passing an int as a pointer" Dec 16 23:57:25 * wiredfool mumbles about type safety and compilers... Dec 16 23:57:33 thanks JesusFreke Dec 16 23:57:39 np Dec 17 00:04:01 Hey guys, I am about to give up: I have an application that streams accelerometer readings from two phones over bluetooth to a tablet. So far everything was working fine but now all of a sudden after about 2-3minutes the bluetoooth service on the tablet crashes (I get onBluetoothServiceDown and onBluetoothServiceUp notifications in the LogCat). Dec 17 00:04:03 The weird part is that when it crashes it takes my application with it (no exception thrown from my application, just closes) and once the bluetooth service crashes it tries to restart only to immediately crash again a couple of times before it finally comes back up again. I could have sworn that issue was not there yesterday, any hints? Happy to share my code if that helps Dec 17 00:07:29 i'm creating an app that provides a webserver ... if i want the webserver to accept ssl connections i need to self sign a cert and add it to the app? Dec 17 00:12:48 Do you see what's wrong with this OnTouch code? UP isn't fired if I'm pressing DOWN somewhere else. http://pastebin.com/mxyAZBCk Dec 17 00:15:48 How can I avoid replacing the canvas Dec 17 00:15:51 if the on draw is called Dec 17 00:17:08 don't create new canvas there Dec 17 00:18:38 How do I add images to my project in Android studio? Dec 17 00:18:55 Do I need to resie them manually then add to each of the drawable-XXXX fodlers/ Dec 17 00:23:22 anyone know of a way to delete the data folder for an application that is already uninstalled? Dec 17 00:24:09 dcow: re-install and re-uninstall without the -k option to adb uninstall? :) Dec 17 00:24:36 I can't reinstall the app in the first place because: [INSTALL_FAILED_UID_CHANGED] Dec 17 00:25:13 so I'm in quite a predicament it would seem Dec 17 00:25:22 maybe try pm clear Dec 17 00:25:27 failure Dec 17 00:26:10 or "Failed" rather (just tried again) Dec 17 00:28:06 When you try to re-install, does the apk have the same signature as the first one? Dec 17 00:28:45 I doesn't work in both cases. I' Dec 17 00:28:59 However, it would hit the cert error first Dec 17 00:29:13 if that was an issue (i.e. if I was reinstalling) Dec 17 00:30:12 Did you try both a normal install and a re-install? Dec 17 00:30:15 * JesusFreke is running out of ideas :) Dec 17 00:31:03 if has backup try restore single app Dec 17 00:31:07 pm remove-user maybe? Dec 17 00:31:08 JesusFreke yeah I have. I always get the UID error. One time I got an internall package manager error Dec 17 00:31:11 oh, wait Dec 17 00:31:26 that's for a multi-user user, not a "per-application" user. Dec 17 00:31:28 remove-user is for system level users Dec 17 00:31:32 not UID users Dec 17 00:31:48 dcow: yeah. hence my retractment :) Dec 17 00:32:01 yeah we just explained it differently Dec 17 00:32:06 yea Dec 17 00:33:08 my guess is that my "adb uninstall" correctly removed the .apk but some internal error caused the data directory removal to fail Dec 17 00:33:21 well, there adb uninstall -k too Dec 17 00:33:22 I think I now have a dirty data directory Dec 17 00:33:34 which explicitly keeps the data dir around Dec 17 00:34:01 * XXCoder takes out dishsoap and sponge Dec 17 00:34:09 yeah. but it keeps the uid associated I assume so that the next time you install the package you get the same uid Dec 17 00:34:39 yeah, it's got to keep the signature around somewhere. Probably in packages.xml Dec 17 00:34:59 where is that? Dec 17 00:35:07 system frameworK? Dec 17 00:35:09 I don't think it's accessible without root. let me check Dec 17 00:35:19 it's certainly not writable, at least Dec 17 00:35:33 yeah, not readable either Dec 17 00:35:47 system:system 660 Dec 17 00:35:52 not surpised I can see few abuse ponental Dec 17 00:36:41 but it's at /data/system/packages.xml, if you do have root access (I'm assuming not, otherwise you could just delete the app dir yourself) Dec 17 00:37:46 correct Dec 17 00:38:12 #lifeinacage Dec 17 00:40:25 wonder what happened though Dec 17 00:57:15 hmm... having an issue where loading a URL like intent://somestuff works fine in the browser, but in the app it says 'procol not supported' Dec 17 00:57:23 protocol* Dec 17 00:57:28 am i forgetting some setting somewhere? Dec 17 01:28:30 hi, Context.getSystemService doesn't seem to be static: http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String) Dec 17 01:28:37 does this mean I need to get a Context instance from somewhere to call it? Dec 17 01:29:04 yes Dec 17 01:29:34 ah, and if I'm an "Activity" then Context is my super-class Dec 17 01:29:49 thanks Dec 17 01:31:00 if I'm not an "Activity" (I'm in the NDK-side, and I don't have an Activity handy), how do I get an instance of Context? Dec 17 01:31:28 you pass a reference in, from a place where you have an instance Dec 17 02:18:13 OMfg Dec 17 02:18:14 wtf Dec 17 02:18:32 I optimized my app so it won't crash anymore on "tablets" turns out the heap on a big eumulator I had was only 16mb Dec 17 02:18:42 ohh well. At least the app is really optimized now. Dec 17 02:18:43 lol Dec 17 02:37:22 Hi there, quick one: Is there a way for an app to appear with two different spelling? The name of the company I work for is often spelled with and without a space, and users are confused ._. Dec 17 02:42:52 Max-P, that's not exactly a great business strategy Dec 17 02:42:54 lol Dec 17 02:42:56 on their part Dec 17 02:43:41 CocoStorm, Yeah I know. The name is one-word, we use the one-word variant everywhere on our part. But users don't stop spelling it with a damn space and complain we don't have an app. Meh Dec 17 02:46:13 hmm.. Facebook Face book, MySpace My Space, Snapchat snap chat.. what is the name of the app that is making what's meant to be trivial, confusing for the users? Dec 17 02:46:27 perhaps it's the logo? Dec 17 02:47:15 *something Dec 17 02:53:31 CocoStorm, Nah, just the most possibly stupid users. Most of our clients already barely know how to turn on a computer let alone using a phone Dec 17 02:53:58 I'll just tell my boss it's not possible Dec 17 02:54:22 Max-P, wait I don't know if it isn't possible Dec 17 02:54:37 Humm, "face book" does show Facebook, interestingl Dec 17 02:55:05 heh, then it must be Dec 17 02:57:22 would like to know it would be useful Dec 17 02:57:35 Question guys Dec 17 02:57:41 What would you prefer Dec 17 02:57:42 https://github.com/nhaarman/supertooltips Dec 17 02:57:43 or Dec 17 02:57:51 https://github.com/amlcurran/ShowcaseView **** ENDING LOGGING AT Tue Dec 17 02:59:59 2013