**** BEGIN LOGGING AT Thu Dec 05 02:59:58 2013 Dec 05 03:03:10 bankai_: yep thanks Dec 05 03:03:44 i hate dealing with times.... it always ends up being painful Dec 05 03:09:59 Can I pull an .apk off of a Clockworkmod .img somehow? (What are clockworkmod images? Just disk images? ext3 or what?) Dec 05 03:11:55 not the channel for that kinda talk Dec 05 03:12:40 Sorry! What is? Dec 05 03:13:04 read the topic Dec 05 03:25:16 greetings guys, i am searching for a good tutorial or explanation of how to get section headers into my listview. Most of what I find is absolute crap Dec 05 03:25:44 any recommendations? Dec 05 03:26:17 like in a preferences fragment or something different? Dec 05 03:26:29 no, just in general Dec 05 03:26:35 normal ListView Dec 05 03:27:14 what are the suggestions you've been reading? custom adapters? Dec 05 03:27:56 well a custom adapter will be used no doubt, but I am confused as to whether there is a method off BaseAdapter that I can use, or I have to give up ArrayAdapter as my base and go with BaseAdapter and do everything internally Dec 05 03:28:12 it seems like this is something that Android would make easy for the developer as it is a common scenario Dec 05 03:31:57 quick question, trying to make a an application zoom in to my location using Google Maps v2 on application start, but cant find a good implementation, everything i tried so far does not work Dec 05 03:32:12 if any one can suggest a simple way of doing so I would highyl appretiate it Dec 05 03:32:26 DmitrySokolov, you should just have to center the map to a given geocode, and then set the zoom Dec 05 03:32:45 granted it wont be inst Dec 05 03:33:13 ant, since the coordinates have to be acquired by the device, could use a splash screen and pass the coordinates to the landing activity Dec 05 03:33:40 Could anyone help me with loading an image? I have a file with a bitmap in it. I want to load it into something that requires an id or uri, but the image needs to be scaled before it is loaded. Dec 05 03:33:50 oh gross, don't use a splash... by the time the map has rendered you'll have a location Dec 05 03:34:08 :P Dec 05 03:34:27 Guys, do use maven or gradle? Is it important for scalability of our app? Dec 05 03:34:47 google have the MyLocation button which does it, is there an easy way to just activate it on application start? Dec 05 03:35:13 or i have to make the big implementation of sending requests, making listeners, getting the location manager, and getting coordinates and centering on them? Dec 05 03:35:37 DmitrySokolov, that is what the My Location button does :) Dec 05 03:36:08 true, but i ant just say something like this.myLocation(); and be done with it? i have to redo the whole implementation of the button which is hidden? Dec 05 03:36:45 there is nothing like that to my knowledge Dec 05 03:37:21 on your map set a setOnMyLocationChangeListener, then override onMyLocationChange and centre on that location Dec 05 03:37:41 obviously only do it once else it'll centre for every location change it gets ( which are quite frequent ) Dec 05 03:37:43 i found an implementation that does a similar job to the button, it worked when i did it on a tablet, but now its not working when i try to run it on a phone, from my understanding its because of service providers different, and i cant fix it ;/ so looking for alternative or a more complete solution that would work for both devices Dec 05 03:38:05 DmitrySokolov: I may have something Dec 05 03:38:18 thats what i tried to do bankai_ i think if i understand you correctly Dec 05 03:38:46 thanks Peetz0r I would appretiate it Dec 05 03:38:53 https://github.com/Peetz0r/Rijksdriehoekscoordinaten/blob/master/src/nl/haas_en_berg/rijksdriehoekscoordinaten/RDMainFragment.java#L236 Dec 05 03:39:10 lines 236 to 244 Dec 05 03:39:21 curious, is anyone in here using Android Studio full time? Dec 05 03:39:45 yeah its similar to the code i was using and it worked on a tablet Dec 05 03:39:55 but apperently .getlastKnownLocation() is a bad thing to implement Dec 05 03:40:04 since if the location is old, it returns Null and crashesh the app Dec 05 03:40:17 * xximjasonxx wonders if Android will ever support the await async syntax that .NET supports Dec 05 03:40:21 DmitrySokolov: what exactly about the change listener didn't work ? Dec 05 03:40:23 that makes mobile programming a breeze Dec 05 03:41:37 bankai_: dont have this version of the code open atm, i cant remember the errors I was getting when I tried to use it, maybe I followed a bad example Dec 05 03:42:59 DmitrySokolov: http://pastebin.com/5rwkqmPS Dec 05 03:44:02 ill try it bankai_ Dec 05 03:44:59 xximjasonxx: what's the syntax look like ? Dec 05 03:51:16 it crashesh at: mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() Dec 05 03:51:28 bankai do you think you will have a sec to look at the code? Dec 05 03:51:37 NPE ? Dec 05 03:51:54 http://pastebin.com/SxcfMuYT Dec 05 03:52:00 yeah NPE Dec 05 03:52:40 the best way to handle maps is to create them in XML and reference them as late as you can Dec 05 03:53:14 i am still new to working with maps ;/ Dec 05 03:53:17 you also haven't assigned your map ;) Dec 05 03:53:24 assigned? Dec 05 03:53:35 you commented that part out Dec 05 03:54:05 yeah tried to find the error that i had before Dec 05 03:54:35 with the current code beside the part you gave me it was opening the map, doing search, zooming in when MyLocation is pressed and placing markers on search item selected Dec 05 03:54:51 with the code commented out left out Dec 05 03:54:52 i usually do the map stuff in onStart, but you can just as easily do it on onResume, but i think this may cause some problems when you do resume and the map already exists Dec 05 03:55:27 not in onCreate? Dec 05 03:55:34 just trying to follow the google code examples Dec 05 03:57:19 i think i fixed it Dec 05 03:57:23 just a sec Dec 05 04:02:45 yep it works, thank you bankai_ Dec 05 04:02:50 appretiate the help Dec 05 04:56:48 GENTLEMEN: I am trying to take a picture from my phone on Samsung Galaxy s3 but getting errors: http://pastebin.com/9fGyyhq0, anyone else had these problems with the galaxy s? Dec 05 04:56:59 Any suggestions on taking a picture without a preview? Dec 05 05:01:09 I am looking for a JSON library that makes dealing with JSON arrays really simple... anything out there? Dec 05 05:02:24 people say gson is good Dec 05 05:02:38 haven't used it Dec 05 05:02:39 I'm looking at gson right now. Dec 05 05:04:26 I would like to do something like this... JSONObjExample.put("Body.und.value":"this is a test"); or something like that Dec 05 05:04:45 I have lots of complicated arrays Dec 05 05:07:28 i just discovered... http://developer.android.com/reference/org/json/JSONTokener.html Dec 05 05:19:13 Stackoverflow has failed me, because all the answers are old, and aren't working: Dec 05 05:19:17 https://gist.github.com/nikmartin/f926ec183954f8357c93 Dec 05 05:19:55 I need an edittext to look like an edit text, but NOT be editable, AND allow the user to select the text Dec 05 05:20:31 and that gist shoudl do exaclty this, but setting etText.setEnabled(false); makes the field not selectable Dec 05 05:20:36 no matter what I do Dec 05 05:21:41 any ideas? OR how to make a TextView look like a disabled edittext, with the little underline, etc? Dec 05 05:28:29 regreddit: style the textview like edittext Dec 05 05:29:00 seand, how do I do that - it is not built in xml, it's purely dynamic - Dec 05 05:29:20 regreddit: You should be able to style the EditText. If not, the EditText source is very small, just read it and you can make your own implementation to discard the editable stuff Dec 05 05:29:58 how do i set styles at runtime? I only know how to create a style and apply it using xml Dec 05 05:30:02 regreddit: from the source it looks like the style is in xml: com.android.internal.R.attr.editTextStyle Dec 05 05:30:21 ah Dec 05 05:30:48 so that means I cant apply a style at runtime? Dec 05 05:31:09 the style is applied at runtime, in the constructor Dec 05 05:31:38 so basically what you want to do is extend EditText and apply your own style in the constructor Dec 05 05:31:52 I see Dec 05 05:32:43 wait a sec Dec 05 05:34:44 i'm at a loss as to how the EditText adds editability to TextView Dec 05 05:36:03 regreddit: what have you tried to make it noneditable so far? Dec 05 05:36:48 seand, https://gist.github.com/nikmartin/f926ec183954f8357c93 Dec 05 05:37:15 regreddit: it needs to be set dynamically? Dec 05 05:40:37 regreddit: http://stackoverflow.com/questions/660151/how-to-replicate-androideditable-false-in-code Dec 05 05:41:25 yes, I build all views /fragments at runtime - they get arranged based on a schema that gets sent to the device from the server Dec 05 05:55:05 is it safe to cast getapplicationcontext to an application? Dec 05 05:55:20 i'm working in a broadcastreceiver and i need to access my actual application to use its methods Dec 05 06:13:23 Hey Guys Dec 05 06:13:37 I'm seeing very frequent crashes with genymotion emulator in my app Dec 05 06:27:29 interesting, brickhead, i've been using genymotion for a while and haven't experienced any problems Dec 05 06:30:38 majuscule, I'm getting a segfault in /system/lib/libhwui.so Dec 05 06:33:10 here is the crash stack trace Dec 05 06:33:11 http://pastebin.com/ZJ36PLXk Dec 05 06:37:04 I have submitted the bug report to them Dec 05 06:52:59 brickhead: i'm sorry i honestly wouldn't have a clue about it :-) just wanted to chime in to share my experience Dec 05 06:59:56 is genymotion worth a look? Dec 05 07:01:29 yeah, its very nice Dec 05 07:01:51 can be flaky with adb connection sometimes Dec 05 07:02:01 but adb just seems to be flaky anyhow Dec 05 07:02:03 but so can a device ;) Dec 05 07:02:10 ha Dec 05 07:08:47 genymotion is the greatest thing that has happened to android development!!! Dec 05 07:08:59 or at least, I am quite impressed with it Dec 05 07:09:23 alex_PP: in my experience, it's one of the fastest emulators out atm Dec 05 07:09:43 just about to download it Dec 05 07:10:17 hmmm Dec 05 07:10:33 no idea how I'm going to get thing going on arch Dec 05 07:11:20 ah ha Dec 05 07:11:58 downloading... what can it do? Dec 05 07:17:09 hey guys, I'm trying to debug a java app via Eclipse with all of the android add-ons and when the program gets a RuntimeException, I get a nice debuging session of what appears to be the process that lanuched my java program.... How am I supposed to actually debug the java program its self? Dec 05 07:17:30 hah! even examining the RuntimeException would be helpful, but I can't find a way to even do that Dec 05 07:21:21 look at your logcat directly Dec 05 07:22:11 hmm Dec 05 07:23:11 The only thing even slightly suspicious I see there isa warning about "No package identifier when getting value for the resource number 0x00000028" Dec 05 07:23:20 is this what you looking for? http://developer.android.com/reference/android/util/Log.html Dec 05 07:23:35 very cute Dec 05 07:23:46 No, I'm looking to debug a java app like a real debugger does Dec 05 07:25:08 seriously, is there no way to do this like in a real jdb session? Dec 05 07:26:22 g00s, yeah, it's pretty quick Dec 05 07:26:24 awesome Dec 05 07:26:29 :) Dec 05 07:26:32 I suppose it's at least good to have snappy come backs when you don't have real answers Dec 05 07:27:12 alex_PP i use Nexus S 4.1.1 image, takes little ram Dec 05 07:27:38 don't care about ram, got 12 GB Dec 05 07:27:45 oh nice Dec 05 07:27:54 took months to get, even after getting it approved Dec 05 07:28:01 but i got it Dec 05 07:38:10 is there a place where I can read a complete and thorough guide of how components are supposed to be used in an ordered way? (ie, a sort of tutorial going through activities, services and intents, i'm interested in those in particular). I'm reading through the documentation, but I don't think this is the most effective way to do it Dec 05 07:38:24 (reposted from #android, hello everyone) Dec 05 07:49:45 hey guys Dec 05 07:49:58 My app use to rely on /etc/vold.fstab for finding Dec 05 07:50:01 external sdcard Dec 05 07:50:09 now its gone in kitkat :( Dec 05 08:22:09 brickhead: was /etc/vold.fstab documented in the SDK? Dec 05 08:22:11 I don't recall Dec 05 08:23:07 I'm pretty sure it wasn't Dec 05 08:23:20 Morning all Dec 05 08:24:32 seitensei: it's not in SDK, but you'll find it in notes regarding building AOSP Dec 05 08:33:39 I want to display data from an sqlite database, and also have it update automatically any time there is a change to the data (insert/update/delete) Dec 05 08:33:45 how? Dec 05 08:33:59 Or, rather, what technique should I use? Dec 05 08:35:28 either isolate the database component to a service and have it trigger apropriate update whenever you write to the database, or somehow go low-level on SQLite and use SQLite's triggers Dec 05 08:55:01 i want to show what you can buy in a food plaza through the cellphone, like a menu. I set up a blank activity with a nav bar, should I use a fragment for the shop list or use the same activity? Dec 05 08:55:45 (my idea was to drop a vertical linear layout and build a list inside the frame layout i get by deafault Dec 05 08:56:05 but then maybe it makes sense to build all this inside a fragment (?) Dec 05 08:57:15 p_l: i'm writing to the database in a service, and my UI needs to display it. The service notifies the UI on an update. Aren't cursors or soemthing supposed to allow this kind of thing without additional code? Dec 05 08:57:40 Cursors especially don't Dec 05 08:57:47 ... at least in terms of SQL cursors Dec 05 08:58:12 I've an error showing up when I try to install, called INSTALL_FAILED_UID_CHANGED :| Dec 05 08:58:17 anyone know what that means? Dec 05 09:01:05 YuviPanda: the user id of the app got changed somehow? Dec 05 09:01:23 damccull: I've uninstalled it. Dec 05 09:01:37 in fact the problem started occuring when I did an adb uninstall, and then tried to install it again Dec 05 09:03:50 YuviPanda: do you have root on thsi device? Dec 05 09:03:57 damccull: nope. Dec 05 09:04:04 on your real phone? Dec 05 09:04:22 yeah. I could unlock and root it now if I want to, but am wondering if there are other solutions Dec 05 09:04:26 damccull: yeah, real phone. Dec 05 09:04:30 google is telling me to tell you to manually delete anything associated with the app (root requried), or factory reset Dec 05 09:04:39 other than that I dunno man Dec 05 09:04:51 sigh, shitty thing to be hit with man. grr Dec 05 09:04:53 man being a generic term to identify you, not your gender ;D Dec 05 09:04:54 damccull: I'll root it Dec 05 09:05:01 damccull: heh :D Dec 05 09:05:01 YuviPanda: do some more googling Dec 05 09:05:08 damccull: I did that for about 30mins. Dec 05 09:05:10 heh Dec 05 09:05:17 damccull: mostly got to 'it just started working, yo!' Dec 05 09:05:22 which is the worst response Dec 05 09:05:34 YuviPanda: http://goo.gl/aJIF8M Dec 05 09:05:39 1st, 2nd, 4th results Dec 05 09:05:50 are what i looked at so far. some have some different suggestions Dec 05 09:06:42 damccull: http://stackoverflow.com/questions/12338242/eclipse-installation-error-install-failed-uid-changed looks bizzare Dec 05 09:06:51 but I'm going to look at adb output now to see if it has any clues Dec 05 09:07:52 damccull: thought it was the 'verify apps installed over USB'. apparently not Dec 05 09:23:23 goddamnit, I hate "Ambiguous Method Call" messages Dec 05 09:25:02 What exactly does the presentationTimeUs's mean in MediaCodec.dequeueInputBuffers() (http://developer.android.com/reference/android/media/MediaCodec.html#queueInputBuffer%28int,%20int,%20int,%20long,%20int%29) Dec 05 09:25:48 The description states "The time at which this buffer should be rendered.". However, isn't it supposed to rendered when calling releaseOutputBuffer(id, render = true); Dec 05 09:27:24 Miklas, that's the frame timestamp Dec 05 09:27:39 so extractor.getSampleTime? Dec 05 09:27:39 Miklas, it's the time you're supposed to SHOW the frame to the user when you're playing the video Dec 05 09:27:53 Well I don't want to show it -- I want to create a thumbnail at that position. Dec 05 09:27:55 no idea about your usecase Dec 05 09:28:03 read up on what PTS are in H.264 stream Dec 05 09:29:01 Well I only have one stream (video) to create the thumbs from. Dec 05 09:29:09 So I guess it doesn't really matter in my scenario. Dec 05 09:29:33 read up on it anyway Dec 05 09:34:39 Mavrik: most I can find is over at wikipedia (http://en.wikipedia.org/wiki/Presentation_time_stamp). However, I do not see how it is relevant to "render it on the provided surface ASAP". Dec 05 09:35:27 it's relevant in the way you're supposed to know how your underlying data looks like when you're using the API's Dec 05 09:35:36 but as I said, I don't know your usecase Dec 05 09:35:59 but working with video encoding/decoding without understanding raw basics like PTS flags on frames will cause you problems sooner or later Dec 05 09:37:44 The use case is simple, create Thumbnails. I'm using an extractor to seekTo and Advance to the required thumbnail position and then I'm rendering them to a SurfaceTexture and the further processing goes fine (I can use them in OpenGL) Dec 05 09:38:04 It is a bit like driving a car, I don't really want to know what is going on in the engine, I just want it to go. Dec 05 09:38:05 aha ok Dec 05 09:38:17 I started working with the MediaPlayer to a surfacetexture and that worked fine Dec 05 09:38:25 with the exception that seeking only goes to a keyframe. Dec 05 09:38:27 that's a silly way of looking at things, but fine Dec 05 09:38:33 you can directly display the frame then Dec 05 09:38:36 Come on JetBrainz fix it: http://youtrack.jetbrains.com/issue/IDEA-72835 Dec 05 09:38:59 Miklas, just remember that different decoders may return the frame padded in different way Dec 05 09:39:13 do remember to test on a Qualcomm/Tegra/PowerVR device Dec 05 09:39:19 so I'm calling inflater.inflate in a loop in a Fragment, and it keeps returning the same inflated layout every time. What's the deal? Dec 05 09:39:29 It is for a prototype/research based idea, not to put in actual production. Dec 05 09:39:38 (yet) Dec 05 09:39:59 mhm. Dec 05 09:40:16 storkme, man this bug is there for ages now Dec 05 09:40:19 it's because i'm using Dec 05 09:40:39 you can't inflate and add multiple layouts? Dec 05 09:44:39 this is very strange.. calling inflate(R.layout.tablerow,myTableLayout,true) returns an instance of myTableLayout, and not the inflated views.. how am I supposed to get an instance of views inside the inflated tablerow ? Dec 05 09:45:16 don't put true Dec 05 09:45:25 setting true will attach the view to the viewgroup Dec 05 09:45:37 but then I can't use the tag in my layout Dec 05 09:45:47 just change it to false Dec 05 09:45:54 it will use the view group to inflate, but won't attach it Dec 05 09:46:00 but then I can't use the tag in my layout Dec 05 09:46:07 so I'd have to put a wrapper around it Dec 05 09:46:52 storkme, afaik the tag is processed when compiling Dec 05 09:47:19 and the preprocessor inserts merged XML when it gets binary compiled Dec 05 09:48:31 I'm not actually the merge layout anywhere in my xml though, trying to do it programatically Dec 05 09:51:11 just for clarity, my layout file currently looks like this: http://pastie.org/8530279. I'm calling inflate in a loop, and it is attaching the views just *fine*, the problem arises because they're attached to the view root (my TableLayout) automatically so there doesn't seem to be a way for me to get a reference to tv1 or tv2 to set the text in code? Dec 05 09:52:09 guess I could just stop trying to be fancy, not use a tag, and don't use attachToRoot=true Dec 05 09:53:13 storkme, doesn't view.findViewById() work in this case? Dec 05 09:53:40 storkme, I'm quite sure that a.) Views don't work like that Dec 05 09:53:49 b.) You should probably use one of the adapterviews Dec 05 09:54:11 because typically "how am I supposed to get an instance of views inside the inflated tablerow ?" = use findViewById on the parent view, in this case the return value from your call to .inflate Dec 05 09:54:29 it does not, because every isntance of my textview is added to the table with the same ID, so findViewById just returns the first one. Dec 05 09:55:09 so you're inflating that multiple times? How many times we talking about here? Dec 05 09:55:21 only five or so Dec 05 09:56:19 if you were using a listview this would be sorted for you since you'd know the position the inflated layout was for. In this case, I guess you could do something like View.setTag() so you can display the right things? Dec 05 09:57:07 for sure, but then I'd be using a listview, which isn't suitable for displaying a short, mostly-static list of data (I don't want my list to scroll, for instance) Dec 05 09:59:14 you don't need to use a listview to do the setTag thing, and that would give you enough information to know what to display Dec 05 09:59:59 or you could even store the parent view for each row in an array and scrap the setTag thing entirely, up to you Dec 05 10:00:27 i used to go to bris.ac.uk Dec 05 10:01:52 Mavrik: Do you spot any clear mistakes? (This is the output I'm getting: https://www.dropbox.com/s/37od6tfmpcchyeh/ui49.png) - this is the code where the I extract and decode: http://pastebin.com/KTErpraB . On line 184 I'm displaying the the seekto and I'm getting a +1 second change there. However, you can see in the thumbnails on the right that the time is not a 1 second (30 frames) change. Dec 05 10:02:54 just gonna give up the idea of doing it dynamically and just do it staticly in an xml layout instead. Dec 05 10:03:44 why? There's no reason why you can't do what you want Dec 05 10:04:58 I can't see how to get a reference to the views once I've added them (since there's no ViewGroup being given to me from the inflate() call, and they all have the same ID so findViewById only ever returns the first view in the hierarchy) Dec 05 10:06:33 you have to loop through to call inflate on each row, so remember the order of the rows in your loop (array/setTag), then if you want to get a reference to the 3rd row and the ID 'text' (all of which are the same for each row) you do rows[2].findViewById(R.id.text) then setText to whatever you want Dec 05 10:07:02 or if you want the 5th row text, rows[4].findViewById(R.id.text) etc Dec 05 10:07:14 ohhhh I see, yeah I could do that Dec 05 10:07:54 sorry I misunderstood you the first time Dec 05 10:07:55 this works because findViewById is scoped to whatever you're calling it on, in this case an individual row, so it returns the right thing if you remember the order Dec 05 10:15:24 huh Dec 05 10:15:33 why won't IDEA 13 include dependencies of a Maven module Dec 05 10:17:15 Hi all, how can I go to update screen from my app? Dec 05 10:35:02 FrancescoV, ?? Dec 05 10:45:43 is it possible to calculate how much memory will be needed to rescale a bitmap ? Dec 05 10:56:14 GNUtonWrk: nvm, go to app in play store intent, works now Dec 05 11:23:09 Anyone, besides me, with problems running app and tests in Android Studio 0.3.7? Dec 05 11:25:15 what kind of problems Dec 05 11:25:26 "Sync Project with Gradle Files" does not work. Dec 05 11:25:37 is it possible to start an activity (play store) and close your application? So that the user can't go back? Dec 05 11:25:39 Sorry... Local path doesn't exist. Dec 05 11:25:42 ah, don't use gradle Dec 05 11:25:59 FrancescoV: you can call .finish but why would you do that? Dec 05 11:26:08 Did not have any problems with Gradle prior to 0.3.7, though. Dec 05 11:26:57 check your gradle version Dec 05 11:27:13 funkbox: user needs to update (rest service is changed) so the user must open app again from playstore / home Dec 05 11:27:37 just show a "you must update the app to use it" Dec 05 11:27:46 also, that's a terrible way to deal with backwards compatiblity Dec 05 11:27:49 funkbox: 1.8.6 Dec 05 11:28:52 I do that but user i start an intent to go to the play store (my app) Dec 05 11:40:57 i have a weird issue with translucent status in 4.4 where the contextual action bar shows up under the status, that is it's incorrectly positioned. any ideas? Dec 05 11:52:50 Greetings, folks. Couldn't anyone tell me why eclipse errors on "@Override" in block-style declared instance of WebViewClient? Yeah yeah, I know that JDK should be 1.6: I got hundreds of Overrides in app and they're ok, but not this one exclusively. Dec 05 11:54:03 does that method actually exist in webviewclient? Dec 05 11:55:05 CallumTaylor: well, yes, even if i make some "test" method and typing into its body "this." to see the list of methods the super's one is right here with my "invalid" and those two rows are absolutely the same Dec 05 11:55:17 what method Dec 05 11:55:40 CallumTaylor: weird, but any of WebViewClient's methods, especially needed one: shouldOverrideUrlLoading Dec 05 11:56:03 can you paste your source into pastebin Dec 05 11:58:19 CallumTaylor: well, I got the problem myself pasting this code into next project.. the reason I use "custom" WebView named the same but in separate project's package, so it doesn't recognize my method Dec 05 11:58:39 check your imports Dec 05 11:59:48 CallumTaylor: yes, I shouldn't import any webviews in such situation and use packaged class path, but I better rename my own subclass of web view:) Dec 05 12:40:05 funkbox: For future reference. It was the gradle-plugin version that was the problem, apparently. Android Studio did however only complain when importing a project using only gradle files, not when synchronizing the current project. *sigh* Dec 05 12:40:13 ah yeah Dec 05 12:45:06 I'm working on a custom listview that has a carrousel effect when scrolling through it .... I'm currently setting properties like alpha and textsizes in the onScroll method of the ScrollListener to get the effect. Is that OK or are there performance implications associated with that ? Dec 05 12:47:39 ddewaele, changing text size will kill your performance Dec 05 12:47:45 since you're forcing relayout Dec 05 12:47:53 if at all possible stick to translate/scale/alpha animation operations Dec 05 12:48:05 ddewaele: google "ListViewAnimations" Dec 05 12:48:53 hello :-) Dec 05 12:49:57 what happens with not-used classes when I build/compile my android project in eclipse ? Dec 05 12:50:22 do they still take up extra space in the apk? or are they left out? Dec 05 12:50:45 guys is there any custom rom for RK2928 ?? Dec 05 12:50:51 Sirolf, they're still compiled and packaged Dec 05 12:50:55 Sirolf, unless you use proguard Dec 05 12:51:09 it's hard to google anything Dec 05 12:52:16 Mavrik thx.. so it's not a good idea to work with very large library projects I guess Dec 05 12:52:33 did you miss the "use proguard" part? Dec 05 12:52:51 lol ... yeah my mind did miss it Dec 05 12:52:52 Mavrik : changing the rows is currently triggered in onScrol. I guess that starting animations in the onScrol method is not a good idea ? (text size needs to increase / decrase as the item is moving towards the vertical center) Dec 05 12:53:01 funkbox : thx I'll have a look at that Dec 05 12:54:10 Mavrik : I'm new to animations ... but onScroll is called for every pixel you're scrolling so there's no time to start an animation I guess (as opposed to changing properties) Dec 05 12:55:54 ddewaele, I'm not talking about starting an animation Dec 05 12:56:03 ddewaele, I'm talking about using properties that don't require full relayout Dec 05 12:56:08 but are just applied when compositor runs Dec 05 12:56:22 relayouting your views on scroll it will catastrophic performance Dec 05 12:58:10 an other question: is there any way to handle the event of the user "returning" the app within the 15 minute period in the appstore? Dec 05 13:00:51 Mavrik : ok, so I'm guessing view.setAlpha() is ok , but view.setTextSize() is not. Are there alternatives to have the text increase / decrease while scrolling ? Dec 05 13:00:54 on startup a user enters our database ... but if he cancels his purchase he'd still be known as a paying customer in our database ... any idea? Dec 05 13:01:03 ddewaele, render it at large size and use setScale Dec 05 13:01:17 you could also render it as custom view Dec 05 13:13:10 Mavrik : Thx for the tip. Works great except that it now also effects the padding of the textview (padding increases as the text gets smaller). I presume that dynamically adjusting the padding will also result in a relayout ? Dec 05 13:13:20 anyone any thoughts on the 15 minute cancellation period "callback" ? Dec 05 13:13:24 ddewaele, yep Dec 05 13:13:36 ddewaele, scale basically just creates a "screenshot" of view and draws it rescaled Dec 05 13:13:41 maybe you Mavrik ? ;) Dec 05 13:14:02 ddewaele, that's why it's so cheap (it has to be drawn anyway) but you can't actually change the "outlook" of text :) Dec 05 13:14:46 because if you change margin/padding/textsize, the size of whole view has to be recalculated (to fit the view) and then whole view hiearchy with it :) Dec 05 13:17:12 Mavrik : yeah I see ... it was going very smooth on my old galaxy nexus but I noticed some janks in the emulator (janks that I don't see when using scale). Any other techniques to preserve the padding ? Dec 05 13:17:44 ddewaele, put it inside a FrameLayout and set padding on that Dec 05 13:17:57 even though, that won't cause it resize Dec 05 14:13:27 Hey Dec 05 14:14:19 i have problem with WebView...i have a web application running on my localhost, i updated /etc/hosts and so on, but when i try to load this page in my android emulator application, i see error : like connection timeout Dec 05 14:14:34 but when i try to load the same page in android emulator web browser it works Dec 05 14:14:48 i think it's problem with self-signed SSL certificate Dec 05 14:15:00 have you guys any idea how to make it working ? Dec 05 14:15:02 thanks a lot Dec 05 14:15:14 http://pastebin.com/TqaGsVKA What can I do in this ListActivity to change it from calling toString on each EventList Event to display in the listView without being hacky with toString overriding? Dec 05 14:16:49 <[1]jonc> Instead of creating a new class that extends ListAdapter, create an overloaded Adapter Dec 05 14:17:04 <[1]jonc> and then create a template view for your list item Dec 05 14:17:34 [1]jonc: I didn't extend ListAdapter, did you mean ListActivity? Dec 05 14:17:47 <[1]jonc> yeah Dec 05 14:17:51 <[1]jonc> http://www.vogella.com/articles/AndroidListView/article.html Dec 05 14:21:00 <[1]jonc> If I remember right by creating a new adapter you can inflate the view you want to use for each list item, and then fill in things based on data in your array / list Dec 05 14:22:23 <[1]jonc> it's been a couple of months since I had to do it, but that tutorial seems to show you how to do it Dec 05 14:23:31 Ok, I'm still pretty lost but I'll work my way through it. thanks Dec 05 14:25:03 <[1]jonc> If you have objects that you want to show you really have 2 options, toString hack to get it to work normally, or create a view (XML) template and create an adapter that inflates the template and fills in the TextView / other views with the objects data Dec 05 14:25:27 <[1]jonc> once you get it to work the first time it becomes much easier, just something to learn Dec 05 14:26:05 <[1]jonc> again, it's been awhile, so instead of taking my word for it, look at that tutorial and look for similar ones, they will probably be better at explaining anything I missed / got wrong Dec 05 14:29:55 heh. just asked an SDK question in #android. forgot the audience. Dec 05 14:30:19 but just found out how to share a debug keystore on multiple workstations Dec 05 14:31:40 i guess you can't set it per-project. maybe some trickery using Eclipse's links Dec 05 14:37:03 How do I automate test for rotation on older SDKs? From API level 18, there is UiAutomation. Dec 05 14:38:36 Nevermind. Dec 05 14:44:42 hello, I'm trying to programatically create a view. How can I set up the values for things inside the view once I create it? Dec 05 14:53:33 anyone ever found a way to find out if a customer cancelled the purchase from play store within the 15 minutes? Dec 05 14:54:09 I know we got emails about it, but I never worked on that Dec 05 14:55:39 hmm Dec 05 14:57:46 Sirolf: asking google perhaps? Dec 05 14:58:37 Worst case you could probably setup some form of regular expression to parse the emails and then remove the items from a user's account Dec 05 14:59:01 regex to parse emails, then using that information remove items* Dec 05 15:01:01 bfig: extend View Dec 05 15:02:37 jonc: is the google id of the customer included in the email you get? Dec 05 15:03:32 Let me see if I can find an old email Dec 05 15:03:39 there is a way in Application inherited class to close programmatically an application without start an Activity intent then there call the finish() ? Dec 05 15:04:45 ishmal, i made a layout file, I'm initializing this from an adapter (to make a list of custom objects) Dec 05 15:05:04 In MyApplication extends Application I would like to close the APP if a specific file isn't present on file system... just showing a Toast box to inform user of what happend Dec 05 15:05:14 Sirolf, it contains the order number Dec 05 15:05:27 i'm inflating a RelativeLayout, it has things inside, how can I navigate to and change them? Dec 05 15:06:45 jonc, so no user info ? Dec 05 15:08:02 no user info, but if you store the order number along with user info in a table then it wouldn't be that difficult to get yourself Dec 05 15:08:28 order number and userid in a table, along with an item ID for what item they purchased Dec 05 15:08:50 you also may be able to get all of that info from google by sending a request with the order number (not sure) Dec 05 15:10:12 you can extend View, and in the layout, specify it as class="my.package.MyView" Dec 05 15:12:03 hmmm Dec 05 15:12:05 anyway Dec 05 15:12:08 tnx jonc :) Dec 05 15:12:16 No problem Dec 05 15:14:00 ishmal, i'm looking here http://theopentutorials.com/tutorials/android/listview/android-custom-listview-with-image-and-text-using-baseadapter/ but I don't see where/how he sets the values for the images/texts to actually b e displayed Dec 05 15:14:58 bfig, getView function Dec 05 15:16:01 holder.imageView.setImageResource(rowItem.getImageId()); Dec 05 15:16:12 etc. Dec 05 15:16:45 ^ Dec 05 15:18:09 the holder object just makes it so you don't have to keep casting after the view has already been created Dec 05 15:18:29 keep pulling views from the layout* Dec 05 15:34:39 <_Lucretia_> anyone know how to get the gcc testsuite to run on android? Dec 05 15:37:44 Does anyone know if it is possible to stop calls to a certain server with the loopj http library? Dec 05 15:38:22 jonc, the holder object is a sort of bean, but it is never linked to the view itself... it is put in the 'setTag' call, but that doesn't really say 'this tag with ID 'desc', i want it to say "blah"' Dec 05 15:38:24 We use an API for a wristband that sends usage data to a server, but we cannot allow this (due to the nature of our products and laws regarding the information) Dec 05 15:38:57 It holds references to the views in the layout Dec 05 15:38:59 how are the items inside the holder associated to the view? Dec 05 15:39:19 holder.txtDesc = (TextView) convertView.findViewById(R.id.desc); etc. in getView() Dec 05 15:40:16 i would expect that to work the other way round, don't you think so? ie, convertView.findViewById(...).setText = .... Dec 05 15:40:27 it's not setting the text Dec 05 15:40:37 since holder itself is just a random class that doesn't do anything, that assignment doesn't really do anything to the view Dec 05 15:40:39 it is creating an object that holds references Dec 05 15:40:49 it is a nicety basically Dec 05 15:41:00 so where does it use the actual references? Dec 05 15:41:03 it is so you can just do holder.txtView.setText("blah"); Dec 05 15:41:11 ohhh now i understand Dec 05 15:41:12 holder.txtDesc.setText(rowItem.getDesc()); Dec 05 15:41:14 :D thanks Dec 05 15:41:42 where rowItem is the custom object you have and getDesc() is just the text you want to display from your object Dec 05 15:44:05 hello Dec 05 15:44:36 Howdy Dec 05 15:45:05 I'm working on an arrayadapter when I want to control the text. How can I get the textview at this point? http://pastebin.com/rRFpZcCy Dec 05 15:45:44 I have a problem. Android Studio does not want to build my project. Error: Gradle: Execution failed for task '::processDebugResources'. > Could not call IncrementalTask.taskAction() on task '::processDebugResources' Dec 05 15:45:56 Also, here is my listactivity which uses the adapter http://pastebin.com/0wjnvyvG Dec 05 15:48:16 mikehaas763, you should reuse convertview if not null (set rowView = convertview), if it is null, go ahead and inflate like you already are doing Dec 05 15:48:55 and then to get fields, do ((TextView)rowView.findViewById(R.id.)).setText("..."); Dec 05 15:49:16 or use the holder object like bfig is Dec 05 15:50:07 the holder object has some niceties when you are adding click events for what i've read Dec 05 15:50:11 That's one thing I couldn't figure out. How do I know what the id of textView is? Dec 05 15:50:29 you should have set it in your layout mikehaas763 Dec 05 15:50:41 in the XML / editor Dec 05 15:51:33 in xml add android:id="@+id/" to whatever view you want to set the id for Dec 05 15:51:49 if you are using the visual editor, there should be an "id" field in the list of attributes Dec 05 15:52:01 add "@+id/" to that Dec 05 15:56:06 well I didn't start this layout but its got just a TextView element in it right now Dec 05 15:57:44 you can do a getChild or something of the sort, but I'd suggest giving it an id to make sure it works later on, in case the layout changes Dec 05 15:57:53 and the textview is no longer the first child Dec 05 15:59:18 jonc, what did you mean by no longer? Dec 05 15:59:52 say if you add an image or a button or even another text view before the current one in the layout, if you do getChild(), you won't have the correct view any longer Dec 05 16:00:23 so I suggest using id's to get the views you want to make sure it always will work, even if the order of items changes Dec 05 16:00:55 Oh, I read that wrong. I see what you mean Dec 05 16:18:14 hey guys Dec 05 16:18:30 how can i add a line to a bigview notification ? Dec 05 16:18:39 to a existing notification Dec 05 16:20:07 recreate it and give to it the same notification id Dec 05 16:21:08 Anybody knows why using a custom android:layout preference layout skrewes out the styling of it ? I get a bigger text and the layout was just copied and pasted by the android git repo. Dec 05 16:23:43 does anyone do android development without a dev device? Dec 05 16:23:53 use genymotion -> helo Dec 05 16:24:11 i use the emulator, but it is a bit of a pita Dec 05 16:24:26 it's the best you'll get without a device Dec 05 16:26:32 helo, I suggest using android x86 for most things when doing android dev without a device Dec 05 16:26:42 it is much much faster than the standard android emulator Dec 05 16:27:19 genymotion begging for google to buy them Dec 05 16:27:27 there are some specific bugs and such with it, but for the most part you should be fine, if you see some really strange behavior jump over to the emulator Dec 05 16:27:34 jonc: yeah, i use the x86 emulator, and it usually works ok Dec 05 16:28:08 if i forget to close it overnight, my machine has serious issues in the morning Dec 05 16:28:25 if you install android x86 on a vm using virtual box you can even use bluetooth iirc Dec 05 16:29:14 i have my own phone, but it isn't even rooted Dec 05 16:29:27 I have an iphone :P Dec 05 16:29:36 but have an android tablet Dec 05 16:29:41 for example i can't check my db with sqlite3 Dec 05 16:30:10 helo: then root your phone :D Dec 05 16:30:17 doing android dev awhile ago made me sort of hate the OS, not a fan of apple at all, but I haven't done any dev with it to learn to hate it Dec 05 16:32:40 if i want to add a line to a notification, all the text gets replaced, not updated.. Dec 05 16:34:07 Anyone here have experience with Jackson/RoboSpice? Dec 05 16:35:37 I'm recieving JSON from the server in the format {data:{?} meta:{?}}, where data is what I want my JSON object to be built from. Dec 05 16:36:09 Is it possible to have it ignore everything else, and start with a subjsonobject like that? Dec 05 16:36:21 Sorry if my question is confusing, I'm not up on my terminology Dec 05 16:36:24 Create a wrapper object that has a MyClass data Dec 05 16:36:39 and then use gson to turn the json into the wrapper class Dec 05 16:37:17 So? I should explicitly be using jackson over json here? Dec 05 16:37:31 Errr gson over jackson is what I meant? Dec 05 16:38:03 never used jackson, Gson seems to be the "standard" Dec 05 16:38:19 Hmm? the benchmarks I read put jackson as about 2x as fast on android Dec 05 16:39:25 And I've already gotten a decent chunk done in Jackson, I'd rather not switch if I didn't have to Dec 05 16:45:55 There's this answer: http://stackoverflow.com/questions/4199794/binding-json-child-object-property-into-java-object-field-in-jackson Dec 05 16:46:38 But since EVERY call uses this format, it seems like I'm putting a lot of work in to something that's supposed to save work Dec 05 16:48:33 see in that sample, I would do a WrapperClass that contains an instance of Foo named foo and an int named baz Dec 05 16:48:41 instead of trying to work around it with annotations Dec 05 16:48:55 but not sure how jackson handles that Dec 05 16:51:14 As in Post{ Data{ int data1; int data2; [getters/setters]} Dec 05 16:51:31 And add the getters and setters to Post which communicate with the wrapped class? Dec 05 16:51:41 That seems super hacky Dec 05 16:53:42 No, no communication between them Dec 05 16:54:19 I would write the class structure to mimic the json, and then if I really wanted it into my own object that was different, write something to turn it into it specifically Dec 05 16:54:39 to turn the from json object to my object* Dec 05 16:55:17 There's about 20 calls and all follow this format. I only want the stuff in the data{} object. Dec 05 16:55:22 Is this still what you'd do? Dec 05 16:55:51 If all you want is the "data" part, I would create a wrapper with the data object inside (like the json structure has), and then just pull it out right after Dec 05 16:56:09 Wrapper{MyDataClass data;} Dec 05 16:56:10 Fair enough Dec 05 16:57:37 For real, the app store doesn't have "Free" items? Dec 05 16:57:42 can't* have free items Dec 05 17:00:03 jonc, thanks, this actually makes sense Dec 05 17:00:10 The more that I think about it Dec 05 17:00:28 Is there a way to find the "new" activity after an orientation change? I need it to continue the unit test using the correct reference. Dec 05 17:01:59 no problem Dec 05 17:03:08 Especially if I can do a generic Result {?} Dec 05 17:03:33 And annotate the wrapped class instance of E with @JsonProperty("data") Dec 05 17:08:13 explodes: free in-app items don't make any sense Dec 05 17:08:21 in-app purchases* Dec 05 17:08:41 they DO because some things are free for a day Dec 05 17:08:48 just change the price; Dec 05 17:10:01 explodes: as I've explained before, you cannot go free -> paid. You can only go paid -> free. Dec 05 17:10:23 once something is free, it's free forever. Dec 05 17:11:03 Which is pretty fail Dec 05 17:15:41 good morning everyone Dec 05 17:18:06 what was the thinking behind that Dec 05 17:18:12 seems so weird you can't go from free to paid Dec 05 17:19:52 I'm sure someone explained to them why they should support that 2-3 years ago, along with promo codes Dec 05 17:22:33 Overtime you could set things free to give users access to more, bring in a new set of items to purchase, allow people to have the old ones to try and keep them hooked Dec 05 17:26:06 SimonVT: I want promo codes so bad ;_; Dec 05 17:27:38 promo codes :'-( Dec 05 17:28:38 I have a problem. Android Studio does not want to build my project. Error: Gradle: Execution failed for task '::processDebugResources'. > Could not call IncrementalTask.taskAction() on task '::processDebugResources' Dec 05 17:29:03 try doing a clean Dec 05 17:30:32 evanc: Oh yea. Dec 05 17:35:18 I ran gradlew clean and it finished ok, then I ran gradlew build and it gave the error here: http://pastebin.com/JrhAj9Qp Dec 05 17:35:40 CallumTaylor: ^ Dec 05 17:37:00 er Dec 05 17:37:02 restart AS? Dec 05 17:37:23 CallumTaylor: I did it already Dec 05 17:38:35 anyone here ever used wifip2p and upnp? got a few q's Dec 05 17:40:09 ok, so I found out that this is probobly because of a duplicate resource, but how in the world can I find it!? This project is sooo masive that it would take a month to find! Dec 05 17:53:57 hello, i am working on a custom camera application. I try to set Jpeg quality parameter of the picture. But i tried on 2 device, and seems like HTC considers this quality parameters (when i change it picture lenght change), but Galaxy S4 dont give a ** about this parameters Dec 05 17:54:05 any idea ? Dec 05 18:44:49 without pulling in gson, is there a pretty convenient way to map a json object to a java object? Dec 05 18:45:24 why not use gson? Dec 05 18:46:00 I dont want to pull in a dependency Dec 05 18:46:29 roll your own simple annotation/reflection solution then? Dec 05 18:46:42 ^, that's about it Dec 05 18:46:51 but it'd take a lot less time to just add gson Dec 05 18:46:54 lol, I might as well pull in gson then Dec 05 18:47:23 if there was any decent json deserialization built in there wouldn't really be much of a need for gson Dec 05 18:47:49 I guess my main problem is that it would need to get checked into source control and I'm not sure where to put it so it's on the class path in android studio Dec 05 18:48:04 android studio has built in maven support Dec 05 18:48:17 you can add it as a maven dependency Dec 05 18:48:39 we're not usign dependency management lol Dec 05 18:49:27 hell you could even just add it to the build.gradle inside your project Dec 05 18:50:04 hello Dec 05 18:50:23 I've just added it through the gui, but add compile 'com.google.code.gson:gson:2.2.4' to the dependencies portion of the build.gradle Dec 05 18:50:24 Howdy Dec 05 19:24:25 Hi. Dec 05 19:50:55 Is there any functional difference between declaring: List derpList = new ArrayList and declaring: ArrayList derpList = new ArrayList? Dec 05 19:51:06 in intelliJ13 or Android Studio, what's the conventional of creating a test suite for an app? Dec 05 19:51:28 Ankhwatcher no Dec 05 19:51:56 Ankhwatcher: functional -- no. But from a design perspective, you might be exposing unnecessary implementation information Dec 05 19:52:29 how so? Dec 05 19:53:37 slassh If ArrayList was a subclass of List then yes, but I don't think that would be the case in this example, because ArrayList implements List. right? Dec 05 19:54:18 It's a list. Whether it's backed by an array or say, a linked list is of no interest to most implementations, so List suffices. Dec 05 19:54:45 what TheTrash said. if you are a client of the List API Dec 05 19:54:52 you may not care how it's being used Dec 05 19:55:12 being implemented* Dec 05 19:56:00 But to inexperienced programmers, the following argument is often more convincing: List derpList = new ArrayList(); is less typing! Dec 05 19:56:08 :D Dec 05 19:56:15 here's an example Dec 05 19:56:54 theblang, an ArrayList is still an instance of List :p Dec 05 19:57:00 if i were providing you with an API with a single method that takes a list of items and returns the list in the same order but ensuring there are uniques only Dec 05 19:57:48 slash: http://developer.android.com/reference/java/util/concurrent/CopyOnWriteArrayList.html#addIfAbsent(E) Dec 05 19:58:00 ? Dec 05 19:58:14 I have to admit List is a bit of a poor example, though. In about 99%+ of all cases, the implementation will be ArrayList. In <1%, it will be a LinkedList. In <0.1%, it will be a Stack or a Vector. Dec 05 19:58:25 Still, it's good practice :P Dec 05 19:58:29 why remove duplicates when you can just avoid adding the duplicates in the first place Dec 05 19:58:35 yes. Java list is way too big Dec 05 19:58:59 i was illustrating a design consideration one might do when considering a List or ArrayList declaration Dec 05 19:59:17 wasn't actually asking for a how-to ;) Dec 05 19:59:41 speaking of which Dec 05 19:59:46 in intelliJ13 or Android Studio, what's the conventional of creating a test suite for an app? Dec 05 20:01:10 maybe it's a secret Dec 05 20:02:11 Ankhwatcher one difference, API & style-wise, is that passing back an ArrayList to a client implies its marker interface, RandomAccess - which means random access is fast Dec 05 20:03:26 how can i print the JSON key values in android Dec 05 20:04:11 i guess you could pass back List and do instanceof RandomAccess Dec 05 20:04:18 and decide on an access strategy Dec 05 20:04:23 [{"id_Users":"1","Fname":"Devesh","Lname":"Chauhan"},{"id_Users":"3","Fname":"Dev","Lname":null}] Dec 05 20:04:28 my json is like this Dec 05 20:04:35 * g00s scratches head, not sure if that works huh Dec 05 20:04:45 anyhow http://docs.oracle.com/javase/7/docs/api/java/util/RandomAccess.html Dec 05 20:04:49 i want to print Id_Users -> 1 Dec 05 20:05:00 Fname -> Devesh Dec 05 20:05:07 Lname -> Chauhan Dec 05 20:05:09 and so on Dec 05 20:05:49 thanks g00s Dec 05 20:06:06 g00s : can you please help me with JSON key parsing Dec 05 20:06:15 [{"id_Users":"1","Fname":"Devesh","Lname":"Chauhan"},{"id_Users":"3","Fname":"Dev","Lname":null}] Dec 05 20:06:17 chinu_ no, since i dont know anything about it Dec 05 20:06:19 heh Dec 05 20:06:39 ok Dec 05 20:07:09 chinu_: if you're not good at JSON I recommend my favourite crutch: GSON Dec 05 20:08:13 g00s: how are you receiving the json in your app Dec 05 20:08:15 +1 on GSON Dec 05 20:08:28 https://code.google.com/p/google-gson/ Dec 05 20:09:36 Ankhwatcher oh wow, that is nice Dec 05 20:11:53 It really is, the project I'm currently working on has 13 GSON models files. Which is a bit silly but I didn't want to embed any of them in case they were re-used in other parts of the API. Dec 05 20:12:59 If your model classes are relatively clean, pojo frameworks like gson should work fine. If you need to manually parse yourself, the org.json.JSON{Object,Array} classes aren't that hard to use. Dec 05 20:15:07 chinu_: JSONArray arr = new JSONArray(someString); then a loop like for (int i=0; i < arr.length; i++) { JSONObject obj = arr.getJSONObject(i); String myid = obj.getString("id_Users"); ... } Dec 05 20:15:54 sigh, that should have been "arr.length()" (a method call) Dec 05 20:17:32 Hello! Does building with gradle allow me to use a different language than Java for building apps? Dec 05 20:18:15 Except C(++) Dec 05 20:19:10 marrrk: as in writing an app in a different language? No Dec 05 20:19:28 marrrk: Yes. Mixing can be harder though, because of build tool maturity. Dec 05 20:19:52 Two opposite answers. Dec 05 20:20:21 Scala should be pretty well supported. Kawa and Clojure as well. But you need to grok the Android APIs regardless. Dec 05 20:20:49 But honestly, you have to like a certain amount of pain to endure it. Dec 05 20:21:14 I would like to use scala. Do you know if it will be possible to create a library project with scala that can be used from normal "java" apps? Dec 05 20:21:14 marrrk: Are you new to Android? Dec 05 20:21:22 Or would that have to be a JAR? Dec 05 20:21:26 Not exactly, no. Dec 05 20:21:35 W000p! I got RTP/RTSP streaming working!! Dec 05 20:21:36 X) Dec 05 20:22:24 pfn here does scala and the sbt plugin for it afaik. See https://github.com/pfn/android-sdk-plugin Dec 05 20:22:41 sbt plugin for Android I meant. Dec 05 20:23:00 I'm not sure how library projects work, though they have to be compiled, when you want to use them, right? Dec 05 20:24:11 marrrk: If you can build jars, you can use them. If you're asking for build tool support and automatic dependecy detection etc then it all depends on the specifics (which language, which build tools). Dec 05 20:24:40 Nah, I mean if what I want to develop a library project for Android that should be used by other apps. It will have to be in Java, right? Dec 05 20:25:17 How do most apps do an "about" page? Dec 05 20:25:28 <_Auron_> my game engine for android is used as a .jar. I need to get around to writing it in native though. Dec 05 20:25:39 marrrk: And if you library needs to have resources (Android-style) built in, it either needs to be built in or use a special packaging format that the build tool recognizes (cant remember the new stuff that Android/Gradle supports, a* something I believe). Dec 05 20:25:54 marrrk: No, but it has to create a jar or class files. Dec 05 20:26:10 That's good! Dec 05 20:26:26 hm, i guess they were going to release 0.7.0 gradle plugin today but decided to hold off Dec 05 20:26:38 I you haven't already, don't ever develop anything in Scala because going back to Java will make you cringe your jaw out. Dec 05 20:27:29 I think that is true for most languages. We're mostly jawless here. ;-) Dec 05 20:27:57 CursorLoader, when attached to a listview and getting data from an sqlite database. If I update the data in the database from a service running a separate thread, will the loader automatically display the new data in its attached listview, or do I need to notify it somehow? Dec 05 20:28:35 Okay, so I will try with pfn's plugin now. I had used the jberkel one before. Dec 05 20:28:37 damccull it doesn't all happen automagically Dec 05 20:28:47 in android studio... where can I see log.v stuff... I have been pressing buttons all over the place... can not find it Dec 05 20:28:52 you need to register obervers, etc. see any decent example of content providers Dec 05 20:28:56 g00s: ok, so I need to notify it to check somehow? Dec 05 20:29:02 ok, i'll look around Dec 05 20:29:03 g00s: how are we supposed to know what the latest gradle plugin is at any given time? Dec 05 20:29:13 honestly don't know :| Dec 05 20:29:17 ok! :D Dec 05 20:29:27 if you do x.y.+ you'll get the latest point release Dec 05 20:29:35 I guess I could just do classpath 'com.android.tools.build:gradle:+' Dec 05 20:29:38 Search maven central Dec 05 20:30:14 And the contentprovider should notify the cursorloader Dec 05 20:30:17 damccull: You can learn about updates here https://plus.google.com/communities/114791428968349268860 Dec 05 20:30:26 Unless you for some reason don't notify that uri Dec 05 20:30:39 well, you have to do that Dec 05 20:31:01 the query has to setnotificationuri, and the updates have to do the notify Dec 05 20:31:09 ohok, so when I input data through the content provider and notify it somehow, it notifies the cursor? Dec 05 20:31:14 can FragmentActivities show up in the app drawer, or is there something I'm doing wrong Dec 05 20:32:04 damccull look at the CP user guide :) Dec 05 20:32:37 *nod* thanks. I am, just having a bit of trouble understanding things. You guys have clarified one thing thoguh. Thanks. Dec 05 20:33:04 damccull: re: UID_CHANGED error when installing, I just unlocked my phone which killed everything, and now it works Dec 05 20:33:21 RambJoe: Yes they can, but you have to give any activity you want to show up in the drawer the appropriate intent filters in the android manifest Dec 05 20:33:42 I have .MAIN and .LAUNCHER Dec 05 20:33:46 YuviPanda: it did a facotry reset :P~ Dec 05 20:33:53 is this error normal com.android.settings E/InstalledAppDetails﹕ Exception when retrieving package:com.jt.oddscruncher Dec 05 20:34:28 RambJoe: make sure it has a label, icon, and name as well. Other than those, I'm not sure Dec 05 20:34:48 damccull: yup! :) Dec 05 20:34:52 damccull: that's why it worked. Dec 05 20:38:00 ok thanks, my activity didn't have an icon :$, haven't got it working yet but will try cleaning the old install out Dec 05 20:52:43 Hi. Dec 05 20:52:45 http://developer.android.com/reference/java/util/Date.html#Date(int,%20int,%20int,%20int,%20int,%20int) Dec 05 20:53:05 Why there is "inconsistency" with day of month ? Dec 05 20:53:16 1 - 31 not 0-30 ? Dec 05 20:53:54 omg I just realised I had the MAIN and LAUNCHER in the same intent-filter as my http intents Dec 05 20:57:06 Because once upon a time someone at sun was bad at designing api's Dec 05 20:58:06 lol best answer ever Dec 05 20:58:36 are any of the java apis good ? Dec 05 21:01:00 Hi Dec 05 21:04:23 Is it possible to use java.io.Closeable before API level 19? Dec 05 21:04:49 I don't get the docs on that. Closeable is said to be APIv1, but it implements AutoCloseable which is APIv19. Dec 05 21:09:12 Maybe it didn't extend AutoCloseable until api 19 Dec 05 21:09:35 Has anyone had the issue where android studio / gradle builds your R to the wrong package? Dec 05 21:10:46 nevermind think I found it Dec 05 21:11:06 copy and paste error it seems Dec 05 21:11:53 I'm target For Closeable. Dec 05 21:12:25 Am I missing something I should be doing other than setting the target API? Dec 05 21:24:35 Hi, in Android Studio if I import the GridLayout Support Library into my other "android-library", the XML Layout Editor can't instantiate the GridLayout Widget java.lang.ClassNotFoundException: android.support.v7.gridlayout.R$dimen. Any ideas? Dec 05 21:26:16 Worth noting might be that application runs fine and this issue does not occur if the library import is to a regular package. Just very hard to see the layout without the editor. Dec 05 21:27:18 Hey guys. Is "getSkuDetails" cached in the Billing API (version 3) ? Dec 05 21:38:13 Trying to get Eclipse up and running, but it claims adb is not in the tools path. Dec 05 21:38:25 When I /usr/local/share/android-sdk/platform-tools/adb, indeed it can't find it. Dec 05 21:38:36 But listing it, it is in fact there and I have permissions. Dec 05 21:38:52 I can nano adb when in its dir, but running ./adb the file is not found! Dec 05 21:39:06 It is set executable of course. Dec 05 21:47:40 sudo updatedb ? Dec 05 21:47:55 what does "file adb" say? has the executable been replaced with some script that isn't installed? Dec 05 21:49:25 What is the best way to encrypt and keep sensitive information clientside? Dec 05 21:49:30 no server involved at all Dec 05 21:52:06 Iiis anyone here? Dec 05 21:52:15 yes Dec 05 21:54:13 Know anything about adb? Dec 05 21:55:43 oh, oh, I know something! Dec 05 21:55:48 It stands for android debug bridge! Dec 05 21:55:53 do I get a gold star? Dec 05 21:55:59 <_Auron_> lol Dec 05 21:56:34 I can see that this is not a place to help... Dec 05 21:56:44 Quantum`_: I'm actually happy to help :) Dec 05 21:57:02 Even with my questions above? Dec 05 21:57:03 but you have to ask a question :) Dec 05 21:57:07 I didn't see them Dec 05 21:57:13 Would it be ok to use a device's mac address to encrypt files for storage? Dec 05 21:57:34 it links files to device Dec 05 21:57:44 I just glanced in and saw "Is anyone here?" and "know anything about adb?". appologies :) Dec 05 21:57:47 depebds on use I guess Dec 05 21:57:58 apologies* Dec 05 21:58:00 that's fine, but how secure is that? Dec 05 21:58:22 jonc: it's as secure as the MAC address is Dec 05 21:58:24 Just don't understand why it's not seeing adb. Dec 05 21:58:34 quan linux host os? Dec 05 21:58:53 XXCoder1: Debian. Dec 05 21:59:01 I have no problem with linking the files with the device (they won't be coming off), but I need to find a way to encrypt sensitive information, but I can't send the data off to a server, has to be done on the device Dec 05 21:59:07 given that the MAC address is on every tcp packet getting sent (iirc. might be a different layer?), I would say "not very" Dec 05 21:59:47 Quantum`_: that particular "not found" error might indicate linking issues Dec 05 22:00:02 Quantum`_: what's the Eclipse error you are getting Dec 05 22:00:03 evanc: Are you here? Dec 05 22:00:07 Jesus, I agree there, but a lot of it comes down to people thinking of using that to decrypt, using a basic password and a dictionary attack I would say would be less useful Dec 05 22:00:11 but then in same directory ./adb should work Dec 05 22:00:21 expecially when exec permission is added Dec 05 22:00:23 a basic password that is easily defeated by a dictionary attack* Dec 05 22:00:37 jonc: you can't assume the attacker won't be able to look at the code of your application to figure out what its doing Dec 05 22:00:47 I also agree there Dec 05 22:00:58 but the biggest problem is then no matter what I do, it's insecure Dec 05 22:01:08 since everything for this has to be on the device Dec 05 22:01:15 well you can do 2 factor excryption key - password and mac address Dec 05 22:01:16 slassh: Unexpected exception 'Cannot run program "/usr/local/share/android-sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/usr/local/share/android-sdk/platform-tools/adb' Dec 05 22:01:18 jonc: it's only insecure on a rooted device Dec 05 22:01:24 somthing user knows and something device has Dec 05 22:01:30 if you store information in your application's data directory, nothing else has access to it Dec 05 22:01:46 We need to do a fast login also, which means I can't keep asking for the password Dec 05 22:02:11 Quantum`_: what have you set in your Android Preferences? "/usr/local/share/android-sdk/platform-tools/adb" this?? Dec 05 22:02:29 I tried to get them to do server authentication, but they said no for now Dec 05 22:02:38 jonc: what are you trying to protect against? Dec 05 22:02:46 server ath = requires server Dec 05 22:02:46 slassh: Y. And ADK plugin is installed. But as user in terminal, I can't even run adb. Dec 05 22:02:56 pronbaby why they said no Dec 05 22:03:13 we have a server, but it was never designed to support authentication (both systems are being built currently) Dec 05 22:03:16 slassh: I can nano adb, but if I try ./adb it can't find it! Dec 05 22:03:19 did you try what XXCoder1 said? navigate to the adb folder and do ./adb Dec 05 22:03:29 Y Dec 05 22:03:35 slassh: I can nano adb, but if I try ./adb it can't find it! Dec 05 22:03:54 I've never seen that happen. Dec 05 22:03:57 whats ls -a adb says Dec 05 22:03:58 Quantum`_: as I mentioned, I suspect it's a link error Dec 05 22:04:00 Everything has to be encrypted, it's part of the contract we have (Government contract) Dec 05 22:04:09 XXCoder1: It's there. Dec 05 22:04:21 whats permissions set to? Dec 05 22:04:38 JesusFreke: I just unpacked the adb sdk where it is. Everything should be there. Dec 05 22:04:50 thanks for the considerations, take it easy Dec 05 22:04:51 I downloaded the full package. Dec 05 22:05:12 I can run the Debian adb in /usr/bin just fine. Dec 05 22:05:18 Quantum`_: what is permissions on adb Dec 05 22:05:27 775 Dec 05 22:05:34 Quantum`_: what does "ldd adb" say? Dec 05 22:05:42 okay youre defnitely not world so you should be able to run it Dec 05 22:05:44 (giving the appropriate path to the adb binary, of course) Dec 05 22:06:12 JesusFreke: not a dynamic executable Dec 05 22:06:29 try entire path command ie "/usr/local/share/android-sdk/platform-tools/adb" Dec 05 22:07:06 Quantum`_: are you sure you got the correct android sdk for your platform? Dec 05 22:07:16 XXCoder1: Same. Not a dynamic exe Dec 05 22:07:30 JesusFreke: 64bit Linux. Dec 05 22:07:45 is there 64 bit sdk package? Dec 05 22:07:46 Full package, including Eclipse plugin. Dec 05 22:08:00 On Linux you need to install IA32 library as well. Dec 05 22:08:00 Try this: apt-get install ia32-libs Dec 05 22:08:08 from stackflow Dec 05 22:09:01 other one says sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 Dec 05 22:09:08 32 bit stuff for your adb Dec 05 22:10:19 XXCoder1: it can't find anything like ia32-libs. Installing the others. Dec 05 22:10:29 any recommendations for a qrcode bar code reader? Dec 05 22:11:04 IrishGringo: google goggles? Dec 05 22:11:05 well lets hope others was enough Dec 05 22:11:14 Here's the archive I installed: adt-bundle-linux-x86_64-20131030.zip Dec 05 22:11:39 man sometimes I miss linux Dec 05 22:11:54 last time I tried linux do not handle 2 montors well. Dec 05 22:12:17 Whoa, now I can run adb. Dec 05 22:12:24 awesome! Dec 05 22:12:33 well there ya go :) Dec 05 22:12:43 For some reason the 64bit adt tools require 32bit libs. Dec 05 22:12:59 man wish i had tech support job (in fact I need job like that :P ) Dec 05 22:13:06 That seems a little queer... Dec 05 22:13:16 adb exec apparently ois 32 bit Dec 05 22:14:17 Now Eclipse is pissed off about aapt... Dec 05 22:15:36 ./aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory Dec 05 22:16:38 apparently it is ia32-libs again Dec 05 22:17:01 try echo $MACHTYPE see what it has Dec 05 22:17:13 What is it called when you click the settings button, and the app shows options Dec 05 22:17:27 it isn't quite a button... but can have the same effect Dec 05 22:17:27 list type I think Dec 05 22:17:31 k Dec 05 22:17:32 thanks Dec 05 22:17:38 XXCoder1: x86_64-pc-linux-gnu Dec 05 22:17:44 okay matches Dec 05 22:18:07 Can't find libz. I guess libzip? Dec 05 22:18:17 dunno why byt your dist dont have ia32-libs Dec 05 22:19:29 is i386 package installed? Dec 05 22:20:34 Don't have an i386. This is current Debian Testing. Dec 05 22:20:52 All I have related to ia32 is to do with grub and lilo. Dec 05 22:21:44 reseraching Dec 05 22:22:02 I see ia32-lib in Squeeze... Dec 05 22:22:07 http://forums.debian.net/viewtopic.php?f=10&t=83179 Dec 05 22:22:21 ia32-libs is depercated apparently Dec 05 22:22:32 but there is tips on install nesscary packages Dec 05 22:23:36 multiarch... Dec 05 22:24:47 I have multiarch-support installed. Dec 05 22:25:10 dpkg --add-architecture i386 Dec 05 22:25:10 apt-get update Dec 05 22:25:16 maybe? dunno Dec 05 22:26:42 dpkg --add-architecture i386 && apt-get update Dec 05 22:26:59 What is the easy way to debug in app purchases? Apparently my app has to be signed with the same key as the one in the developer console. Dec 05 22:27:15 so, every time i run my app, in order to use IAP, I need to run a signed version on my device. Dec 05 22:27:20 Is there an easy way to do that? Dec 05 22:31:56 XXCoder1: I needed to apt-get install lib32z1 Dec 05 22:32:19 so, any luck? Dec 05 22:33:01 Yep, that seems to be the last error! Thanks for y'all's help. Dec 05 22:33:07 np :) Dec 05 22:33:15 last one was all yours :D Dec 05 22:33:24 Now I have to figure out how to compile and run this adk source... Dec 05 22:38:30 I'll be damned. It actually 'boots' Android in the emulator and pretends the apk is installed, to be tested... Dec 05 22:41:09 Hi, all. I was not be able to override listview onMeasure . Always a get : The method onMeasure(int, int) of type FieldListView.ListViewAdapter must override or implement a supertype method Dec 05 22:41:19 that is what I've do Dec 05 22:41:57 http://pastebin.com/cvf8PCsY Dec 05 22:42:24 I get this strange error at 106 Dec 05 22:42:37 what I've mistake ? Dec 05 22:43:24 cuz you are in your adapter class Dec 05 22:43:38 uh.... Dec 05 22:43:50 damn... I'm too KO ... never saw Dec 05 22:43:51 sorry Dec 05 22:43:55 and thank you Dec 05 22:44:10 :) Dec 05 22:45:30 I'm not a usual java coder so often I miss class in class things :) Dec 05 22:49:43 I'm trying to find a way to know if Soft Keyboard was closed checking ListView size. Dec 05 22:50:01 bluesm: yes Dec 05 22:50:03 Unfortunately when the Soft Keyboard hide don't leave focus on EditText object Dec 05 22:50:30 how I need Dec 05 23:03:44 Uh I guess maybe nobody knows ;;; Do I have to sign my app every time I want to debug IAP? Dec 05 23:03:58 (So that the signed key matches the one uploaded in the developers console?) Dec 05 23:04:11 Or, do I upload an APK to the dev. console that is signed with just the debug key? Dec 05 23:04:26 So which performs better? A SurfaceView or a View? Dec 05 23:04:58 doiii for what Dec 05 23:05:24 marrrk: what are you trying to do? Dec 05 23:05:34 To draw a graph Dec 05 23:05:38 ah ok, i dont need to sign every time. Dec 05 23:05:49 chart Dec 05 23:09:42 evanc: that left you speechless, huh Dec 05 23:10:40 probably not, he was probably helping you actually give some details so others could help Dec 05 23:11:53 what canvs2321 said Dec 05 23:12:32 marrrk: what you asked was like me asking which performs better: a hammer or a drill? Dec 05 23:13:25 well they don't both draw pixels on a screen Dec 05 23:20:19 hey guys, anyone seen an issue with fragments with match parent layouts acting as wrap content on older devices. Specifically GS2. Dec 05 23:50:08 anyone have recommendations for package naming conventions across platforms? [ios, android, mac, chrome-extension] Dec 05 23:51:12 package names as in java package names? Dec 06 00:25:04 Are there any userspace frontends for Android's dm-crypt implementation? Dec 06 00:53:08 in ant android projects, should build.xml be chceked in? Dec 06 01:14:21 does anyone know if there is an easy way to add a Gradle task that needs to be run before AAPT handles resources? Dec 06 01:14:38 something like tasks.withType(Compile) { compileTask -> Dec 06 01:14:38 compileTask.dependsOn customTask Dec 06 01:14:38 } Dec 06 01:14:50 (but running before merging resources instead of the compile task) Dec 06 01:15:29 android studio, any examples of how to get location... I just want to get a snap shot. Dec 06 01:34:04 The list drawer to implement sliding menus that is described at http://developer.android.com/design/patterns/navigation-drawer.html works only for android 4 right ? I just want to make sure I did right using a third party one that remember claimed to work on android 2 Dec 06 01:45:52 can you change the order of ontouches Dec 06 01:51:46 <|0xD34D|> Tomasso: it's in the support library so it works with older versions of android just fine (api 4+) Dec 06 01:58:18 So I workeed in vane adapting the third party plugin! That also isnt as smooth as the one that comes by default Dec 06 02:00:01 This is the one i used https://www.google.com.ar/url?sa=t&source=web&rct=j&ei=gS-hUp_hMoHMsQTCzYDIAw&url=https://github.com/jfeinstein10/SlidingMenu&cd=1&ved=0CCYQFjAA&usg=AFQjCNER7vbHLh9TiZOQ-uzShLNvJoP86A&sig2=kPGBLWuGaXI7SrIL5kC6rA Dec 06 02:00:30 Sorry this one https://github.com/jfeinstein10/SlidingMenu **** ENDING LOGGING AT Fri Dec 06 02:59:58 2013