**** BEGIN LOGGING AT Tue Jan 14 03:00:00 2014 Jan 14 03:02:23 heh Jan 14 03:02:46 i want to call it many times with call changing only Jan 14 03:15:08 anyone got any suggestions for testing an app w/ a different locale than the default one? Jan 14 03:15:50 so I'm looking for a good book to get me started on Android programming for eclipse Jan 14 03:16:16 youtube guides and the http://developer.android.com aren't cutting it Jan 14 03:16:45 currently looking at the "Android Programming: The Big Nerd Ranch Guide" book Jan 14 03:16:54 does anyone have any comments/thoughts/suggestions? Jan 14 03:17:13 Tatlreach: never read that book. Jan 14 03:17:54 why? Jan 14 03:19:38 Tatlreach: i've never heard of it. i learned android through a class my university was offering Jan 14 03:20:26 that's a really good reason Jan 14 03:21:03 lol ok, I read "never read that book." as a command Jan 14 03:21:14 lol english is a funny language like that Jan 14 03:21:18 as in "read" 'reed' or not in the past tense Jan 14 03:21:32 Tatlreach: oh lol Jan 14 03:21:47 usually if you don't have any information to contribute Jan 14 03:21:59 it's better to not say you don't have an information to contribute Jan 14 03:25:50 Trying to get Google Play Store working on a 2013 Kindle Fire HD 7" runngin 11.3.1 firmware (so far can only find one person claming to have this working). As far as I can tell, the issue I'm stuck on has to do with DownloadProvider. In logcat I'm seeing messages like: "E ActivityThread: Failed to find provider info for downloads", and "E ActivityThread: Failed to find provider info for Jan 14 03:25:51 downloads". I get the impression that the DownloadProvider isn't installed fully, or is mixed up somewhere because it seems that the Play Store isn't finding the url content://downloads registered. Anyone have any experience with this and willing to help me troubleshoot? Jan 14 03:29:07 Hey everyone, is it possible to host a VPN to use it like DroidVPN to bypass 3G connection from the phone provider ? Jan 14 03:30:16 define "bypass 3g connection" Jan 14 03:30:28 if you're not on wifi, no, a vpn doesn't give you data service Jan 14 03:30:35 Dukuo: you bypass 3G connection by not connecting through it... about the only way I can see that makes sense from your sentence, is to run it over ADB connected to computer working as router Jan 14 03:30:52 well correct me if i'm wrong.. I'm sorry for not using the technically correct concepts Jan 14 03:30:56 so let me explain Jan 14 03:32:07 I have found a way to use the connection of the 3G of my phone, with DroidVPN and a rooted phone (galaxy grand in my case), connected my 3G phone with no credit, and then it 'hooked' to a droidvpn server and started functioning fine Jan 14 03:32:20 the only 'but' is that the connection only last for 100MB a day Jan 14 03:32:41 * Leeds wonders, idly, what this has to do with #android-dev Jan 14 03:32:45 well a) that sounds like a pretty bad plan to try to cheat the company who knows exactly who you are Jan 14 03:32:49 nope, didn't bypass. Probably somehow ended up at some glitch in the network that can get you sued Jan 14 03:33:08 and b) you're not bypassing anything. Either it's misconfigured on their end or your plan gets a limited amount of data per day. Jan 14 03:33:32 In either case if you're violating your EULA you risk a fairly nasty experience when they decide to crack down on it. Carrier rates for data w/out a data plan tend to be insane. Jan 14 03:33:59 yup, sounds quite nasty actually Jan 14 03:34:18 you might also get hit with all fines specified in contract :D Jan 14 03:34:18 I'm asking the technical stuff, knowing my limitations with the law Jan 14 03:34:41 * Leeds realises that nobody gives a shit about being on-topic Jan 14 03:34:43 well it's a prepaid SIM, so no contract there.. Jan 14 03:34:53 Leeds: there's that too, yes. Jan 14 03:35:23 yes, thank you anyway for your comments, didn't meant to run off-topic here Jan 14 03:35:58 much appreciated dragorn and p_l :) Jan 14 03:36:38 Dukuo: I worked at a mobile operator... some people wouldn't believe the kind of shit that can go off during a billing system switchover :> Jan 14 03:37:28 p_l wow o: Jan 14 03:38:37 Dukuo: our competitor ended up not recording anything in billing, thus getting only the monthly fees, for more than a month (iirc they ended up losing 3 months) Jan 14 03:38:45 largest unofficial undisclosed discount ever Jan 14 03:39:17 and what was the actual reason for such huge error ? Jan 14 03:40:30 Dukuo: they were fresh after migration to new billing system... :> Jan 14 03:41:04 well, biggest discount ever as you said hah Jan 14 03:41:30 (and yes, I heard that story just after we got info from helpdesk that our billing system was either time travelling or precognitive, telling clients when they made last future call) Jan 14 03:41:57 time travel! Jan 14 03:42:54 new billing system by the Doc himself! Jan 14 03:47:18 \o/ Jan 14 03:51:36 Can anyone confirm if DownloadManager.apk (on JB anyway) should be registering a handler for content://downloads/my_downloads ? Jan 14 04:32:42 Is it possible to record and play the same audio out of the speakers in realtime? Jan 14 04:41:20 hey devs, looking for some good reads on how to get up to speed with programming for android. i took a couple java classes a couple years ago, but im sure im rusty Jan 14 04:41:41 its not all that much different in some respects Jan 14 04:41:51 its "meta programming" thats definitely different Jan 14 04:41:59 like android.manfest Jan 14 04:42:14 android 2.3 is slow Jan 14 04:43:27 ok i was just hoping there was something that would help me get familiar with the classes and such Jan 14 04:43:50 nope its hard Jan 14 04:43:55 darinschmidt: obviously you've looked at the tutorial/training stuff on the android site, right? Jan 14 04:44:35 99% of people would tell you to look at official docs.however they have almost everything but bit hidden Jan 14 04:44:39 a few months ago yeah, but then i ran out of time so its been a while. just downloaded the android studio to test it out, but i was looking for some offline reading while im at work Jan 14 04:45:14 then download the docs to read offline... Jan 14 04:46:21 lol, obviously, thoguth maybe someone could recommend a good book like heads over or something. but i guess i'll do that and throw it on my kindle Jan 14 04:46:35 you start with the official docs Jan 14 05:01:18 doesnt look like they have any docs to download Jan 14 05:02:31 they're in the sdk Jan 14 05:02:45 ah ok thanks Jan 14 05:03:46 they must not come with android studio then because i tried looking there Jan 14 05:04:05 so i'll dl the sdk package Jan 14 05:13:43 seems that since version 17 they stopped including the documentation Jan 14 05:16:30 found this link for version 19r2 https://dl-ssl.google.com/android/repository/docs-19_r02.zip Jan 14 05:26:53 Hey guys I'm looking for android automation tool Jan 14 05:26:58 which can do record and play Jan 14 05:27:10 btw how much success have you guys seen automating android testing ? Jan 14 05:27:24 like uiautomator ? Jan 14 05:30:03 bankai_, does uiautomator has record and play Jan 14 05:30:12 or I have to code ever test case ? Jan 14 05:30:14 record and play what ? Jan 14 05:30:53 bankai_, ohk.. so lot of test frameworks let you record your actions on app, and generate backend automation script Jan 14 05:31:01 we are using one such tool for iOS Jan 14 05:31:12 I was wondering if there is a similar tool for android. Jan 14 05:33:34 not AFAIK, but uiautomator and monkeyrunner will do the majority of what you require Jan 14 05:35:04 bankai_, thanks how does Robotium stands in comparison to uiautomator? Jan 14 05:41:28 *shrugs* give them both a go and see for yourself Jan 14 06:01:12 <_genuser_> so when I create an AVD, what is the best screen size to choose for targetting an "average" phone. Jan 14 06:01:50 <_genuser_> I realize, there's always going to be different sizes and it's better to test on as many as possible. But I suppose, I'm thinking what is the equivalent of a samsung galaxy S class phone. Jan 14 06:05:26 720p @ xhdpi Jan 14 06:06:16 brickhead: Robotium is pretty terrible Jan 14 06:06:28 brickhead: there are no point-and-click solution for Android because it's UI is responsive Jan 14 06:07:21 I would recommend either going with UI Automator for black(ish) box or Espresso for white box Jan 14 07:16:34 JakeWharton: dildo-lover Jan 14 07:17:51 (insert whatever reaction you were looking for here) Jan 14 07:19:28 JakeWharton: nice try, but you can't win over a troll, I'm one step ahead already Jan 14 07:19:48 do you think you're smarter or something? "Jake" Jan 14 07:20:03 already told my mom. she's calling your mom. Jan 14 07:21:03 no she's not Jan 14 07:41:56 mornings Jan 14 07:42:13 lol JakeWharton :) Jan 14 07:42:53 anyway quick question about the 0.4.2 update to AS Jan 14 07:43:27 when making changes to layout i have to do a gradle clean before building cause those changes dont propegate to a normal build Jan 14 07:43:32 does anyone else have this issue? Jan 14 08:01:08 http://stackoverflow.com/questions/21108391/android-sqlite-query-not-working-when-searching-for-specific-id Jan 14 08:04:44 eghdk: are you sure you have an entry with _id=1? Jan 14 08:08:40 Gosling emerges once again :) http://www.infoworld.com/t/technology-business/james-gosling-grades-oracles-handling-of-suns-technology-233924 Jan 14 08:11:57 arnold schwartznegger is just a fat fuck these days. Jan 14 08:12:13 lemonxah: *. He looks like a plump :/ Jan 14 08:51:37 Hi all, how can I get the TimePicker from a TimePickerDialog? Jan 14 08:53:47 FrancescoV: why do you need access to the picker itself? Jan 14 08:54:41 thepoosh: to set an OnTimeChangedListener listener for a 15 min interval Jan 14 08:56:57 FrancescoV: http://stackoverflow.com/a/7328208/1056359 Jan 14 08:58:48 thepoosh: tnx: I'll try it Jan 14 08:59:27 pleasure, in general Google is your best friend Jan 14 09:05:12 thepoosh: if i Implement TimePicker.OnTimeChangedListener and override the onTimeChanged method, the method isn't fired when scrolling the time, how come? Jan 14 09:08:33 idk Jan 14 09:08:41 never touched it Jan 14 09:19:54 Can I update widget every second ? But only if it is on the screen ? Jan 14 09:24:32 http://stackoverflow.com/questions/21109440/confused-on-what-kind-of-listview-and-adapter-to-use-in-android-for-a-small-arra Jan 14 09:30:30 hello, i have an application that is playing with the WifiManager and performing various actions on it Jan 14 09:30:39 here's a log of the state transitions Jan 14 09:30:40 http://codepad.org/20WDhdyS Jan 14 09:30:58 everything else is working fine, except,when i call enableNetwork() i get SCAN_RESULT intent Jan 14 09:31:07 not WIFI_STATE_CHANG intent. anyone know why? Jan 14 09:31:18 i've tested this on 2 devices and both respond with the same intent. Jan 14 09:47:45 is it possible to get the numberpicker for the minutes from a timepicker? Jan 14 09:50:17 Anyone here have experience playing aac streams? I have a sample stream that works fine, and then my other stream is really laggy, but when I play it on my computer it sounds fine. My web admin says its the library im using. Jan 14 09:57:48 hm, whats a nice way to get a sha1 into the app. having a user type it would be awful Jan 14 10:00:30 g00s: maybe you can use QRCode scanning for that Jan 14 10:01:01 thanks shmooz for the suggestion, i forgot about that Jan 14 10:01:48 basically, i'm giving the user the option to pin a certificate, which is the sha1 of SPKI Jan 14 10:02:04 so the user has to hmm Jan 14 10:02:13 haha, oops Jan 14 10:46:05 hi guys, i am writing a app where there user can add a bunch of categories, and each of these have a couple of settings, what would be the recommended way to store these? Shared setting? Database? Jan 14 10:46:40 asperon: wrong channel! Jan 14 10:47:27 asperon: this is the place for the devs, ask in the user-channel #android . if you however have any questions about how the #android channel is moderated, feel free to ask such questions in here Jan 14 10:47:38 asperon: my general answer would be that if the data slots are fixed, you're fine to use shared settings - so if there will always be the same number of categories and settings... also, depends on the complexity, since shared settings are pretty much just flat Jan 14 10:48:04 asperon, mhm, what Leeds said Jan 14 10:48:05 Leeds: dude, seriously, why didn't you just gave that answer in #android Jan 14 10:48:19 asperon, remember that shared settings are pretty much just an XML that gets fully loaded into memory Jan 14 10:48:23 and has static keys Jan 14 10:48:28 Leeds: its very much a 1 to unlimited number of categories, so i could use a index based sharedpref, or use a getAll to index them, but the thing is i need to maintain the integerity Jan 14 10:48:35 if you have a few settings for stuff that won't change, shared settings are ok Jan 14 10:48:43 wrong, asperon, you want to use the boost api Jan 14 10:48:44 asperon, use a DB then Jan 14 10:48:50 don't index anything, use flat files Jan 14 10:48:52 yeah, that sounds like a DB situation Jan 14 10:48:54 mavrik: thats what i was thinking Jan 14 10:48:56 thanks guys Jan 14 10:49:06 or you' have a P=NP solution, and you don't want to prove that Jan 14 10:49:10 asperon, pretty much when you say "integrity" and "ulimited"... sqlite to the rescue! ;) Jan 14 10:49:15 asperon: fuck ya in the ass :3 Jan 14 10:49:16 ;) Jan 14 10:49:57 because as we know, sqlite is a paragon of data integrity :) Jan 14 10:52:43 shhh Jan 14 10:52:44 >P Jan 14 10:52:58 Leeds, saying things like that makes people try to install Oracle DB on phones :P Jan 14 10:54:20 Mavrik: can I directly access my mysql db from Android? Jan 14 10:54:23 using phonegap? Jan 14 10:54:29 and php? Jan 14 10:55:03 Yes Leeds you can. Make sure you always do "select *" for performance reasons. Jan 14 10:55:19 http://use-the-index-luke.com/blog/2013-08/its-not-about-the-star-stupid Jan 14 10:56:01 one thing is certain; if someone asks to directly access their database - they are using PHP Jan 14 10:57:24 ndk build with android studio on windows aka abandon hope all ye who enter here Jan 14 10:57:51 what does NDK have to do with AS anyway? there's no support :) Jan 14 10:58:00 yeah Jan 14 11:14:06 Hello peeps Jan 14 11:14:26 Catharsis: shut the fuck up, get the fuck out of here Jan 14 11:14:40 Nice welcome :-p Jan 14 11:15:10 * Catharsis wonders what he has done to gain such a hostile welcome Jan 14 11:15:37 that's because you use dildos, that's why! Jan 14 11:15:40 we don't like dildos in here Jan 14 11:16:11 Catharsis: appearantly Coryn forgot his meds ;) Jan 14 11:16:39 Very mature behaviour Coryn, your going on my special list :) Jan 14 11:17:03 shmooz: Obviously, shame I have no spares Jan 14 11:29:13 Catharsis: wow, *YOU* are going to ignore me :O WOW, I REALLY DO CARE! Jan 14 11:29:20 I mean, you're so special and all! Jan 14 11:29:36 (you're just a random fucktard I never asked any opinions of) Jan 14 11:34:21 Anybody know how I can make my /ignore's really persistent? Third day, jeez, get a life. Or somebody use whatever banning mechanisms you have. Jan 14 11:35:16 kjeldahl: well, fuck yourself in the asshole, and see if it works :) Jan 14 11:35:31 oO Jan 14 11:35:48 I was thinking about asking an android-related question but I guess I am in the wrong channel Jan 14 11:36:20 ohcibi: ignore the troll... unfortunately, this channel (and the related #android) has largely been abandoned by its mods Jan 14 11:36:36 Coryn i predict you will be banned before 19:84 tomorrow ;) Jan 14 11:36:51 Leeds: cannot even determine whos the actual troll here... oO Jan 14 11:37:17 just Coryin? Jan 14 11:37:29 at the moment, yes, but he's persistent Jan 14 11:37:59 kjeldahl your client should do that Jan 14 11:38:14 quassel actually does a good job in just hiding any messages of a certain user Jan 14 11:38:18 persistently Jan 14 11:38:37 even for old messages (they still exist in the DB though but the client just hides them) Jan 14 11:38:46 g00s: Thanks, done. Jan 14 11:39:22 but i see /tor-sasl in his hosts.. doesn't that mean that ignoring him is kinda useless at the end? Jan 14 11:41:42 so... does anyone knows whats causing the error 'Module "My Module" must not contain source root "/path/to/my/module/src". The root already belongs to module "My Module".. i mean its obvious that the src of my module belongs to my module, no? Jan 14 11:42:12 it sometimes happens in project structure settings when trying to apply something Jan 14 11:42:40 sometimes it can be solved by canceling and redo what was configured maybe in smaller steps Jan 14 11:46:11 anyone know how to add stuff to the .aar when building with gradle? desperately trying to get this jni build working Jan 14 11:52:53 wish these gradle tasks were better documented :| Jan 14 11:53:53 would appreciate any advice, if I can't get it working soon I'm a bit fucked :) Jan 14 11:56:32 maybe add it to dependencies? Jan 14 11:56:36 in build.gradle Jan 14 11:57:25 but i dont know... I'm not yet moving over to gradle... it sucks a bit, that android studio can only create new projects with gradle but not with the "classic layout" which works way more reliable than with gradle in AS Jan 14 12:04:18 ohcibi: g00s is the troll, he's just accusing others for being trolls. ignore him Jan 14 12:07:22 how can i create an xml layout to be applied to only api lower than 11? Jan 14 12:07:50 like res/layout-v11 or something? Jan 14 12:14:29 im struggling to work with Google Game Services in a multiple activity and service application, i was attempting to init my gameclient, then store a reference to the gameclient in my application class for global access, but its not working as expected. what would be the best way to instanciate and reference my basegameactivity class? Can i just write all my code and methods in the class, then create a new instance in my Jan 14 12:14:29 application class like BaseGameActivity bga = new BaseGameActivity(); and then set all my interface callbacks in alternate methods to the bga object? Jan 14 12:15:04 alternate activities and services? Jan 14 12:16:01 im using standout to get a floating window which i use to run this code on top of any other active apps, it extends the service class Jan 14 12:25:04 fuck why is this so difficult Jan 14 12:25:42 what exactly? Jan 14 12:25:51 ah Jan 14 12:25:56 JNI/Gradle garbage :) Jan 14 12:27:38 storkme, this worked for me: https://gist.github.com/izacus/2c4549bd31d7d63a82b6 Jan 14 12:27:51 but honestly, get rid of Gradle if you can Jan 14 12:28:16 this is for a library if that makes a difference Jan 14 12:28:29 ah yea Jan 14 12:28:32 that does make a difference Jan 14 12:28:48 I don't think they support native libs in libraries yet Jan 14 12:31:37 fuck it, I'm just gonna copy the source code into the application, don't have time for this right now :( Jan 14 12:52:24 hello guys/girls http://stackoverflow.com/questions/21114012/how-can-i-change-actionbar-actions-items-on-selected-navigationdrawer-item Jan 14 12:54:03 Morning Jan 14 12:58:31 how can you get today in millis? but hours and minutes must be 0 like: 14 jan 00:00 to millis Jan 14 13:13:47 Hey there. Jan 14 13:14:30 I was wondering if there is a clean way to have a QR code that either links to somewhere in my app or the playstore, but without displaying a "choose the app which should process this intent" dialog. Jan 14 13:15:29 I mean, if i link to a website that opens the store and have the app register for that website, the user will get a "app or browser?" dialog Jan 14 13:21:42 heyo :) Jan 14 13:21:53 how's life in here? Jan 14 13:26:57 tagrudev, http://stackoverflow.com/questions/21114012/how-can-i-change-actionbar-actions-items-on-selected-navigationdrawer-item/21114723#21114723 Jan 14 13:29:16 tagrudev, the first option is the most correct one .. each item in your navigationDrawer is going to be a fragment so let each fragment manage its own actionbar items Jan 14 13:30:06 RedNifre: I believe that by making an intent that only your application is registered to handle should do the trick, as there is nothing to ask the user in that case Jan 14 13:30:32 RedNifre you use intent filters for that Jan 14 13:31:00 ISDP life is good Jan 14 13:31:34 RedNifre, do you generate the QRCodes? Jan 14 13:32:06 if you dont generate the QR codes yourself and if its a web link then the phone will always ask which app to use Jan 14 13:32:23 cause the browser apps on the phone has intent filters for all links Jan 14 13:32:31 the playstore as intent filters for playstore links Jan 14 13:34:01 if its a link that you want to catch then there is no way to go about it without having the phone ask for which app to use unless for that specific link type you say always use Jan 14 13:34:14 lemonxah, yes I did it thank you accepted your answer Jan 14 13:34:26 I generate those codes Jan 14 13:34:38 but by default it will always ask if its a link that a browser can open the browser tells the phone .. hey i can do that Jan 14 13:34:45 and your app will say hey i can do that too Jan 14 13:35:03 so thats when you get the phone saying well there are 2 or 5 apps that says they can do it Jan 14 13:35:09 well, ideally it should be one qr code that works for iOS and Android and either opens the app on the right screen or open the store Jan 14 13:35:11 tagrudev, no worries hope it helps Jan 14 13:36:08 RedNifre, if you register an intent filter for playstore links then the phone will ask for 3 apps .. yours, playstore and for each of the browsers you have Jan 14 13:36:14 cant get past that sorry Jan 14 13:36:48 but will playstore links work? I mean I have to pass data to the app, won't that confuse the store? Jan 14 13:37:09 or is there a special store parameter that google guarantees to cause no trouble which we can use for just that? Jan 14 13:37:50 if you use fieldnames in the link that playstore doesn't know about it should be fine Jan 14 13:38:26 like for example http://play.google.com/....?..&yourspecialvar=1&yourspecialvar2=5 Jan 14 13:38:38 if that makes sense Jan 14 13:38:54 hm... so worst case is that the user has the app installed, but clicks "play store" anyway, which means he won't be able to open that link... Jan 14 13:39:17 I guess there's no universal way to have javascript on a site determine wether the app is installed or not and then launch either a store intent or an app intent? Jan 14 13:39:17 well he will go to the play store version of that link Jan 14 13:39:37 yeah, but on the playstore he will see the app, he can then press "open", but the information will be lost. Jan 14 13:39:49 yes Jan 14 13:40:02 so you trying to send an app intent from a website? Jan 14 13:40:16 why do you want to format it into a playstore link? Jan 14 13:40:22 so that if he doesn't have the app he can install it? Jan 14 13:40:35 no, i want a QR code that on iOS and Android either opens my apps in a specific screen, or opens the store where the user can install the app. Jan 14 13:40:54 I mean, the app provides content and the idea is to link the content in a QR code to be viewed by the app, if it is installed. Jan 14 13:42:26 Imagine it's an app for viewing cars. So you encounter a billboard that says "Check out this car" with just one QR code. You scan it and it either shows the car in my app (iOS or Android) or it opens the store where you can install to get the app. It's okay that you'll have to scan the code again once you have the app installed. Jan 14 13:43:32 All the solutions I came up with so far involve a dialog that when the user makes the wrong selection will lead him somewhere where the information will be lost. Jan 14 13:43:58 ugg Jan 14 13:44:23 gonna try aide again, forgot what a hassle adt can be sometimes Jan 14 13:44:38 RedNifre, unfortunately i cant speak for iOS but on android you wont get past that issue Jan 14 13:45:11 cause the operating systems lends itself to have multiple apps do the same job or accept the same type of data and you have to choose which app to use Jan 14 13:45:37 and cause of this feature of the operating system you wont get a seamless experience Jan 14 13:45:44 unless you write the QR scanner Jan 14 13:45:50 elo Jan 14 13:45:55 so that they are allready in your app when they scan the qr code Jan 14 13:46:08 so if a normal qr scanner scans it then it goes to the store Jan 14 13:46:13 then they install Jan 14 13:46:20 Anybody found the way of gently import AS project into Eclipse ADT ? Jan 14 13:46:25 and then they scan with your app's "qr scanner" Jan 14 13:47:30 you dont have to write the qr scanner but you can hook into the qr scanner from your app so they start your app .. your app tells android it wants to scan qr code then the qr code scanner app comes up and then scans something and then the data goes to app only upon completion of the action Jan 14 13:47:37 that could be a way to go about it Jan 14 13:47:58 then it wont ask which app to use for the scanned data but it does mean that they have to first go to your app before scanning Jan 14 13:48:09 RedNifre, Jan 14 13:48:45 what if qrscanner doesn't handle external apps? Jan 14 13:49:42 then it sucks. tough luck Jan 14 13:49:50 yeah Jan 14 13:50:27 such functionality should be in apps set by default. QR is a standard for now. Jan 14 13:50:35 well if your system doesn't have a qr app that accepts external "input" then you can, in your app, say that you need this or that qr app Jan 14 13:50:57 yeah just saying if you dont want to roll your own qr scanner Jan 14 13:51:15 best would be to roll your own .. or get a qr lib Jan 14 13:51:23 and do the qr scanning inside your app Jan 14 13:51:31 qr lib - how nice :) Jan 14 13:51:51 ? Jan 14 13:52:14 nothing I mean what I mean Jan 14 13:52:22 nice is nice :) Jan 14 13:52:30 karab44 you want to go from as to adt :/ why do you want to do that? Jan 14 13:52:36 i like as :) Jan 14 13:52:53 I don't want to go, I want to use both :) Jan 14 13:52:55 hhehehe Jan 14 13:53:03 ah kk Jan 14 13:53:22 we used both during the crossover phase to AS Jan 14 13:53:47 This is what I do Jan 14 13:53:58 all on AS now .. but what we did was have the gradle.build drive the AS and still have eclipse project folder Jan 14 13:54:34 I found people complaining about eclipse but it is stable for me and I know it well. AS is a great mistery for the moment. That's why I need both for now. Jan 14 13:55:17 Just downloaded it so it's time for first impression. Jan 14 13:56:26 but it was a pain cause if someone changse something on AS you have to manually do those changes in eclipse Jan 14 13:56:41 AS is intelliJ Jan 14 13:56:47 i never used intelliJ in my life Jan 14 13:56:52 before AS Jan 14 13:56:57 i am convert!! hehe Jan 14 13:57:11 deleted eclipse off all my machines use AS for android stuff Jan 14 13:57:14 and intelliJ for the rest Jan 14 13:57:24 the biggest hater conversion :) Jan 14 13:57:29 you surrendered to the rooskies Jan 14 13:57:53 not that i hated anything :) but intelliJ is just soo beast in comparison Jan 14 13:58:09 took some getting used to ofc Jan 14 13:58:13 but win all the way Jan 14 13:58:34 AS is different in the fact that the gradle.build file drives the project structure Jan 14 13:58:52 so it builds its own project structure according to the build file Jan 14 14:01:21 well, a scanner in the app isn't that nice. Don't most people use just one app for every qr code they see? Jan 14 14:01:59 morning Jan 14 14:06:00 Bender taught him how to bend Jan 14 14:07:39 RedNifre, it depends on what i want to do with the qr code .. but yes normally the same app .. but if that is the route you want to follow then you cant get rid of the diablog asking which app to use Jan 14 14:08:34 anyone know of a way to figure out if the MediaPlayer drops a frame? Jan 14 14:10:47 BrutusBoots: http://stackoverflow.com/questions/5068349/how-can-i-get-rendered-frames-statistics-drawn-dropped-from-stagefright-media Jan 14 14:19:19 clear Jan 14 14:19:23 oops.. Jan 14 14:19:29 password: Jan 14 14:19:40 wrong terminal Jan 14 14:22:19 why my AS is so ugly? Is it QT ? Jan 14 14:22:47 karab44: mines not ugly Jan 14 14:22:58 use the Darkula theme Jan 14 14:23:49 OK 0.42 is not that bad at all. I just updated from 0.3 Jan 14 14:24:08 hmpf Jan 14 14:25:14 but theme is still very harsh Jan 14 14:26:09 looks like app 1000 B.C. Jan 14 14:26:19 before commodore :D Jan 14 14:28:06 yeah :S Jan 14 14:29:14 karab44: try mac if you want it to look pretty Jan 14 14:29:46 I'm just breaking balls. I don't care that much about look Jan 14 14:31:42 so, creating two apps, one client app, to send a request to pick up scrap at an address Jan 14 14:31:53 and one for me and the other people who pick it up Jan 14 14:32:11 when someone sends a pickup request, all the devices need to be notified Jan 14 14:32:56 the backoffice devices... Jan 14 14:32:56 GCM? Jan 14 14:33:53 ISDP: seems like a likely choice Jan 14 14:35:00 alexfu, the backoffice app needs a listview with when the request was placed and some kind of gMaps view so we can navigate... Jan 14 14:35:03 any ideas? Jan 14 14:37:23 ISDP: idea on what? Jan 14 14:37:40 ISDP: not sure what you're asking... all of those are possible Jan 14 14:38:36 yeah, but how, i'm used to not having to thread webrequests etc Jan 14 14:38:42 i'm not used to the new SDK Jan 14 14:38:54 any good eBooks on 4.4.2? Jan 14 14:43:53 ISDP: you normally run web requests on the main thread???? Jan 14 14:46:01 alexfu, last time i made a app, yes. Jan 14 14:46:06 it was allowed back then. Jan 14 14:46:13 Gingerbread eh Jan 14 14:46:41 ISDP: but it was still never a good idea Jan 14 14:46:54 mikedg, i was quite a bit younger back then haha Jan 14 14:46:55 ISDP: uh... it may have been allowed, but it's never a good idea Jan 14 14:47:06 i'm 19 now :P Jan 14 14:47:16 We were all a bit younger back then :) Jan 14 14:47:18 i still have no clue as to how properly use threading, really Jan 14 14:47:41 i guess i am not used to java and android etc, i'm used to php haha Jan 14 14:47:53 ISDP: its worth really understanding, you can butcher your apps with poor threading Jan 14 14:48:06 yeah i know a little bit about that Jan 14 14:48:23 its best when you test the differences yourself Jan 14 14:48:31 and see which way is faster Jan 14 14:48:34 http://docs.oracle.com/javase/tutorial/essential/concurrency/threads.html is always a good start Jan 14 14:57:28 tools for mocking things up.. lowish fidelity. balsamiq is okay but no mobile. ideas? Jan 14 15:05:20 funkbox: are you an actual developer or just asking here? Jan 14 15:05:31 yes, developer and do a bit of mocking up Jan 14 15:05:34 I like the xml editor in the IDEs :/ Jan 14 15:05:38 using balsamiq but it's eh Jan 14 15:06:14 I've used pencil in the past, but not recently Jan 14 15:06:14 http://pencil.evolus.vn/Downloads.html Jan 14 15:06:34 oh i'll try it, thanks! Jan 14 15:07:13 instacrash :( Jan 14 15:07:55 hi again. All right in here ? Jan 14 15:08:27 why does an own button, which inherits from button, looses all the parent-class features ? Jan 14 15:09:15 icbytes: you have a custom button that extends Button and itloses features? What features? Jan 14 15:09:33 Button is basically just the background and otherwise a pretty plain view Jan 14 15:09:57 all features ; I have no border, it is has not round corners, no gradient, no change, when clicked, It is simply a rectangle Jan 14 15:10:35 Sounds like you have a custom style somewhere Jan 14 15:10:45 Button is really really bare bones, https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/Button.java Jan 14 15:11:08 Buttons on modern android devices are rectangles Jan 14 15:11:09 i have no style. No where. I only inherit form button. perhaps i will have to overwrite some things Jan 14 15:11:41 What is your custom class doing that it needs to extend Button? Jan 14 15:11:47 the usual button gets highlighted on click, mine not. the usual button has some border, mine not Jan 14 15:12:21 icbytes, is there any indication that your button is being drawn even? Jan 14 15:12:23 as ported form .net i had to follow some rules, in order to implement special interfaces and add special attributes Jan 14 15:12:29 sounds to me like you haven't added it to the view hierarchy Jan 14 15:13:53 i place this button at runtime to my fragment, in fact i create it at runtime, set text, assign click handler, so it is being drawn, and it performs the click event properly. In fact even my inherited TextView looses its border, too. Labels also. Jan 14 15:15:12 is there some necessary thing to overwrite ? I read about nine-patches, But then I would have to create n nine patche decorations, supportting all colours, which we provide ( perhaps ). Jan 14 15:15:31 TextView's don't have borders by default. I'm starting to suspect that there is a disconnect in communication here Jan 14 15:15:51 ok, TexView has none, THX so far, Jan 14 15:16:16 But a button has. And it has a reaction during click ( gets highlighted ) . Jan 14 15:16:24 all is lost. Jan 14 15:16:25 I suggest trying to use the basic Buttons and TextViews and making sure those get added and drawn correctly Jan 14 15:16:36 Adding Views programmatically is HARD, even for experienced revs Jan 14 15:16:39 did that. Prior to my tests. Jan 14 15:17:18 Was hard at the beginning, now i got pretty used to it. I only miss some style. Jan 14 15:17:18 mikedg: i think it's more tedious than hard really Jan 14 15:18:10 I have a ClassA with a list which has "a", "b", "c". I pass the list to an object of ClassB and set it to its private list, then adding "d" in classB object, the "d" is also inside the list of classA, how come? I don't want this to happen Jan 14 15:18:14 Was trying to read about border xml's via shape . Did not work, because the solid color still gets applied, although setting to transparent. So this was no option. Jan 14 15:18:38 FrancescoV: basic Java, you are passing a reference by value basically Jan 14 15:18:42 Fancesco : reference Jan 14 15:18:50 If you don't want that to happen, be sure to pass a copy Jan 14 15:19:18 Or just copy the list in the receiving function Jan 14 15:19:43 Collections.copy() should help Jan 14 15:19:53 so, anyone try to inherit from button and place it onto an fragment during onCreate of fragment. You will see a completely flat rectangle. Jan 14 15:20:19 with no onClick style change. Jan 14 15:20:19 mikedg: tnx! Jan 14 15:21:21 will i have to override onDraw by myself, draw an border ? And then place the text AGAIN ? Jan 14 15:23:03 would be very annoying. The only thing I can imagine is that my button derivate cannot access some private methods of the Button, and therefore they simply are not invoked, and those methods were responsible for border, click behaviour, and so on.... Jan 14 15:23:15 icbytes: there is nothing inherent in the Button that requires that Jan 14 15:23:26 Something you've done is out of the ordinary and we just can't identify it Jan 14 15:23:28 icbytes: what are you trying to do? Jan 14 15:24:32 out of the ordniary ? To inherit from button ? Why ? Jan 14 15:24:50 Because you are not seeing text or the background Jan 14 15:25:07 ExtCustButton extends Button implements if1 if2 if3 .... Jan 14 15:25:29 i must admit, that I am testing on genymotion ( but was the same on bluestacks before ).... Jan 14 15:25:43 Perhaps one of your interfaces is the same method as a necessary function of Button Jan 14 15:26:02 And by implementing that interface you are preventing the super class method from running Jan 14 15:26:13 I doubt t it, but it's a possibility Jan 14 15:27:06 which could this be ( mostly near to some well known word, like Style ,,,,, ). or which of the methods provide such a behaviour ??? Jan 14 15:27:23 icbytes: post your button class ? Jan 14 15:27:29 code Jan 14 15:27:48 oh, that is hard, have it on another laptop, which is cloning disks right now. Jan 14 15:27:59 mikedg: made it also work with this: mItems = new ArrayList(items); (mItems = dest, items = source) Jan 14 15:28:06 could it be something like setStyle ? Jan 14 15:28:26 i have such a method in my own Button,..... Jan 14 15:28:36 icbytes: that could be it Jan 14 15:29:01 setStyles also ( explanation beyond of scope ).... Jan 14 15:29:29 hmm, that is a interesting hint, the superMethod is masked...... somehow. Jan 14 15:30:03 Should there not be a warning during design time ( forgot the exact name of this )..... Jan 14 15:30:50 Some IDE's might give a warning about not calling super, I'm not sure off the top of my head though Jan 14 15:31:02 FrancescoV: cool Jan 14 15:31:05 to handle (timed/asynchronous) events in a game, should the game logic/timing be implemented in a service, and the UI part bind to the service to behave appropriately? Jan 14 15:31:32 helo: like Tiny Tower esque crap where stuff happens after like 20 minutes? Jan 14 15:32:28 mikedg: or even a multiplayer game where the UI needs to respond based on data received over a socket Jan 14 15:32:38 s/multiplayer/netorked/ Jan 14 15:33:20 thx so far. it is a direction. i will inspect this tomorrow. see ya. bye. Jan 14 15:33:22 I suppose that's fine, I don't really have experience with game dev. but I don't see why it would be a bad idea Jan 14 15:33:29 icbytes: bye good luck Jan 14 15:35:36 mikedg: i can't really think of a better way to handle it. maybe i'll need one service that tells the UI what to do, and then a few sub-services that handle timed and network asic stuff Jan 14 15:36:00 You could always do it in a separate thread that is local to your activity Jan 14 15:36:27 I guess it comes down to how important maintaining the connection is, if it can be torn down and brought back up when the user hits home that knight be fine Jan 14 15:37:32 yeah, it would definitely be in a separate thread Jan 14 15:38:51 anyone migrate a project from adt to android studio? Im having a stupid gradle error. If i export it and import the projects build.gradle, It errors out and says im using gradle 1.6 which is unsupported, use 1.9. If i tell android studio to upgrade the project then i get an error, you're using 1.9, the project requires 1.6, please use gradle 1.6. What the heck?! Jan 14 15:40:27 Okay what's all the stuff that I need for diplaying a list? A listview, a listviewitemview. A list adapter and also a class that contains all the necessary info for being displayed in the list? Jan 14 15:41:54 Sounds about right Jan 14 15:42:37 the class isn't "needed" but definitely helps Jan 14 15:42:57 marrrk: depending on what you need ... these projects might come in handy: http://andless.sourceforge.net/index.php?section=endless or https://github.com/commonsguy/cwac-endless Jan 14 15:44:22 It doesn't have to be endless it's really simple. I just need a way to map my data to the the list item view. Is that the adapter? Jan 14 15:45:20 Yes Jan 14 15:45:24 marrrk: if it does not need to be endless then you already have all you need (as stated) Jan 14 15:45:36 Is the data from a db, array? Jan 14 15:45:39 marrrk, ListView is the top container, Adapter tells the listview about data and generates rows Jan 14 15:45:45 Ah. I don't have it. I thought there might be an easier way. From a db. Jan 14 15:46:06 Remote db or local db Jan 14 15:46:28 is it possible to change font styles of textviews in android?? Jan 14 15:46:40 Yup Jan 14 15:46:54 marrrk: have you read the android dev guide? http://developer.android.com/guide/topics/ui/layout/listview.html Jan 14 15:47:00 marrrk, simplest list is probably a ListView with ArrayAdapter and android.R.simple_list_item_1 or something :) Jan 14 15:47:05 how can it be done?? anyone plz!! Jan 14 15:47:07 nikdev, yep. Jan 14 15:47:40 Yeah, that's simple but ugly. Jan 14 15:47:42 Marvik: how can it be done? Jan 14 15:48:05 nikdev: The font? Jan 14 15:48:11 nikdev, by reading documentation on TextView? Jan 14 15:48:12 Or just make it bold or italics? Jan 14 15:48:21 marrrk, yeah well, then you don't want a simple list ;) Jan 14 15:48:31 I want it to be simple to code! Jan 14 15:48:36 create a layout that represents a row Jan 14 15:48:40 and make an adapter Jan 14 15:48:44 it IS simple to code :P Jan 14 15:48:46 nikdev: you could specify a style (res/styles.xml) Jan 14 15:48:47 Yeah, that part I have done. Jan 14 15:49:10 nikdev to use a proper font (i.e. not Roboto) you can call setTypeface on your view.+ Jan 14 15:49:41 oh ... should be res/values/styles.xml Jan 14 15:50:08 marrk :what is setTypeface??? Jan 14 15:50:31 i am beginr to android Jan 14 15:50:40 You are a beginner to programming in general. Jan 14 15:50:52 and english. Jan 14 15:50:55 and typing. Jan 14 15:51:10 no specificaly on android ;-0 Jan 14 15:51:11 beginner to programming Jan 14 15:51:27 anyone that qualifies as being a beginner to x is a beginner to superset of x Jan 14 15:51:36 from what I've seen / been told: do not try a custom font Jan 14 15:51:44 calligraphy Jan 14 15:51:50 why not? custom fonts are just fine Jan 14 15:51:51 custom fonts work fine Jan 14 15:51:55 roboto has been designed for mobile quality screens and is the standard, stick with it Jan 14 15:51:56 it's just annoying Jan 14 15:51:56 jonc-1: Why not? I have not encountered any problems with them Jan 14 15:52:00 slight performance hit but that's it. Jan 14 15:52:10 it's not even really a performance hit Jan 14 15:52:12 usually not necessary unless you know what you're doing Jan 14 15:52:13 den how come my apps have some stylish fonts??? Jan 14 15:52:14 A pretty substantial one if you don't cache it right Jan 14 15:52:25 jonc-1, meh, Roboto (non-light one) is still rather ugly and doesn't fit well in all designs Jan 14 15:52:53 pfn, well, Roboto is pre-loaded and if you have a several MB font file it'll show on app init :) Jan 14 15:53:02 of course, if you don't prune the font Jan 14 15:53:11 jonc-1: If you are a beginner it's probably a good idea to stick with the default font for now because as pfn says, it's quite annoying to use another one. Jan 14 15:53:28 on app init and if you don't cache it, you will probably run into memory issues Jan 14 15:53:29 not really? Jan 14 15:53:35 you throw it into assets and load? :) Jan 14 15:53:52 you can't just set it as the font for the entire app, you have to do it to everything by hand Jan 14 15:53:57 which makes it a pita Jan 14 15:54:01 and then assign it to every view that uses fonts Jan 14 15:54:07 or use calligraphy like everybody else Jan 14 15:54:22 jonc-1, well we just usualy extend the TextView :) Jan 14 15:54:36 storkme: that looks interesting. Jan 14 15:54:50 i have a problem with EditText setError: the message doesent disappear when i write text on editext. anyone know why? Jan 14 15:55:18 https://gist.github.com/pfn/55118e0bef6f61b6e849 Jan 14 15:55:21 god, java is so verbose... Jan 14 15:55:42 ugh fugly Jan 14 15:55:54 wtb java 8 plz Jan 14 15:55:58 Hello! I'm trying to override the "up" action in my App. I'm not interested in supporting 4.0 and previous, so I am not using NauUtils. However, I don't know which is the method I have to override in order to call some method before the "normal" behaviour of "up". Any suggestions? Jan 14 15:56:12 ProgressDialog p Jan 14 15:56:21 them variable names Jan 14 15:56:25 Here comes another question... Layout i design in eclipse is looking different as i install it on mobile Jan 14 15:56:26 i give on this export and upgrade to gradle. Just going to use the old build system in android studio and hope for the best, shit is ridiculous Jan 14 15:56:27 Mavrik, ugly, but so magical Jan 14 15:56:29 oscarvarto, that's a menu option with ID of android.R.home Jan 14 15:56:43 how can i overcome this difficulty?? Jan 14 15:56:44 pfn, I'm just happy that IDEA is rather good at hiding that clutter Jan 14 15:57:04 pduin, if you need more than single letter variable names in short blocks of code, you stink Jan 14 15:57:05 :p Jan 14 15:57:05 I like its verbosity tbh Jan 14 15:57:11 * pfn despises this verbosity Jan 14 15:57:15 :) Jan 14 15:57:28 i used to like its verbosity until i saw the light Jan 14 15:57:38 but yeah, this codeblock wraps like 10 asynchronous calls into a single future and executes shit at the end Jan 14 15:58:08 but still, java, y u so ugly? Jan 14 15:58:26 It's all personal preference though Jan 14 15:58:37 you can write ugly code in any language, that same functionality could be written out much cleaner Jan 14 15:58:46 jonc-1, says you Jan 14 15:59:00 show us the same thing in scala plz Jan 14 15:59:13 Mavrik: a menu option? Sorry, I don't understand. Can you explain me more, please? Thanks. Jan 14 15:59:26 I am not saying in another language. I am saying that just because something is fugly in java means it actually has to be fugly Jan 14 15:59:29 oscarvarto, the "up" button acts like a menu option :) Jan 14 15:59:40 oscarvarto, http://developer.android.com/guide/topics/ui/menus.html Jan 14 15:59:56 doesn't mean it actually has to be fugly* Jan 14 15:59:58 oscarvarto, so you need to override onOptionsMenuSelected Jan 14 16:00:08 oscarvarto, and look for android.R.home itemId :) Jan 14 16:00:12 in your activity Jan 14 16:00:34 Mavrik: Thanks for helping me :-) Jan 14 16:00:37 pfn: http://download.java.net/jdk8/docs/api/java/util/concurrent/CompletableFuture.html Jan 14 16:00:56 pfn, utter ugliness of Futures code is why I try to avoid it as much as possible :/ Jan 14 16:01:20 Mavrik: layout i design in eclipse looks different as i install it on mobile!! Jan 14 16:01:20 just you wait :) Jan 14 16:01:27 why does it happen so?? Jan 14 16:02:43 Mavrik: could you plz answer my question Jan 14 16:02:55 :) Jan 14 16:03:40 Mavrik: But still I have to call some method, after the `switch`. Here: http://developer.android.com/training/implementing-navigation/ancestral.html#NavigateUp they are calling `NavUtils.navigateUpFromSameTask(this)`, which method do I have to call if I am not using NavUtils? Jan 14 16:04:13 https://gist.github.com/pfn/55118e0bef6f61b6e849 Jan 14 16:04:20 rewritten in scala would look something like that Jan 14 16:05:22 neat Jan 14 16:05:29 storkme, new for java 8... yeah, that's useful Jan 14 16:05:39 Mavrik, the composability of futures makes it so much more useful Jan 14 16:05:50 yep, yes it does Jan 14 16:05:54 and I use it in other languages Jan 14 16:05:56 a little bit of verbosity of java is ok... just pisses me off Jan 14 16:06:10 just for Java it makes the code so awfully ugly.... that I rather find workarounds :/ Jan 14 16:06:36 there isn't really anything nice that does cool shit in java Jan 14 16:07:00 it is useful, it's just not in android yet. Jan 14 16:07:04 pfn: layout i design in eclipse looks different as i install it on mobile!! Jan 14 16:07:12 I mean, seriously, even though it's verbose, it takes 10 asynchronous web request calls, sequences them in the right order, and waits for them all to finish, and either passes the exception, or the resulting value Jan 14 16:07:21 can't really do that with modular blocks of code with any other async framework Jan 14 16:07:26 why does it happen so?? Jan 14 16:07:36 nikdev, because you chose the wrong options Jan 14 16:07:48 different resolutions being presented in eclipse vs your mobile device? You may have hardcoded things to look good for the eclipse editor Jan 14 16:07:55 nikdev have you considered a career in spam? Jan 14 16:08:46 ive put the inappbilligservice.aidl in main/java/com/android/vending/billing/... but the package get not found in my de.myapp.subpackage.*, any idea what may be wrong? AS latest version Jan 14 16:08:53 marrrk: i'm sorry Jan 14 16:08:59 it's fine Jan 14 16:09:05 What is the difference in how it looks like? Jan 14 16:09:17 what*? I don't know. I'm a beginner in English, too. Jan 14 16:09:39 nikdev, post your layout xml on pastebin.com Jan 14 16:11:07 controls allignment looks diiferent from that i have specified in .xml file Jan 14 16:11:56 nikdev, To give us the best idea, post your layout xml (copy and paste) to pastebin.com Jan 14 16:13:30 Is there something analogous to `NavUtils.navigateUpFromSameTask(this)` in Android > 4.0 that does not require NavUtis? Maybe I'm approaching this in the wrong way and I *must* use NavUtils... Jan 14 16:13:38 pfn, there are some jars that work if I put them in the libs folder, but when I specify the same versions as libraryDependencies then it complains that there are duplicate class definitions. Jan 14 16:13:52 wondering why Android Studio download includes SDK... this is lame... :S Jan 14 16:14:15 marrrk, if you're pulling from maven central, and they're android libraries, you'll need to exclude support-v4, etc. Jan 14 16:14:39 Ah, I will try that immediately. Jan 14 16:15:00 you can try to fix by doing intransitive() Jan 14 16:15:42 wrap the "..." % "..." % "1.1" in intransitive( ) ? Jan 14 16:16:25 no, intransitive at the end Jan 14 16:16:40 http://www.scala-sbt.org/release/docs/Detailed-Topics/Library-Management.html Jan 14 16:16:54 I am there already, actually :) Jan 14 16:17:05 Was still looking at exclude Jan 14 16:17:21 http://pastebin.com/gqs0gTES Jan 14 16:17:37 here is sample code of xml layout file Jan 14 16:18:46 when i run its app on mobile, controls allignment looks differently from that of specified in eclipse window Jan 14 16:18:57 how could i correct it?? Jan 14 16:19:50 could anyone answer it plz Jan 14 16:20:22 Can you make it readable? Jan 14 16:21:12 nik, looking at it right now Jan 14 16:21:45 ok jonc-1, atleast you understood thank you Jan 14 16:22:02 Do I need mImageView.setImageUrl() after calling mImageView.get(url, ImageListener)? I am trying to set the image in the imageListener's onSuccess(Response resp, boolean immediate) with mImageView.setBitmap(), but that doesn't work. I figured the issue is that I either need to invalidate the imageView to refresh it, or runOnUiThread, or both, and none of those worked. Jan 14 16:22:05 There seem to be some random "-" signs. Jan 14 16:23:23 "-" it happend when copy and pasting Jan 14 16:24:02 http://pastebin.com/bnffg7ZK (used android studio to reformat it) Jan 14 16:24:18 thank you Jan 14 16:24:52 nikdev, what specifically looks wrong? (what textview or button) Jan 14 16:25:33 what i actully mean is like "Due to difference in mobile sizes and that of model in eclipse, controls allignment is changing" Jan 14 16:26:07 i mean not in proper position Jan 14 16:26:31 A screenshot would really help. Jan 14 16:26:33 you are using a relative layout but some of these things you do not position relative to another View Jan 14 16:26:55 so?? Jan 14 16:27:05 does it affect output Jan 14 16:27:09 ??? Jan 14 16:27:47 yes, relative layout will automatically put things where the Layout's gravity is, then you can move things around based on the other Views inside the layout Jan 14 16:28:09 the EditText you have is not set by anything relative, it's just there Jan 14 16:28:38 it does have senter in parent Jan 14 16:29:03 okk i get it.. Jan 14 16:29:22 also textView1 is set to the left of the edittext, do you want that to be centered in parent horizontally instead? Jan 14 16:29:35 yes yes Jan 14 16:30:04 then remove the align left, and set centeredInParent to horizontal Jan 14 16:30:21 how can i make standard posotion on any mobile sizes Jan 14 16:30:50 to be quite honest, with android it's a huge pain Jan 14 16:30:58 Basically, i used drag and drop things. Jan 14 16:31:21 i think that makes difference Jan 14 16:31:26 you can get things to look fairly similar to each other Jan 14 16:31:42 with use of centering, weights, and some other things Jan 14 16:31:54 ok ok Jan 14 16:31:54 but there is nothing like say HTML / CSS with percentages Jan 14 16:32:46 does every device should have different code for control allignment??? Jan 14 16:34:07 you can for the different screen densities, but for phones, overall your best bet is to stick with using centering and weights to do most of the work (don't nest weighted items) Jan 14 16:34:14 no but sometimes it feels that way Jan 14 16:34:49 nikdev, 1sec Jan 14 16:35:26 can fonts be changed for TextViews, so that we can make display nicely Jan 14 16:35:29 ?? Jan 14 16:35:40 fine Jan 14 16:36:25 Yes. You have an activity that in onCreate loads the layout, right? Jan 14 16:36:39 There should be a setContentView(R.layout.???) call Jan 14 16:37:09 ok Jan 14 16:37:52 then Jan 14 16:37:52 Now you can do Jan 14 16:38:18 TextView someNiceName = (TextView) findViewById(R.id.textView1); Jan 14 16:38:38 Then you have a reference to that text view instance. Jan 14 16:38:41 nikdev, http://imgur.com/a/K33es http://pastebin.com/a8HFuMeM Jan 14 16:39:29 the imgur links, that is what the layout for our registration page looks like at 2 different resolutions (slightly different but still very much recognizable as the same page), and that is all done with the layout xml from pastebin Jan 14 16:39:51 ok i am looking Jan 14 16:40:06 jonc-1: How about reversing the gradient in the edit texts? Jan 14 16:40:21 it looks live Jan 14 16:40:22 it's doable, it is just a resource Jan 14 16:40:46 I think it will appear less like a button but something that is shallow Jan 14 16:40:49 it is the design I was given Jan 14 16:40:53 Ah, that's sad Jan 14 16:42:00 how did you get underline on "security quesion" textview Jan 14 16:42:14 The CustomView below it Jan 14 16:42:28 the View* right below it Jan 14 16:42:57 yes yes iget it Jan 14 16:43:14 this is very useful man Thank you so much Jan 14 16:43:17 http://pastebin.com/hGMQqgd8 Jan 14 16:43:45 for dividers use px, because 3dp may actually be too big on some devices and too small for others, so for dividers only use PX Jan 14 16:43:50 pixels* Jan 14 16:44:15 I reversed it for the Answer field: http://imgur.com/DWFym90 Jan 14 16:45:47 marrrk: i dint find any difference ?what is that you have done? Jan 14 16:46:06 nikdev: this was more geared towards jonc-1 and the design of the view. Jan 14 16:46:36 ok ok Jan 14 16:47:17 3dp looks the same regardless of device... Jan 14 16:47:57 Does it? I thought it was just a factor depending on ldpi, mdpi, hdpi and so on Jan 14 16:48:11 yes, it's a factor depending on dpi, and it looks the same regardless of device Jan 14 16:48:17 3px will look different on every device Jan 14 16:48:23 this discussion was vey useful for me. thank you jonc-1 and marrrk Jan 14 16:48:40 Well, 3dip might still look a bit different, right? Jan 14 16:49:03 it'll look more the same than 3px would Jan 14 16:49:09 That, I agree on Jan 14 16:50:37 3px will look different on all devices Jan 14 16:50:51 but 3dp on some devices may actually get set to less than 1 px Jan 14 16:51:26 3dp on an any screen will still be roughly 1/50", 3px on xhdpi would be like... 1/100" Jan 14 16:51:35 false, ldpi is 66% the size of mdpi Jan 14 16:51:44 rather, 66% the density Jan 14 16:52:41 er, 75% Jan 14 16:53:52 what's the best settings for target sdk etc at the moment to support all phones? Jan 14 16:53:59 that are currently used? Jan 14 16:54:10 in manifest, always target newest version Jan 14 16:54:11 to support all phones? I believe API8 hits 90%+ Jan 14 16:54:28 in build, target the lowest one you can compile against Jan 14 16:56:11 i'm currently at the create new android project Jan 14 16:56:50 what to use for min sdk, target and compile with? Jan 14 16:57:22 i'm currently doing min:API8, target:API19, compile:API19 Jan 14 16:57:27 is that any good? Jan 14 16:58:34 compile 8 Jan 14 16:58:44 but are you sure you want 8... Jan 14 16:58:49 use 14 as your lowest values Jan 14 16:58:53 no i'm not sure i want 8 Jan 14 16:59:00 you don't Jan 14 16:59:02 i have to support all phones Jan 14 16:59:05 though Jan 14 16:59:09 you /have/ to? Jan 14 16:59:10 says who Jan 14 16:59:43 me, as it's a application for a company Jan 14 16:59:56 and we don't want people not to be able to use the app Jan 14 17:00:17 ISDP: http://developer.android.com/about/dashboards/index.html Jan 14 17:00:27 API 8 is 1.3% of users, and is almost four years old Jan 14 17:00:36 drop it; you won't have anyone on API 8 Jan 14 17:00:41 Gingerbread is the oldest version to support to get the largest marketshare, if you want ~75% of android users you can support 14+ Jan 14 17:01:14 api 9 would be the cut off* Jan 14 17:01:37 14 for 75%, 9 for 95% Jan 14 17:01:54 it's normal around here to have a pretty new phone Jan 14 17:01:56 but by the time the app ships 14 will probably be a lot higher Jan 14 17:01:59 ISDP: it'd be like writing a PC application and insisting that you have to support windows 98 Jan 14 17:02:00 max. 1 year old Jan 14 17:02:05 ISDP: that's not true at all Jan 14 17:02:11 lmfao win 98 Jan 14 17:02:12 ISDP: plus, you have the data in front of you Jan 14 17:02:13 evanc, actually WinXP is older than API8 Jan 14 17:02:19 evanc, that's global data Jan 14 17:02:19 hey hey Jan 14 17:02:22 so that's not a good comparison :) Jan 14 17:02:23 Mavrik: yeah but has a higher market share Jan 14 17:02:29 still. Jan 14 17:02:31 evanc, nah it's more like having to support XP (api9 at least) Jan 14 17:02:43 jonc-1: right, api 9. I was talking about 8 Jan 14 17:02:58 so, support JB? Jan 14 17:03:12 or just support ICS? Jan 14 17:03:19 and higher ofc Jan 14 17:03:31 ISDP, depends on what your app is Jan 14 17:03:33 api 14+ will probably be closer to 80-85% in the coming year or so Jan 14 17:03:43 ISDP, if you can support 9 without huge pain and with support libs... then do so Jan 14 17:03:56 so nothing below api10? Jan 14 17:03:57 Mavrik, it's an app to request scrap pickup from the company Jan 14 17:04:02 if you have an app that requires a high performance phone then working with API 9 will be a pain Jan 14 17:04:08 many of the people still on API 9 either are due for an upgrade soon or will not be upgrading until the phone dies Jan 14 17:04:08 ISDP, um... target 9. Jan 14 17:04:18 basically it sends json to a server Jan 14 17:04:24 utility apps should still work on JB Jan 14 17:04:52 but it has to be styled properly and support location data and address lookup Jan 14 17:05:03 all of that can be done with 9 Jan 14 17:05:08 yup Jan 14 17:05:16 and if you use fragments you can use the support libraries Jan 14 17:05:29 i never understood the damn views Jan 14 17:05:39 utility apps can easly have more than 30%+ of 2.3 phones still Jan 14 17:05:39 i'm used to webpage programming Jan 14 17:05:52 huh Jan 14 17:06:24 i'm a webdeveloper originally Jan 14 17:07:34 then creating the layouts shouldn't be a huge jump, but dealing with the java side of things may be a bitch Jan 14 17:07:42 so i'm not really used to the java side indeed Jan 14 17:07:49 i have minor experience with android Jan 14 17:08:01 but i started programming on a Nexus S with Gingerbread Jan 14 17:08:07 and used networking on the main thread Jan 14 17:08:35 i even have an app, got 300 euros of income from it, but it was buggy as hell, because i tried to disable buttons from another view or something Jan 14 17:09:18 O.o Jan 14 17:09:36 I have no idea how you could be any developer without knowing basics of programming -_- Jan 14 17:10:10 Mavrik, i know C# :/ Jan 14 17:10:34 jonc-1, http://pastebin.com/tuG2fYiS here's a stacktrace Jan 14 17:11:16 doesn't really matter, but pretty much shows how outdated my knowledge is Jan 14 17:11:32 ISDP, that error typically means you tried to manipulate the UI on a non-ui thread Jan 14 17:11:38 ISDP: you are trying to modify a view from a seperate thead.. not allowed Jan 14 17:11:53 http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) Jan 14 17:11:56 which is the case in all UI frameworks in existence -_- Jan 14 17:12:22 kinda mindboggling... Jan 14 17:12:29 that pretty much shows what eBooks and the internet did with me :| Jan 14 17:12:43 people that don't understand that have never written another UI app ever on any other platform Jan 14 17:13:16 ugh. Jan 14 17:13:19 ok, school me. Jan 14 17:13:38 but you claim to be a web dev, it's somewhat excusable because there's no threads in javascript Jan 14 17:14:12 (workers and whatever, but it's all very loosely coupled through message passing) Jan 14 17:14:40 i should note that i'm a bit autistic and logical patterns aren't so logical to me Jan 14 17:15:11 but, let's say, i click an item in a listview Jan 14 17:15:15 I thought those with autism grasp logic better... Jan 14 17:15:17 I'm modifying an ArrayAdapter with clear() and addAll(), do I still need to call notifyDataSetChanged() even if it works without it? Jan 14 17:15:21 how can i properly show the next "page" ? Jan 14 17:15:22 targeting api 15+ Jan 14 17:15:31 compac, always notify Jan 14 17:15:39 pfn, i can't even do math, so yeah... Jan 14 17:16:34 Most math programmers do is very basic, but I still suggest taking Calculus 1 and 2 Jan 14 17:16:55 and linear algebra for any graphics work Jan 14 17:16:59 Yup Jan 14 17:17:02 * pfn never uses calculus outside of physics simulations... Jan 14 17:17:02 and statistics for any data work Jan 14 17:17:26 it's not that it isn't used, its more of getting your mind to understand it Jan 14 17:18:54 anyone know of a way to tell if the ActionBar is in overlay mode or not? Jan 14 17:21:28 jonc-1, Why? Jan 14 17:21:39 why take calculus? Jan 14 17:21:46 Yes Jan 14 17:21:53 Abstract thinking Jan 14 17:21:56 Is the folllowing error caused by not implementing the appcompat v7 lib right? java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleable Jan 14 17:22:35 caused by not including it in your build Jan 14 17:22:49 http://hastebin.com/migufaguka.java Jan 14 17:23:23 I'm no Java expert, how do I include it in my build? Jan 14 17:23:36 I'm not used to IntelliJ, I switched from Eclipse. Jan 14 17:23:47 you add it to your build.gradle Jan 14 17:24:00 I'm not using Gradle Jan 14 17:24:10 then you add it to your build however you build Jan 14 17:24:17 All math helps you with that Jan 14 17:24:18 damned if I know, google for that answer Jan 14 17:25:55 Shouldn't that do it pfn: http://pbrd.co/1hncJ83 Jan 14 17:26:15 no Jan 14 17:26:27 or I dunno Jan 14 17:26:30 go google for the answer Jan 14 17:26:35 I have for 3 days Jan 14 17:26:43 There is absolutely nothing about it for IntelliJ Jan 14 17:26:50 then use gradle Jan 14 17:26:54 I have tried Jan 14 17:27:26 I come up with tons of unreasonable errors without any information. Jan 14 17:27:29 It* Jan 14 17:27:33 comes* Jan 14 17:27:40 pfn, BTW, I'm not exactly changing the instance variable I pass in. I'm using it as adapter.addAll(Arrays.asList(...));. Do I still need to call notifyDataSetChanged() ? Jan 14 17:27:59 compac, yes Jan 14 17:28:08 compac, why do you keep asking, does the documentation say you don't have to? Jan 14 17:28:08 why? Jan 14 17:28:23 if the docs don't say you don't have to, then you don't Jan 14 17:29:31 er, whatever, logic fail Jan 14 17:31:51 pfn, how come I can use the library when I'm coding and it recognises everything, but it errors in Android? Jan 14 17:33:35 Dreeass: because it may not be availble at runtime Jan 14 17:33:37 which library? Jan 14 17:34:23 funkbox, the v7 appcompat library. Jan 14 17:34:32 are you linking it? Jan 14 17:34:35 what are you using for your build Jan 14 17:34:45 http://pbrd.co/1hncJ83 Jan 14 17:35:10 is it a gradle prject? Jan 14 17:35:15 v4 works perfectly and IntelliJ autocompletes and detects the packages. Jan 14 17:35:17 No it's not Jan 14 17:36:01 try cleaning and building Jan 14 17:37:26 Are there any books on layout design worth having? Jan 14 17:37:37 funkbox, starting a whole new project, Jan 14 17:37:42 ?* Jan 14 17:41:18 Smashing Android UI is pretty good Jan 14 17:42:03 22$ Jan 14 17:42:09 It must be really good Jan 14 17:42:47 tech books cost money Jan 14 17:42:54 I know Jan 14 17:43:41 I am trying to load 6-7 720x430 images and yet after the 4th one I run out of memory Jan 14 17:43:59 louielouie, it looks like a book that teachs tou from the start Jan 14 17:44:06 I've tried recylcing it once the fragment is swiped away (view pager, each fragment has 1 of the images) Jan 14 17:44:28 I can't make the images any smaller without losing quality Jan 14 17:44:38 commonsware charges $45 for his ebook subscription but its well worth it for android programming Jan 14 17:44:51 hi Jan 14 17:45:14 autrilla: also google "android patterns" Jan 14 17:45:17 can i connect android with iphone via BT o BT LE? Jan 14 17:47:37 sure, why not Jan 14 17:47:53 Dreeass, make it a gradle project Jan 14 17:47:55 simple answer Jan 14 17:48:03 if you refuse, you can figure it out on your own Jan 14 17:48:12 Let's learn Gradle thn Jan 14 17:48:20 pepigno75: you may have to sacrifice your second born to cthulu as of api 18, maybe they chagned it in 19 Jan 14 17:48:23 android create project -g -v 0.7.3 Jan 14 17:48:23 done Jan 14 17:48:28 open project from intellij 13 Jan 14 17:48:29 done Jan 14 17:48:32 Dreeass: is super simple Jan 14 17:48:46 add the appcompat-v7 dependency to build.gradle Jan 14 17:48:47 done Jan 14 17:48:50 When I get an error, you guys help me Jan 14 17:48:59 like you haven't been bothering us already Jan 14 17:49:26 I'd like to call it using someone else's time more wisely. Jan 14 17:49:53 pepigno75: AFAIK, no, for bluetooth - apple doesn't allow generic SPP RFCOMM channels. BTLE isn't really meant to do high-bandwidth serial-style channels, though there are some hacks. I'm not familiar with them however. BTLE support in android didn't show up until 4.3 - anything earlier, you have to use custom per-vendor APIs, which are all different. Even in 4.3, android doesn't do a very good job with BTLE. Jan 14 17:50:39 pepigno75: IF you can get apple to do a generic rfcomm spp channel, then sure, it's trivial on the android side. My understanding is their DRM restricts it, you have to have a licensed chip to talk their spp variant. Jan 14 17:51:00 walled garden ftw Jan 14 17:51:03 so glad tho that 4.3 supports BTLE so now FitBit works with our devices Jan 14 17:51:49 pfn: yeah. I spent a moderate amount of time trying to figure out what chips to put on a board to talk to both apple and android, and then decided I didn't give enough of a shit to deal with apple. Jan 14 17:52:26 Does a ViewPager call a fragments onPause method? Jan 14 17:53:52 ok dragorn Jan 14 17:55:29 jonc-1: this might help you http://stackoverflow.com/questions/9779397/detect-viewpager-tab-change-inside-fragment/9779971#9779971 Jan 14 17:56:36 thank you Jan 14 18:01:40 http://pastie.org/8633181 Jan 14 18:01:42 * pfn headscratches Jan 14 18:01:42 wtf Jan 14 18:02:00 Is there any animation stuff I can mess with that I just plug in starting rect coordinates and ending rect coordinates on a bitmap, and it will animate from start to finish Jan 14 18:02:24 yiati, there is a translation animation I believe Jan 14 18:02:52 http://developer.android.com/reference/android/view/animation/TranslateAnimation.html Jan 14 18:03:05 hello, I want to show a picture if an activity is startet for the first time. Im getting a Null-Pointer-Exception and I dont know why (I used the exact same code in an other project and it worked) Jan 14 18:03:21 fix your null pointer exception Jan 14 18:03:25 here is my java code: http://pastebin.com/ixHhQijf and here is my layout:http://pastebin.com/2Py5t00M Jan 14 18:03:27 null pointer exceptions are easiest to fix Jan 14 18:03:56 http://lmgtfy.com/?q=how+do+I+fix+a+nullpointerexception Jan 14 18:03:58 at line 65 i am the showoverlay method is exevuted Jan 14 18:04:05 pfn: yeah, if (foo == null) return; Jan 14 18:04:05 *executed Jan 14 18:04:18 is it possible to send a gcm notification but instead of pushing it Jan 14 18:04:24 giving it a time to send Jan 14 18:04:35 Reflow: no, and you wouldn't want that anyway Jan 14 18:04:45 delivery time is unreliable Jan 14 18:04:45 why don't you just send it when you need it sent? Jan 14 18:04:47 so i should handle that in my server? Jan 14 18:04:48 I used the same code before and it worked..but I cant find the problemhere. Jan 14 18:04:59 jonc-1: Thanks Jan 14 18:05:08 androidBeginner2: the stack trace will tell you where the problem is Jan 14 18:05:27 evanc: how do I see that? Jan 14 18:05:44 evanc: debugging? Jan 14 18:05:46 so the Android MediaPlayer class fires buffering events when I stream a mp4 file... but if I stream an m3u8, I get nothing Jan 14 18:05:48 any ideas? Jan 14 18:05:49 androidBeginner2: it's in adb logcat Jan 14 18:05:52 or the debugger Jan 14 18:06:02 evanc: Im already using Logcat Jan 14 18:06:14 Does unregistering a listener to a sensor stop that sensor or do i have to do more? Jan 14 18:06:33 when i'm sending a push message using gcm the message appear without a title Jan 14 18:06:34 evanc: it just says NullPointer Exception and prints line 65 Jan 14 18:06:35 androidBeginner2: your stack trace is in there. Right where it tells you there's a NullPointerException. Jan 14 18:06:35 how do i add a title? Jan 14 18:06:45 androidBeginner2: keep reading Jan 14 18:06:48 For example the name of the application Jan 14 18:06:59 Reflow: ... what? Jan 14 18:07:06 When i receive a push notification Jan 14 18:07:11 i only receive the data.message Jan 14 18:07:19 but i see no title in the notification bar Jan 14 18:07:29 only the message in gray letter Jan 14 18:07:32 no title in white letter Jan 14 18:07:53 evanc: I already tried it.. Jan 14 18:07:59 I'm looking for a more canonical/definitive answer for my stackOverflow question about a simple listView. I've gotten a lot of answers, but I'm still unsure of which direction to take. Appreciate any advice: http://stackoverflow.com/questions/21109440/confused-on-what-kind-of-listview-and-adapter-to-use-in-android-for-a-small-arra Jan 14 18:07:59 evanc: cant locate the error Jan 14 18:08:05 oh i just need to add a data.title Jan 14 18:09:40 Hi, can someone describe me the RULE behind debug of an android app in eclipse with steps in Android Sources (for eg: EditText) ? What's happen ? Well, I'm in debuging of some code inner TextView but function name in calls stacks ins't same of what followed in code editor. When I do step/step over the code is not aligned, and so on. Seem I'm debugging with sources different than used to debug... source code misalisgned by runtime a Jan 14 18:09:40 ndroid sources (a tablet with 4.2.1). Jan 14 18:10:11 There is a rule to define right source repository vs android device OS version to have fine debug in OS source code like EditText ? Jan 14 18:10:59 attach the sources yourself Jan 14 18:17:38 pfn, is there anything I need to be paying attention to when copying the files of my non-Gradle project to a new Gradle-project? Jan 14 18:19:28 Dreeass, your project layout, possibly Jan 14 18:19:56 pfn, well besides where I have to place the files. Jan 14 18:20:52 no Jan 14 18:24:35 Is it possible to join two apks? Jan 14 18:25:03 cat One.apk >> Two.apk Jan 14 18:25:35 evanc, not linux, Windows. Also, will that really work? Jan 14 18:25:41 autrilla: no Jan 14 18:26:25 join in what manner Jan 14 18:26:55 pfn, 1.apk and 2.apk, generate a 3.apk that will run 1.apk and 2.apk (the code, not the actual app) Jan 14 18:27:15 sure, you could do that Jan 14 18:27:23 use a dex loader Jan 14 18:27:27 noaw Jan 14 18:28:16 pfn, a dex loader? First time I hear that.. Jan 14 18:39:34 Is it normal that when using the Atmel Emulator, it still lags? Some people told me it shouldn't lag, I'm using the host gpu btw. Jan 14 18:41:27 atmel? Jan 14 18:42:07 you mean Intel Atom? :p Jan 14 18:42:16 you need to make sure HAXM is installed Jan 14 18:43:42 and check LogCat for the message in screen 31 of https://s3.amazonaws.com/luisdelarosa/Becoming+More+Effective+with+the+Android+Emulator+2.1.pdf Jan 14 18:43:44 "HAX is working and emulator runs in fast virt mode" Jan 14 18:44:37 if that's not working, try going through steps in screens 25-27 Jan 14 18:48:21 wtf is android saying I leaked a window when I haven't... Jan 14 18:51:58 wtf, something's pausing my activity... Jan 14 18:53:02 louielouie, I mean Atom yes. I'll check the pdf file. Thanks! Jan 14 18:53:19 anyone know how to modify a variant's dependencies (I need to add custom *.so per variant) ? having distinct only based on flavor is not enough. Jan 14 18:56:03 I have a fragment which makes a call to an external API in the onCreateView method. This method gets called several times when the fragment is loaded, which results in unnecessary API calls. Where is a better place to put that call? Jan 14 18:57:54 If all 4 four fragments in my game use the same background, what is the best way to handle this resource. It is a Bitmap/BitmapDrawable from a png. Should I make it a global static variable that is shared by all fragments? seems unnecessary to decode it in each fragment. Jan 14 18:59:31 it feel bad to me that fragments constructors should not take arguments...? or they should but i should just have one with takes 0 as well? Jan 14 19:05:39 fragry: No. Do not add constructors. Jan 14 19:09:02 do not add non-no-arg constructors Jan 14 19:09:57 If anyone can point me in the "correct" direction on my quesiton I'd appreciate it. http://stackoverflow.com/questions/21109440/confused-on-what-kind-of-listview-and-adapter-to-use-in-android-for-a-small-arra Jan 14 19:20:07 JakeWharton: If I "need" to does that imply that I should use more Activities rather than Fragments? Jan 14 19:20:28 no. it implies you should use setArguments with a Bundle Jan 14 19:21:23 so, i have read a bit about supporting different sdk versions Jan 14 19:21:28 Are you creating activities with other arguments too? Jan 14 19:21:31 http://vvcap.net/db/BA1JDEIriJYRe1mUmlAX.png Jan 14 19:22:49 is that ok? Jan 14 19:23:02 so i will support 2.3.3 through 4.4.2 Jan 14 19:23:03 ? Jan 14 19:23:08 That is fine, Jan 14 19:24:51 do you really need to support 2.3.3? Jan 14 19:24:59 you're better off at this stage having a minimum of API 14 Jan 14 19:25:01 anyone here familiar with the android ABI? Jan 14 19:25:09 idk, i want to support as much devices as possible. Jan 14 19:25:16 Then do min SDK 1 Jan 14 19:25:42 My mom is still on 1.0 with her g1 Jan 14 19:26:16 mikedg, i looked at the current sdk's in use, and GB is still running on 21% of the phones. Jan 14 19:26:27 JakeWharton: Jake, what date handling library do you recommend? Does Square use JodaTime or Date/Calendar or another? Jan 14 19:26:30 If all 4 four fragments in my game use the same background, what is the best way to handle this resource. It is a Bitmap/BitmapDrawable from a png. Should I make it a global static variable that is shared by all fragments? seems unnecessary to decode it in each fragment. Jan 14 19:27:24 ISDP: API 14+ is 76% of the global market. you won't come anywhere near close to those numbers so it's important to balance developer productivity and app quality with the number of APIs you support. You will develop faster and design easier on ICS+ and it's likely that by the time you finish the app and are ready to release the numbers will be even higher. Jan 14 19:27:49 And don't forget that new devices tend to be the ones that download apps Jan 14 19:27:54 right Jan 14 19:28:05 especially if your app is paid Jan 14 19:28:56 it's a free app Jan 14 19:29:45 min 14, target 19 Jan 14 19:30:02 that sounds good to me! Jan 14 19:36:45 ISDP: for ARM, it's afaik linux eabi with softfloat, little endian Jan 14 19:37:06 I might be missing some parts, but maybe try to investigate some of the binaries produced by system? Jan 14 19:43:27 p_l wut? Jan 14 19:43:53 ISDP: sorry, it was supposed to go to I440r Jan 14 19:43:56 I440r: ^ Jan 14 19:44:05 mistake in tab-completion ;) Jan 14 19:45:09 lol yea i noticed it and did an objdump -d on one of my C ndk libs. it sort of answered my question Jan 14 19:45:18 can I put any format onto android? like tmx? Jan 14 19:45:44 fragry, there is a lib for android specifically for reading tmx files Jan 14 19:45:56 i dont use it but it exists Jan 14 19:46:06 ask in #tiled Jan 14 19:47:33 i hand huffman encode my tmx files on 16x16 blocks. i only decompress blocks on demand Jan 14 19:48:19 so, how does one build a nice but awesome interface, libraries? Jan 14 19:48:21 its not as good a compression as gzip but if u gzipped each block individually u would not be as efficient as i am because of all the overhead per compressed block Jan 14 19:48:52 i want a enu like facebook & youtube on the left Jan 14 19:48:59 menu* Jan 14 19:50:02 <|0xD34D|> ISDP: http://developer.android.com/design/patterns/navigation-drawer.html Jan 14 19:50:15 if only i knew how to build awesome interfaces T^T Jan 14 19:51:35 Does anyone have an idea how to fix this? http://pastie.org/private/abetlckrbjf2fwqtuejxzg Jan 14 19:51:39 and how do new "pages" work, e.g. the next screen? Jan 14 19:52:04 It seems to be an issue with the support library and only happens on Gingerbread, but i can't reproduce it. Jan 14 19:53:34 http://pastebin.com/faLmSGXs After calling releaseImage() I get a java.lang.IllegalArgumentException: Cannot draw recycled bitmaps Jan 14 19:53:34 at android.view.GLES20Canvas.drawBitmap Jan 14 19:53:56 any ideas? (I have tested calling on the UI thread, but it is already being called on the ui thread) Jan 14 19:54:04 i have no clue as how navigation works in android Jan 14 19:54:07 help? Jan 14 19:54:41 <|0xD34D|> ISDP: you may want to go through some of the training at http://developer.android.com/training/index.html Jan 14 19:54:42 what would be the best way to go about created "posts" on a news feed similar to this effect https://lh4.ggpht.com/VTW3mXd2LSWlCLVQS-7zp10RyXn114hxODbUoXUcu1KjzkF63oAVPSKN5YGKYj77UdY=h900-rw Jan 14 19:55:26 windy_, you could have several templates / pieces and then combine them into 1 post Jan 14 19:55:28 |0xD34D| anything more dumbed down? Jan 14 19:55:48 have a 2 image template, link template, and single image / video template Jan 14 19:56:09 or you could have a master template, which is then filled with different "Content" rows Jan 14 19:56:50 Master template would have the title (with the username, time posted, and tags) and then the footer with points comments, up and down vote etc Jan 14 19:57:16 I have an AnimationSet that I added both a TranslationAnimation and a ScaleAnimation to. I then set the duration to 2000ms for the AnimationSet, and whenever I start it, it does the translation instantly followed by the scale animation at the correct slower pace. 1) Are the supposed to happen in sequence and can I not make them both happen at once, and 2) why is the TranslationAnimation going so fast? Jan 14 20:02:54 I've tried this but my android sources are always misaligned than running code: http://tinyurl.com/nad4jql Jan 14 20:03:29 Would it be possible to take a screenshot for the user to email just before a crash? Maybe use a global exception handler? Jan 14 20:04:12 shineworld: you have to make sure to get the same sources as for the device you're running on Jan 14 20:04:47 if I load an image from a resource does android use the DPI? Jan 14 20:05:20 in particular, for non-nexus devices, the OEM may have made modifications to the files, so they won't match what's in AOSP Jan 14 20:06:07 uhm. I'm using a 4.2.2 (I guess api 17) and from path in open TextView.java I see .../sources/android-17/widget/TextView.java..... Jan 14 20:06:21 What is the best way to mimic onPause? Home button also calls onStop. Jan 14 20:07:23 urgh. Jan 14 20:07:26 i'm going nuts Jan 14 20:09:12 if I'm on 4.2.2 and I'm using sources/android-17/ from android-sdk and PC counter isn't aligned with code mean my tablet is using "modified" sources for framework or better for TextEdit.java class ? Jan 14 20:09:58 be back later Jan 14 20:10:18 can someone pm me some resources that will help me understand the code side of navigation etc? Jan 14 20:10:45 because it's really pissing me off and i'm losing my temper at this android bullsiht. Jan 14 20:18:36 ISDP what do you mean by navigation Jan 14 20:18:54 shineworld: keep in mind there are multiple "api-17" releases Jan 14 20:19:18 so it's also possible you just don't have the exact version of the source that your device is using Jan 14 20:20:12 your best bet would be to get the AOSP source, and try to find the exact version (assuming it's unmodified) Jan 14 20:22:08 I'm used to develop with N4 which is AOSP BUT this time a customer asked me to use a RK3168 powered tablet and honestly I don't know what RC is using... Jan 14 20:22:58 I will mode development part to N4 ... Jan 14 20:23:04 *move Jan 14 20:39:07 what do you think about taking a screenshot for the user to submit just before a crash happens? If that is possible. Jan 14 20:39:58 bit hard to predict crash Jan 14 20:40:02 personally, I would put the time machine to better use Jan 14 20:40:12 indeed Jan 14 20:40:24 like buy apple stock bit before ipod Jan 14 20:43:21 it'd be a lot of screenshots, but i think nvidia is starting to do this on the desktop. i think it takes up 10% of CPU/GPU. meant for replays and such. Jan 14 20:43:30 prob too much drain on battery for mobile though. Jan 14 20:49:28 It surprises me that nvidia and amd don't have hardware video encoders added to newer cards (seperate from the actual processor) Jan 14 20:49:58 Google Play Moto G - $179 seems like a nice dev device - https://play.google.com/store/devices/details/Moto_G_Google_Play_edition_8GB?id=moto_g_8gb Jan 14 20:50:21 XXCoder Couldn't I just make a global exception handler that would catch any exceptions not caught in my activities, and do the screenshot there? Jan 14 20:51:14 louielouie hopefully there wouldn't be TOO many crashes, haha Jan 14 20:56:54 "global exception handler" Jan 14 20:57:43 probably handles pebkac errors :) Jan 14 20:58:32 I'm not sure I want app to try take a picture and save during crash, expecially if it could corrupt data. depends on crash type I guess Jan 14 20:59:41 SO If I have a matrix, Jan 14 20:59:55 im using addContentView to add a view to my activity after a speific action... however the view being added is not inheriting the style of my Activity (Holo.Light). is there a way to make it use the same style instead of using the default? Jan 14 21:00:01 i and I do .postScale(2, 2) then .postScale(3, 3) will the scale actually be 6? Jan 14 21:00:20 because if it isn't i swear to christ this is the shittiest implementation of matrix i've ever seen Jan 14 21:01:43 hi guys, everytime when ftp server times out connection to my android client the app crash (logically) i am using oracle commons library (FTPClient) even when i call ftpclient.disconnect() , how to prevent crashing ? Jan 14 21:03:19 DOSP you would need to post a stacktrace for anyone to help ;) Jan 14 21:03:39 okay just wantto test something i post it Jan 14 21:03:42 Catch the exceptions being thrown Jan 14 21:03:52 my android studio does not know about any support library class but it compiles fine.. any idea? Jan 14 21:03:53 handle them gracefully Jan 14 21:07:06 I wonder how android studio knows about all the libraries included through gradle's compile directive Jan 14 21:08:01 rndstr: It builds the project which includes the libraries? Jan 14 21:08:38 desmin88: I mean the IDE, it needs to know about them Jan 14 21:08:48 when you inflate a view, it uses the same style as the current activity, no? Jan 14 21:08:52 aren't gradle files just JSON files? Jan 14 21:09:02 jonc-1: not exactly, no. Jan 14 21:09:18 rndstr: thats how it knows about them, it builds the project Jan 14 21:09:27 not exactly but pretty similar, but all that needs to be done is parse them and you could find all the libraries Jan 14 21:09:30 so it must download it and add it to the project but I only see it references in the Project Structure > Dependency as the gradle directive. The rest is magic I guess Jan 14 21:09:49 rndstr: no its not magic at all Jan 14 21:10:09 desmin88: well, behind the scene Jan 14 21:10:11 it builds the project, which includes any dependencies and the ide then includes those depedencies for use Jan 14 21:12:25 desmin88: that doesn't seem to work for my appcompat library. do you know where it saves those libs? Jan 14 21:12:35 Hey guys, I'm taking screenshots of Views in my app, and they're turning out to be shit quality Jan 14 21:12:38 Why D: Jan 14 21:12:46 Let me paste up some code … Jan 14 21:13:29 rndstr: How are you including the appcompat library in AS Jan 14 21:13:48 explodes, are you saving them as jpeg or png? Jan 14 21:13:57 png Jan 14 21:14:11 desmin88: compile "com.android.support:appcompat-v7:18.0.+" Jan 14 21:14:41 compile 'com.android.support:appcompat-v7:18.0.+' Jan 14 21:14:44 is in my build.gradle Jan 14 21:16:09 desmin88: it compiles fine that's the weird thing. but the IDE shows the classes and method invocations red saying "cannot resolve symbol 'ActionBarActivity'" etc. Jan 14 21:16:39 sync project to gradle files perhaps? Jan 14 21:16:42 ^ Jan 14 21:17:37 desmin88: i did that after every change Jan 14 21:17:53 then ur SOL Jan 14 21:22:46 desmin88: I closed the project, did a "Import Project" selected my app root, let it do its thing.. and voila, it works again :) Jan 14 21:23:42 congrats Jan 14 21:24:10 trying to use holoeverywhere with appcompact but running into errors like "Attribute "spinnerMode" has already been defined" Jan 14 21:30:00 has anyone had success with reusing a bitmap using BitmapFactory and BitmapFactory.Options? Jan 14 21:30:15 all of my images have the same dimensions and dpi set Jan 14 21:30:27 yet I get a "problem decoding into existing bitmap" Jan 14 21:58:12 hm, the moto g came down in price on the Play Store Jan 14 21:59:19 yup - seems like a good buy Jan 14 21:59:26 jonc-1 you might need to call recycle() Jan 14 22:01:55 so AS 0.4.2 was promoted to the dev channel, but my version is still not persisting that setting (keeps reverting back to canary) Jan 14 22:03:31 I have an ImageView in each row of my ListView and I'd like to bind to the click of that specific ImageView. Clicking elsewhere on the row will take them through to another activity. I don't think the best place to put the ImageView onClickListener is in the getView of the corresponding ArrayAdapter, but maybe it is? Jan 14 22:04:03 Can do I a ((MyActivity) getContext()) within the getView of the ArrayAdapter to propogate the click event and let the parent activity handle it? Jan 14 22:04:53 g00s: did you file a bug? Jan 14 22:05:06 JakeWharton the bug is already filed Jan 14 22:06:13 filed back in AS 0.2.11 days :) Jan 14 22:06:14 https://code.google.com/p/android/issues/detail?id=61033 Jan 14 22:09:33 achuinard: Placing click listeners in the getView is the only place ive seen it done for list item sub views Jan 14 22:11:16 desmin88: and what about calling ((MyActivity) getContext()).handleClick(position) Jan 14 22:12:14 g00s here is my stacktrace to the ftp crashing AFTER it uploads all files to ftp server http://pastebin.com/zxue7UGJ Jan 14 22:12:20 when you click on the image, what do you want it to do Jan 14 22:12:58 is there an Android equivalent of https://twitter.com/XcodeJobs ? Jan 14 22:13:24 DOSP: it looks database related rather than ftp Jan 14 22:13:35 hm, i not using any database i know Jan 14 22:13:54 OR you think the error is random ? and i didnt get the right stack trace ? Jan 14 22:14:21 it was the only think appeared Jan 14 22:15:49 com.example.foto <-- i think that's the app it belongs to Jan 14 22:16:07 achuinard: ^ Jan 14 22:16:26 okay, thats my app Jan 14 22:16:33 whats wrong > Jan 14 22:16:35 ? Jan 14 22:19:23 desmin88: don't see the answer to my q Jan 14 22:19:37 ah sorry Jan 14 22:20:04 desmin88: when I click the image I need to fire an HTTP call at the minimum Jan 14 22:20:16 And my activity has my 'service' class which handles most of my app logic Jan 14 22:20:40 could just pass it into Adapter I suppose Jan 14 22:21:02 you can have an event bus (otto) that fires an event Jan 14 22:21:11 i always worry about some random leak or something that happens but maybe the adapter / activity context is guaranteed to never be null in calls like getContext() Jan 14 22:21:13 and put that in a click listener in your adapter Jan 14 22:21:19 i do use otto Jan 14 22:21:32 can I just publish with it without subscribing? Jan 14 22:21:39 if my adapter doesn't need to subscribe to anything Jan 14 22:21:42 yes Jan 14 22:21:43 hi i was wondering if i can manually mount external usb in the same place as sdcard so i can use link2sd Jan 14 22:22:01 JakeWharton to the rescue! Jan 14 22:27:22 oops, DOSP left Jan 14 22:34:40 Can someone help me? Activity A calls startsActivityForResult and starts Activity B. Once Activity B sets the result, I call NavUtils.navigateUpFromSameTask(B), but A does not call onActivityResult. How come? I was told to call B.finish() but that didn't work. Jan 14 22:35:28 Hey #android-dev! We're about to release support for third party plugins to our popular SSH client (400k users, growing by +80k users/month). We're looking for people who want to develop plugins for our big launch. Your plugin is a normal play store app owned by you, using our JuiceSSH SDK to interact with JuiceSSH connections/sessions. Jan 14 22:35:53 If anyone is interested, read more on our G+ post here: https://plus.google.com/117449819357635567610/posts/Qe2qr2o8EgV Jan 14 22:35:59 But i'm around to answer any questions on IRC Jan 14 22:36:34 Plugins will be featured in our app, so will immediately gain exposure to all of our user base Jan 14 22:41:07 JuiceSSH: "No bots, and no advertising please, jobs or otherwise" Jan 14 22:42:24 aww juice, i love that app Jan 14 22:43:00 ;D Jan 14 22:43:07 I just notice how amazing this emoticon is Jan 14 22:43:08 ;D Jan 14 22:43:10 look at it Jan 14 22:43:14 ;D Jan 14 22:43:21 That is all. Jan 14 22:44:18 thanks bankai_ Jan 14 22:44:28 and apologies desmin88, that wasn't supposed to come across as spammy Jan 14 22:44:41 desmin88: consider my wrists slapped Jan 14 22:44:57 dammit Jan 14 22:45:15 so, does anyone have a good method of learning how pages work in android? Jan 14 22:45:25 or give me the name of a good eBook Jan 14 22:45:59 ISDP: pages? Jan 14 22:46:00 pages? Jan 14 22:46:27 yeah, like, click on a item in a listview and the next "page" shows Jan 14 22:46:58 You'll have better luck searching for 'Activities', which is the correct Android terminology Jan 14 22:47:08 yeah that. Jan 14 22:47:15 and fragments Jan 14 22:48:24 what's the best eBook? Jan 14 22:48:53 http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 14 22:49:08 ISDP: are you coming from iOS? Jan 14 22:49:33 nope, html, css, jquery and php, also a little bit of c# :) Jan 14 22:49:50 last time i made something for android was in Gingerbread on my nexus s Jan 14 22:50:02 but i'd rather have a good eBook than google's docs Jan 14 22:50:13 google docs are pretty damn good Jan 14 22:50:24 google docs confuse the hell out of me Jan 14 22:52:02 there's heaps of examples on d.android.com as well as in the SDK Jan 14 22:52:28 it all confuses me :( Jan 14 22:59:01 As a resource you can have a set of animations play in order, is it possible to do the samething in code without having to do it in the onAnimationEnd? Jan 14 22:59:36 found it Jan 14 23:09:07 jonc: how do you do it? Jan 14 23:10:28 Question regarding Activites and Dialogs ... Jan 14 23:11:03 If you show a Dialog from an Activity, does onPause() / onResume() get called for the Activity while that Dialog is being shown? Jan 14 23:11:25 for a dialog, no Jan 14 23:11:41 for a dialogactivity, yes Jan 14 23:11:59 Ah ok Jan 14 23:20:52 is there a bot here, i could harass with some basic factoid search? Jan 14 23:21:12 ruser: no Jan 14 23:21:45 damnit :( Jan 14 23:22:28 i'm trying to find what's the best way to architect an app, that is a udp client, but can recieve messages from a server at any point in time, as opposed to just in response to the packets sent Jan 14 23:23:18 any pointers? Jan 14 23:23:51 can anyone tell me if the stacks interntall to android are grows UP or grows DOWN ? Jan 14 23:24:40 Ruser set it up as a Service. Jan 14 23:24:50 That way it's always running in the background. Jan 14 23:27:22 pBlack: so if i want a client being connected to multiple servers, i would run multiple services per each? also how would i "poll" the socket for new data? Jan 14 23:27:25 ruser UDP won't work well on 3G Jan 14 23:27:33 wifi, sure Jan 14 23:27:48 It's basic Network programming. You can have a since service running multiple threads. Jan 14 23:27:56 Each thread connects to a specific server. Jan 14 23:28:04 I don't think having many services is a great idea. Jan 14 23:28:11 Doesn't sound very manageable. Jan 14 23:28:11 g00s: i'm just trying to dev a cleint, i dind't design the protocol. let's not discuss the merrit of UDP vs TCP Jan 14 23:28:14 you don't even have to run one thread per socket, you know.. Jan 14 23:28:28 True, you don't have to. Jan 14 23:28:35 But you can manage it easier that way. Jan 14 23:28:39 ruser: just remember that mobile operators might randomly cut ports or even UDP as whole Jan 14 23:28:47 p_l: that's fine Jan 14 23:29:17 pBlack: all i see is basic example. let's send one packet and recive one packed... on a blocking call. with thread.sleep() Jan 14 23:29:23 at best Jan 14 23:29:40 When I send data over UDP, I usually try to "TAG" it. Jan 14 23:29:58 So I know how to interpret the data correctly. This of course would be in a loop don't ever quit. Jan 14 23:30:14 Unless your done. Jan 14 23:30:16 p_l android doesn't have nio.2 , so how would one get nonblocking networking ? Jan 14 23:30:25 who owns done? Jan 14 23:30:44 can I create an animator from an animation? Jan 14 23:30:52 g00s: Use Threads? Jan 14 23:30:59 pBlack: wtf is tagging a packet, and is that the best design appracoh? just loop eternaly? busy wait? Jan 14 23:31:14 Yes, loop forever receiving packets. Jan 14 23:31:17 pBlack uh, maybe i should restate - async networking Jan 14 23:31:31 all android socket classes block Jan 14 23:31:34 What I mean by tag is use the first "X" bytes for specific characters describing the data that follows. Jan 14 23:31:48 Ok g00s. Understood. Jan 14 23:32:15 pBlack: i already mentioned im implement a protocol, not designing it. so it's not up to me to identify how many bytes will follow a packet. and are you serrious BUSY WAIT? Jan 14 23:32:34 s/implement/implementing/ Jan 14 23:33:01 You can send more than one byte when you send over UDP you know? Jan 14 23:33:05 ruser well, as far as i know, you have once service manager n clients, each client has a Rx and Tx thread Jan 14 23:33:22 Just use the first couple bytes for specific data. Jan 14 23:33:23 pBlack: he is not designing the protocol, so unless he decides to proxy it... Jan 14 23:33:33 p_l: thank you Jan 14 23:33:37 Not saying to design the protocol lol. :) Jan 14 23:33:56 ruser: np Jan 14 23:34:25 pBlack: first, can you please confirm that busy wait is the proper design for implementing a protocol using UDP transport? Jan 14 23:34:43 n.b. in a failed startup, we were inching towards implementing the network stuff in C, because that led to common codebase between I think all platforms we planned to support Jan 14 23:34:46 Honestly any way that works, is the right way. :) Jan 14 23:34:56 probably only outlier would be older BB Jan 14 23:35:02 But I'm no network guru. I'm just giving a suggestion. Jan 14 23:36:19 ruser: anyway, you can have "receive next message" wait with a thread per receiving socket Jan 14 23:36:24 g00s: since i'm not writing the server side, and just implementing a protocol with UDP transport. is it my correct understanding that i would need to use Rx and Tx thread per connection. What's the best way the Rx thread to " Jan 14 23:36:58 g00s: since i'm not writing the server side, and just implementing a protocol with UDP transport. is it my correct understanding that i would need to use Rx and Tx thread per connection. What's the best way the Rx thread to "poll" the socket and see if any new data avaialbe? or is possible to register a callback of sorts with a scoket? (fairly new to java) Jan 14 23:38:39 p_l: are there no callbacks, or epoll() [ man 7 epoll ] equivalent? Jan 14 23:39:05 ruser: *maybe* in java.nio.* classes Jan 14 23:39:28 I know my way around lower level Unix interfaces, no idea about java for this Jan 14 23:39:38 (always dealt with higher-level libs) Jan 14 23:40:09 I have an EditText with android:numeric set to "integer|signed" yet it still won't take the - sign as input Jan 14 23:41:22 frankdrey: use android:inputType="number|numberSigned" Jan 14 23:41:32 I thought android:numeric was deprecated Jan 14 23:41:58 ah Jan 14 23:41:58 aha Jan 14 23:41:59 thanks Jan 14 23:42:00 maybe I was thinking of android:digits or something though Jan 14 23:42:03 :) Jan 14 23:42:44 g00s: how does proper Rx thread check for new data? just block on recieve()? or until told to stop? Again, appologies for asking basic stuff, but how does Rx thread passes back the data to whomever is handing the logic for data processing? Jan 14 23:43:40 these questions are serving me right, for not learning java :( Jan 14 23:44:16 Are there nightly builds for the build tools? Jan 14 23:44:47 Whatever is in platform/tools/base Jan 14 23:46:12 Ah, there we go. http://tools.android.com/preview-channel Jan 14 23:49:14 Question, can you request permissions to not request permissions anymore? Jan 14 23:49:47 Instead of asking if I could turn on bluetooth Jan 14 23:49:51 so I could just turn it on? Jan 14 23:55:29 g00s: to keep the network connection going, would you use a service or intent service? Jan 14 23:56:12 nvm, found my answers, service Jan 14 23:57:44 quetsion, why in eclipse when i select "create new android object" and pick a "service" the finish button is not enabled? in fact any selection in that list does not enable the finish button Jan 15 00:00:02 I got a question on trying to use maven to use third party libraries for an android app I'm trying to write. Jan 15 00:00:24 I have no knowledge/background on maven, but I'm trying to use this library: https://github.com/47deg/android-swipelistview#maven-dependency Jan 15 00:00:59 I've made my project in eclipse into a maven project and tried adding a maven dependcey, but it throws an error saying it can't find the dependecy of the jar file Jan 15 00:01:02 Any ideas? Jan 15 00:03:56 Hey Jan 15 00:04:27 is there any difference between adding a library without resources and with? Jan 15 00:04:31 as is told here? Jan 15 00:04:32 http://developer.android.com/tools/support-library/setup.html Jan 15 00:05:04 yes Jan 15 00:06:17 Anyone on OS X? I have troubles enabling the Preview Channel for the SDK Tools. Jan 15 00:06:32 I enabled the preview channel in the preferences of the SDK manager, but no preview channel appears :\ Jan 15 00:07:05 Screenshots of Views are coming out shitty! Please advise D: http://pastie.org/8634114 Jan 15 00:08:56 kakazza: huh, neither do I on Debian Jan 15 00:09:34 guess theres no previews available ;) Jan 15 00:13:58 kakazza yeah, i have the same problem Jan 15 00:18:44 I wonder if they don't show up if there's no previews or if it's a bug. Never enabled them before, so I wouldn't know. Jan 15 00:19:12 Is there an update site for Samsung? Jan 15 00:19:23 like something to get device defintions or something Jan 15 00:34:49 hey guys Jan 15 00:34:52 something funky is going on Jan 15 00:34:57 at home, I'm able to build just fine Jan 15 00:35:07 but here at work, I've got a gradle problem Jan 15 00:35:22 ExternalSystemException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'. Jan 15 00:35:33 been googling a while and haven't had much luck Jan 15 00:36:01 if I use the terminal I can gradlew clean Jan 15 00:36:19 but if I try to use the Android Studio gradle tasks -> clean then it gives that error Jan 15 00:36:29 my build.gradle has 0.7.+ Jan 15 00:36:42 my gradle-wrapper.properties has gradle-1.9-all.zip Jan 15 00:42:07 Hi does anybody have experience with Surfaceviews? Jan 15 00:42:27 Its just some odd behaviour I am running into :S Jan 15 00:43:39 The lifecycle as far as I understand is onPause -> surfaceDestroy -> onResume -> surfaceCreated -> surfaceChanged Jan 15 00:45:03 That's what is happening when I minimize the app and open another. But when I press the power button to close the screen and open it again, it calls onPause -> onResume. The surface is not destroyed and then created and changed. Jan 15 00:45:26 Anybody run into this issue? I'd really appreciate your help. It's driving me nuts!! Jan 15 00:46:26 why is it an issue? Jan 15 00:47:00 Well it doesn't really make sense. The activity is not visible, so the lifecycle should be following the correct cycle Jan 15 00:47:08 the activity does Jan 15 00:47:12 the surface just didn't get destroyed Jan 15 00:47:14 what is the issue Jan 15 00:47:35 Yes, that's true. But the docs say surfaceDestroyed is called after onPause Jan 15 00:48:28 I guess because its on its own thread it can follow its own lifecycle. Im trying to setup an in-app camera but I don't know where to put the stop and start previews. Jan 15 00:49:11 what docs Jan 15 00:49:30 The sample camera app from google freezes the preview frame when the screen closes. It expects the surfaceDestroyed to be called and then surfaceCreated to stop and startPreviews again Jan 15 00:49:37 the google documentation on the built in camera Jan 15 00:49:37 there's no contract that says it's always destroyed after pause Jan 15 00:52:27 oh also, I tried reinstalling Android Studio Jan 15 00:52:36 and deleting my .gradle folder Jan 15 00:53:24 i can't seem to find that, you must be right. Where do you suggest I release the camera, stop preview, then start preview? Jan 15 01:03:39 Hey guys, I'm completely stumped on some threading / fragment thing.. anyone about? Jan 15 01:05:29 stop preview in pause Jan 15 01:05:34 start preview in resume or surfacecreated Jan 15 01:05:41 depending on whether surface is already created Jan 15 01:05:56 set flags to indicate the correct condition Jan 15 01:09:23 could someone take a look at this for me? http://hastebin.com/gavofegute.java -- when location services are disabled the message is logged but the dialog isn't shown Jan 15 01:13:53 hmm nm Jan 15 01:17:29 pfn Jan 15 01:17:34 sorry just saw that Jan 15 01:18:13 oh, actually, don't think it was aimed at me was it Jan 15 01:18:44 anyway, I raised a SO question to explain issue, if anyone facies looking :P Jan 15 01:18:45 http://stackoverflow.com/questions/21127371/updating-fragment-from-actions-within-its-self-and-scheduled-task Jan 15 02:12:30 Strange thing. Jan 15 02:12:34 Look at this code Jan 15 02:12:36 http://pastebin.com/f0xZpWAN Jan 15 02:12:52 If I have the project set on build target 18 Jan 15 02:12:54 its alright Jan 15 02:13:00 but as soon as I change it too 19 Jan 15 02:13:39 I get errors such as "Call requires API level 11 (Current min is 8): android.app.actionBar#setDisplayShowTitleEnabled Jan 15 02:14:13 anyone know how I can get this to work on 19 without changing the minimum sdk to honey? Jan 15 02:16:54 grmbl, why is the example navi drawer so bloated :| Jan 15 02:18:16 i just want a damn icon in front of the Menu title text :( Jan 15 02:25:32 I just want this wikipedia dump file to finally finish extracting Jan 15 02:31:47 meh this is hard :| Jan 15 02:32:07 so many different examples, and i don't understand anything Jan 15 02:32:12 3:32AM Jan 15 02:33:55 so serious question, is there something i'm missing or is the android emulator as slow as it's appearing to me ? Jan 15 02:34:02 how does anyone get development done Jan 15 02:34:12 or does everyone just build to device ? Jan 15 02:34:31 <|0xD34D|> are you using an x86 emulator? Jan 15 02:34:37 aww wow jetbrains really have a lot of stuff going on. I only really need IJ, but there's applications for php, obj-c, python. Pretty impressive... Jan 15 02:35:32 narcan: it is quite slow, yes, but there's a lot of functionality there. I run as much stuff on a device as i can, but that's just me Jan 15 02:36:03 <|0xD34D|> only thing I use an emulator for is testing layouts on screen sizes I don't have physical devices for Jan 15 02:36:13 |0xD34D| , running emulator64-arm Jan 15 02:36:33 <|0xD34D|> the atom images are much faster than the arm ones Jan 15 02:36:48 it's for some apportable stuff, so afaik it doesnt build to x86 Jan 15 02:37:51 <|0xD34D|> "Apportable uses clang to cross-compile Objective-C to native ARM and x86 machine code" Jan 15 02:38:43 how do you switch / choose what emulator , the emulator command picks Jan 15 02:39:05 tell it to prompt you Jan 15 02:39:38 <|0xD34D|> if you use the AVD manager you can pick the CPU/ABI Jan 15 02:42:12 can GC_FOR_ALLOC pauses in one process affect another? Jan 15 02:42:27 Having a real time trying to isolate my real-time application from pauses caused by the amazon-aws sdk Jan 15 02:43:01 realtime on linux :) Jan 15 02:43:37 g00s: consider me schooled :) Jan 15 02:48:33 hm i guess windriver discontinued rtlinux Jan 15 02:54:58 okay, gone with the navigation drawer. Jan 15 02:55:40 too hard, so i'm using a fragment pager now with the strip... Jan 15 02:56:13 but how can i assign three different styles / activities / code to each "tab"? Jan 15 02:57:08 'cause tab 1 is a welcome screen, tab 2 is a screen with some fields and some code to look up the address through GPS, and tab 3 with a button to launch a call and a link to google maps to navigate to a address. Jan 15 02:58:17 on tab 1 i want a big TextView that just says Welcome and a little bit of text below it explaining how it works, tab 2 should be some kind of form with the address lookup capability and tab 3 is pretty straight forward. Jan 15 02:58:30 also, how does one add ads? last time i tried it made my app crash. Jan 15 02:58:57 use admob Jan 15 02:59:49 tried, made my app crash the last time i tried using it, but i'm focussing on the fragment content Jan 15 02:59:59 look at the stacktrace **** ENDING LOGGING AT Wed Jan 15 02:59:59 2014