**** BEGIN LOGGING AT Fri Aug 23 02:59:59 2013 Aug 23 03:00:50 kevinb, I just remembered why I used onSingleTapConfirmed, something is blocking my clicks, is there any way I can figure out what? Aug 23 03:01:29 clicks on the view pager? ViewPager uses onInterceptTouchEvent to handle the swiping. i imagine it's causing the problem as ViewPagers generally don't accept clicks Aug 23 03:01:58 Yeah it does probably... Aug 23 03:02:34 does ViewPager happen to have an onUnhandledTap method you can override? Aug 23 03:02:52 lets see :) Aug 23 03:03:03 Google's launcher doesn't actually use a ViewPager, instead it uses a custom view called "PagedView", which does have that method which would do exactly what you want Aug 23 03:03:19 no :( Aug 23 03:03:26 too bad Aug 23 03:04:53 I'm probably left with singletapconfirmed, but how to know if something beneath clicked :( Aug 23 03:05:03 one option would be to grab the source for ViewPager, and peek at the onTouchEvent and compare it to the PagedView.java code from the AOSP Launcher2 project, and add the desired onUnhandledTap method Aug 23 03:05:29 ok let's see what that method does Aug 23 03:05:50 the method itself is empty, but PagedView calls it in onTouchEvent after the ACTION_UP Aug 23 03:06:45 so i think it'd be easy to mimic the logic in ViewPager to add it, so you can override it and do what you need Aug 23 03:07:33 oh geez, they are different completely but ill try to find how they implemented unhandledtap and try to mimic :) Aug 23 03:07:37 Thanks for the tip man! Aug 23 03:09:12 im trying to compile a kernel but the build fails with "acpuclock-krait.c:1236:35: error: 'PVS_UNKNOWN' undeclared (first use in this function)" Aug 23 03:09:15 any one know why? Aug 23 03:09:58 as a payback, ill share a really bad leak I found out when using TextViews the other day, apparently if you use setText() before calling setTextIsSelectable(true) it will leak your mainActivity context on every orientationchange for example. Aug 23 03:10:43 :) Aug 23 03:11:37 I have no explanation for that Aug 23 03:12:05 but it just keeps some sCached object that holds a reference to your old context Aug 23 03:12:29 curious Aug 23 03:12:40 maybe your charsequence or something Aug 23 03:12:58 Let me replicate it in a new project and ill share Aug 23 03:13:03 gimme a minute Aug 23 03:14:21 you probably set text with some span that kept a reference to your activity Aug 23 03:14:32 but even so, it shouldn't be possible Aug 23 03:14:43 heapdump or it didn't happen Aug 23 03:14:43 minute, ill replicate and ill share the source Aug 23 03:16:53 i had an awkward leak the other day. i have a dataset i keep in memory, have an adapter view that creates views based on the data, and add a change listener to data item. i was cleaning up the listeners either when a view was recycled by the adapter, or when the view was detached from the window so everything seemed okay. but adapterviews do a kind of fake getView during measure. and then keep that view to be recycled later. but in some cases it was never b Aug 23 03:16:53 recycled, and never attached to the window, so the listener was never cleaned up Aug 23 03:17:33 (oh i guess there i'm using recycled to mean reused in getView). the solution was to add a proper recycle listener to the adapter, and clean up the data listener there Aug 23 03:18:50 I can't replicate my leak now :O Aug 23 03:21:10 Adapterviews do getView? Aug 23 03:22:21 yeah, ListView and GridView are adapterviews. they call the adapter's getView generally to get the actual view and display it. but also during measure Aug 23 03:22:45 Aha right, right, I know that they call it three times Aug 23 03:22:57 i have a fragment that has a imageview, and eventually the image in the imageview has a smaller width than the previous one. how can i force the layout to adapt to the new image size? Aug 23 03:22:57 I remember seeing a googleIO on listviews Aug 23 03:23:33 bitkiller, invalidate, requestLayout Aug 23 03:24:35 can someone educate me on accelerometers... the sensor ihave on my nexus is confusingly different from my samsung tablet. The sensor box app shows very predictable results on my nexus, but the tablet doesn't seem to react properly. almost like the sensor only does forward/backward tilt or side to side ( not both at the same time ) Aug 23 03:30:45 pfn, about the setTextIsSelectable(true) leak can you tell anything from the heapdump Aug 23 03:30:47 http://pastebin.com/JSnHPaXS Aug 23 03:30:58 I reverted my code back so I can replicate it. Aug 23 03:37:25 oh, you have a custom view, interesting, but I don't know why offhand Aug 23 03:37:38 not at a computer to dig Aug 23 03:38:39 why bordered? why not compound drawables or a background with a border Aug 23 03:40:26 BojanBG, I can't see anything in TextView that's static and not final or primitive Aug 23 03:45:18 pfn I needed custom borders Aug 23 03:47:59 alex_PP I know, there isn't anything that's static Aug 23 03:48:57 I excluded all weak references, and thats the only hard reference that only occurs when I setTextIsSelectable(true) after setText(...) Aug 23 03:49:49 how hard would it be to create a draw-able surface that automatically converts written text to "typed" text? Aug 23 03:57:08 interesting Aug 23 03:59:43 the recycle method of textline sets mText to null, but not mSpanned Aug 23 04:00:05 they're the smae object in the case that mText is a spanned Aug 23 04:01:41 wow. sounds like a bug Aug 23 04:01:58 does rather Aug 23 04:18:01 Hello. Is there any automatic way to get the minimum target for an application? Aug 23 05:21:06 BojanBG, custom borders are easily accomplished with a background image or compound drawables Aug 23 05:22:49 hello all Aug 23 05:25:58 Has anyone been having trouble with the chrome webview fragments on the Nexus 7 2013? Aug 23 05:35:41 exit Aug 23 06:13:34 how do people connect in here using xchat (or knockoffs)? mine tends to say that i need to identify (set to auto identify) and therefore cant join this channel automatically (seems like some race condition and identifying takes to long) Aug 23 06:14:02 #xchat ? Aug 23 06:14:33 well yea, thought maybe someone in here had a fast/easy solution ;-) Aug 23 06:24:21 if anyone has the same problem: enter accountname:nickservPassword in the server-password box (of your network, in the networklist) and delete the password from the nickserv box, thats it Aug 23 06:28:36 PatrickBic: did you fix your xchat ? Aug 23 06:29:00 shmooz, yea, see fix above Aug 23 06:29:07 (1s before you left) Aug 23 06:29:41 I missed it cause I was fixing mine Aug 23 06:30:04 I put 'timer 15 join #android-dev' into the connect command area in network list Aug 23 06:30:36 if anyone has the same problem: enter accountname:nickservPassword in the server-password box (of your network, in the networklist) and delete the password from the nickserv box, thats it Aug 23 06:31:48 mine was trying to join before nickserv approved and got rejected, the timer 15 fixed it Aug 23 06:32:19 shmooz, mine had the same behaviour ;-) Aug 23 06:33:44 ok I'll try your way Aug 23 06:36:12 works? Aug 23 06:36:25 yeah its faster than waiting 15 secs, thanks Aug 23 06:37:21 ;-) Aug 23 08:16:50 is it feasible to make an android app which communicates directly with a MSSQL server? will the mobile unstable connection have impact on such a connection? Aug 23 08:20:33 nds_: No. Yes. Aug 23 08:21:24 nds_: you can do so. Doesn't mean it is a good idea Aug 23 08:21:31 and mobile connections are horrible Aug 23 08:21:46 nds_: Theoretically, if you implement your MSSQL service as a set of stored procedures returning results "REST-style", it will probably work somewhat, but as a straight up db server - probably not. Aug 23 08:23:58 well, you don't need to do so... it's just that directly connecting to database server is a horrible, horrible idea, not only on public network but even more so on mobile network Aug 23 08:25:01 nds_ a good message exchange pattern for a mobile device is get things in big chunks, not lots of little chatter Aug 23 08:25:49 and then make those chunks even smaller, without increasing their amount Aug 23 08:26:20 also, be nice and actually write code to handle networking properly, ok? Aug 23 08:26:42 otherwise your app will be useless on noisier link Aug 23 08:37:32 i think i will suggest that they implement a layer between the app and the mssql db Aug 23 08:38:12 nds_ check out this netflix presentation Aug 23 08:39:40 http://www.infoq.com/presentations/Netflix-API-rxjava-hystrix Aug 23 08:40:19 netflix talks a little about their api design in a broad sense, in the first few minutes Aug 23 08:41:58 yo dawgz Aug 23 08:42:13 happy friday Aug 23 08:43:24 ditto! Aug 23 08:45:54 i just say an article "vimscript the hard way" Aug 23 08:46:19 they need to reboot vim with lua / python / scheme extensions, and thats it :D Aug 23 08:47:52 i think a vim + lua thing would be good Aug 23 08:50:18 Hm, I just started a class about android development. Besides the documentation in the topic, does anyone have any tips for places to read? Aug 23 08:51:10 Assuming stackoverflow is a good place to look for specific things as usual, but is the documentation the best place to be reading? :-) Aug 23 08:51:41 flexd you can also study the iosched 2013 app Aug 23 08:52:07 a lot of the aosp apps seem to be suffering from bit rot Aug 23 08:52:21 how can I go from one async task to another - giving the first result to the next Aug 23 08:52:41 g00s: hm okay Aug 23 08:52:43 LambdaDusk aha! with Lambda in your nick, check out RxJava Aug 23 08:52:55 oh man its late Aug 23 08:53:07 ~ 10:50 ;-) Aug 23 08:53:26 LambdaDusk: Or consider using an event system, for instance Otto... Aug 23 08:53:33 g00s: I prefer scala in that regard Aug 23 08:53:45 Eventually my classes will probably cover a fair bit of what I need to know, It's still the first week... But I figured I'm bored and we spent 2.5 hours installing the android sdk and making a basic celcius<>farenheit converter I can probably be done with stuff a lot sooner on my own :-p Aug 23 08:53:46 RxJava-scala then :) Aug 23 08:53:56 "design.android.com for how it should look, d.android.com for how it should work, and stackoverflow for why it doesn't" can't remember the exact phrasing :( Aug 23 08:54:33 do I have to? I only want to know how to start another async task when the first is done Aug 23 08:54:42 I don't want to add another lib Aug 23 08:55:53 flexd, yes, d.android.com is by far the best source for everyhing android :) Aug 23 08:56:19 alright then :-P Aug 23 08:56:33 My first assignment apparently is to make a simple hangman game.. should be fun :-) Aug 23 08:56:44 LambdaDusk: Well, onPostExecute in AsyncTask runs on the main thread; just start your second task from there then. But your code will look like shit. Aug 23 08:56:50 flexd, android dev class? Aug 23 08:56:55 yeah Aug 23 08:57:18 wish my uni did android classes, our java paper was making a sports management system among other things :< Aug 23 08:57:30 and using Swing for UIs Aug 23 08:57:48 we have both (swing UI stuff, android dev classes) Aug 23 08:57:51 It's an elective (do you call them electives?), I could choose from a bunch of classes while normally I only have classes I have to have. Aug 23 08:58:10 flexd, what do you study specifically? Aug 23 08:58:16 We've had boring normal java stuff before, my first semester part of the exam questions were how to make a window in swing -_- Aug 23 08:58:22 PatrickBic: Computer Engineering Aug 23 08:58:44 making a window in swing, learning how to use those damn layout managers Aug 23 08:59:15 I can't remember much of that, I have no plans on working with java other than coding android apps in the future. Aug 23 09:00:18 no j2ee? Aug 23 09:00:30 hehe Aug 23 09:00:40 flexd: where do you study ? Aug 23 09:00:55 At work (part-time) we have lots of java.. and I seriously wish people did not code banking cores in java. I hate it :-P Aug 23 09:01:07 My institute is crap :< Aug 23 09:01:26 lite_: http://hioa.no/eng - Oslo and Akershus University College of Applied Sciences. Aug 23 09:01:36 aight Aug 23 09:01:40 Huge name now, they merged our school (Oslo) and another one. Aug 23 09:02:08 well this is annoying Aug 23 09:02:26 I have a timeout in this app so it pushes you out to the sign-in activity Aug 23 09:03:04 but if you've done a search and are viewing a result and the timeout occurs you can press back and get back to the search activity Aug 23 09:06:10 is it bad practice for a Fragment to store a reference to it's container activity in onAttach()? Aug 23 09:06:15 call finish() on the activity you don't want to be able to go back to Aug 23 09:06:41 alex_PP: that's the problem, I do want to be able to go back to it, just not after logout Aug 23 09:07:23 Ankhwatcher: Then just restart the sign-in activity when needed. Aug 23 09:07:57 so, in the code that kicks you out, call finish Aug 23 09:08:24 the best idea I have is to finish() Search when launching Result and then override onBackPressed in Result to launch Search explicitly Aug 23 09:09:17 oh, i see Aug 23 09:09:19 hmmmm Aug 23 09:09:23 let me think Aug 23 09:09:49 you'd have to check the auth status in onResume of every activity Aug 23 09:10:07 and call finish appropriately Aug 23 09:10:23 alex_PP: that wouldn't be so hard actually, the timeout is implemented through an Astract activity Aug 23 09:10:38 and you're kicker outer could then you finish the current activity to pish you allthe way back up the back stack Aug 23 09:11:25 Not sure I understand, but I have the same "pattern" in my app I believe. I have a separate signin activity which gets launched when user is not authenticated, and another "authenticated" activity which gets launched after login succeeds. When login succeeds, I call finish on the login activity after starting the authenticated activity, and on logout, I start the login activity again and call finish on Aug 23 09:11:26 the authenticated activity. Aug 23 09:11:59 The authenticated activity has it's own navigation structure of course (up and back at various levels), which never leads to login of course... Aug 23 09:12:10 (except when selectin the logout menu choice) Aug 23 09:12:46 Hi guys Aug 23 09:13:57 I've just a question, mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); return null to me on Galaxy Tab 7 (P-3100). I don't know why...have you some ideas? Aug 23 09:16:35 I've all this hardware sensors: Sensore BMA254 Acceleration Sensor Sensore MS-3E (YAS530) Magnetic Sensor Sensore MS-x Orientation Sensor Sensore GP2AP002 Light Sensor Sensore GP2AP002 Proximity Sensor Aug 23 09:17:33 Hm, so I suppose this is a bit of a leading question (I do not want someone to hold my hand doing this school assignment), but what do you think would be the best way to create a very simple hangman game? I'm a bit unsure on how I should structure it. It could be very step-by-step based, or I could make it more complicated with a timer and some actual gamification Aug 23 09:18:39 flexd: Simple first, then reiterate until you are satisfied or out of time. Aug 23 09:19:01 I realise that is a very broad question too. I'm just thinking perhaps I'll write it very simple in a single activity now Aug 23 09:19:55 flexd: The old school way of "designing first" simply does not work when you're learning a new platform. Do baby steps first and learn from each step. Aug 23 09:20:17 kjeldahl: It's not due until week 38, whenever that actually is. I think this is like week 33. Stupid Norway using weeks for some reason -_- Aug 23 09:21:02 flexd: Ha ha, I know. Jeg er norsk. ;-) Aug 23 09:21:12 Tenkte det ja :-p Aug 23 09:21:15 flexd, you're going to have enough gotchas trying to get simple hangman game to work if you didn't do Android yet… KISS ;) Aug 23 09:21:55 Hello. Ive a little Question. Ive some Data grabbed from Sqlite. Im sending them via POST to a Webserver and made them UTF-8 using Stringbuilder. On the Webserver i use print_r($_POST) to receive the data back to the client(debugging) but the charset is crippled when using Log.d(..result...); any idea why? Aug 23 09:22:29 The server itself has it charset to UTF8- setuped header("Content-Type: text/html; charset=utf-8"); Aug 23 09:23:13 misterli: Few shortcuts to such problems. You need to make sure you have the right encoding at all steps, and when you figure out where it's wrong then you've solved your problem. Aug 23 09:24:22 misterli: But definitively the first step I would check is where you say you've made them UTF-8 yourself. Are you absolutely positive that you're doing it right and getting the right results? Aug 23 09:24:40 Test. Aug 23 09:26:27 kjeldahl. Well, im just reading a SQLite database which is UTF8 on the device. after that im running the value in stringbuilder with Charset.forName("UTF-8"). Yes, i think is correct Aug 23 09:26:47 How does log.d work? May it possible that it cannot handle äöüß...? Aug 23 09:27:08 the log can handle utf-8 just fine Aug 23 09:27:14 flexd: Generally, writing games for Android give you two options; write for _Android_, or use a game library (e.g. LibGDX). If the assignment is Android focused, you should probably "write for" Android. If the assignment is "game focused", then you could use LibGDX and use desktop for development and get Android "for free". Aug 23 09:27:40 kjeldahl: yeah I've used libgdx before, not going down that route now. It's part of my android class so I'll be using just normal buttons and stuff. Aug 23 09:27:46 But if using LibGDX you'll be doing lots of stuff which is more game related than Android, meaning mocking around with textures, fonts, input system etc. Aug 23 09:28:03 And you'll learn next to nothing about Android development. Aug 23 09:28:35 But it is my impression that most games aren't "Android native" anyway; they quite often have their own simple UIs embedded. Aug 23 09:28:53 (well, like most games on ANY platform that is) Aug 23 09:29:13 misterli: do you write the data to log before sending it to the server as well? preferably as close to the part where it gets sent as possible, to find out if the data is already crippled. Aug 23 09:29:32 Just debugged the output of the Database and the value before sent to the server. They are just fine. It must be crippled while transfering to webserver and getting it back Aug 23 09:30:05 anyone has some ides about my problem?Thanks Aug 23 09:30:27 flexd: Then I would start with a simple single-screen activity and progress from there... Aug 23 09:30:28 kjeldahl: I think I'll just have a textbox for guessing the next letter (or 29 buttons ;-P), then a image of a guy getting hanged I'll just be replacing when the player fails a letter, and then a bunch of words in a xml file Aug 23 09:31:46 misterli: you don't happen to be reading the result from server in chunks, do you? Aug 23 09:32:14 figured out the problem... I'm an idiot. Never use vi(m) for editing files.. It saved my changes to the header() in a swap file but not in the live file... -.- Aug 23 09:32:46 misterli: did you actualy tell it to save? Aug 23 09:32:54 misterli: vim is awesome if you use it correctly, did you :w ? Aug 23 09:32:57 Sublime Text 2 will do wonders for writing php for your server ;) Aug 23 09:33:01 wq! yes. But file was in use by apache Aug 23 09:33:08 well that is the problem then :-P Aug 23 09:33:08 misterli: dont use ! Aug 23 09:33:16 just :wq would have told you Aug 23 09:33:16 misterli: that forces it to quit even if the save failed Aug 23 09:33:20 doesnt mean ! for overwrite or force to overwrite? Aug 23 09:33:29 misterli: it also means quit without saving if save failed Aug 23 09:33:31 what does unaligned mean in the name of an apk Aug 23 09:33:33 ups :D Aug 23 09:33:39 thanks. :) Aug 23 09:34:02 But ive another Question. Is the Charset in all android devices UTF8 as default? Even in Chinese, Hebrew or other Devices? Aug 23 09:35:02 Ankhwatcher: It means it's not suitable for distribution. ;-) Aug 23 09:35:23 Ankhwatcher: for performance reasons (to reduce memory usage), the os must mmap the apk file into ram, and mmap has strict requirements on the alignment of the data Aug 23 09:35:46 Ankhwatcher: i believe zipalign will put the .dex file at the right offset within the zip, and make sure its not actualy compressed any Aug 23 09:36:27 hello Aug 23 09:36:29 I have fragment, where I can open a dialog with some list items. I want to click on item, and drag, cancel the dialog, and then drag this item to my previous fragment. Aug 23 09:36:32 is it possible ? Aug 23 09:37:20 * kjeldahl runs off to grab lunch. Aug 23 09:40:32 I've just a question, mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); return null to me on Galaxy Tab 7 (P-3100). I don't know why...have you some ideas? Aug 23 09:53:50 it is not possible to execute 2 Functions in DoinBackgroung like this? http://pastebin.com/cyLEYEjB Aug 23 09:58:57 oh, I am sorry. String[] mylist = new String[1]; Aug 23 09:58:57 fixed it myself ;-) Aug 23 10:24:59 hi, do you lose the warranty service theoretically if you flash another os on your phone, like ubuntu touch? Aug 23 10:34:36 lpapp: #android-root (but in general, yes) Aug 23 10:35:33 p_l: in general? Aug 23 10:36:03 lpapp: sometimes you'll get serviced under warranty, but it's not a given Aug 23 10:36:30 p_l: please define sometimes. Aug 23 10:36:54 p_l: for instance, how about these android devices, https://wiki.ubuntu.com/Touch/Devices Aug 23 10:37:26 lpapp: "at the whim of the people who receive the device for warranty repair" Aug 23 10:38:30 p_l: I am lost Aug 23 10:38:35 could you please be clearer? Aug 23 10:38:50 I do not care about practices. I care about theoretically what the device vendor claims. Aug 23 10:39:08 so that I know I should *not* try ubuntu touch on an android device if I have. Aug 23 10:40:43 lpapp: then you should look up apropriate law of the country regarding permitted terms of warranty contract Aug 23 10:41:03 and read the warranty contract of the device, side by side Aug 23 10:41:11 and get a lawyer for that Aug 23 11:17:01 hi Aug 23 11:19:53 Has anyone used ksoap2 with jax-ws endpoint, where WebMethod parameters are received null? Aug 23 11:20:32 hmm.. when i select a value from a Sqlite there are some newlines or "i". When i convert it to json then the "newline" or limiter has been removed. Any idea how to keep the newline? Aug 23 11:21:05 for example: mail@pay-pal-braunsch.netPay-Pal BraSch Aug 23 11:25:27 In Notepad++ this Charakter is translated in "STX". How can i parse this? Ive no idea which charakter this may be. In Wikipedia it's a "Control_character" Aug 23 11:28:27 sounds like a bunch of places with different encodings Aug 23 11:28:37 STX would be Start of Text, iirc Aug 23 11:29:54 can i get view by coords on scrren ? Aug 23 11:30:23 or add a view to layout at specified coords ? Aug 23 11:36:43 Okay. figured it out. Just replaced \02 with \r\n and everything works fine Aug 23 12:10:55 So I'm really starting to hate Spinners. They're giving me completely weird behavior, sometimes behaving properly and other times just flat out refusing to do anything I tell them to. Case in point: https://github.com/Eearslya/GW2Builder/blob/master/src/eearslya/gw2builder/OverviewFragment.java Aug 23 12:11:29 1) The weapon select spinners don't set their selection as told, except for the 4th one, but only when the third one is invisible.. Aug 23 12:11:40 2) They never respond to a setSelection() Aug 23 12:11:48 Er Aug 23 12:11:50 setVisiblity() Aug 23 12:12:06 Am I totally doing things wrong? Aug 23 12:24:43 I hate people Aug 23 12:24:51 why do you have two conference rooms booked for the same time! Aug 23 12:29:17 I have a simple date: 2013-08-23T20:30:00+00:00 Aug 23 12:29:18 and I do this: Aug 23 12:29:18 String string = e.getString("match_date_time"); Aug 23 12:29:18 Date date = new SimpleDateFormat("dd.MM.yyyy HH:mm").parse(string); Aug 23 12:29:18 Where is the Problem? Aug 23 12:30:02 omg Aug 23 12:30:08 e.getString("match_date_time") = 2013-08-23T20:30:00+00:00 Aug 23 12:30:34 You're telling it to use the wrong format for parsing. Aug 23 12:31:20 First parse, then format (assuming that's what you're trying to do). It's two steps. Aug 23 12:32:56 is there any way to programmatically put radiobuttons into a RadioGroup? I need to separate them out to make my layout work Aug 23 12:34:40 Maybe I should rephrase my question. I have a fragment with several spinners within that I need to access/change regularly. What's the best way to do that? Aug 23 12:35:28 I want to make a main menu for a game, (New game, help, exit). Would it be best to use an actual menu (xml) or should I just make an activity with buttons ? Aug 23 12:37:27 I suppose perhaps an activity with a bunch of buttons is just easier Aug 23 12:38:32 May not look as good Aug 23 12:38:37 But definitely easier Aug 23 12:38:49 I am googeling things like 'android main menu example' and coming up short so far. Aug 23 12:39:06 Has anyone created an ad-hoc network between android devices? Aug 23 12:39:07 Lots of examples on how to create context menus, but nothing that can be the activity my app/game launchesi nto Aug 23 12:39:57 crised: Through wi-fi tethering, I've gotten devices to connect to one another, but that's all I've done Aug 23 12:40:37 Eearslya: so it's not a common thing to od Aug 23 12:41:00 I wouldn't say the average user does it Aug 23 12:41:07 flexd: Unless you want your own "game gui", I would say go for standard Android menus FIRST. Then gamify it later. Aug 23 12:41:46 I'm talking about an app that uses ad-hoc Aug 23 12:41:53 I guess waze might use ad hoc Aug 23 12:41:54 flexd: As said earlier, KISS first, then polish. Aug 23 12:42:38 flexd: That menu screens you're thinking about pulls in other issues, like multiple activities versus activity with fragments etc. Things you may not be ready for yet.. ;-) Aug 23 12:43:15 Fragments took me forever to implement Aug 23 12:43:36 hi guys, I have a nasty problem I wasn't able to solve in the last 2-3 days .... I'm talking about the damn "no empty constructor" error when I try to start an activity! can someone help me ? Aug 23 12:43:38 kjeldahl: the simplest way to fix it? Aug 23 12:44:11 lucicam, you have a constructor which does not take 0 args maybe? Aug 23 12:44:17 dot8: Read up on SimpleDateFormat and understand how to use it. Honestly. The code you posted does not make any sense. Aug 23 12:44:36 kjeldahl: ok Aug 23 12:44:54 dot8: Figure out parse first, to get a Date instance, then figure out format. Aug 23 12:45:18 I really dont get why would I need one. I have tried numerous ways to fix this that I found on internet yet not even one functioned T.T. give me an example of empty constructor please :| Aug 23 12:46:00 if you are getting this when starting an Activity, you just need to remove the constructor method when making it and move that logic to onCreate Aug 23 12:46:01 public NameOfYourClass() {} Aug 23 12:46:38 ^ Aug 23 12:48:19 Android OS needs to instantiate your Activity class when starting your app, and it can't know what to pass to your constructor if you add some crazy arguments there like "public MyActivity(int bananas, String message)" Aug 23 12:48:56 so you need to provide an empty constructor "public MyActivity() {}" so it can call it without needing to know what crazy parameters you added Aug 23 12:49:00 These Spinners truly hate me. I just don't get it. Aug 23 12:49:59 not working ... it said my Context may not have been initialized .... I forgot to mention the class itself it for creating a database I just set some variables there and I have another private class that actually creates the database and I actually want to access that one ... Aug 23 12:50:01 >.< Aug 23 12:50:03 hi, can you ssh onto an android phone? Aug 23 12:50:16 via usb for instance, to be in the terminal in that way? Aug 23 12:50:17 from your host computer, that is. Aug 23 12:50:33 adb shell Aug 23 12:50:37 adb shell Aug 23 12:50:43 make sure developer options are enabled Aug 23 12:50:45 on your phone Aug 23 12:51:26 thanks. Aug 23 12:51:28 if you're creating a database, you should look into SQLiteOpenHelper lucicam, you shouldn't really be making an Activity just for that. Aug 23 12:51:51 lucicam: are you using the Context inside the constructor? Aug 23 12:52:01 Does changing a Spinner's Adapter have any effect on how it would respond to setSelection() and setVisibility()? Aug 23 12:52:05 actually, are you doing anything in the constructor? you shouldnt Aug 23 12:52:18 do whatever you're doing on "onCreate" Aug 23 12:52:19 should I post the class so you can see it? Aug 23 12:52:40 sure, pastebin it Aug 23 12:55:12 here it is .... http://pastebin.com/pNGaYeDB , quick sidenote ... it's pretty messed up right now lol Aug 23 12:55:41 should I access that classtrought Intent ? or another way? Aug 23 12:57:20 so that you get the idea .... it's basicly a database to store ideas and notes and whatever u want xD Aug 23 12:57:53 made it as an example how to use the damn listview with a database >.< Aug 23 13:00:16 Also, unrelated to my previous questions; this updateAttributes() method. Is there a better, more efficient way to do what I'm doing? Aug 23 13:00:19 https://github.com/Eearslya/GW2Builder/blob/master/src/eearslya/gw2builder/OverviewFragment.java Aug 23 13:04:43 any idea what would be the problem? I'm desperate T.T Aug 23 13:04:58 so where is it crashing lucicam ? Aug 23 13:05:44 the LogCat http://pastebin.com/67SAbaka Aug 23 13:06:33 oh I see what you've done Aug 23 13:06:35 lucicam, just how are you using DBCreator? Aug 23 13:06:40 you've got DBCreator as your activity Aug 23 13:06:47 but it isn't an activity, it's just a class Aug 23 13:08:16 I would strongly advise putting the SQLiteOpenHelper in its own class and not an inner class. The fix for your problem is to extend Activity in DBCreator, or to make a new activity (probably what you intended) which will use DBCreator Aug 23 13:08:43 rather than using DBCreator as your activity (probably declared in your AndroidManifest.xml ?) Aug 23 13:09:06 um, well in other class I used it to populate my listview. And in the other one I'm trying to give it some data to add into the DB itself (I'm using an intent there - not sure if it's ok ) Aug 23 13:10:36 so you've got an activity which uses DBCreator correctly currently? Aug 23 13:10:40 I'm not exactly sure how can I (from another class) call the onCreate method my DBHelper class (which is an inner class of DBCreator...) Aug 23 13:10:59 not really, I got another problem there too lol Aug 23 13:11:04 with the listview Aug 23 13:11:56 getting Nullpointerexeption or something like that if I remember correctly. Aug 23 13:12:59 Tho I've added the costructors that give me that error just to see if the db is acutally working -> made a Dialog just to tell me if it added my test or no ... Aug 23 13:13:40 *I've made the constructors that give me an error as comments (writing mistake) Aug 23 13:13:44 I would create an Activity and then create a new DBCreator and use that in your Activity to populate your ListView. Aug 23 13:13:52 this is giving me a headache already -.- Aug 23 13:14:42 create an actiivty where? Aug 23 13:14:45 *activity Aug 23 13:15:08 in a new file, e.g. MyActivity extends Activity Aug 23 13:16:31 sorry for my noobish questions ^^ . By the way, how would you call the onCreate of an inner class from another class separate class ? like in my case, how would I call the onCreate method of DBHelper? Aug 23 13:17:49 I just tried to make an Intend to DBCreator in hope that it would access my DBHelper class ... Aug 23 13:19:00 you don't need to directly invoke onCreate on DBHelper Aug 23 13:19:18 lucicam: sorry was away Aug 23 13:19:28 did you pastebin the class? Aug 23 13:19:47 if the database does not exist when you call getReadableDatabase() or getWritableDatabase() then onCreate will be called on your behalf Aug 23 13:19:51 found it Aug 23 13:19:53 (the pastebin) Aug 23 13:22:49 how would i set boundaries to my scrollview - if the top, bottom, left and right values of my view are static ? Aug 23 13:24:01 ok sorry about that .... my internet disconnected for couple minutes :| Aug 23 13:24:11 i would have to set those values according to my scale value i would suppose. But any idea on how to achieve that ? Aug 23 13:27:03 lucicam: sorry was away, but it seems that you're set already, right? Aug 23 13:27:07 Hey, is there anything I have to do special to download a file over https via URLConnection ? because currently my download manager has 2 sources it can choose to download a file first it trys to download the file via https from the repo which is best as we dont get charged for bandwidth and if that fails it connects to a cloud server that kills us on bandwidth and we only want to use if Aug 23 13:27:07 the repo fails Aug 23 13:27:19 you were setting a regular class as the Activity class on your manifest, it seems Aug 23 13:27:27 I disconnected from chat because of my awesome internet Aug 23 13:27:42 not really sure I'm right now trying some things Aug 23 13:28:06 you had that DBthing class on your Manifest on the Activity line? Aug 23 13:28:15 if so, then that was the problem Aug 23 13:28:18 yes Aug 23 13:28:42 you have to put there a real activity (a class that extends from Activity) Aug 23 13:28:57 http://dblosevn.chosd.com/208 the second highlighted line is where it keeps failing and switching to the aternate url Aug 23 13:29:01 how can I call the onCreate method of an inner class from another one ? Aug 23 13:29:02 then you instantiate that DBthing class on your code wherever you want Aug 23 13:29:12 you dont call onCreate Aug 23 13:29:37 how would i set boundaries to my scrollview - if the top, bottom, left and right values of my view are static ? Aug 23 13:29:42 (you shouldnt, but) why would you want to call it? Aug 23 13:29:54 to create the database :S Aug 23 13:30:28 it calls the onCreate for you Aug 23 13:30:42 you just have to instantiate the DB class Aug 23 13:31:00 but the problem is not the DB class, the problem is that you dont have an activity Aug 23 13:31:04 kjeldahl: It's not that complicated. Aug 23 13:31:12 well that's what I tried and got the n oconstructor error :( Aug 23 13:31:28 after you setup the activity correctly, then you can simply instantiate the DB class and it should work Aug 23 13:31:34 Also as you can see both urls are valid http://dblosevn.chosd.com/209 Aug 23 13:31:37 I'm late to a party now so I've got to go, but atm I hve two activites, one menu screen and one 'game', only problem is that it's not working to get it fullscreen :/ Aug 23 13:31:38 but you're putting the DB class on your Manifest Aug 23 13:31:58 you have to create a new class, call it "MyActivity", that extends Activity Aug 23 13:32:11 and put it on the Manifest instead of the DB thing Aug 23 13:32:17 flexd: That's up to you; if it's easy, go ahead! Aug 23 13:33:31 easy is relative, impossible just takes a bit longer :-) Aug 23 13:37:28 any ideas? Aug 23 13:37:59 is it correct that I even have to implement another class just to show some animated GIF? Aug 23 13:39:01 no one who's pro on scrollviews ? the issue is that whenever i zoom in, the boundaries gets changed so that i cant scroll to the end of the image on the right and bottom side Aug 23 13:39:48 lucicam: ? Aug 23 13:41:09 yes .... I'm trying diferent things right now in hope I'll get it working T.T Aug 23 13:49:54 good Aug 23 13:49:59 but did you understand the problem? Aug 23 13:50:34 Activity is an special class handled by Android. You were telling Android that a custom class you made was an Activity, but it wasnt. Aug 23 13:50:46 so Android tries to start the activity and it crashes Aug 23 13:53:35 hey guys...I'm on Android ICS and I like to know if it is possible to create SMS Folders on the default SMS app? Aug 23 13:58:39 there is no api for that Aug 23 14:00:18 so i'l have to depend on 3rd party apps? Aug 23 14:06:01 3rd part apps are unlikely to provide an api for that too Aug 23 14:06:16 there's no such thing as folders in the sms content providers Aug 23 14:06:47 well, theres the inbox, sentbox Aug 23 14:07:06 there's an mms, sms, and an sms-mms content provider; but those aren't folders Aug 23 14:08:30 so what are these? Aug 23 14:08:34 databases Aug 23 14:08:52 ok... Aug 23 14:09:06 so is a flat database? Aug 23 14:09:09 sql Aug 23 14:09:22 it's impossible to do what you want Aug 23 14:09:29 unless you make a completely custom sms app Aug 23 14:09:50 ^ do that Aug 23 14:09:50 which is available at Play store? Aug 23 14:09:55 yes Aug 23 14:10:03 Shady SMS 3.0 Aug 23 14:10:06 the best sms app Aug 23 14:10:11 lol Aug 23 14:10:52 Sliding Messages Pro has a good dev, quite a decent app Aug 23 14:11:06 Handcent, Chomp, and Go SMS can bite ball sacks Aug 23 14:15:04 I just don't want to go through the effort of installing a third party text messaging app, even though I despise the built in one :P Aug 23 14:16:09 A lot of people like the dialog pop ups from stuff like handcent, and the new facebook chatheads. That feature really bugs me Aug 23 14:17:10 Go SMS is aggressive with broadcast receiver priority. They cause conflicts in sent and received confirmation broadcasts, and they override the incoming sms broadcast manually process the sms. Aug 23 14:17:14 they cause problems Aug 23 14:23:21 How can I delete a project in Android Studio from the "workspace". Not actually from my computer, but just from the IDE's eyes Aug 23 14:25:00 Aug 23 14:25:19 Hey guys, I really need your advise woth one problem. I have an imageView witch I need to draw to pictures. One is background (level Icon) and one is foreground (tick to show that level is complete). So Image view have two states: 1) (Level incomplete) background picture is drawn, tick is invisible. 2) Background's alpha set to 50%, tick is visible. What is the best way to do it? Aug 23 14:30:09 Im realizing it with LayerDrawable but it works like shit Aug 23 14:30:25 was the "no constructor" error present in older versions? I remember quite some time ago that I would would develop on 2.2 quite a lot and never got that type of error. But suddenly now I got it like 3 times and the 1st 2 times I have no idea what I did that made them work ... Aug 23 14:30:38 this is getting annoying Aug 23 14:30:56 setVisivility() method not working at all, setAlpha(0) to hide the picture working with no ligic.. Aug 23 14:31:44 defuera: http://android-er.blogspot.com/2012/02/animate-fade-infade-out-by-changing.html Aug 23 14:32:06 luciam: I don't know what you're talking about, I have never seen that. Aug 23 14:33:14 Caused by: java.lang.InstantiationException: can't instantiate class com.whatever,xxx; no empty constructor ... best error ever <3 Aug 23 14:33:48 best ever? completely straightforward Aug 23 14:33:48 never stayed so much at solving an error like this one this is like the 3rd day... Aug 23 14:33:54 no empty-arg constructor Aug 23 14:33:58 so fast and easy to fix... Aug 23 14:34:36 I've tryed like 5 different "empty constructors". all of them weren't ok with the class and so I cound't even run the app Aug 23 14:35:54 How are there 5 different ways to make an empty constructor? Aug 23 14:36:34 5 different empty constructors? Aug 23 14:36:42 if there's 5 different empty constructors, they're all wrong Aug 23 14:36:43 I was saying a number at random lol, I've tried like 5 different ways , is that ok ? xD Aug 23 14:36:48 there is only *1* empty-constructor Aug 23 14:37:02 public whateverclass (){ } ? Aug 23 14:37:23 yes Aug 23 14:37:25 yep Aug 23 14:37:34 and empty means no-arg Aug 23 14:37:36 not no body Aug 23 14:38:01 If that didn't fix it then your problem is elsewhere Aug 23 14:39:18 is your class inside another class? if so, it needs to be public and static Aug 23 14:39:19 well it basicly tells me it's not right, I can't run it ... I think I'll make a post on stackoverflow with all my classes because I'm seriously not getting anywhere by myself at this point -.- Aug 23 14:39:32 it is .. .and it's a class that makes a database Aug 23 14:40:08 lucicam: is it a fragment? Aug 23 14:40:15 lucicam: you didnt manage to make it work? Aug 23 14:40:20 I wasnt paying attention on irc Aug 23 14:40:22 you never posted your exception that I can see... Aug 23 14:40:24 Well where ever you are trying to instantiate Whateverclass from, it can't see Whateverclass Aug 23 14:40:25 i assumed it was a fragment.. Aug 23 14:40:38 nope ... I didn't make it work. And no, it's not a fragment Aug 23 14:40:44 what is it then Aug 23 14:40:50 dont leave me hanging on a teat Aug 23 14:40:57 lol Aug 23 14:40:59 getting it work is pretty trivial for that error Aug 23 14:41:00 luci paste your Activity class on pastebin Aug 23 14:41:05 and your Manifest Aug 23 14:41:07 if you can't get it working, then you're just completely.... Aug 23 14:41:29 1 sec, I'll paste all those 2 classes -.- Aug 23 14:41:33 and manifest Aug 23 14:41:49 error is most important Aug 23 14:41:53 oh Aug 23 14:41:56 and if you're using nested classes Aug 23 14:41:57 make sure you paste them in here so we get flooded Aug 23 14:42:00 be a dear and make them static Aug 23 14:42:07 people that don't understand java don't make them static Aug 23 14:42:13 and you instantly have a non-empty arg constructor Aug 23 14:42:28 pfn: what requires a non empty arg constructor that isnt a fragment? Aug 23 14:42:37 activity Aug 23 14:42:39 broadcastreceiver Aug 23 14:42:41 service Aug 23 14:42:52 application Aug 23 14:42:53 come to mind immediately Aug 23 14:42:54 how could you get an activity into that state though Aug 23 14:43:14 I dunno, people that don't know what they're doing ;-) Aug 23 14:44:11 ooh, gotta go to stl again next week... yay... not Aug 23 14:44:26 the spg double-points thing hasn't even started yet for that :-/ Aug 23 14:44:40 st. screwus Aug 23 14:44:53 I guess I need to rent a car this time, too Aug 23 14:45:01 oh wow Aug 23 14:47:17 stl? Aug 23 14:47:40 http://pastebin.com/VYgJTU5m Aug 23 14:47:47 and this would be the error : 08-23 17:12:19.035: E/AndroidRuntime(20604): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.luci.myapp.agenda/com.luci.myapp.agenda.DBCreator}: java.lang.InstantiationException: can't instantiate class com.luci.myapp.agenda.DBCreator; no empty constructor Aug 23 14:48:26 where's your log? Aug 23 14:49:03 your Manifest is wrong Aug 23 14:49:06 catlog: http://pastebin.com/ZLGme3Sy Aug 23 14:49:18 what's wrong? Aug 23 14:49:21 android:name="com.luci.myapp.agenda.DBCreator" Aug 23 14:49:26 DBCreator isn't an activity #1 Aug 23 14:49:29 you are calling regular classess as activity Aug 23 14:49:38 #1 DBCreator(Context c) is not a no-arg constructor Aug 23 14:49:43 er, #2 Aug 23 14:50:02 I've normally used it like this Aug 23 14:50:05 but gave the same error Aug 23 14:50:11 oh god man Aug 23 14:50:14 no shit, you have 2 errors there Aug 23 14:50:16 DBCreator isn't an activity Aug 23 14:50:17 DBCreator is NOT an activity Aug 23 14:50:37 :S ... sry lol, I'm still learning xD Aug 23 14:50:39 lucicam: this is a hard problem Aug 23 14:50:45 but i can put my best man on it for $50 an hour Aug 23 14:50:52 I estimate at least 3 hours, possibly 12 Aug 23 14:51:37 I've made this jsut to learn some database and how to populate the lsitview from it ... it's for learning purpose lol Aug 23 14:51:43 you reference 4 activities on your Manifest, 2 of them as MAIN Aug 23 14:51:51 and only 1 of those 4 really exist (as an Activity) Aug 23 14:52:14 does anyone know of a good guide to video playback in android? the documentation seems really sparse. Aug 23 14:52:18 lucicam: start simple, first try a Hello World without a database, so you understand Activities, how to create an empty project, etc Aug 23 14:52:53 a correct Manifest in your case would have only 1 block referencing the IdeaInput class Aug 23 14:53:17 delete the others, and make the IdeaInput MAIN Aug 23 14:53:28 I've done that like 2 years ago but I had some problems and didn't have the time to still program for some time and now I have the time and I'm trying learn from where I stopped Aug 23 14:53:37 android:name="com.luci.myapp.agenda.IdeaInput" Aug 23 14:53:37 android:label="@string/app_name" > Aug 23 14:53:37 Aug 23 14:53:37 Aug 23 14:53:38 Aug 23 14:53:38 Aug 23 14:53:38 Aug 23 14:53:39 Aug 23 14:53:42 flood :) Aug 23 14:53:54 Pastebin, dude Aug 23 14:54:08 10 lines, too much effort for pastebin Aug 23 14:54:30 fuck everyone in here Aug 23 14:54:30 3 lines is pushing it Aug 23 14:54:33 i'm setting this place on fire Aug 23 14:54:35 Please don't do it again Aug 23 14:54:58 mikedg: fuck you Aug 23 14:56:02 no Aug 23 14:56:04 fuck you! Aug 23 14:56:08 glasshole Aug 23 14:56:13 ^ Aug 23 14:56:32 i'd rather be a glasshole, than be leeds Aug 23 14:58:08 wtf? Aug 23 14:58:49 p_l: :! Aug 23 14:59:16 anarchy in #android-dev run for your lives! Aug 23 14:59:57 ankharchy Aug 23 15:00:16 so... programmatically rotating my application... advice? Aug 23 15:00:58 requestOrientation Aug 23 15:01:14 setRequested whatever, something like that Aug 23 15:01:34 pfn: yeah, that's fine for an activity Aug 23 15:01:37 junit.framework.AssertionFailedError: expected:<1379787000000> but was:<1379787000000> Aug 23 15:01:40 good ol' junit Aug 23 15:01:40 but I need to rotate the application Aug 23 15:01:56 so set a flag that your activities honor onResume Aug 23 15:02:40 buttonObject.setOnClickListener(new OnClickListener() { Aug 23 15:02:46 what I can do at the moment is rotate my settings activity and then press the back button and get a portrait parent activity Aug 23 15:02:49 your application has nothing visible, so nothing to rotate Aug 23 15:02:56 the javac says expected Aug 23 15:03:14 santosh, you're missing a semi-colon or brace or parens somewhere Aug 23 15:03:22 context is always important Aug 23 15:05:51 pfn: I tried a solution which restarted the app, which worked fine on my Nexus 4, but did not work on the sony I'm testing with Aug 23 15:05:54 hi Aug 23 15:06:15 it also caused ADB to crash on my dev pc Aug 23 15:06:32 I'm playing around with the android aosp and i wanted to know where should i look in the source to add some directories and files to the default build Aug 23 15:06:51 i'd like to add a few extra command-line tools to it at build time Aug 23 15:06:59 allfro: have you asked in #android-root? Aug 23 15:07:12 no sorry Aug 23 15:07:27 they might have some advice for you Aug 23 15:07:27 i just figured it would be a dev question Aug 23 15:08:55 pfn: I have checked, but can't find. Please help: http://pastebin.com/hPqkTmmh Aug 23 15:09:16 santosh, you can't have code in the middle of a class Aug 23 15:09:21 santosh, time to go learn some java better Aug 23 15:09:29 does anyone know how to remove the gen/ map from my repo in bitbucket? Aug 23 15:09:48 damnit, wtf isn't handbrakecli loading libdvdcss.dll Aug 23 15:09:54 * pfn tries 32bit Aug 23 15:10:40 Sirolf: check the repo out then delete them then check it back in Aug 23 15:10:43 santosh: you need to set the values of edittext, password and button object in your onCreate() Aug 23 15:11:59 if an activity launches another activity and then the user presses back, will the onResume of the first activity be called? Aug 23 15:13:02 Ankhwatcher: http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle is your friend Aug 23 15:13:42 mmathis: yeah, that's what I thought Aug 23 15:14:35 ah, I put code after super.onResume() when it needed to be before Aug 23 15:14:51 now what the hell are all of my raido buttons getting set Aug 23 15:14:58 s/what/why Aug 23 15:16:16 hi, im trying to draw some polygon out of .kml file with these coordinates http://ideone.com/D2Jqr6 all i see is a line, should i use some big scale matrix like 1000.0f, or what :S Aug 23 15:16:19 pfn: Ok, I know I don't know java, but I have seen codes like mine working: http://stackoverflow.com/a/14818574 Aug 23 15:16:30 I don't care Aug 23 15:16:32 learn java Aug 23 15:16:35 not copypaste Aug 23 15:17:31 pfn: I like how he's ignoring my advice Aug 23 15:18:41 santosh: that code is inside a method (onCreate ) Aug 23 15:18:59 not loose in the class body Aug 23 15:19:22 guess I needed 64bit... huh, handbrake doesn't have an option to set cpu count anymore? bummer Aug 23 15:19:50 handbrake is that app for ripping dvds right? Aug 23 15:19:54 encoding Aug 23 15:20:03 transcoding, rather Aug 23 15:20:20 need to rip some of my old anime dvds for boredom on airplane flight next week Aug 23 15:21:22 mikedg .. thanks .. the problem was eclipse was building automaticly .. so on removing the gen folder it recreated it instantly ;-) now it's properly removed Aug 23 15:21:43 bitbucket, is that hg or git Aug 23 15:21:48 both? Aug 23 15:22:01 I mean, git is easy, just git rm -f gen; then git commit Aug 23 15:22:21 yeah I know ... Aug 23 15:24:16 Add it to .gitignore Aug 23 15:28:57 how to get the size of the window? (display size minus notification bar minus the onscreen back/home/menu button area) Aug 23 15:30:05 the onscreen back/home/etc doesnt count into display size afaik Aug 23 15:30:45 the notification bar part I dont know, I usually make fullscreen games, so that doesnt count Aug 23 15:30:47 nice. still when i query windowmanager for dimensions, it gives me the whole screen :-/ Aug 23 15:31:55 yea in this case its pretty ease. does the opengl viewport reports the size of the surfaceview correctly whith shown noti.bar? Aug 23 15:33:06 hello Aug 23 15:33:39 is there somebody still working uner google maps v1 ? Aug 23 15:33:53 the notification bar never shows, so my surfaceview is the whole screen (except for the back/home/menu area) Aug 23 15:34:06 Ok just tell me what does this error says: is not abstract and does not override abstract method onClick(android.view.View) in android.view.View.OnClickListener Aug 23 15:34:52 santosh: when you do .setOnClickListener(xxxx), the "xxxx" class you instantiate must implement the onClick method Aug 23 15:35:19 santosh: your anonymous inner class failed to correctly override the onclick method. Use @Override annotation. Aug 23 15:35:27 or add onClick method if indeed you didn't do so Aug 23 15:35:34 you seem to have renamed onClick to "openAnotherActivity" on your code (!?) Aug 23 15:40:51 Just tell me what does this error says: is not abstract and does not override abstract method onClick(android.view.View) in android.view.View.OnClickListener Aug 23 15:41:16 means you have an abstract method that needs implementation Aug 23 15:41:17 [12:34:43] santosh: when you do .setOnClickListener(xxxx), the "xxxx" class you instantiate must implement the onClick method Aug 23 15:41:17 [12:35:25] you seem to have renamed onClick to "openAnotherActivity" on your code (!?) Aug 23 15:44:40 rottz: openAnotherActivity is the function which I am using in layout/main.xml's button's onClick Aug 23 15:45:07 xml onClick, fascinating Aug 23 15:45:44 santosh: that function has to be named "onClick" Aug 23 15:46:02 for the OnClickListener to work properly Aug 23 15:46:08 if you declared the onclick in the xml, then it doesn't need to be an onclicklistener Aug 23 15:46:18 it just looks for that method in the current activity Aug 23 15:46:41 or something like that Aug 23 15:54:29 damnit, how the hell do I see subtitles in the video player Aug 23 15:56:13 with your eyes Aug 23 15:57:45 they don't show up is the problem Aug 23 15:57:58 even though the video has a subtitle track Aug 23 16:01:37 there is a if-else block in my activity, only the else part is executed even if 'if' is true Aug 23 16:04:30 well Aug 23 16:05:01 i want to believe you, but that looks like a too stupid bug for a compiler Aug 23 16:05:26 santosh: use password.equals(passwd) Aug 23 16:06:36 I have a problem. I am using MediaPlayer to capture video. However, I have a GCMBroadcast that plays audio and if it occurs while recording video my recording is immediately halted. How can I prevent the audio playback from halting the video recording? Aug 23 16:08:06 santosh: It may not actually be going into the else Aug 23 16:08:07 mmathis: even if i do so Aug 23 16:08:42 santosh: Does this if-else block happen to be anywhere near multithreading? Aug 23 16:09:07 I have experienced something like this recently Aug 23 16:09:45 I kept stepping through my code with the debugger and it succesfully went into the if and the else in front of my eyes, but it was all a lie Aug 23 16:10:26 Java Quantum Physics Edition Aug 23 16:10:38 hello , is it possible to register app to run at some hour on android ? i want my app to be offline for long time then after automatically run from task scheduler on android , how can i do it ? Aug 23 16:11:50 JDuke128: Service Aug 23 16:12:27 http://developer.android.com/reference/android/app/Service.html Aug 23 16:13:01 hi! what is the best method regarding when implementing a thread to do something once every 1 second? (the computation the thread does is very small) Aug 23 16:13:32 Gradle / Studio question : when adding a library dependency (aar format), I assume gradle fetches it from maven central. But does it also store it in a local repository ? (I could only find it internally in the project (${PROJECT_HOME}\build\exploded-bundles\*.aar) Aug 23 16:26:23 In a new device, there is no contact associated with User Profile. How can i create one? Aug 23 16:26:27 I need to play a sound when I receive a GCM Broadcast. I've tried using MediaPlayer but I find it interrupts video recording (if I happen to be doing this). Is there another approach to playing a sound on GCM broadcast receive? Aug 23 16:27:23 yiati , thank you but i ve solved with AlarmManager... Aug 23 16:27:36 someone know what is pending intent ? Aug 23 16:27:39 SoundPool? Aug 23 16:27:43 @ zanberdo Aug 23 16:30:30 pending intent is like a normal intent, but can be saved for later and even though it's sent from one process it maintains the privileges for the original creator Aug 23 16:31:31 so like with alarm manager, you might have an alarm to fire off a restricted broadcast receiver that shouldn't be accessed by third party apps. but since you created the pending intent, when the alarm manager fires it, it has your privileges and is allowed to access the otherwise private receiver Aug 23 16:34:42 Kegsay, I was looking at sound pool but I'm a little stumped. Do I create the SoundPool in my application launcher then trigger it through GCM broadcast? Aug 23 16:36:01 You could do that. If you *just* want a ringtone and are not fussed about the actual type of ring, I would just display a notification with a sound (e.g. using Notification.DEFAULT_SOUND) Aug 23 16:37:04 or if you're using a NotificationBuilder (in support libs) you can set a uri to use http://developer.android.com/reference/android/app/Notification.Builder.html#setSound(android.net.Uri) Aug 23 16:40:01 Kegsay, actually, I have a custom audio file that is being played now when GCM is received. The problem is that I'm using MediaPlayer. This is a problem when the app is recording a video - when GCM is received and plays audio it halts video recording. I was thinking if I could use the SoundPool to load my audio then trigger the audio on GCM receipt I wouldn't interfere with recording. Aug 23 16:41:42 Howdy all. What's the best way to share some preferences (a few strings, maybe a couple small binaries) between a few related applications? Aug 23 16:41:56 yeah, but it depends why it is interrupting your recording. It may be because the stream type you're trying to play the audio on is in use (though this would seem odd since it should be recording, not playing) Aug 23 16:42:29 Andrew76: exported content provider Aug 23 16:42:30 hey guys...I'm on Android ICS and I like to know if it is possible to create SMS Folders on the default SMS app? Aug 23 16:42:38 ReGiStRaS: lol Aug 23 16:42:40 alternatively, it could be the app in question trying to be 'helpful' by pausing recording when *anything* is played perhaps? Aug 23 16:42:55 Hello everyone. Has anyone ran into the issue with download manager being unable to support basic authentication to download files from websites that require basic authentication before download? I have a website that is similar to this Aug 23 16:42:59 y lol Aug 23 16:44:56 my users are unable to download the file because downloadmanager doesn't support authentication Aug 23 16:44:58 Kegsay, I'm not at all clear why playing the sound with MediaPlayer is interrupting the recording (which is using MediaPlayer. This code was written by another developer. All I know for sure is that when I trace the code I can clearly see is that the activity recording video calls onPause() immediately after the GCM receiver onMessage() Aug 23 16:45:14 What is the workaround for this issue? Aug 23 16:45:18 and of course the camera stops recording and the sound plays. Aug 23 16:45:30 which app ooi zanberdo? Aug 23 16:45:54 ooi? Aug 23 16:46:31 out of interest Aug 23 16:47:04 nseidm1: So in that exported content provider model, one app will have to own the content (as an SQLite DB or some other format) and the others access it? Aug 23 16:47:36 it's an emergency notification application that's specific to my company's line of products. Without a login configured it's pretty worthless (as far as someone looking at the behavior) Aug 23 16:47:56 it seems more like this is a problem with the recording app rather than your technique. Whilst I think you should try a different technique (e.g. the notification way I suggested), I question whether that will actually fix it Aug 23 16:48:14 Hi guys! I have a problem with drawable resources, i have an image, which i would like to use as background for my app, but i cant refer to it from code. I've put .png file almost everywhere, but i still can't refer to it, i am using android studio. Here is full project directory listing: http://pastebin.com/SGRcEtjz and here is the way i try to refer to my background: bridge.png: http://pastebin.com/RWwFacvp Aug 23 16:48:15 I've only just started developing on Android (in the last few months) and I'm taking over this code, so there are a lot of things going on I'm only just now figuring out Aug 23 16:48:16 Andrew76: you can still use SharedPreferences as the back end. but there is the problem of which is the "master" Aug 23 16:49:02 Kegsay, ok, so say I did go with notification (and I will google this shortly) can I play my own audio or is it restricted to the notification sounds? Aug 23 16:49:26 Andrew76: I have two apps that don't need to have the same preferences, but generally users want them to. so when changing the preference in one i also connect to the content provider in the other to save the new values Aug 23 16:49:34 recording and playing audio/video is one of the most annoying parts of android in my experience, because the manufacturers (without shaming any in particular, though some more than others..) just don't implement the APIs correctly Aug 23 16:49:56 you should be able to zanberdo by representing your audio as a URI (e.g. a Content URI, file URI) Aug 23 16:51:12 kevinb: So each application would be a content provider, and any app in the "group" of apps would inform all the others when a preference is changed? Aug 23 16:52:00 Andrew76: yeah. in my case it makes sense because the apps can be installed by themselves and some users even intentionally want the preferences different. depending on your case a "master" might be better Aug 23 16:52:42 kevinb: Ok that makes sense. Thanks for the help! Aug 23 16:52:57 Andrew76: this is basically what I do. i never bothered implementing query https://gist.github.com/teslacoil/0eb4a21f4f6206bb6174 Aug 23 16:54:01 Kegsay, I'm looking at the video recording activity and I can clearly see that onPause() stops the recording. So I guess my first question is (and I realize without seeing the code you may not be able to help): how do I prevent the media player playing the sound from pausing the media player activity that's recording? Or is that even possible? Aug 23 16:54:29 Andrew76: no need to inform, just use a content observer Aug 23 16:54:38 it'll twitch when the content provider changes Aug 23 16:54:54 the activity probably has a listener for other sound events, and calls onPause if a new sound is played (or something to that effect) Aug 23 16:54:58 nseidm1: That's right, I remember reading about that. Thanks! Aug 23 16:56:08 Kegsay, It does appears to impliment a MediaRecorder.OnErrorListener Aug 23 16:56:11 zanberdo, http://stackoverflow.com/questions/3576160/android-detect-another-application-has-started-playing-audio Aug 23 16:56:53 Kegsay, thanks, I'm looking into this now Aug 23 16:57:57 nobody? Aug 23 16:58:01 ulik: hi Aug 23 16:58:07 oops Aug 23 16:59:13 nobody has downloadmanager authentication issues? Aug 23 16:59:39 ulik, define basic authentication. SSL? sessions? Aug 23 17:01:35 presumably that's HTTP basic auth Aug 23 17:02:27 Kegsay: THe HTTP authorization header Aug 23 17:03:43 Bet you $7.99 it's on Chrome, use Firefox or Opera and it'll work fine Aug 23 17:03:46 known issue Aug 23 17:03:52 yep Aug 23 17:03:58 chrome and the default browser for android Aug 23 17:04:17 firefox or opera doesn't use download manager, it has its own Aug 23 17:04:19 there is no fix you can implement Aug 23 17:04:35 how do other websites deal with it? any workarounds you know of? Aug 23 17:04:47 I use Firefox Aug 23 17:04:48 for example, how does gmail attachemnt downloads work on chrome Aug 23 17:05:01 they use authentication i would think Aug 23 17:05:02 never tried :-P Aug 23 17:06:17 why is the android-3.2_r1 tag no longer available at AOSP? Aug 23 17:06:30 none of the v3 tags are there anymore. Aug 23 17:06:45 v3 never happened Aug 23 17:08:08 what's this? https://groups.google.com/forum/#!searchin/android-building/android-3.2/android-building/ajs6HCJaEfU/YZ3BmEe0EGQJ Aug 23 17:08:43 a google groups thread? Aug 23 17:08:53 so - is there a reason why v3 was deleted? doesn't that violate the GPL? Aug 23 17:09:15 the code exists Aug 23 17:09:23 it's just not tagged (according to you) Aug 23 17:09:35 Because Honeycomb sucked on anything but tablets Aug 23 17:09:47 lhunath: there was no violation. Also, majority of that code is not GPLed anyway Aug 23 17:09:49 it may just be my inadequacy as far as repo is concerned. Aug 23 17:10:05 lhunath: why are you looking for this? Aug 23 17:10:19 lhunath: btw, GPL doesn't require source to be online at all Aug 23 17:10:26 maybe when JBQ left he deleted all the tags Aug 23 17:10:26 because I'd like to debug an issue on a tablet, and I'd like to look at the source. Aug 23 17:10:45 p_l: true. Aug 23 17:11:35 they didn't tag honeycomb because they didn't want people to build it Aug 23 17:11:47 they didn't release (the non-gpl) code until after ICS was released, so they just tagged that Aug 23 17:11:47 Eh well, Really weird debugging error, http://pasteboard.co/243U6gh0.png Aug 23 17:12:01 s[i] has "" Aug 23 17:12:09 And I am doing contains over it with the same Aug 23 17:12:20 But, Gives false as return valuea Aug 23 17:12:23 value* Aug 23 17:12:26 and condition fails :\ Aug 23 17:12:31 umm. so, what, they're ashamed of their 3.x releases? Aug 23 17:12:39 yes Aug 23 17:12:48 Any idea? Aug 23 17:13:15 Its like the most basic Java error Aug 23 17:13:20 but, Weird one too Aug 23 17:13:33 hah, Can see the value is same but contains is returning false :( Aug 23 17:13:37 I'd still like to be able to step the source in my debugger with the line numbers being correct. Aug 23 17:14:12 honeycomb? Is there even a tablet still running it? Aug 23 17:14:52 kevinb, mind helping a bit. Aug 23 17:15:11 Most tablets drop with 4 q these days Aug 23 17:15:15 4.1 Aug 23 17:15:25 Damn mobile keyboard... Aug 23 17:16:14 I don't suppose anyone has the commit hash of what used to be android-3.2_r1 Aug 23 17:25:02 dragorn you may like this https://news.ycombinator.com/item?id=6256193 Aug 23 17:26:17 I'm working on an AOSP ROM for a non-nexus device. I managed to boot the kernel, but libmedia is being chatty in the logcat. Aug 23 17:35:13 wow, Ballmer retires in 12 months Aug 23 17:35:59 g00s: yup - been passing that around, been doing a lot more usb stuff lately too Aug 23 17:36:01 g00s: thanks Aug 23 17:36:19 g00s: was just debugging a powersave disconnect problem w/ some dev hw at defcon :P Aug 23 17:36:53 g00s: walking around w/ a hw usb analyzer in a fancy case, thinking "what's the worst thing i could say if casino security stops me for carrying this..." "Well... it's certainly not a BOMB... haha!" Aug 23 17:37:51 dragorn should have put radiological / biohazard stickers on it too :) Aug 23 17:41:54 g00s: yeah, that's what I need :P Aug 23 17:42:36 Can one even purchase trifoil stickers without documentation? Aug 23 17:43:22 hello Aug 23 17:43:27 Motorhead: sure why not Aug 23 17:43:33 Motorhead: you can also just vinyl cut your own Aug 23 17:43:39 True Aug 23 17:43:42 new activity dialog window has "finish" button inactive - http://d.pr/i/cS2r ? Aug 23 17:43:47 I'm still having problems with those FragmentManagers Aug 23 17:43:56 Motorhead: http://www.amazon.com/Roll-Products-Permanent-Identifying-Fluorescent/dp/B008UB8MGU/ Aug 23 17:44:10 dragorn i used to have a steel briefcase and as a joke (many years ago) put one of those stickers on it. i even got onto a flying tube with it Aug 23 17:44:26 g00s: I used to put entertaining stickers on things a lot more than I do now Aug 23 17:44:42 http://pastebin.com/skiUP6M9 Line 69 shows me an error: The method show(android.support.v4.app.FragmentManager, java.lang.String) in the type DialogFragment is not applicable for the arguments (android.app.FragmentManager, java.lang.String) Aug 23 17:44:49 dragorn did you have to fly with the usb analyzer? Aug 23 17:45:06 g00s: no; another guy on the team came from australia tho and flew w/ it Aug 23 17:45:18 changing getFragmentManager() to getSupportFragmentManager() doesn't work Aug 23 17:45:18 g00s: and a fpga dev board, and a bunch of other stuff Aug 23 17:45:23 I knew a civilian could buy the biohazards, I meant the radiological ones Aug 23 17:45:53 The method getSupportFragmentManager() is undefined for the type MenuList Aug 23 17:46:14 Motorhead: looks like a few hundred options on amazon; dunno if they're "official" Aug 23 17:46:47 Tadas, grep for MenuList and see what comes up Aug 23 17:47:27 getSupportFragmentManager is method on FragmentActivity Aug 23 17:47:38 grep? Aug 23 17:48:27 New to linux I take it, or are you building with Eclipse on Winblows? Aug 23 17:48:48 Yes, windows Aug 23 17:48:57 that's why i'm confused Aug 23 17:49:17 How do you restart a song being played with MediaPlayer? Aug 23 17:49:41 Gotcha. I dev on linux, so I have a bunch of native tools handy Aug 23 17:49:58 How do you restart a song being played with MediaPlayer? Aug 23 17:51:42 datandroiddude, have you even tried googling it? Aug 23 17:52:16 Motorhead, the thing is that this piece of code works on linux but it doesn't on winblows Aug 23 17:52:52 forget it.. Aug 23 17:52:53 Incompatible java maybe? Aug 23 17:54:36 hmm Aug 23 17:54:47 Dunno Aug 23 17:54:54 maybe googling for "windows" instead of "winblows" or whatever retarded words you come up with will help your problem, eh? Aug 23 17:56:11 lol Aug 23 17:56:33 I've been googling for ages but I wasn't able to find anything Aug 23 18:02:42 Tadas: seekTo(0); Aug 23 18:04:54 hangouts need better control Aug 23 18:05:02 the glass team can not get into their own office hours hangout Aug 23 18:05:02 lol Aug 23 18:06:01 mikedg maybe the should just use irc :) Aug 23 18:06:16 *they Aug 23 18:06:34 i remember back in 2009 when we had office hours here Aug 23 18:11:10 datandroiddude: [19:02:35] Tadas: seekTo(0); Aug 23 18:11:14 this was meant for you Aug 23 18:11:31 thanx bro Aug 23 18:12:34 The most common fix for my problem would be Aug 23 18:12:34 Replace this getFragmentManager() with this getSupportFragmentManager() and also make sure that your activity extends FragmentActivity Aug 23 18:12:51 But My activity already extends ListActivity Aug 23 18:13:06 and getSupportManager() is not recognisable Aug 23 18:13:08 i am using phonegap to built a app with a form , but on virtual keyboard on the input fields are hidden as the webview doesnt shrink , please help Aug 23 18:13:38 i searched a lot over internet doesnt find a sollution Aug 23 18:13:39 chinu: phonegap, wrong forum Aug 23 18:13:42 please someone guide me to a proper direction Aug 23 18:13:59 but it is also android ? Aug 23 18:14:03 phonegap isn't android Aug 23 18:14:08 which forum should i target ? Aug 23 18:14:24 don't use phonegap Aug 23 18:14:27 ;D Aug 23 18:15:12 chinu: good luck with phonegap, I doubt a decent product can ever be made with it Aug 23 18:15:37 i have a simple web app Aug 23 18:15:43 nothing fancy Aug 23 18:15:49 then open it in a web browser :-) Aug 23 18:15:56 not in a web browser in an app Aug 23 18:16:01 anyone got any idea how to inject a mockito mock NotificationManager using guice? Aug 23 18:16:25 k got it Aug 23 18:20:56 * pfn kicks android video players for not support subtitles, wtf kinda garbage is this Aug 23 18:25:56 ViMu does, but i dunno if they have a non-google-TV version Aug 23 18:28:43 how can i make an absolutelayout (i know it's deprecated) to wrap its contents in runtime? Aug 23 18:29:05 the content may eventually change Aug 23 18:29:41 an absolute layout can't change Aug 23 18:29:46 it's absolute Aug 23 18:30:03 pick a specific device of the over 4000, you can make your app work on that single device Aug 23 18:30:05 it can't measure its children? Aug 23 18:31:19 suppose i place a larger view inside, can it scale? Aug 23 18:31:39 there is not only zero reason to use an AbsoluteLayout, there is actually negative reason Aug 23 18:32:20 nseidm1, i have my negative negative reasons :) Aug 23 18:32:35 to use a layout deprecated almost 4 years ago? Aug 23 18:32:54 bitkiller: what's your use case? Aug 23 18:33:40 and i agree with the positive reasons, but i'm dealing with old code, and change it is not under consideration. not now Aug 23 18:34:12 I can almost guarantee that unless you want your layout to look too big or too small on lower or higher density devices than it's designed for, you shouldn't be using AbsoluteLayout Aug 23 18:34:21 i have to place some elements whose position are defined in the backend Aug 23 18:34:40 defined in pixels? bad idea. Aug 23 18:34:49 not my idea Aug 23 18:35:09 can you convert it to dip somehow and use that? Aug 23 18:35:32 It is impossible to do what you want to do Aug 23 18:35:45 the AbsolutelyLayout will not work on new phones properly Aug 23 18:35:50 it will appear small Aug 23 18:35:58 dare I ask what it looks like on tablets Aug 23 18:36:13 tell the client/boss a lot of work is needed Aug 23 18:37:04 the problem is that changing it now would mean the backend (server app) and other client systems to change Aug 23 18:37:43 that's not my decision, and all i have to do now is use that sht Aug 23 18:38:38 you're stuck Aug 23 18:38:47 absolutely no way to get an AbsoluteLayout to work decently Aug 23 18:39:02 I guess I'll search aosp to see if the video player app has subtitles anywhere at all Aug 23 18:39:05 and i need to expand the layout or shrink it, according to the contents, someway Aug 23 18:39:05 * pfn scratches head Aug 23 18:39:26 well and the absolutelayout is part of the screen (about 50%) Aug 23 18:39:47 absolute layout, awesome Aug 23 18:42:17 if I'm using messenger for an ipc service how can i get the package name or whatever of the process that's calling me? Aug 23 18:42:52 ugh, I guess I'll just install vlc... Aug 23 18:43:11 bitkiller: I strongly suggest you use the coordinates given to you by the server and find some other way of rendering it relative to the device's screen size. Aug 23 18:43:52 veeti: android is designed more with permissions in mind, that you would just check a permission rather than for a specific package name. however permissions for apps not shipped with the system are buggy (can be claimed by other app and are install order sensitive). It takes a bit of work, but you can use Binder.getCallingUid and PackageManager.getPackagesForUid to find the actual package name (and then PackageManager.getPackageInfo to even check the APK Aug 23 18:43:53 signature) Aug 23 18:43:58 RyanM: that's called a LinearLayout, RelativeLayout FrameLayout, GridLayout Aug 23 18:44:13 something with gravity, weights, etc... Aug 23 18:44:51 i thought about using relativelayout with margins Aug 23 18:45:07 the server is specifying coordinates? Aug 23 18:45:09 no way Aug 23 18:45:10 wow Aug 23 18:45:14 i know im 15 minutes late, but bitkiller, do not use AbsoluteLayout Aug 23 18:45:54 canadiancow, hehe Aug 23 18:45:54 it will not work for what you're trying to do Aug 23 18:46:19 AbsoluteLayout was deprecated when it was decided that android would not always be 480x320 160dpi Aug 23 18:46:36 or in other words, it only makes sense if you're developing for one screen Aug 23 18:46:42 in fact, we're targeting very few specific device Aug 23 18:46:44 devices Aug 23 18:46:45 it *will not work* on modern devices Aug 23 18:46:58 kevinb: that's what I'm trying to do but getCallingUid seems to return the uid for the service app Aug 23 18:47:32 do it with some other kind of ViewGroup Aug 23 18:47:45 imo AbsoluteLayout should be removed from the sdk Aug 23 18:48:23 super deprecation, AbsoluteLayout "you have been judged" Aug 23 18:48:44 veeti: when are you calling it? If from a service i think it will only work if called from the binder methods Aug 23 18:49:03 i've taken the class in placed in the project Aug 23 18:49:07 I guess vlc can render subtitles Aug 23 18:49:09 how disappointing :( Aug 23 18:49:12 kevinb: in handleMessage Aug 23 18:49:31 (just copy-pasted the messenger stuff from https://developer.android.com/guide/components/bound-services.html) Aug 23 18:50:13 but i agree it should be definitely removed. i have seen some very poor code using it. but this is a very specific case for an enterprise app Aug 23 18:50:47 canadiancow: AbsoluteLayout will continue to work; what makes you think that the framework will break compatibility? Aug 23 18:50:51 bitkiller: much easier solution, get a bunch of used G1s Aug 23 18:51:06 hehehe Aug 23 18:51:30 the server is really sending coordinates? Aug 23 18:51:59 what i have working now is pretty fine in my g tab 2 with CM 10.2 (nightly) Aug 23 18:52:05 wtf would the server ever send coordinates Aug 23 18:52:06 veeti: in that case the Handler is kind of masking the uid. Whatever the Messenger is doing internally could check the UID, but by posting the message to the handler you lose that information (the handler is going to run without reference to the calling binder) Aug 23 18:52:10 why why why... Aug 23 18:52:13 who architected this pos? Aug 23 18:52:14 yes, it's coordinates and size Aug 23 18:52:47 veeti: you might be able to grab the code for Messenger and extend it so it embeds the uid into the message. or you could use the ibinder method Aug 23 18:53:42 ok, thanks Aug 23 18:53:54 veeti, why do you want to know? Aug 23 18:54:41 i want to check the caller's signature and I can't use the built-in stuff to do it because they won't be signed with the same key Aug 23 18:55:02 why do you want to check the signature? Aug 23 18:55:25 so that only my app can call the service Aug 23 18:56:01 why don't you use permissions to enable this? Aug 23 18:56:05 and your service is defined in the manifest? Make it not exported, done. Aug 23 18:56:22 and yes, don't export the service if it's within the same apk Aug 23 18:56:25 the service is in a separate app Aug 23 18:56:35 and use LocalBroadcastManager Aug 23 18:56:38 permissions seem like a mess since install order matters, etc Aug 23 18:56:40 if necessary Aug 23 18:56:47 veeti, so this is cross-apk Aug 23 18:56:52 also, android.os.Binder has caller info Aug 23 18:57:24 i'm using the messenger so it's not there :p Aug 23 18:58:15 the messenger is operating over a binder, is it not? Aug 23 18:58:17 if so, it's thjere Aug 23 18:58:25 you can't have an ipc messenger without a binder Aug 23 18:59:19 messenger posts to a handler which is the issue, by the time he handles the message the binder is cleared Aug 23 18:59:46 he has to grab the information before posting to the handler Aug 23 19:01:00 then capture it in the handler post Aug 23 19:01:10 before it gets passed off to the message queue Aug 23 19:01:24 your own subclass of handler overriding post should take care of that Aug 23 19:03:35 assuming you can specify the handler to post to Aug 23 19:05:46 anyone got any idea how to inject a mockito mock NotificationManager using guice? Aug 23 19:07:53 If I try to bind(NotificationManager.class).toInstance(myMock), I get a creationException "A binding to android.app.NotificationManager was already configured at roboguice.config.DefaultRoboModule" Aug 23 19:11:20 Hi to all. Please could someone help me with boot,img Aug 23 19:11:27 Iam right here about kernel dev? Aug 23 19:13:13 #android-root Aug 23 19:16:12 is it possible to hide certain GUI-elements when the on screen keyboard is active? Aug 23 19:17:38 sure Aug 23 19:17:39 sure Aug 23 19:18:59 evanc, other changes have broken compatibility for things much less stupid than AbsoluteLayout :P Aug 23 19:21:51 hah anyone get that email from play? Aug 23 19:23:32 yeah Aug 23 19:26:21 the policy update? Aug 23 19:29:53 nseidm1: how do I know if the soft keyboard is active? Aug 23 19:30:47 use an OnLayoutChangeListener on your layout's parent Aug 23 19:31:16 check if the difference between it and the hight of the screen is greater than a value Aug 23 19:31:29 200dip seems to work reasonably, but it can vary depending on many factors Aug 23 19:41:13 Hi, i got the SERVICE_INVALID error when trying YouTubePlayerView from Youtube player api, what thats mean? Aug 23 19:41:29 I have the latest version of youtube player installed on the device Aug 23 19:42:20 hi, about LocationManager.requestLocationUpdates, how minDistance works, I mean, I have to hit let say the GPS to get a new location a compare the last one with the current to know the distance, but this will be a minTime, no ? Aug 23 19:43:11 or Android keeps hitting the GPS for a new location and just send one with the minDistance value Aug 23 19:46:40 canadiancow: yep \o/ Aug 23 20:07:51 I have a view that performs a countdown. I want to be sure I don't interrupt the view when I receive a GCM broadcast. The view extends linearlayout. I would like to add a public isCountingDown which returns the state if it's counting down or not, but it doesn't appear that's valid for a view. How can I provide that information to my GCM broadcast reciever (or any other activity I might need to know if the countdown is active)? Aug 23 20:09:39 nm Aug 23 20:10:22 hi all =) i am trying to change to color of the text in a spinner. i added android:textColor="@drawable/selector" selector is then a selector type where i have addec verious states... however it seems that only the default color comes throw but i am unable to change the color for the selected item. i am only able to EG color them all black .. Aug 23 20:10:52 do anyone know how color of both teh "default" and the selected one. Aug 23 20:11:03 Anyone know of a good way to make a search feature that uses Fragments instead of opening a new Activity? Aug 23 20:16:45 RyanM: http://developer.android.com/training/search/setup.html Aug 23 20:17:11 nseidm1: Where in that does it explain how to do it without opening a new Activity? Aug 23 20:17:54 nseidm1: From your link: "A SearchView tries to start an activity with the ACTION_SEARCH when a user submits a search query." Aug 23 20:17:58 All you really need to focus on is the edit text in the action bar, then handle the search in a fragment Aug 23 20:18:03 :/ Aug 23 20:18:08 will android ever support java 1.7 or 1.8? Aug 23 20:18:20 try-with-resources would be nice Aug 23 20:20:56 Look for ACTION_SEARCH in onNewIntent for the current activity to activate the search fragment Aug 23 20:21:06 someone? Aug 23 20:22:04 Justin_T: Not a clue.. Fighting http/php/json ATM.. Aug 23 20:22:51 RyanM: define your activity as singleTop and it'll receive ACTION_SEARCH in onNewIntent Aug 23 20:22:52 Bleeptech win the fight, ditch php ! Aug 23 20:23:22 nseidm1: hmm, that's kinda hacky but seems like it might just work for this case. Thanks. Aug 23 20:23:25 i cant find anything on google Aug 23 20:24:17 g00s: Right now I can't get the local machine to cooperate.. Fresh install of Fedora 19.. Aug 23 20:25:44 Hi! I'am having some trouble with the google drive api. Any one familiar with it? Aug 23 20:27:00 I'm trying to build https://github.com/surespot/android it can back up an identety to google drive. Aug 23 20:27:10 But I cant make it work :( Aug 23 20:28:27 it gives an error "Access Not Configured" Aug 23 20:31:27 when does it give you the error? @gier2 Aug 23 20:32:35 when i try to back up Aug 23 20:33:02 the createDriveIdentityDirectory( throws it Aug 23 20:33:38 I've tried google api console Aug 23 20:33:39 will clone and build here in a moment to take a look Aug 23 20:33:51 perfect :) Aug 23 20:34:03 been triying for a while now but nothing Aug 23 20:34:21 I guess I've set up the api wrong Aug 23 20:41:37 SimonVT, now how will we make money on our apps? :P Aug 23 20:42:31 canadiancow: Notifications that says "Click here plz" and opens up an activity with a full screen ad Aug 23 20:42:57 isnt that still not allowed? Aug 23 20:43:04 Dunno :p Aug 23 20:43:24 @geir2 working on it still I needed up update a few files Aug 23 20:43:26 I'm just happy airpush is gone ^_^ Aug 23 20:43:31 i wonder how that will be implemented Aug 23 20:43:42 if they'll just check if you have airpush in your app and reject it at time of upload Aug 23 20:44:22 They'll probably just rely on reports Aug 23 20:44:41 mortalglitch: OK, keep me updated :) Aug 23 20:45:47 i thought adds in notifications was disallowed for a while now ? Aug 23 20:46:06 Not until now Aug 23 20:46:39 the perks of using froyo :) Aug 23 20:46:51 never saw anything like it Aug 23 20:47:50 this this become more popular with the newer rich notifications ? Aug 23 20:48:04 g00s: Ads that didn't identify which app they were from were previously banned Aug 23 20:48:34 g00s: Nah, it's mostly just shady ad networks used by the sorts of apps power users would avoid. Aug 23 20:48:35 RyanM ok, yeah i thought at one of the i/o they announced some system features that let you deal with some of these things Aug 23 20:48:51 They did. JB has two ways of dealing with it: Aug 23 20:49:08 1) You can long press a notification to see the app info for the app that created it. Aug 23 20:49:19 2) You can silence notifications from an app. Aug 23 20:49:26 :) Aug 23 20:49:33 also, YAY: Apps and their ads must not add homescreen shortcuts, browser bookmarks, or icons on the user’s device as a service to third parties or for advertising purposes. Aug 23 20:49:54 screw you, Zynga, that was scummy and I'm glad it's banned now. Aug 23 20:49:56 yeah that terrible. never saw that personally Aug 23 20:50:04 That one is old Aug 23 20:50:35 oh hey you're right. It's been rephrased though. Aug 23 20:51:25 Or well, I think it said something about the user having to approve it or something Aug 23 20:52:43 AP's description of the change: "This clause used to include "without the user's consent," and was located in a different section." Aug 23 20:55:35 would I be totally insane to extend TextView to make it so taht you can attach compound drawable-like functionality immediately next to the text (for example when text alignment is centered in a larger view) Aug 23 20:55:40 ? Aug 23 20:55:52 It seems like the TextView's Layout would be able to inform you of where the drawable should really go Aug 23 20:56:14 that would let you make buttons and text with icon labels without a LL { ImageView, TextView } mixture. Aug 23 20:57:52 Newb here, I want to code a really really simple App for Android and maybe also release it on iOS, is there like a "porting" tool thats free? Aug 23 20:58:45 SrRaven: There are tools like PhoneGap, but nothing that will allow you to create a native UI Aug 23 20:59:07 you'll end up having an app that doesn't fit in well on one or both platforms Aug 23 20:59:17 so best guess is to learn coding for either Aug 23 21:00:32 exactomundo Aug 23 21:01:01 i'd use coronasdk to make an app, it uses lua and i found a good TDD library for it called lunatest Aug 23 21:01:29 isnt lua like python? Aug 23 21:12:46 SrRaven, I find that it's more like javascript, but yeah Aug 23 21:13:14 I made a pong clone in something like lua once Aug 23 21:21:38 * pfn still headscratches over the fact that the built-in media player doesn't support subtitles, wtf Aug 23 21:40:59 anyone have experience reading from a sensor over a btle connection? specifically with sampling rate problems? Aug 23 21:42:55 not yet; what sensor are you using ? i was going to try once i got a 2013 n7,but since gps is part of the data i log (and that seems to be a problem with this device) i put it on hold Aug 23 21:51:38 g00s: its a TI SensorTag Aug 23 21:51:44 sorry for the late reply Aug 23 21:51:51 tnzr oh cool, those look neat Aug 23 21:52:07 its pretty cool, we got a bunch at work and have been doing cool stuff wtih them Aug 23 21:52:24 the iOS team can get data super fast but for some reason we get it in very small spurts, like once or twice a second Aug 23 21:52:29 way too slow to do anything meaningful Aug 23 21:53:04 oh thats not good Aug 23 21:54:19 yeah, same old crap in android land Aug 23 21:55:51 tnzr cool, TI has code for android now Aug 23 21:56:32 is it dated aug. 16? Aug 23 21:57:17 yeah Aug 23 21:57:36 they had lots of good ios code examples up for a while now, since 4.3 they put that up Aug 23 21:57:54 damnit, ripping dvds too slow Aug 23 21:57:55 I need faster pc Aug 23 21:58:14 gonly getting like 86fps avg on handbrakecli -Z Android Aug 23 21:58:17 tnzr wth, an .exe file ? Aug 23 21:59:03 "Windows Installer for SensorTag iOS Source Code" uh Aug 23 21:59:26 hahah Aug 23 22:00:56 tnzr " If you are interested in early releases of the Android source code, please contact j.boe(at)ti.com " Aug 23 22:01:05 I wonder if the current nexus 7 update fixes those gps "issues" Aug 23 22:01:08 i'm going to contact him, and let him know he should just put up zip files :D Aug 23 22:01:30 supposedly fixes whatever multitouch issues people saw Aug 23 22:01:31 * pfn shrugs Aug 23 22:01:40 haha cool..mayhe we should email him Aug 23 22:01:40 pfn i haven't heard anything about it. there was a new 4.3 build the other day, something else though - i think touch screen Aug 23 22:01:46 supposedlu fixes the gps issues as well Aug 23 22:01:55 awesome Aug 23 22:02:00 I just got an Error! trying to flash the update... Aug 23 22:02:18 O.o Aug 23 22:02:26 I wonder if it's because I dropped in /system/bin/su Aug 23 22:02:40 or I have a slightly hacked up keyboard_layout.kl Aug 23 22:02:50 tnzr ha, that thing has an IR temp sensor? awesome Aug 23 22:04:08 yah :) Aug 23 22:05:12 we just found out that 100ms works but even though the docs say >=20ms, that's no good Aug 23 22:05:59 screw it, I'll just fastboot flash this bitch up Aug 23 22:06:17 who needs to wait for updates Aug 23 22:07:57 * pfn finally rips his old macross dvds... Aug 23 22:08:02 plane flights are so boring.... Aug 23 22:08:11 I hope vlc doesn't burn up batteries very badly Aug 23 22:14:04 pfn: I had good luck with plex and cached content, but if you're not already in that ecosystem it's probably not worth the hassle Aug 23 22:15:04 yeah, not using plex Aug 23 22:15:12 Sonicadvance1 any link to the latest build fixing gps ? Aug 23 22:15:13 I'm just handbraking stuff on my own and copying it over to device Aug 23 22:15:21 http://www.engadget.com/2013/08/22/nexus-7-update-fix-buggy-multitouch/ Aug 23 22:15:34 now you can go buy, and get the fuck off a 4 year old phone Aug 23 22:15:34 :p Aug 23 22:17:38 did paulw replace jbq ? Aug 23 22:21:33 ah nice. I never noticed major issues w/ the new n7 Aug 23 22:22:10 when bugs involve hw, i always wonder what the "root cause" was Aug 23 22:23:10 dragorn, I haven't noticed any issues at all Aug 23 22:23:14 I'm completely enamored with mine Aug 23 22:23:19 I use it fucking all the time Aug 23 22:23:24 given that asus totally fucked up gps with one of the transformers, by putting the receiver behind metal. Aug 23 22:23:39 pfn: yeah; my only complaint is they mildly fucked up usb host Aug 23 22:23:49 I don't use otg so I don't notice Aug 23 22:23:52 I don't even know how... Aug 23 22:23:52 heh Aug 23 22:24:06 I should try it, I have a 500gb ssd that's just waiting to be used (in a usb enclosure) Aug 23 22:24:38 ah nice, update blew up :( Aug 23 22:24:46 they appear to over-advertise the power budget Aug 23 22:24:54 yeah, my update blew up, too Aug 23 22:24:58 I'm just picking up the factory image Aug 23 22:25:01 then I'm gonna fastboot flash system Aug 23 22:25:04 yeah Aug 23 22:25:07 https://developers.google.com/android/nexus/images#razorjss15q Aug 23 22:25:10 thanks :) Aug 23 22:25:23 fastboot ftw Aug 23 22:25:26 yeah definitely Aug 23 22:25:39 so they over-advertise the power budget on usb and allow a device to activate Aug 23 22:25:45 then poop themselves later Aug 23 22:25:52 also at least once I had USB just reboot the tab Aug 23 22:25:53 I see, interesting Aug 23 22:25:54 no warning Aug 23 22:26:09 most of what I do on android is USB centric, so.. ;/ Aug 23 22:26:28 annoying for the OSS stuff. SUPER annoying for the commercial product stuff. Aug 23 22:26:55 hm even tho the patch failed it things it's updated enough to resync the app stuff Aug 23 22:26:58 thinks Aug 23 22:26:59 I think I'll need to drop by and pick up an otg cable Aug 23 22:27:05 it's not resyncing for me Aug 23 22:27:27 it boots up to jss15j and thinks it's up to date when I che3ck system updates Aug 23 22:27:31 yeah i'm still on j Aug 23 22:27:48 yeah, I'm almost done downloading Aug 23 22:27:49 1 minute to go Aug 23 22:27:52 then flash the bitch Aug 23 22:28:15 are most apps still supporting android 2.2? Aug 23 22:28:17 yeah my dl just finished Aug 23 22:28:41 SuperMandroid, 2.3, yes, 2.2, not so much Aug 23 22:28:53 dragorn, yeah, I'm upgrading my dsl next week, installer comes on the 31st to install my uverse Aug 23 22:28:57 45mbps down/6mbps up Aug 23 22:28:59 weeee Aug 23 22:29:15 that'll be a big step up from my 6mbps down now.... Aug 23 22:29:16 pos Aug 23 22:29:23 pfn: While I was at defcon they sent us a new cable modem. "Your links will be faster!" Yeah right... so I only plugged it in last week Aug 23 22:29:28 having an odd issue with HttpURLConnection - for some reason, getInputStream() fails silently - no exception, nothing in the logs Aug 23 22:29:30 http://hastebin.com/nekadepuvi.avrasm Aug 23 22:29:38 there is always something in the log Aug 23 22:29:41 pfn: https://picasaweb.google.com/lh/photo/KPM20G_AMqG8Qxxs74CCcTC8bUEnFwMvgFLqoJ9MHDE?feat=directlink ... it's f'ing NUTS. Aug 23 22:29:45 it never just fails silently Aug 23 22:29:46 pasted the class in question Aug 23 22:29:53 pfn cool thanks Aug 23 22:30:00 dragorn, on your new cable modem? nice Aug 23 22:30:08 * pfn is happy to get >10mbps Aug 23 22:30:10 pfn: yeah, docsis 3 Aug 23 22:30:11 100mbps is nuts Aug 23 22:30:21 pfn: and I live in the middle of nowhere, it's 30 minutes to the nearest "city" Aug 23 22:30:23 If I put many songs in my app the size will be very large right? how can i dead with this? Aug 23 22:30:23 http://hastebin.com/xocotofufi.avrasm < logs, no filters, verbose Aug 23 22:30:26 pfn: Which is pretty small Aug 23 22:30:32 Rager, tag:System.err Aug 23 22:30:36 quit doing e.printStackTrace Aug 23 22:30:38 an exceprt Aug 23 22:30:49 pfn: I'm in the middle of 5 acres of woods on a ~400 foot cable run off the street over 2 customer poles :P Aug 23 22:30:55 If I put many songs in my app the size will be very large right? how can i dead with this? Aug 23 22:31:04 If I put many songs in my app the size will be very large right? how can i deal with this? Aug 23 22:31:17 fu Aug 23 22:31:19 quit repeating Aug 23 22:31:29 sry had to get people to notcie Aug 23 22:31:48 so you're saying that something is eating the error because I use e.printstacktrace? Aug 23 22:32:06 Rager, no, you're not looking for the error because you're using e.printStackTrace Aug 23 22:32:11 you need to look in tag:System.err Aug 23 22:32:29 I don't have any tags enabled Aug 23 22:32:30 so any solutions? Aug 23 22:33:15 we noticed. now we're annoyed with you. solutions to "putting a lot of data in an app takes a lot of data"? No. It takes a lot of data. Aug 23 22:33:26 don't put the data in the app? Aug 23 22:33:37 you can always leave the data on a server somewhere and go through the trouble of then fetching it Aug 23 22:33:56 my solution to you is ignoring Aug 23 22:33:58 goodbye Aug 23 22:34:36 pfn: I love me some fastboot Aug 23 22:34:39 ditto Aug 23 22:34:49 pfn: I like the moto variant better Aug 23 22:34:52 OKAY [ 19.127s] Aug 23 22:34:52 writing 'system'... Aug 23 22:34:54 * pfn shrugs Aug 23 22:35:00 pfn: they modified the host and client side to negotiate a chunk size Aug 23 22:35:01 got me no moto Aug 23 22:35:08 dragorn, maybe faster, I suppose Aug 23 22:35:08 pfn: so it can flash big images Aug 23 22:35:19 pfn: fastboot as it stands is a 32bit file size, and goes to ram first Aug 23 22:35:32 you flash 4gb images? Aug 23 22:35:35 pfn: so it flat out blows up if you have a >2GB image Aug 23 22:35:39 pfn: Yup Aug 23 22:35:43 pfn: Well, try to, and fail Aug 23 22:35:44 fancy Aug 23 22:35:56 pfn I swear... there aren't any logs for the thing erroring up Aug 23 22:35:57 http://hastebin.com/qaxufutupo.avrasm Aug 23 22:36:05 actually Aug 23 22:36:08 I know why Aug 23 22:36:13 it's the damn executorservice Aug 23 22:36:16 or at least, I'm guessing Aug 23 22:36:49 and that I'm having another kind of exception that I wasn't catching Aug 23 22:37:14 How do i make a song from MediaPlayer restart while its playing when a button is pressed? Aug 23 22:37:15 I forgot - they eat the exception and keep it in one of those Future things Aug 23 22:37:26 pfn: factory seems fine Aug 23 22:37:38 yeah, mine is almost done updating, was upgrading/dexopting apps Aug 23 22:37:46 boot done, yay Aug 23 22:37:50 pfn : How do i make a song from MediaPlayer restart while its playing when a button is pressed? Aug 23 22:38:27 * pfn ponders what to do with qicr next Aug 23 22:38:37 I guess i need to add ignore and sasl auth to it Aug 23 22:38:44 and some assholes keep giving me 1* because of no dcc Aug 23 22:41:07 So can anyone solve my issue please? Aug 23 22:45:51 * pfn ponders buying lucian Aug 23 22:47:08 How can i restart a song while it is playing with the click of a button? Aug 23 22:48:19 hello , i'm having problem on intent-filter , i want to log http requests and searches , by intercepting intent-filter but intent-filter is trying to replace default browser with my app.I dont want that.I just want to log http searches.What can i do ? intent-filter is not solution for that? Aug 23 22:49:18 JDuke128: you're trying to log HTTP searches made by other apps? Aug 23 22:49:30 JDuke128, you can't--you have to replace the default, then launch the existing Aug 23 22:49:54 You...can't do that. At most you could look at the user's browser history or something. Aug 23 22:50:23 hmm, lucian skin is ugly Aug 23 22:50:28 and finally, a black champ, heh Aug 23 22:50:34 took them long enough Aug 23 22:50:41 damn racist chinese bastards ;-) Aug 23 22:51:09 RyanM , i can get browser history but it makes phone too slow Aug 23 22:51:14 everytime checking db Aug 23 22:51:21 is seems like ugly solution Aug 23 22:51:37 why i cant use something like BroadcastReceiver to get http logs? Aug 23 22:51:43 Can Anybdy please solve my problem? Please? Aug 23 22:51:55 JDuke128, because, security Aug 23 22:51:59 privacy Aug 23 22:52:12 what about rooted phones? Aug 23 22:52:24 you can do whatever you want with superuser Aug 23 22:54:05 How can i restart a song while it is playing with the click of a button? Aug 23 22:54:22 How can i get you to stop spamming the IRC? Aug 23 22:54:36 me? Aug 23 22:54:40 yeah Aug 23 22:54:41 yes, you Aug 23 22:54:45 go the fuck away Aug 23 22:54:48 can u answer my question? Aug 23 22:54:55 theelfishmike Aug 23 22:55:06 what have you tried, have you asked on stackoverflow? Aug 23 22:55:15 yea but the solutions dont work Aug 23 22:55:26 should i explain my problem? Aug 23 22:55:34 i'm not a media expert Aug 23 22:55:39 pfn Aug 23 22:55:43 any help? Aug 23 22:55:51 no, you burned your bridge with me by not shutting up Aug 23 22:55:55 and not reading docs Aug 23 22:56:10 i tried but can u just try and help me???!!! Aug 23 22:56:20 you didn't try Aug 23 22:56:21 no Aug 23 22:56:26 read the docs for MediaPlayer Aug 23 22:56:29 ok Aug 23 22:56:34 take them to heart and implement Aug 23 22:57:17 literally never looked at MediaPlayer before, but have you tried https://developer.android.com/reference/android/media/MediaPlayer.html#seekTo(int) Aug 23 22:57:22 seekTo(0) Aug 23 23:04:10 pfn, so polite today :) Aug 23 23:06:21 datandroiddude that work? Aug 23 23:06:34 can anyone recommend a good tutorial for getting started with Android dev? Aug 23 23:06:51 the docs at d.android.com are actually really good Aug 23 23:06:54 http://developer.android.com/training/index.html Aug 23 23:07:08 awesome, thanks. Aug 23 23:08:19 pfn : thanx this was the first time using the android docs and i solved it...sorry i spammed so much and thanx again bro Aug 23 23:09:10 docs are your friend, read them before you start asking questions and pfn might not swear at you Aug 23 23:09:15 shigeru they have improved quite a bit. its the javadocs that are terrible Aug 23 23:09:25 at least for some areas Aug 23 23:10:09 my experience with AS this past week has been relatively hassle free \o/ Aug 23 23:10:48 If i include songs i have to mention them in my credits right? Aug 23 23:10:53 ive been reading bouncycastle javadocs for the past week Aug 23 23:11:01 androids docs are amazing in comparison Aug 23 23:11:22 datandroiddude - i wouldn't include songs you don't have the rights to Aug 23 23:11:52 theelfismike : but thats the whole point of the app im making...so wat do i do?? Aug 23 23:11:58 the app is based around Music Aug 23 23:12:09 so you're pirating music for people? Aug 23 23:12:37 No they cant download it or anything its a game where they hear the song and answer what the name f the song is Aug 23 23:13:08 tread lightly - that sounds like it's begging to get sued Aug 23 23:13:23 datandroiddude lame, find another project Aug 23 23:16:54 datandroiddude: Yeah you should consult a lawyer before attempting that. Aug 23 23:20:03 sry i disconnected what did u guys say?? Aug 23 23:21:39 theelfismike : You there? Aug 23 23:22:01 * pfn ponders what other dvds to rip and bring with him Aug 23 23:23:12 Well Gotta go.. Aug 23 23:23:14 pfn going on a trip? vacation? Aug 23 23:23:31 I wish vacation Aug 23 23:23:32 biztrip Aug 23 23:23:41 more client work Aug 23 23:23:52 pfn oh cool, same guys as before ? Aug 23 23:24:44 yes, extended a nother 5 months or so Aug 23 23:24:50 \o/ Aug 23 23:25:27 yep, monies Aug 23 23:25:44 datandroiddude: Yeah you should consult a lawyer before attempting that. Aug 23 23:25:50 oh he left again Aug 23 23:25:59 whatever, not my problem if he gets sued. Aug 23 23:27:41 anyone got a decent amount of experience working with appwidgets? I'm having trouble with handling data with them. Aug 23 23:29:14 what about 'em Aug 23 23:29:54 My app uses a config to pick a contact then generates the widget using a service. The problem comes into play when adding multiple instances Aug 23 23:30:06 it will hold the data and update until one is removed Aug 23 23:30:37 ex. bob, joe, sue and joe gets removed it become joe, joe, sue Aug 23 23:31:25 I'm trying to pass data back to the service to determine which to remove from the database but I keep getting an appwidgetid of 1 each time I try it Aug 23 23:32:27 I need some way I believe to submit the db _id to the widget to hold then onDeleted pass it back to the service but i'm having trouble passing data to the appwidget provider Aug 23 23:37:27 huh? Aug 23 23:37:42 associate your widget_id with your record id onUpdate for the first time Aug 23 23:38:41 oh my nick is fail here xD Aug 23 23:38:50 I was slightly afraid to do that as someone mentioned to me the widget_id will change from time to time Aug 23 23:39:45 if it doesn't change I have over-complicated this 0.o Aug 23 23:40:34 the widget does change everytime you boot Aug 23 23:40:43 clear out your widget ids onDisabled and onEnabled Aug 23 23:40:49 associate your widgets in onUpdate Aug 23 23:43:02 fair enough, thank you kindly Aug 23 23:43:54 one additional question if I increment through the appwidget ID's will they be in the same order they were placed? Aug 23 23:44:26 no Aug 23 23:44:32 you have no guarantee of that Aug 23 23:44:35 map your ids to something Aug 23 23:48:22 wrapping my head around it but I think I may have something. Thank you once again Aug 23 23:48:44 what driver do I need on Windows 8 for a 2013 Nexus 7? Aug 23 23:50:51 ah, nevermind, I found it. It was hiding from me. Aug 23 23:58:42 okay, now it's not detecting my device. Aug 23 23:59:14 I've installed the driver, enabled USB debugging, and told Android Studio to run it on the device, but it's saying "USB device not found" Aug 23 23:59:26 adb devices Aug 23 23:59:29 adb kill-server then Aug 23 23:59:36 anyway, you should see it in device manager properly first Aug 23 23:59:46 adb devices doesn't return any devices. Aug 24 00:00:19 kill-server then Aug 24 00:00:26 and you didn't install the driver properly then Aug 24 00:00:30 did, ran again, still no device Aug 24 00:00:42 I installed it from the SDK manager. Should I have not done that? Aug 24 00:00:54 maybe, maybe not Aug 24 00:00:57 hmm. Aug 24 00:01:04 depends on whether the inf has the device listed Aug 24 00:01:04 I'll uninstall that version and try manually. Aug 24 00:01:10 inf? Aug 24 00:02:59 found this for you @sanitypassing http://www.theandroidsoul.com/nexus-7-2013-drivers-installation-guide/ Aug 24 00:03:33 thanls Aug 24 00:03:36 thanks* Aug 24 00:03:39 np Aug 24 00:04:03 I usually just modify the existing .inf to include the vid/pid Aug 24 00:04:07 and then load the driver right up Aug 24 00:04:08 works fine Aug 24 00:54:12 wow, friday night curse, everyone's out having a life Aug 24 00:54:13 heh Aug 24 00:54:39 lol Aug 24 00:54:54 have you worked on a project with dojo? Aug 24 00:55:03 where do I change the text editor's font in Android Studio? Aug 24 00:55:26 the version based on eclipse? Aug 24 00:55:46 I think this is based off intellij, but I found it; was hidden in sub menus. Aug 24 00:56:08 I prefer eclipse Aug 24 00:56:21 never used eclipse. Aug 24 00:56:23 yep the dark ui is based on intellij Aug 24 00:56:45 interesting, seems like mtp doesn't like transfers over 4gb in size? Aug 24 00:57:00 prefer eclipse? Aug 24 00:57:01 really Aug 24 00:57:03 why... Aug 24 00:57:29 it's more mature Aug 24 00:57:39 intellij has been around for about as long as eclipse has Aug 24 00:57:59 I'm going to use vim eventually... these IDEs are all too heavy for my liking. Aug 24 00:58:00 intellij isnt free? Aug 24 00:58:18 sanitypassing but for java an ide is very handful Aug 24 00:58:30 eh, I don't plan to use Java outside of Android Aug 24 00:58:47 and I can probably get most of the features I'll actually use in vim Aug 24 00:58:48 actually, intellij has been around longer than eclipse Aug 24 00:58:55 pfn really Aug 24 00:58:58 first release of intellij was 2001 Aug 24 00:59:02 first release of eclipse was 2004 Aug 24 00:59:09 intellij ce is free Aug 24 00:59:12 has been for quite a few years Aug 24 00:59:30 pfn I have already tested in for a web project never for java Aug 24 01:00:01 this is all just too heavy for me. If I had a better system, it would probably be better, but unfortunatly, my laptop is crap. Aug 24 01:00:03 sanitypassing, writing android code is effectively writing java code 100% of the time Aug 24 01:00:10 sbt + vim is my usual solution Aug 24 01:00:13 if I don't want an IDE Aug 24 01:00:17 Yeah, Java + XML. Aug 24 01:00:23 instant feedback of an IDE without the IDE Aug 24 01:00:38 lately I have only worked with netbeans & eclipse Aug 24 01:00:42 and I prefer eclipse Aug 24 01:01:02 mainly for autocompletion & intellisens Aug 24 01:01:11 eclipse is better than netbeans Aug 24 01:01:12 I'm *really* used to vim though. Never had an interest in IDEs, but now that I'm poking around with Android, all the tutorials are for IDEs Aug 24 01:01:40 I have begun customizing vim but I cant get to do java :p Aug 24 01:01:41 and if I knew a damn thing about Java, I could probably get away with using vim, but for now I figured this would be the easiest way to get comfortable with Android dev Aug 24 01:02:23 * sanitypassing sighs. Aug 24 01:02:23 wow, friday night curse, everyone's out having a life Aug 24 01:02:25 :( Aug 24 01:02:31 I keep trying to use vim keybinds in Android Studio. Aug 24 01:02:36 sanitypassing, ideavim Aug 24 01:02:41 I have noticed that I lose a lot of time installing plugins with vim Aug 24 01:02:42 thanks Aug 24 01:02:49 I will take a look at that. Aug 24 01:02:53 so I have installed a vim plugin in eclipse Aug 24 01:02:58 viplugin sucks Aug 24 01:03:03 I dunno if there's any better Aug 24 01:03:06 but it sucks Aug 24 01:03:08 h4k1m: eh, that can happen Aug 24 01:03:23 I've found that it's best to look at a plugin and say "Do I REALLY need this?" Aug 24 01:03:28 because most you don't. Aug 24 01:03:45 for instance, the git plugin. Sure, it makes life easier, but you don't strictly *need* it. Aug 24 01:03:46 sure Aug 24 01:03:57 but coming from an ide background :\ Aug 24 01:04:09 I have to install em all to adapt its ui to me Aug 24 01:04:12 it's not a matter of need Aug 24 01:04:12 Yeah, I understand. Aug 24 01:04:20 it's a matter of whether it saves you time and worth the investment you're making Aug 24 01:04:33 if it takes you 15 minutes to install, but saves you hours of your life Aug 24 01:04:35 it's certainly worth it Aug 24 01:04:39 Yeah Aug 24 01:04:49 I have installed vrapper with eclipse and I m satisfied Aug 24 01:05:16 even if I always vim for python and sublime text for php Aug 24 01:05:49 I have to admit that I m relying a lot on autocompletion Aug 24 01:06:22 and eclipse is unbeatable even if it's sometimes slow Aug 24 01:06:27 autocomplete is just a nice to have feature for me, it doesn't save me that much time vs. typing Aug 24 01:06:34 intellij is more responsive than eclipse when it comes to completion Aug 24 01:06:47 I've never used autocomplete Aug 24 01:06:54 yep sure and faster Aug 24 01:07:31 I cant remember all function parameters Aug 24 01:07:40 hey i need to edit an xml file in my asset folder.. after googling it seems that both DOM and XMLSerializer gives the options to either read-only with an input stream or create a brand new file with an output stream.. is it possible to parse part-way through and add/edit a child node? would I use both the input and output streams or just the output? Aug 24 01:07:48 well I usually have another monitor with docs up Aug 24 01:08:04 I always rely on autocomplete & google Aug 24 01:09:08 ah, vim bindings... so much better now Aug 24 01:13:19 "Steve Ballmer was forced out of his CEO chair by Microsoft's board of directors, who hit the roof when the company took a $900 million write-off to account for an oversupply of the firm's struggling Surface RT tablet, an analyst argued today." \o/ Aug 24 01:17:47 Yep, this is a pain. Going to configure vim for Android now. Aug 24 01:17:58 and then he makes $800m because of stock going up Aug 24 01:18:41 Time2303 i heard employees were dancing :) Aug 24 01:19:03 haven't been following MS; what's up with Ballmer? Aug 24 01:19:07 sanitypassing i'll be curious what setup you choose. Aug 24 01:19:09 that's why google have included it with eclipse and recently intellij Aug 24 01:19:46 g00s: eh, probably not anything TOO fancy. I need to find a way to compile and debug on my device though Aug 24 01:40:52 what's a pain? intellij's ideavim? Aug 24 01:40:54 really? Aug 24 01:41:09 pfn: seem the new Timely app? Aug 24 01:41:14 no, I haven't Aug 24 01:41:16 you have to try it Aug 24 01:41:24 https://play.google.com/store/apps/details?id=ch.bitspin.timely Aug 24 01:41:38 http://www.androiduipatterns.com/2013/08/the-new-yardstick-for-best-android.html < a good write up about it Aug 24 01:42:21 Anyone using IntelliJ and Scala for Android dev noticed IntelliJ cramming .scala source files into their APKs? O_o Aug 24 01:42:47 pfn: no, just the whole IDE. My system is pretty old (and slow), so the interface is slow, and everything feels sluggish Aug 24 01:42:54 I see Aug 24 01:42:58 well, I recommend vim + sbt Aug 24 01:43:04 best way to develop if you want to use vim Aug 24 01:43:17 Timely is nice Aug 24 01:43:19 does that easily compile Android projects? Aug 24 01:43:24 sanitypassing, that's the whole point of it Aug 24 01:43:28 oh I see Aug 24 01:43:34 the android plugin for sbt at least Aug 24 01:43:34 It doesn't work with Aviate (Launcher) for displaying upcoming events :( Aug 24 01:43:42 do you have any documentation on how to use sbt with vim? Aug 24 01:43:52 not particularly Aug 24 01:43:54 I've had nothing but pain with the Android SBT plugin Aug 24 01:43:55 sbt's just a build tool Aug 24 01:43:58 hmm, okay Aug 24 01:44:01 Nilium, because you keep using jberkel's Aug 24 01:44:09 That would be the one. Aug 24 01:44:11 I have nothing but joy from using my sbt plugin Aug 24 01:44:16 Is there a new, not-poorly-documented one? Aug 24 01:44:20 https://github.com/pfn/android-sdk-plugin Aug 24 01:44:25 it's still poorly documented Aug 24 01:44:29 Well, that doesn't help Aug 24 01:44:30 but I'm around to answer questions and make shit work Aug 24 01:44:53 * pfn shrugs Aug 24 01:44:56 read the readme Aug 24 01:45:00 it's relatively ok documented Aug 24 01:45:33 Well, it's already better-documented than jberkel's. Aug 24 01:45:54 well, fxthomas and appamatto have been putting a lot of work into a wiki of documentation for jberkel's plugin Aug 24 01:46:08 it always sucked for every project I wanted to work with, so I wrote mine 2 years ago Aug 24 01:46:17 * Nilium goes back to trying to figure out why IntelliJ is including source files in an APK Aug 24 01:46:17 and, of course, it's better in every way Aug 24 01:46:25 Nilium, use sbt to build :p Aug 24 01:46:29 then it's not a problem Aug 24 01:46:32 silly 'Make' Aug 24 01:46:39 I've got sbt set up for builds, the problem is I want to figure out why IntelliJ is doing it Aug 24 01:46:48 I never bother with intellij make Aug 24 01:46:50 no reason to Aug 24 01:47:03 just run the sbt plugin and have intellij trigger it for debug/run Aug 24 01:47:07 I'm assuming it's not telling aapt to ignore the files or something, but I have no idea 'cause it has the world's least useful build output Aug 24 01:49:48 ok, I kinda wish I waited a couple days to get a 32gb nexus 7 Aug 24 01:49:57 after putting on 36 episodes of macross, I have 1.5gb free :-/ Aug 24 01:50:45 pfn oh shit, doesn't that kill performance ? Aug 24 01:50:53 do I care? Aug 24 01:50:55 not really Aug 24 01:50:59 Well, at least it was episodes of something good. Aug 24 01:51:35 * pfn rips buffy s01, too Aug 24 01:51:42 And respect lost. Aug 24 01:51:44 finally get around to watching dvds I bought like 15 years ago Aug 24 01:51:59 My Nexus 7 should get delivered on Monday or Tuesday :) Aug 24 01:52:13 oh, damnit, I need to hax0r my Email.apk again Aug 24 01:52:23 that's why the update failed... Aug 24 01:52:30 Mine is an old one and sitting on my desk and goes mostly unused because I don't like the aspect ratio. Aug 24 01:52:34 I downloaded Spyro the Dragon for it, gonna steal one of my brothers ps3 controllers and play it Aug 24 01:52:47 Nilium haven't seen you in a while :) Aug 24 01:52:50 Gumboot, woo NZ Aug 24 01:53:03 Nilium, so... since you're using sbt for android; what's your interesting app? Aug 24 01:53:05 g00s: I'd still be gone but I'm breaking things. Aug 24 01:53:54 * pfn repo syncs Aug 24 01:54:57 now I need to remember how to hack up my email apk Aug 24 01:55:00 * pfn searches for his gist Aug 24 01:56:05 I like how IntelliJ/Android Studio has gist integration Aug 24 01:56:19 https://gist.github.com/pfn/5414166 Aug 24 01:56:21 ah, there it is Aug 24 02:00:51 so, where's the video player source in aosp? Aug 24 02:00:56 maybe I'll try a shot at hax0ring in subtitles Aug 24 02:07:31 Oh well, issue created, maybe JetBrains will say "this isn't going to be fixed" or "this isn't a bug" Aug 24 02:08:09 I even provided a nice example project. Aug 24 02:10:48 Time2303: Not for a few years, now. It's an old, old domain name. Aug 24 02:11:04 Ahh Aug 24 02:12:17 While waiting for a response, I should play something on my PS3. Nonstop. 'Til I get a response. Aug 24 02:13:14 Nilium should we check up on you in a few weeks ? Aug 24 02:13:21 Might be dead by then. Aug 24 02:14:14 I should go troll around and see if anyone's published an Android app built with Scala/IntelliJ. Aug 24 02:14:37 See if I can't pull the Scala source files out of their APK. Aug 24 02:28:30 Nilium: wouldn't be the worst thing someone accidentally put in an APK... Aug 24 02:28:56 Definitely not. Would probably be a bit of a shock to the developers, though. Aug 24 02:30:21 Nilium, qicr is built with scala/intellij, but with sbt :p Aug 24 02:30:27 why insist on building with intellij, though Aug 24 02:30:38 Simplifies the process. Aug 24 02:30:54 but it doesn't... Aug 24 02:31:07 you just set sbt plugin to run the sbt package task before run/debug Aug 24 02:31:15 So using a plugin and setting up sbt is simpler than adding a scala facet to an android project and building? Aug 24 02:31:21 yes Aug 24 02:31:26 You must have a weird idea of simple. Aug 24 02:31:30 because it works right, and it's faster Aug 24 02:31:51 and it's not much of setting up Aug 24 02:31:57 it's removing the make task from the run config Aug 24 02:31:59 and adding an sbt task Aug 24 02:32:01 2 clicks Aug 24 02:32:08 Yeah, but you have to set up the sbt plugin in IntelliJ then you have to set up sbt to use a plugin and other stuff and it's not really a lot of fun. Aug 24 02:32:29 * pfn shrugs Aug 24 02:32:34 whine, or do it the "right" way Aug 24 02:32:36 Basically, your idea of 'simple' hinges on you ignoring all the other stuff you had to do to set up sbt Aug 24 02:32:43 I didn't have to do anything to setup sbt Aug 24 02:32:47 a couple of echo commands Aug 24 02:32:55 Either way, the issue isn't whether building with IntelliJ is simpler, it's whether IntelliJ is doing something wrong Aug 24 02:33:07 don't really care, if the tool don't work, I don't use it Aug 24 02:33:15 And as far as I can tell, it is, so I reported the issue and went back to using sbt. Aug 24 02:33:30 indeed Aug 24 02:33:37 report the issue and move on, good philosophy Aug 24 02:34:10 I don't have a stake in a particular tool as long as one works and it's not Eclipse. Aug 24 02:34:40 The "not Eclipse" part is more important than "it works" Aug 24 02:34:45 I don't see how the intellij scala facet does the right thing, though, it also proguards? Aug 24 02:34:54 or do you have the huge dex option enabled Aug 24 02:34:56 The Android facet does proguard Aug 24 02:35:10 The Scala part just compiles Scala and does nothing else. Aug 24 02:35:15 don't you have to configure proguard rules for that? Aug 24 02:35:21 because stock proguard rules don't work for me with scala... Aug 24 02:35:25 Yeah. Fairly simple to do that, though. Aug 24 02:36:07 I think right now I just use one someone else wrote and made available. Aug 24 02:36:15 Albeit with some additions. **** ENDING LOGGING AT Sat Aug 24 02:59:58 2013