**** BEGIN LOGGING AT Fri Jun 27 02:59:59 2014 Jun 27 03:08:13 the L preview - replacing back arrow, home, recents … with triangle, circle, square, seriously google wtf ? Jun 27 03:09:12 playschool Jun 27 03:09:27 oh ... aussie joke, i don't think anyone will get that :S Jun 27 03:18:09 where are the settings files for android studio stored? Jun 27 03:19:55 depends on platform Jun 27 03:20:35 bankai_ this is curious Jun 27 03:20:39 "As expansive as Google appears to be, it all eventually links back to the phone, which is the personal heart of the ecosystem that the company is building." Jun 27 03:20:54 but last year, or so, didn't Page say the phone was emasculating ? Jun 27 03:21:00 or was it Sergey Jun 27 03:21:42 "The choice of a person’s first smartphone drives so many of the subsequent decisions that he or she will make — such as which music streaming, cloud storage, or photo-sharing service to use — that it becomes paramount for companies to make sure that initial device is running their software." Jun 27 03:21:57 interesting Jun 27 03:24:45 "Android One phones will run stock Android, get automatic updates, and access Google’s Play Store for apps and media content." Jun 27 03:24:57 i think hey said that but i didn't realize it ... Jun 27 03:25:09 these phones sound better than most of the higher priced ones XD Jun 27 03:38:55 Android L UI is pretty cool Jun 27 03:48:41 Anybody notice how the ActivityOptions#makeSceneTransitionAnimation method doesn't exist…. https://developer.android.com/preview/material/animations.html Jun 27 03:48:51 wanted to play around with it… Jun 27 03:49:24 i am trying to use ant to compile a project using the appcompat library which is in the extras/android/support/v7 directory of the sdk. the user i am compiling the project with doesnt appear to have the correct permissions on the directory as it cant create the bin/ gen directories. it works after i chwon it to my user but i dont really want to leave it like this Jun 27 03:50:41 the android-sdk is installed with permissions set to 755 which should be adequate? any ideas why this isn't working? Jun 27 03:59:53 just a question on the d.android.com site, the beta version of Android Studio 0.8 has been released but the canary channel is still on 0.6.1 will it be published soon? Jun 27 04:03:25 how do I get logcat on L? Jun 27 04:03:31 logcat doesnt seem to work Jun 27 04:06:13 nm got it Jun 27 04:07:25 MohitKanwal dunno; but 0.8.0 is a full release bundle with the SDK too Jun 27 04:09:05 g00s: time to give it a try, although build times are really lagging behind. Jun 27 04:09:21 can anyone tell me what is the process that makes the notification bar work ? Jun 27 04:11:05 eh? Jun 27 04:12:01 jug6ernaut: just wondering cuz i want to disable the notification bar if possible. Jun 27 04:13:51 disable or hide? Jun 27 04:14:07 jug6ernaut: hide Jun 27 04:14:25 jug6ernaut: hiding is not entirely possible . is it ? it depends on the app Jun 27 04:14:29 u can hide notification bar and navigation bar, idk if u can hide just one tho Jun 27 04:16:00 jug6ernaut: how ? Jun 27 04:17:30 jug6ernaut: i wish to force hide the notification bar for all the apps Jun 27 04:18:47 :| Jun 27 04:18:50 no idea on that Jun 27 04:20:54 :) Jun 27 04:34:47 trying to enable dogfooding/team debug on Google Search, any cmd line switch to do this on L? Jun 27 04:42:52 Leeds go through all the IO stuff yet/already? what did you think ? Jun 27 04:53:33 have anyone of you used mortar? Jun 27 04:55:35 I'm wanting to have a vertical swipe to change Fragments, sort of like how in Google Play Music, you swipe up to get to the currently playing song, but I'm not sure how to do that. Can anyone here lead me in the right direction? Jun 27 04:56:16 cr5315: so you want a vertical view pager Jun 27 04:56:26 https://github.com/castorflex/VerticalViewPager Jun 27 04:56:28 Sounds about right Jun 27 05:06:59 Now I'm getting Error:Module version com.android.support:support-v13:18.0.0 depends on libraries but is not a library itself Jun 27 05:07:09 When compiling Jun 27 05:08:01 i used a mortar in the army Jun 27 05:10:09 <_Nicco_> Guys just getting started with android studio. Would anyone care to explain what the "Company Domain" is when creating a new project. Jun 27 05:23:04 could somebod please tell me what the problem is with lines 34,46, and 46? Jun 27 05:23:18 47 last one rather - http://pastebin.com/c6TM65jZ Jun 27 05:24:22 There's no problem with those lines Jun 27 05:24:53 cr5315 and yet, eclips doesnt like them :( Jun 27 05:27:12 jamesson: if only there was sort of error message you could tell us about Jun 27 05:27:56 desmin88: puling up, 1 sec... Jun 27 05:29:31 desmin88: sorry, its still doing its preflight thing Jun 27 05:29:44 android studio..... Jun 27 05:31:41 line 34; syntax error on token "}", { expected after this token Jun 27 05:32:12 46; Multiple markers at this line - overrides android.support.v4.app.Fragment.onCreateView - Syntax error on token ",", ; expected - Syntax error on token "(", ; expected - Syntax error on token ",", ; expected Jun 27 05:32:51 you probably messed up braces Jun 27 05:32:56 or general syntax somewhere Jun 27 05:41:20 get it jamesson? Jun 27 05:54:40 Are AAssetManager_openDir and friends thread-safe? Jun 27 05:55:09 (May I use them concurrently, opening different dirs from different threads?) Jun 27 06:01:22 _Nicco_: it's the inverse of package name Jun 27 06:57:33 Hi all Jun 27 06:57:53 I am able to display the gps coordinates through DDMS on the emulator Jun 27 06:58:04 how can I get the same in map Jun 27 07:08:17 JakeWharton: Where can I find details about OkHttps silent retries. After which "common network problems" does it retry? Before I start writing my own retry mechanisms, using tape. Jun 27 07:09:49 hey guys I am new to android development kinda a silly question if my application is going to be connecting to a mysqk server/php server, am I still able to create a login screen for each individual user? kind of like snapchat, etc? Jun 27 07:16:46 hi. Jun 27 07:17:04 updates to Android API 23 just came yesterday or so.. Jun 27 07:17:25 and eclipse cannot update the ADT Jun 27 07:18:15 Psil0Cybin: your app can do whatever you want, the backend server should just be a blackbox Jun 27 07:18:45 I just cannot update the ADT Jun 27 07:19:05 android studio: waiting for hitting beta channel. Jun 27 07:19:26 Estel, can you define more about this blackbox so i can google it? It would not be a standard HTTP Server? I just want to understand how applications like facebook and snapchat, instagram etc major applications sync data Jun 27 07:19:39 and create user accounts i kinda assumed it was done through something like mysql or sqlite Jun 27 07:19:40 or something Jun 27 07:19:48 Psil0Cybin: I mean, it doesn't matter to the application what the backend is or does Jun 27 07:19:55 Oh! Jun 27 07:20:09 Psil0Cybin: if you're new to Android development, have you looked at parse.com ? Jun 27 07:20:09 so it can communicate in any manor I desire? Jun 27 07:20:10 would someone help me there? Jun 27 07:20:21 no I have not, I need to look at it asap! if you are suggesting it Jun 27 07:21:17 Psil0Cybin: if you want to make an app with a backend really easily and don't want to worry about the PHP/MySQL stuff, then yes Jun 27 07:21:36 Are AAssetManager_openDir and friends thread-safe? Jun 27 07:21:50 tell me guys! can I move on to Java 8 yet or not to program Android? Jun 27 07:21:54 Estrel I am very good with mysql, I dont know about PHP I would need to take alook at what that intails but Parse looks phenominal! Jun 27 07:21:57 thank you so muich Estrel Jun 27 07:22:06 I need to learn more about it, I am assuming it is easy to incorporate Jun 27 07:22:10 superlinux-hp: is /that/ your question? Android doesn't support java8 at all Jun 27 07:22:16 Psil0Cybin: super super easy Jun 27 07:22:18 ok then.. Jun 27 07:22:27 * gdrc can't wait: downloading android studio 0.8 Jun 27 07:23:34 but I need to update the ADT, and the SDK manager is complaining about it. and I need that done from within eclipse. and I ask eclipse to update itself: not updates found. so? what I should do? Jun 27 07:24:19 Estel, thank you so much again! do a lot of people make apps using parse? or is it recommended to create your own backend or is that something done if you for some reason become very very big, which is very rare Jun 27 07:24:45 Estel, I updated to the latest SDK version of API 20 , and the ADT has to be version 23. and it says that the current ADT is 22.3 Jun 27 07:27:02 superlinux-hp: are you trying to update Eclipse or the available packages? Jun 27 07:27:05 Or whatever they're called Jun 27 07:27:28 the ADT is all I need to get me going. Jun 27 07:27:48 Psil0Cybin: that dpends on lots of things! Large companies might want to control their own backend more. But for most solo devs there's nothing better/ Jun 27 07:28:08 you know there is the SDK, and on the other hand the Android Dev. Tools Jun 27 07:28:16 ...(ADT) Jun 27 07:28:20 you might have to to manually update the plugin to match the SDK version Jun 27 07:28:25 Estel, you have answered all my questions! and then some, you rock. Jun 27 07:28:46 it can be a little buggy automatically updating Jun 27 07:29:12 superlinux-hp: does it say there's no plugin update available? Jun 27 07:30:05 Estel, Eclipse says no updates available Jun 27 07:30:17 or n updates found Jun 27 07:30:24 ya, then you have to look in install new software Jun 27 07:30:30 and update the plugin manually Jun 27 07:30:48 also you might have to change the URL from http to https or the reverse Jun 27 07:30:53 something is buggy about it Jun 27 07:31:30 Alternatively if all that fails, you can download the zip from http://developer.android.com/sdk/installing/installing-adt.html Jun 27 07:33:09 or instead of ADT, use android studio Jun 27 07:33:45 Adapting a whole new dev env can be complex Jun 27 07:33:53 also, no env is perfect ;) Jun 27 07:34:04 I also downloaded Eclipse Luna (4.4) , and it crashed on my Debian Linux Wheezy Jun 27 07:34:53 no env is perfect but there are vast differences between them Jun 27 07:35:10 yes, you have said that many times today desmin88 :) Jun 27 07:35:55 "the bad thing about programmers is they are lazy, the good thing about programmers is they are lazy." Jun 27 07:37:25 what happens when some unexpected issue arises with android studio? maybe something different from Eclipse? there is a real inertia too tools, and most of all, switching dev environments is not a valid default solution for every little problem. Jun 27 07:40:39 Carbonflux: It's a valid solution if your problem is "I'm still using Eclipse" Jun 27 07:40:45 ^ Jun 27 07:41:12 Yes, it takes time to get used to it, but we're devs, me manage. I switched the whole office, never looked back. Jun 27 07:41:49 heh, fair enough, I admit its tempting Jun 27 07:42:19 eclipse w/ adt is going the way of the dodo, switch now and get a head start Jun 27 07:42:23 I have everything working in Eclipse now, at least in linux, so....lazy ;) Jun 27 07:42:50 They might stop updating ADT for Eclipse once AS is out of beta Jun 27 07:42:56 Try it for new projects then. Also, Eclipse has "Export to Gradle Project" to try out existing projects. Jun 27 07:43:24 this is based on intellij right? Jun 27 07:43:28 yes Jun 27 07:43:42 :) Jun 27 07:44:01 how come intelliJ doesn't highlight the word String in another color? Jun 27 07:44:21 like how int and other variable types Jun 27 07:44:31 I am downloading the ADT plugin manually, and then I will add it as Archive in the install sites. we'll see if it goes well Jun 27 07:44:59 around 10 minutes for me to finish downloading ADT plugin Jun 27 07:45:09 if you dont like default highlighting then change it Jun 27 07:46:49 therue: which other variable types? int is a primitive and String isn't Jun 27 07:53:38 I think android studio highlights string and not String Jun 27 07:56:30 Hello people! It's long i'd like to buy an android tablet, and I find a promotion: Nexus7 2013 for 174€ (wifi+lte+3g) and 32gb Jun 27 07:56:46 what do you think? Do they do the promotion just because google is going to show the new model? Jun 27 07:56:56 Should I buy it anyway because the price is actually very low? Jun 27 07:57:34 wrong channel Jun 27 07:57:43 I'm getting Error:(73, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). Jun 27 07:57:47 would you point me to the correct please? Jun 27 07:57:49 after the upgrade Jun 27 07:57:51 #android Jun 27 07:57:55 ok thanks Jun 27 08:33:50 Hi Jun 27 08:33:53 I need a help Jun 27 08:34:11 Just ask Jun 27 08:34:11 I want to get the gps coodinates and then display it in a map Jun 27 08:34:27 I already wrote to get the coordinates through DDMS Jun 27 08:34:34 but displaying maps? Jun 27 08:34:57 hi, I am noob dev and having problems using android-studio with nexus 5 phone. all problems are host resolution errors but I don't have any fancy network setup Jun 27 08:35:28 niru: have you looked at the Maps documentation? Jun 27 08:35:54 no can u give me the link or is it in Android training tutorial Jun 27 08:35:58 pavelz: do you have 'any' network setup ? Jun 27 08:35:58 niru: https://developers.google.com/maps/documentation/android/ Jun 27 08:36:03 also my OS is Ubuntu 14.04 or whatever latest version is. Jun 27 08:37:01 Estel, thanks let me check and update Jun 27 08:37:20 does it mean something else besides having internet connectivity? yes I can update my system do wget et al. Jun 27 08:37:32 bankai_: ^^ Jun 27 08:37:45 what are you trying to resolve? what's your code doing Jun 27 08:38:17 gradle is not working. I can run emulator but when I connect my phone gradle complains that it can't connect to various hosts. Jun 27 08:38:59 so what's the problem, your phone or your computer ? Jun 27 08:40:07 I cannot build because gradle complains it cannot connect to various hosts. so I guess it is the android-studio. Jun 27 08:40:41 i doubt it's AS, it's probably your ubuntu setup Jun 27 08:40:48 unless gradle loads stuff through on the phone, onto the phone through phone's internet. but that does not make sense. Jun 27 08:40:56 no it doesn't do that Jun 27 08:41:13 what hosts is it trying to connect to? have you done basic diag - nslookup, ping etc. ? Jun 27 08:41:34 you behind a proxy ? Jun 27 08:42:38 Does anyone use the standard emulator on OSX? Whenever I start an AVD I get the icon appear in the dock, but no window appears Jun 27 08:42:46 * JuiceSSH has been using Genymotion for too long Jun 27 08:43:25 i do, arm and x86 one works fine... do you have enough RAM? maybe it's bombing out coz of that Jun 27 08:44:31 Estel, isnt there a way for openstreet maps. Jun 27 08:44:37 instead of ggogle maps Jun 27 08:44:40 google Jun 27 08:45:59 bankai_: Plenty of free ram unfortunately Jun 27 08:46:21 how much is plenty? did you give the emulator enough ? Jun 27 08:49:10 bankai_: I have ~15GB free. I've just tried upping the VM heap in the avd settings from the default of 64MB to 512MB and I think that might have helped. Jun 27 08:49:31 only 15? gee you're going to need more than that! hahah :P Jun 27 08:49:50 :) I get a window now, but it's black. Maybe HAXM related. Jun 27 08:51:12 Ok - turning on host gpu option seems to have fixed that Jun 27 08:51:32 bankai_: no behind home router firewall Jun 27 08:53:14 bankai_: so gradle writes that it is unable to download gradle: 0.12 in offline mode there was an error - could not resolve host. how do I go online in studio? is there a switch? Jun 27 08:53:21 niru: sure: https://github.com/osmdroid/osmdroid Jun 27 08:53:42 sorry for noob questions but it seems like it should work and I am only a switch away from it all dancing together. Jun 27 09:01:51 Estel, all android based apps are opensource? Jun 27 09:02:01 Or some may be propritary Jun 27 09:02:14 Most are propietory Jun 27 09:02:22 why I am asking is I can use any of there code for my use and bundle it with something else? Jun 27 09:02:36 ah ok... Jun 27 09:03:04 OSMDroid is a library that you can use, though Jun 27 09:03:28 ok Jun 27 09:05:30 niru: Google has sample code available: http://developer.android.com/samples/index.html Jun 27 09:06:10 Requires Android Studio to run. Is Android Studio the way to go now? Jun 27 09:07:15 improvnerd, I dont have Android Studio Jun 27 09:07:42 niru: You can still browse the source code. Jun 27 09:11:56 for some reason android studio for os x just worked unlike the one for linux Jun 27 09:12:02 How can I send data to a BroadcastReceiver via a IntentFilter? The action field is already used. Jun 27 09:21:31 can anyone help me set up a xmpp connection over bosh? Jun 27 09:21:45 hi how come gradle does not load on linux with android-studio but on os x it works just fine. Jun 27 09:21:48 ? Jun 27 09:23:37 I get the error: Could not download artifact 'com.android.tools.build: gardle: 0.12:gardle.jar' No cached version available for offline mode. Jun 27 09:24:11 what follows I try to find the online mode, to be found nowhere in UI. Jun 27 09:30:32 Hey I have upgraded SDK tools version to 23 now I am not able to use ADT:( Jun 27 09:30:41 its asking me to upgrade ADT also Jun 27 09:30:48 help needed Jun 27 09:30:53 you have to upgrade adt Jun 27 09:30:56 Can I revert back to older sdk Jun 27 09:31:06 is there other way round Jun 27 09:31:19 because ADT download is getting more than 1 hour for me Jun 27 09:31:56 Though I have started the download for ADT for timebeing can I use older SDK. If so how? Jun 27 09:36:21 Hey guys, I have an object which implements comparable and currently compares against a date field. So calling Collection.sort(objectList) will sort the list by that date.. What if I have another datefield I want to compare by and have the option to sort by one or the other. How would I implement this? Jun 27 09:37:49 hi in my app this code: getActionBar().setTitle("sample"); getActionBar().setDisplayHomeAsUpEnabled(true); are ok on Android JellyBean but on my tablet with Android Froyo dont start application... my question is how change title of action bar and add back button on Froyo? Jun 27 09:39:14 Alfreda: use getSupportActionBar() instead of getActionBar() for the support libarry Jun 27 09:40:13 ok i try Jun 27 09:44:52 CocoStorm: Comparator. Jun 27 09:46:19 CocoStorm: You can pass a custom Comparator class to Arrays.sort which will do the comparison instead of the implemented compareTo. Jun 27 09:46:27 CocoStorm: http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#sort(T[],%20int,%20int,%20java.util.Comparator) Jun 27 09:51:54 danijoo: no i have error: The method getSupportActionBar() is undefined for the type Add Add.java Jun 27 09:52:06 because you dont use the support library Jun 27 09:52:25 and actionbar was not present for froyo Jun 27 09:52:27 so you have to Jun 27 09:52:40 Jun 27 09:52:44 in manifest.xml Jun 27 09:52:54 which support library? Jun 27 09:53:18 http://developer.android.com/tools/support-library/features.html Jun 27 09:54:06 thanks flan3002 Jun 27 09:54:06 is there primer available for Dalvik internals? Jun 27 09:54:08 :) Jun 27 09:54:28 If you want to have actionbars in api level 8, you have to include the appcompat library into your project, change all Activities to use the ActionbarActivity and use getSupportActionBar() Jun 27 09:56:22 nutrino: Why? Jun 27 09:56:28 nutrino: Just for fun? Jun 27 09:57:09 yah just to have in-depth understanding of things.. Jun 27 09:57:15 in my project i have appcompat_v7 Jun 27 09:57:50 nutrino: You may want to look at ART instead of Dalvik. Dalvik is going to be phased out in the future. :) Jun 27 09:57:56 your activities have to extends ActionbarActivity instyread of Activity Jun 27 09:57:58 It's possible to animate from alpha 0 to 1 (invisible to visible), but is it also possible to animate from gone to visible? Jun 27 09:58:04 * flan3002 would rather look at ART than DVM. Jun 27 09:58:04 or FragmentActivity maybe Jun 27 09:58:55 Hi, I'm looking for best practices on testing Google Play subscriptions, specifically trail subscriptions. As there is no sandbox mode for these, how do I go about it? I am integrating the purchases with our backend. Jun 27 09:59:08 danijoo: http://postimg.org/image/3s22nge7b/afcc5673/ Jun 27 09:59:25 trial, not trail. Jun 27 09:59:39 hmm right but having understanding of DVM wouldn't hurt.. Jun 27 09:59:42 your uses-sdk is not an issue Alfreda Jun 27 09:59:59 read the guides on supporting old devices from google Jun 27 10:00:00 nutrino: Sure not. :) Jun 27 10:00:32 danijoo: if in my add.xml i do: public final class Add extends ActionbarActivity { Jun 27 10:00:49 i dont think you have that in an xml :p Jun 27 10:00:58 iTunes has a sandbox mode with subscriptions that renew every 5 minutes, but it seems Google Play has ---- nothing? Jun 27 10:01:01 ,java sorry Jun 27 10:01:13 i have error Jun 27 10:01:36 ActionbarActivity cannot be resolved to a type Add.java Jun 27 10:02:00 Alfreda: http://developer.android.com/tools/support-library/index.html Jun 27 10:02:26 heinrisch: so? Jun 27 10:02:39 thats how you add the support library and what it is Jun 27 10:02:41 this is my first work with android :P Jun 27 10:02:49 Alfreda: read it Jun 27 10:03:08 youve got that posted the second time now. read the docs, understand them, and then ask again Jun 27 10:03:32 but in this document i view only the library Jun 27 10:03:35 with changelog Jun 27 10:03:45 http://developer.android.com/tools/support-library/setup.html Jun 27 10:03:55 there is a like right there, on how to setup it... Jun 27 10:04:02 ahh Jun 27 10:04:06 there is a sidebar containing a site about how to setup support library and when to use it Jun 27 10:04:06 i must downlload it? Jun 27 10:04:13 read Jun 27 10:04:15 with coding examples Jun 27 10:04:39 even tells you how to do it in eclipse Jun 27 10:05:21 i try Jun 27 10:05:26 thks Jun 27 10:06:47 Hello, what would be best way to impliment font size for various screen sizes. Should I use values for different "Density" or "Size" ? Jun 27 10:06:50 heinrisch: i have already installed Android Support Library in SDK Jun 27 10:07:09 Alfreda: then keep reading Jun 27 10:07:14 there are more steps Jun 27 10:07:17 ok Jun 27 10:07:44 vegetablesalad19: use sp when specifying the sice Jun 27 10:08:06 * danijoo feels like a babysitter Jun 27 10:08:22 vegetablesalad19: http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android Jun 27 10:08:53 danijoo: you need to teach the baby how to fish, instead of feeding it :) Jun 27 10:10:11 heinrisch, yes I am using sp, but font is a lot smaller on my nexus 4 then on samsung s3 mini. Just using sp doesn't help. I need different values for screen size or density Jun 27 10:10:34 heinrisch: yeah but i think if it wants to learn fishing, it should at least have looked up on its own what a fishing rod is :p Jun 27 10:11:15 danijoo: fishing rod? start at explaining what a fish is ;) Jun 27 10:11:25 Going back to watch the IO videos. The incredible non-answers are fun :D Jun 27 10:11:42 can i have a shape drawable with a border that only has 3 edges? i want the left edge to not be part of the stroke Jun 27 10:11:54 vegetablesalad19: that sounds stage... are both devices set to normal font size? Jun 27 10:12:58 heinrisch, hmm not sure what you mean by "set to normal font size". In device settings ? Jun 27 10:13:06 both are on default factory settings Jun 27 10:13:14 vegetablesalad19: yes, in devices settings. Jun 27 10:13:51 I defaulted to factory settings few days ago, so I don't think so Jun 27 10:13:54 heinrisch: i must do this? Adding libraries without resources To add a Support Library without resources to your application project: Using Eclipse Jun 27 10:13:56 vegetablesalad19: I have never had the problem of needing to specify more than sp Jun 27 10:14:17 im off getting my self a nex5 and check out this developer build now. :) yay Jun 27 10:15:28 heinrisch: but i have already in libs android-support-v4.jar Jun 27 10:16:03 Alfreda: if you need things that require resources or not, it tells you what that means in the paragraph above Jun 27 10:16:15 no i dont view resource! Jun 27 10:16:28 the why are you asking about that..? Jun 27 10:16:28 i want only change name of an activity bar Jun 27 10:16:55 Alfreda: the last step is adding the jar to your build path Jun 27 10:16:58 Alfreda: Android API level 8 DOES NOT HAVE an actionbar Jun 27 10:16:59 have you done that? Jun 27 10:17:08 if you want to change it, you have to include it with support library Jun 27 10:17:11 thats what v7 is for. Jun 27 10:17:50 you mean i must import in /libs android-support-v7.jar ? Jun 27 10:18:02 yes Jun 27 10:18:09 and this file where is???? Jun 27 10:18:20 are you serious? Jun 27 10:18:55 you have to download it. from the links provided to you when we said to read it Jun 27 10:19:10 or include it via maven Jun 27 10:19:12 gradle Jun 27 10:19:14 whatever Jun 27 10:19:44 Alfreda: you have the link, you have all the information you need. You can't expect us to do the work for you. Jun 27 10:20:22 In a TableLayout I have two columns with weight = 1. If I only have one element in a row, how can I make it the same width as when there are two elements? I tried layout_width = 50dp, but it is wider than the weight = 1 elements. Jun 27 10:21:04 barq: you can add a dummy Framelayout with weight 1 consuming the other space Jun 27 10:21:29 I thought of that, doesn't sound like a very elegant solution, though.# Jun 27 10:22:09 barq: im not sure if this works but you can try to set android:layout_span="1" in the xml Jun 27 10:22:30 to make sure the layout only uses one comlumn and not all available Jun 27 10:23:00 danijoo: sorry but i dont find this link for v7.jar Jun 27 10:23:25 I'm only using rows at the moment, no columns, just inserting one or two items into a row. Jun 27 10:23:38 heinrisch: sorry Jun 27 10:23:55 Alfreda: im sorry i dont help you if you dont read the links completely Jun 27 10:24:35 i have read all! Jun 27 10:26:29 Adding libraries without resources Jun 27 10:26:34 Make sure you have downloaded the Android Support Library using the SDK Manager. Jun 27 10:26:40 danijoo: ahh i thinks that i have undstand Jun 27 10:26:43 Copy the JAR file from your Android SDK installation directory (e.g., /extras/android/support/v4/android-support-v4.jar) into your application's project libs/ directory. Jun 27 10:26:46 okok Jun 27 10:26:52 thats what it says Jun 27 10:26:57 :) sorry Jun 27 10:27:04 this is my first app on android :D Jun 27 10:27:34 yeah but you cant expect others to explain you everything step by step. you have to find stuff out on your own. :) Jun 27 10:27:50 first project is always more looking up, reading and trying than anythig else ;) Jun 27 10:28:46 Alfreda: If this is your first app, drop anything below API level 15. Jun 27 10:29:07 Do _not_ even begin developing for Froyo, it's basically non-existent at this point. Jun 27 10:29:21 are you able to use CardView? Jun 27 10:29:21 Agreed, compatibility can be awful and annoying. Don't do it if you don't have to. :) Jun 27 10:30:05 And with the upcoming L release, you already have Holo and Material to care about, dedicate your time to this instead of supporting API <15. Jun 27 10:30:35 kakazza, flan3002 i think the biggest problem is that all guides and tutorial you find for learning android are so outdated that they suggest to set minSDK to 8 Jun 27 10:31:03 kakazza: Material runs only on API 20+ Jun 27 10:31:06 You shouldn't use these guides because they won't make use of the new APIs either. Jun 27 10:31:17 then i have imported new project android-support-v7-appcompat but i have this error in console: [2014-06-27 12:27:46 - android-support-v7-appcompat] Unable to resolve target 'android-16' Jun 27 10:31:29 Use the official guides, create a project with Android Studio (which defaults to API 15). Jun 27 10:31:48 Alfreda: you need to download android-16 from the sdk manager Jun 27 10:31:52 gdrc: And you want API 20+ to have Material and 15-19 Holo. Jun 27 10:31:53 kakazza: the official guides are aweful to actually learn how to code in android Jun 27 10:32:11 kakazza: That's a huge problem. I recently got back to developing some Android stuff, after having last worked on pre-API15. It's frustrating as hell not knowing what actually applies and if documentation actually referrs to best-practices. Jun 27 10:32:15 Alfreda: What is your targetSdkVersion? Jun 27 10:32:17 kakazza: I would not start developing for Android Lol as a beginner :) Jun 27 10:32:23 they are ok if you have experience and want to look up how to to something new, but if you have no idea about android, its totally crap Jun 27 10:32:24 16 jellyBean Jun 27 10:32:32 Set it to 19 KitKat Jun 27 10:32:44 kakazza: oh yes Jun 27 10:32:46 i would go with 15 Jun 27 10:32:47 depends on which phone he has Jun 27 10:32:59 danijoo: minSdkVersion 15, targetSdkVersion 19 Jun 27 10:33:05 yep Jun 27 10:34:08 heinrisch: Sure, all I'm saying is that she (and no one else for that matter) should not be spending time on supporting Froyo or even Gingerbread. Jun 27 10:34:33 She's a beginner, by the time she has something she wants to release, API <15 will be around 10% probably. Jun 27 10:34:50 For those extra 5 users! Jun 27 10:34:59 What api version is cupcake? Jun 27 10:35:03 kakazza: I think it depends, we still have 12% of our users on those versions. But yes, as a beginner, start learning android for something more modern Jun 27 10:35:10 heinrisch: i have a phone with jellybean Jun 27 10:35:20 heinrisch: 12% is less than the market percentage :) Jun 27 10:35:22 and a phone with froyo and a tablet with gingerbird :D Jun 27 10:35:23 Ah. API level 3 is where it's at. Jun 27 10:35:23 loke: 3 Jun 27 10:35:33 Why needs anything newer Jun 27 10:35:38 s/Why/Who/ Jun 27 10:35:55 Any app can be made with TextView, ImageView, ListView and a couple of intents! Jun 27 10:36:00 heinrisch: i'm installing android v16 Jun 27 10:36:07 Estel: Not even that. All you need a is a canvas Jun 27 10:36:30 Get a GLES-view (version 1, of course) and you're all set Jun 27 10:36:36 hah Jun 27 10:36:51 Alfreda: if you want to start learning android, set target and min sdk to your version Jun 27 10:37:04 i have already set Jun 27 10:37:07 guys i'm trying to set up a boshconnection but after i try to .connect() it throws an exception saying the host is null Jun 27 10:37:08 in manifest.xml Jun 27 10:37:11 kakazza: yes, but its too much to drop support for Jun 27 10:37:23 Alfreda: then you can just use getActionBar Jun 27 10:37:27 any ideas Jun 27 10:37:42 android:minSdkVersion="8" Jun 27 10:37:42 android:targetSdkVersion="16" Jun 27 10:37:51 jvrodrigues: code or it didn't happen :) Jun 27 10:37:57 android:minSdkVersion="16" Jun 27 10:38:09 infact if i put min 11 and target 16 it work Jun 27 10:38:18 but on my tablet with froyo no Jun 27 10:38:41 Forget Froyo Jun 27 10:38:45 Seriously Jun 27 10:38:58 SERIOUSLY MAN! Jun 27 10:39:02 froyo on tablet? :0 Jun 27 10:39:06 Alfreda: froyo is too old, you need honeycomb or newer, unless you use the compatibility library Jun 27 10:39:07 not a big market Jun 27 10:39:22 kakazza: maybe he wants to create the app for him/her-self Jun 27 10:39:32 itself Jun 27 10:39:32 so on froyo i cant change name of ActionBar ? Jun 27 10:39:34 :| Jun 27 10:39:48 Alfreda: you can, but you need to use the support library Jun 27 10:39:54 eh Jun 27 10:39:55 ok Jun 27 10:40:06 i'm downloading Android 16 Jun 27 10:40:09 from sdk Jun 27 10:40:11 heinrisch, http://pastebin.com/2y14uKLa Jun 27 10:40:12 Alfreda: Froyo does not have an action bar Jun 27 10:40:14 Alfreda: Who is your target audience? Only you, or the whole market? If the latter, drop Froyo support, in fact don't support Gingerbread or Honeycomb either. Jun 27 10:40:27 i have 3 device Jun 27 10:40:37 with JellyBean, Froyo and Gingerbird Jun 27 10:40:40 Two of them outdated. Jun 27 10:40:54 Yes, and I feel sorry for you. Jun 27 10:40:55 i want that my app work on all 3 devices Jun 27 10:41:16 You're entering a world of pain as a beginner then. Jun 27 10:41:33 but i can resolve this? Jun 27 10:41:36 o no? Jun 27 10:42:27 I'll leave it to the others, just like I think your time is wasted supporting these API versions, I also think my time is wasted trying to help you support it. Sorry :) Jun 27 10:42:28 you can flash a custom rom in your devices and get it over with Jun 27 10:42:53 Alfreda: https://developer.android.com/about/dashboards/index.html Jun 27 10:44:00 jvrodrigues: any useful information in the exception ex? you can do just ex.printstacktrace() and look in the log Jun 27 10:44:16 heinrisch, on it Jun 27 10:45:32 jvrodrigues: And I would recommend always printing something from the catch(Exception e), no matter how sure you think you are that it should not matter Jun 27 10:45:42 I have done that mistake a few times :) Jun 27 10:45:56 heinrisch, timeoutReached... so it's trying to connect to a null port for some reason Jun 27 10:46:01 i mean host Jun 27 10:46:23 sounds strage that it would timeout on that, it should fail instantly Jun 27 10:47:11 heinrisch: Just printing isn't enough. Far too many times have I seen code do something like try {whatever()} catch(e) { e.print... } Do more stuff here which will surely break because the stuff before had failed Jun 27 10:47:34 Either throw, rethrow, or Log.wtf() Jun 27 10:47:53 loke: but at least you have a clue that it actually got to the catch part Jun 27 10:48:31 heinrisch: Yes, but depending on what happens after, you might cause extra troubles, or perhaps hide the real issue if you get so many cascading errors that you flood the log Jun 27 10:51:04 heinrisch, there should be a problem in the host we're using as we're not able to ping it, we're going to debug that now Jun 27 10:52:21 jvrodrigues: the source looks to be open, might be worth checking out Jun 27 10:53:02 if it still does not work Jun 27 11:00:52 heinrisch, i can't seem to find a bug in the source, in no way should the getHost() method return null Jun 27 11:02:12 jvrodrigues: as a last step you can always get the source and build you app with that, and the use a debugger to trace down the problem Jun 27 11:02:27 but you are able to ping the host now? Jun 27 11:02:32 yes Jun 27 11:02:49 it should not be able to connect to the host, but it shouldn't return null Jun 27 11:10:50 hmm Jun 27 11:10:55 found a problem in the source Jun 27 11:11:31 ya, definitly fixed it Jun 27 11:15:33 In SQLite how can I get an integer comparison vs a string comparison if I have integers represented as strings in my table? Jun 27 11:16:39 there are definitly more issues here Jun 27 11:16:44 this library is pretty shitty Jun 27 11:18:59 I am using a raw query String query = "Select * from table WHERE count < 10" Jun 27 11:21:26 barq: try : "SELECT * FROM table WHERE CAST(cound AS INT) < 10; Jun 27 11:21:35 ups. type Jun 27 11:21:47 "SELECT * FROM table WHERE CAST(count AS INT) < 10"; Jun 27 11:21:50 this Jun 27 11:33:05 jvrodrigues: nice work :) Jun 27 12:11:30 I have an AutoCompleteTextView and change the layout_width dp from 50 to 10, but has no effect in the UI. Shouldn't dp be the percentage of the parent layout width? Jun 27 12:21:31 barq: dp is not percentage Jun 27 12:21:57 http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android Jun 27 12:25:04 Is there a way to set the same width as a different layout element? Jun 27 12:25:16 hi guys Jun 27 12:25:21 hello Jun 27 12:25:37 what do you think is the best framework for developing games on Android? Jun 27 12:25:55 on iOS I've been using cocos2d until iOS7 (now SpriteKit) Jun 27 12:26:17 did you try any framework? Jun 27 12:31:01 maybe others will be able to help you out.. i'm still a noobie :) Jun 27 12:31:09 learning java at the moment Jun 27 12:31:28 do you know java already? Jun 27 12:31:40 cocos2d-x's language is c++ right? Jun 27 12:32:46 barq: not really, you can use layout weight to have mutliple items in the same viewgroup with the same size Jun 27 12:33:03 Sepho: I really like andengine Jun 27 12:33:38 therue: yes, C++ Jun 27 12:33:54 and yes, I know java :P Jun 27 12:33:58 heinrisch: thanks! Jun 27 12:34:16 I have a TableLayout with some rows containing one element and others containing two. When I have two elements I use weight to have each element take up 50% of the space. When I have one item I want it to be aligned with the other rows containing two items, but cannot figure out how to set the width properly. Jun 27 12:34:48 Sepho: I have created a base project if you want to try it out: https://github.com/heinrisch/AndEngine-Kitkat-Gradle Jun 27 12:38:52 wow, great! thanks! Jun 27 12:44:36 What does stretchColumns do exactly in TableLayout? Jun 27 12:49:37 heinrisch, i still failed Jun 27 12:49:43 been at this for 2 days now Jun 27 12:49:58 now i tried setting up a ejabberd server in my computer Jun 27 12:50:04 and tried connecting my phone to it Jun 27 12:50:11 i still get the same problem Jun 27 12:50:25 does anyone here know how to connect to an xmpp server under bosh? Jun 27 12:52:00 but you can ping the host from the phone now? Jun 27 12:54:58 heinrisch, yes i can Jun 27 12:55:51 then I am out of ideas... Jun 27 13:35:19 I am very new to Android, so apologies for the dumb questions.....I am trying to create a folder in the "public pictures" folder, and I am getting an error. Can someone tell me how to see the specific error I am getting? (http://pastebin.com/XB9ugdCh) Jun 27 13:47:09 BooeyOH: check the log, called logcat Jun 27 13:47:42 @heinrisch there is nothing that shows up there unless I specify my own generic error :-/ Jun 27 13:47:52 I tested on my nexus 5 and an avd Jun 27 13:48:00 is it crashing? Jun 27 13:48:17 neither works, I have the WRITE_EXTERNAL_STORAGE permission also Jun 27 13:48:18 No, just doesn't create the folder, Jun 27 13:48:46 I even tried the code directly from the android online docs :-/ Jun 27 13:49:16 http://developer.android.com/guide/topics/data/data-storage.html#SavingSharedFiles Jun 27 13:49:40 ehh, finally, getting the wear sdk working Jun 27 13:50:20 BooeyOH: mkdirs also returns false if the folder already File Jun 27 13:50:27 already existed* Jun 27 13:51:10 ah, I see what you are trying to do Jun 27 13:51:25 shouldn't the ".exists()" check for taht first? Jun 27 13:53:22 You might not have the permission or something like that, have you tried to create a file in that path? Jun 27 13:53:43 like the example here: http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String) Jun 27 13:53:49 let me try Jun 27 13:53:54 what does this mean? "Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/common/annotations/Beta;" Jun 27 13:54:18 @heinrisch you mean create just a file, not a folder, right? Jun 27 13:54:34 yes, a file in that folder Jun 27 13:54:36 fancy42: Well. What parts contain that class? Jun 27 13:54:55 fancy42: If you make sure you only link to one copy of that class, it'll compile. Jun 27 13:55:33 @heinrisch ok, somewhere in my expirements it created the folder..... sigh, not sure which one though. bad testing Jun 27 13:56:00 flan3002, i think its in the android-support-v4.jar Jun 27 13:56:24 my project has a dependency to actionbarsherlock which also has this file Jun 27 13:56:27 fancy42: And how many times do you or the projects you use link to v4? Jun 27 13:56:40 Yeah... Jun 27 13:57:06 Try removing the depency of your project to the support library and recompile. Jun 27 13:57:18 currently i have an install goal to copy the jar from libs-folder to the local repository. Jun 27 13:58:21 flan3002 ... on it Jun 27 13:58:56 Hi. This table suggest that .3gp is a supported audio format: http://developer.android.com/guide/appendix/media-formats.html, however, when I'm trying to record some audio using the MediaRecorder: http://pastebin.com/vQaErTfu, I get a video file instead. What am I doing wrong, should I use a different codec and container instead? Jun 27 14:02:07 Description Resource Path Location Type Jun 27 14:02:07 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:07 Description Resource Path Location Type Jun 27 14:02:07 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:08 Description Resource Path Location Type Jun 27 14:02:10 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:15 Description Resource Path Location Type Jun 27 14:02:17 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:20 Description Resource Path Location Type Jun 27 14:02:22 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:24 Stop! Jun 27 14:02:25 Description Resource Path Location Type Jun 27 14:02:27 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:30 Description Resource Path Location Type Jun 27 14:02:32 The project was not built since its build path is incomplete. Cannot find the class file for android.support.v4.app.Fragment. Fix the build path then try building this project Nunav Unknown Java Problem Jun 27 14:02:35 project was not build because the class path is incomplete. cannot find the class for android.support.v4.app.fragment Jun 27 14:02:38 sry! :D Jun 27 14:02:44 the input field of my chat client led me to believe it is empty -_- Jun 27 14:03:34 If you got an error to post, use pastebin/hastebin/ix/latestthing, but don't paste it to a channel. :) Jun 27 14:03:54 thanks, will do :) Jun 27 14:04:12 There are channels to ban you for that. :) Jun 27 14:09:31 damnit, I can't find my spare moto x screen protector Jun 27 14:09:33 how annoying Jun 27 14:09:44 despite having hardened glass, it scratches too easily Jun 27 14:09:58 hey guys is newLatLngZoom supposed to center your location on the screen? Jun 27 14:10:11 maps v2 Jun 27 14:10:14 anyone have experience with git and androidstudio should i been including the .idea in my git repo? Jun 27 14:10:30 No! Jun 27 14:11:21 the phone is zooming in the city center, instead of where I am :O Jun 27 14:12:31 Not if you can avoid. Jun 27 14:12:33 Checking in your IDE-specific files is bad practice. You should have a platform-independent build system. Jun 27 14:12:40 i was messing with removing the .idea from my git repo and everything yesterday and now when i open up android studio in the project pane on th left it just says local.properties and external libries and .gitignore and non of my other directories Jun 27 14:13:14 but the .idea direcory and everything is still there Jun 27 14:13:40 I can't tell how you messed up, you'll have to find out yourself. Jun 27 14:13:55 could somebody please tell me why Eclipse says there is a problem at line 38 and 48? It says delete this token, but if I do the code becomes unreachable http://pastebin.com/c6TM65jZ Jun 27 14:13:56 Are the files still there though? Jun 27 14:14:25 yes Jun 27 14:15:11 jamesson: You have loops at class-level. Bad. Jun 27 14:15:20 meh Jun 27 14:15:34 * pfn makes changes for the new tools/platform tools released yesterday Jun 27 14:15:40 jamesson: These belong in a function. Jun 27 14:16:08 jamesson: seems line 67 closes onCreateView, line 69 closes configFragment, what is line 70 closing? Jun 27 14:16:35 sorry guys, wrong pb. 1 sec Jun 27 14:17:45 http://pastebin.com/BKs7qmJZ Jun 27 14:17:47 -.- Jun 27 14:18:42 any ideas on teh android studio thing flan? Jun 27 14:18:57 flan3002, are you sure that getting the android support library transitively through actionbarsherlock works? my build path is rendered "incomplete" currently. whatever that means... Jun 27 14:19:16 jaspertheghost: No. I don't know what went wrong. I'd reimport that project. Awful but pragmatic. Jun 27 14:19:27 jamesson: you're calling a function in your raw class Jun 27 14:19:43 fancy42: It worked for me. Some time ago with different tooling. Jun 27 14:19:56 jamesson: I suspect you think your selectbutton.setOnClickListener is in oncreate. It isn't. Jun 27 14:19:59 did you also use maven and act? Jun 27 14:20:02 *adt Jun 27 14:20:11 Nah. :) Jun 27 14:20:22 Who'd use maven? :P Jun 27 14:20:31 yeah this turned out to be quite the ugly combination :D Jun 27 14:20:44 what do you use for build management? Jun 27 14:21:41 jamesson: also I suspect you'll crash and burn due to line 31, which is trying to do matching on a view that doesn't exist yet; look at some fragment lifecycle examples, you'll need to do that assignment inside onCreateView. Jun 27 14:21:47 dragorn: ty that fixed it Jun 27 14:21:48 sbt, ant or gradle. Any sometimes the inbuilt one. I need more practice with Gradle though. Jun 27 14:22:03 jamesson: fragments get instantiated (ie new FooFragment()), then they get their views assigned some point later Jun 27 14:22:45 dragorn: yea I should really have a better grip on lifecycle at this point, alas I was sick for 2 weeks and now Im behind the 8 ball Jun 27 14:23:15 jamesson: same with activities; so you can only find things in your view once that view has been created. So 31 needs to be Button selectButton; then after line 36 maybe something like selectButton = (Button) rootView.findViewById(...) Jun 27 14:23:34 jamesson: (notably looking inside the view you just created) Jun 27 14:24:11 flan3002, i have the choice between maven and ant. usually i'm pretty happy with maven, but it's quite messy to get an android project running.... Jun 27 14:24:28 dragorn: but, the only thing that all my sources (including the book) do it inline Jun 27 14:24:35 * flan3002 shrugs. I don't have to live with maven. Jun 27 14:25:26 isn't there some android archetype for maven Jun 27 14:25:28 dragorn: Im guessing its because its from an activity Jun 27 14:26:46 pfn, yes there is. maybe it was me :D but it took some time to run from eclipse and from command line Jun 27 14:27:28 once the first install is done, it's usually quite trivial... Jun 27 14:28:20 currently i'm having major problems with using actionbarsherlock Jun 27 14:28:24 jamesson: as far as I know that will never work Jun 27 14:28:43 jamesson: MAYBE if you loaded the view in the activity and not the fragment, but then you're crossing boundaries too Jun 27 14:29:01 i originally had imported this project form eclipse but it didnt convert to gradle ... it was a module now when reimporting it it sucessfuly coverted to gradle Jun 27 14:29:12 jamesson: you sure they're not doing it inside a function? Doing it at object instantiation time should, as far as I'm aware, never work Jun 27 14:30:19 dragorn: I mean, this is a serious book, that was actually recommended on this channel (Professional Android 4 Application Development) Jun 27 14:30:44 dragorn: nope nope my bad youre right Jun 27 14:30:50 * jamesson needs more coffee Jun 27 14:30:51 jamesson: I'm not familiar with it, but I can tell you that during fragment object instantiation that the view does not exist and searching for things in the view won't work Jun 27 14:30:55 jamesson: heh, fair nuff Jun 27 14:31:02 can i install app to market on linux Jun 27 14:31:12 jamesson: i know that feeling. I operate purely on hate and caffeine lately Jun 27 14:31:23 up til 1:30 am, got up at 6:30 Jun 27 14:31:23 basketball: can you upload an app to the market? Sure, it's all browser based. Jun 27 14:31:25 basketball: of course you can publish an app in the play store from Linux, if that's what you mean Jun 27 14:31:34 up at 5:30 yesterday Jun 27 14:31:41 no there is a program called app to market Jun 27 14:31:55 and it lets you edit a compiled apk Jun 27 14:32:10 never heard of it. if whoever made it made a linux version, then i imagine you can, sure. Jun 27 14:32:34 jamesson: Our first stuff just rolled off the manufacturing line this morning. I didn't have to be out of the country for it, but still super stressful Jun 27 14:33:01 dragorn: what do u guys make? Jun 27 14:33:02 https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCkQFjAA&url=http%3A%2F%2Famerkashi.wordpress.com%2F2011%2F02%2F14%2Fautomating-conversion-of-app-inventor-apk-to-google-market%2F&ei=lICtU6iyIo6zyASgyoHwCg&usg=AFQjCNHxe6A-GkTz3T0Vhp6BUM52hGNr2A&sig2=w9RLqKFMKJA51bHMiHvvkw&bvm=bv.69837884,d.aWw Jun 27 14:33:41 meh, app inventor Jun 27 14:33:53 jamesson: https://www.blackphone.ch Jun 27 14:34:38 dragorn: niiice Jun 27 14:35:01 dragorn: were you responsible for any actual security stuffs? Jun 27 14:35:12 jamesson: yup Jun 27 14:35:37 hi Jun 27 14:35:40 dragorn: can I pick your brain a little later in private? maybe 10 min Jun 27 14:35:46 jamesson: sure Jun 27 14:35:48 can we talk about android L Developer Preview here? Jun 27 14:35:54 jamesson: i'll be around for a while longer Jun 27 14:39:41 I'm trying to use traceview on a device, but how do I get the traceview file back onto my desktop? Jun 27 14:42:25 how do you open private chat in the webclient anyhow? Jun 27 14:43:09 how can i report bugs for the developer preview? Jun 27 14:43:19 hi, i have 2 activity and i want pass a variable from first to second activity.. some help? Jun 27 14:43:28 cortexA9, same as for anything else aosp Jun 27 14:43:39 Alfreda: add it to the intent Jun 27 14:43:54 how? Jun 27 14:43:58 is new for me Jun 27 14:44:54 dragorn: I dont know how to open a private convo in the webchat, actually, grab me when its a good time for you Jun 27 14:45:30 jamesson: try /msg dragorn Jun 27 14:46:18 Leeds: did, but I didnt get the separate "window". Maybe he must accept/respond? Jun 27 14:47:12 probably, yes Jun 27 14:48:05 hello to everyone Jun 27 14:48:32 i have a listview with custom layout Jun 27 14:48:52 a view inside the custom layout has visibility gone Jun 27 14:49:28 how can i make visible the view for a specific item dynamically? Jun 27 14:49:45 resu01: Set the visibility in the adapter? Jun 27 14:50:01 in which place? Jun 27 14:50:21 Leed some tips? Jun 27 14:50:23 Where you create or recycle views. :) Jun 27 14:50:30 for example when the user swipes a listitem i want to se visible an imageview in the specific listitem Jun 27 14:50:50 Alfreda: Google it. There are loads of pages and SO questions on that. Jun 27 14:51:04 i dont find it! Jun 27 14:51:11 no, i just suspect the webchat doesn't do windows. but I don't know, i don't use it Jun 27 14:51:16 resu01: Yeah. So? Got a listener on that one? Jun 27 14:51:58 jamesson: Get a proper client. Like irssi. :P Jun 27 14:52:24 Hello Guys?! Can i create a background service which will running always to check bluetooth le devices? Jun 27 14:52:27 flan3002: enough crap on this system already :/ Jun 27 14:52:53 I mean without android auto kill that service. Jun 27 14:52:55 i have a listener for the swipe. That what i want to do is to set imageview visibility to visible for the list item when the user swipes a list item Jun 27 14:53:11 jamesson: If you call irssi crap, you got a lot of high-quality software on your system. :) Jun 27 14:53:18 inside the onFling i catch the swipe Jun 27 14:53:28 but how can i edit the specific view/ Jun 27 14:53:32 ? Jun 27 14:53:37 dragorn: I had separate "wondows" (tabs, whatever) before. could you try msging me and if that doesnt work Ill install a proper client Jun 27 14:53:40 resu01: So, what's wrong? Have you got a reference to that view? Jun 27 14:53:46 no Jun 27 14:53:53 does anyone have an answer to this? thanks http://stackoverflow.com/questions/24454409/android-maps-v2-api-center-current-location-on-screen : ) Jun 27 14:54:13 resu01: Then get one. Google for ViewHolder pattern. :) Jun 27 14:54:32 Alfreda: Are you serious? What are you googling for? Jun 27 14:54:34 ok thanks Jun 27 14:54:37 yes Jun 27 14:54:41 but nothing! Jun 27 14:54:45 * flan3002 sighs. Jun 27 14:55:04 Alfreda: have you run through the tutorial stuff on d.android.com? Jun 27 14:55:14 yes Jun 27 14:55:18 where is? Jun 27 14:58:54 Leeds: ? Jun 27 14:59:06 is it possible to get the keyboard to show automatically when an activity is launched? Jun 27 14:59:32 I see something similar in Twitter’s official app but that’s not consistent across orientations Jun 27 14:59:41 I have a data object X that comes from "intent.getExtras()". I don't know what all is in there, is there some sort of data explorer that can show me what is "inside" X? Jun 27 14:59:56 intent.getExtras returns you a Bundle Jun 27 15:00:00 I’ve already tried InputMethodManager’s showSoftInput but it’s not working on launch Jun 27 15:00:06 use the apis on Bundle to retrieve the data Jun 27 15:00:14 alternatively, just try logging its .toString() Jun 27 15:00:22 and seeing if it does something useful Jun 27 15:01:27 i have 2 activity and i want pass a variable from first to second activity.. some help? Jun 27 15:01:41 Alfreda: http://developer.android.com/training/sharing/send.html Jun 27 15:01:49 Alfreda: add them as extras on the intent Jun 27 15:01:51 Alfreda: put it as extras in the intent starting the second activity Jun 27 15:02:23 i must take text in a edittext Jun 27 15:02:46 and after print this text in a string in another activity Jun 27 15:02:56 1) how take text from edit text? Jun 27 15:03:07 2) how to pass it to a string to another layout? Jun 27 15:03:08 editText.getText() Jun 27 15:03:30 where editText is the name of your EditText variable Jun 27 15:03:50 Alfreda: if you're going to need walking through everything, it's going to get old, fast... seriously, the docs do cover this sort of thing Jun 27 15:03:50 1) ^^ Jun 27 15:05:37 yaw: String s = editText1.gettext(); Jun 27 15:05:39 guys... guys!! is it me or is the new ADT awesome? Jun 27 15:05:49 dont work editText1 Jun 27 15:06:00 Alfreda: what's the error? Jun 27 15:06:12 editText1 cannot be resolved Jun 27 15:06:17 Alfreda: what’s the id of the EditText widget in your layout? Jun 27 15:06:21 have you declared editText1? Jun 27 15:06:29 Alfreda: you really really need to spend some time learning basic java and android stuff Jun 27 15:06:54 android:id="@+id/editText1" Jun 27 15:06:54 Jun 27 15:07:06 don't paste here... Jun 27 15:07:12 is only a 1 row Jun 27 15:07:14 @pfn, how can I see the details of a Bundle? (I am new to Java, in things like PHP, I use var_dump to translate an object to a "readable" string) Jun 27 15:07:19 also, you really obviously haven't gone through the tutorial, so... done Jun 27 15:07:29 time to learn java Jun 27 15:08:01 Alfreda: have you declared and assigned a variable to it? Jun 27 15:08:42 something like ` EditText editText1 = (EditText) findViewById(R.id.editText1); ` Jun 27 15:08:46 ok Jun 27 15:09:07 @pfn, helpful, thank you Jun 27 15:10:05 but my edit text is on fragment_main.xml, this code i must write it on MainActivity.java in public View onCreateView? Jun 27 15:10:17 in public static class PlaceholderFragment extends Fragment? Jun 27 15:12:08 is correct? Jun 27 15:12:39 http://pastebin.com/jpVjCrTq Jun 27 15:12:42 i have error Jun 27 15:13:05 Cannot make a static reference to the non-static method findViewById(int) from the type Activity MainActivity.java /test/src/com/example/test line 70 Java Problem Jun 27 15:13:16 time to learn java Jun 27 15:13:24 hmm, ever since I updated my SDK for L, I’m getting a NullPointerException in the Preview window for my old project which is using ABS. Anyone seen this? Jun 27 15:14:30 pfn: i have insert import android.widget.EditText; Jun 27 15:15:21 … Some kind of inflation NPE. Jun 27 15:16:02 ahhh .toString() Jun 27 15:21:39 I have a question regarding the life-cycle of an activity that connects to a service. I assume that using onPause/onResume is not sufficiant? Would also 'store' certain UI states and variables in the service and re-collect them on reconnect with said service? Jun 27 15:22:11 i would not suggest storing UI states in a service Jun 27 15:22:16 So I'm trying to install the Android SDK tools on Windows 7 (no ADT, just the SDK) but it's complaining that it can't find the JDK and I should set JAVA_HOME, however JAVA_HOME points to "C:\Program Files\Java\jdk1.8.0_05\bin" which should be the right path... any idea what's wrong? Jun 27 15:25:36 canadiancow: let's assume the UI displays a text indicating fthe servcie is recording or not. I then leave the activity and restart it. I would then ask my service what's going on, and display UI elements accordingly? or not? Jun 27 15:27:03 I want to marry android studio now Jun 27 15:27:08 <3 Jun 27 15:28:36 I have a machine where I have only ssh access (no gui) - how do I manage my SDKs/buildtools through command line (without launching the SDK manager) Jun 27 15:28:38 ? Jun 27 15:30:44 Has anyone ever had any luck with animating in new items in a gridview in a nice way? Jun 27 15:31:15 Sliding up all the items and then showing them, right pain in the arse Jun 27 15:31:56 i have created an intent for change data from 2 activity, http://pastebin.com/Gdx9Rqdm Now how pass this string to a second activity when i click a button? Jun 27 15:31:57 http://tools.android.com/recent/updatingsdkfromcommand-line - if anyone's interested Jun 27 15:33:32 Also does the ADT Bundle include Eclipse Luna? Jun 27 15:38:22 What do you guys think about Halt and Catch Fire? Jun 27 15:59:48 how can I get a swipe over a listview to tell me what item was swiped to when the swipe stopped Jun 27 16:04:07 could someone tell me why i npe at line 43? http://pastebin.com/HqYCMca8 Jun 27 16:09:14 because you have a null Jun 27 16:09:19 that's always the reason why Jun 27 16:10:33 replace getView() with rootView Jun 27 16:15:33 cokacokacoh: method rootView is undefined Jun 27 16:15:59 get rid of the () after rootView. you’re not calling a method Jun 27 16:16:06 you’re referencing the view you just inflated Jun 27 16:16:47 if anybody has time to help me out with my stack overflow question, he could make me very happy :D Jun 27 16:16:48 http://stackoverflow.com/questions/24456443/android-maven-actionbarsherlock-android-support-v4 Jun 27 16:17:02 cokacokacoh: o duuuuh ty Jun 27 16:18:04 fancy42 can't give much help here :(, I switched over to AS with Gradle from Eclipse Jun 27 16:18:35 cokacokacoh: yay ty Jun 27 16:19:26 anyone know where to submit bugs for the new ADT-1 TV box? Jun 27 16:22:01 mattblang_, yeah gradle is sadly not allowed for this project.. Jun 27 16:23:01 fancy42 that sucks. i work at a shop that uses Maven for all web projects. I was pretty set on using Gradle with AS though, and luckily got to make the decision. Jun 27 16:41:13 Hmm, I removed ABS from my project, but the preview window in Android Studio is still trying to instantiate ActionBarView from ABS and failing. Any ideas? Jun 27 16:44:57 colintheshots, complete rebuild maybe Jun 27 16:45:10 Zharf: I’ll try it. Jun 27 16:45:37 When I try to generate an a APK from Andoid Studio it say: Jun 27 16:45:39 Cannot find file C:\Users\anonymous\AppData\Local\Android\android-studio\sdk\tools\proguard\proguard-android.txt Jun 27 16:45:59 Then when I look u pthe path, I do have Android\android-studio\sdk\tools\ but there is no 'proguard' directory under there Jun 27 16:46:09 What has happened? how do I fix this? Jun 27 16:46:39 smallfoot-: Your build.gradle is referring to a proguard config that doesn’t exist. Proguard isn’t mandatory, but you should be able to create a simple config if you like. Jun 27 16:47:15 smallfoot-: The config is needed because proguard has a bad habit of removing classes you may really need. Jun 27 16:47:21 colintheshots, but I would think the build.gradle file would refer to a project-specific config file, but if you look at the path, its not project-specific Jun 27 16:47:33 hello how is everyone here? Jun 27 16:47:38 no Jun 27 16:47:51 Question after i started a project , is it possible to change the com.package.name ? at a later date, or is this something i should have done right away Jun 27 16:48:24 Psil0Cybin, if you haven't uploaded it to the store yet, yes Jun 27 16:48:39 after uploading it becomes a major inconvenience Jun 27 16:48:40 smallfoot-: What does it say in your build.gradle about proguard? It may be misconfigured. Jun 27 16:48:41 perfect thank you so much, yea i have not...this was a helloworld project but i ended up doing something i want to relase. Jun 27 16:48:42 loll Jun 27 16:48:48 so i was worried i should start over, and copy and paste all my work Jun 27 16:49:24 Psil0Cybin, if you're using IDEA or AS, you can just refactor/rename the package and it should change all the needed stuff from manifests and such Jun 27 16:49:28 no idea if that works in elcipse Jun 27 16:49:39 but you can always do it manually too Jun 27 16:49:52 Zharf: Rebuild failed to fix it. Jun 27 16:49:55 im using android studio, yes i was thinking of doing it manually but i thouhgt it might damage something i was not aware of, that might have been configured automatically. Jun 27 16:50:30 Psil0Cybin, just right click on the package name and select rename, it should work Jun 27 16:50:58 Psil0Cybin, but you of course have the stuff in a git repo, right? ;) Jun 27 16:52:09 colintheshots, it says proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' Jun 27 16:52:12 Zharf, ha ha ha, i like privacy so what i do is zip up my archive :S i should have it on a git repo i have heard this over and over. Jun 27 16:52:22 is this the best practise? I am going to recreate a git on my raspberry pi Jun 27 16:52:27 colintheshots, I do have a 'proguard-rules.pro' files in the project Jun 27 16:52:28 so i can keep it localized. Jun 27 16:52:29 Psil0Cybin, what does having a git repo have to do with privacy? Jun 27 16:52:34 I thought it was open source Jun 27 16:52:36 unless you pay? Jun 27 16:52:44 Psil0Cybin, -.-' Jun 27 16:52:46 ha Jun 27 16:52:47 sorry Jun 27 16:52:49 * Psil0Cybin hits head Jun 27 16:52:50 then Jun 27 16:53:03 smallfoot-: I think the getDefaultProguardFile is what’s directing it to a non-project-specific location Jun 27 16:53:05 Psil0Cybin, you can just create a git repo locally and have a commit history and all at your disposal Jun 27 16:53:13 you don't need a server to put it on, if you don't want Jun 27 16:53:16 and github != git Jun 27 16:53:36 Oh yes!! Jun 27 16:53:44 This is what i wanted, okay...thank you so much Zharf dude you really helped me out Jun 27 16:53:46 colintheshots, I see Jun 27 16:54:27 smallfoot-: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard Jun 27 17:01:00 Zharf, last question is there a proper way of laying out strings.xml , or does anyway work? I mean like do you typically keep all the text strings on top, colors then images etc Jun 27 17:01:06 or can you lay it out anyway you prefer Jun 27 17:09:03 I just updated to Android Studio 0.8.0 and is the SDK manager appears to be gone? Jun 27 17:09:37 Wow I just read that, I can English so good :P Jun 27 17:09:44 I just got the update notification that 0.8.0 is out, but then there is no "upgrade" button, only a "download" button which takes me to the website for 0.6.2 release Jun 27 17:09:55 cr5315: nothing changed Jun 27 17:09:58 How do upgrade to 0.8.0? Jun 27 17:10:05 smallfoot-: I installed from zero Jun 27 17:10:10 Foxandxss, then where's the SDK manager? Jun 27 17:10:11 I see Jun 27 17:10:29 cr5315: the app comes with one Jun 27 17:10:33 you can open it from the toolbar Jun 27 17:10:35 Where? Jun 27 17:10:49 on mac, inside the .app file Jun 27 17:11:02 .app file? Jun 27 17:11:31 yes Jun 27 17:11:43 what SO are you using? Jun 27 17:12:06 Do you mean OS? Jun 27 17:12:12 indeed Jun 27 17:12:16 Windows Jun 27 17:12:22 ah, check on program files them Jun 27 17:12:25 insiode the android studio folder Jun 27 17:12:38 That's where it used to be Jun 27 17:12:44 But it's not there after updating Jun 27 17:13:02 and the android studio button to open the sdk, gives error? Jun 27 17:13:10 It's greyed out Jun 27 17:13:15 weird Jun 27 17:13:30 I'm going to wait for it to finish indexing and then I'm going to restart it Jun 27 17:14:06 you can always install the SDK and point AS to it Jun 27 17:14:28 That's true Jun 27 17:15:15 Oh, now the button works Jun 27 17:15:23 0.8.1 out btw Jun 27 17:15:46 Yeah, but the download in the updater takes me to the page that hasn't updated for 0.8.X yet Jun 27 17:15:54 http://tools.android.com/download/studio/canary -- it say 0.6.1 is latest Jun 27 17:16:08 cr5315, yeah, I got same thing Jun 27 17:16:11 http://tools.android.com/recent Jun 27 17:16:13 smallfoot-, this is where you get 0.8.0 http://developer.android.com/sdk/installing/studio.html#download Jun 27 17:16:19 here the beta release got add Jun 27 17:16:21 thanks Jun 27 17:16:37 we just have to wait Jun 27 17:16:50 For various technical reasons we will not offer a patch upgrade from 0.6.1 to 0.8 Jun 27 17:17:06 Alright, the SDK manager is somewhere, because I just managed to open it Jun 27 17:18:50 "NOTE: For various technical reasons we will not offer a patch upgrade from 0.6.1 to 0.8, so you'll need to download and install the full IDE instead." Jun 27 17:19:16 smallfoot-: just said that :P Jun 27 17:19:46 KitKat much prettier than new ugly L Jun 27 17:20:11 you can always stay on kitkat Jun 27 17:21:38 I'm having trouble getting my menu>main.xml to display something correctly. my main.xml is: http://hastebin.com/livatiliha.xml and it should be displaying only a plus symbol which is @drawable/ic_action_create_note but instead I keep getting the options menu that toggles down and just shows the text "Create" as is what @string/action_create is Jun 27 17:22:18 "Gradle Sync Caching. We now cache the synced Gradle model across IDE invocations, so if you exit the IDE and restart, the IDE should be ready to use much more quickly." yay!! Jun 27 17:33:11 wow 0.8.1 update already Jun 27 17:34:07 haha yes :D Jun 27 17:35:50 so i'm learning java right now... even a program that does something very simple sometimes requires you to have 2-3 classes.. and they call on each other (different methods, objects) how do you guys even keep track of all these classes, objects, methods, instance variables lol i'd imagine something as complex as an android apps must have hundreds of classes Jun 27 17:38:14 Is there a way to prevent the build.xml file from being overwriten when running android update project? Jun 27 17:38:26 I’ve tried changing the version-tag: custom, but it keeps overwriting it. Jun 27 17:38:40 Noticed this was a bug 2 years ago: http://stackoverflow.com/questions/6340493/android-ant-build-how-to-run-android-upload-and-not-update-build-xml-proguard Jun 27 17:40:23 Hello all Jun 27 17:41:11 wow, its quiet in here, lol Jun 27 17:41:41 therue well, being very organized goes a long way. i'm not very bright so I have to keep things simple too Jun 27 17:43:18 therue to this end i recommend "Code Complete" and "Clean Code" Jun 27 17:43:20 g00s: does it get updated for you? Jun 27 17:43:24 hey all, I have a c# app that I wrote for windows now I want to go mobile with it, I got a couple suggestion on cross platform compilers for c# but they seemed to be problematic, whats my best bet? Jun 27 17:43:46 Write it in Java Jun 27 17:43:51 Native apps are the best apps Jun 27 17:43:54 it sends me to another web page, with no update whatsoever Jun 27 17:43:58 Foxandxss yeah to 0.8.1 Jun 27 17:44:10 oh, just hit 'check updates again' its weird Jun 27 17:44:17 you'll see a dialog Jun 27 17:44:24 ok, netbeans or Eclipse then? Jun 27 17:44:30 intellij / as Jun 27 17:44:41 TankCR, Android Studio Jun 27 17:44:42 oops sorry, didn't see your c# Jun 27 17:44:49 ya... i'll make sure to read those books once i'm more proficient at java. thanks for the recommendations g00s :) Jun 27 17:45:17 Android Studio, does that have a graphical editor for Forms? Jun 27 17:45:54 https://developer.android.com/sdk/installing/studio.html Jun 27 17:46:12 by the way, i'm loving IntelliJ :) back in the days, i had to do everything with notepad++ and compiling by running dos commands... now everything is perfect and neat in intelliJ... and so pretty too (the dracula theme) Jun 27 17:46:13 :) Jun 27 17:46:53 g00s: oh, was my canary channel Jun 27 17:47:27 TankCR: yes Jun 27 17:47:41 graphical editor is handy for development to see what are you coding Jun 27 17:47:51 but I wouldn't use it via drag & drop Jun 27 17:48:55 I need to convert the winforms lists and tables to android Jun 27 17:49:30 you're gonna need to do it entirely from zero Jun 27 17:49:45 keep that in mind Jun 27 17:49:49 wonderfull... Jun 27 17:50:06 what did you expect? Jun 27 17:50:13 copy & paste? that is not gonna work Jun 27 17:50:14 ok let me ask this then I need an htmlparser for android then Jun 27 17:50:38 I bet there are ways of doing that Jun 27 17:51:49 I am using one called HtmlAgilityPack but they don't have a java version Jun 27 17:53:06 hmm jsoup looks interesting Jun 27 17:53:13 parsing that kind of stuff is a pita heh Jun 27 17:53:48 I had it working great on windows, lol Jun 27 17:53:54 So I have a ViewPager, and one of the Fragments in it goes away and doesn't come back when I swipe 2+ pages away Jun 27 17:53:58 https://dl.dropboxusercontent.com/u/3270519/Videos/bter.mp4 Jun 27 17:54:07 How would I fix that? Jun 27 17:54:34 Would my best bet be to change my app into pure java first, then create the mobile version so that I am only working with Java? Jun 27 17:57:14 hello Jun 27 17:57:27 Hey so I have something that is using a Sony Xperia S devices and trying to pick images Jun 27 17:57:57 But after they pic an image on that device it reloads there last activity...negating the image pick Jun 27 17:58:27 Is there a AndroidManifest setting to tell Android not to trash the last Activity? I forget what it was Jun 27 17:58:44 Hi could anyone tell me the diffrent android support library v7(Android L)? Cause I can't find the RippleDrawable class Jun 27 17:59:38 any verizon galaxy note 3 users here? Jun 27 18:02:05 What is the android activity lifecycle setting to keep an activity alive while I invoke the image picking Intent Jun 27 18:03:50 alex165_: this is a dev channel Jun 27 18:04:29 hey guys trying to use my s2 for a testing device for my app on andriod studio, but i get a ???????[NULL] fpr device name and all fields when i try to run the device Jun 27 18:04:42 but it works on my S3? does this mean that the android studio is not supported with samsung s2 Jun 27 18:04:47 or could it be because it is a rooted device? Jun 27 18:05:13 Psil0Cybin: neither Jun 27 18:05:16 that is just weird Jun 27 18:05:20 okay Jun 27 18:05:20 drivers maybe? Jun 27 18:05:25 let me try restarting the deviice .. hmm Jun 27 18:05:29 just odd that it works with my s3 :P Jun 27 18:05:34 thought maybe it was an outdated device ha Jun 27 18:05:54 my GNex works like a charm Jun 27 18:06:17 cr5315: if your still around in an hour.. i can take a look at your code and fix it Jun 27 18:06:24 right, home times Jun 27 18:07:08 After upgrading to Android Studio 0.8.0 I can no longer build my APK file. It says "Error:(4) Error: "app_name" is not translated in "Error: app_name is not in sv (Swedish) [MissingTranslation]" Jun 27 18:07:12 Is this a problem? Jun 27 18:07:26 I would assume it doesn't need to be translated, that it uses the English translation whenever a translation is missing Jun 27 18:07:42 Foxandxss, it says no Valid SDK Jun 27 18:07:50 on my phone in the run menu Jun 27 18:07:54 when it asks for a device or virtual? Jun 27 18:08:00 wierd no Jun 27 18:08:23 is your android version between your app min-target versions? Jun 27 18:08:37 ha good question Jun 27 18:08:42 let me double check one second Jun 27 18:08:47 i want someone to port multirom from the nexus devices to the verizon galaxy note 3, can anyone help? Jun 27 18:08:54 Wonder when Google gonna release ARMv8 images Jun 27 18:09:16 Foxandxss,i wrote in my gradle Jun 27 18:09:16 compile "com.android.support:support-v4:19.1+" Jun 27 18:09:16 compile 'com.android.support:appcompat-v7:19.1.0' Jun 27 18:09:22 no Jun 27 18:09:24 i forget what version is on my s2. Jun 27 18:09:26 minSdk version Jun 27 18:09:36 Psil0Cybin, I put only localization strings into strings.xml ... colours into colors.xml... but I think the xml names can be arbitrary really Jun 27 18:09:38 Oh! i have no idea, how can i find out Jun 27 18:09:53 thanks Zharf just want to know how to keep it clean coding :D Jun 27 18:09:55 thank you! Jun 27 18:11:02 I also tend to prefix the resource names based on where they're used Jun 27 18:11:33 so that it's easier for someone else to figure it out Jun 27 18:12:06 strings_activity_settings.xml Jun 27 18:12:59 Any idea how to force Sony device Activity lifecycles to be the same as other devices: http://stackoverflow.com/questions/15622428/different-behaviour-activity-lifecycle-on-sony-tablet-s Jun 27 18:13:20 Some Sony devices destroy the old activity instead of pausing it Jun 27 18:13:29 Foxandxss, how can i find out what is the minSdk version of my device and layed out in my program? Jun 27 18:13:31 thus making image picking imposible. Jun 27 18:13:46 just want to make sure, if i cannot build it on my s2 does that mean my application will not work for anyone using the s2? Jun 27 18:14:12 Psil0Cybin: androidmanifest or build.gradle if you use gradle Jun 27 18:14:32 well in my build.gradle i outlined what i had listed :( was that not the proper text i listed? Jun 27 18:14:47 Foxandxss, my compileSdkVersion 19 Jun 27 18:14:53 how do i find out what is the version on my phone? Jun 27 18:14:59 Psil0Cybin: minSdk Jun 27 18:15:01 not compile Jun 27 18:16:04 AndroidL doesn't work in emulator :( Jun 27 18:16:10 just black screen Jun 27 18:16:17 Foxandxss, minSdkVersion 15 Jun 27 18:16:31 what do i do to get it working on the S2, i have no idea what minSDK version that phone uses >:P Jun 27 18:16:44 smallfoot-: after killing my mac mini three times, it did work, did you checked the GPU thingy? Jun 27 18:16:51 Psil0Cybin: what android does it has? Jun 27 18:17:00 one second ill let you know :D Jun 27 18:17:49 Foxandxss, we are dealing with Gingerbread lol firmware version 2.3.3 the model of my phone incase it helps is samsung-SGH-1997R Jun 27 18:18:05 your app doesn't support gingerbread Jun 27 18:18:14 but S2 supports ICS Jun 27 18:18:20 oh snap, okay would it be hard to get it supporting gingsterbread, Jun 27 18:18:25 After upgrading to Android Studio 0.8.0 I can no longer build my APK file. It says "Error:(4) Error: "app_name" is not translated in "Error: app_name is not in sv (Swedish) [MissingTranslation]" Jun 27 18:18:28 Is this a problem? Jun 27 18:18:34 I would assume it doesn't need to be translated, that it uses the English translation whenever a translation is missing Jun 27 18:18:41 Foxandxss, or is it a lot of configuration and adding more compile commands changing the minSdkVersion? Jun 27 18:18:44 or is it as simple as that? Jun 27 18:19:21 to support GB is a whole different history Jun 27 18:19:28 ha Jun 27 18:19:35 okay, so i guess i should just avoid that Jun 27 18:19:36 you would need to use support version for everything Jun 27 18:19:45 I would just leave minSdk to 15 Jun 27 18:19:51 in fact that is what I would do for my apps Jun 27 18:19:52 hmmmm, is there a proper guide for supporting gingerbread or your just suggesting it would not leave it. Jun 27 18:19:54 update your S2 Jun 27 18:19:59 okay so 15, is legit at the moment Jun 27 18:20:03 2.x has low market this days Jun 27 18:20:06 okay Jun 27 18:20:08 perfect Jun 27 18:20:08 :D Jun 27 18:20:18 just want to give as many people as options to use my app as possible Jun 27 18:20:20 leave it, if you really need it "tomorrow" then support it Jun 27 18:20:27 thanks Jun 27 18:28:28 Has anyone here every used a sony xperia device and done image picking with it? Jun 27 18:29:22 Foxandxss, it seems that the app does not work on any low end phones i have to use for testing, would u really assume most of the market has advanced phpones or will my application be unable to run on 75% of the market phone Jun 27 18:29:44 Foxandxss, this one is android version 4.0.4 Jun 27 18:29:51 but it also says ?????????? [ Null ] ?????? no valid sdk Jun 27 18:29:53 version or what ever Jun 27 18:30:26 4.04 is API 15 IIRC Jun 27 18:31:47 so it should work? maybe its android studio Jun 27 18:31:49 acting up?? Jun 27 18:32:01 all i know is i got it working on my s3 previously :( so i am assuming its these silly devices Jun 27 18:32:55 it is weird, should work Jun 27 18:33:08 but that is another different phone? (not the S2) Jun 27 18:33:25 yea Jun 27 18:33:32 its the even worse Huawei :( Jun 27 18:33:34 lol! Jun 27 18:33:38 but it seems to have android 4.0.4 Jun 27 18:33:38 The S3 devices also report the wrong DPI values Jun 27 18:33:47 Psil0Cybin: are you sure? Jun 27 18:34:04 Foxandxss, the about phone, says it does...you think maybe its a stripped version or something half asked? Jun 27 18:34:05 I am just confused Jun 27 18:34:14 maybe its my machine or something Jun 27 18:34:15 no Jun 27 18:34:25 Psil0Cybin: is the huawei using debugging via USB? Jun 27 18:34:29 yes Jun 27 18:34:42 it asked to load it as a storage device Jun 27 18:34:43 tho Jun 27 18:34:53 on my other phones i do not do that as a debugging mode Jun 27 18:34:54 ah, not sure bout that Jun 27 18:36:19 dang Jun 27 18:36:20 hmmmmm Jun 27 18:38:18 Foxandxss, it says this for the Compatable section "No minSDK(API15) > deviceSDK (API1) Jun 27 18:39:41 uh no idea Jun 27 18:42:55 okay maybe i need a restart Jun 27 18:42:56 let me try it out Jun 27 18:48:49 what's the guideline for Action bar icons in Android L? Jun 27 18:49:01 The app icon seems so out of place if there's a Hamburger menu :/ Jun 27 18:50:27 hello, has anyone used ormlite Jun 27 18:50:28 ? Jun 27 18:55:34 everything is back to normal again :) Jun 27 18:57:24 heh Jun 27 19:00:52 hi, i want to instal ADS but i cannot find a good guide for this Jun 27 19:01:01 I have untar the file and try to execute bin/studio.sh Jun 27 19:01:19 but it say that it's a typo (and painted green) Jun 27 19:01:47 can anyone help me? Jun 27 19:01:55 *im using opensuse Jun 27 19:03:50 mene: yes? Jun 27 19:04:38 I want to install android developing studio at an opensuse but I can;t find my way Jun 27 19:05:06 i have untar the file and place everything in ~/bin/ Jun 27 19:05:13 please, install a decenter operating system Jun 27 19:05:17 *decent Jun 27 19:05:24 opensuse isn't? Jun 27 19:05:54 linux isn't Jun 27 19:06:07 build an hackintosh Jun 27 19:06:22 and android is build on what os? Jun 27 19:06:32 or the irc you are using right now? Jun 27 19:07:32 mene: linux desktop is a big failure. Jun 27 19:09:03 :) Jun 27 19:09:12 you must know allot of stuff Jun 27 19:09:37 When doing a query on a database, using select and selectionargs, do I really have to do "COLUMN_NAME = ?,?,?..." where I have as many ? as I do selection args? Jun 27 19:10:34 "you can generate selection like this "parent_id in (?,?, ... , ?)" or like "parent_id=? OR parent_id=? OR ... OR parent_id=?" where count of ? = selectionArgs.length() ..." ugh that's so fugly Jun 27 19:11:19 lasserix: you can use rawQuery if you want Jun 27 19:11:32 not on content provider :/ Jun 27 19:11:40 mene: market share is very clear Jun 27 19:12:12 lasserix: oh I did not, I have ContentProvider. I use custom DataSource Jun 27 19:12:31 using android's native content providers, can't alter them Jun 27 19:13:40 well if you haven't used them you cannot know Jun 27 19:13:53 I am using them the last two years and... Jun 27 19:14:00 guess... no format yet Jun 27 19:14:09 and everything is running smoothly :) Jun 27 19:14:26 and at my laptop i installed win8 before 1 year Jun 27 19:14:42 and it's so slow now and full of virus Jun 27 19:15:18 if in 2014 you get virus you can't use properly a computer Jun 27 19:15:57 any way of connecting an android phone to an android wear emulator? Jun 27 19:16:06 the newest one with API level 4.4W Jun 27 19:16:59 I don't think is possibile: no way to use bluetooth on the emulator Jun 27 19:17:49 http://developer.android.com/training/wearables/data-layer/index.html says you can use an AVD Jun 27 19:18:55 rymate1234: connect your phone with ADB, issue `adb -s forward tcp:5601 tcp:5601`, then in Wear app select "connect to emulator" Jun 27 19:19:14 the device identifier will be what you get from `adb devices` Jun 27 19:19:32 p_l, i already tried those instructions, I believe they only apply to the old preview version Jun 27 19:19:38 rymate1234: nope Jun 27 19:19:59 tested them today Jun 27 19:20:22 huh Jun 27 19:25:23 Is there any way to check if tablet? Jun 27 19:25:34 is like; if (device.IsTablet) { ... } Jun 27 19:25:39 you can test for screen size etc. Jun 27 19:25:44 oh, how? Jun 27 19:25:47 other than that, tablets are no longer separate class Jun 27 19:26:01 ah Jun 27 19:26:51 smallfoot-: I don't remember any "proper" way, but a quick'n'dirty one would be to create a value resource and create a bunch of different versions of it, differentiated by screen parameters Jun 27 19:27:42 oh Jun 27 19:27:42 hmm, why does my accessibility service stop for no reason Jun 27 19:28:52 p_l, it keeps saying connection closed Jun 27 19:28:54 on my phone Jun 27 19:28:59 rymate1234: weird Jun 27 19:29:15 do you have play service v5? Jun 27 19:29:48 i think so Jun 27 19:29:56 gdrc "if in 2014 you get virus you can't use properly a computer". lol Jun 27 19:30:02 yeah i do Jun 27 19:31:29 p_l, could it be the android wear app that is out of date? Jun 27 19:31:39 rymate1234: possible Jun 27 19:31:42 yeah, even windows is getting pretty secure lol Jun 27 19:32:02 smallfoot-: windows was always plagued more by users than by itself, imo... Jun 27 19:32:06 how do I import a jar into my android project with Android Studio? Jun 27 19:32:32 nm Jun 27 19:32:44 mattblang_: am I wrong? :-) Jun 27 19:33:10 gdrc nope. made me lol thinking about how many viruses I've had to clean off my grandparents' computers Jun 27 19:34:02 p_l, just noticed the version of the app i have doesnt have a specific "connect to emulator" button Jun 27 19:34:11 during i/o they said chromebooks had a very low rate of infection; seems like a good device to give to grandparents Jun 27 19:34:26 mattblang_ ^^ Jun 27 19:34:34 gdrc and yeah, as much as I love Linux for servers, and Unix in general, I would never switch to it for my work machine Jun 27 19:34:54 for a work machine, I'd easily switch to linux Jun 27 19:34:57 for a home machine, just about never Jun 27 19:35:12 g00s you know, I've wondered about that actually. my other set of grandparents have been wanting to buy a computer Jun 27 19:35:14 rymate1234: "gear" icon top right? Jun 27 19:35:16 mattblang_: yeah I do/did the same. But we are technicians. If you get a virus, you'd better change job :) Jun 27 19:35:36 computer management is vastly different from software development Jun 27 19:35:36 nah it's a watch with the word "beta" in Jun 27 19:35:38 thats like having a mullet; linux/short hair by day - long hair/windows for party & work Jun 27 19:35:41 most developers barely know how to use their computer Jun 27 19:35:47 g00s LOL Jun 27 19:35:48 i recommended my mom to get a chromebook, and she did, and never have to help her with the computer or clean it, or fix it, it saved me lots of time Jun 27 19:36:09 chromebooks are machines for the people you don't want to constantly play tech support for... or to be used as secure terminals Jun 27 19:36:20 when everything you do is remote Jun 27 19:36:24 how can I center 3 buttons with a distance and have the distance between increase and decrease with screensize? Jun 27 19:36:34 rorgor, weights Jun 27 19:38:39 pfn: can margins have weights? Jun 27 19:38:44 no Jun 27 19:38:53 what would I put the weight on? Jun 27 19:38:57 a dummy view Jun 27 19:38:58 I want space between the buttons Jun 27 19:39:11 put 16dp space Jun 27 19:39:14 ah, i see. like a TextView or what would be suitable? Jun 27 19:39:30 you can have marginleft, and marginright Jun 27 19:39:39 a View is suitable Jun 27 19:39:42 is there some similar trick for textsize? Jun 27 19:40:04 no Jun 27 19:40:10 do math to scale it up yourself Jun 27 19:40:19 sweet, found my moto x screen protector Jun 27 19:41:08 anyone remember when support library 20.0.0 came about? looking here http://developer.android.com/tools/support-library/index.html#revisions … hasn't been updated Jun 27 19:41:17 having to write documentation for another project after being on android development with Android Studio for awhile now. If I erase my "redo" history with a ctrl + shift + z again I think Im going to bang my head against myd esk Jun 27 19:41:51 did they release both 20.0.0 and 21.0.0-rc1 yesterday? Jun 27 19:42:19 seems so Jun 27 19:42:24 (support library, not API) Jun 27 19:42:26 I think yes Jun 27 19:42:45 yes, but for me it wasn't updating to any version Jun 27 19:42:47 ok, not really interested in using -rc support libraries :) Jun 27 19:42:50 and 21 rc1 was failing Jun 27 19:43:39 netsplit :S Jun 27 19:43:59 not that weird lately Jun 27 19:44:22 bye guys Jun 27 19:44:31 gdrc later Jun 27 19:45:13 rymate1234: anyway, I succeeded with latest Android Wear app, latest partly-broken Google Search and preview Play Services Jun 27 19:45:45 guess i gotta wait for an updated android wear app to roll to me Jun 27 19:46:02 or add yourself into preview group Jun 27 19:46:03 mine still says "android wear preview" Jun 27 19:46:43 I've got 1.0.0.1248571 Jun 27 19:46:54 calls itself "android wear" Jun 27 19:47:09 mine's older Jun 27 19:47:11 ;_; Jun 27 19:48:36 * rymate1234 apk hunts Jun 27 19:50:28 http://developer.android.com/preview/google-play-services-wear.html <--- tried this? including joining their preview group + clicking their specific links to join the beta stream? Jun 27 19:50:40 hey guys trying to build a table from my nodes using jsoup, in c# I designated my node titles using mydoc.DocumentNode.SelectSingleNode("//table[@class='witiable sortable']"); but i can't figure out how to set the xpath with jsoup Jun 27 19:51:30 p_l, oh! Jun 27 19:51:35 I hadn't seen that page! Jun 27 19:52:02 rymate1234: I was fighting since keynote to get it working, finally got it working today :> Jun 27 19:53:00 god damn it Jun 27 19:53:10 bad time for me to be updating android studio Jun 27 19:53:32 I tried Jsoup htmltable = doc.nodeName("//table[@class='witiable sortable']"); Jun 27 19:53:40 but thats not the correct syntax Jun 27 19:54:48 pftn: "do math to scale it up yourself". I thought using screensize to calculate things was a bad idea? Jun 27 19:55:18 welp as soon as android studio 0.8 is installed i can start messing with making wear apps Jun 27 19:55:29 ooo, 0.8.1 Jun 27 19:55:47 I wonder how soon we will get 0.8.2 that they showed at I/O Jun 27 19:55:58 what's different on 0.8.2? Jun 27 19:56:11 rymate1234: collapsing of resource directories, among other things Jun 27 19:56:17 nice Jun 27 19:56:56 that collapsing dirs is very cool; but it would be nice if we could actually have subdirs in our res/folders for real Jun 27 19:57:59 then i wouldn't have to suffix all the things with _light or _dark ;) Jun 27 19:58:13 or of course they could just make night mode not retarded, but thats not going to change Jun 27 20:04:09 VERSION Jun 27 20:05:16 g00s: did you see my thing for night and day mode? Jun 27 20:05:24 Napalm yes ! Jun 27 20:05:42 it was working against the intent of the api though - which makes me nervous Jun 27 20:05:57 it was a nice hack though :) Jun 27 20:06:06 p_l oooo, collapsing of resource directions. that is cool Jun 27 20:06:17 p_l funny that that makes me happy Jun 27 20:10:01 *directories Jun 27 20:13:24 what is most suitable to use as dummyview? does not matter? Jun 27 20:13:44 if it needs to hold something, FrameLayout, if not , View Jun 27 20:13:53 possibly Jun 27 20:14:23 rorgor actually, what do you mean 'dummyview' ? Jun 27 20:16:57 I use it to create a distance between other views by assignning them all a weight Jun 27 20:17:58 yeah if you *really* need something like that, you can just use Jun 27 20:18:27 GridLayout has Spacer, maybe you should be using that Jun 27 20:25:42 Hi all. I'm not developing on android, but I'm interfacing with an android device using the usb accessory method Jun 27 20:26:47 the target is a nexus 7, and I have it roughly working now. Jun 27 20:27:54 I have to flip the Nexus into accessory mode by sending request to the control interface, but I don't understand the magic number used for bRequest comes from. Jun 27 20:28:19 It's 0x34 when I send all of the information of the host Jun 27 20:28:32 and 0x35 when I put the device in accessory mode Jun 27 20:29:07 but these values don't seem to be documented. It's possible that I'm doing something incorrectly, though. :) Jun 27 20:29:50 mattblang_: http://tools.android.com/recent <--- 0.8.1 Jun 27 20:30:40 where did 0.7 go :D Jun 27 20:39:37 rorgor, you don't scale it up to screen size, you scale it up to container size Jun 27 20:44:25 Why the home screen on Android emulator isnt same as my Nexus 5? Jun 27 20:44:57 I mean launcher Jun 27 20:45:29 i'm getting a NoClassDefFoundError for my project, any ideas? Jun 27 20:48:47 smallfoot-: because it has the default launcher, not google now launcher Jun 27 20:49:43 i'm using gradle to build it, and i've cleaned the project and restarted my comp Jun 27 20:50:03 check the stacktrace Jun 27 20:53:10 p_l, but both are Android 4.4.4, why don't both have same launcher? Jun 27 20:53:40 smallfoot-: Google Now launcher is downloadable from market and is part of GApps, which are *NOT* installed on emulator Jun 27 20:55:40 there are two different launcher, the one you have is not in the emulator as p_l said Jun 27 20:57:30 any ideas guys? Jun 27 20:57:39 it's blocking my work completely, because my app won't even start Jun 27 20:59:39 Hi guys. I am a complete newb at building android apps. I was wondering if someone could tell me the best way to add a clickable email address to my about xml page Jun 27 20:59:54 If that is even the correct question to ask. Jun 27 20:59:55 I bought some chinese cheap junk tablet running 4.2 that I want to turn into some sort of battery powered alert device. I'm going to disable the lock screen. But I'm trying to figure out a strategy for a background service listening on the local network for an alert. And when it gets it it will wake up the tablet, turn the screen on, open an activity fullscreen and display the feed from the security camera. Any recommened strategies for thiat? Jun 27 21:00:17 check the stacktrace Jun 27 21:00:25 whomp: that is meant for you Jun 27 21:02:05 hey guys trying to upgrade android-studio, as it suggested but i am getting this command when upgrading "curl: (22) The requested URL returned error: 404" Jun 27 21:02:09 is this because its down at the moment? Jun 27 21:02:19 pfn: rorgor, you don't scale it up to screen size, you scale it up to container size //what are yo referring to? Jun 27 21:02:50 p_l, I see. That explains why it is not on the emulator. However, its not on my Nexus 7 either Jun 27 21:03:08 Is there any way to install GApps in the emulator? Jun 27 21:04:33 smallfoot-: yes, don't remember them Jun 27 21:04:33 smallfoot-: that is only for N5 Jun 27 21:04:45 N5 might have some custom launcher though Jun 27 21:04:56 the new launcher is only n5 Jun 27 21:04:59 oficially Jun 27 21:05:04 what new launcher? Jun 27 21:05:07 you can get it via xda Jun 27 21:05:13 kitkat one Jun 27 21:05:19 with google now at the left Jun 27 21:05:22 Can I set a text size to slighlty less than the maximum of the view it is in? Jun 27 21:05:29 transparent bars... Jun 27 21:05:31 ... I have it on my N4, installed normally from GApps Jun 27 21:05:57 N7, being a tablet, might not display it on the left, though Jun 27 21:06:08 It's called "Google Now Launcher" in the play store ;) Jun 27 21:06:16 oh, but is that oficial? Jun 27 21:06:21 or third party? Jun 27 21:06:49 Foxandxss: no 3rd party stuff here Jun 27 21:07:25 ah, they released it then Jun 27 21:07:25 cool Jun 27 21:07:33 I suspect the difference comes more from different screen size (the "swipe to the left" might be a tad inconvenient on N7 or N10) Jun 27 21:09:26 hey guys out of curosity anyone else getting a 404 error when trying to upgrade android studio? maybe everyone is upgrading at the same time? Jun 27 21:09:46 from what to what Jun 27 21:10:27 Foxandxss, from 0.6.1 to 0.8.1 Jun 27 21:10:36 you cant Jun 27 21:10:42 0.8 needs fresh install Jun 27 21:10:48 ^ Jun 27 21:10:49 Oh actually?! Jun 27 21:10:50 backup your config and install it Jun 27 21:10:57 okay, where is the config? Jun 27 21:11:00 located? Jun 27 21:11:10 ~/.AndroidStudio$channel Jun 27 21:11:17 thanks Jun 27 21:11:20 there is an export option Jun 27 21:11:28 oh, where would it be sorry guys Jun 27 21:11:29 p_l: nah, I forgot to export my config and I lost it Jun 27 21:11:46 Foxandxss, how do i export my config? Jun 27 21:11:50 well, is that linux p_l ? :P Jun 27 21:11:51 for power saving with the gps component, after how many time between update do you think it's better to call requestSingleUpdate() in a loop with a sleep instead of requestLocationUpdates() ? Jun 27 21:11:52 Foxandxss, the stack trace shows that it happens at the first invocation of that class, which is reasonable Jun 27 21:11:52 the stack trace isn't very helpful for this error Jun 27 21:12:04 Psil0Cybin: file menu Jun 27 21:12:06 Foxandxss, I am using Linux, how would I export my config so i can inport it later. Jun 27 21:12:07 okay thanks Jun 27 21:12:09 Foxandxss: yes Jun 27 21:12:15 ah Jun 27 21:12:18 on linux yeah Jun 27 21:12:22 having that hidden folder Jun 27 21:12:33 just download the one one, unzip and youre good to go Jun 27 21:12:45 thanks! Jun 27 21:12:46 on mac it suck, you replace .app and you're screwed Jun 27 21:12:53 Foxandxss, thank you so much Jun 27 21:12:56 i exported it though Jun 27 21:12:58 is that still okay? Jun 27 21:12:59 as a .jar? Jun 27 21:13:04 no idea Jun 27 21:13:09 I know the option, never tried Jun 27 21:13:14 okay Jun 27 21:13:14 I deleted my config ;( Jun 27 21:13:23 Foxandxss, so where is the folder i would copy over for linux? Jun 27 21:13:27 of the configs that you said would be good to go Jun 27 21:14:05 your installation is just a folder right? Jun 27 21:14:09 just download the new one Jun 27 21:14:10 yes Jun 27 21:14:10 untar Jun 27 21:14:11 Foxandxss, Jun 27 21:14:11 open it Jun 27 21:14:19 and it would say if you want to load old configs Jun 27 21:14:25 oh actually?! Jun 27 21:14:28 it will find the old config automatically Jun 27 21:14:33 okay but i want to over load the old files Jun 27 21:14:41 delete the old folder then Jun 27 21:14:41 that folder, so can i delete the old android studio? Jun 27 21:14:46 un untar the new one on the same place Jun 27 21:14:47 okay, but wont it delete the configs? Jun 27 21:14:57 it shouldnt Jun 27 21:15:00 okay Jun 27 21:15:06 You could always export the settins to be on the safe side, on the File menu. Jun 27 21:15:12 yea i did that Jun 27 21:15:13 just incase Jun 27 21:15:14 as a back up :D Jun 27 21:15:16 alright thanks Jun 27 21:15:28 pff, you don't want the adventure Jun 27 21:16:01 adventures are fun Jun 27 21:16:09 Every day is an adventure with Gradle. ;) Jun 27 21:16:23 Foxandxss, so your saying the settings are not located in the android-studio? Jun 27 21:16:23 folder Jun 27 21:16:37 no Jun 27 21:16:41 on a hidden folder as p_l said Jun 27 21:16:46 ah missed that! Jun 27 21:16:47 thanks Jun 27 21:17:35 it will be ~/.AndroidStudio Jun 27 21:17:51 yea i exported settings there anyway as well, just incase Jun 27 21:17:58 really dont want to lose my settings :P hehe Jun 27 21:18:09 it's nice that I don't have to change JVM to run Android Studio et al Jun 27 21:18:33 java management on OSX is not that good Jun 27 21:18:36 ... meanwhile, I think the beta channel Google Now is borked for me :( Jun 27 21:19:04 looks like I'm getting notifications on wear, but not on phone -_- Jun 27 21:22:54 hey guys i'm trying to builld this http://picpaste.com/pics/IW5xRgNI.1403903901.png i want to divide the main layout into two with the right one displaying a different activity based on selected button on left Jun 27 21:23:18 i'm coming from Xcode and just started android this week Jun 27 21:24:48 kofu, amazing I am also starting android this week, but coming from web based development Jun 27 21:24:49 how do i dived the screen in two with the left side controlling what display on right Jun 27 21:24:50 go team go Jun 27 21:25:01 kofu, this is for tablet? Jun 27 21:25:07 yes Jun 27 21:25:19 kofu You will want to look into fragments and a master/detail setup. Things might seem very strange for you coming from iOS. I'd recommend going through a lot of tutorials to get into the right mindset first. Jun 27 21:25:25 what you want to do is have one activity and use two fragments Jun 27 21:25:47 fragments are sort of like view containers inside activities which can have multiple containers Jun 27 21:25:51 I went through the Big Nerd Ranch book and found it very helpful. Sometimes building tutorial applications seems tedious, but for me it really helps me understand Jun 27 21:26:08 i've been watching lot of tutorial all week and read about fragment and the master detail flow Jun 27 21:26:10 A little investment in that to begin with will save you a LOT of time. Jun 27 21:26:24 Ok, you areon the right path then. Jun 27 21:26:33 ClarkC: I love tutorial apps Jun 27 21:26:36 and that book was good Jun 27 21:26:54 At first I found Android to be crazy and it seemed like everything was too complicated to work with. But now I understand why and actually appreciate a lot of it. Jun 27 21:26:58 kofu, I recommend you at least go through this tutorial if you have time Jun 27 21:26:59 https://www.coursera.org/course/android Jun 27 21:27:08 but so far in the master detail flow i can't figure out how to get rid of the list on left to place just button instead Jun 27 21:27:23 change the layout that that fragment is populated with Jun 27 21:27:24 :) Jun 27 21:27:38 I'm still a beginner here though, I'm not able to offer you advice on that specific problem, sorry. :( Jun 27 21:27:41 Afzal: did you take it? Jun 27 21:27:44 welp, looks like I messed up my L install :( damn Jun 27 21:28:05 i went though lynda android app dev with java essential training and it thought me a lot in a few days Jun 27 21:28:14 Foxandxss, yeah but I already knew most of the stuff. Just went through the videos Jun 27 21:28:24 I see Jun 27 21:28:27 you can do it free, right? Jun 27 21:29:05 Has anyone here built stunnel for android? Jun 27 21:29:17 should also do this course https://www.udacity.com/course/viewer#!/c-ud853/l-1395568821/m-1643858568 Jun 27 21:29:22 and yeah Foxandxss, it's free Jun 27 21:30:23 Afzal: where can I see the info of that one? Jun 27 21:30:31 of which one? Jun 27 21:30:39 last one Jun 27 21:30:45 it gets directly to the video themselves Jun 27 21:31:02 yeah, watch the videos. This one's by Googlers. Jun 27 21:31:13 go into Material as well Jun 27 21:31:26 Foxandxss, i know this is going back in time, but now that I upgraded I get this message "OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK." Jun 27 21:31:39 should I change it? Jun 27 21:31:42 as recommended? Jun 27 21:31:43 ignore it if it works good Jun 27 21:31:47 Foxandxss, thanks Jun 27 21:32:36 so only one activity divided into two fragment, i'll have 3 different class that'll be displayed on the right fragment based on the button elected each class with have their own xml for the look, won't each xml considered a new activity? Jun 27 21:32:48 Foxandxss, it seemed to work fine, and slash still is, i was just worried maybe it would be better..but i remember i had difficulties getting java working with this, on linux...it was a bit confusing but i was glad i got it working so i didnt really want to change anything Jun 27 21:33:29 o.O my N5 isn't turning on Jun 27 21:33:34 well fuck Jun 27 21:33:41 battery dead? Jun 27 21:33:53 Shouldn't be, it was charging all morning Jun 27 21:34:11 should not have tried experimental root :/ Jun 27 21:34:20 oh dear... Jun 27 21:34:34 ... I was going to suggest possible paths, but if you fscked up flashing... Jun 27 21:34:41 try booting it into bootloader Jun 27 21:36:49 kofu: definitely you need to read more, I now it is hard to wrap your head around Jun 27 21:37:12 whee, turned on Jun 27 21:38:19 okay so apparently if you hold vol up, vol down and power while it's booting, bad things happen ... my bad :/ Jun 27 21:39:19 (not bootloader) Jun 27 21:43:04 Foxandxss, last question of the hour LOL, I now have two hidden folders .AndroidsomeethingBeta, and .Androidsomethingpreview, which one is the newely used folder, so i can delete the unneeded one Jun 27 21:43:16 or will deleting that folder perhaps delete the configs I am using Jun 27 21:43:21 or did importing them, copy them over? Jun 27 21:44:06 beta is thew new one Jun 27 21:44:23 is there a way to incrementally update android studio instead? Jun 27 21:44:52 i always get the option to download and redo the whole thing Jun 27 21:45:12 yes except from preview to beta Jun 27 21:45:32 okay, so from preview to beta.. perfect :D Jun 27 21:45:47 Error:Failed to find: com.google.android.gms:play-services-wearable:+ Jun 27 21:46:00 how do i fix this error Jun 27 21:46:06 running android studio 0.8.1 Jun 27 21:46:25 that was broken yesterday Jun 27 21:46:28 not sure about today Jun 27 21:47:21 you install latest from google play services repo Jun 27 21:47:41 from sdk ? Jun 27 21:47:48 ah yes Jun 27 21:47:55 and yeah, the play services repo doesn't seem to have that yet Jun 27 21:47:56 http://developer.android.com/preview/google-play-services-wear.html Jun 27 21:48:38 ah, that is what I though pfn Jun 27 21:48:46 I guess there's that ^^ Jun 27 21:52:00 blast taking a really long time to download gradle or what ever i neeed to do now Jun 27 21:52:28 might have to go out for a ciggie, to not lose my mind :P Jun 27 22:01:23 ugh darn i forgot what i did before Jun 27 22:01:24 emulator: ERROR: This AVD's configuration is missing a kernel file!! Jun 27 22:03:10 Starting emulator for AVD 'emulator' Jun 27 22:03:10 emulator: ERROR: no search paths found in this AVD's configuration. Jun 27 22:03:10 Weird, the AVD's config.ini file is malformed. Try re-creating it. Jun 27 22:05:50 No CPU/ABI system image avaliable for this target...what dio i do? Jun 27 22:14:56 install the image for the avd.. Jun 27 22:21:11 pfn, yea did not notice it was gone, and not installed anymore Jun 27 22:26:26 Which emulator do you use, the android emulator is just so bad, how can they not have made it better? Am I doign somewthing wrong if it takes 20-30 minutes for it to start? that is just plain ridiculous and you get no update on what it is doing. and it is ridiculously slow to use. Jun 27 22:26:42 rorgor, x86 emulator + haxm Jun 27 22:28:22 If unable to use an actual device (which does has some advantages) I've been very happy so far with genymotion [g00s pointed me to this.] Jun 27 22:30:52 I stopped using an emulator (and deployed on my nexus 4) for the same reason as you - it was basically unusable in practice because of the slowness. But with genymotion, back to occasional non-device-based debugging, etc. Jun 27 22:31:40 while upgrading the AVD or downloading the package is it normal for it to say Rendering problems in the example panel that was displaying an example of my project a few minutes ago? Jun 27 22:31:45 that would make somewhat sense correct? Jun 27 22:37:19 Thing is you never what the damn thing is doing when it is loading, did it get stuck or is it still starting and it doesnt seem very consistent, sometimes it starts and sometimes it doesnt for no good reason Jun 27 22:40:42 x86 emulator works fine Jun 27 22:40:44 use that Jun 27 22:40:46 quit complaining Jun 27 22:40:48 or use a device Jun 27 22:41:34 I second pfn, x86 after installing HAXM works really smoothly, not genymotion smooth but smooth enough Jun 27 22:41:55 I don't use genymotion because it's based off of virtualbox, and because of that is incompatible with my configuration Jun 27 22:42:08 what's your configuration? Jun 27 22:42:09 * pfn runs virtualbox as an admin; geny would run as user, virtualbox doesn't handle multi-user config on windows Jun 27 22:42:21 ohh Jun 27 22:42:39 yeah, I stopped developing in Windows after mid 2012 :) Jun 27 22:43:04 I have no desire to use linux for my own workstation Jun 27 22:43:10 or mac Jun 27 22:44:38 whats the recommended way of catching application crashes thread.uncaughtexception and echoign that out or using logcat? Jun 27 22:48:35 when setting up deeplinking into an app, can one have the an intent filter handle a shortened url, then have the intent handler make a request to get the full url? Jun 27 22:49:23 or does this need to be done via a redirect in the browser to get the proper url for the intent filter? Jun 27 22:53:12 hm, i'm thinking about putting non-navigation stuff in the right drawer, wonder if the UX police will be mad Jun 27 22:53:20 oops, left drawer Jun 27 22:55:03 i'm getting an error when i try to run my app: noclassdeffounderror. does anyone have any clue as to why that might be? it's really been stumping me for the past 4 hours Jun 27 23:01:22 If I have a list of 50 items but only 5 are interesting, do I make a DialogFragment with 5 items and a entry called "More" that switches out the list for the entire big 50 list? Jun 27 23:03:10 s it possible to use android development kit with eclipse luna ? Jun 27 23:05:22 sign of insanity or SRMD? I started looking at implementing Dapper/Zipkin in Android. So you can have traces start from mobile device and end up deep in the backend :D Jun 27 23:07:05 smallfoot-: yes Jun 27 23:07:45 Anyone know any good tutorials/guides on making a specific app? such as "how to make a note app" or anything else Jun 27 23:07:46 https://www.youtube.com/watch?v=QKiPdCHjCqs Jun 27 23:07:47 weee Jun 27 23:11:19 g00s, use a sliding fragment? Jun 27 23:13:42 pfn: that is cool :) Jun 27 23:14:30 I hate form filling on the browsers but in android is cool Jun 27 23:15:51 how can you hate it in the browser Jun 27 23:18:15 because the browser doesn't emit any event when it fill the forms so that is giving major headaches and hacks to make it work on mvc frameworks Jun 27 23:18:29 I hate it from a developer perspective Jun 27 23:19:36 there's always a value changed event Jun 27 23:19:59 in the dom Jun 27 23:20:08 most people listen for keypress and bullshit like that Jun 27 23:20:39 no, that is the problem Jun 27 23:20:45 it fill the form, says nothing about it Jun 27 23:20:50 so the databinding will never trigger Jun 27 23:21:29 http://code.google.com/p/chromium/issues/detail?id=352527 Jun 27 23:21:33 we opened a bug a while ago Jun 27 23:22:35 aah, autofill. [but have to say, dealing with text input/keyboard in android has never been a source of joy for me :-)] Jun 27 23:23:02 kbs: that is why I don't use stuff like whatsapp Jun 27 23:23:11 writing on the phone is no joy at all Jun 27 23:24:03 gotcha. (though I was also thinking of the developer side of handling text input in android - it's got its fair share of warts :) Jun 27 23:30:47 Hi all. I'm having some trouble with Time. I need to be able to subtract an x amount of days from Time.setToNow. So, I have to subtract the days from Montday, Weekday and Yearday.. But, How would I handle Week and Month? As in, what if it's monday juli first, and I subtract 3 days. I have to adjust the month and weekday accordingly Jun 27 23:30:56 Is there a simple way of doing this? Jun 27 23:39:22 just initializing from (System.currentTimeMillis() - 3*86400*1000) not adequate? :-) Jun 27 23:40:32 * kbs personally finds working directly with epoch time the least complicated way to handle time intervals Jun 27 23:42:09 kbs: so basicly I'm trying to do it too fancy? Jun 27 23:43:19 ThomQ: well, just wondering if there's a simpler way that's adequate for what you'd like do (which I read as create a Date/Time that's exactly 3 days back from "now") Jun 27 23:44:40 if you have something a more involved (like go back to 3 days back at local midnight time or something) then perhaps your initial approach might be a better way to do it. dunno :) Jun 27 23:44:41 well, to be precise: I got intervals of hours, minutes and dayoftheweeks. So for example; start = day 1 14:00, end = day 2 03:00. I need to identify in what interval CurrentTime falls Jun 27 23:45:21 So I was thinking. Get current Time, which also gives you the current day of the week, and subtract / add days accordingly Jun 27 23:46:13 I might consider just converting start and end into epoch milliseconds Jun 27 23:46:33 (ie, Time.getTime() -- assuming you're working with java.sql.Time) Jun 27 23:46:35 must correct for leap years Jun 27 23:46:58 hehe lasserix Jun 27 23:47:03 not when working epoch msec, I assume? Jun 27 23:47:23 well, ideally we would like to avoid usage of month, year, yearDay and monthday all together ofcourse Jun 27 23:47:39 so, the epoch would be day 0 at 00:00 then, correct? Jun 27 23:47:40 ahh kbs you are right not counting leap seconds. Jun 27 23:49:28 ThomQ: not quite - epoch msec is basically the number of milliseconds elapsed since Jan 1, 1970. It's just a number that avoids all problems related to local time, calendars etc - so it's ideal for doing date arithmetic. Jun 27 23:50:32 so once you've "normalized" all your time to that number, it's easy enough to work with it. I assumed you meant you already had a start/end time represented as java.sql.Time - which has a handy built-in to get the epoch msec - Time.getTime() Jun 27 23:51:37 yeah no, that's where the problem lies, getting it to a java.sql.Time. Jun 27 23:52:06 But I'm trying a different, less elegant but simpler aproach now. Something that negates any ref to months, weeks, years, etc. Jun 27 23:54:52 :-) my 0.02 - dates can be pretty painful to deal with at various boundary cases [not counting handling local time] so if possible I might try creating a suitable (say) java.util.Date object from whatever data you have, and use its .after() or .before() methods Jun 27 23:59:29 I find it funny how Android Studio include Joda time in preloaded list of libraries :P Jun 28 00:01:19 heh, wasn't aware of the joda time libary. cool. Jun 28 00:01:31 it's very nice library Jun 28 00:01:47 because Java.util.Date is insane :P Jun 28 00:03:04 no argument there (about dates and calendars in general, come to think of it :) Jun 28 00:04:16 normally built-in date stuff isn't enough, or that is my feeling Jun 28 00:09:25 yeah, looks like my 'simple' solution isnt working well either.. Jun 28 00:11:08 main problem with converting it to Any time format is going from weekday 6 to 0 Jun 28 00:11:22 how would I handle that? Jun 28 00:15:16 like, if i do convert it to epoch milliseconds, i'd have to do it in reference to timeNow. Logically day 0 would be before a time on day 5. But it's also after day 6 again Jun 28 00:15:38 so, I'd have to add a 8th day, as a reference or something? Jun 28 00:19:54 ThomQ: just use Joda Time Jun 28 00:20:49 seriously, that's what I ended up doing, I had to do some time arithmetic that had to be then loaded into date entries in web form (automated testing) and thus I needed proper handling of "two days from X" Jun 28 00:21:39 if you start messing with your own code you'll end up like the database backend that was involved in that one project which considered all months to have 30 days Jun 28 00:21:59 heheh Jun 28 00:23:03 I'm a n00b though, and it's really a small feature i'm trying to build. Importing libraries is a daunting step :P Jun 28 00:25:05 ThomQ: If you're using Android Studio, Joda Time can be added from menu :) Jun 28 00:25:31 it's more like, i'm trying to wrap my head around it. But i think i got it now. I'll think this will work: I got 5 intervals; start time/weekday and end time/weekday, and I got current time. To check in which interval I am I'd have to build 6 intervals, one extra for an eventual day 6 to 7, to solve the day 6 to 0 debacle Jun 28 00:25:41 I'm using IntelliJ :) Jun 28 00:26:18 no, I'd need 8 intervals, 1 extra for day 6 to 0, and 1 for day 6-0 Next week Jun 28 00:26:28 right?.. Jun 28 00:26:37 I'm going crazy, been at it for 2,5 hours now :D Jun 28 00:27:29 ThomQ: I think you'll go less crazy, and be better for, if you went and learned how to add a library and used Joda Time :> Jun 28 00:28:56 hehehe Jun 28 00:28:58 it is a really funny name Jun 28 00:29:24 in spanish "Joda" is a conjugation of fuck Jun 28 00:29:52 in mexican is used for the sex meaning of fuck heh Jun 28 00:35:01 Hello Jun 28 00:44:59 ThomQ: with gradle, adding joda-time is one line :) Jun 28 00:45:32 g00s: heh, figured out a project that manages to span *all* android platforms currently released Jun 28 00:45:35 \o/ Jun 28 01:25:46 hey guys what is the default android skin for the emulator? Jun 28 01:28:57 what is android 4.4W? Jun 28 01:29:04 I think i am missing the image I want for the default nexus 4? Jun 28 01:31:09 I have ARM EABI v7 Installed Jun 28 01:31:16 but cannot it says missing image for Nexus 4 Jun 28 01:38:00 i keep getting no CPU/ABI system avaliable but i downloaded what i needed for android 4.4.2 Jun 28 01:47:06 Finally Jun 28 01:47:09 Djeeeez Jun 28 01:47:14 got it working :D Jun 28 01:47:37 my slowness Has to do with the fact i haven't coded in 2 weeks, and that its 03:47 here.. Jun 28 01:51:30 hello Jun 28 01:53:00 this Developer Preview uses less battery Jun 28 01:57:56 what about the new android studio beta? Jun 28 01:58:49 it seems to be getting a good reception Jun 28 02:15:34 trying android studio beta 0.8.1 Jun 28 02:25:42 <[R]> is there a way to make repo output what it think its final manifest is including local manifests? Jun 28 02:25:54 i would like to have some examples Jun 28 02:26:02 app examples Jun 28 02:26:10 for android studio Jun 28 02:28:31 I thought there were some from google I/O Jun 28 02:29:22 Carbonflux: i mean on android studio Jun 28 02:29:47 Carbonflux: a new section examples Jun 28 02:29:55 ya, I thought they released samples from the conf that would only work with the current version of AS Jun 28 02:30:03 ah right Jun 28 02:30:24 i am 14 can i put ads on my app Jun 28 02:30:34 sure Jun 28 02:30:45 if you have a valid wallet :) Jun 28 02:30:48 i heard you had to be 18 Jun 28 02:31:04 hm Jun 28 02:31:05 <[R]> basketballl: depends on the ad provider Jun 28 02:31:06 probably depends on the company you are dealing with Jun 28 02:31:41 i made a app with mit app inventor Jun 28 02:31:48 maybe if you hide behind your parents card. Jun 28 02:32:02 they won't know Jun 28 02:32:49 Carbonflux, then they will ban my account if they find out Jun 28 02:32:53 true Jun 28 02:33:04 what kind of app did you write? Jun 28 02:44:49 Carbonflux, it is like a magic 8 ball where you import your own picture and select wheter you want to shake device or tap device for answer Jun 28 02:59:28 Nice :) **** ENDING LOGGING AT Sat Jun 28 02:59:58 2014