**** BEGIN LOGGING AT Sun May 26 02:59:58 2013 May 26 03:48:37 I get a runtime error when my package is named "Temp.example" but not when it is "temp.example" I have a published app that has package "Temp.example" how can i force it to be capital? May 26 03:54:26 i have a grid view containing image views, and I'm interacting with them by changing the background image or setting them invisible during runtime, however I can't seem to affect the first item for some reason, although it's click event does fire…seems really odd it's only the first item while all of the others work completely fine May 26 03:59:19 double check findViewById() and see if you might have an error there May 26 04:01:55 drsun, everything is good there, i did just test removing the initial background setting (so the grid view is just completely blank) and clicking the first item seems to work as expected then May 26 04:02:17 it seems like initializing the first item with a background image is making it unable to be modified for some reason May 26 04:02:45 epop, how are you setting the images? May 26 04:03:23 i tried setting the background directly in the xml originally, and also programatically via setBackgroundResource() May 26 04:03:50 i originally was using setImageResource() instead of using the background image but that was giving me the same problem May 26 04:06:24 you mean the onItem*Click of the 1st entry does not fire ? May 26 04:07:51 epop wierd for my program i use .setImageResource() and set the src of my image view aswell, in the xml do you set the src or background? May 26 04:11:05 drsun: right now i am setting the background, but originally i was setting the src and had the same issue May 26 04:11:18 what ever method you used it's irrelevant to a click event May 26 04:11:30 totally May 26 04:11:46 are you saying the click event of the 1st item does not fire ? May 26 04:11:51 StingRay_ he said the event works May 26 04:11:55 StingRay_: the click event is firing, it's just refusing to change the image or let me make the first item invisible May 26 04:12:07 ah May 26 04:12:16 and this is powered by an adapter ? May 26 04:12:25 and your doing this in getView ? May 26 04:13:05 as in changing "backing data" and notify the adapter that the data has changed ? May 26 04:13:15 yeah, i have a custom adapter, and it's in the getView method (although it's actually acting an an object passed into the adapter) May 26 04:13:43 it's what ? May 26 04:13:58 :) May 26 04:14:23 i pass an object into the adapter that's holds references to the imageviews May 26 04:15:15 so your getView is not actually creating any views ? May 26 04:15:36 as in recycled and/or inaflated May 26 04:16:12 the getView method creates the imageViews, but it stores a reference to each imageView in the container object May 26 04:17:19 right, so your not passing an object in May 26 04:17:35 it doesn't seem to be an issue with the container object though as every item except the first works ok, and when i trace through my app with breakpoints even when the first item gets clicked everything looks ok, it's just like the first item never updates what's being rendered even though i can see the resource id changing May 26 04:18:05 the object is passed into the adapter in the constructor, not in the getView method May 26 04:18:15 I'm attempting to understand what your doing with getView May 26 04:18:34 odds are if you dont use it in a normal way, it may produce odd results May 26 04:18:49 http://pastebin.com/TMrWv1Jk May 26 04:19:24 right May 26 04:19:30 so yeah May 26 04:19:33 thats a bit wrong May 26 04:19:50 if your view != null you set no image May 26 04:20:34 point is a view like grid or list can recycle and even call out of sequence May 26 04:20:35 i originally had the imageView being created after the if/else statement, but that wasn't working for me either, seemed to produce the same results May 26 04:20:42 just to measure view bounds May 26 04:21:06 you should use a holder pattern neways May 26 04:22:19 but yeah, since there is no guarentee that any view there has any data in any order, you always need to set the data or state of position May 26 04:23:24 hey guys sorry had to step out for a bit May 26 04:23:28 oops wrong chat May 26 04:25:52 StingRay_: with what you are saying, removing the if statement and always returning the new view should work though no? (i tried that as well seeing people saying that on stack overflow but that didn't seem to have any effect either) May 26 04:26:20 no you dont need to remove the iff May 26 04:26:21 if May 26 04:26:39 just before you return the view, set the image May 26 04:29:40 hrmm, maybe I'm not explaining well enough i guess, i can set the image there, but if i try and change the image during the click event it refuses to change May 26 04:30:01 cause your probably doing it wrong May 26 04:30:08 you change the data that backs the adapter May 26 04:30:15 then tell the adapter it has changed May 26 04:30:18 it works for every image except the first though May 26 04:30:58 if your going to fight the way an adapter works, use your own, or something else May 26 04:31:02 simples May 26 04:31:03 :) May 26 04:32:40 basically look at it this way, using an adapter, you passing control of your views (all of them) to the adapter, your left with control of the data that backs the adapter May 26 04:32:53 but that should be fine in your case May 26 04:33:30 maybe I'm missing something, i thought i was just changing the data backing the adapter? May 26 04:33:48 well you have not shown what happens onItemClick May 26 04:33:53 so you dont know May 26 04:34:03 I dont know May 26 04:34:08 sure you know May 26 04:34:10 :) May 26 04:34:34 http://pastebin.com/TZfeZvuh May 26 04:35:25 well A ) that does nothing to the adapters data May 26 04:35:37 and B ) it doesnt show what your doing neways May 26 04:35:45 other than calling a method some place else May 26 04:35:49 card.getImageView().setBackgroundResource(card.getImageResource()); is what the first line of the pick method May 26 04:36:09 the game object is what's holding the data in the adapter May 26 04:36:17 see you should not be doing anything with views May 26 04:36:29 the adapter controls that May 26 04:36:54 change the data that backs the adapter May 26 04:37:01 not the views that the adapter controls May 26 04:37:05 :) May 26 04:38:19 imagine this, if I said, your only allowed to manipulate views in the adapters getView method May 26 04:38:39 you would have to change only the data that getView uses May 26 04:39:00 then for any view updates call notifyDatasetChanged() on the apdate May 26 04:39:01 r May 26 04:39:51 maybe use sparseboolean array to your base adapter May 26 04:39:56 then inside that method May 26 04:40:02 get sparseboolean May 26 04:40:07 and then notifychange May 26 04:40:44 in getView modify the view based on the sparseboolean array maybe May 26 04:53:39 StingRay_: if I create image views outside of the getView method, is that then considered 'data' that the adapter is acting on? May 26 04:53:59 no May 26 04:54:02 thats a view May 26 04:54:11 that the adapter wants control of May 26 04:54:31 data is your resource ids May 26 04:55:09 see what your attempting at the moment requires no adapter May 26 04:55:24 except your using one as if it did nothing May 26 04:55:37 but it actually does a fair bit :) May 26 04:55:55 yeah, honestly the only reason I'm using the adapter is because i can re-use the same layout item with the grid view rather than having 16 image views to manage in a layout May 26 04:56:09 and to get the grid 'layout' for free, lol May 26 04:56:29 so now then, stop fighting the adapter May 26 04:56:31 :) May 26 04:56:39 u will loose May 26 04:56:54 seems like maybe i don't want to be using the grid view at all then i suppose May 26 04:57:11 grid and adapter are fine May 26 04:57:28 you data model thats doesn't fit that pattern thats wrong May 26 04:57:31 your* May 26 04:58:14 I think you have missed the point of adapters and list/grid Views somewhere May 26 04:58:16 well my objects are re-used for other activities in my app, where they are displayed not using the grid view, so I was trying to encapsulate the image changing inside of them May 26 04:58:17 :) May 26 04:58:52 you see the data that is the resroice id ? May 26 04:59:07 on item click, change that resource id to be whatever you want May 26 04:59:16 then notifyDatasetChanged() on the adapter May 26 04:59:19 job done May 26 04:59:37 keep what I said about always setting the imageView in getView May 26 04:59:40 and your done May 26 04:59:45 tis really that simple May 26 05:00:28 but just the myData.replaceIndex(myIndex, newResource) etc May 26 05:00:35 nothing to do with any views May 26 05:02:15 k, i think i get what you're saying, just need to change how my objects are structured a bit to implement. one more question, how do i call notifyDatasetChanged() from the setOnItemClickListener? May 26 05:02:51 i see a deferNotifyDatasetChanged() available May 26 05:05:03 maybe I'm setting the click event in the wrong place, but I'm using the reference to the instantiated grid view object to create it in my onCreate() activity method currently May 26 05:05:34 thanks for the help btw :) May 26 05:50:00 hackkitten http://i.imgur.com/ZPMfKhC.gif May 26 05:57:42 g00s: that's a jiffy gif May 26 05:58:16 (i don't care if the creator calls it jif, i just can't bring myself to say it) May 26 06:03:32 thats what I'v ealways called it May 26 06:03:43 g00s that would be the one reason to ride a bike May 26 06:03:48 and I'd display something else May 26 06:05:42 ron_frown rig up your street biike :) May 26 06:05:47 gotta walk the dog, bbl May 26 06:36:45 i'm using the camera preview, it comes up right away, but the picture is dark, and then like a full second or two later it adjusts and displays normally - other apps show it initially already at the right "brightness", anyone know what I might be missing? May 26 06:49:33 I would like to in my initial activity instantiate an object, its purpose is to provide configuration information to the app, and then have each activity in the app be able to access that object. Can someone suggest a good way to do this? May 26 06:50:17 depends on what the data is really May 26 06:50:25 what types, how big May 26 06:54:46 The object is initialized with 2 strings. It has several methods that combine the strings with other constants to return meaningful values that would be needed from pretty much every activity in the app. The app is designed to be generic so that many instances of it can exist and have a different look and feel based on the Config object. The Config object is determined at runtime via... May 26 06:54:48 ...server side API cals. May 26 06:55:52 I do much the same thing May 26 06:56:02 well, probably with more sh*t May 26 06:56:16 lots more actually, got my app is full of sh*t May 26 06:56:42 but whats the max data that you would want passed to an activity ? May 26 06:56:48 just these 2 config strings ? May 26 06:59:13 Well, i was hoping to avoid passing things to Activities beyond maybe the initial screen. But yes, those 2 strings are the key. I could pass them to every activity via intentExtras, was hoping to avoid that though. May 26 07:02:55 I guess I should use shardePreferences too, that might be a little better than actually trying to pass it to each activity May 26 07:03:26 freudian slip, meant to say *could* May 26 07:05:23 well yeah. if it's just those two string shared prefs May 26 07:06:54 yea, i think i'll go that route, thanks May 26 07:17:27 * hackkitten zooms through the channel, Nyan Cat style~ (o/ May 26 07:42:35 yeesh ok figured out the camera "dark" initially issue May 26 07:42:52 hi May 26 07:43:45 i was calling startPreview immediately followed by autoFocus() - kicking off autoFocus right away was apparently locking some of the other settings in place until the autofocus finished, it's now only called on a 1 sec timer and it's now behaving normally :) May 26 07:43:56 I need to set my bank account information to sell app on google play, but fields are too short in google checkout, can someone help me about this ? May 26 07:44:24 in admob it worked with no problem May 26 08:18:15 Aloha May 26 08:22:19 https://vimeo.com/66992090 May 26 08:29:58 zomg java May 26 08:30:15 can't compare strings with equality operator, what is this nonsense lol May 26 08:30:46 not even a lint warning about it May 26 08:30:49 bah May 26 08:31:19 wow, in Android Studio the Monitor now includes DDMS and Logcat in a separate window May 26 08:31:29 is that good/bad? May 26 08:31:49 the Monitor app is an eclipse app May 26 08:31:49 no more of that depressing little screen at the bottom telling you that something has crashed so that you have to minimize it and and and ......... May 26 08:31:52 yea May 26 08:31:54 Jc_Dev: ("string".equals("string")) == true May 26 08:31:58 much better to separate May 26 08:32:44 devnull: yeah, i figured that out finally after logging the strings and scratching my head, although i omitted the redundant == true part May 26 08:32:56 That was to just illustrate May 26 08:33:04 gotcha May 26 08:33:11 .equals is always used to compare instances of objects May 26 08:33:35 (variable == null) is one of the few exceptions May 26 08:34:02 Numbers can be compared with == 123 as well. May 26 08:34:18 so .equals is for anything deriving from Object i'm guessing May 26 08:34:29 Yeah pretty much May 26 08:35:47 when you have an activity launched by an intent, there's a way to setup action bar navigation back to the caller i'm guessing? May 26 08:36:02 (as opposed to hard-coding it in the activity definition in manifest.xml) May 26 08:36:31 Yeah, you have a stack that the back button will navigate May 26 08:37:01 ok cool May 26 08:37:44 Will you take a look at my IDE concept video? May 26 08:37:54 https://vimeo.com/66992090 May 26 08:40:14 me? sure, firing it up now May 26 08:41:16 hmm May 26 08:41:40 ui is a little horrid May 26 08:41:51 not sure about the concept May 26 08:42:13 It's an entity builder at the moment. May 26 08:42:16 I use many node/DAG systems in VFX that do the same kinda thing May 26 08:42:48 Right is composited objects, left is objects that have the one in focus, above is the super class, below is classes extending the one in focus May 26 08:43:10 Quick navigation left right up down through your entities. May 26 08:43:27 I have it compiling to java and javascript skeletons right now May 26 08:43:57 StingRay_, that issue I was stuck with last time? May 26 08:44:13 dunno what that was Sicp May 26 08:44:14 solved it after some hours and came up with a great MVP for a deadline May 26 08:44:15 I'm working on providing a simple c syntax that I can cross compile to various languages. May 26 08:44:22 just AsyncTask stuff May 26 08:46:11 devnull_: looks pretty slick - i'm a bit lost as to what exactly is happening, i like how it seems to be pretty fluid and minimal though :) May 26 08:47:05 Just navigating class relationships and editing properties and methods on those classes. May 26 08:48:07 ah ok i see now May 26 08:48:09 I want to put an IDE on a tablet so I am trying to build a UI that lets you easily navigate a software project May 26 08:58:01 devnull: well i got it working without using the stack you mentioned, i'm just setting the activity to cancelled and calling finish if the user clicks Up, seems to work... May 26 09:34:43 i have a layout that's filled dynamically, how can i put dummy items in it to view when editing? I know of isInEditMode() for views, but layouts? May 26 09:35:39 the question is how to add children to a container? May 26 09:35:51 only add them when editing in IDE, not at runtime May 26 09:36:05 no idea if this is possible May 26 09:36:17 whats the point ? May 26 09:36:19 in .net/wcf windows development this is possible May 26 09:36:48 there is a "InDesignTime" flat that you can put in a CustomControl May 26 09:36:57 i have not idea if this is possible in android May 26 09:37:21 the point is that i want to verify this dynamic behaviour does not mess up layouts on device types i don't own, and to not have 100 emulators May 26 09:37:22 maybe you can question the java runtime - if it's i686 it's quite sure that you are in eclipse May 26 09:37:58 xorgate: we are speaking of a class you derived from an android container - like linearlayout? May 26 09:38:04 monsti yes May 26 09:38:29 extends ViewGroup May 26 09:38:33 ok let me rephrase my idea May 26 09:38:43 in the contstructor try to find out what java runtime you have May 26 09:38:57 if it's a i686 runtime, then try to add some dummy items May 26 09:39:01 eclipse should show them May 26 09:39:14 i'll try it May 26 09:39:20 hold i can even give you code May 26 09:39:31 i try isInEditMode() first May 26 09:39:43 yes that might be what you need May 26 09:40:30 of course you should comment out that code in production May 26 09:40:39 hmm now i want to log something when in editmode May 26 09:41:57 give me a sec - i am interessted in that, too May 26 09:48:35 ok throwing an eception works May 26 09:48:42 the editor get's the "message" ;) May 26 09:49:53 ok here's the idea May 26 09:50:06 add a TextView to your form May 26 09:50:15 findthe id of the TextView May 26 09:50:24 and if(isInEditmode) use setText May 26 09:50:35 and you get debug output May 26 09:52:57 http://stackoverflow.com/questions/14168343/how-to-debug-custom-view-in-adts-graphical-layout-editor May 26 09:53:13 even the log file ;) May 26 10:06:15 I'm trying to test a function that takes an AccessibilityNodeInfo as input. I just don't know how to create test instances of that. Help! May 26 10:09:48 Hi, I'm trying to use EJML (https://code.google.com/p/efficient-java-matrix-library/) in an android application I'm writing. I put the jar fine in /libs and added it to the build path, and I can refer to it fine within source. However, when I run it on the device I get " Could not find class 'org.ejml.simple.SimpleMatrix', referenced from method". I've tried a bunch of stuff (like adding the source as a java library/andr May 26 10:10:14 Is there something I am overlooking, or a reason EJML won't build with the project? May 26 10:17:58 NiveusLuxLucis: in the same tab click "export libraries" May 26 10:18:27 the content of the jars needs to be included in your apk May 26 10:20:38 monsti: Where am I looking? May 26 10:21:04 I tried going to "Java Build Path->Order and Export" and ticking it there, but that didn't help May 26 10:22:25 yes ... the "right" one ; May 26 10:22:53 don't add the source! May 26 10:24:59 monsti: I don't have it added at the moment. Right now, here's what I have: ejml-0.22.jar is in libs/ dir, Under 'Java Build Path->Libraries' I imported external jar and have it in there, and in 'Order and Export' the jar file is ticked. May 26 10:31:52 what dpi bucket is htc one? or values-sw600 or values-sw720 ? May 26 10:34:37 or rather, is there a webpage with a giant list of this info May 26 10:38:20 NiveusLuxLucis:: so this should work May 26 10:38:31 clean and rebuild your project May 26 10:39:27 monsti: I have, multiple times :/ May 26 10:40:14 NiveusLuxLucis: you have an aplication or an application referencing an android library project? May 26 10:41:21 monsti: I'm working on an application that references a few other android library projects (OpenCV and IOIO) May 26 10:41:42 but th jar is added to the main library? May 26 10:41:56 or just to on of the sub lib android probject? May 26 10:42:29 monsti: it's added to the main library, which is the only point it's used May 26 10:42:35 btw. that's a big pain with the build system and with each sdk update google "fixes" stuff which breaks "fixes" in older version ;) May 26 10:42:44 main application rather* May 26 10:44:10 ok here what i suggest May 26 10:44:19 copy the apk to test.zip May 26 10:44:41 and check with a texteditor if classes.dex aktually contains the code of the jar May 26 10:44:47 e.g. strings of exceptions May 26 10:44:59 if this is the case - then you have some other issues May 26 10:45:09 e.g. a sub library of the jar is missing ;) May 26 10:46:12 NiveusLuxLucis also, maybe try doing a build from the command line May 26 10:46:43 remove all /bin folders - then rebuild May 26 10:46:59 but yeah, monsti covered all the things i could think would go wrong May 26 10:47:32 and it depends on the sdk ;) the most recent sdk "fixes" that by "export android private libraries" May 26 10:47:48 monsti: How do I do that, this is the first big project I've ever really done with android and I'm just using 'build to device' May 26 10:47:52 its pathetic, their quality sucks May 26 10:47:54 i am not sure if this is the solution to all problems on planet earth May 26 10:48:06 g00s: Same question, what exactly do I have to do to build from the comand line? May 26 10:48:24 look in the docs for 'android update project' May 26 10:49:01 http://developer.android.com/tools/projects/projects-cmdline.html May 26 10:49:11 update, not create May 26 10:49:48 of course, this is all assuming you don't have a build.xml May 26 10:49:56 if you do, then just run 'ant help' May 26 10:52:36 Ok, I'll try and go through that now May 26 10:56:20 monsti i'm guessing it will be a few years before AS us usable if it goes the same way the ADT ;) May 26 10:58:40 http://pastebin.com/vQHDZhd9 im trying to integrate google play games login, but i recieve this error, anyone can help me? May 26 11:00:43 hey ;) May 26 11:03:08 monsti: How do I check if classes.dex actually contains the jar file? May 26 11:04:45 anyone know google play games? May 26 11:07:21 NiveusLuxLucis: open it with a text editor May 26 11:07:30 NiveusLuxLucis: or use grep in unix/osx May 26 11:08:11 it's a binary file - but you can search for exceptions texts that are in your jar file May 26 11:09:02 you can also try dex2jar May 26 11:20:36 if i have 100 icons in my res-folder (numbered markers to be set on a gmap).. how can i get the resources dynamically? without some huge switch-block? I've found https://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String, java.lang.String, java.lang.String) but the javadoc discourages the use of this... any workaround ? May 26 11:23:06 http://pastebin.com/vQHDZhd9 anyone know google play games? May 26 11:23:13 tortal: put them in an array somewhere May 26 11:23:19 tortal: you can get a resource by string May 26 11:25:00 tortal: is the key in your code a string? May 26 11:25:30 in my programs iprefere some meta identifyer e.g. getResource(WARNING_ICON); May 26 11:34:08 monsti: yes, the file name - they are .png in drawable May 26 11:35:18 I have some problem with OPENSL in android NDK.. Is there anyway to determine absolute latency ?? May 26 11:35:45 or.. that doesnt really make it a string.. ints in R.java but using getIdentifier(string, string, string) will find it by string key May 26 11:38:08 tortal: what do you need? the R int's or all files that are present? May 26 11:38:38 tortal i would definitely name them according to some "icon" format and use getIdentifier May 26 11:39:09 or put themin the asset folder May 26 11:39:13 maybe on init make a lookup table that goes number->resId May 26 11:39:24 which also makes sense if you just need them in a web view May 26 11:40:18 any android audio experts who can help ?????? May 26 11:42:00 Illutionist what does it have to do with the IDE May 26 11:42:13 wupz misread audio for studio May 26 11:42:29 nothing with IDE.. May 26 11:42:51 I need to find the time the speaker actually starts playing May 26 11:43:05 *just the time for some signal processing May 26 11:45:23 none here, who work on games and real time audio etc? May 26 12:15:40 hello everyone May 26 12:15:43 :) May 26 12:21:59 Hi! I'm trying to use GLES1.0 to draw a circle May 26 12:22:25 but nothing shows up on the screen May 26 12:22:32 What would be a good way to identify what's going wrong? May 26 12:23:37 um May 26 12:23:39 hm. May 26 12:23:46 liquidmetal, usually calling glGetError or whatsit May 26 12:23:55 also, making sure glClear works first for some color May 26 12:24:03 and checking what GPU driver complains about in logcat May 26 12:24:04 glClear is working May 26 12:39:36 hey, I'm trying to update a single row of my list view. I found out that I can just call getView(position, view, list) on my adapter. I tried that, the function is actually being called and it updates my row, but it doesn't re-render it May 26 12:39:58 I then tried calling invalidate() or requestLayout() on the item view itself, but the view still doesn't update May 26 12:40:01 any tips on that? :( May 26 12:41:26 .notifyDataSetChanged()? May 26 12:41:31 (on the adapter) May 26 12:42:01 getView returns you a View, but not the View displayed by the listview May 26 12:42:26 Nebukadneza: that would refresh the whole list, I just want to update one single row May 26 12:42:53 SimonVT: okay, understood. is there a way to "refresh" a single row? May 26 12:43:50 You can use ListView#getFirstVisiblePosition and getChildCount to figure out which rows the ListView is currently displaying May 26 12:43:56 If it's there, use math and fetch the right one May 26 12:44:23 yeah i did that already. I could manually update the views inside my list item, but then I'd have duplicate code (I already do that in my adapter, right?) May 26 12:45:57 You can just use getView to update the view once you have a reference to it May 26 12:46:23 saschagehlich: ahh, ok, sorry May 26 12:46:33 Your adapter shouldn't create a new view if you pass it a convertview May 26 12:47:23 SimonVT: exactly, that's what I tried already - but the row is not being redrawn, although the getView() function gets the right parameters May 26 12:47:52 Then you're doing it wrong May 26 12:51:31 SimonVT: damn - you're right. there was a bug in my code that caused the view to re-inflate May 26 12:51:33 thanks man May 26 12:52:05 http://pastebin.com/vBDHjceW - Any ideas on how to "smooth" the data im generating more elegantly? May 26 12:54:57 need help with google play games, i recieve http://developer.android.com/reference/com/google/android/gms/games/GamesActivityResultCodes.html#RESULT_SIGN_IN_FAILED May 26 12:55:09 i dont know why May 26 13:12:15 Anyone have a good resource for hacking the tablet UI settings popup? I want to add more items to it, like bluetooth toggle on/off, and a sound bar, and reducing the size of the bar May 26 13:16:18 Delvien: afaik that is manufacturer dependent May 26 13:16:52 monsti actually i think i asked int he wrong channel, my bad :D May 26 13:19:10 monsti: thanks for the input, was a bit afk - but i'll probably go with your suggested solution May 26 13:20:18 what is the difference of calling startService from onBind() or calling startForeground from onCreate() in a remote Service running in separate process ? May 26 13:21:15 and calling either ? onBind(){ … startService(); … } and onCreate() { … startForeground() … } ? May 26 13:54:59 I'm getting this error when trying to build... "Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory." I've created system variables for JDK (JDK_HOME & JAVA_HOME) that point to my folder. Anything else I need to do? May 26 13:55:32 fwaokda, do you use Android Studio? May 26 13:56:09 yeah May 26 13:56:23 well at the moment May 26 13:56:33 just playing with it on some small projects May 26 13:59:44 fwaokda, that's what I am doing as well :) May 26 13:59:50 let's try this May 26 14:00:02 select the application in project structure May 26 14:00:52 right click it, and Open Module Settings there May 26 14:01:12 hi, I have a listviews (lv1, lv2) and changing backgroundcolor on lv1 items it changes some of lv2 items May 26 14:01:53 SpearThruster, alright I'm there right now looking for something JDK relevant May 26 14:06:25 fwaokda, yes May 26 14:06:47 fwaokda, you need to download the Oracle Java from their website May 26 14:07:03 select the project tab, then on try to add new Project SDK\ May 26 14:07:09 and then setup the JAVA_HOME variable to point to the place you extracted it May 26 14:07:23 also check if you REALLY have the JDK_HOME variable set properly May 26 14:07:28 I'm using GoogleAuthUtil.getToken with an accountName (gmail address) to authenticate user in my Android app. Anybody know how to get the full display_name from that? When I iterate through ContactsContract.Profile the display_name only contain my mobile number... May 26 14:13:03 I'm trying to render a square using the android-breakout sample May 26 14:13:07 anyone familiar with that? May 26 14:13:31 https://code.google.com/p/android-breakout May 26 14:14:09 I already have two listed there though May 26 14:14:41 Android SDK (java version "1.7.0_21") and 1.7 (java version "1.7.0_21") May 26 14:15:32 liquidmetal, i believe i've already done that May 26 14:15:59 did JDK_HOME required to point to INSTALLATION_DIR/bin ? May 26 14:16:00 fwaokda, echo $JAVA_HOME May 26 14:16:07 yes May 26 14:16:08 yes - the bin directory May 26 14:16:13 liquidmetal where do i do that? May 26 14:16:38 Run -> cmd.exe May 26 14:16:45 on the terminal where you're opening androidstudio from May 26 14:17:13 if you are using Windows May 26 14:17:19 I did it and it just repeats $JAVA_HOME May 26 14:17:22 then: echo %JDK_HOME% May 26 14:17:26 oh ok May 26 14:17:55 https://code.google.com/p/android-breakout anyone here familiar with this sample? May 26 14:18:07 fwaokda, also did you have the JDK_HOME on your classpath? May 26 14:18:07 i got "C:\Program Files\Java\jdk1.7.0_21 May 26 14:18:18 eww sorry no classpath May 26 14:18:20 just PATH :> May 26 14:18:33 fwaokda, there should be a \bin at the end May 26 14:18:41 and yes, there should be a bin at the end May 26 14:18:41 oh! ok thanks May 26 14:18:42 X_X May 26 14:18:43 I knew it May 26 14:18:43 :D May 26 14:18:54 ha thanks fellas May 26 14:18:54 SpearThruster saves the day! May 26 14:22:24 hmm says its set to an invalid directory now x( May 26 14:22:52 so i have the following... May 26 14:23:33 JAVA_HOME = C:\Program Files\Java\jdk1.7.0_21\bin & JDK_HOME = C:\Program Files\Java\jdk1.7.0_21 May 26 14:23:55 If I add "\bin" to JDK_HOME I noticed that my android studio wouldn't open May 26 14:24:52 Where are you doing these changes? May 26 14:25:01 JAVA_HOME shouldn't have \bin May 26 14:25:07 in the environmental variables dialog box May 26 14:29:39 well appears to be working now whatever was changed May 26 14:29:55 now just getting a different error with the library im trying to include, thanks for the help! May 26 14:30:17 lol@codebutler May 26 14:30:21 awesome name May 26 14:33:47 Does checking if(savedInstanceState == null) in onCreate callback is good ? May 26 14:35:43 good day! I hope noobs are welcome here! :) May 26 14:35:54 can I ask a simple question? May 26 14:37:32 Tarzan_: don't ask to ask... May 26 14:38:07 sorry I am on the wrong channel. I just saw the header May 26 14:38:21 I have a question about customizing a rom May 26 14:41:12 bluesm: define good. it's helpful May 26 14:42:45 nioncode: I mean if there is other way to check if app was "restored" or is just started for "first time" May 26 14:43:45 bluesm: don't think so, why do you want to have another way to do it? May 26 14:45:02 nioncode: I don't like to call every time "if" May 26 14:45:43 bluesm: haha. how do you want to decide it without an if? why don't you want to use if in the first place? May 26 14:49:26 anyone here familiar with android-breakout? May 26 14:49:56 anyone here familiar with gradle builds? X_X May 26 14:50:07 I can't setup a simple google maps project May 26 14:50:28 that includes google-play-services_lib project and myApp May 26 14:54:32 hey SpearThruster i got android studio to work finally May 26 14:54:37 took me all night May 26 14:54:41 to work out what was wrong May 26 14:54:45 but i got it in the end May 26 14:55:17 Zeppelin May 26 14:55:20 do tell :D May 26 14:59:36 nioncode: Hmm. Maybe should be stand alone callback. That allow me get my "bundle" May 26 15:00:10 bluesm: you already get your bundle passed, why do you want to have a callback for that? May 26 15:00:27 did anyone ever had this issue? Its on a device with playstore, a valid GCMID, ... java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf May 26 15:00:27 com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98) May 26 15:00:32 nioncode: To eleminate "if" May 26 15:00:47 bluesm: why? May 26 15:01:09 nioncode: Because ifs are evil. May 26 15:01:21 bluesm: hahahaha May 26 15:01:23 ifs are evil? May 26 15:01:41 what do you prefer instead? switch cases? gotos? haha ;) May 26 15:02:07 you cannot even replace ifs with a switch or gotos^^ May 26 15:02:23 of course it's possible. May 26 15:02:31 misterli: Just eliminate ifs if posiible May 26 15:03:16 misterli: you can't switch strings e.g. May 26 15:03:32 yeah but you may convert them May 26 15:03:58 would still work. if (condition()) {} switch (i=(condition) ? 0 : 1) {case 0: ... break; case 1: ... break;} or similar. May 26 15:04:11 yeah, but it's like a "if" within a switch May 26 15:04:23 very nice looking code :) May 26 15:04:51 misterli: In the other extreme you could have one method. That would pass the "state" and you'll switch (state) { case 1: case "created" : something() break;} and so on .. May 26 15:05:08 But we have callbacks. So you don't have to. May 26 15:05:11 Right ? May 26 15:05:24 Yeah, it's not needed but why should if's be evil? May 26 15:06:21 misterli: They are not evil. But there are evil when they are not needed. (as far I'm concerned) May 26 15:06:32 Yeah, that's true ;-) May 26 15:07:31 but it is needed here May 26 15:08:29 nioncode: Is we would have appropriate callbacks. Probably not. May 26 15:10:07 you cannot use a callback, because you need the bundle inside onCreate to properly handle it, don't you? May 26 15:10:23 nioncode: I mean callbacks that is started only when app is started. May 26 15:10:43 and that would be helpful because? May 26 15:11:30 nioncode: You could then "set default values" (in this callback that is started only when app is first time started) May 26 15:11:45 "When the app is started" doesn't make sense May 26 15:11:54 The app could already be running, just not displaying any activities May 26 15:12:08 SimonVT: When is not in background. May 26 15:12:54 I don't think you've thought this through May 26 15:13:02 nioncode: And then on callback onCreate (which would be called only when restarted) you'd always get values from bundle. May 26 15:15:07 onCreate that's only called when the bundle exists is called onRestoreInstanceState May 26 15:15:50 The bundle has to be passed to onCreate since some setup should only happen when not restoring from state May 26 15:15:55 Like adding fragments May 26 15:16:27 he probably wants a callback before onCreate for fragment setup etc and one after onCreate for state restore May 26 15:23:27 SimonVT: I just wanted to get rid of if(savedInstanceState == null) May 26 15:23:37 "When an object of a type is attached to an Editable, its methods will be called when the text is changed." May 26 15:23:50 "When an object of a type" <- What does it mean ? May 26 15:39:06 Can I look at the code of say : TextWatcher clas ? May 26 15:39:09 *class ? May 26 15:57:55 http://screensiz.es/ May 26 16:00:55 Don't use that if you want the right density bucket May 26 16:04:36 Hi Everybody! May 26 16:04:59 Hi Dr. Nick! May 26 16:08:55 hahah May 26 16:09:36 SimonVT, wat? May 26 16:10:22 also that site is wrong May 26 16:10:29 it says n7 is hdpi May 26 16:10:46 and it says "200%" is hdpi May 26 16:10:50 and "300%" is xhdpi May 26 16:10:58 so ok May 26 16:10:59 i get it now May 26 16:11:04 ^_^ May 26 16:11:41 I just looked at galaxy nexus and saw that it was listed as hdpi.. May 26 16:24:29 capella: ;-) May 26 16:24:48 hehehe May 26 16:26:57 Why if I create TextWatcher I have to overwrite all methods ? May 26 16:27:45 http://pastebin.com/d2W6NFpM , at line 53 the adapter takes a layout, what is that layout used for? Because at line 69 I can specify another layout which will be the layout shown on the listview May 26 16:27:46 because it's an interface May 26 16:54:08 okamis_: That's because you're using ArrayAdapter wrong.. You're not meant to override getView May 26 16:54:21 Once you do that, there's no point in using ArrayAdapter anymore May 26 16:55:34 SimonVT: where else would I put the information? I need a textview for socket.name(), and a togglebutton to turn on/off electricity May 26 16:56:10 There are other adapter classes you can extend from May 26 16:56:13 Like BaseAdapter May 26 16:57:02 I should use TextView or EditText to show data ? May 26 17:03:26 bluesm: Textview, edittext is a textview that is editable, which is kind of like an inputfield May 26 17:04:40 okamis_: But if I want to operate only by "setText()" I should use TextView ? May 26 17:05:53 in code yes, but if u want to be able to push the edittext to get a keyboard you want edittext May 26 17:06:49 SimonVT: the real question i want to ask is, even if I use my adapter wrong how could that affect other views that wasnt even in the adapters list? May 26 17:10:21 ArrayAdapter is a convenience class for displaying a list of text. It's easy to use since you just pass it a layout and a list in the constructor, and you got yourself an adapter that's ready to be set on a listview.. May 26 17:10:30 When you override getView, you're overriding everything it does May 26 17:10:36 There's no point in using ArrayAdapter anymore May 26 17:11:28 I have a published app with a package name like "Example.example", I'm making an update for that app from scratch but i get an error when i change the packge to "Example.example" i have not problems if the package is lowercase just the capital gives me a runtime error. any ideas? May 26 17:19:49 I changed it to a baseadapter as you instructed, though the getItemId(int arg0) should return the row, is the row the same integer as arg0? May 26 17:23:31 If you don't have a unique id for the row, just return the position (better known as arg0 in your code) May 26 17:24:29 Why we can't get view statically ? May 26 17:24:35 I mean in class declaration ? May 26 17:40:41 For some reason I'm getting "invalid drawable tag CheckBox" in action bar sherlock but I can't find anything on Google about it May 26 17:45:54 whats up yall May 26 17:56:21 the sky May 26 17:58:49 Is there a way to put % in editText ? May 26 17:59:08 If i want to tell user that he is inputing % ? May 26 18:02:31 settext("%"); ? May 26 18:14:29 What's the best way of getting a method to return both a List and an integer? May 26 18:15:12 create a private class that holds both members? May 26 18:16:00 that's one option May 26 18:16:04 it's scalable May 26 18:16:10 you can also return a Pair May 26 18:16:17 but that obviously only works for two May 26 18:16:27 unless you start doing Pair I do miss tuples like in Python sometimes. May 26 18:33:23 i prefer the custom object though May 26 18:33:55 MyClass result = getResult(); int statusCode = result.getStatusCode(); String[] headers = result.getHeaders(); May 26 18:33:55 etc May 26 18:34:10 much more clear what everything is, and harder to accidentally assign something to the wrong place May 26 18:47:04 What this format means "%.02f" ? May 26 18:51:08 For some reason I'm getting "invalid drawable tag CheckBox" in action bar sherlock but I can't find anything on Google about it May 26 19:04:44 bluesm: Prints at max two decimal places, will pad with 0s if needed. May 26 19:05:23 pad ? May 26 19:07:35 bluesm: http://ideone.com/HLJXHR May 26 19:08:25 100 does not have non-zero decimal places, however, the zeros are inserted (the ouput is "padded") to match other outputs. May 26 19:08:51 So you can more easily align them. May 26 19:11:52 kakazza: How it is called. I mean %.02f Where I can read about the specific chars in formats ? May 26 19:12:12 % <- placeholder May 26 19:14:15 Format string. Here's a few examples. http://alvinalexander.com/programming/printf-format-cheat-sheet May 26 19:15:08 Here the official tutorial http://docs.oracle.com/javase/tutorial/java/data/numberformat.html May 26 19:15:48 Do you have any idea how the android dropbox app word? I mean how does it identify that an image has been taken with the camera? May 26 19:18:34 works*, lol May 26 19:19:46 mystiiq: you can use a ContentObserver on the MediaStore May 26 19:20:13 or a very silly and stupid polling May 26 19:20:23 onTimerTick() ... May 26 19:20:38 polling is kinda stupid :) May 26 19:20:42 Is there no Intent sent when pictures are taken? May 26 19:20:59 no May 26 19:25:42 Hi, I have a service running in an app. The service starts a background thread which listens to audio and send some data over bluetooth. When I start the app and service, and then close the app by swiping it to the side in the task switcher, the service thread seems to stop.. (but onDestroy() isn't called for the service). Any ideas why? May 26 19:26:26 onDestroy is only called if android want's to kill the activity May 26 19:26:40 this happens in two cases May 26 19:26:50 1)out of memory - and some activities have to die May 26 19:27:05 2) if you started an activity with startActitiyForResult May 26 19:27:15 maybe you want to use onStop May 26 19:27:48 onDestroy() is called for the activity. That is fine. It isn't called for the service - that is also fine. But for some reason the thread in the service stops anyway. May 26 19:27:51 that gets calles when the activity goes to the background - but also before onDestroy May 26 19:28:18 yes that's because i always use AsyncTask and not java threads May 26 19:28:28 Timmmm: how are you determining that your thread has stopped? May 26 19:28:43 Uhm, onDestroy isn't invoked when you call startActivityForResult.. May 26 19:28:48 kbs: It prints data in a loop and the printouts stop. May 26 19:28:55 (to logcat) May 26 19:29:23 Timmmm: ah, I see -- okay. May 26 19:29:31 and you can't determine the threads id anymore in eclipse/DDMS? May 26 19:31:41 monsti: I can, but android kills the entire process, including my service and the threads. May 26 19:31:57 well that's ok May 26 19:32:09 no bug May 26 19:32:28 Services aren't supposed to be killed! May 26 19:32:37 (or so the docs say) May 26 19:32:57 well unless you eat all the ram May 26 19:33:04 or do any other bad stuff May 26 19:33:09 monsti: Well I'm not... May 26 19:33:55 kakazza: Thanks :) May 26 19:35:12 You told android to kill it when you swiped it away May 26 19:36:51 SimonVT: Most apps don't stop their services when you swipe the activity away. May 26 19:37:22 SimonVT: E.g. if I start playing music, then swipe away the music app, the music doesn't stop playing. May 26 19:37:34 ondestroy is called on activities though May 26 19:37:53 and activities are cleaned up May 26 19:38:04 same as if you press back out of the app May 26 19:38:26 Timmmm: i start services with application level context scope May 26 19:38:55 no idea if that's the reason why i have no troubles ;) May 26 19:38:55 Probably because it's a foreground services May 26 19:38:59 Or maybe they set some flag May 26 19:39:07 Regular services will get killed May 26 19:39:20 Timmmm, btw, more impotantly: are you keeping the CPU running while the screen is off? May 26 19:39:33 since if you're not, your service will silently pause :) May 26 19:39:37 yeah that's a big question, too May 26 19:39:40 Mavrik: Yes. Got a wakelock May 26 19:40:02 SimonVT: Ah I think that might be the answer. Didn't know there is an actual difference between foreground and background services. May 26 19:40:37 Yeah, usually it's just the name with these kinda things. May 26 19:40:45 >_> May 26 19:41:30 Ah, found the answer. If you use bindService() rather than startService(), android will kill the service as soon as there are no clients bound to it. May 26 19:41:36 http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle May 26 19:43:53 when orientation changes, is it necessary to do getFragmentManager().beginTransaction().replace(...) again? or will the Fragment's be re-attached automatically? May 26 19:50:03 alexfu: will be reattached, check if your bundle is null in onCreate to setup your fragments May 26 19:50:56 nioncode: gotcha, so I should only really be performing a FragmentTransaction once? May 26 19:51:48 alexfu: what do you mean by once? May 26 19:52:54 nioncode: so, current, I set up my fragments in onCreate, but each time onCreate is called, I am doing.. getFragmentManager().beginTransaction().replace(...) May 26 19:53:28 nioncode: based off of what you said, I should have condition in onCreate such that getFragmentManager().beginTransaction().replace(...) is only executed once, correct? May 26 19:53:30 alexfu: as I said, check if your savedInstance bundle is null and if it is, do your fragment transactions, otherwise do nothing May 26 19:53:39 alexfu: yes May 26 20:01:22 Oh aha, I found the *real* reason! When you swipe away an app with a service, android actually *always* kills the service, and then immediately restarts it if you set it to be sticky. So retarded. May 26 20:06:46 I don't think this is true May 26 20:09:36 How can I make it so that the hot dog menu is not closed when an item is clicked? May 26 20:12:44 I'm trying again; After calling GoogleAuthUtil.getToken with a gmail address, does anybody know where/how to get the full name attached to the account? I've tried ContactContract.Profile lookup, but that only returns a phone number as display_name. May 26 20:13:19 And I want to avoid "logging into" Google Plus as well (a whole new set of dialogs and confirmations...). May 26 20:14:16 kjeldahl: what about reading the docs? http://developer.android.com/training/id-auth/identify.html May 26 20:15:17 Hey! May 26 20:15:22 Yo! May 26 20:15:40 mmmmmmmm .... hot dogs ... May 26 20:15:44 What's a good book to start me off on Android development? if I'm a intermiedate java programmer? May 26 20:16:07 I've been learning by reading examples from the google website May 26 20:16:09 just read the android docs, they are pretty good to start May 26 20:16:37 Official Android Training and Guide, yes. May 26 20:17:43 nioncode: I did, didn't find it. Looks like a separate (http) call to oauth2 userinfo could work (same as used by my server end). I was hoping I could get it from the device directly. *Sometimes* the display_name from ContactsContract.Profile does return the full name, but I haven't figured out how it fits in with the getToken calls yet. May 26 20:18:14 kjeldahl: did you read the page? it tells you exactly how to get the account name May 26 20:19:21 kjeldahl: oh, but that is only the email address and you want the user name right? May 26 20:19:23 nioncode: accountName is the gmail address, not the persons name, if I remember correctly. May 26 20:19:31 nioncode: Correct. May 26 20:20:28 Can someone help me with a menu please May 26 20:20:55 kjeldahl: then get the user name from the oauth api, this should work May 26 20:20:57 whats the hot dog menu May 26 20:21:01 http://www.hillbillyhotdogs.com/menu.php May 26 20:21:16 oh it's the default menu in the action bar May 26 20:21:27 one of the docs from google called it that heh May 26 20:21:51 nioncode: Yeah, but it doesn't. userinfo only returns the id and tokeninfo has some information (like user_id), but no name. *sigh* May 26 20:22:41 Useless - https://developers.google.com/accounts/docs/OAuth2Login#obtainuserinfo May 26 20:24:03 And this https://developers.google.com/accounts/docs/OAuth2Login#obtaininguserprofileinformation wants me to pull Google+ into it as well. That gets real messy real fast. First select account and log in, the log in to G+ as well with additional confirmations. May 26 20:24:06 I have a series of Check options. And the menu closes once anything is clicked so the user can't change other options. May 26 20:27:15 kjeldahl: https://www.googleapis.com/oauth2/v1/userinfo returns everything needed May 26 20:28:31 oh, there is already a v2 call for that too May 26 20:29:33 How is the default menu brought up when the user clics on the button in the action bar? is that outside of the app? May 26 20:29:37 there is even a link to the user's picture May 26 20:30:19 x2mike2x: what menu are you talking about? the overflow menu? May 26 20:30:34 nioncode: But that still does not return the persons name. May 26 20:30:55 kjeldahl: it does, even first name, family name May 26 20:31:29 nioncode, I'm sorry I'm very new. When the app is created in eclipse by default it has an action bar. That bar has a single settings button with horizontal lines May 26 20:32:32 x2mike2x: I never used eclipse, so I don't know what it does by default. send a screenshot May 26 20:35:09 nioncode, on I guess it's just three dots May 26 20:37:20 ok, this is the overflow menu then May 26 20:37:22 nioncode: Rly? From https://www.googleapis.com/oauth2/v2/tokeninfo?access_token=SOMEVALIDTOKEN I get http://pastebin.com/kk7K63G8 . Any idea why? May 26 20:38:16 kjeldahl: did you set the https://www.googleapis.com/auth/userinfo.profile scope? May 26 20:38:36 kjeldahl: checkout https://developers.google.com/oauthplayground/ May 26 20:40:05 nioncode: Thanks, digging into it now. May 26 20:41:01 nioncode, So how is the overflow menu called? May 26 20:41:10 hey! Is there any way to disbale battery recharge when you have your device connected to a computer via usb? May 26 20:41:24 x2mike2x: when you click on the button, it is handled by the framework for you May 26 20:41:37 gulli: don't think so, why would you want to do that? May 26 20:41:48 save batterylife May 26 20:42:14 shouldn't hurt the battery noticeable May 26 20:42:45 nioncode, is there a way to call it within my onClick method so it instantly reopens? May 26 20:43:52 x2mike2x: why would you want to do that? May 26 20:44:18 nioncode, or to stop it from closing after onClick executes May 26 20:45:25 nioncode, I have a menu with checkbox options. I want to user to be able to go through them without reopening the menu May 26 20:46:30 simply don't do that. why would you want to have a checkbox in the overflow menu? that doesn't make sense, because the action bar should be used with actions, not with options May 26 20:47:34 nioncode, ok where would I put the options? May 26 20:47:53 depends on what these options are May 26 20:47:56 nioncode, just have a settings button in the overflow. and have that take me to a new activity? May 26 20:48:21 yes, you can do that if the checkboxes are not frequently changed May 26 20:48:49 nioncode, app is super simple. fist one. just trying to take an input dollar value and make change for it. The options just toggle on or off each type of coin May 26 20:50:03 x2mike2x: then put the options on the screen inside your layout, seems like they are used often May 26 20:50:20 nioncode, So should the new activity use normal buttons? As opposed to menuitems? May 26 20:50:56 x2mike2x: which new activity? May 26 20:51:24 nioncode, after hitting settings. If I didn't want them always on screen. May 26 20:51:50 nioncode: Added the scope. That pulled in additional confirmation dialogs, but in the end still no username. See http://pastebin.com/JiW6Z4kN May 26 20:51:52 x2mike2x: I don't really get what the control flow of your app is May 26 20:52:07 nioncode: Still no person name I meant. May 26 20:53:14 kjeldahl: do you make the request to the userinfo resource? you only pasted the tokeninfo May 26 20:54:03 nioncode, help kjeldahl his issue seems more pressing May 26 20:54:06 nioncode: Bingo, you're right. Now userinfo returns the goodies. Thank you for taking the time! May 26 20:54:44 kjeldahl: glad I was helpful :) May 26 20:57:35 nighoo, well the app is just an input field, a submitt button, and a result returnd(hopefully on the same screen) May 26 20:57:55 nioncode, above was for you May 26 20:57:56 sorry May 26 20:58:50 x2mike2x: ok, now what goes into the input field, what does the submit button and what should go into the result? what role do your options play here? May 26 21:00:08 nioncode, oh sorry. input a dollar amount. submit. get back best change for it. input 0.27 returns "1 quarter, 1 nickle, 2 pennies" May 26 21:00:57 nioncode, the settings will let you toggle of a type of coin. so with nickles toggled off the result would be 1 quarter 7 penies May 26 21:01:10 nioncode, I meant 0.32..... May 26 21:02:12 x2mike2x: ah ok. then just change your layout to have your coin options between your input field and submit button, preferable layed out horizontally May 26 21:05:16 nioncode, That would be a great way to do it. But I want to learn to make a seperate options menu. I don't care so much about practicality. Just practicing things. May 26 21:05:38 x2mike2x: then think about another use case :D May 26 21:05:48 nioncode, not trying to be difficult haha May 26 21:06:26 x2mike2x: then just put a settings button in your overflow menu and start a preference activity May 26 21:06:58 nioncode, then just have in there? May 26 21:07:27 nioncode, no reason to use ? That's just for the action bar and popups? May 26 21:07:38 x2mike2x: no, checkboxes of course May 26 21:07:57 x2mike2x: check out the docs about preferences, you don't create these layouts yourself May 26 21:08:21 alright May 26 21:13:38 anybody have any idea how to solve this error? May 26 21:13:39 http://pastebin.com/tvqdY1d8 May 26 21:15:52 btw. is eclipse really that bad, that file/export can't save the clicks i made? May 26 21:16:09 it's so anoying to click 10 times for exporting a source only jar file May 26 21:22:59 intellij May 26 21:23:35 well - i still can't believe that eclipse is THAT bad :( May 26 21:24:04 intellij May 26 21:24:23 windows me May 26 21:24:24 emacs ! May 26 21:24:40 i know how to write ant files May 26 21:24:52 but i can believe eclipse is THAT bad :) May 26 21:25:16 probably pebkak :) May 26 21:25:46 well proably i am to stupid for eclipse May 26 21:26:00 Or typing. May 26 21:26:22 ;) May 26 21:30:18 Visual class editor I'm building, trying to make a tablet ide. https://vimeo.com/67018462 May 26 21:51:39 I created a prefereces xml file in res. How do I give it an id value in R.java? May 26 21:53:37 you don't May 26 21:55:59 I'm not sure how to set up the onCreate May 26 21:56:01 http://developer.android.com/guide/topics/ui/settings.html#Activity May 26 21:56:13 I'm looking at Using Preference Fragments May 26 21:56:43 ok, what is your issue? May 26 21:58:18 nioncode, where it shows the code to set up the fragment the last line is add.PreferencesFromResourse() I'm confused about the input May 26 21:58:54 x2mike2x: input is just your xml filename May 26 21:59:41 it is res/xml/preferences.xml May 26 21:59:54 then do R.xml.preferences May 26 22:00:37 oh. eventhough there is no xml class under R? May 26 22:01:13 I made the XML folder under res per the docs May 26 22:01:14 the build tools will setup everything for y May 26 22:01:59 do I need to run them or anything May 26 22:02:21 they run on every build of your app May 26 22:03:07 I am getting an error on that input "xml cannot be resolved or is not a field" May 26 22:04:12 paste your sourcecode May 26 22:04:31 my fault May 26 22:05:03 I had be trying a few. the file I was working with was created under layouts leaving folder xml blank... May 26 22:05:18 now it's happy May 26 22:05:27 good May 26 22:05:37 this is exhausting haha May 26 22:06:02 I need to go through more tutorials before venturing out on my own. May 26 22:07:50 So now I want the "settings" button to run that onCreate? May 26 22:08:42 The links you posted provides code on how to display that fragment. May 26 22:09:55 link* May 26 22:11:36 kakazza, thanks May 26 22:17:17 hey it's sorta kinda working! May 26 22:18:31 sorta kinda is the best kind. May 26 22:31:05 I'm trying here. but I can't figure out how to change the way the settings menu looks because it's not a layout May 26 22:36:06 hi May 26 22:37:32 Why I can't set my hong kong hsbc account to receive payments for applications sold on Google Play ? The fields are not long enough to fill the account information... May 26 22:37:36 Hi May 26 22:38:54 Hi can i get some help here May 26 22:39:03 no May 26 22:39:05 wrong channel May 26 22:40:17 funkbox: Shh. May 26 22:40:37 I mean to get somebody to decompile an apk and the dex inside the apk and then replace the files that you just decompiled and replace them with the git version May 26 22:41:17 why don't you just compile the git version? May 26 22:41:31 He doesn't have a desktop available. May 26 22:41:41 Thats right May 26 22:42:14 and how should he decompile on his phone? May 26 22:42:24 he wants you to May 26 22:42:41 then I can compile the git version as well May 26 22:43:28 I found an app called apktool but i xant get it to work because im not rooted May 26 22:44:35 This is the app that mightbwork to decompile an apk on phone https://code.google.com/p/apktool/ May 26 22:44:49 Bur you need to be rooted May 26 22:48:03 anyone here familiar with volley? im scrolling up and down a list with images, using NetworkImageView, and it seems to be fetching them every single time May 26 22:48:06 like no cache or something May 26 22:49:40 JakeWharton would say "Use Picasso with OkHttp" May 26 22:49:58 i would May 26 22:50:21 \o/ May 26 22:50:21 is volley supposed to have a disk cache May 26 22:50:25 or do i have to set that up manually May 26 22:50:58 last I used it you had to give it a disk cache to the RequestQueue constructor May 26 22:51:08 Hmm, on that note. The disk cache in Picasso, is it stand alone, like DiskLruCache? May 26 22:51:16 * kakazza fires up the code May 26 22:51:25 Picasso doesn't have a disk cache, it uses the HTTP client's May 26 22:51:39 Ah May 26 22:51:39 hmm it uses a disk cache by default May 26 22:51:41 allegedly May 26 22:51:42 but this shit is slow May 26 22:52:01 kakazza: why reinvent something that already works perfectly fine May 26 22:52:10 :) May 26 22:52:10 plus most libraries implement disk caching wrong anyways May 26 22:52:32 You keep saying that. Which is why I want to look at your "right" implementation. May 26 22:53:16 oh its using the internal cache dir May 26 22:53:35 the right implementation is just to make an HTTP request May 26 22:53:48 if you have a client that doesn't suck, everything will be transparent May 26 22:54:12 The apk and dex file i want to be decompiled is http://fbreader.org/files/android/FBReaderJ_ice-cream-sandwich-2.0beta8.apk the dex file is inside the apk file. The git that i want the files replaced with is at https://github.com/geometer/FBReaderJ/tree/beta-ics or you can compile the git from https://github.com/geometer/FBReaderJ/tree/beta-ics if you would like but i would like it if the signature in the apk file link i link May 26 22:54:36 yeah i doubt anyone is going to do that for you May 26 22:54:45 Why May 26 22:55:10 Or just compile the git for me then May 26 22:55:34 What about the case where I do not make HTTP requests but want to fill a gallery, listview,... from local images? To make the scrolling smoother, I'd probably naïvely use a HashMap with SoftReferences or something. May 26 22:55:59 I know a disk cache would be redundant in that case, as I would already be loading them from disk. May 26 22:56:14 It would be nice of you compile the git that the signature is the same as the apk file i linked to May 26 22:56:31 kakazza: right, there's no disk caching there because the images are on disk May 26 22:57:07 Fandroid it would nice if you could help me May 26 22:57:08 I know this is unrelated to the original question, but is a HashMap with WeakReferences the way to go in this case? May 26 22:57:51 for a memory cache? May 26 22:58:42 AndroUser1234: As I said, I don't have the tools for this. May 26 22:58:44 Yep May 26 22:59:03 I known thay fandroid but help me get somebody May 26 22:59:18 I wouldn't use a weak reference for it May 26 22:59:24 But? May 26 22:59:59 GUYS. May 26 23:00:05 PAY ATTENTION. May 26 23:00:14 Ah, I see. https://developer.android.com/training/displaying-bitmaps/cache-bitmap.html#memory-cache May 26 23:01:26 Neer somebodys help May 26 23:02:07 Can somebody help me May 26 23:02:56 nobody is going to help you decompile an apk May 26 23:03:05 i can tell you were to look for resources to help May 26 23:04:37 Guess I'll go with what d.android.com offers as a memory cache. May 26 23:04:51 (once I actually need it, I'm just curious at this point) May 26 23:05:35 Also completely unrelated, should I do Locations myself or use something like https://code.google.com/p/little-fluffy-location-library/ May 26 23:06:02 I known were and how to decompile apk May 26 23:06:10 I dont have a computer May 26 23:10:08 It would be nice if nobody will decompile the apk to compile the git https://github.com/geometer/FBReaderJ/tree/beta-ics but has the signature is the same as the apk file here http://fbreader.org/files/android/FBReaderJ_ice-cream-sandwich-2.0beta8.apk May 26 23:10:47 Jakewharton what May 26 23:11:07 kakazza: use Google Play Services May 26 23:11:33 For Location? May 26 23:11:38 yes May 26 23:12:00 https://developer.android.com/google/play-services/location.html May 26 23:12:00 https://developer.android.com/google/play-services/location.html May 26 23:12:02 sweet May 26 23:12:08 Heh, you beat me to it. May 26 23:13:36 It would be nice if somebody will decompile the apk to compile the git https://github.com/geometer/FBReaderJ/tree/beta-ics but has the signature is the same as the apk file here http://fbreader.org/files/android/FBReaderJ_ice-cream-sandwich-2.0beta8.apk May 26 23:13:41 * capella must .... control ... fist of death .... 💀 May 26 23:13:47 AndroUser1234: stop asking May 26 23:13:58 capella let the first of death go ! May 26 23:14:13 Ok May 26 23:15:00 Hmm, do all devices have the Google Play services APK? May 26 23:15:24 Not all devices May 26 23:15:31 2.2+ with Google Play installed should May 26 23:15:35 if not, it will prompt them May 26 23:15:48 I'm trying to run one activity from another. I see that I need an intent. But I'm not sure how to make a context to put in said intent May 26 23:15:56 The ones that are google certificed would have them May 26 23:16:04 Not sure how I'd react if I installed an app that needs additional dependencies to run. May 26 23:16:50 you haven't even noticed May 26 23:17:00 Well, I uninstalled them >_> May 26 23:17:00 that's how you would and did react May 26 23:17:45 Just find the apk for the newest version of google play services then May 26 23:18:48 It should install May 26 23:20:19 Need help May 26 23:22:01 as a potential android developer, is there any reason I might regret getting a nexus 4? May 26 23:22:40 nioncode you said you could help me May 26 23:23:31 nioncode can you respond May 26 23:24:08 lahwran: they might release a white one in two weeks May 26 23:24:12 other than that, no May 26 23:24:33 And have android 4.3 jelly bean May 26 23:25:02 Jake you forgot that May 26 23:25:03 JakeWharton: hm, that's not really a dev-specific thing ;) May 26 23:25:46 JakeWharton: I come in here to ask because my android dev coworkers are constantly complaining about the galaxy s3's video capture api, and I'm just curious if there are any other whacky device-specific things to be aware of May 26 23:25:54 lahwran: true but if you're dev-ing on the thing you're going to be staring at it for hours on end. white might be a bit easier on the eyes May 26 23:26:16 I'll bet you use a white background in your editor >:| May 26 23:26:19 nah, I kid. May 26 23:26:21 anything with Samsung's custom ROM on it is probably going to be a nightmare May 26 23:26:28 But the api version is and google said the new api would fix/allow new Bluetooth devices May 26 23:26:34 lol May 26 23:26:39 (and no, 100% darcula since it introduced a few months ago) May 26 23:26:42 yeah HTC Sense can be a pita May 26 23:26:50 Darcula \o/ May 26 23:27:05 darcula, is it a variant of monokai? May 26 23:27:09 that's what came up on google May 26 23:27:41 it's an appearance for IntelliJ IDEA 12+ May 26 23:27:51 http://www.jetbrains.com/idea/ May 26 23:27:52 shown there May 26 23:28:18 http://blogs.jetbrains.com/idea/wp-content/uploads/2012/12/darcula-1.png May 26 23:29:26 another nice one is Solarized May 26 23:29:35 (Dark) May 26 23:29:37 I'm 100% terminal-based at the moment, and fearing being forced to change that if I do any android dev May 26 23:29:47 I currently use solarized dark and I'm kinda getting tired of it May 26 23:29:56 I want a good terminal monokai theme May 26 23:30:06 all the ones I've tried look like derp May 26 23:30:07 you can keep using ed or whatever :) May 26 23:30:11 i can't stand the solarized or monokai themes May 26 23:30:12 g00s: they have a solarized theme? I thought it was only the for the editor colors May 26 23:30:19 people rant and rave about them though May 26 23:30:34 monokai is fun for its highlights, imo May 26 23:30:36 Why hasnt motorola released an android 4.2 rom yet May 26 23:31:05 none of their phones are 4.2 or something ? May 26 23:33:02 who is on 4.2 these days? May 26 23:34:04 hi, i am using AsyncHttpClient inside a runnable and i keep getting the error could not find class com.loopj.android.http.AsyncHttpClient.. its properly included in the build path in eclipse.. whats wrong? May 26 23:34:32 we're all on 4.3 man :) May 26 23:36:09 What i mean is most of the other companies have released at least one android 4.2 rom/firmware for one of there phones or tablets even if the rom/firmware was leaked. There is no motorola rom even a leaked rom that has android 4.2 on it. The closest thing is benchmarks listing an unknown motorola phone running android 4.2 May 26 23:36:24 no g00s i mean which oems are running 4.2? May 26 23:36:31 the last i heard was some leaked samsung 4.2 rom or something May 26 23:36:40 samsung ships phones with 4.2.2 May 26 23:36:45 oh May 26 23:36:50 ok :) May 26 23:37:11 Yes the s4 has 4.2.2 May 26 23:37:35 And htc has a rom that was leaked with 4.2 on it May 26 23:37:46 ah thats the one i was thinking of May 26 23:38:29 And some tablets beside the nexus tablets have 4.2 running May 26 23:38:32 On them May 26 23:39:19 It could be that motorola and/or google is waiting to release a rom with android 4.3 on it May 26 23:40:54 Dont know though why motorola would not have an android 4.2 rom May 26 23:43:12 Ok May 26 23:43:38 What is the advantages of 4.2 or even 4.3 over 4.1 May 26 23:44:24 4.3 is a rumor at this point, so it's not even worth discussing May 26 23:44:43 It is not a rumor May 26 23:44:53 4.3 is not a rumor May 26 23:45:14 cite a source May 26 23:45:34 as for 4.2 over 4.1, http://www.android.com/about/jelly-bean/ has a bit of info May 26 23:45:44 but most of the features tehre are "new in jelly bean", so not necessarily new in 4.2 May 26 23:45:53 but the first paragraph talks about 4.2 May 26 23:46:41 is the android api infinitely backwards compatible? May 26 23:46:56 infinitely is not the best word because android versions aren't infinite May 26 23:46:56 to an extent May 26 23:46:57 but you get the idea May 26 23:47:09 How about the new articles like this May 26 23:47:16 Service#setForeground(boolean) was deprecated in api 5 and REMOVED in honeycomb May 26 23:47:30 so if you have an app built against api 10 and you run it on ICS, it will crash May 26 23:47:36 if you call that method May 26 23:47:40 How about an article like this http://www.engadget.com/2013/05/24/android-4-3-spotted-nexus-4/ May 26 23:47:43 but that's VERY rare May 26 23:47:55 google "build.prop" May 26 23:49:09 canadiancow: wait, if you build against api 10 and you run it on ICS, will it crash on start if that method is used anywhere in the program, or only if you run a code path that attempts to invoke that method? May 26 23:49:20 only if you attempt to invoke it May 26 23:49:34 anyone have any experience with squares butter knife lib, examples seem stupid simple yet i can't get it to work to save my life lol May 26 23:49:46 but when you write an app, you dont generally exclude method calls based on a MAX version May 26 23:49:47 wtf. is that a dalvik thing? I could have sworn simply referencing an undefined name would make the jvm scream at you May 26 23:49:57 they changed that in 2.1 May 26 23:50:15 or maybe I haven't done java in long enough that I've forgotten what the behavior is May 26 23:50:15 so you could do if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWHICH) { newIcsApi(); } May 26 23:51:07 If anyone has sometime I could used a walk through of how to build a settings screen I'm completely lost and I'm sure it's pretty simple to most of you May 26 23:51:21 preferences May 26 23:51:30 preferences fragment May 26 23:51:54 But you can see that almost everybody who changes the build.prop does not change the build number look at this this will tell you about how the picture i showed you is real http://forum.xda-developers.com/showthread.php?p=41782938#post41782938 you could have to look at the posts in the thread after the post# i linked to May 26 23:52:18 I have one class right now MainActivity May 26 23:52:31 I should make two new classes? May 26 23:52:40 does android prefer ant or maven, out of curiosity? May 26 23:52:50 one for a PreferencesFragment May 26 23:52:57 I always liked maven but found it incredibly badly documented May 26 23:53:01 and one for a PreferencesActivity? May 26 23:53:06 lahwran: Gradle May 26 23:53:09 O_o May 26 23:53:12 never heard of that May 26 23:53:36 it has the same under-documented nature of Maven but without an XML schema so that IDEs can autocomplete it for you May 26 23:54:22 oh joy May 26 23:54:44 it has a bunch of powerful features the Android tools team is developing May 26 23:54:44 But it would tell you that people who change the build.prop will not show the build number in there screenshot or photo of the of the about phone screen May 26 23:54:51 so, yay for trade-offs May 26 23:57:02 Hey JakeWharton, with butterknife is there anything for setup beyond enabling annotation processing, Views.inject(object,veiwRoot); and the @InjectView on the views? May 26 23:57:11 shouldn't be May 26 23:57:46 in Android Studio you might not even have to enabled annotation processing anymore since it should be delegating to Gradle to build May 26 23:58:05 hmm May 27 00:30:27 evening to all May 27 00:31:41 any thoughts on whether you're better off developing on Windows or Linux? May 27 00:33:32 cherrypeel: I guess that depends on your taste, what other tools you need, and maybe machine spec May 27 00:33:41 loads of things really May 27 00:33:49 hi, i load list of item (img and string) in my ListView, user can refresh data. ok i have a question. when there are new item in ArraList ListView reload alla data? May 27 00:33:56 just develop for both May 27 00:34:30 newinandroid: notifyDatasetChanged() May 27 00:35:34 StingRay_: fair enough, thanks. I'm just getting started so I just wanted to make sure I didn't waste a bunch of time setting up an environment on the lesser of the two May 27 00:35:54 StingRay_, i know but my question is different. when i invoke notifyDatasetChanged() and there new item ListView reload images? May 27 00:36:11 *there are May 27 00:36:26 newinandroid: you mean does it reload images ? May 27 00:36:36 depends on your implementation in the adapter May 27 00:38:11 StingRay_, can you explain me May 27 00:38:58 notify dataset changed would invoked getItem, getView etc for all the indexes in the backing data May 27 00:39:36 so if you set the image view within those, then will reload images too May 27 00:41:12 ok StingRay_ i undestand thank you May 27 01:08:05 could someone look at my problem here and see if they could help me out? http://stackoverflow.com/questions/16764947/xml-schema-validation-in-android-getting-java-lang-exceptionininitializererro May 27 01:08:21 has to do with XML validating May 27 02:03:51 hm, can't find any information on CAB & ExpandableListView May 27 02:11:36 there is sufficient info on ex list view May 27 02:11:42 dunno what CAB is though May 27 02:15:32 contextual action bar May 27 02:16:32 i wonder if its only possible as a floating context menu May 27 02:19:50 I have popupmenus that are context and view sensitive May 27 02:25:23 thanks StingRay_ 9.9 May 27 02:25:53 point is if I can do that, not really a question of possible is it :) May 27 02:26:43 sup guys long time no see May 27 02:27:24 StingRay_ May 27 02:27:26 .. May 27 02:27:55 I'm not as "new age as you" May 27 02:28:08 I have no idea what is implied with 9.9 or ... May 27 02:28:21 9.9 = almost 10.0 ? May 27 02:28:25 fk knows May 27 02:29:30 9.9 is sarcasm i think :) May 27 02:29:46 its' what ?? May 27 02:30:01 thats just silly May 27 02:30:19 9.9 <-- that supposed to be emoticon or something ? May 27 02:30:45 are you using colloquy or textual? textual doesn't show them, colloquy did ... May 27 02:30:57 colloquy May 27 02:31:03 weird, should show it May 27 02:31:16 maybe I have them turned off, cause they are for school girls ? May 27 02:31:51 you should turn them on then ;) May 27 02:32:46 hang they must be on cause if i do B) May 27 02:32:58 yeah I get a guy with fking shades on May 27 02:33:09 when I wanted a) b) c) May 27 02:33:12 in caps May 27 02:33:20 dude with shades gets ing the middle May 27 02:33:25 the twat! May 27 02:38:44 hello,everyone. May 27 02:39:23 I want to write a C code, get gps data from gps device,and print out them in the prompt,(adb shell) May 27 02:39:31 other linux distribution, I can open a device ,like /dev/ttyS0,to open a gps device. May 27 02:42:39 blackbear008, can you please rephrase your question if you have 1 May 27 02:43:29 i think he wants to telnet into/interface with the gps device from terminal (if thats possible) May 27 02:43:30 if anyone can help me with this, I would be very greatful http://stackoverflow.com/questions/16764947/xml-schema-validation-in-android-getting-java-lang-exceptionininitializererro May 27 02:44:05 I want to write a C code, get gps data from gps device,and print out them in the prompt,(adb shell) May 27 02:44:29 which device files should I use? May 27 02:48:18 Could someone help me retrieve values from my preferences menu May 27 02:48:37 I've been over the docs but I don't know what I'm doing May 27 02:50:00 x2mike2x: something you dont undestand in the docs ? May 27 02:50:09 or something that is in there that is not working ? May 27 02:50:58 StingRay_: Thanks. Something I don't understand May 27 02:51:16 well ask then May 27 02:51:28 a specific question is more likely to be anwered May 27 02:51:34 answered* May 27 02:51:44 sorry I'm thinking :P May 27 02:52:14 I understand the getDefaultSharedPreferences May 27 02:52:42 but I don't understand how to get the current preference state May 27 02:53:04 is it correct that I must set up a listener? May 27 02:53:12 no May 27 02:53:37 can I just access the value with a key directly at any time? May 27 02:53:45 yes May 27 02:54:00 see the docs show 1. get defaults. 2. make listener. done. May 27 02:54:56 findPreference was giving me deprecated May 27 02:56:13 another question. Do I need a Preference object? May 27 02:56:28 is it required to pass a value to that before I can use it? May 27 02:57:14 well i just get a SharedPreferences object and set get May 27 02:57:31 end of my preferences story May 27 02:57:34 :) **** ENDING LOGGING AT Mon May 27 02:59:58 2013