**** BEGIN LOGGING AT Wed Jun 18 02:59:59 2014 Jun 18 03:06:37 How can I change my app color theme Jun 18 03:11:28 heh Jun 18 03:23:13 Can a Android App be developed completely in Python? Or do i need to depend on Java also. Jun 18 03:29:29 HOW CAN I CHANGE THE COLOR OF A TEXTEDIT FIELD (The underline) Jun 18 03:29:31 http://stackoverflow.com/questions/21480398/edittext-underline-below-text-property Jun 18 03:29:33 I tried this Jun 18 03:29:35 it didnt work Jun 18 03:30:02 I get error in the .xml file saying error: Error: No resource found that matches the given name (at 'background' with value '@drawable/ abcr'). Jun 18 03:38:43 ajoul: did you create that drawable? Jun 18 03:39:02 Leeds: well it says drawable but it is xml Jun 18 03:39:09 ajoul: did you create that drawable? Jun 18 03:39:10 I mean there is no pictured name as such Jun 18 03:39:15 wtf is drawable Jun 18 03:39:22 he uses the xml as drawable Jun 18 03:39:31 thats my problem Jun 18 03:39:32 it's a thing you learn about when you RTFM Jun 18 03:39:59 What is the fucking drawable you want me to create a picture or the xml Jun 18 03:40:08 do you know what a drawable is? Jun 18 03:40:29 http://developer.android.com/reference/android/graphics/drawable/Drawable.html Jun 18 03:40:43 http://developer.android.com/guide/topics/resources/drawable-resource.html Jun 18 03:42:09 there is a file named abc.xml Jun 18 03:42:14 still it says it can't find it Jun 18 03:43:34 where is that file? Jun 18 03:45:08 Leeds: I guess I am stupid, I realized it should have been in the drawable folder just now Jun 18 03:45:12 thanks a lot Leeds Jun 18 04:00:38 06-18 00:00:17.227: I/Choreographer(2699): Skipped 153 frames! The application may be doing too much work on its main thread. Jun 18 04:00:41 what is this caused by Jun 18 04:00:58 the application doing too much work on its main thread, I imagine Jun 18 04:00:59 my breakpoints aren't triggering, what could this be caused by? Jun 18 04:01:12 ajoul: have you read about threading in the Android framework? Jun 18 04:01:40 I know threading but all of a sudden a small change in the color caused this Jun 18 04:01:42 so absurd Jun 18 04:03:26 How can I change the color of underline of textedit Jun 18 04:03:27 http://stackoverflow.com/questions/21480398/edittext-underline-below-text-property Jun 18 04:03:32 this creates a border Jun 18 04:03:36 not what I want Jun 18 04:04:14 whomp: I'm sure you've tried this, but you're running the app in debug mode, right? I've made the mistake of running it in regular mode many times >< Jun 18 04:04:17 you might need to upgrade to the Pro SDK for that... Jun 18 04:05:02 or, y'know, learn how stuff actually works Jun 18 04:05:51 ajoul you may see more of that on the emu than real device Jun 18 04:05:56 at least i do Jun 18 04:06:35 g00s: what do you mean by more Jun 18 04:06:58 ajoul: did you read the xml for the drawable, or just copy'n'paste it? Jun 18 04:07:39 Leeds: yeah I did its a rectangular Jun 18 04:07:50 I read somewhere that I can change the color of the underline Jun 18 04:07:54 by changing the theme Jun 18 04:08:07 I forgot where and I can't find it on my history Jun 18 04:08:10 will that work Jun 18 04:08:20 ajoul: this page will generate assets which will allow you to change the colour of the underline of edittexts http://android-holo-colors.com/ Jun 18 04:08:56 waiting for android-quantum-colors.com XD Jun 18 04:09:29 thanks barbs you are an asset Jun 18 04:09:49 android-quantum-chromodyamics. com Jun 18 04:10:00 ajoul: no problem. I am barbs.xml :) Jun 18 04:18:59 this is interesting. AS is only taking 350mb memory Jun 18 04:19:37 usually see it in the 7mmb range Jun 18 04:19:41 *700mb Jun 18 04:30:31 i'm trying to track down a bug that one of my unit tests is causing, but the problem is that gradle reports only the point in the test where the exception occurred, and not a full stack trace. how can i fix this? Jun 18 04:31:50 hey guys, is there any tutorial of how to make a custom preloader animation? Jun 18 04:32:14 I don't think I google'd it well enough Jun 18 04:35:44 g00s, any ideas? Jun 18 05:22:54 Hi Jun 18 05:23:49 Can I do debugging of my Android applications like in iOS? Jun 18 05:24:23 I have a code snippet pasted in http://pastebin.com/teLUfRKb Jun 18 05:24:28 I'm interested only in the Java code and if possible even the JNI and C++ code Jun 18 05:24:48 I actually want that when i click on each radio button the toast should display the string Jun 18 05:25:03 Can anyone suggest an up-to-date set of tutorials for learning the current version of Eclipse/ADT? Jun 18 05:25:05 But that code only displays through toast for the first button Jun 18 05:25:43 rest two buttons dont show any message Jun 18 05:25:45 why? Jun 18 05:25:52 what method should i use? Jun 18 05:27:52 shoudn I use radiogroup in this case? Jun 18 06:10:23 i have to launch activity from background thread to get user input, then this input needs to be returned to background thread, what is best approach to achieve this? Jun 18 06:17:13 nutrino: try using Intents Jun 18 06:17:25 to communicate between threads Jun 18 06:17:28 post messages Jun 18 06:18:07 my main problem is how do i get response back? Jun 18 06:18:20 either use observer pattern Jun 18 06:18:27 or broadcast an intent Jun 18 06:18:32 how background thread can receive intent? Jun 18 06:18:42 registering a receiver Jun 18 06:19:00 what's wrong with observer pattern? Jun 18 06:20:18 nothing wrong in that..i wanted to know if android has built in mechanism to handle this situation.. Jun 18 06:21:00 thanks ..it seems local broadcast receiver should do job for me.. Jun 18 06:21:58 nutrino: http://developer.android.com/training/multiple-threads/index.html Jun 18 06:57:07 How to generate R file it is not getting generated automatically even if I clean build the project Jun 18 06:57:35 Any help? Jun 18 07:16:40 niru, check all your XML files for errors Jun 18 07:16:55 yes yes alex_PP I found the issue with an xml file Jun 18 07:16:57 thanks Jun 18 07:25:28 alex_PP, doesnt toast work properly. I mean the display time between two radiobutton click overlaps and its messed up Jun 18 07:25:38 Isnt Toast a good option to display? Jun 18 07:26:29 Or in the cache the previous value remains as it is without refresh Jun 18 07:27:33 what is best and reliable way to know if ur APP is in foreground or background? Jun 18 07:28:41 toasts are going / have gone out of style Jun 18 07:29:04 they're not really useful except for debugging imo Jun 18 07:29:15 nutrino, what's you usecase? Jun 18 07:30:57 i get response from server saying user input requires..then i have to launch activity to take user input.. Jun 18 07:31:56 if app is in foreground np..however if its in backround..i would like to raise notification indiacting user input is required.. Jun 18 07:32:32 rather than directly bringing activity to foreground .. Jun 18 07:33:47 nutrino, create a service to do the request, and bind to it from your activity Jun 18 07:34:06 if it's bound, tell the activity though the binding, else show a notification Jun 18 08:03:15 if i run the exact same code to connect to my webservice from a java desktop application instead of from my android application i get "unable to find valid certification path to requested target" Jun 18 08:03:49 who can tell me what i lack knowledge in to understand this? :D Jun 18 08:43:04 hello! Jun 18 08:45:15 any idea why setOnItemClickListener on listview isnt called ? Jun 18 08:46:53 gordon_: does your list items contain clickable views? Jun 18 08:49:17 gordon_: if one of the child views has a listener (onTouch or onClick) it will consume the event before it gets to the list Jun 18 08:51:13 one more trick Jun 18 08:51:49 ? Jun 18 08:52:19 there was setCliclable in code Jun 18 08:52:42 tried focusable, focusableInTouchMode and descendantFocusability Jun 18 08:52:50 ok Jun 18 08:52:51 setclickable on which view? Jun 18 08:52:54 it's working Jun 18 08:53:09 well I'm creating custom views Jun 18 08:53:23 for adapter items so I dont need that view holder Jun 18 08:53:45 thank you Jun 18 08:53:45 gordon_: if your list items view(s) contains click/touch listener, they will be called, else the click will be send to the listview onItemClicked Jun 18 08:54:16 I'm having a problem Bitmaps Jun 18 08:54:32 I'm trying to save one in a database so I can recover it later on Jun 18 08:54:33 gordon_: are you trying to create Card UI? Jun 18 08:55:05 alowaniak: what is the issue? Jun 18 08:55:28 http://pastebin.com/WQxRj4je Jun 18 08:55:55 I'm leaving the database step out of that, and just trying to convert it to byte array and back to bitmap Jun 18 08:56:17 but what I get null back from the BitmapFactory.decode Jun 18 08:56:22 but I get null back* Jun 18 08:56:59 What's the difference between android update project and android update lib-project? Jun 18 08:57:50 (the bitmap I get back from decodeSampledBitmap is fine btw, so something goes wrong in the converting process) Jun 18 08:59:47 (and the imageData is filled with a bunch of numbers so my guess is that something´s going wrong in the decoding) Jun 18 09:02:01 CodePulsar: where do you get this message? Jun 18 09:02:20 FrancescoV: What message? Jun 18 09:02:37 update project / lib project Jun 18 09:11:47 FrancescoV: I'm asking what is the difference Jun 18 09:11:59 I see that it basically does the same things Jun 18 09:13:13 i have a aidl service in a library project (com.libary...), then i added the to an application's manifest (com.app....) with the full packagename name="com.library...serviceClassName". Now if i try context.bindService(new Intent("com.library...className"), new ServiceConnection{ ... }, Context.BIND_AUTO_CREATE); it always returns false and logcat outputs that it can't find the service Jun 18 09:13:36 does anybody know what i'm doing wrong? Jun 18 09:13:59 <__al_stefan__> hey guys, I think I found a big glitch in video rendering. I am trying to play two cropped videos one next to the other in the same time. For that I subclassed TextureView, and used a transformation matrix to obtain a center cropped videoview. This custom video view works fine on fullscreen but when I place those two videos next to each other in a lineararLayout they have a very odd behavior. the video in the second muVideoView goes beyond the b Jun 18 09:13:59 <__al_stefan__> ounds of the textureView objects and starts flickering above the first video view. It's odd. Here is my code: http://pastie.org/9301294 , http://pastie.org/9301370 Jun 18 09:14:53 <__al_stefan__> is this a known bug? am i doing something wrong? Jun 18 09:15:10 thepoosh: no, just want to avoid ViewHolder Jun 18 09:15:59 CodePulsar: not clear what you mean with update, if you need to update a lib project, this means that there is a new version of the lib project, then you can update the project for new features or more stable version. Jun 18 09:17:16 FrancescoV: the android command line tool Jun 18 09:17:29 FrancescoV: from ANDROID_SDK/tools/android Jun 18 09:17:36 FrancescoV: has an update global option Jun 18 09:20:06 and I want to know the difference between android update project and android update lib-project Jun 18 09:21:31 CodePulsar: have a look at this: http://developer.android.com/tools/projects/projects-cmdline.html Jun 18 09:32:33 how does a uses-permission for a service look like? The app that contains the service has the package com.bla.app, the service itself is com.bla.library.serviceClass. I've tried either the app containing the service or the service itself but i always get not allowed to bind to service intent Jun 18 09:34:22 I'm trying to run android update lib-project through an Apache Ant task and I get this "Error: Expected verb after global parameters but found 'update lib-project' instead." What I'm doing wrong: http://paste.kde.org/psfltdzdw/3zdsap ? Jun 18 09:34:56 I've tried to add/remove spaces before -- args same error Jun 18 09:39:15 Somebody experience with Expansion files? Is it possible to use html files with reference images/ css from the expansion file without extracting the expansion file? Jun 18 09:39:50 guys, do you use own Application class in your projects? Jun 18 09:41:23 gdrc: YES! Jun 18 09:41:44 like singleton or you create every time a new object? Jun 18 09:42:57 I am not able to do any changes in the xml page. keyboard buttons are not responding as needed Jun 18 09:43:19 how to get back to the previous state in .xml Jun 18 09:43:34 gdrc: we have a public constructor of our own class that derives from Application, and our custom class is also a singleton Jun 18 09:43:52 gdrc: not sure why is the ctor public Jun 18 09:44:08 can a constructor be private? :P Jun 18 09:44:09 So I found out my problem; BitmapFactory.decode is for compressed byte array, not for Bitmap.copyPixels byte array Jun 18 09:44:37 Got another problem now though; getting ¨Failed to read row 0, column 0 from a CursorWindow which has 0 rows, 8 columns.¨ Jun 18 09:44:52 while cursor.moveToFirst() returns true Jun 18 09:45:02 gdrc: OF COURSE! Jun 18 09:45:38 CodePulsar: I did not that :) Jun 18 09:47:21 gdrc: now you do :-) http://www.javapractices.com/topic/TopicAction.do?Id=40 Jun 18 09:51:29 Has anyone ran android command line to through an Ant exec task ? Jun 18 10:12:21 hey Leeds bro I fiiiinally go it working Jun 18 10:12:25 How to find which xml file actually shows error Jun 18 10:12:26 [2014-06-18 15:02:02 - SensorActivity] Error in an XML file: aborting build. Jun 18 10:13:25 ? Jun 18 10:19:31 dazpetty: yay? Jun 18 10:26:57 Can I have numbers and punctuation in the onscreen keyboard, but not alphabetic keys? Jun 18 10:29:57 anli_: http://developer.android.com/guide/topics/ui/controls/text.html#Keyboard Jun 18 10:32:31 niru: it should name you the xml file and line somewhere in the stacktrace. Jun 18 10:37:49 Wonder how things changes because this app is written in delphi Jun 18 10:54:41 danijoo, ok...I am trying to figure it out Jun 18 10:55:37 How can I set the item background of a ListView item programatically when it is selected? I tried listView OnItemSelectedListener in the onItemSelected method, no effect Jun 18 10:58:59 yeah, tried that too, did not work -- most likely due to view recycling, ListView is a rather complex thing. Proper way is to assign custom state-aware drawable to the root of the listview item, http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Jun 18 11:07:04 Hello, How can I write to different data fields with the same types when using Parcelable interface ? for example if I had 2 Integer fields in the class how could I write to them and read from them when using this interface ? Jun 18 11:10:07 you're ok as long as you're writing and reading them in the same order Jun 18 11:13:10 dr_terrible: ok that is great, thanks for answering Jun 18 11:21:05 hi I want to dev a music application for android. Is there any kind of guide for accessing audio files on the device? I found nothing about it Jun 18 11:21:11 (MediaDatabase) Jun 18 11:23:31 I know one can track what applications are using mobile data per uid Jun 18 11:23:39 would tethering show as one of them? Jun 18 11:33:24 grex25: you can use MediaStore Jun 18 11:33:45 shmooz: yeah, but theres no real documentation.. Jun 18 11:34:18 Question: is the cursor that initializes the bindView in the position of the cursor returned in getItem? Jun 18 11:35:50 getItem isn't even called Jun 18 11:35:52 grex25: google for examples getting video files , it's the same Jun 18 11:36:24 you can then change MediaStore.Video.... to MediaStore.Audio.... Jun 18 11:36:54 shmooz: ty, found http://alucard1990.hubpages.com/hub/How-to-Make-a-Simple-Media-Player-for-Android Jun 18 12:13:04 hi, i have a blog, with feed, how i can create a notification in my app when i have a new article in my blog? What i need ? Jun 18 12:13:21 Notification and what other resource of android? Jun 18 12:15:36 gcm, I suppose Jun 18 12:16:35 anyone know why the 3 dots settings thing dissapears from the action bar on samsung devices? Jun 18 12:16:49 sorry the 3 dot menu i mean :) Jun 18 12:19:03 because they've got a hardware menu button, so they don't need an on-screen one as well Jun 18 12:25:08 http://n4bb.com/blackberry-announces-amazon-app-store-blackberry-10/ Jun 18 12:26:05 oh my, it cannot be that hard, giving each list view item a custom selection color based on a dynamic state… Jun 18 12:26:26 Leeds is that why? but you wouldnt know to press it or not Jun 18 12:26:57 platzhirsch probably the view caching is messing u up Jun 18 12:27:07 Gaz`: huh.. Jun 18 12:27:27 Gaz`: I'm pretty sure, yes Jun 18 12:27:46 and no, Android has *never* shown a sign that you should press the menu button... Jun 18 12:27:58 yeh that true Jun 18 12:30:13 which is the reason Google got rid of menu button Jun 18 12:30:33 i can barely work out their reasoning behind much of it Jun 18 12:30:41 hmm Jun 18 12:30:50 seems so oddly confusing for no good reason, almost like theyre trying to make devices "different" Jun 18 12:30:51 most of the stuff it rather obvious and also explained in design guidelines. Jun 18 12:31:01 Gaz`, um Jun 18 12:31:05 you have a Samsung device Jun 18 12:31:18 my client has tons i dont have one, got htc butterfly :) Jun 18 12:33:02 haha bb piggybacking on amazon apps Jun 18 12:33:09 mobile market is hilarious these days Jun 18 12:35:31 http://www.engadget.com/2014/06/18/vertu-signature-touch-hands-on-video/ Jun 18 12:36:06 basically, it means BB10 is dead as a platform for apps Jun 18 12:38:34 well they will just run android apps Jun 18 12:38:56 these Vertu guys are jokers eh! Jun 18 12:40:30 what sort of idiot buys one Jun 18 12:41:43 I wonder how those guys are still in business Jun 18 12:42:44 yeh me too, presumably enough rich people out there who dont understand whats going on still Jun 18 12:42:57 esp after the whole thing where Apple took over the premium segment of mobile device market Jun 18 12:43:15 call that premium? Jun 18 12:43:25 So, like, they only consider the price and thing 'oh, that thing is 22k it must be good' Jun 18 12:43:37 yeh its like "I am Rich" Jun 18 12:43:50 no, you are Gaz, I am Rich Jun 18 12:43:57 hehe Jun 18 12:44:01 I am Poor Jun 18 12:44:26 Guys I think this is the birth of a new app trend hahah ) Jun 18 12:44:42 I know people talk a lot about the concierge service with Vertu... but I sort of think that if I was the sort of person to pay that sort of money for a phone, I'd probably have access to all sorts of 'rich person' services already Jun 18 12:44:45 yeh same as i am rich but its a dog turd in the corner and its free Jun 18 12:45:09 yeah ) Or something like rags from Diablo 1 Jun 18 12:45:09 what do they actualy do tho these services? Jun 18 12:45:26 there are more expensive phones Jun 18 12:45:28 approximately, anything Jun 18 12:45:54 "I'm flying into New York tomorrow - can you get me dinner at a Michelin 3* restaurant and a box for a Broadway show?" "Yes sir" Jun 18 12:45:58 when I was googling I found one for 3 mil I think Jun 18 12:45:59 so u can ring them up in the middle of the night whereever you are and ask for a burger a bag of weed and a prostitute? if so then the 22k is prob worth it Jun 18 12:46:21 I suspect that yes, you could call them at 3am and ask for a burger Jun 18 12:46:23 lol shmoooz Jun 18 12:46:31 what a genius service Jun 18 12:46:41 still prefer food panda Jun 18 12:47:28 "I'm going to be on CNN in the morning, and my suit got damaged - I need a suit by 8am" Jun 18 12:47:36 wow, didn't know about food panda until just now Jun 18 12:47:45 :D Jun 18 12:48:34 just print yourself a suit with your 3d printer Jun 18 12:48:44 there's a bunch of local companies that do delivery - I just went and collected some Indian food from a local takeaway, and they gave it to me in a bag from a food courier Jun 18 12:49:41 and you call yourself rich Jun 18 12:50:04 Hello guys, I have a project with ActionBar from appcompat_v7, the problem is I somehow can't set an ActionBar title. It keeps empty, I totally don't understand why it keeps blank. Jun 18 12:50:43 might have to go collect some BK Jun 18 12:50:51 also, you'd think Vertu would be able to hire a designer for that kind of money) Or I may be lacking some high-order aesthetic receptors or something -- but Vertus are terribly ugly, what kind of clutch-and-shoe designer comes up with those overengineered looks... Jun 18 12:51:19 yeh vertu almost prove that reality is broken Jun 18 12:52:05 I used the actionbar.setTitle() and actionbar.setShowTitleEnabled() or something like that. But still no title displayed :( Jun 18 12:52:33 action bars are more complex than astro physics Jun 18 12:53:21 tried creating tasks/apps with tasker? I got around the horrendous UI but profiles are not triggering but I can run the tasks from the Tasker UI manually. Tasker Shortcuts on the desktop to the tasks also dont work. Any ideas? (jailbroken 4.4.3). Jun 18 12:54:00 @Number5 are you sure you're using getSupportActionBar() not getActionBar()? Jun 18 12:54:26 dr_terrible, you might be right... I'll check it out. Jun 18 12:55:32 dr_terrible, no, I'm correctly using getSupportActionBar() Jun 18 12:55:33 also, check that you have derived your theme from the appcompat theme Jun 18 12:56:11 dr_terrible, yes I derived it from ActionBarActivity, which is from appcompat... Jun 18 12:56:28 maybe I have to check the manifest file...? Jun 18 12:56:57 and the theme, too? Jun 18 12:57:46 theme of the app that is, android:theme="@style/Theme.AppCompat" Jun 18 12:58:26 Theme: @style/AppTheme, when looking at that it has parent: Theme.AppCompat.Light Jun 18 12:58:45 Should be ok I think. Jun 18 12:59:28 This issue makes me so frustrated, uhhh it kills me. Jun 18 13:01:19 When setting background color with action bar.setBackgroundDrawable() it works, but when setting title, it doesn't. What am I doing wrong? Jun 18 13:01:30 hmm this is weird Jun 18 13:02:12 Enabling the home button, also works Jun 18 13:03:08 dr_terrible, I'll try this with an Android 4 emulator, as I was testing with a Android 2.2 emulator. Jun 18 13:04:02 what method in cursor adapter is called after a dataset changes? Jun 18 13:04:07 methods, even Jun 18 13:04:48 hmmm Jun 18 13:04:58 apparently none Jun 18 13:05:09 as it is not even refreshing the views Jun 18 13:05:11 halp Jun 18 13:07:36 hi Jun 18 13:08:18 yep, none. You have to watch out for dataset changes yourself, create new cursor and call CursorAdapter.changeCursor() to replace the old data Jun 18 13:08:18 adb lolcat is too verbose :\ Jun 18 13:09:03 hmmm Jun 18 13:09:06 is there any way to make it less verbose, I want to trace why google map, drive, play crash when I use my home wifi Jun 18 13:12:13 @zoraj sure you can use Jun 18 13:12:42 dr_terrible, how ? any tips ? Jun 18 13:13:15 adb logcat 'TAG:VERBOSITY' to filter Jun 18 13:13:58 e.g. adb logcat 'Network*:d' or adb logcat '*:e' Jun 18 13:14:46 or just adb logcat | grep 'whatever' -- as a more simplistic approach Jun 18 13:16:54 dr_terrible, I found something, I hope you can help me. My actionbar title disappears if I started a splashscreen as a separate Activity and than return to my ActionBarActivity. If I don't fire the splash screen the title is diplayed. Jun 18 13:17:08 dr_terrible, ok thanks Jun 18 13:18:54 Somehow, returning from another activity my ActionBar title disappears and I don't know how to get it back. Jun 18 13:19:13 try setting it in onResume() Jun 18 13:19:44 dr_terrible, ok. Jun 18 13:22:32 dr_terrible, no, same result. Jun 18 13:23:39 ok no idea then, there's some ridiculous dark magic going on in your project :D Jun 18 13:28:42 dr_terrible, I Don't use any magic, all I see is that when coming back from another activity the title disappears. Jun 18 13:40:15 dr_terrible, maybe I ask too much for you, but can you try it yourself? I even changed the splash screen activity to appcompat v7 activity with action bar support, but it's still the same. Jun 18 13:42:22 In the splashcreen I hide the action bar, but when coming back from it, its title is still gone after showing it again by hid(). Jun 18 13:43:36 is your splash another activity or a fragment? Jun 18 13:44:27 Sorry, I can't really try it out now, maybe next time Jun 18 13:45:12 dr_terrible, it was a default avitivty and than I changed it to support activity with action bar than I hide the action bar in the splash screen, when returning back, I show it again, which works, but the title is gone. Jun 18 13:45:24 dr_terrible, I understand. Jun 18 13:46:34 Can I set in local.properties a variable to have the value of an environment variable? Jun 18 14:01:23 Somebody used the StorageManager before? I have my expansion files, can show a html page from it in my webview but the images / css etc. isn't loading Jun 18 14:01:23 What is the default environment variable name that points to Android SDK HOME ? Jun 18 14:01:25 ANDROID_HOME ? Jun 18 14:01:38 read the SDK intro... Jun 18 14:02:26 Where is that? Jun 18 14:05:29 or it doesn't need to have a particular name? Jun 18 14:05:44 I'm trying to find it there's a standard naming convention Jun 18 14:14:31 I just create a basic class to retrieve the current AppContext Jun 18 14:14:32 http://bpaste.net/show/s1j5XGE60UduXV747jOs/ Jun 18 14:15:05 when I call getAppContext, it's always null Jun 18 14:15:11 did I miss something Jun 18 14:15:13 ? Jun 18 14:16:13 zoraj, register it in manifest Jun 18 14:16:52 pfn, ok thanks for the path, I don't know how to do that, let me google it Jun 18 14:20:25 what if I have many class that extends Application :\ Jun 18 14:21:09 hi Jun 18 14:21:14 how i can import gcm ? Jun 18 14:21:15 lib Jun 18 14:23:15 dang it, this library on Github deleted its issues. lot of good support material in there. Jun 18 14:24:35 t0th_-: https://developer.android.com/google/play-services/setup.html Jun 18 14:25:00 i added play into my project Jun 18 14:37:02 guys I reinstalled my PC now i import my project sync new gradle but I have one problem.. I got error http://pastebin.com/SR2j7ENb How to fix it ? Please, I am new.. Jun 18 14:39:58 can somebody help me with this please: http://stackoverflow.com/questions/24288421/expansion-file-load-html-with-images-and-css Jun 18 14:42:28 zoraj, you cannot Jun 18 14:42:52 pfn, got it, thx Jun 18 14:57:00 The HTC One M8 is very very shiny :/ Jun 18 14:57:39 somebody experience with loading html + csss / images in webview? Jun 18 15:05:03 FrancescoV: in what sense? Jun 18 15:05:16 csssssssss Jun 18 15:05:39 Estel my coworker just switched from iphone 4s to the M8 Jun 18 15:06:29 Estel I think he is really liking the screen real estate Jun 18 15:06:45 guys please How can I fix it Jun 18 15:07:02 Euler: Now I can load my html + css etc. from assets. Next: how can I do it from sd card root folder? currently I have loadDataWithBaseURL("file:///android_asset/html/", htmlData, "text/html", "UTF-8", null); Jun 18 15:07:31 the path is different Jun 18 15:07:56 M8 so damn big... Jun 18 15:07:57 Ok, next: is it possible from an expansion file? Jun 18 15:08:45 WirRez are you refering a project called NavDrawerItem? Jun 18 15:08:45 context.getFilesDir() will get you the internal storage directory for your app Jun 18 15:09:00 I want to delete it :D Jun 18 15:09:09 but i dont know where Jun 18 15:09:13 http://developer.android.com/training/basics/data-storage/files.html Jun 18 15:09:31 check yoru settings.gradle Jun 18 15:10:54 ok Jun 18 15:13:42 WirReZ pastbin your settings.gradle and build.gradle also Jun 18 15:13:53 has anyone written any requirements doc for Android? Jun 18 15:14:04 what is a gradle by the way Jun 18 15:14:09 i'm new to android programming Jun 18 15:14:16 build system Jun 18 15:14:39 a build system? Jun 18 15:14:50 what is that Jun 18 15:14:51 it provides an easy way to manage dependencies Jun 18 15:15:13 mattblang: just a second bulding I deleted it from settings.gradle Jun 18 15:15:18 if you want to use third party libraries, and those libraries depend on other third party libraries, it can quickly become a mess to try to manually include them in your project Jun 18 15:15:38 ahh Jun 18 15:16:16 i think i need to get myself a beginning to program for android book Jun 18 15:16:18 with gradle you can just specify the library you want to use and hopefully it will work all that stuff out. often times people host their libraries in a repository called maven central, which makes it as easy as adding one line to your build.gradle file to include thirt party libraries Jun 18 15:16:28 i think the book i have doesn't explain a lot of things i need Jun 18 15:16:53 Zeppelin, d.android.com explains everything you n eed in an up-to-date manner Jun 18 15:16:53 oh i see mattblang Jun 18 15:16:54 books won't Jun 18 15:16:57 Books aren't a good resource to learn android development Jun 18 15:17:03 mattblang: thank you it works Jun 18 15:17:05 oh really pfn? Jun 18 15:17:10 WirReZ sweet Jun 18 15:18:34 mattblang: the screen doesn't seem too big, but hard to tell without actually using it Jun 18 15:18:59 Estel yeah, but compare it to an iphone :P Jun 18 15:19:18 Estel he said he tried to go back to his iphone, to sync some of his files or something, and it felt so small haha Jun 18 15:20:25 xD Jun 18 15:20:50 4" -> 5" is a huge jump Jun 18 15:21:25 its funny the difference that one inch can make. the nexus 7 feels cramped to me, but the 8 inch that Samsung put out last year seemed fine Jun 18 15:21:28 the screen is huge Jun 18 15:22:13 4.7" is the perfect screen size Jun 18 15:22:20 for a phone Jun 18 15:22:35 *my phone's screen size* is the perfect screen size Jun 18 15:22:43 is there a book on kindle you recommend or can you get the developer website in a pdf or on kindle Jun 18 15:22:59 Zeppelin doesn't the kindle have a browser? Jun 18 15:23:07 yer it might Jun 18 15:23:32 it does Jun 18 15:24:16 i have the privlage of dealing with Kindle support for our activities that use Google Play libraries Jun 18 15:24:29 i don't have an actual kindle though Jun 18 15:24:35 i am using the kindle app Jun 18 15:24:52 ... Jun 18 15:24:57 I... Jun 18 15:25:01 Uh... Jun 18 15:25:06 Zeppelin: there's none that I know of, if there is it might be out of date Jun 18 15:25:11 *will be out of date Jun 18 15:25:29 if you hvae the kindle app doesn't that device have a browser, is I think what frankdrey was getting at Jun 18 15:25:31 Zeppelin, so who's holding a gun to your heard forcing it to be in PDF format? Jun 18 15:25:38 *head Jun 18 15:25:50 Just use the dang website like a normal person Jun 18 15:25:50 lol Jun 18 15:26:15 frankdrey: some of the iOS docs have been released as iBooks, and it's not an entirely stupid idea. Jun 18 15:26:35 They're usable, fast, don't need an internet connection. Jun 18 15:27:24 Estel I find that sometimes when I'm reading a physical book I want to ctrl+f with my brain and see shaded areas around my selection Jun 18 15:27:35 Estel it doesn't work though Jun 18 15:28:01 mattblang, update your brain to 4.4.3 Jun 18 15:28:07 frankdrey lol Jun 18 15:28:43 frankdrey I love in Mississippi, so I'm having to support some much older versions Jun 18 15:28:46 *live Jun 18 15:28:53 How old? Jun 18 15:29:11 * frankdrey is adopting a 4.1 or GTFO policy Jun 18 15:29:34 Can't have them manufacturers get away with being lazy Jun 18 15:30:36 frankdrey actually, I was making a reference to some of the things I deal with from my rural family. but for my company's app we are having to support api level 10 :(, because it is an unemployment app for the state Jun 18 15:30:40 My brain still runs 1.5 Jun 18 15:30:57 lol Jun 18 15:30:58 Ah lol Jun 18 15:31:00 I tested an app on 1.5 the other day, that was amusing Jun 18 15:31:17 Estel lol! i bet Jun 18 15:31:31 did y'all see the Android retrospective on Ars? Jun 18 15:31:49 saw the abstract, ignored it Jun 18 15:31:56 Leeds: aye, was a lengthy read Jun 18 15:32:10 40,000 words, 26 pages, basically covering the evolution of the Android UI and core apps from before 1.0 Jun 18 15:32:28 Great Jun 18 15:32:35 Estel I first did Android dev at an internship back in 2010. I remember 2.2, I think, was the hot new stuff and I was trying to see if I could upgrade our dev phones, that had slide keyboards, past 1.x Jun 18 15:32:43 Now I'm gonna waste some part of my day reading this Jun 18 15:33:09 hey guys, I'm trying to edit some json files in my assets folder, but it looks like the app doesn't recognize any updates to them. how can I update the files in the assets folder and get the app to recognize the changes? Jun 18 15:33:20 is it a bad idea to copy data from expasion file to internal storage? (html / css/ images / videos) Jun 18 15:33:35 Can a Android App be developed completely in Python? Or do i need to depend on Java also? Jun 18 15:33:51 is there gradle integration for ADT? Jun 18 15:34:08 does anybody have a tutorial on how to set this up? Jun 18 15:34:27 helichopter: assets are read-only Jun 18 15:34:32 Guddu_: no Jun 18 15:35:08 when building a ListAdapter, what is the purpose of implementing getItem? it seems to me that getView seems to do all the necessary work Jun 18 15:35:40 catphish: it depends how complex your operation to get the item for the row is Jun 18 15:35:49 leeds: there's no way for me to specify them ahead of runtime? Jun 18 15:35:50 You might have some weird mapping object that you're adapting Jun 18 15:36:25 so would getView normally call this.getItem? Jun 18 15:36:35 helichopter: everything in the apk is read-only... you can copy it out of assets to a private directory if you need to make local changes Jun 18 15:36:43 It's up to you, catphish Jun 18 15:37:00 ok, thanks :) i'm very very new to this Jun 18 15:37:39 Check out the javadoc for BaseAdapter, it should tell you what each is for Jun 18 15:38:14 if you have a folder with 4 files, is it possible to copy folder with content, or do I need to copy the 4 files? Jun 18 15:40:06 Actually, that's not helpful at all. Basically getView and getCount are for the system. getItem and getItemId are for you Jun 18 15:41:59 frankdrey: that's what i had somewhat assumed, i will probably switch to an ArrayAdapter anyway, where i assume getItem automatically gets an array item Jun 18 15:42:14 which i can then use to populate the view in getView Jun 18 15:43:46 Sounds about right but I've never extended ArrayAdapter, only used it as is Jun 18 15:44:31 basically i'd like my activity to hand it an array of complex objects, then i'd like getView to convert one of those into a view Jun 18 15:46:39 catphish: why only convert one of those? Jun 18 15:47:16 Estel: i mean one at a time, obviously it will be called for each item that needs to be displayed Jun 18 15:49:36 my main project includes a Unit test project (with gradle via compile project(:UnitTestProject)), but my test project can't resolve the main project. I don't think compile project(:MainProject) will work since that's a circular dependency then Jun 18 15:49:54 So how should I include my Unit test project? Jun 18 15:51:54 are constructors not inherited automatically? do they always need to be fully redefined to caller super? Jun 18 15:52:31 yes Jun 18 15:53:13 thanks, that's annoying :) Jun 18 15:53:18 not at all Jun 18 15:53:23 every object must know how to create itself Jun 18 15:53:44 i see, inheriting the constructor would cause it to create the parent class Jun 18 15:54:02 is there a team foundation server plugin for android studio? Jun 18 15:57:55 Hi guys Jun 18 15:59:25 I've a scrollView and another view above it. I need to disable the user intertacion on this view, in order to let scrollview to handle all touches. Is it possible to do this? Jun 18 16:11:46 Hey guys, i have a problem calling a function from another class which extends ListActivity in a class which extends Fragment. I get "System services not available to Activities before onCreate()". I tried many this here is whre i landed http://paste.frubar.net/17788 i absolutly dont get how i can call the fillList() method. In a class which extends ListActivity instead of Fragment i cann just call this.fillList() in the onCreate, bu Jun 18 16:11:46 t because of the Fragment extend i cant do that Jun 18 16:15:41 Sepho above it in the Y or Z axis Jun 18 16:18:13 anyone have experience writing requirements documentation for a mobile app? Jun 18 16:19:40 androsep shouldn't you be using callbacks through an activity to do this anyway Jun 18 16:20:53 mattblang do you expect the requirements doc to be different than other kinds of software ? Jun 18 16:22:29 g00s yeah, maybe. I don't have a lot of experience with requirements docs in general. Jun 18 16:24:32 karl weigers book is good Jun 18 16:26:33 i was going through a class in the sdk and found this Jun 18 16:26:34 for (; i < nDays - 1; i++) Jun 18 16:27:08 does java instanciate int i automatically? Jun 18 16:27:21 ah, nvm, they had it outside the loop Jun 18 16:27:30 way way above it Jun 18 16:27:43 g00s thanks man Jun 18 16:28:56 test test Jun 18 16:28:57 123 Jun 18 16:28:58 :) Jun 18 16:32:09 Sepho, override all onSomethingListeners with empty ones Jun 18 16:50:06 Is there a way to have quiet output for gradle in Android studio? Jun 18 16:50:48 what is android ExpandableListView group indicator drawable id? Jun 18 16:51:17 I want to get this image that is used as indicator Jun 18 16:51:52 Afzal close the console window XD Jun 18 16:52:38 g00s, lol. I'm running the test task so I was wondering if there was a way to just see the results of that instead of other gradle stuff Jun 18 16:53:05 hm Jun 18 16:53:33 yeah i wish that was easier - even from the command line lots of noise; i'd just look at the result html Jun 18 16:56:46 oh, from the command line, you can use the -q flag Jun 18 16:57:01 But yeah, html would be nice Jun 18 16:59:09 can I set the color filter on a textview to target its drawables? Jun 18 17:01:57 hi Jun 18 17:03:05 g00s, actually, as it turns out, there's even a html report! :D just hidden in the module's build folder Jun 18 17:04:03 i need to download a pdf file and store within the mobile, so when the user click on the pdf and its already downloaded it just open. id like to know the best way to store this pdf file Jun 18 17:10:37 is there a way to apply tint/colorFilter to a drawable on a textview? Jun 18 17:10:58 * flan3002 greps his code for that. Jun 18 17:11:27 Afzal yeah that one :D Jun 18 17:12:56 does anyone has a good source that explains at which points static variables are initialized and static code blocks are executed? Jun 18 17:13:00 Oh, I see that you pointed out that there is one. I thought you were wishing there was one, lol. Now to make it pop up after tests Jun 18 17:14:20 shekibobo: You might find a way with ColorMatrix, ColorMatrixColorFilter and .setLayerType(), though I'll look in the docs if View got that method... Takes a while with 3kb/s. :) Jun 18 17:15:03 * flan3002 wants offline docs. Jun 18 17:18:44 shekibobo: Yes, it got that method! Jun 18 17:18:50 http://developer.android.com/reference/android/view/View.html#setLayerType(int, android.graphics.Paint) Jun 18 17:26:44 hm, tomorrow is amazon phone announcement & t-mobile uncarrier 5.0 Jun 18 17:26:53 no Jun 18 17:26:55 its right now Jun 18 17:26:57 any minute Jun 18 17:27:04 i know cause im butt hurt Jun 18 17:27:07 i didnt get my invite Jun 18 17:30:39 "Google plans to introduce its own in-car solution that will rival Apple's CarPlay at the company's I/O conference next week," Jun 18 17:30:56 what can these guys do better than sticking the line-in to the amplifier ? Jun 18 17:31:15 heh, fuck that , don't want any consumer OS in my car Jun 18 17:31:21 I do Jun 18 17:32:10 you're just anti-everything, g00s Jun 18 17:32:25 my new car runs java on the head unit Jun 18 17:32:31 the most that should be done is a standard HW api that allows a phone device to integrate with some LCDs in the car or something Jun 18 17:34:52 as if standard apis will happen Jun 18 17:35:01 appradio from pioneer seemed promising, but it's so janky Jun 18 17:37:15 flan3002: can it apply the layer to the drawables without affecting the text? Jun 18 17:37:26 shekibobo: I don't know. :) Jun 18 17:37:46 And I can't try. :) Jun 18 17:38:18 ok, thanks anyway. This is at least pointing me toward some options, thanks! Jun 18 17:38:22 * flan3002 s setup got destroyed by 'sudo pacman -Syu'. Jun 18 17:38:53 flan3002, my setup got demolished by the _ubuntu_ upgrade tool Jun 18 17:39:05 even ubuntu didn't make their updates not destroy the user's setup Jun 18 17:39:22 Yeah... At least pacman *could* fix it, if I had enough patience. Which I don't have. Jun 18 17:39:40 wish these made a bit more sense: http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html Jun 18 17:39:42 And to be fair, this is the first time pacman totally kills my Java stuff. Jun 18 17:39:54 shekibobo: Just try them all. You got time, I hope. :) Jun 18 17:39:59 yup Jun 18 17:40:20 shekibobo: And if you get segfaults, you know where to look first. Jun 18 17:40:44 heh, i tried arch linux this past weekend Jun 18 17:41:19 Mango_Man: Tried? Not adopted? :P Jun 18 17:41:26 arch is great for learning linux, but for development i need something that just works Jun 18 17:41:40 like, i don't want to spend ages fiddling with font settings :) Jun 18 17:41:42 ArchLinux *can* just work... Jun 18 17:42:02 once you make it work by bludgeoning it with every command, twice Jun 18 17:42:18 But you're right... Using IntelliJ Idea with DWM took me hours to work correctly... Jun 18 17:45:15 Hello, Jun 18 17:46:10 I need to root my Samsung Galaxy Pocket PLUS ( ARM ). And see a load of tutorials on rooting android devices some of them seem a little wacky. Jun 18 17:46:12 :) Jun 18 17:46:15 Any suggestions ? Jun 18 17:46:24 Unknown0BC: #android-root Jun 18 17:46:36 ty Jun 18 17:47:48 shekibobo: Found something? Jun 18 17:48:30 shekibobo: I think Apollo *might* do something similar to what you want. It might be worth a look, but I'm not entirely sure... Jun 18 17:48:36 flan3002: SRC_IN seems close, but it's tinting black Jun 18 17:49:06 Its a very quiet place that Mango_Man Jun 18 17:49:12 :\ Jun 18 17:49:19 Unknown0BC: :( Jun 18 17:49:21 Then possibly #android? Jun 18 17:49:28 I'm scared of silent channels. Jun 18 17:49:42 Its very spooky, Jun 18 17:49:46 Unknown0BC: if all you want to do is install a custom rom, then it's pretty straightforward Jun 18 17:50:01 Unknown0BC: install a new recovery, download the custom rom you want, and flash it Jun 18 17:50:17 * Unknown0BC blinks Jun 18 17:50:55 Thats going to mean I need to backup and restore ? Jun 18 17:51:02 What do you think of this ?: http://lkubuntu.wordpress.com/2012/10/26/how-to-root-an-android-device-under-ubuntu/ Jun 18 17:51:05 You should *always* backup! Jun 18 17:51:32 Yes I SHOULD ! Jun 18 17:51:34 :) Jun 18 17:52:15 flan3002: unfortunately, layertype is a no go Jun 18 17:52:37 shekibobo: Give me second, I'll dexplore Apollo. :) Jun 18 17:52:40 today I implemented synchronization ;) Jun 18 17:52:55 Right now, I have my text view color set to a state list with an "activated" state to change color Jun 18 17:52:56 * flan3002 claps moderately fast. Jun 18 17:53:26 In my view (it's made by an arrayadapter), it checks to see if the textview's state is activated Jun 18 17:53:40 if so, set the color filter on the drawable before I put it into the textview Jun 18 17:53:59 shekibobo: Do you have CyanogenMod installed? Jun 18 17:54:00 this works when the item is selected just fine, but for some reason is not set on the initial state Jun 18 17:54:03 no Jun 18 17:54:11 What is your end goal? Jun 18 17:54:35 it's to have the drawable color match the text color in the active state Jun 18 17:55:10 the text view is activated, but it seems not to be during the 'getView' of the adapter the first time Jun 18 17:56:11 I guess I'd prefer to use a color state list as the drawable's colorFilter in general Jun 18 17:56:29 Okay, Apollo is using some more advanced magic than you probably need... Jun 18 17:56:37 Pretty cool though. Jun 18 18:00:49 flan3002: the problem seems to be that the textview will react to a state change on its own with a color state list Jun 18 18:01:10 but when my list is first initialized, the state is not set yet Jun 18 18:01:55 How can I change an attribute of android.R.layout.simple_spinner_item? I want to set the textsize. Jun 18 18:02:01 actually amazon phone's HW isn't too shabby Jun 18 18:02:16 did they release it? Jun 18 18:02:26 gdrc http://live.theverge.com/amazon-phone-liveblog/ Jun 18 18:02:54 if it ran pure android i'd probably buy it :D Jun 18 18:02:54 ty Jun 18 18:03:04 impossibile Jun 18 18:03:46 gdrc and http://www.theverge.com/2014/6/18/5819516/meet-the-fire-phone Jun 18 18:05:13 in an adapter, is there any clean way to check if an item is in a sqlite db? Jun 18 18:05:54 if i use asyncqueryhandler that opens up a bunch of race conditions Jun 18 18:05:58 Mango_Man thats kinda weird Jun 18 18:06:42 g00s, I need a new phone. I think I'll go with m8 Jun 18 18:07:05 may as well just wait for i/o Jun 18 18:07:08 g00s: maybe i could fetch all items in the adapter constructor, that way checking is just containsKey Jun 18 18:07:10 I'd love to have a jolla phone :/ Jun 18 18:08:28 the most important part of the phone for me is the camera; i haven't been impressed by and of the android phones in that regard. Jun 18 18:09:01 iphone5 has a good camera Jun 18 18:09:10 g00s, I don't like nexus phones. they quality is not very good Jun 18 18:09:15 * flan3002 would use a real camera if he wanted to shoot good photos. Jun 18 18:09:34 flan3002 of course Jun 18 18:09:36 gdrc: whats wrong with the quality of nex4? Jun 18 18:09:43 flan3002, old topic Jun 18 18:09:49 how can i download and save a file to internal storage? Jun 18 18:10:09 tiagowanke see downloadmanager Jun 18 18:10:20 danijoo_, I had a Nexus 5 which I sent it back Jun 18 18:10:26 gdrc: Why that? Jun 18 18:10:32 Broken? Jun 18 18:11:10 im pretty impressed form the quality of my nex4.. although it has a glass back, it didnt broke at 2 drops on asphalt.. Jun 18 18:11:15 dead pixel and I did not like assembly quality Jun 18 18:11:42 Mine is pretty cool... Compared to the SE X8 I had before. :) Jun 18 18:11:58 g00s: im using, but i just found options to store at external storage with downloadmanager Jun 18 18:12:35 I've a moto g and I love it Jun 18 18:15:35 Nexus 5 is worse build quality than N4 Jun 18 18:15:57 It still works. :) Jun 18 18:16:09 all it has to do is show adds :) Jun 18 18:16:37 still waiting for gmail android app to get adds, i thought that was supposed to happen already Jun 18 18:16:38 My Nexus 7 2012 was pretty bad concerning build quality though... Jun 18 18:16:46 N4 and N5 are better than any Samsung Nexus Jun 18 18:17:08 my n7 2013 makes a weird cracking noise when i touch a part of the panel, like something is shifting Jun 18 18:17:17 although ever nexus i've had since the nexus s has had loose power/volume buttons Jun 18 18:17:28 its not that apple makes great stuff, everyone else just sucks badly Jun 18 18:17:40 And installing Ubuntu on it totally killed it's audio and I get some 'weird pixels' showing weird stuff™ even after flashing stock... Jun 18 18:17:42 and the usb port is loose Jun 18 18:17:47 including both galaxy nexus's, all three nexus 7's, the nexus 4 and both nexus 5's Jun 18 18:24:17 Build script error, unsupported Gradle DSL method found: 'getBootClassPath()'! <--- just opened my project and got this after update... did I miss something? Jun 18 18:30:54 how do i, in robolectric, verify that a method was called on an object? Jun 18 18:32:38 woot, registered for google IO extended :D Jun 18 18:33:02 viewing google io on a projector is better than nothing Jun 18 18:33:48 Anyone have a link to a photoshopped picture of Jeff Bazos with fire of any sort? Jun 18 18:38:06 also, in mockito, how do i create a mock of a real object? they seem to discourage spies Jun 18 18:40:43 Mango_Man, boxmein: This is what I meant. http://i.imgur.com/gOkBQ5s.png Jun 18 18:41:07 Pretty awesome, no? Jun 18 18:41:55 flan3002: What OS are you on? Jun 18 18:42:04 Was it that awesome? Jun 18 18:42:05 ArchLinux. Jun 18 18:42:10 But that doesn't say anything. Jun 18 18:42:21 You can have the whole fancy stuff on AL too, if you want. Jun 18 18:42:25 Yeah Jun 18 18:42:33 Arch is fun Jun 18 18:42:42 I just like the overall snappyness of it. Jun 18 18:43:09 And the fact that you what to fix when something breaks because it's so small that you can overview it. Jun 18 18:43:16 (Sometimes) Jun 18 18:43:39 to me, viewing google io on a projector is nothing Jun 18 18:43:47 I just want to go for the swag and networking Jun 18 18:44:23 yiati: Have you used AL? Jun 18 18:44:35 Yes Jun 18 18:44:55 With DE/WM? Jun 18 18:45:09 (And which, if yes. :) ) Jun 18 18:45:55 Yes Jun 18 18:46:26 bah, linux? DE? xmonad or go home Jun 18 18:46:38 How can I know if 300dp fits on all mdpi screens? Jun 18 18:46:47 DE with Cinnamon Jun 18 18:48:22 is there some way to do wrapcontent*2 ? Jun 18 18:48:32 I want twice the height of the content Jun 18 18:49:00 not in xml no Jun 18 18:49:43 trabajo, on mdpi 1dp = 1px Jun 18 18:51:54 mdpi is pixel density, not screen size! Jun 18 18:52:42 I know. Still, on mdpi devices 1dp = 1px. Jun 18 18:55:19 So do all mdpi phones have at least 300px width/height? I think so. Jun 18 18:59:16 I've got an issue where, when I come back from a suspend (leave app, go to home screen, come back) some of my textviews are formatted differently/wrong Jun 18 18:59:26 the content is the same Jun 18 18:59:33 any idea how to go about fixing this? Jun 18 19:00:39 hydoskee thats weird, no idea what would cause that Jun 18 19:00:58 yeah - it's driving me crazy, and only happening for one class of view Jun 18 19:01:00 well, two Jun 18 19:01:08 Is there a way to show gifs in android? this is so funny: http://www.gifbin.com/bin/15g6454656.gif Jun 18 19:01:37 but still - deeply nested textviews that seem to get *wider* even though the viewport stays the same Jun 18 19:01:38 alright now that's definitely a googleable question Jun 18 19:01:43 about gifs Jun 18 19:01:54 leading to fewer lines, and a right side cutoff of the text Jun 18 19:02:04 Has anyone worked with SVGs on android? Jun 18 19:02:17 There's a library for it by a googler but it doesn't seem to be maintained anymore Jun 18 19:02:54 hey guys, anyone have experience writing apps that use the Google Maps android API? Jun 18 19:03:14 if so, do you know if is a normal expectation that opening a MapFragment should cause a crapload of allocation/GC? Jun 18 19:05:34 I guess so. It’s not exactly fast to load the first time. Jun 18 19:06:07 hey guys. Did anyone manage to mount a NFS share on a KitKat ROM with Root and busybox? After many tries, I got it to mount successfully, but I can only list the files when root. The normal user and any other apps can't see the files. I have read that this is a KitKat security feature and probably this is the problem? here are the commands I ran an their output: http://pastebin.com/Y27dzXUk I have a 4.4.2 Android mini-pc with root Jun 18 19:27:44 If I want to textview side by side and then one beneath and then a little bit lower down I want 5 buttons, which layouts should I use? do I need to combine grid and linear? Jun 18 19:28:00 why would I get a InflateException: Binary XML file line #8: Error inflating class where line #8 is pasteur: maybe a linearlayout within a linearlayout for those side-by-side textviews Jun 18 19:29:06 shekibobo: pastebin the xml? Jun 18 19:29:26 Mango_Man: https://gist.github.com/anonymous/5916723b63bf2c759b61 Jun 18 19:31:16 shekibobo: hmm, seems fine. how are you inflating the layout? Jun 18 19:32:31 Mango_Man: actually I took out the color state list for 'tint' and it loads now Jun 18 19:33:26 shekibobo: oh right, i think that's a bug in the android sdk. you should extend ImageView if you want to tint it Jun 18 19:33:27 Mango_Man: how do I achieve side by side with linear? i thought linear was beneath each other. Jun 18 19:33:54 pasteur: easy, each child view has a weight of 1 Jun 18 19:34:05 pasteur: make sure your orientation is horizontal Jun 18 19:34:57 How do you do with games? I find it frustrating that I cannot use screensize to calculate things. OK for normal user interfaces but how do you do for games when you have much more complicated graphics? if I cant trust the exact screen size this seems like it would be very hard to create games...(but obv people do it) Jun 18 19:42:31 is there a way to disable launch in Android Studio? Jun 18 19:43:20 Launch? Jun 18 19:43:38 flan3002, app launch, after running Android Tests run configuration Jun 18 19:55:14 man, I wish myt nexus 7 weren't broken... :( Jun 18 19:55:18 stupid cracked screen Jun 18 19:55:36 woulda been nice to get a nexus 8 out of google io if I coulda gotten a ticket Jun 18 19:56:25 Hi Jun 18 19:56:33 is anyone here using appcompat library? Jun 18 19:57:28 :D Jun 18 19:57:57 one or another maybe Jun 18 19:58:35 I have a problem.. or perhaps i am trying to do something that is not possible Jun 18 19:58:42 or i am doing it in the wrong way Jun 18 19:59:24 I have an ActionBarActivity with a fragment manager to navigate with the navigation drawer.. Jun 18 19:59:46 the problem is that i need to access the ActionBar inside the Fragment.. and i cant Jun 18 19:59:56 why cant you? Jun 18 19:59:59 how can iuse VISIBILITY VISIBLE _NOTIFY COMPLETED with api lvl 9 Jun 18 20:00:08 getActivity().getSupportActionBar() ? Jun 18 20:00:14 because Fragment is from compat library v4 Jun 18 20:00:19 nop Jun 18 20:00:27 that makes no difference Jun 18 20:00:30 i only get getActivty().getActionbar() Jun 18 20:00:33 not supported.. Jun 18 20:00:36 then try: Jun 18 20:00:37 no problem, it's getActivity() will get you a FragmentActivity which has getActionBar() Jun 18 20:00:43 tksko, you can just fine Jun 18 20:00:55 ((ActionBarActivity)getActivity()).getSupportActionBar() Jun 18 20:00:56 ((FragmentActivity) getActivity()).getSupportActionBar() Jun 18 20:00:56 easypeasy Jun 18 20:01:03 no, ActionBarActivity Jun 18 20:01:07 omg Jun 18 20:01:07 ups sorry Jun 18 20:01:09 yeah. Jun 18 20:01:10 let me see Jun 18 20:01:12 you just have to cast it.. Jun 18 20:01:52 coll Jun 18 20:01:53 cool Jun 18 20:01:58 i didint try with that :( Jun 18 20:02:08 oh that's right, pfn you're the Jun 18 20:02:23 ... most precise of us ) Jun 18 20:02:44 yep Jun 18 20:02:46 it works Jun 18 20:02:47 thanks! Jun 18 20:03:09 first time with the ActionBar.NAVIGATION_MODE_LIST mode Jun 18 20:03:17 is it posible to align it to the right? Jun 18 20:05:47 oi, i fell asleep watching bezos Jun 18 20:06:12 What here Jun 18 20:09:03 tksko: I dont think you can? Though, you can add a spinner and make it behave like a the actionbar dropdown Jun 18 20:10:24 yes.. i will try that way Jun 18 20:10:29 Mango_Man: Just FYI, this seems to work: https://code.google.com/p/android/issues/detail?id=18220 Jun 18 20:10:44 ty Jun 18 20:11:40 tksko: https://stackoverflow.com/questions/22991399/align-custom-spinner-to-the-right-actionbar-compat Jun 18 20:11:48 maybe that would help you getting started Jun 18 20:11:50 Money? Jun 18 20:12:06 What does android robot do Jun 18 20:12:21 what's the best way to use placeholder text in views without upsetting the linter? Jun 18 20:13:18 What place holder linter view Jun 18 20:13:39 Whatevr Jun 18 20:14:19 shekibobo: do it programmatically or use the strings xml :) Jun 18 20:14:31 another trollbot ! Jun 18 20:15:00 SimonVT? Jun 18 20:16:01 zalzice: only using them for previews in the layout editor, so.... programattically? Jun 18 20:16:31 You cant spell tt Jun 18 20:16:40 You fail android Jun 18 20:19:05 I have a question regarding the activity lifecycle. Jun 18 20:19:42 I have a reference in some code to R.layout.menu, which eclipse says is undefined. The original project contains a folder in layout called menu, but copying it over doesn't seem to resolve the conflict. Any ideas? Jun 18 20:19:46 All sleeping Jun 18 20:19:46 Is there a way (or even an idiom) that allows us to execute code that should only be performed when the application launches for the first time, rather than whenever the main activity is created? Jun 18 20:19:55 shekibobo: if its for preview in th layout editor well then programatically wouldnt help you:) Jun 18 20:20:00 Stop flood Jun 18 20:20:44 jfpoole: afaik, there is no "application" outside of one or more activities, so no Jun 18 20:21:21 jamesson: Hm. Jun 18 20:21:55 jamesson: Is there a way, then, to execute code that should only run the first time an activity is created (e.g., the launcher activity)? Jun 18 20:24:18 jfpoole: why would you want that, instead of the activity? Jun 18 20:25:35 jfpoole: is SharedPreferences an option? Jun 18 20:26:33 zalzice: Maybe! We could persist whether the activity has launched before and use that to determine if we need to execute the one-time code. Jun 18 20:30:47 what is the minimum height of a mdpi phone? Jun 18 20:38:08 there is no minimum height Jun 18 20:38:23 qvga/landscape is about as small as you'll possibly get, though Jun 18 20:38:27 so count on that being minimum Jun 18 20:41:12 so i call a method which crashes Robolectric in my activity, Debug.getNativeHeapFreeSize(), and i want to test the activity without this method crashing it. is there a way to control what Debug.getNativeHeapFreeSize() does? Jun 18 20:45:57 hm, protobuffs or flatbuffers Jun 18 20:50:25 meh, flatbuffers/android via jni Jun 18 20:50:33 * g00s passes Jun 18 20:56:27 I have a HashMap that contains key-value pairs of Strings and SeekBars. When I manipulate the SeekBars directly, things work fine, but when I do it through the HashMap reference, I get a NullPointerException. Can anyone suggest how I investigate the cause? Jun 18 20:57:52 what do yall think would be the best way to replace the app icon with the triple bar icon instead? Jun 18 20:59:05 how do i send log messages to stdout when running a unit test? Jun 18 20:59:45 On android, you would typically log something like that to logcat Jun 18 21:00:02 http://developer.android.com/tools/debugging/debugging-log.html Jun 18 21:02:17 what is the event handler in ViewPager called? Jun 18 21:03:55 JesusFreke, i'm running it in gradle and i make calls like "Timber.e("adsf")", but it doesn't seem to pick these up Jun 18 21:04:52 what do you mean you're running it in gradle? You're starting the tests in gradle? Are the tests running on your development machine, or on an android device/emulator? Jun 18 21:05:10 also, I have no idea what the "Timber" class is. Jun 18 21:22:35 my app interacts with a server using a login/logout session relationship. Logging out is as simple as calling our server logout page (php). Is there a way I can set up an intent to launch this url in an xml layout instead of having to create a new activity/function for it? Jun 18 21:24:13 http://lpaste.net/105819 <- my mp3 does not play, why? Jun 18 21:27:30 what's the best crash reporter? Jun 18 21:29:07 that amazon fire phone is around $649 off contract or $199 w/2year contract Jun 18 21:29:14 i don't see how thats going to fly Jun 18 21:29:29 they have a phone now? awww ... Jun 18 21:30:01 bankai_au yeah, sigh Jun 18 21:30:09 kind of curious to see samsungs mobile OS Jun 18 21:30:16 Tizen ? Jun 18 21:30:23 tienshenhan or whatever Jun 18 21:30:27 yeah tizen Jun 18 21:31:00 why is samsung doin their own OS? not doing android anymore? Jun 18 21:31:13 its not going anywhere fast without developer support Jesperhead Jun 18 21:31:18 supposedly tizen will support android apps and i think they said win apps too? Jun 18 21:31:37 g00s: yeah i agree. i think they're getting a little arrogant with their android success Jun 18 21:31:58 well they do realize their plan for world domination can't be achieved when google controls the software Jun 18 21:32:36 lol Jun 18 21:34:52 JesusFreke, the tests run on my machine Jun 18 21:35:14 Does System.out.println() not work then? Jun 18 21:40:22 JesusFreke, nice, actually that works, ty Jun 18 21:42:05 anyways, what are your guys thoughts on the best crash reporting service? Jun 18 21:42:54 http://lpaste.net/105819 <- my mp3 does not play, why? Jun 18 21:45:59 I do enjoy the best in crash reporting services Jun 18 21:46:21 That's my thoughts on the best at least Jun 18 21:54:48 how can i setWidth of a button in code and use dp? Jun 18 22:01:19 you have to convert it Jun 18 22:06:53 how would i simulate a connection timeout in Robolectric? Jun 18 22:12:41 https://stackoverflow.com/questions/24295577/android-mp3-does-not-play <- my mp3 does not play, why!? Jun 18 23:00:25 hey folks. anyone around? I'm getting "you are using an unsupported version of gradle. please use version 1.10" when I try to import a project into android studio Jun 18 23:00:44 thing is, I don't know enough about android dev yet to know what that even means. I didn't install gradle myself Jun 18 23:00:46 sounds like u should update grade :P Jun 18 23:01:08 I just cloned the repo, downloaded android studio, and then tried to import it (I installed the jdk first) Jun 18 23:01:26 lahwran: is studio even supported yet? Jun 18 23:01:37 "supported"? Jun 18 23:01:44 what does it mean to be "using" it? I don't see any config files in the root of the repo that specify a version of gradle Jun 18 23:01:49 supported by who? Jun 18 23:02:46 lahwran: I dont think anybody expects reliable results from anything but adk Jun 18 23:03:06 okay, so should I chuck android studio and use that? Jun 18 23:03:16 lahwran: best bet IMO Jun 18 23:03:38 lahwran: its got problems but not so youd notice Jun 18 23:07:20 I've already downloaded the adt bundle, but the version I downloaded was 20131030. should I download it again, or should I update the one I have? Jun 18 23:11:50 jamesson: ^ ? Jun 18 23:31:31 lahwran: I havent used studio and am not sure that google has made an official relaese yet. try ADT. Jun 18 23:32:22 jamesson: okay yes got it Jun 18 23:32:34 I've already downloaded the adt bundle, but the version I downloaded was 20131030. should I download it again, or should I update the one I have? Jun 18 23:32:53 also, eclipse is saying it wants jre 1.6, but I already installed 1.8. thoughts on that? Jun 18 23:34:08 start over young skywalker Jun 18 23:37:15 lahwran: I dont know where you got it. The one distributed by google is a self-contained package including a java executable. Jun 18 23:39:06 sins-: have you ever seen a situation where eclipse says a resource (R.foo) is missing but it's in the directory tree? It seems like the record in R.java does not exist Jun 18 23:55:10 twiceaday an apple is good :) Jun 19 00:07:28 g00s: much like a stopped clock:) Jun 19 00:16:05 google location services with gps+wifi enabled always return speed and bearing with zero, even in clear sky Jun 19 00:16:25 gps-only and it works fine Jun 19 00:36:47 when trying to test geofences, LocationClient.getLastLocation() returns null after setting mock mode and mock location Jun 19 00:36:51 why might this be? Jun 19 00:47:26 man, this is the perfect description of my life: http://cloud-4.steampowered.com/ugc/432648400874607803/38D7802F76D80E062FDF59048722B26EA40AA507/ Jun 19 00:51:29 that...seems kind of depressing :( Jun 19 00:51:39 my life's not all that different either D: Jun 19 00:54:04 D: Jun 19 00:54:37 well, this is very encouraging. Musk wants to let everyone bypass traditional energy companies by efficiently manufacturing & installing good solar cells on the home to charge the car; and the car battery can be used to power the home also :D Jun 19 00:54:51 glad somebody kicks big coal in the nuts Jun 19 00:54:57 musk is an idiot Jun 19 00:55:08 lolwut Jun 19 00:55:09 g00s: could also help with lowering co2 emissions Jun 19 00:55:19 why is Musk an idiot? Jun 19 00:55:25 or in the least, he's a business man, a smart one. So he markets what he does. Fools eat it up. Jun 19 00:56:08 i think its a great idea; instead of contributing back to the grid during times the power companies don't want your power, you charge your car Jun 19 00:56:11 and you know this how? Jun 19 00:56:39 g00s i wasn't speaking to that specifically Jun 19 00:57:02 tho let me know when there is a solar sell thats actually worth its cost Jun 19 00:57:07 cell Jun 19 00:57:34 he wants to create a huge plant in NY that will mfg cells that are better than commodity types Jun 19 00:57:37 Like him just saying he will put a man on mars by 2016 Jun 19 00:57:40 i think they are reaching 44% efficiency Jun 19 00:57:49 g00s lol Jun 19 00:57:49 no Jun 19 00:59:17 this is looking somewhat promising: http://reneweconomy.com.au/2014/rooftop-solar-pv-will-soon-be-cheaper-than-coal-63562 Jun 19 00:59:36 jug6ernaut 44.4% http://sharp-world.com/corporate/news/130614.html Jun 19 01:00:48 although, the new hot seems to be quantum dots Jun 19 01:01:10 maybe material science is a good degree to have right now Jun 19 01:01:12 :D Jun 19 01:01:24 g00s always is lol Jun 19 01:01:42 jug6ernaut i'm glad i cheer you up :D Jun 19 01:02:04 * jug6ernaut was never not Jun 19 01:19:08 pay attention to how often you hear corporation names, news is not news anymore Jun 19 01:21:16 wut Jun 19 01:22:54 Science is the only real news anyway :) Jun 19 02:52:07 PlayDrone pretty interesting http://www.sciencedaily.com/releases/2014/06/140618163920.htm Jun 19 02:52:52 " showing that roughly a quarter of all Google Play free apps are clones: these apps are duplicative of other apps already in Google Play " Jun 19 02:52:53 LOL! **** ENDING LOGGING AT Thu Jun 19 02:59:59 2014