**** BEGIN LOGGING AT Mon Jul 30 02:59:59 2012 Jul 30 03:19:45 i have an activity, and a fragment. the onOptionsItemSelected in activity is called, but in fragment not. anybody knows why? Jul 30 03:20:26 i mean the callback runs.. when a menu item is pressed. Jul 30 03:27:32 * Naish is suffering from some severe mondayitis Jul 30 03:33:43 quick question, but if a project is open source (Battle for Wesnoth) and already has the source avaiable for previous API's, how difficult would it be to convert to Jelly Bean for the Nexus 7? Jul 30 03:54:49 WilliamDecker: android is extremely backwards compatible - you can generally mix APIs from 1 to N quite happily Jul 30 04:00:17 WilliamDecker: a game built for older API will run on a new devices just fine Jul 30 04:00:59 has anyone been using the new r8b ndk? Jul 30 04:01:30 Drakonite: when I go to the google play store I can install Battle for Wesnoth on my phone (ICS) but not for my Nexus 7 (Jelly Bean) Jul 30 04:01:52 that's unlikely to be an API level thing - far more likely to be something like the screen size Jul 30 04:02:25 they would have to have manually specified to NOT support beyond ICS, which that ability was depreciated IIRC. Jul 30 04:03:05 like Leeds said, it's not going to be an API level thing, more likely screen size or some other item Jul 30 04:03:31 I've had the market incorrectly label devices as incompatible before Jul 30 04:04:10 both the market just being broken randomly, as well as devices reporting incorrect specs (claiming no multitouch to market when it clearly has multitouch, etc) Jul 30 04:04:43 so I guess if I could just create the APK and install it on the device it'll probably work :] Jul 30 04:05:15 well, maybe not. it may have had a restriction for a very good reason Jul 30 04:07:05 if you pull the APK - or get the Android app source - you can look at the manifest (pastebin it for us to look at if you want) and see what the restrictions are Jul 30 04:08:48 I find `aapt dump badging filename.apk` to be better personally :) Jul 30 04:09:14 it includes implied restrictions, not just manifest listings Jul 30 04:10:54 https://github.com/cjhopman/Battle-for-Wesnoth-on-Android/blob/master/AndroidManifest.xml Jul 30 04:12:05 ... eww Jul 30 04:13:01 they shouldn't be listing all those uses-feature entries like that Jul 30 04:14:10 What is the name of the service running the ui on top of surfaceflinger? Jul 30 04:18:12 Drakonite: anything stand out that would make it incompatible? Jul 30 04:19:29 lots of junk that shouldn't be there, but nothing standing out as an absolute Jul 30 04:19:44 it shows as compatible with all my devices, but I don't have a Nexus 7 Jul 30 04:22:41 also as a side question...learning to program for android devices, I saw some videos by The New Boston...would that be the best place to start? Jul 30 04:25:56 anyone else have no idea what "The New Boston" is? Jul 30 04:26:25 I assumed it was some new street drug all the kids are in to these days Jul 30 04:26:36 Leeds: its a tutorial video series Jul 30 04:26:45 Leeds: mainly programming Jul 30 04:27:11 I think to me it would be the Boston in the US, given that like "The New York" it took its name from a city in the UK Jul 30 04:28:33 sorry should have given more context... http://thenewboston.org/list.php?cat=6 Jul 30 04:28:39 WilliamDecker: how is your Java? Jul 30 04:28:56 on a scale of 1-10 Jul 30 04:28:59 I'd put it at a 1 Jul 30 04:29:07 :) Jul 30 04:29:52 then you've got 2 steps: learn Java, then learn Android... http://docs.oracle.com/javase/tutorial/ and http://developer.android.com/training/index.html Jul 30 04:30:21 new boston has java tutorials as well Jul 30 04:30:22 eww the javas! don't let them touch you! Jul 30 04:31:33 I know people get obsessed with the idea that they need to learn from videos, but to me coding is an inherently textual activity Jul 30 04:32:35 I guess it depends on the person really, it's more traditional in terms of education, having an educator telling you what to do versus reading it Jul 30 04:32:51 sometimes educators go off on relevant tangents Jul 30 04:37:02 after working with many "traditionallye educated" programs, hiring programmers, and talking to/helping people I know taking programming classes, I can say that I'm thoroughly disappointed in what exists for programming education Jul 30 04:37:32 I would agree that you need a teacher for *computer science* - which isn't the same as learning a particular language/APIset/platform/etc Jul 30 04:39:52 autodidactism ftw Jul 30 04:43:17 agreed Jul 30 04:43:55 programming is problem solving. you learn problem solving by thinking, not by listening to some teacher lecture about things they don't really understand. Jul 30 04:45:35 not all teachers don't understand what they're talking about :) Jul 30 04:45:56 problem solving i've found is a lot easier when you understand the concepts behind the problem... Jul 30 04:46:34 like the expression, give a man a fish and he'll eat for a day teach a man a fish he'll eat for a lifetime Jul 30 04:46:59 I think the number of quality educators out there is quite limited, but that's the world we live in...you get what you pay for Jul 30 04:47:26 My experience with the education system is firmly on the "give a man a fish" side... show you how to do one problem exactly their way, by copying steps exactly out of a book, etc, and then move on to the next problem the same way Jul 30 04:47:51 no problem solving, no understanding "why" so you can figure out the next level. no real learning IMO Jul 30 04:49:00 Drakonite: what country did you go to school in? Jul 30 04:49:33 it isn't even about the money IMO (talking public education)... it's the whole attitude. Don't get me wrong, there is a funding problem, sure. But more money won't solve the problem when the attitude is to drill formulas and copy/paste skills in to idiots heads to get them to pass an exam (yet don't count the exam toward grades, just 'participation' type grade through homework grades) Jul 30 04:49:39 USA Jul 30 04:49:58 ah...I can only speak for Canada...and for most courses I had quality teachers Jul 30 04:50:06 our school was well funded as well Jul 30 04:50:22 but funding came from the student body mostly...it was a very unique situation Jul 30 04:50:49 we had an after school program where the students had a fund that they'd use to invest money, and the money they'd make every year went to various programs Jul 30 04:51:07 the student body was fairly wealthy Jul 30 04:51:53 private schools are not the same as public schools Jul 30 04:52:10 and college/uni is different than grade school Jul 30 04:53:28 my school was public, Toronto area Jul 30 04:53:48 but like I said...it was a unique situation only because of the hard work of the students Jul 30 04:54:07 although after I finished the economy went to shit, so they could have lost a ton of money :) Jul 30 04:54:45 I would not be surprised to see better public education in canada than in the US Jul 30 04:54:52 of course, it's not consistent across either country Jul 30 04:55:19 but the core required curriculum for grade school is busted Jul 30 04:56:46 in Canada specifically there are a few particular challenges which I don't think are unique here...it's actually probably a lot worse in the states, but I have a few friends that are teachers Jul 30 04:56:59 #1 teachers in Canada don't retire in Ontario because life is fucking good for them Jul 30 04:57:21 #2 they're well paid (I know this isn't the same for the us) which is a problem for #1 Jul 30 04:57:35 and people make a lot more money outside of teaching if they're actually really smart Jul 30 04:58:24 so what we get is mediocre teachers for the most part, there are a few shining stars...some know how to deal with kids better than others, some know the curriculum a lot better, some are just better at teaching Jul 30 04:59:02 so unless I'm willing to contribute to fixing it I really can't complain too much...I think there are more opportunities outside of school to find the education you want/need Jul 30 05:18:44 Weird. I just got an OTA from Samsung on my Galaxy Nexus that says: "This softwre Update includes new enhancements and improvements for your device by Samsung.. (more stuff)..." Jul 30 05:18:51 anyone know what the update has in it? Jul 30 05:22:07 First time I've had an OTA ask to install itself, in a legalesque kind of way. Jul 30 05:22:50 legalese is always a sign of danger Jul 30 05:23:02 cagedwisdom: do you have JB? Jul 30 05:23:21 Hi! Is it safe to use _id of Contact and contact data in my database? Jul 30 05:23:26 Leeds, JB? Jul 30 05:24:14 Leeds, ah got it Jul 30 05:24:23 Leeds, idk, maybe thats what this is. Jul 30 05:25:25 just thought it would come from the G instead of Samsung Jul 30 05:27:03 what variant of gnex do you have? Jul 30 05:58:30 hey all Jul 30 05:58:59 anyone here Jul 30 05:59:09 nope Jul 30 06:00:40 in the google io 2012 app, all the fragments in xml are wrapped in a frame layout, is there any advantage of doing this? Jul 30 06:00:55 currently have HTC evo shift running cyanogenmod 7.2; and just recently noticed when I reboot my phone, and its powering up to home screen, right as soon as everything loads up, I get a box on the bottom of the screen that says "have a nice day!" then just goes away..ever heard of that? if so, what program is it related to? Jul 30 06:02:04 no, sorry, it says "have a good day!" Jul 30 06:03:54 nevermind, come to find out that comes w/ cm 7.2 Jul 30 06:05:56 Hey guys, I have a toggle button in a "settings" activity which I want to use to turn music on or off in a different activity. This is a newbie question but can't quite find the answer.. in the settings.java for the toggle, the if (on) state I have music.setvolume(0,0);, but in eclipse i get an error on that line, "music can not be resolved". I need to access that mediaplayer instance from this activity.. :/ Jul 30 06:08:38 dreamache, store your music setting somewhere in settings, don't set directly to mediaplayer. or use singleton to store reference to your player Jul 30 06:09:11 whenever I reboot my phone, I always receive a ghost notification for voicemail messages, but I have 0 messages. I tried contacting sprint, and they cleated my messages inbox, and still receive the ghost message when using default SMS and voicemail app. so i had to resort to using googlevoice and enable the box to receive messages via googlevoice; but dont really want to have an additional Jul 30 06:09:11 app to disable that notification everytime I reboot my phone. Jul 30 06:15:16 Udmurt: if I store the music settings in the settings activity, it won't play on app load though? Jul 30 06:16:01 ..since the other activity is the activity that's active once the app plays. sorry, I'm a newb. Jul 30 06:17:19 dreamache, you just store settings, in other activity you must read it. on start of you app or then ever. also you can send intent to your mediaplayer activity upon change setting in settings activity. Jul 30 06:19:18 dreamache, http://www.kaloer.com/android-preferences Jul 30 06:20:25 http://developer.android.com/guide/topics/data/data-storage.html#pref Jul 30 06:25:06 Udmurt: Ahh ok, I was assuming taking the route of just letting people adjust settings via a custom activity with form widgets. Thanks for the direction though.. after 7+ beers I might rest for now and try to wrap my head around this tmw. Jul 30 07:09:27 My app need phone-call permission for a function. Is there a way to allow app to be found (on GPlay) from wifi-only devices, and only that particular function disabled? Jul 30 07:10:37 currently, with the permission defined in manifest, wifi-only devices will not see my app Jul 30 07:24:25 hoangtran: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions Jul 30 07:24:58 hoangtran: so something like Jul 30 07:27:17 appel1: thx, reading, hopefully this is the way, otherwise I'll have to create (non-sense) multiple versions with different permission Jul 30 07:54:14 https://plus.google.com/u/0/115208695107342318629/posts/cBxoGSEtbQW Jul 30 08:00:47 hey look, what I've been arguing for years! Jul 30 08:01:01 this is one data point :) Jul 30 08:01:14 that contradicts almost every other dta apoint i've seen for the past few years Jul 30 08:01:40 it matches what other game devs told me Jul 30 08:01:41 that is not true, you haven't been looking at data points you've been looking at blind rhetoric Jul 30 08:02:17 Hello there, I need to remove my app from ACTION_SEND choice menu, when launched from my app, How could I do that ? Jul 30 08:02:21 it matches the details sales data from some marketing firm provided to the company I used to work for Jul 30 08:03:12 didn't the World of Good guys claim they had a 90% piracy rate on PC? Jul 30 08:03:16 (with a cheap, DRM-free game) Jul 30 08:04:27 g00s: the big point, is that I cannot find a single source that can provide reliable data showing any significant difference in piracy between iOS and Android (i.e. detailed metrics and information on how data was collected). I spent a lot of time looking. Jul 30 08:05:24 romainguy_: probably. other PC devs have claimed 90+%. claims were made of 90+% on android last year, and for those that forgot iOS devs were claiming 90+% piracy rates originally too Jul 30 08:10:37 from that post, by the way, it's worth skimming the comments - mainly for the one guy who happily and proudly defends his piracy on the basis that if he likes something, he goes back and pays for it Jul 30 08:11:12 I've heard those comments far too much already Jul 30 08:11:16 Having been burned by shoddy console ports and lack of intelligent programming or decent support, I now test games by pirating them first before I buy. Jul 30 08:11:20 for which http://theoatmeal.com/blog/apps definitely applies Jul 30 08:11:31 Game demos do not do the job. Jul 30 08:11:41 pragma-: really? you're going to say that in here? Jul 30 08:11:58 I do buy the good ones. Jul 30 08:12:08 Leeds: I hate that argument :) Jul 30 08:12:08 Most publishers will not refund. Jul 30 08:12:12 I'm not going to bother feeding the trolls with a long argument, but I will say... "bullshit" Jul 30 08:12:36 romainguy_: presumably you saw the oatmeal cartoon before... Jul 30 08:12:47 Leeds: yes :) Jul 30 08:13:35 I'm not referring to android games, though. The free version is usually representative of the paid version. Jul 30 08:13:48 to me, it's pretty simple... if I pay US$10 for a movie, any game which costs <=$3 and gives me at least an hour of entertainment is good value Jul 30 08:13:58 that in no way makes your argument any less invalid to me Jul 30 08:14:00 any game which gives me more than a couple of hours is great value Jul 30 08:14:11 I am referring to the $60 crapware that has infested the market. Jul 30 08:14:58 and a game which costs $2 and I end up not liking... really, I've got a $650 phone, a $250 tablet (on the way), I pay $70 per month for home and mobile 'net - do I give a crap about $2? Jul 30 08:15:23 Those $2 add up on the developer's account and makes them think they're doing a good job. Jul 30 08:16:27 wow Jul 30 08:16:51 the crapware is pretty easily identifiable, as well as a huge amount of freely available reviews and people discussing the games. if $60 is that big of a deal, then spend the time to find a few reviews and gameplay videos, or go play cheap games Jul 30 08:17:41 In any case, as I've said, a competent developer has a limited feature free version that motivates you to buy the paid version. Or even a fully featured version that just wows us enough to show our support through donations. Jul 30 08:17:49 in the end, I've known a very large number of people who try to make your same claim, and all of they are lying, they don't really go buy the games they play, or if they do it is very rare Jul 30 08:17:56 One would be foolish to blindly buy a game, be it 99 cents or less. Jul 30 08:19:00 I am not speaking for anyone else but myself. Jul 30 08:19:09 My argument is not intended to defend them. Jul 30 08:20:00 There was a time when money had a strong moral virtue sanctioned on it, before they started printing it willy-nilly. Jul 30 08:20:50 oh... Jul 30 08:21:24 mm money Jul 30 08:21:35 of course, back in the 24-hour refund days... Jul 30 08:22:12 presumably there was no piracy at all, since everyone had a chance to test everything for a while Jul 30 08:22:36 Why is it only 15 minutes now Jul 30 08:22:40 that's a little short. Jul 30 08:22:56 most apps are small and easy to evaluate Jul 30 08:23:02 the dev should be able to choose the refund time window Jul 30 08:23:11 minimum wage in the US is 7.25/hr, which means at min wage it'd take 8min 16s to make enough money to buy a 99c mobile game. Jul 30 08:23:23 and sell it once? Jul 30 08:23:37 oh buy Jul 30 08:24:13 danharibo: the general theory at the time it was changed was that it was a result of pressure from big game companies (like lions and tigers!) who wanted to be able to sell games which had a few hours of playtime, without them being refunded Jul 30 08:24:25 Leeds: :( Jul 30 08:24:34 I have someone who keeps downloading a game I made and then refunding the purchase before the time runs out Jul 30 08:24:46 letting the dev choose would just be too complicated for users Jul 30 08:24:58 Drakonite: you only get to refund once Jul 30 08:24:59 Drakonite: really? I thought you could only refund once. Jul 30 08:25:15 I won't go in to details, but there are some exploit problems with the 15min trial system on android, and I'd very much rather not have it. Jul 30 08:25:34 Leeds: I got emails of the same person getting a refund many times over the course of a couple weeks Jul 30 08:25:48 for the same app? Jul 30 08:25:49 and presumably you reported that to GOOG and got no response? Jul 30 08:25:59 yes, same app Jul 30 08:26:09 that's weird Jul 30 08:26:14 1) I didn't know of the 1 refund limit. 2) really didn't care enough either Jul 30 08:28:44 Leeds: oh, you mean the exploit I referred to? well, google hasn't helped with anything else I've contacted them about and I decided I'd rather not post it on a public bug tracker and have it never be fixed Jul 30 08:29:47 you could email the market support... but I still wouldn't expect a response Jul 30 08:30:17 'email' - web form Jul 30 08:31:12 wow, reading this article about MS 10-k report; seems like they are really getting into hw like apple. the surface isn't just a 'demo' / pacesetter Jul 30 08:31:50 these next 12 months are going to be very interesting Jul 30 08:31:53 :) Jul 30 08:31:58 Leeds: well, the market still requires you to commit credit card fraud in order to test IAP, so somehow I doubt google would give a shit Jul 30 08:32:20 you mean to buy from yourself then refund? Jul 30 08:32:48 hmm, sqlite noob here.. for a "sync" in our app i need to drop all data in all tables.. right now i create a list of the tables names and then iterate over it and do: db.delete(tableName, null, null) Jul 30 08:32:49 yes Jul 30 08:33:02 this is error probe though (i.e. once i change the db schema, i need to change this code, too) Jul 30 08:33:16 what's the canonical way to iterate over all tables in a SQLIteDatabase? Jul 30 08:33:21 tapas: you are using a versioned database, presumably? Jul 30 08:33:27 Leeds: yes.. Jul 30 08:33:40 tapas: i think there is a table that has all the tables :P Jul 30 08:33:40 so you know what the tables are by the database version Jul 30 08:34:01 Good day! Jul 30 08:34:17 tapas: http://stackoverflow.com/questions/82875/how-do-i-list-the-tables-in-a-sqlite-database-file Jul 30 08:34:31 If I put a viewpager inside a viewpager and the outer viewpager only gets changed by code, will swipe gestures still reach the inner viewpager? Jul 30 08:34:44 it's why the market won't let you buy apps published with your account -- buying something from yourself with a CC is considered fraud (at least in the US). placing charges to intentionally refund them is also not considered okay :P Jul 30 08:34:47 g00s: yeah, i stumbled over tht SO question, too.. Jul 30 08:34:50 The idea is that you change the outer viewpager with a tab widget and the inner viewpager by swiping. Jul 30 08:35:41 g00s: i was just wondering if there's a more robust way.. i.e. is it guaranteed that there's a table called sqlite_master? Jul 30 08:35:50 g00s: MS has done hardware before (and still does for at least small items). but typically OEMs want to take on the expensive part of hardware dev so MS doesn't bother and just collects licensing money :) Jul 30 08:37:07 Hello Jul 30 08:37:22 I have an issue with push notifications & starting an intent Jul 30 08:37:34 I push the notification fine, and I can start the intent: Jul 30 08:37:38 http://pastebin.com/g08UmJYt Jul 30 08:37:52 But the following paramas: notificationIntent.setAction("load_notifications"); Jul 30 08:37:52 notificationIntent.putExtra("test", "test"); Jul 30 08:38:15 Are not visible in my main activity if the following config option is set: android:launchMode="singleTask" Jul 30 08:38:26 "singleInstance" has the same result, they aren't set. Jul 30 08:41:33 Drakonite: but i think what is new here, is that MS will compete with its HW partners Jul 30 08:42:00 Peeter: sounds like you've done your testing, but that seems like a quite unlikely bug Jul 30 08:51:52 could someone tell me what is the common way of handling events with opengl? since i cant call opengl commands from the ui thread am i supposed to create my own queue which i execute every time i draw a frame? Jul 30 08:52:27 balls2thewall: yep Jul 30 08:52:37 =/ thank you Jul 30 09:04:06 this is turning out to be a not-too-shabby book http://www.amazon.com/Mobile-Frontier-Rachel-Hinman/dp/1933820551 Jul 30 09:04:48 pretty hard to find UX material on tough interfaces that isn't platform dependent Jul 30 09:04:55 *touch Jul 30 09:19:38 hmm, is there a way to get the value of a row in a certain column as string representation regardless of type? Jul 30 09:20:16 what is the equivalent parameter to --rename-manifest-package in aapt tag? Jul 30 09:21:16 it seems there's no way to discern different column types short of trying to access the data with one of the get* methods and catch the exception if it fails.. Jul 30 09:21:21 then try the other type.. Jul 30 09:22:09 i'll try it that way and if it's too slow think harder about the issue Jul 30 09:36:43 hello, can anyone tell me how I can create an android application that is pluginable. Is it ok to use reflection or is there something easier ? Jul 30 09:46:44 * tinyhippo was just about to reply to pinas... Jul 30 09:48:15 I'm getting a ClassNotFoundException on my project, but I don't know why?! http://pastebin.com/yxiNFkuP Jul 30 09:48:33 I exported the working project to a SVN repo, and imported it to my other machine from there Jul 30 09:49:24 Running and installing it on my main machine works perfectly fine Jul 30 09:49:45 but on this one, I get those Exceptions Jul 30 09:55:36 sonOfRa: notice how it tells you exactly what is wrong Jul 30 09:55:55 it didn't find the class, obviously Jul 30 09:56:11 but I have no idea that would happen, considering the project builds without a problem Jul 30 09:56:23 the class definitely DOES exist Jul 30 09:56:30 where is it defined? Jul 30 09:56:49 src/com.example.booleanevaluation.MainActivity Jul 30 09:57:08 o.O, you mean src/com/example/... Jul 30 09:57:17 yeah, obviously. Jul 30 09:57:21 i just used the package name Jul 30 09:59:08 The app works perfectly fine when starting it from the other computer. It's running on my phone right now Jul 30 09:59:22 I cannot run it from this machine though, neither emulator, nor real device Jul 30 10:00:17 try different simulator? Jul 30 10:01:56 wow. deleted and imported the project again for the third time, now it works O.o Jul 30 10:02:30 :D, maybe something cached by the IDE Jul 30 10:15:23 hi, Has anybody been able to get MediaPlayer.setSurface working with a GLSurfaceView?? I'm getting this error: E/MediaPlayerService( 143): setVideoSurfaceTexture failed: -22 Jul 30 10:21:48 What i tried is i have created 2 SIP extensions in my asterisk server , 1 is registered using sipdroid 2.7 on the Samsung Galaxy Y(Android 2.3.6) and another is registered using sipdroid 2.7 on Sony xperia Neo V (Android 4.0.4) and the test was on wifi. When i am trying to make call to each other then on Galaxy Y i am able to hear the audio perfect with all codecs but on xperia the audio is coming very low and i can hardly listen it. Can you plea Jul 30 10:25:10 I have a method that I want to also use as an onclick handler. It seems the method needs to take arg View v. What do I pass when NOT calling it from a button or the like? Jul 30 10:25:44 mbrevda: have the action separate from the onClick handler Jul 30 10:26:00 so that the handler simply calls "doAction()" when it it triggered Jul 30 10:26:15 and when you'd like to call it yourself. simply call doAction() Jul 30 10:26:57 I'm using the new master/detail flow application template from ADT20, and when i'm on a phone it switches between actual activities which works great, but when i'm on a tablet it loads the fragment from activity B so everything looks Great, but my behind an action bar button is missing -- because it's from activity B. Is there a way to have activity A utilize methods and logic from Activity B when activity B is never physically Jul 30 10:28:36 danharibo: so two separate methods, where one calls the other? Jul 30 10:28:48 yes Jul 30 10:29:15 thanks Jul 30 10:35:12 I'm using queryIntentActivities it works well with ACTION_MAIN but when I use ACTION_SEND (which works well with createChooser) It returns an empty list Jul 30 11:07:07 does anybody know how to do the group chat in android? Jul 30 11:07:37 as a user? Jul 30 11:07:57 ya through coding? Jul 30 11:08:13 I don't think gtalk really has any onboard APIs, does it? Jul 30 11:08:52 Leeds: I am using the Smack API for instant messages Jul 30 11:09:14 and i also want to using the Smack API make possible to group chat Jul 30 11:09:20 then surely that's a question for Smack, not Android? Jul 30 11:09:47 okay Jul 30 11:10:09 jagruti_: with the Smack API, you create a new Chat or GroupChat object, depending on who you want to talk to Jul 30 11:10:36 but yeah/10 Jul 30 11:11:05 tinyhippo: thx your reply but can u provide me some helkp Jul 30 11:11:09 help* Jul 30 11:11:57 jagruti_: look up examples and the documentation for the Smack API GroupChat object, and you will be able to help yourself Jul 30 11:13:31 I have refered the Smack api example and through which i have created the room and also join the user but i cant send the same message to all user who are in same group Jul 30 11:14:17 tinnyhippo:if you have any helpfull material or link then please suggest me Jul 30 11:15:21 tinnuhippo: and also from Smack API Groupchat example some code is not working in android like message listener Jul 30 11:24:18 hungry Jul 30 11:24:22 hippos Jul 30 11:25:06 tiny Jul 30 11:25:09 hungry Jul 30 11:25:11 hippos Jul 30 11:25:14 eating your toes Jul 30 11:25:29 working robots, happy robots Jul 30 11:31:59 Hey, can I have more than two files in the APK Expansion ? Jul 30 11:33:00 you can put any numbers of files in the expansion Jul 30 11:33:11 but there can only be two expansion files Jul 30 11:33:16 which is probably what you are asking Jul 30 11:33:29 don't throw everything into a zip and then unizp it and delete it Jul 30 11:33:36 the expansion will just get downloaded again Jul 30 11:33:51 !!! Jul 30 11:34:42 If I delete the downloaded files it will redownload them??? Jul 30 11:35:09 /8/2 Jul 30 11:37:22 mikedg: I have a lot of small files, they add up to 80 mb.. that means I cant use APK Expansion (without zip)? Jul 30 11:44:28 If your application doesn't demand a specific format, we suggest you create ZIP files for your expansion files, then read them using the APK Expansion Zip Library. Jul 30 11:44:34 http://developer.android.com/guide/google/play/expansion-files.html#ZipLib Jul 30 11:44:49 great guide for expansions, http://developer.android.com/guide/google/play/expansion-files.html Jul 30 11:51:35 How can I post some data to a webserver? Just a string or something Jul 30 11:53:09 using HTTP... Jul 30 11:53:56 mikedg: but before u said "don't throw everything into a zip and then unizp it and delete it" .. u mean I musnt remove the .zip file after extracting it/ Jul 30 11:54:44 Drager: http://android-developers.blogspot.hk/2011/09/androids-http-clients.html Jul 30 11:54:53 Leeds: thanks Jul 30 11:58:19 Hey people. Jul 30 11:58:44 Maybe I'm doing something wrong but I can't find any good explanation on how to use tabs with fragments the proper way. Jul 30 11:59:18 So, I have a fragment, and inside of that I want to have a tab bar at the top (created dynamically) and some content below that. What's the right way to do this? Jul 30 11:59:33 I only know the deprecated tabactivities... Jul 30 11:59:48 action bar Jul 30 11:59:50 Can you give me some key words to help me with my search? Jul 30 11:59:53 No, not action bar Jul 30 12:00:05 yes, action bar Jul 30 12:00:11 The action bar already contains tabs, but in one of its tabs, I need more tabs. Jul 30 12:00:18 oh boy Jul 30 12:00:22 Yes, I know. Jul 30 12:00:33 But I can't change it, it's absolutely required by the customer. Jul 30 12:00:44 i think i remember talkin about this previously Jul 30 12:00:57 Actually I need three layers of tabs, the bottom ones need to swipe like in the play store. Jul 30 12:01:02 Yeah, I was here on friday. Jul 30 12:01:12 the only thing i can recommend is making your own tab widget Jul 30 12:01:33 Shouldn't it be possible with the normal tab widget? (though i can't find any useful info on that) Jul 30 12:01:48 Just use either tabhost or textviews in a linearlayout Jul 30 12:01:59 i put tabs in your tabso you can tab while you tab Jul 30 12:02:05 that's just a tab bar Jul 30 12:02:10 I mean, my idea is this: actionbar contains fragments, one fragment contains a tab widget at the top and a viewpager below, the viewpager contains a swipable tab widget and a viewpager below which reacts to the swipes. Jul 30 12:02:27 you need TabWidget + container + fragments Jul 30 12:02:36 "container"? Jul 30 12:02:48 a place for the fragments to live Jul 30 12:02:57 just put some fucking buttons up Jul 30 12:03:03 that sounds like fragments inside fragments? Jul 30 12:03:09 actually, you can't have fragments in gragments Jul 30 12:03:45 so the tab widget is basically just buttons which control a viewpager, right? Jul 30 12:04:05 it's typically attached to a TabHost Jul 30 12:04:26 I thought tabhost was deprecated? Or is this something separate from tabhostactivity/tabactivity? Jul 30 12:04:51 i assume you can use it separately, i don't know why you couldn't, but i've never tried Jul 30 12:05:35 so the actionbartab contains a fragment, which contains a tabwidget and a tabhost, the tabhost contains another tabwidget and tabhost? Jul 30 12:05:45 (With a viewpager) Jul 30 12:06:21 maybe try it, i'd bet you're going to run into some problems with it Jul 30 12:06:22 Well, I'll read up on fragment container first and see how far I get with this. Thanks for your ideas. Jul 30 12:06:46 My fear is that something on the outside of the layout will make it impossible to swipe the lower tabs. Jul 30 12:06:52 i won a gold medal this weekend in Androiding Jul 30 12:07:02 i'd get a new customer ;) Jul 30 12:07:09 :D Jul 30 12:07:32 Maybe I should ask on stack overflow how to fix my customer ;) Jul 30 12:07:52 mikedg: I was thinking of you this weekend... gf is giving me heavy pressure to get a cat, we compromised on a couple of guinea pigs... went to see some at a shelter, she vetoed them because they look too much like rats Jul 30 12:08:04 :| Jul 30 12:08:12 rats are cooler than guinea pigs Jul 30 12:08:16 go play with some Jul 30 12:08:29 and she can tie pink bows on their tails Jul 30 12:08:55 I did suggest that, but it got extra-vetoed... apparently they had rats come into their place sometimes when she was young, and it's left her less than appreciative of small rodents Jul 30 12:09:50 then get a snake! :P Jul 30 12:10:29 suggested that too - she wants warm and furry Jul 30 12:10:31 You can add a ping bow to the snake as well! Jul 30 12:11:45 http://en.wikipedia.org/wiki/Sugar_glider Jul 30 12:11:47 what about those guys Jul 30 12:11:52 not rodents Jul 30 12:12:32 they seem to be a pain in the ass, although I had considered them prior to getting rats Jul 30 12:12:39 same niche, same claws Jul 30 12:13:04 all the furry animals have claws Jul 30 12:13:05 even bunnies Jul 30 12:13:11 bunnies are boring as shit though Jul 30 12:13:31 and smelly Jul 30 12:13:48 she suggested a bunny today - I've got nothing against bunnies, but I do have something against keeping them in a 4th floor flat, where they'll never see grasss Jul 30 12:14:23 she sounds like a pain in the ass Jul 30 12:14:27 dumb her and get some rats Jul 30 12:15:19 annoying Jul 30 12:19:23 I have an activity with a fragment, both edit the same model. I send the ID of the model to the fragment via a bundle when instantiating it. Problem is that if either of them updates the model without loading the latest version of the model it can overwrite changes made by the other. Jul 30 12:19:30 If I want to avoid reloading the model each time I update it, what is the best way to go? I'm thinking of using the same model object for both and adding a setModel method to my fragment, is this a good way to go or is there a better way? Jul 30 12:22:42 Or perhaps I should let the activity be in charge of updating the model and just send a message from the fragment to the activity somehow? Jul 30 12:23:29 argh, is there no way to open an SQLiteDatabase if it's missing the android metadata? Jul 30 12:25:35 ah, it was a matter of flags... Jul 30 12:25:59 SQLiteDatabase.NO_LOCALIZED_COLLATORS Jul 30 12:31:58 I've trying to use actionbar sherlock, done everything like in demo for simple activity. but my activity still has no action bar. I've use intellij community 11, added lib as module, include dependencies. Set target to API level 15 build thith it. And nothing :( Jul 30 12:32:02 How can I send multiple strings to server? Jul 30 12:32:10 or a file and a string or a integer? Jul 30 12:32:52 server? Jul 30 12:33:12 to a http server Jul 30 12:33:20 For now I can send one string Jul 30 12:33:30 I want to send a file and a string to the same server Jul 30 12:35:20 multipart form Jul 30 12:35:57 Drager: have you tried reading the docs or even google? Jul 30 12:36:11 appel1: Yes sir Jul 30 12:36:21 googled like a maniac Jul 30 12:36:27 Drager: and you could find nothing about sending data to a http server? Jul 30 12:36:28 Content-type: multipart/form-data Jul 30 12:36:42 appel1: Ofc I did, but not how to send multiple strings Jul 30 12:36:59 Drager: what have you tried? Jul 30 12:47:45 Hmpf. I can't get tabs to work at all. Does anyone know a good tutorial for tabs using fragments, but outside of the actionbar? Jul 30 12:48:24 What I'm struggling with the most is the lack of a good tutorial. Jul 30 12:49:25 If I want to have 4 tabs in a fragment, what do I have to do? Something in onCreate? Or in onCreateView? Hm. Jul 30 12:49:45 you want tabs in a fragment? Jul 30 12:49:55 how would you put any other view in a fragment Jul 30 12:49:59 do that but use tabs Jul 30 12:52:54 Well, I don't know about that, guess I'll read the fragments docs first. Jul 30 13:07:15 Solved it with multipart thanks wongk Jul 30 13:07:52 hello everyone! Jul 30 13:07:58 Hey Jul 30 13:08:17 I noticed something strange while doing some drawing on Android Jul 30 13:08:31 maybe someone is experienced with that here Jul 30 13:08:59 with strange things? Jul 30 13:09:01 e.g. women? Jul 30 13:09:28 thanks Jul 30 13:09:42 I did a very basic application for drawing with the finger (onTouchEvent, store coordinates and invalidate the View after each onTouchEvent). I get different result between galaxy s2 and asus transformer tablet Jul 30 13:10:23 looks like the Asus tablet doesn't care of the Cap / Join styles. I set ROUND for both and only the galaxy s2 use it ROUND Jul 30 13:11:47 i was expecting the same result on both Jul 30 13:12:14 shibakaneki: i can confirm that issue Jul 30 13:12:28 great Jul 30 13:12:34 shibakaneki: on some emulators i get other results Jul 30 13:13:00 hum... do you have any idea on a way to resolve it? Jul 30 13:13:44 shibakaneki: we used a sample from the android sdk - that didn't work Jul 30 13:14:08 shibakaneki: so we decided to create our own strokes e.g. by painting circles and pixels Jul 30 13:14:29 that's what I was thinking... Jul 30 13:14:42 what a pain ^^' Jul 30 13:14:49 it might be a device "isue" or a android version issue Jul 30 13:14:50 no idea Jul 30 13:15:13 yes, maybe Google will fix that in the next versions Jul 30 13:15:16 anyway i voted against that finger paint stuff for our app :) Jul 30 13:15:33 you have to fix it :) Jul 30 13:15:46 google won't patch any devices Jul 30 13:15:54 I will fix it by drawing polygons instead of lines Jul 30 13:16:27 thank you for your feedback! Jul 30 13:43:19 it blows my mind that http://phandroid.com/2012/07/30/ea-updates-dead-space-with-nexus-7-support/ is "good news". learn to write apps that work everywhere... Jul 30 13:48:18 canadiancow|work: easier said than done. In pratice, something like the N7 may erquire small adjustments due to new platform bugs or subtle different behaviour Jul 30 13:49:00 i dont agree with that Jul 30 13:49:13 the "platform bugs" would affect any JB device Jul 30 13:49:29 canadiancow|work: how about opengl differences/bugs then? Jul 30 13:49:35 no, it depens on the API you use Jul 30 13:50:03 I have at least 2 examples broking apps that worked before JB Jul 30 13:50:15 appel1, if you're going to manually test and approve each device for its opengl support, you're never going to release anything Jul 30 13:50:31 "platform (or opengl) bugs" are not something you develop for Jul 30 13:50:36 bubbleguuum: what are they? Jul 30 13:50:56 canadiancow|work: no, but it something you have to work around Jul 30 13:51:04 actually, platform and opengl bugs ARE something you have to develop for. Jul 30 13:51:17 if you have a certain system with those bugs, and you have to develop for taht system due to high demand Jul 30 13:51:26 you don't get around developing for that exact system. Jul 30 13:51:48 im saying the exact opposite of that Jul 30 13:51:54 you develop for android Jul 30 13:52:01 you dont ever develop for "that exact system" Jul 30 13:52:25 canadiancow|work: so you advocate never to work around platform/device/driver bugs? Jul 30 13:52:26 well, but there are some system specific things that are broken/different on some systems Jul 30 13:52:39 thats not what i said Jul 30 13:52:45 and especially for systems that are quite common and often used (like the nexus 7) Jul 30 13:52:52 canadiancow|work: ok Jul 30 13:53:03 if there was a nexus 7 issue, id tell google to fix it Jul 30 13:53:13 canadiancow|work: good luck with that Jul 30 13:53:19 its worked in the past Jul 30 13:53:35 hi Jul 30 13:53:46 canadiancow|work: google has yet to fix a kernel panic crash in the graphics driver of the galaxy nexus for example :) Jul 30 13:53:54 is galaxy s3 good? Jul 30 13:53:55 how can I get a textview's vertical line spacing? Jul 30 13:54:05 hey guys, logcat says: 07-30 15:50:21.886: E/AndroidRuntime(8423): java.lang.VerifyError: com/fripsy/***/***Activity$1. when i try to add admob by XML (added testdevice and pub id and also admobsdk is in lib folder and referenced) Jul 30 13:54:17 canadiancow|work: http://code.google.com/p/android/issues/detail?id=34913 and http://code.google.com/p/android/issues/detail?id=35298 Jul 30 13:54:20 I'd like to know how much padding Android is giving in between lines Jul 30 13:54:51 can someone help me? Jul 30 13:55:02 (altready googled it) Jul 30 13:55:08 already* Jul 30 13:55:25 bubbleguuum the first one there is fixed Jul 30 13:55:56 bot its not Jul 30 13:55:59 canadiancow|work: in a future release Jul 30 13:56:03 were do you see it fixed ? Jul 30 13:56:08 android 5.0 perhaps? =) Jul 30 13:56:35 hey guys can someone help me? Jul 30 13:56:41 im about 99% sure it's fixed in 4.1.2 Jul 30 13:56:44 new major or semi majot relase of the platform = it will break some apps. Jul 30 13:56:51 as for the second issue, that isnt a breaking issue Jul 30 13:57:07 canadiancow|work: there's a 4.1.2? Jul 30 13:57:07 it makes your debugging less effective Jul 30 13:57:12 it is if it throw a StrictMode Ecxption Jul 30 13:57:40 the bug is that it doesnt let you enabled strict mode Jul 30 13:57:49 err...it doesnt let you do it in a way that previously worked Jul 30 13:58:12 regardless of this bug, Android is the winner in all categories when it comes to the platform throwing RuntimeExceptions Jul 30 13:58:22 most of which undocumented Jul 30 13:58:37 anyone know how I can control EditText multiline spacing? Jul 30 13:58:38 someone is going to tell me they should not be documented of course Jul 30 14:01:43 fucking verify errors! Jul 30 14:02:52 yes Jul 30 14:02:52 so Jul 30 14:02:59 hey guys, logcat says: 07-30 15:50:21.886: E/AndroidRuntime(8423): java.lang.VerifyError: com/fripsy/***/***Activity$1. when i try to add admob by XML (added testdevice and pub id and also admobsdk is in lib folder and referenced) Jul 30 14:03:15 can someone give me a hand? Jul 30 14:05:35 what do you love about android? Jul 30 14:06:12 lol? Jul 30 14:06:21 interface Jul 30 14:06:28 UI i mean Jul 30 14:08:30 hi guys, any obviouse reasons why value.replace("<", "<").replace(">", ">").replace(""", "\"").replace("'", "'").replace("&", "&") returns an unmodified value Jul 30 14:08:41 eg, it does not do the replacments Jul 30 14:09:22 looks like awesome code Jul 30 14:10:06 If the input field allows it, set your username to Jul 30 14:10:15 maybe because string are immutable and you want to assign the result ? : value = value.replace(....... Jul 30 14:10:18 yeah, well android/java dosnt offer normal xml special characters encoder Jul 30 14:10:49 and the html object' one doesn't apply to this Jul 30 14:11:00 How can I keep the highlight on the selected row in a Listview? Jul 30 14:12:22 I'd like to transfer my app from nexus7 to kindle fire, any easy way? Jul 30 14:12:41 just to see how it looks Jul 30 14:22:41 joikus... just... install it? Jul 30 14:22:47 im not sure what you're asking Jul 30 14:23:28 ok I'll just grab the .apk and install it Jul 30 14:27:14 hiyas Jul 30 14:27:55 can anyone suggest a way to get an i9100/SGS2 to run a script every boot? I don't think Samsung's stock ROM supports /system/etc/init.d, which would be the obvious choice... Jul 30 14:30:19 anyone have a working solution for converting DP to pixels? I want my buttons 50dp wide, but buttonWidth(int px) only works with pixels. Now I've seen some solutions on stackOverflow, but none of them produce the same output for 50DP that i get when specifying 50dp in XML for other buttons... Jul 30 14:31:23 *Button.setWidth(px), not ButtonWidth(ox) Jul 30 14:33:41 What does the property android:shrinkColumns do? Jul 30 14:35:27 http://developer.android.com/reference/android/widget/TableLayout.html#setColumnShrinkable(int, boolean) Jul 30 14:37:36 http://developer.android.com/guide/practices/screens_support.html#dips-pels Jul 30 14:37:36 greetings Jul 30 14:39:00 sonOfRa: http://developer.android.com/reference/android/content/res/Resources.html#getDisplayMetrics() Jul 30 14:39:11 sonOfRa: http://developer.android.com/reference/android/util/DisplayMetrics.html#densityDpi Jul 30 14:39:37 Just for a temporary solution: Is there a way to put an activity in a fragment? Jul 30 14:40:15 lov, SimonVT that was what i was doing: Jul 30 14:40:35 http://pastebin.com/xp03km7h Jul 30 14:41:10 and the buttons are not the same size, as the hardcoded buttons with 50dp next to them Jul 30 14:41:37 10:39:17 < lov> sonOfRa: http://developer.android.com/reference/android/util/DisplayMetrics.html#densityDpi Jul 30 14:41:48 read the docs for the density member carefully Jul 30 14:42:01 is there anyway to make sure the external cache folder gets deleted when the user uninstalls your app? Jul 30 14:42:28 Android does that for you Jul 30 14:42:34 it doesn't on my phones Jul 30 14:42:38 and its pissing me off Jul 30 14:43:11 Your phones are broken Jul 30 14:43:18 Or you're using the wrong folder Jul 30 14:43:31 I'm using external storage for the cache Jul 30 14:44:25 sonOfRa: Then you're doing something else in xml Jul 30 14:44:35 That formula will work fine Jul 30 14:45:07 http://pastebin.com/JUfm0kZP Jul 30 14:48:08 the buttons on the left are hardcoded xml, the ones on the right are given 50dp with the formula i use: https://dl.dropbox.com/u/47991161/Uni/Android/buttons.png Jul 30 14:48:14 so i have a script that takes a while to process, and in the mean time i show a progress dialog, when its finished it starts a new activity, after the script is finished, the progress bar stops spinning and hangs for a couple secs before starting the next activity Jul 30 14:48:27 whats the best way to make sure it always spins until the activity is completely gone? Jul 30 14:49:35 I've checked with different characters to see if maybe a single character like A takes up more space, but even if i use one of the characters on the left, the buttons are still wider Jul 30 14:49:48 any time you're doing work on the main thread, that progress guy isn't going to be spinning Jul 30 14:49:53 this is happening on both phone and emulator Jul 30 14:50:19 CallumTaylor: AsyncTask Jul 30 14:50:45 is there a way to get a call back when the next activity has finished starting? Jul 30 14:51:12 CallumTaylor: consider using a Service for this. Jul 30 14:51:17 i tried putting everything in a thread but i have the problem of dismissing the progress dialog when the next activity starts Jul 30 14:53:07 There are several things wrong here and I'm not even sure where to start, so I'm going to just go ._. Jul 30 14:53:32 want to punch this twat on google plus Jul 30 14:54:00 ugh, hey guys, so i'm going through this --> http://www.xyzws.com/Javafaq/how-to-use-httpurlconnection-post-data-to-web-server/139 <-- and on line "DataOutputStream wr = new DataOutputStream (connection.getOutputStream ());" it throws an exception, only the exception string appears to be null Jul 30 14:54:01 jfgi, i'm sure you can write it out to a binary file and read it in R Jul 30 14:54:08 sorry, wrong chan Jul 30 14:54:23 i mean, e.getMessage() and e.getLocalizedMessage() where e is the exception both return null Jul 30 14:54:53 sonOfRa: https://dl.dropbox.com/u/100261/2012-07-30%2016.53.05.png http://pastebin.com/BK5RWqEi Jul 30 14:54:55 (int1 & int2) ? str1 : str2; // tells me of incompatible types where an integer is found where a boolean is expected. how am I thinking wrong here? Jul 30 14:55:05 Looks like the same size to me Jul 30 14:55:13 hm, my device has a cross next to it on the device chooser (2.3.3) but my minSdk is set to 8 Jul 30 14:55:54 hm. i'll try going with layoutparams instead of using the single methods Jul 30 14:56:25 android.os.NetworkOnMainThreadException <-- this is the type of exception Jul 30 14:56:27 apparently, using the simple methods does not scale the button AT ALL, even with 10dp, i get the same size Jul 30 14:56:32 but the exception message is null Jul 30 14:57:00 kaneda^: Read the exception name Jul 30 14:57:05 And don't do that Jul 30 14:57:10 SimonVT, so the answer is run it in asynctask or something? Jul 30 14:57:33 what SimonVT said Jul 30 14:57:35 yes Jul 30 14:57:41 do your networking anywhere but the main thread Jul 30 14:57:42 or just runInUIThraed? Jul 30 14:57:46 or strictmode will yell at you Jul 30 14:57:51 ui thread = main thread Jul 30 14:58:00 gotcha Jul 30 14:58:02 so i need a new runnable Jul 30 14:58:08 not necessarily Jul 30 14:58:14 is there a better way? Jul 30 14:58:16 You Could Use An AsyncTask Jul 30 14:58:22 10:57:16 < kaneda^> SimonVT, so the answer is run it in asynctask or something? Jul 30 14:58:25 hello all Jul 30 14:58:25 ^^ Jul 30 14:58:33 *cough* Jul 30 14:58:36 be Jul 30 14:58:36 lov, ok, http://android-developers.blogspot.in/2009/05/painless-threading.html <-- so taht's too basic Jul 30 14:58:41 i should make an asynctask Jul 30 14:59:07 kaneda^: huh? Jul 30 14:59:10 The example you linked uses an asynctask.. Jul 30 14:59:17 As well as a thread Jul 30 14:59:17 that's just a new runnable though Jul 30 14:59:18 Same result Jul 30 14:59:21 Different methods Jul 30 14:59:22 i thought asynctask was a class Jul 30 14:59:24 and required a handler Jul 30 14:59:24 kaneda^: I strongly encourage you to actually read that article. Jul 30 14:59:37 kaneda^: it's a convenience class for running things in the background while providing hooks for events to occur in the foreground Jul 30 14:59:43 e.g. performing networking and displaying a progress dialog Jul 30 14:59:51 right Jul 30 15:00:11 I'd like to do some calls loading with reflections from my android app (want to make it plugin able). When i to something like Call plugin = Class.forName(someFileInMyPassPrivateStorage) - what does the "Plugin File" needs to bee (a simple class file) ??? Jul 30 15:00:24 ok, thanks guys Jul 30 15:00:27 anyone do ios dev too? Jul 30 15:00:31 dump the word "calls" :D Jul 30 15:03:09 or does anyone has an idea how to make an app pluginable ? Jul 30 15:03:13 fml, build server produces something with verifyerrors :( when running Jul 30 15:03:41 verify errors only on ICS .... Jul 30 15:03:52 well, not on JB Jul 30 15:04:10 i got 3 nexuses and an evo lte Jul 30 15:04:29 1 jb nexus, 1 cdma ics, 1 gsm ics, and an evo 4glte with ics Jul 30 15:10:08 no ideas for anydroid plugin systems ? Jul 30 15:10:41 any build magicians here? Jul 30 15:16:32 ok, so i implemented an async task to deal with this as follows Jul 30 15:16:38 Hi guys, is is possible and if so how can i raise a click sound Jul 30 15:16:48 mikedg: maybe Jul 30 15:16:58 mikedg: what are the verify errors? usually it means that a class isn't present Jul 30 15:16:58 like when you click and normal UI component that has a touch event it makes a sound, i want to reuse that for a custom componenet Jul 30 15:17:05 http://pastie.org/private/qdldior1nwk2vo4oky2hww Jul 30 15:17:33 it gets to line 39, then it seems to choke on line 42, but i receive no exception message as i should on line 723 Jul 30 15:17:35 73* Jul 30 15:18:29 kaneda^: attach the debugger, see what's actually happening? Jul 30 15:18:38 lov, it's attached Jul 30 15:18:49 it spits out the debug messages up to and including line 39 Jul 30 15:19:09 ooooh woa, nvm Jul 30 15:19:17 i left it running and it just now came back with an error message Jul 30 15:20:15 lol, and the error message states the obvious, i'm not connected to the internal network Jul 30 15:27:01 (how) can I have a string resource that contains html (a linke, specifically)? I want to be able to reference the string in the textview's xml Jul 30 15:27:15 *link Jul 30 15:30:06 mbrevda: put the html in the string Jul 30 15:31:42 awesome - although its not clickable. Do I need implement that manually? Jul 30 15:32:07 it's Jul 30 15:32:15 need to Jul 30 15:32:55 mbrevda: tv.setMovementMethod(LinkMovementMethod.getInstance()); Jul 30 15:33:32 wongk: so no way to keep that in xml only? Jul 30 15:35:08 no Jul 30 15:38:26 Sure there is Jul 30 15:38:57 http://developer.android.com/reference/android/widget/TextView.html#attr_android:autoLink Jul 30 15:39:05 I've added my external JAR file in the build path, and eclipse behaves properly with class calls yet the app running will not find any of its classes. any generic step solution? Jul 30 15:39:38 SO failed me Jul 30 15:39:55 or i didn't look hard enough to find the best answer :P Jul 30 15:40:05 xertoz: How did you add the JAR files? Basicly you should put the jar files in /libs then "Add JARS..." Jul 30 15:40:18 Not "Add External JARS..." Jul 30 15:40:45 Drager: yeah I know but it's being continously built at this time so I'd like it to grab a copy off of a different location. but it still does not help to add the JAR file to the libs folder Jul 30 15:40:46 Basically you should put the jar in libs/ Jul 30 15:40:51 Then.. that's it Jul 30 15:41:05 :) Jul 30 15:41:14 Or, if that's not possible, remember to export it when you add it manually Jul 30 15:42:07 still can't find the classes when added to libs/ Jul 30 15:42:58 clean and rebuild Jul 30 15:43:04 did multiple times Jul 30 15:43:14 that's all that's necessary Jul 30 15:43:47 When you put jars in libs/, you don't add it to build path or anything.. ADT does that for you Jul 30 15:43:54 If you manually did it, you probably messed something up Jul 30 15:44:03 with tab navigation using ActionBar.Tab, to show a notification or something in the tab i have to use setCustomView right ? Jul 30 15:47:20 is there any way to validate that the JAR file itself is proper? Jul 30 15:47:56 the fact that it builds is validation Jul 30 15:49:07 Did you restart eclipse? Jul 30 15:49:12 xertoz: proper in what way? Jul 30 15:49:14 Did you for some reason name the folder 'lib' instead? Jul 30 15:49:38 SimonVT: no, all 8 other libraries are working :p Jul 30 15:51:07 what is a policy mgr violation i though audio didnt need it Jul 30 15:51:31 except to record Jul 30 15:51:32 if I include the library's source as a source rather than the JAR file it compiles perfectly Jul 30 15:52:03 i thought it compiled with the jar? Jul 30 15:52:09 hokay, SimonVT, thanks for the advice, i took it one step further and made a downloader asynctask that i extend to a private inner class in each activity that then has it's own onPostExecute method for dealing with the JSON in a specific manner Jul 30 15:52:33 very elegant :) Jul 30 15:52:35 xertoz: that means ur not using the constructor right :/ Jul 30 15:52:54 droidbuster: eh? Jul 30 15:54:05 jar has one entry point of being instanciated and u need to pass the right params to the constructor.... in lib form u call a single class Jul 30 15:54:44 Hi, i'm working on my onDraw(). When it's called, I get a canvas on which I want to draw only on transparency, creating a "behind" effect. How? Jul 30 15:55:51 single classes have different params less complicated than a super class Jul 30 15:56:43 droidbuster: seems to me you're a bit wandering in the woods Jul 30 15:56:51 Not making a lot of sense Jul 30 15:57:30 Try completely removing any reference to the jar, xertoz Jul 30 15:57:35 Restart eclipse, put the jar in libs Jul 30 15:58:00 I bet an ant build would work fine, and it's just some strange eclipse thing Jul 30 15:58:24 xertoz: explain why ur app works like a charm when the sources are there and not when the jar is there Jul 30 15:59:09 droidbuster: I've no clue, that's my problem: the classes not being found when running the app with it as a JAR library (building it works fine) Jul 30 15:59:23 kaneda^: I'd really recommend that you use a service; if the user leaves the activity, will you handle things properly?\ Jul 30 16:00:02 lov, if the user leaves the activity onCreate it will be called again Jul 30 16:00:07 which is ideal Jul 30 16:00:17 joel135: not quite sure what you mean. You can just not clear the canvas. Bear in mind that the frameworks may give you a blank canvas, instead of saving what you had. You might need your top level view to cache what's been drawn to a bitmap, and then draw that first thing before calling the onDraw for users Jul 30 16:00:22 it will recall the connection assumin the asynctask isnt still running Jul 30 16:00:28 which is good Jul 30 16:00:38 i'll have a local store of some sort letting it knwo when to invoke the asynctask Jul 30 16:00:45 xertoz: then id build that way personally the compiler wil toss all unused classes and opt it Jul 30 16:00:48 and a second task that's responsible for probing for versioning from the server only Jul 30 16:01:40 SimonVT: I can't get it to do that anyhow. I sincerely suspect a faulty JAR file Jul 30 16:01:50 Rebuild it then Jul 30 16:02:33 have done multiple times (netbeans) and imported it in different builds to ensure installation of them (eclipse) - nothing seems to do Jul 30 16:04:38 eh, I don't know Jul 30 16:04:44 Blame eclipse Jul 30 16:06:05 lol Jul 30 16:11:17 Say users download version 1 of my app, and then I release version 1.5. How do I require users to upgrade when they launch the app? Jul 30 16:18:34 Hey Guys, I've somehow messed up my listview, now its truncating entries when I use the convertView http://imgur.com/ww9dM Jul 30 16:18:34 hip2p: you don't Jul 30 16:18:49 There is no stacktrace :( Jul 30 16:19:22 hemanshu: pastebin your source for getView, please Jul 30 16:23:23 hi all Jul 30 16:23:31 evancharlton i like how we have to say "pastebin" rather than just "paste" Jul 30 16:23:42 i'm having a problem with LayerDrawable Jul 30 16:24:03 canadiancow|work: yeah, gotta verb it Jul 30 16:24:07 is it possible to setBounds() for a single layer without affecting other layers? Jul 30 16:25:04 otherwise they will actually just paste it in here :) Jul 30 16:25:11 evancharlton: http://pastebin.com/Vnw3Ex7p Jul 30 16:25:32 k no Jul 30 16:25:34 dont return null Jul 30 16:25:37 thats just not going to work Jul 30 16:26:10 yeah, what is that all about? Jul 30 16:26:19 why would getItem(position) ever return null? Jul 30 16:27:06 hmm.. it never should Jul 30 16:28:36 but I doubt that code ever returns null Jul 30 16:29:06 hey ive got an app that i can control by sms, but testing it is getting costly, anyone think of a simple way i can broadcast an event to my app and then just link that up to the code i use to decode the "instructions" ? Jul 30 16:33:24 yes gaz`, listen for com.your.app.CRAZY_INTENT Jul 30 16:33:28 and treat it the same way as an sms Jul 30 16:33:40 or you can probably even broadcast an sms intent through adb Jul 30 16:33:44 you pay for SMS? Jul 30 16:33:52 aha good idea Jul 30 16:33:54 yeh Jul 30 16:33:55 individually Jul 30 16:33:59 yep Jul 30 16:34:03 ouch Jul 30 16:37:45 people still do that? Jul 30 16:38:02 I'm trying to implement internet connection checks. Do I basically wrap an entire activity in an "if connection, then" statement? Jul 30 16:38:52 Hi, I am trying to identify the sd card path on the Droid2 what would be the best way to do so (without having the phone) Jul 30 16:38:55 wherever you access the network Jul 30 16:39:15 evancharlton: yeah, because they don't pay upfront for SMS 'packages' when they normally only send/receive a few per month Jul 30 16:40:13 aeos: why is that information important? Jul 30 16:43:08 wongk: my application uses a poc sdcard implementation and it won't work without the path to the sdcard. Jul 30 16:43:29 there's an API for that Jul 30 16:44:28 http://developer.android.com/reference/android/os/Environment.html Jul 30 16:45:11 naw that doesnt always work unfortunately. Jul 30 16:45:21 since the phone can have interal storage Jul 30 16:45:37 ...? Jul 30 16:45:53 Even if it's no an sd card, it's still external storage Jul 30 16:53:50 ... I believe we had this discussion before, and I ended up pasting an example shell script to find paths for specific storage devices Jul 30 16:54:54 you'd have to run some heuristic on a list of mount points Jul 30 16:55:09 which would be brittle at best Jul 30 16:56:21 i dont even know if there's a way to get the list of mount points that will work on all devices Jul 30 16:56:27 wongk: not really, as long as the device has proper /dev/ tree Jul 30 16:56:48 fun fact: Audible does this Jul 30 16:56:55 another fun fact: Audible is, indeed, brittle Jul 30 16:57:22 the cries of "WHY CAN'T I STICK MY AUDIOBOOKS ON EXTERNAL STORAGE :(" were overwhelming. Jul 30 16:57:28 can is there a command to tell you where a particalu /dev is mounts? Jul 30 16:57:33 But thanks, OEMs, for continuing to foist this horseshit on us Jul 30 16:57:36 er Jul 30 16:57:38 wongk: yes, it's called 'mount' Jul 30 16:57:40 wongk: parse the output of 'mount' Jul 30 16:57:52 lov wait waht? Jul 30 16:57:57 wongk: as for specific devices - if you have /dev/disk/ tree... you're golden Jul 30 16:58:06 canadiancow|work: it is true! Jul 30 16:58:23 canadiancow|work: Audible inspects all of the storage points on a device, and tries to find the largest one with an "Audible" directory. Jul 30 16:58:37 lov: ... that's hilariously horrible Jul 30 16:58:42 oh yes. Jul 30 16:58:43 so if you just make an Audible directory... ? Jul 30 16:58:49 yes. Jul 30 16:59:06 * p_l|home headdesks Jul 30 16:59:07 the point of this is that people have devices with 16GB partitions that the OEM hasn't exposed in the frameworks, whatsoever Jul 30 16:59:23 oh Jul 30 16:59:26 fuck the OEM Jul 30 16:59:26 "Why can't I use this? Why why why why why! YOUR APP SUCKS!" Jul 30 16:59:42 so write it better lov Jul 30 16:59:43 "Other app lets me do this! Why can't you hire people who can program?" Jul 30 16:59:45 i mean come on Jul 30 16:59:48 LOL Jul 30 16:59:49 THAT ONE Jul 30 16:59:50 I SWEAR Jul 30 16:59:51 canadiancow|work: ok, what would you suggest I do? Jul 30 16:59:55 Maybe I should put some small Java library that will provide you a proper list of mounts Jul 30 16:59:58 i was joking :P Jul 30 17:00:02 those comments are the worst Jul 30 17:00:09 WHY CAN'T YOU HIRE DEVELOPERS WHO DON'T SUCK Jul 30 17:00:30 We search for all of the writable storage points, and order them by size. The first one with an Audible folder wins. If none have that, Environment.getExternalStorage wins. If that's not present/mounted, the largest mount point wins Jul 30 17:01:03 there's an almost but not fully finished setting in the app to let you transfer your Audible folder. Jul 30 17:01:12 Surprise, we decided at the last minute to start working on something else and not finish that. Jul 30 17:01:25 like 90% of our other features Jul 30 17:01:31 Jul 30 17:01:37 its amazing how many unfinished features you can find in apps if you take them apart Jul 30 17:01:46 you could load a vector map in google maps for like a year before it was actually released Jul 30 17:01:54 if you just added an activity to the manifest Jul 30 17:03:34 what's the most efficient way to handle internet connection checks? Is it simply a matter of putting an "if connection then, if not else" checks before every method that needs a connection? Jul 30 17:03:53 maybe they should have hired me, so i could finish these features :P Jul 30 17:04:46 hip2p: probably. Jul 30 17:05:20 wongk, I have multiple methods such as onCreate, onStart, and onResume... I'm guessing I have to set up the if then connection check in all 3 Jul 30 17:05:23 lov ok Jul 30 17:05:31 yeeee my application is online! Jul 30 17:05:34 hip2p: just stick it into a method and check that method. Jul 30 17:05:45 hip2p: are you accessing the network directly in your activity? Jul 30 17:05:48 i'm sure that is forbidden to link my application here, right? Jul 30 17:05:50 http://developer.android.com/reference/android/net/ConnectivityManager.html ? Jul 30 17:05:59 wongk yes I access the network frequently throughout my app Jul 30 17:06:14 pretty much mp app's entire experience is via the network Jul 30 17:06:14 hip2p: are you doing it on the main thread? Jul 30 17:06:20 yea Jul 30 17:06:23 canadiancow|work: maps got mixed up in repo? ;P Jul 30 17:06:25 so you have 2 problems Jul 30 17:06:29 so idgaf Jul 30 17:06:30 https://play.google.com/store/apps/details?id=com.fripsy.cryptobancomat Jul 30 17:06:54 1 star spams ads Jul 30 17:07:09 1. if your target SDK were setp properly, your app wouldn't run in 3.0+, and 2. you could probably use more structure to your code Jul 30 17:08:01 wat Jul 30 17:08:07 :D Jul 30 17:08:12 13:05:57 < UnholySpirit> i'm sure that is forbidden to link my application here, right? Jul 30 17:08:15 13:06:37 < UnholySpirit> so idgaf Jul 30 17:08:15 13:06:38 < UnholySpirit> https://play.google.com/store/apps/details?id=com.fripsy.cryptobancomat Jul 30 17:08:18 go go lov :) Jul 30 17:08:24 hey, does anyone happen to know if JSONArray.getJSONObject is an O(1) operation? Jul 30 17:08:38 wongk, hmm Jul 30 17:09:03 "No database or Internet connections is required" Jul 30 17:09:10 "FULL INTERNET ACCESS" permission Jul 30 17:09:20 haha I noticed that Jul 30 17:09:24 strategy question: So things don't quite work out with mobile web development (technical issues, unresolved bugs in google bug tracker for years, general "what the hell is going on with oracle vs google java lawsuit" fear of killing android etc) Jul 30 17:09:34 what should I do? Jul 30 17:09:39 wongk would you recommend not doing connection checks on the main thread? Jul 30 17:09:54 the domain is in cross domain advertising so an app is out of the quesiton Jul 30 17:09:54 or not using the network at least Jul 30 17:09:57 you should not access the network on the main thread Jul 30 17:10:02 ok Jul 30 17:10:10 it will through an exception in api level 11+ Jul 30 17:10:14 throw* Jul 30 17:10:17 heh Jul 30 17:10:20 what he said Jul 30 17:11:06 so what I should do then is instead of using the main thread as my "home page" for my app, I should use the main thread to redirect to a different activity? Jul 30 17:11:33 im not sure how that solves the issue we're discussing Jul 30 17:11:36 what? Jul 30 17:11:43 do you know what a thread is? Jul 30 17:11:48 I guess not Jul 30 17:11:49 or let me rephrase that: you need to learn Jul 30 17:11:52 I thought it was the main activity Jul 30 17:12:00 yea i figured as much :) Jul 30 17:12:13 canadiancow i dunno what this permission talk was about but maybe the *actual* functionality doesen't require it. Jul 30 17:12:17 itz just for adz. Jul 30 17:12:22 a thread is a basic component of fabric used in the textile industry Jul 30 17:12:33 hah Jul 30 17:12:54 lov: idgaf? :D Jul 30 17:13:01 maybe I'm not making connections on the main thread then... Jul 30 17:13:06 spobat: scroll up Jul 30 17:13:09 you are Jul 30 17:13:10 dogarrhea2: cry Jul 30 17:13:18 okay, okay, I will! Jul 30 17:13:23 go google about threading and AsyncTask Jul 30 17:13:41 spobat: in particular, look at what UnholyWhatever actually said Jul 30 17:13:59 wongk ahh yea I was using AsyncTask originally in my main activity. But then I realized that I can just put that network task into a separate class and not have to use asynctask Jul 30 17:14:02 hip2p you are not allowed to do any network comm on the main thread Jul 30 17:14:06 you need to learn what a thread is :( Jul 30 17:14:12 ok Jul 30 17:14:13 ^^ Jul 30 17:14:20 please learn what a thread is, and what multithreading is. Jul 30 17:15:30 learn how to implement a mutex and semaphore in hardware and software while you're at it Jul 30 17:17:17 a hardware mutex Jul 30 17:20:16 dogarrhea2: be nice Jul 30 17:20:39 er. these concepts are fundamental Jul 30 17:20:53 can't have threads without a mutex. Jul 30 17:21:02 since someone mentioend "go learn what a thread is" Jul 30 17:21:05 well, that's fair Jul 30 17:21:15 not sure why you're suggesting he learn how to implement it via hardware though Jul 30 17:21:24 frankly, learning what it IS is a good starting point Jul 30 17:21:40 and at the java layer, there's really only a software mutex Jul 30 17:21:50 most networking tasks can be accomplished w/o a mutex Jul 30 17:22:03 does NotificationManager.addProximityAlert require a LocationListener via NotificationManager.requestLocationUpdates? Jul 30 17:22:38 codegasm_: I don't think so, but if you don't, say, request GPS updates you may never get your alert because the location information might be wrong enough. Jul 30 17:23:43 the proximity alerts are in a service, I use a MyLocationOverlay in another part of the app so I can see that the current set location is within range, but I'm still not getting any proximity alerts Jul 30 17:26:04 wongk, I just read through Google's thread article. I don't think I'm actually accessing the network on the main thread for these reasons: 1. the app actually works 2. all connections made to the network are done in a separate java class. Within the main activity, I simply have buttons that call methods within that class. Jul 30 17:26:22 you are incorrect Jul 30 17:26:30 what cersion of andorid are you running on? Jul 30 17:26:32 version Jul 30 17:26:36 Unless you are calling the network methods from a Thread or an AsyncTask, you are doing it on the main thread Jul 30 17:26:36 seperate java class != separate thread Jul 30 17:26:43 hip2p what you just described is the opposite of what you said Jul 30 17:26:47 you are absolutely doing it on the main thread Jul 30 17:26:53 ok Jul 30 17:27:05 Networking is slow Jul 30 17:27:07 wongk, I'm not entirely sure which version. the phone I'm testing the app on has the latest version as far as I know Jul 30 17:27:16 O.o Jul 30 17:27:23 hehe Jul 30 17:27:32 you're a developer and you don't even know what version you're running Jul 30 17:27:40 If it blocks the main thread for >5 seconds, the user is going to get an application not responding dialog Jul 30 17:27:49 wongk I began making apps 3 weeks ago, so I'm new to this environment Jul 30 17:28:05 go to Settings => About Phone Jul 30 17:28:14 If the user gets that, they're gonna hate your app Jul 30 17:28:21 fuc kthat Jul 30 17:28:26 its not 5 seconds Jul 30 17:28:29 i thought it was like 3 Jul 30 17:28:29 or 1 Jul 30 17:28:32 didnt they reduce it? Jul 30 17:28:43 My Android version is 4.0.4 Jul 30 17:28:44 not that i'm aware of Jul 30 17:28:53 hip2p: that means your target SDK is wrong Jul 30 17:29:05 :D Jul 30 17:29:12 and is equal to your min SDK Jul 30 17:29:16 my manifest has min SDK version of 8 Jul 30 17:29:19 hello, i do not like the xml layout approach and i would like to use the regular java approach when crating layouts, however menuinflater's inflate forces me to use xml, am i right? can i avoid this? Jul 30 17:29:34 so target defaults to 8, then Jul 30 17:29:38 unless you specify it Jul 30 17:29:47 change it to 16 and run your app Jul 30 17:29:50 targetSdkVersion="15" Jul 30 17:29:51 ok Jul 30 17:29:52 or 16 Jul 30 17:29:54 i like 16 Jul 30 17:29:56 arg, this is most annoying, i am trying to get a EditText without the IMM, because I have my own local IMM on-screen. So the edit text can either return false from onCheckIsTextEditor() or set its InputType to InputType.TYPE_NULL.. this is great now the IMM doesnt display, but also now the blinking text cursor is missing Jul 30 17:29:57 :( Jul 30 17:29:57 checking now Jul 30 17:30:02 loin: I'd very strongly recommend that you use the xml layouts Jul 30 17:30:11 What lov said Jul 30 17:30:14 loin: it seems "easier" to do things manually, except for when it's not Jul 30 17:30:22 for example, you can have res/layout-land vs res/layout-port Jul 30 17:30:34 so you can have different resources for landscape vs portrait Jul 30 17:30:39 w/ absolutely no work required in your code Jul 30 17:30:48 lov, i strongly dislike the xml approach :) Jul 30 17:30:57 res/layout-v10 vs res/layout/v14 for 2.3.3 and 4.0 specific layouts Jul 30 17:30:57 because you're not used to it? Jul 30 17:31:03 or for a better reason Jul 30 17:31:13 loin: you CAN do everything via java. I just very, very strongly recommend that you not do it. Jul 30 17:31:18 yea Jul 30 17:31:19 dont do java Jul 30 17:31:21 the end Jul 30 17:31:27 you also can't use MenuInflator Jul 30 17:31:27 * canadiancow|work runs out for a drink Jul 30 17:31:30 since you're not really inflating anything Jul 30 17:31:32 lov, how can i use inflate without a xml menu resource? Jul 30 17:31:36 you can't. Jul 30 17:31:38 you don't inflate. Jul 30 17:31:39 loin: if you're not using xml, you don't need menuinflater.. Just call the methods on menu manually Jul 30 17:31:46 you have to call every menu method manually. Jul 30 17:31:46 *inflater is for xml Jul 30 17:32:08 i see Jul 30 17:32:24 But, as mentioned, use xml.. Once you need to differentiate between 4, 5, 6 configurations, java is not the way to go Jul 30 17:32:45 the resource system has a lot of niceities built in Jul 30 17:32:49 thank you for your very interesting point of view Jul 30 17:33:05 for selecting based on platform, screen density, size, etc... Jul 30 17:33:11 I set min sdk from 8 to 16, and now nothing happens when I run the app in Eclipse. Was that expected? Jul 30 17:33:21 an exception happens Jul 30 17:33:51 specifically NetworkOnMainThreadException Jul 30 17:34:18 ah no I get an error that device is on 4.0.4 or version 15 Jul 30 17:34:18 Don't set minsdkversion to 16, set targetsdkversion to 16 Jul 30 17:34:32 oh Jul 30 17:34:37 i didn't even notive he said min :P Jul 30 17:35:15 so set this: Jul 30 17:35:46 Jul 30 17:35:58 ok thanks Jul 30 17:36:55 ok yea Caused by: android.os.NetworkOnMainThreadException Jul 30 17:43:02 so, every time I access the network, I should create an AsyncTask method Jul 30 17:43:22 Or a Thread, yes Jul 30 17:43:35 ok Jul 30 17:44:40 and you should no enough about both to be able to decide which to use Jul 30 17:46:19 can I expect my proximity alert to fire if I am already in range when I add it? Jul 30 17:47:06 wongk from what I'm reading, AsyncTask doesn't actually create a new thread Jul 30 17:47:37 whereas creating a new thread obviously does Jul 30 17:47:46 it does Jul 30 17:49:36 Malicious I've installed this app, and after the first reboot, I have found two unexpected additional shortcuts on my home screen, which do nothing else than to link you to a site that wants to sell you other apps. It's called handango. I've removed the shortcuts, but two and about three hours later, two notifications appeared in the top bar that as well linked to handango, when pressed. Jul 30 17:49:36 I've deactivated Yonder, rebooted, and so far nothing appeared again. Now, do I like to have cr@p installed on my phone without knowing and without control to remove it? Do I fcuk! App deleted. Jul 30 17:49:37 AsyncTask does create a new thread Jul 30 17:49:49 T.T why on earth is that guy rating my app like that :( Jul 30 17:50:13 using ActionBar.Tab is there a quick way to set a notification number or something? Jul 30 17:50:41 hip2p: AsyncTask creates a new thread. doInBackground executes in this new thread, while the other callback methods are performed on the UI thread. Jul 30 17:51:01 hip2p: AsyncTask is just a convenience class for creating a new thread and sending events to handlers. There's nothing magical about it. Jul 30 17:51:31 lov: doesn't create a new thread Jul 30 17:51:38 funktronic: er... Jul 30 17:51:48 lov thanks for the explanation Jul 30 17:51:55 it schedules the future to run on a threadpool, or in newer api levels on a custom executor Jul 30 17:52:31 * lov groans Jul 30 17:52:32 those details aren't relevant, threads ar einvolved :P Jul 30 17:52:33 yes, this is true. Jul 30 17:52:42 it uses a threadpool instead of creating a new thread every time. Jul 30 17:52:51 it is also arguing technicalities Jul 30 17:53:40 it's a very fine tuned and well written convenience class, but it's still a convenience class that involves providing a background thread for you to do your heavy execution on. Jul 30 17:55:52 does anyone know if I can set bounds on one layer of a LayerDrawable? Jul 30 17:56:05 right now doing that appears to affect all the other layers as well... Jul 30 17:58:26 DeadPool! Jul 30 18:02:15 anyone got any tips for debugging a bug that causes the phone to reboot? Jul 30 18:03:17 zambo: hard liquor Jul 30 18:03:36 just pour i on your phone, problem solved! Jul 30 18:03:37 http://www.androidpolice.com/2012/07/30/multiple-user-accounts-are-coming-miles-of-code-is-already-in-aosp-and-some-of-it-is-quietly-working-on-devices-right-now/ Jul 30 18:03:38 interesting Jul 30 18:04:04 nice Jul 30 18:04:12 people have been wanting that for tablets Jul 30 18:04:21 yea Jul 30 18:04:25 I could drink until I forget about the bug I guess Jul 30 18:04:25 it looks like a lot of the support is in JB Jul 30 18:04:30 it definitely doesn't happen all the time Jul 30 18:04:55 "You can't see it, but there is multi user support in there somewhere." Jul 30 18:05:00 Haha that picture Jul 30 18:07:28 canadiancow|work: Wonder how many apps will need reworking cus they hardcode paths :p Jul 30 18:07:39 did you read the article? Jul 30 18:07:41 it's all symlinked Jul 30 18:07:43 oh Jul 30 18:07:47 but for a secondary user Jul 30 18:07:58 well then those devs should like...lern2proram Jul 30 18:08:00 progam* Jul 30 18:09:07 Ah, ofc Jul 30 18:09:13 Can just symlink to the current users directory Jul 30 18:09:27 that could work i suppose Jul 30 18:09:36 well Jul 30 18:09:42 im not even sure of any of this Jul 30 18:09:50 if you're hardcoding /data/data/whatever, you're already fucked Jul 30 18:09:52 so just...gfy Jul 30 18:09:53 arg, this is infuriating, i cant find where the blinking cursor is disabled, looks like it should be in android.widget.Editor, but still cant find where its being disabled Jul 30 18:10:12 Some apps are going to break in weird ways still tho I bet Jul 30 18:10:25 Like if they cache on sd, but at the root Jul 30 18:10:39 Probably not split by user, can get wrong responses Jul 30 18:10:47 yeah Jul 30 18:11:15 fuck apps that put shit in the root Jul 30 18:11:16 fuck them to hell Jul 30 18:11:23 i 1star apps that do that Jul 30 18:12:07 astro, kayak, thinkfree, alarmclockxtreme, cardiotrainer, clockworkmod, kindle, soundhound (i uninstalled that...), whatsapp Jul 30 18:12:36 Audible :> Jul 30 18:12:41 JesusFreke: ping Jul 30 18:12:50 pong. Jul 30 18:12:53 lov, i dont have audible Jul 30 18:12:57 but if i did, i'd give it 1star Jul 30 18:12:58 :) Jul 30 18:13:01 thanks Jul 30 18:13:04 I would too at this point Jul 30 18:13:06 :D Jul 30 18:13:26 Computer\Galaxy Nexus\Internal storage\Android\data\com.zynga.scramble <-- :) Jul 30 18:16:55 haha Jul 30 18:17:03 "1 star - is a hell to maintain" Jul 30 18:17:46 emm.. where can I post my source? Jul 30 18:18:38 when i used audbile most recently, i found it to be much less broken that it was previously Jul 30 18:18:44 anyone know if there's a way to modify the font size for certain pieces of text within a listview? Jul 30 18:18:58 i want to have a sort of "subheading" for each item that is smaller than the rest of the text Jul 30 18:18:59 it used to just stop playing, or start a chapter over at will Jul 30 18:19:36 CQN: what adapter are you using with your listview? Jul 30 18:21:37 each list view row can have multiple TextViews, for example Jul 30 18:21:48 so yes, that's perfectly possible Jul 30 18:22:15 CQN how did you realize the "heading"? Jul 30 18:28:39 07-30 21:27:49.889: E/AndroidRuntime(13584): java.lang.NoClassDefFoundError: p1.p2.p3.PwsImplService Jul 30 18:28:41 what is that? Jul 30 18:29:01 not part of android Jul 30 18:29:13 it's android related Jul 30 18:29:32 loin: are you using any additional libraries in your project? Jul 30 18:29:36 yes napalm Jul 30 18:29:42 then look in those Jul 30 18:29:44 pws impl service is inside a jar Jul 30 18:29:48 attached to the source Jul 30 18:29:58 well there you go Jul 30 18:30:06 Napalm, where's the problem? Jul 30 18:30:08 all 3rd party jars go in 'libs' Jul 30 18:30:11 lol Jul 30 18:30:25 it is in libs Jul 30 18:30:26 loin: the problem is in their library Jul 30 18:30:29 How do you use the menus to go to the next screen? Jul 30 18:30:35 Cant find much info on that Jul 30 18:30:51 Drager: menus? which menus Jul 30 18:31:00 put the code to launch a new activity in your menu handler Jul 30 18:31:04 Drager: what version of android are you developing for? Jul 30 18:31:06 wongk: Done that Jul 30 18:31:08 Napalm: 2.3.3 Jul 30 18:31:17 so what's the problem Jul 30 18:31:19 wongk: but I need something to handle it Jul 30 18:31:30 wongk, do i need to declare the referenced jars anywhere? Jul 30 18:31:31 so when pressing a menu go to the new screen Jul 30 18:31:32 is there a setting on linkedin to say "im not intersted in hearing about other jobs" Jul 30 18:31:33 handle what Jul 30 18:31:36 loin: no Jul 30 18:31:36 so implement onOptionsItemSelected() in your activity and call startActivity(); Jul 30 18:31:43 wong, then why won't it work? Jul 30 18:31:52 loin: couldn't tell you Jul 30 18:32:07 Drager: [14:31] put the code to launch a new activity in your menu handler Jul 30 18:32:21 Napalm: I have a onOptionsItemSelected(MenuItem item) then a switch Jul 30 18:32:46 Drager: pastebin your switch Jul 30 18:33:19 loin: pastebin your entire stacktrace from your error log Jul 30 18:33:27 Napalm: https://pastee.org/fw8sb Jul 30 18:34:02 Drager: well that was useless, what do you do in menu_about().. pastebin that Jul 30 18:34:07 Napalm: For now menu_about() only contains txt Jul 30 18:34:16 as in? Jul 30 18:34:27 so write the code to launch a new screen Jul 30 18:34:33 TextView txt = (TextView) findViewById(R.id.textview); txt.setText("About"); Jul 30 18:34:33 what's the problem? Jul 30 18:34:43 wongk: that code Jul 30 18:34:48 where are you stuck? Jul 30 18:34:59 wongk, I had an activity with a separate java class file with user methods. When the activity called one such as "if(userFunctions.getAnswer(context))" the method getAnswer() would return a String. Within getAnswer() in the separate class file, it would connect to the network. I'm now setting the method up as an AsyncTask. However, AsyncTask doesn't necessarily return a String in its Jul 30 18:34:59 onPostExecute method. Does it still make sense for me to use AsyncTask to accomplish this? Jul 30 18:35:03 drager: ok, well i have no idea why you are doing that, but surely you want to call startActivity to go to another screen Jul 30 18:35:16 or display a dialog Jul 30 18:35:36 Napalm: Ye, I dont rly know howto do it. Jul 30 18:35:37 Napalm, wongk http://paste.ubuntu.com/1119992/ Jul 30 18:35:41 wongk: On the beginning Jul 30 18:35:59 Or something like this? i.setClassName("com.screenssample", "com.screenssample.screen1"); startActivity(i); Jul 30 18:35:59 hip2p: i have bad news, asynchronous network operations aren Jul 30 18:36:05 t "easy" Jul 30 18:36:13 hip2p: you can make AsyncTask return a String or just do a private class that holds your data object called "Answer" or something Jul 30 18:36:14 hahaha Jul 30 18:36:22 asynchronous anything isn't easy Jul 30 18:36:45 hip2p: the way you think about logic flow, with one thing blocking another, forget it Jul 30 18:36:57 Napalm, thanks Jul 30 18:36:59 wongk, ok Jul 30 18:37:05 you start a request, return to the event loop, and when it's done you handle it Jul 30 18:37:23 Drager: startActivity(new Intent(this, YourOtherActivity.class)); Jul 30 18:38:14 Napalm: Thanks alot. Works fine! Jul 30 18:38:29 hip2p: think callbacks (listeners) or Handler Jul 30 18:38:45 loin: your getting the error because your .jar lib has not been compiled into your application Jul 30 18:39:08 Napalm, well, as i asked before, do i need to declare it anywhere? Jul 30 18:39:11 which should be done automagically Jul 30 18:39:32 wongk so you'd recommend doing a Handler as opposed to AsyncTask for what the task I described Jul 30 18:39:38 loin: what are you using to develop? Eclipse? Jul 30 18:39:40 loin: http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project Jul 30 18:39:41 for the task I described* Jul 30 18:39:46 hip2p: both Jul 30 18:39:50 p_l|home, of course Jul 30 18:40:00 hip2p: i actually prefer listeners Jul 30 18:40:09 hip2p: whats the problem with using an AsyncTask? Jul 30 18:40:13 they're more object oriented Jul 30 18:40:16 Napalm: i'm using ArrayAdapter Jul 30 18:40:38 Napalm no problem per se, I'm just trying to change onPostExecute from void to String so I can return a string Jul 30 18:40:53 spobat: i have two ListIterators of equal size, one with the headings and one with the subheadings Jul 30 18:41:02 hip2p: you're thinking about it wrong still Jul 30 18:41:10 Napalm, i know how to add external libraries to a project :) Jul 30 18:41:11 CQN: thats your problem there, ArrayAdapter is not designed to handle multiple view types. You can however hack it in, but its just easier to created your own Adapter that extends BaseAdapter Jul 30 18:41:12 onPostExecute doens't return anything Jul 30 18:41:20 Napalm, at least, for regular java projects Jul 30 18:41:28 loin: check in project's properties, java build path, and make sure the jars are "exported" into the project Jul 30 18:41:59 hip2p: thats straight forward, just do: private class MyTask extends AsyncTask { Jul 30 18:42:02 Napalm: with a custom adapter, can you also do stuff like include images in the list? Jul 30 18:42:23 hip2p: AsyncTask uses Jul 30 18:42:32 loin: you'll need to export the lib as part of your build in eclipse. Jul 30 18:42:40 Napalm right Jul 30 18:42:44 see Napalm's link Jul 30 18:42:55 Napalm: you know that changes the argument type for onPostExecute and not the return tpe, right? Jul 30 18:43:21 CQN: correct Jul 30 18:43:24 I'm getting this error: The return type is incompatible with AsyncTask.onPostExecute(String) Jul 30 18:43:48 hip2p: change the return type back to void Jul 30 18:43:55 ok Jul 30 18:44:01 lov, http://i.imm.io/yB1Q.png Jul 30 18:44:02 Napalm: ok, thanks a lot for your help! Jul 30 18:44:05 wongk: yes, that's what he asked for Jul 30 18:44:13 p_l|home, http://i.imm.io/yB1Q.png Jul 30 18:44:16 no, he wants to change the return type Jul 30 18:44:31 I would idealy like to return a String from the AsyncTask Jul 30 18:44:44 hip2p: onPostExecute(String... result){ // first result is result[0] Jul 30 18:44:52 hip2p: now think about this: what code do i have to add to to onPostExecute so that my activity can do what it needs with the response data Jul 30 18:44:54 right Jul 30 18:45:56 hip2p: can you pastebin your AsyncTask class declaration Jul 30 18:46:51 anyone here worked with WebView.enablePlatformNotifications() ? Jul 30 18:46:57 it doesn't matter what his code looks like when he's thinking about the process incorrectly Jul 30 18:47:05 it's deprecated, but doesnt say what version it was deprecated in Jul 30 18:47:14 lov, p_l|home, does it look good? Jul 30 18:47:38 wongk, Napalm, I have to leave, but I'll be back later. I'll keep reading about AsyncTask to figure out what to do Jul 30 18:47:40 thanks Jul 30 18:47:42 loin: looks good to me, but I don't really use Eclipse Jul 30 18:49:52 Napalm, any ideas why the jars are not exported? Jul 30 18:50:48 i'm having trouble with a concept: i have this JSON, it points me to an image i want to download and display as well as some text to display. I create the imageview, the textview, attach it to a layout, etc, but downloading the bitmap itself must happen outside of the thread Jul 30 18:50:58 how can i keep track of the imageview taht the bitmap is to be attached to? Jul 30 18:51:13 or should i just pass the entire JSON to a new thread and do all the work there? Jul 30 18:51:50 kaneda^: keep a reference to it in your activity Jul 30 18:52:04 but i can never know how many imageviews will be needed Jul 30 18:52:12 they need to be programmatically generated based on the JSON return Jul 30 18:52:14 or perhaps even on a listener class Jul 30 18:52:24 that i could do Jul 30 18:52:29 but that seems a lot of work Jul 30 18:52:50 when i could just pass the JSON from postexecute of one thread to the execute of another Jul 30 18:54:19 how does that help you with the reference to your image vieW? Jul 30 18:54:40 i would then create the image view in the secondary thread instead of in the post execute of the first Jul 30 18:54:50 since it's created with data from the JSON Jul 30 18:54:57 i just hold off a step Jul 30 18:55:00 that seems logical Jul 30 18:55:13 that way no references, no listener Jul 30 18:55:15 hey all Jul 30 18:55:36 well, you still need some way to handle it in the activity Jul 30 18:55:54 is anyone able to view in-app products in th dev console? Jul 30 18:55:58 mine just sits there spinning indefinitely Jul 30 18:56:01 wongk the postexecute of both of these will be overridden in special inner classes of the activity Jul 30 18:56:07 with the bulk of the work accomplished in the parent class Jul 30 18:56:12 i see Jul 30 18:56:27 loin: yeah, probably. Give it a shot and see what happens. Jul 30 18:56:30 taht way i can download bitmaps over and over again with the same parent, and override the postexecute to determine what to DO with it after Jul 30 18:56:55 becareful if the user leaves your activity while AsyncTask is working Jul 30 18:57:05 could lead to bad things Jul 30 18:57:09 lov, it was what i mentioned earlier Jul 30 18:57:12 or changes the orientation Jul 30 18:57:15 even worse Jul 30 18:58:33 orietation change is a nightmare ugh Jul 30 18:58:40 it really is Jul 30 18:58:46 n't Jul 30 18:58:50 :p Jul 30 18:58:55 hehe Jul 30 18:58:57 i hate hate hate them Jul 30 18:59:55 isn't that why you should use a fragment without a UI Jul 30 19:00:18 fragments are also destroyed and recreated on orientation change Jul 30 19:00:32 setRetainInstance(true) Jul 30 19:00:34 Not if they're retained Jul 30 19:01:15 iirc, they'll go through their lifecycle, minus onDestroy and onCreate Jul 30 19:01:24 then you would issues to workout with different layouts based on orientation Jul 30 19:01:43 basically like use configChanges Jul 30 19:01:46 like using Jul 30 19:01:55 onCreateView is still called Jul 30 19:02:01 well, you'd give the fragment a unique tag Jul 30 19:02:09 and find it later Jul 30 19:02:16 wait, what i said doesnt work Jul 30 19:02:21 it would download EACH thumbnail Jul 30 19:02:21 don't put the fragment in the lyout xml Jul 30 19:02:38 i've used that paradigm for dialog fragments Jul 30 19:02:41 add it programmatically if it doesn't exist yet Jul 30 19:02:42 i would need to go through the JSON, get a list of all the thumbs, download them all, then in the post execute of THAT thread do the actually view creation Jul 30 19:02:46 wongk, does that make sense? Jul 30 19:02:49 or is that a waste? Jul 30 19:03:11 how can i make an imageview whose width is fill_parent, but the height is equal to the width? Jul 30 19:03:15 kaneda^, what are u trying to do? Jul 30 19:03:16 kaneda^: sounds like you wouldn't be building the view incrementally when you could Jul 30 19:03:29 wongk, right, exactly Jul 30 19:03:52 so i would stare at an empty for some period of time, and them bam Jul 30 19:03:56 freedomcaller: ImageView.setAdjustViewBounds(true); Jul 30 19:04:06 thanks Jul 30 19:04:13 wongk, yes, and i have my loader up and ready to be dismissed Jul 30 19:04:20 so that's actually AOK with me Jul 30 19:04:30 the question is, is it wasteful to iterate over the JSON twice to do this? Jul 30 19:04:35 but what if my images are not squares? Jul 30 19:04:51 if height = width then they will be Jul 30 19:05:10 no i want the view to be a square, but my images arent Jul 30 19:05:22 just gonna fill em with the center of the image Jul 30 19:05:23 so you want black space? Jul 30 19:05:31 oh Jul 30 19:05:38 use the right scale mode on the image view Jul 30 19:05:55 which is? Jul 30 19:06:17 kaneda^: is your view operating on the JSON? Jul 30 19:06:34 wongk, the JSON describes the current view Jul 30 19:06:56 i'd parse it into something more friendly to program against Jul 30 19:07:11 JSONObject and JSONArray are easy Jul 30 19:07:16 http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Jul 30 19:07:36 yeah i guess, but then you're not really iterating over the JSON twice Jul 30 19:07:42 it's only parsed once Jul 30 19:07:42 freedomcaller: just set the android:scaleType="centerCrop" Jul 30 19:07:48 CENTER_CROP maybe, freedomcaller Jul 30 19:08:05 wongk, true, i can keep a reference to the parsed JSON Jul 30 19:08:09 wongk, ty Jul 30 19:08:12 anyone have any experience with the 2d engines? Jul 30 19:08:36 or CENTER_INSIDE for empty space, i guess Jul 30 19:08:36 still trying to work out issues with LayerDrawable, Jul 30 19:08:56 ahh thanks never seen that one is it new Jul 30 19:08:57 anyone know if a way to set bounds on one layer without affecting the others? Jul 30 19:09:26 dunno Jul 30 19:09:48 freedomcaller: no, its not new Jul 30 19:10:08 * freedomcaller stops making excuses Jul 30 19:10:34 freedomcaller, i don't know if setAdjustViewBounds is what you need - that wll just make it maintain an aspect ratio of the drawable, which won't be a square unless the drawable is Jul 30 19:10:55 yeah, thanks tho :) Jul 30 19:11:14 ill keep fiddleing with it Jul 30 19:12:48 Anyone here familiar with HorizonalListView Jul 30 19:14:15 might try setMeasuredDimension (getWidth(), getWidth() ); maybe Jul 30 19:15:38 for some reason, the otherwise awesome horizontal list view is padding each image rediculously Jul 30 19:25:37 anyone know how to disable hardware back/home keys in android virtual devices? Jul 30 19:25:44 i'm trying to disable them when creating an avd Jul 30 19:25:47 but i don't see the option Jul 30 19:25:49 i'm using eclipse Jul 30 19:26:27 this is what i see: http://i.imgur.com/E5G2c.png Jul 30 19:26:49 i'm curious what purpose that solves Jul 30 19:27:21 wongk: otherwise the overflow button won't show up Jul 30 19:27:30 i meant to say back/menu Jul 30 19:27:32 not back/home Jul 30 19:27:37 i figured it out Jul 30 19:27:52 you have to add a 'new' hardware feature for back/menu Jul 30 19:27:54 and then set it to 'no' Jul 30 19:27:56 very unintuitive Jul 30 19:28:09 if you create a 3.0+ avd it works correctly, doesn't it? Jul 30 19:29:56 hey guys, my ram usage is increased every time i format Jul 30 19:29:59 any suggesstion Jul 30 19:30:22 Uh.. What? Jul 30 19:31:02 i have hard reset two times, and every time my phone ram usage increased Jul 30 19:31:25 Okay.. try #android Jul 30 19:31:30 no luck Jul 30 19:31:45 Too bad Jul 30 19:31:49 This isn't the right channel Jul 30 19:31:55 anyone got suggestions to improve avd performance Jul 30 19:32:17 when i was running on my intel core2 duo it was rpetty much fine with a 480x800 screen with 2.3.4 Jul 30 19:32:20 now its sluggish Jul 30 19:32:35 (upgraded to quad core) Jul 30 19:32:35 Xtreme: please go to #android or #android-root Jul 30 19:32:42 Xtreme: This Is Not The Right Channel Jul 30 19:33:10 try the atom-x86 image Jul 30 19:33:55 The avd just uses a single core, doesn't it Jul 30 19:34:04 emulator: Failed to open the HAX device! Jul 30 19:34:04 emulator: Open HAX device failed Jul 30 19:34:04 HAX is not working and emulator runs in emulation mode Jul 30 19:34:17 running on windows or linux? Jul 30 19:35:26 windows Jul 30 19:35:50 think i found it Jul 30 19:36:17 download the "intel hardware accelerated execution manager", try again then Jul 30 19:36:23 its available fro mthe sdk manager Jul 30 19:36:38 eh, and install ofc Jul 30 19:36:40 yea googled it Jul 30 19:36:42 anyone have an experience with 2d engines for android? Jul 30 19:37:55 rockstar8577: probably quite a few people do. Jul 30 19:38:03 why don't you ask a question? Jul 30 19:38:12 or are you going to just ask "hay guys what 2d engines are for android" Jul 30 19:38:15 in which case you could try google Jul 30 19:39:34 rockstar8577: www.andengine.org Jul 30 19:39:57 rockstar8577: 3d or bust Jul 30 19:40:09 why would you give up an entire d Jul 30 19:40:22 its basically a free d because of the gpu Jul 30 19:40:22 no i know of some, i was going to ask someones experience with engines, i want to do some 2D work possibly making it making it multiplayer Jul 30 19:42:25 wow, an android soulja boy tablet :D Jul 30 19:43:01 anyone have any experience with multiplayer with any of the engines, anyone prefer 2 of the major engines or possibly a lesser known engine Jul 30 19:43:05 thats pretty much what im asking Jul 30 19:43:12 so why didn't you just ask that Jul 30 19:43:42 also, do you have any networking or multithreading experience? If not, this may be a huge undertaking for you, and you'll probably want to just use Unity or something. Jul 30 19:44:42 multithreading not so much about the same as my networking Jul 30 19:45:26 and i didnt ask that question because there would be no point if no one had any experience with the engine Jul 30 19:45:45 wongk, hokay, implementation is working, i have the postexecute of the first one storing the json, and the doinbackground of the second thread using the JSON to find the thumbs, download them, and create the image views, then i use runOnGuiThread to actually see the effects Jul 30 19:45:49 so instead of: can someone help me do X with Y? Jul 30 19:45:57 you ask: does anyone know anything about Z? Jul 30 19:46:02 and then: ok well what about Y? Jul 30 19:46:06 ^^ Jul 30 19:46:08 and then: so im having problem X Jul 30 19:46:19 wongk: no, it doesn't Jul 30 19:46:38 i created a 4.1 avd and it still had the hardware menu button until i explicitly disabled it Jul 30 19:46:41 wongk, then it's iterating over the JSON exactly once, parsing it exactly once, and creating the views exactly once (without needing to store the refs) Jul 30 19:46:43 http://ntt.cc/2011/05/08/8-open-source-android-game-engines.html Jul 30 19:46:48 it sounds like AndEngine does multiplayer Jul 30 19:46:54 of course i had to implement an inner class to do this Jul 30 19:46:54 probably because many 4.0+ phones still have hardware menu buttons Jul 30 19:47:02 lov it does Jul 30 19:47:17 oh wow that list is old Jul 30 19:47:25 andengine is all decked out with 2.2+ now Jul 30 19:47:30 yeah Jul 30 19:47:35 * canadiancow|work is an andengine contributor :) Jul 30 19:47:39 oh neat. Jul 30 19:47:47 anyway, rockstar8577, go play with AndEngine. Jul 30 19:47:49 problem solved. Jul 30 19:47:57 Does anyone actually use Renderscript? Jul 30 19:48:02 google does :) Jul 30 19:48:08 @lov ahhh okay, and yea i do know multithreading and networking go hand and hand Jul 30 19:48:14 no they dont? Jul 30 19:48:19 you can easily do one without the other Jul 30 19:48:26 you can definitely do multithreading without networking Jul 30 19:48:34 * SimonVT guesses he means multiplayer Jul 30 19:48:49 but not really the other way around canadiancow Jul 30 19:48:56 I actually meant multithreading because I assumed he'd have to implement it himself. Jul 30 19:49:04 oh Jul 30 19:49:24 you can do networking without multithreading Jul 30 19:49:27 maybe not on android Jul 30 19:49:34 but you can do it Jul 30 19:49:45 you can but its not good from what i have seen Jul 30 19:49:52 depends what you're doing Jul 30 19:49:52 since you block things Jul 30 19:50:01 you can do it on Android too Jul 30 19:50:04 you block your process Jul 30 19:50:13 but in some environments, that's fine Jul 30 19:50:19 zinx, not on 3.0+ Jul 30 19:50:24 NetworkOnMainThreadException Jul 30 19:50:25 imho android 15+ refuses to do network stuff on the ui thread Jul 30 19:50:30 canadiancow|work: ah Jul 30 19:50:34 yea, so andengine Jul 30 19:50:48 im not sure "imho" made sense there Jul 30 19:50:56 You can if you turn off strict mode Jul 30 19:51:07 but thank you guys, i probably will ask more stuff later Jul 30 19:52:19 is bermuda not supported in google play? Jul 30 19:52:26 none of our games are availablef or download there Jul 30 19:54:40 i'm bummed Nikumaroro island is not supported either; none of the castaways can buy anything Jul 30 19:55:49 i should rephrase that Jul 30 19:55:51 bermuda has google play Jul 30 19:55:56 our stuff cant be downloaded there Jul 30 19:56:05 bermuda is not an option in the country list Jul 30 20:05:41 can they buy anything on play? Jul 30 20:06:12 s/buy/download/ Jul 30 20:06:12 yes Jul 30 20:06:26 the error is that our stuff isnt available in their country Jul 30 20:21:39 it's annoying that logcat is only fully visible to root on jb+ devices Jul 30 20:22:25 pfn: i've never tested; whats missing ? Jul 30 20:22:52 all logs Jul 30 20:25:37 how do you make the greater than symbol in android? Jul 30 20:26:54 wat Jul 30 20:27:01 > Jul 30 20:27:54 can anyone tell me what runtime exception STUB indicates? Jul 30 20:28:29 read more Jul 30 20:28:31 oh, Stub? Jul 30 20:28:37 you're trying to run android.jar on the jvm Jul 30 20:29:12 pfn, i'm actually trying to instantiate one of my classes Jul 30 20:29:20 HelloWorldImplService hwis = new HelloWorldImplService(); Jul 30 20:29:23 that throws stub Jul 30 20:30:39 o_O Jul 30 20:30:47 johnnyonflame: > Jul 30 20:31:08 lov uh? Jul 30 20:31:16 er Jul 30 20:31:17 sorry Jul 30 20:31:22 john_doe_jr: > Jul 30 20:31:52 loin: without more info on what you're actually doing, I don't know what to suggest. Where is HelloWorldImplService coming from? Jul 30 20:32:10 My guess is that you're doing something wrong with AIDL Jul 30 20:32:26 lov, helloworldimplservice came from wsimport Jul 30 20:32:29 i imported a wsdl Jul 30 20:33:03 take a look at the source. betcha your exception is there. Jul 30 20:33:45 well, you're not giving much info to go on, but android doesn't include any javax.soap/javax.ws stuff Jul 30 20:33:54 lov, if i run it from plain java no problem Jul 30 20:33:58 and there is no stub exception there Jul 30 20:34:12 ^^ see above Jul 30 20:34:41 pfn, i know, i imported them myself Jul 30 20:34:54 jar'd their ass in the project Jul 30 20:37:13 16:33:56 < pfn> well, you're not giving much info to go on, but android doesn't include any javax.soap/javax.ws stuff Jul 30 20:37:19 a stacktrace of the actual exception would help. Jul 30 20:37:34 e.g. if you're trying to call ingo javax.ws or something Jul 30 20:37:48 SOAP has also been properly enterprised since its invention Jul 30 20:37:54 these days it's a wonder if 2 implementations cooperate Jul 30 20:37:58 SOAP is what i'm used to at this point Jul 30 20:38:06 i think it's ugly as hell personally Jul 30 20:38:16 also the amount of junk around the simplest things has grown impressively Jul 30 20:39:10 last time I saw it, it seemed to be all the rage to just use this very expensive and stupid method to wrap XML document inside CDATA section which contained the actual information. There's probably a sense there, but finding it might be equivalent to meeting cthulhu Jul 30 20:40:00 you see the light, then it's all over Jul 30 20:40:08 anyways i'm all about JSON these days Jul 30 20:40:57 the tentacles of enterprise have somehow not yet managed to screw it up Jul 30 20:42:00 alankila, it's too adaptable, too simple Jul 30 20:42:11 if you screw it up it's because you've put your app together piecewise Jul 30 20:42:25 yes. simple is the enemy. The overcomplexificiation brigade have not yet managed to fuck it up Jul 30 20:42:41 although last time I heard there was some impressive noise about needing some scheme to represent 64-bit integers in it Jul 30 20:42:51 when i reboot my mobile, all devices are remounted right? Jul 30 20:42:57 My suggestion would have been "" around the numbers, though Jul 30 20:43:24 alankila, why not do what chip designers have been doing for years: use a second register Jul 30 20:43:27 see, in JSON the numbers are supposed to be double values Jul 30 20:43:37 i.e., just take on a second int value w/ some sort of known syntax Jul 30 20:44:43 I'm pretty sure json with single precision floating point, 64-bit integers, 80-bit integers and roman numeral literals similar to XSLT will eventually find some way to make JSON look really complicated, which keeps all the useless consultants fed and fat Jul 30 20:47:25 heh Jul 30 20:52:00 alankila: except no format from enterprise will support 80bit ;) Jul 30 20:52:12 (and those were floats) Jul 30 20:54:52 * alankila is sure someone invents something useless with far-reaching consequences. Can't have people interoperating and exchanging data and understanding stuff. Jul 30 20:59:09 I keep on referring my new favorite example of ballooning software complexity: http://harmful.cat-v.org/software/xml/xml_ascent.png Jul 30 20:59:23 especially as a modern person would object to the final example and state that the xml document doesn't even have namespaces in it Jul 30 21:00:45 alankila: I still think it starts with the dick who created second normal form XML Jul 30 21:01:13 how long does it normally take for a new apk to show up in the market ? Jul 30 21:01:36 happily I have not met normal forms for xml. Jul 30 21:01:43 CodeFriar: 5 minutes to 3 hours Jul 30 21:02:49 ok, i am having the weirdest problem Jul 30 21:03:28 is there any reason a view's padding wouldn't be recognized on older versions of the platform? Jul 30 21:03:49 or practically do not know what is meant by 2nd normal form xml. Probably for the best. Jul 30 21:05:09 alankila: oh, you have. It's impossible to not encounter one Jul 30 21:05:56 alankila: whenever you see XML that seems to put everything into nodes and completely avoids attributes where possible, you're dealing with 2nd normal form Jul 30 21:06:03 If I have a Bitmap of width and height 200x200 and an ImageView with wrap_content and wrap_content for height/width, what size should the ImageView be in pixels on an XHDPI display? Jul 30 21:07:07 p_l|home: I see. I guess the whole attributes vs. subelements issue is largely just allowing useless complexity. Jul 30 21:07:34 when you've uploaded an app in the publisher side does it give you any kind of confirmation or a link to where it will be in the store ? Jul 30 21:07:36 at least when it comes to data description. Seems plenty useful for HTML, though. Jul 30 21:08:14 alankila: it's all about forgetting what XML is Jul 30 21:09:10 CodeFriar: Nope Jul 30 21:09:34 But go to the any app in play store. change the package name to your apps, that's where it is Jul 30 21:09:47 If it says "published", then it's published Jul 30 21:09:51 In your dev console Jul 30 21:16:23 http://pastebin.com/pFv1d4Nn <- for some users, this EditText won't open a keyboard if clicked on Jul 30 21:16:31 any idea? Jul 30 21:29:24 won't open one at all or won't open the digial one? Jul 30 21:29:28 Is it possible to open files to use in a screen? For example a html file with some text? Jul 30 21:31:09 digial=numerical ( sorry ) Jul 30 21:31:23 bankai_: according to user reports, the soft keyboard won't open. When using a hardware keyboard, it seems to work (not all have a hw keyboard) Jul 30 21:31:49 Kopfgeldjaeger: i assume from that comment you can't replicate the problem ? Jul 30 21:32:00 bankai_: no, sadly not Jul 30 21:33:51 Drager: what do you want to do ? htmlview ? Jul 30 21:35:56 bankai_: Na, I simple want to write alot of text to the content Jul 30 21:36:07 I dont know a nice way to do it, any ideas? Jul 30 21:39:05 i don't really understand what you're asking, sorry Jul 30 21:41:26 if i store static vars in a Service class, will they live longer? Jul 30 21:41:36 bankai_: I want to put alot of text on the apps background Jul 30 21:41:44 How should I do that in the best way Jul 30 21:42:21 yotam: they will do but at the expense of kittens who will die Jul 30 21:43:08 i wish my android had a line in that would solve a million problems Jul 30 21:55:51 i'm trying to use a gridview with some variable-height items, is there any way to tell the gridview to measure the row height based on the tallest element, not the one on the right (which appears to be what i'm seeing) Jul 30 22:02:18 Good evening Jul 30 22:03:21 How complex could a digital Filter for Audio be, in order to run on today's high end-smartphones? (Galaxy Note, Galaxy S3,...) Jul 30 22:04:27 and are there good libs for digital filters on android? Jul 30 22:19:18 anyone know which action bar items should always be overflowed? i remember seeing a doc but can't find it now Jul 30 22:19:22 it was help, options, and some other stuff Jul 30 22:19:25 feedback, i think Jul 30 22:19:59 nvm found it Jul 30 22:25:54 can a touch event handler for one view update information displayed in a different view? Jul 30 22:26:05 im getting an fc when i do that Jul 30 22:26:24 both members of the same view group Jul 30 22:34:04 " total US smartphone shipments are behind where they were a year ago" … interesting Jul 30 22:35:02 g00s: because everyone finally has one :) Jul 30 22:36:09 jasta: you have a whole drawer full of them , right :) Jul 30 22:36:52 maybe a few less if the rojocams have been deployed around the house Jul 30 22:36:53 i have 11, in fact, yes. Jul 30 22:39:37 How should I add alot of text to the context of the screen? Jul 30 22:39:48 For example I have 100 lines of just pure text Jul 30 22:39:56 Whats the best way to do ti? Jul 30 22:40:01 resource file? Jul 30 22:40:13 depends on what this text is. i mean, what sort of formatting / presentation does it have? Jul 30 22:40:20 load it from a resource file, maybe break it up into a few strings if that makes sense Jul 30 22:40:50 Yea, sounds good. Just create a new file in /res/values/ ? Jul 30 22:41:14 ya Jul 30 22:41:19 Drager: res/raw or assets depending on whether you want the text to be substituted by the resources system Jul 30 22:41:26 ya Jul 30 22:41:44 if it is presented to the user, i'll go ahead and assume you want res/raw Jul 30 22:41:56 I want that yes Jul 30 22:41:58 raw? Jul 30 22:42:01 i think there is an apidemo that puts shakespeare in a v scholl view Jul 30 22:42:03 wheres that folder? Jul 30 22:42:07 (scroll Jul 30 22:42:09 the reason i asked about presentation, btw, is that HTML may be more appropriate here if this is like a help screen or something Jul 30 22:42:32 it would still go into res/raw, of course, but then you'd use a WebView to draw it Jul 30 22:42:36 is there a FAQ on how to debug "findLibrary returned null" Jul 30 22:42:39 ? Jul 30 22:43:01 ndk-build generated an .so file with the correct name Jul 30 22:43:13 jasta: Should I create a folder called raw or whats up? Jul 30 22:43:14 but the logcat of the device says it can't find it Jul 30 22:43:33 (I executed "ant debug" and "ant installd" Jul 30 22:49:47 can a touch event handler for one view update information displayed in a different view? Jul 30 22:57:50 I440r, whynot Jul 30 22:59:00 im getting an fc Jul 30 22:59:12 I440r: therefore...? Jul 30 22:59:21 jasta: Should I create a folder called raw or whats up? Jul 30 22:59:26 i have a text view and a custom view. i have a touch handler for the custom view that i want to update info in the text view Jul 30 22:59:37 Drager: yes, that is what i said already. Jul 30 22:59:45 Ah, sorry didnt notice that Jul 30 22:59:47 thanks Jul 30 22:59:48 :) Jul 30 23:00:07 I440r: and because your meandering, random attempt has a logic error, you assume this is not possible? Jul 30 23:00:15 i can get the textview resource but when i tv.setTextColor() it bombs and fc's Jul 30 23:00:46 jasta no im questioning if it is possible because i dont know Jul 30 23:01:19 I440r: maybe you should start by understanding _why_ this failed. Jul 30 23:01:46 if you need help with where to start, oh i dunno, maybe start with the actual exception you got. Jul 30 23:01:51 fuck. and i cant cut and paste out of sublime text 2 to paste it Jul 30 23:02:01 jasta wait Jul 30 23:02:23 pasting it to me is not what i'm asking you to do Jul 30 23:02:47 http://bpaste.net/show/37665/ Jul 30 23:03:11 thats the code. i dont know wht the exception is because i cant debug it here Jul 30 23:03:17 can wheni get home Jul 30 23:03:22 I440r: i'm not going to help you if you won't listen. Jul 30 23:03:24 good luck Jul 30 23:03:44 jasta sometimes your kind of ok., other times it seems like its that time of the month for you Jul 30 23:04:09 like your pussy hurts or something Jul 30 23:04:11 don't prod me. Jul 30 23:04:22 haha, what the heck is going on in here Jul 30 23:04:24 i asked a question, you got pissy Jul 30 23:05:24 To be fair I440r, you didnt do what he asked you to do Jul 30 23:05:51 Drager: he asked me to look up the exception which i cannot do right now Jul 30 23:06:02 which i SAID i cannot do right now Jul 30 23:06:09 but said i COULD when i got back home Jul 30 23:06:22 Okey, fair enough Jul 30 23:06:54 meanwhile... if thers an obvious issue with the code i pasted maybe someone with a clue can tell me why the commented out block of code causes an FC Jul 30 23:07:19 tv.setTextColor(Color.CYAN); <-- any attempt to configure the textview properties causes an fc Jul 30 23:08:33 read the stack trace Jul 30 23:08:39 do not say anything else until you have Jul 30 23:08:51 of course you can lookup the exception now Jul 30 23:09:02 use logcat from a terminal on the phone Jul 30 23:09:07 use one of the many logcat readers out there Jul 30 23:09:10 alogcat, catlog, etc. Jul 30 23:22:03 soon as i touch the view with the touch handler i get Activity pause timeout for HistoryRecord{40bfb100 Jul 30 23:22:22 Application is not responding Jul 30 23:22:48 Input event dispatching timed out Jul 30 23:26:36 hrm Jul 30 23:26:56 Anyone have a few moments to help me debug why my app isn't able to be downloaded? Jul 30 23:27:07 on google market. Jul 30 23:29:54 One of the users trying to download it is getting Package file was not signed correctly Jul 30 23:30:57 I can't download it myself. I get "your order could not be processed. Please try again." Jul 30 23:31:23 Even if I upload the APK to a server and try it, I still can't install after navigating to it with the android web browser. Jul 30 23:31:58 can you install from sdcard? Jul 30 23:32:08 galaxy nexus I don't have an SD card Jul 30 23:32:27 did you export the app with a valid key? Jul 30 23:32:43 I generated a key, but I have no idea if it's done right Jul 30 23:32:47 google accepted it. Jul 30 23:33:03 First time I've had to generate a key. Jul 30 23:34:19 Is there a page on how to generate a key properly? Jul 30 23:34:41 I'm using unity, and I used a forum there. But it was a bit general. Jul 30 23:35:09 sirellyn: in eclipse it walks you through the process, but I believe if you did it wrong, google would reject it. Jul 30 23:35:37 Ugh. I don't know what else it could be.. Jul 30 23:35:58 when did you set the key to expire? Jul 30 23:37:41 50 years Jul 30 23:38:18 yea then its probably not the key... hm I dunno Jul 30 23:38:42 Ok. I'll keep looking. Jul 30 23:39:40 Has anyone encountered this error when using mediaplayer http://pastebin.com/PFMKCbPs Jul 30 23:39:51 I get this error after I've played like a shit ton of sounds Jul 30 23:44:01 So I run my app onto my Nexus 7, close it, then all of a sudden I can't find my device in adb devices, anyone have any ideas? Jul 30 23:45:34 Your cord came unplugged? Jul 30 23:45:42 Or maybe switched out of debug mode? Jul 30 23:46:13 No, my computer makes the sound whenever the device gets plugged/unplugged and it's been staying in. Also debug mode is on, I didn't touch the device. Jul 30 23:47:53 Can you see your device under the DDMS log thing Jul 30 23:48:10 under devices I mean Jul 30 23:48:37 No, it's not there. I'm trying to reinstall the drivers right now. Jul 30 23:48:52 Have you tried unplugging your Nexus then plugging back in? Jul 30 23:49:14 Yeah, that's the first thing I did. I even waited a few seconds. Jul 30 23:50:28 Yeah try your drivers I guess Jul 30 23:50:29 not sure. Jul 31 00:05:12 Does anyone know about admob? Jul 31 00:06:03 know what about it? Jul 31 00:07:12 Well yesterday I did a UI update Jul 31 00:07:24 Because I believe that on some devices my ad didn't have enough space therefore wasn't showing Jul 31 00:07:39 (idk how many people had this problem but a co worker pointed it on on his samsung galaxy s1) Jul 31 00:07:44 so I fixed it and released a update Jul 31 00:08:12 I got a %0.33 CTR Jul 31 00:08:13 today Jul 31 00:08:21 which like sky rockets anything I've been getting Jul 31 00:08:46 just wondering if I should be like on the alert Jul 31 00:08:56 don't want to get banned from someone abusing my ads or something Jul 31 00:09:01 i go from a max of 3 clicks per day Jul 31 00:09:03 to 17 today Jul 31 00:09:09 I generally get a CTR of 1.5% to 3% Jul 31 00:09:17 le balls fuck Jul 31 00:09:20 how Jul 31 00:09:21 lol Jul 31 00:09:30 I've been getting like %0.07 Jul 31 00:09:34 my max other then today is.. Jul 31 00:09:34 by just being *sexier* than you! Jul 31 00:09:50 %0.09 is my best Jul 31 00:09:54 other than the 0.33 i got today Jul 31 00:10:35 I just know google has a pretty strict system, and I didn't want to get flagged as a abuser or something Jul 31 00:10:39 my best recently is 3.87% - 31 clicks on 810 requests Jul 31 00:10:51 kinda scared me going from nothing higher than 3 clicks in a day to 17 Jul 31 00:10:51 *are* you an abuser? Jul 31 00:10:53 no Jul 31 00:11:03 but it doesn't mean someone else didn't just spam click my ad 10 times Jul 31 00:11:11 i never told anyone to, nor do I think someone did Jul 31 00:11:20 or you just had a good day :) Jul 31 00:11:35 just being cautious Jul 31 00:11:40 * Leeds afk Jul 31 00:11:44 ah Jul 31 00:11:57 well thanks you made me feel better Jul 31 00:12:00 i can get used to this :) Jul 31 00:15:51 hi, i'm trying to use the app icon for navigation as explained in the docs Jul 31 00:16:22 i used the listed code for returning to the home activity Jul 31 00:16:58 i put the onOptionsItemSelected method in a parent class with other universal stuff like the options Jul 31 00:17:04 I am receiving a VerifyError and i'm not entirely sure why. Anyone interested in helping me? I have my dexdump ready to go. Jul 31 00:17:09 but when i try tapping on the icon, it doesn't do anything Jul 31 00:17:26 i added a log statement and the onOptionsItemSelected method isn't even being called Jul 31 00:17:40 any ideas? Jul 31 00:17:45 i tried both an avd and my gnex Jul 31 00:19:39 josepharmbruster: er... massively missing context? Jul 31 00:20:16 as in, wtf are you talking about? Jul 31 00:20:25 the fall of apple has begun http://www.apple.com/mac/videos/#tv-ads-mayday Jul 31 00:20:28 * Jug6ernaut leaves Jul 31 00:21:44 Leeds: first off, i'm building my code (which is all source, no third party libraries) using 1.6.0_29-b11-402-10M3527 Jul 31 00:22:01 Jug6ernaut: what is a tv ? Jul 31 00:22:07 :) Jul 31 00:22:26 Leeds: my target is 2.3.3 API level 10 Jul 31 00:22:33 g00s: it's what I've got my raspi plugged into :) Jul 31 00:22:33 g00s u dont watch tv?! Jul 31 00:22:40 ^^^ Jul 31 00:23:05 no, i haven't had a tv since HS. Jul 31 00:23:14 Leeds: raspi = raspberry pi ? Jul 31 00:23:23 yup Jul 31 00:23:26 cool ! Jul 31 00:23:34 Leeds: no build warnings / errors. When I go to launch one of my activities, I get a crash... specifically caused by a VerifyError Jul 31 00:23:49 g00s: you don't need to have watched tv to have known about the ads Jul 31 00:24:00 the bloggerati have ensured that Jul 31 00:24:03 josepharmbruster: no stack trace? Jul 31 00:24:07 Leeds: did you hear about the gooseberry XD Jul 31 00:24:21 Leeds: it's failing in clinit of my class Jul 31 00:24:32 yeah... it's a spare board from a Chinese tablet which they've been selling without a battery or screen Jul 31 00:24:37 Leeds: W/dalvikvm(31531): VFY: register2 v4-5 values 7,14 Jul 31 00:24:48 Leeds: W/dalvikvm(31531): VFY: rejecting opcode 0xce at 0x0038 Jul 31 00:25:17 okay, this "1.6.0_29-b11-402-10M3527" is the Sun/Oracle JDK, right? Jul 31 00:25:32 Leeds: yes Jul 31 00:26:00 you've got the latest Android SDK? Jul 31 00:26:47 Leeds; for 2.3.3 API level 10, yes. Jul 31 00:26:55 Hello Jul 31 00:26:56 *no* Jul 31 00:27:08 Leeds: rev 2 of the SDK and 2 of the Google APIs Jul 31 00:27:15 you should *always* use the latest SDK - every SDK release can target any release below it Jul 31 00:27:44 SDK 20 can build for Android 1.0 (not that you'd want to) Jul 31 00:27:52 Leeds: so I should be building with 4.0.3 API 15 Jul 31 00:28:03 not API - SDK... they're not the same thing Jul 31 00:28:16 also the latest API level is 16 now :) Jul 31 00:30:20 Leeds: updating now Jul 31 00:39:50 Hi All Jul 31 00:41:39 Is there a way to changeFragment using FragmentTransactions and customAnimations such that the reverse animation happens when Back is tapped? Jul 31 00:45:06 hm, i'm reading a book and the author says something about GUIs I don't understand: "Unlike the classification of CLIs, graphical user interfaces reflect ideas and attributes of Newtonian science by focusing on how things are constructed and work, and by relying on the principles that all things are positioned in absolute time and space with absolute qualities." Jul 31 00:45:24 i wonder what she means by "positioned in absolute time…" wut Jul 31 00:46:31 silence Jul 31 00:47:28 I would *guess* it means that there is a conscious laying-out of UI elements, rather than the linear stream of interaction you get in a CLI Jul 31 00:49:01 hm Jul 31 00:50:16 anyone read 'Brave NUI World?' Jul 31 00:56:03 Leeds: sdk updated, updating google apis now... Jul 31 00:57:46 g00s: it means she enjoys 'organic herbs' Jul 31 00:58:02 haha Jul 31 00:59:56 g00s: sounds like that author's jumped the shark Jul 31 01:00:52 well, she used to be a interaction designer & researcher at nokia - she jumped 'off' something Jul 31 01:01:29 i think she is trying to poorly summarize Dixon's talk about NUIs Jul 31 01:02:21 well nokia was never known for its innovative UIs Jul 31 01:02:27 they just made phones cheap and durable Jul 31 01:02:55 although they did show some hardware design sense with that latest windows phone Jul 31 01:03:10 Leeds: changed my build target to 4.1, same issue Jul 31 01:03:56 josepharmbruster: erm... still haven't got the difference between SDK, API, and Android release? Jul 31 01:04:18 I hate people Jul 31 01:04:26 who the fuck rates an app 1 star with no comment Jul 31 01:04:29 ima kill someone Jul 31 01:04:30 okay, are you doing anything else weird? what platform are you on? eclipse, or something else Jul 31 01:04:37 T-Dub: thousands and thousands of dumb users Jul 31 01:04:43 i hate this Jul 31 01:04:51 and i hate people who rate like 3 or 4 stars because of a problem Jul 31 01:04:53 Leeds: my build target is 4.1 now Jul 31 01:04:54 you fix the problem Jul 31 01:04:57 and they never change it Jul 31 01:05:15 or at least say "would rate 5 if you had this" so you add the feature and no difference Jul 31 01:05:37 Leeds: have you ever encountered a VerifyError? Jul 31 01:05:38 28 5*, 3 4*, 2 3* and 1 1* Jul 31 01:05:41 dicksssss Jul 31 01:05:52 T-Dub: at least the reviews normally have the app version attached now, so people can see if the review was for an old version Jul 31 01:05:58 Leeds: like this one -- W/dalvikvm(31926): VFY: rejecting opcode 0xce at 0x0038 -- Jul 31 01:06:04 yeah I saw that Jul 31 01:06:07 looks cool Jul 31 01:06:13 josepharmbruster: something is up with your compilation... Jul 31 01:06:31 Leeds: My app compiles and runs. Jul 31 01:06:44 well... no it doesn't, if it's crashing with a bad opcode Jul 31 01:06:49 Leeds: when I try to launch one activity, there is a runtime error. Jul 31 01:07:18 Leeds: what do you mean by 'compilation'? Jul 31 01:07:19 josepharmbruster, check your onCreate method Jul 31 01:08:29 T-Dub: the real issue is this: W/dalvikvm(31926): Verifier rejected class Lcom/joevial/astro/propogators/sgp4/SGP4unit; Jul 31 01:08:41 Mine showing your whole catlog? Jul 31 01:08:46 Mind* Jul 31 01:08:48 josepharmbruster, ^ Jul 31 01:09:17 T-Dub: VerifyError is thrown when trying to clinit this class, Jul 31 01:09:45 No idea what cliniting a class is/does. Jul 31 01:10:27 i've been digging through the dexdump... but this is my first go at the dex, so i'm not sure what to look for yet. Jul 31 01:10:44 you really really should never need to touch dex - unless you're doing something weird Jul 31 01:10:59 but for some reason you didn't answer when I asked about that, so... meh Jul 31 01:11:45 Leeds: which question? Jul 31 01:11:57 okay, are you doing anything else weird? what platform are you on? eclipse, or something else Jul 31 01:12:41 Leeds: Eclipse, building / debugging an ht mytouch 4g Jul 31 01:12:59 argh Jul 31 01:13:27 you're on OpenBSD and you're manually building your bytecode a bit at a time? Jul 31 01:13:50 anyone know how to stop a slidingdrawer from being dragable? Jul 31 01:14:06 just want the buttons to to expand/contract the view Jul 31 01:16:24 josepharmbruster: well, good luck with that Jul 31 01:27:55 Is anyone here familiar with dex? Jul 31 01:28:13 Leeds / T-Dub: are either of you familiar with dex? Jul 31 01:28:53 here's my output: http://tinypaste.com/bca323db Jul 31 01:30:33 No sorry. Jul 31 01:31:10 Looks like hex to me Jul 31 01:50:14 Is it bad to use getApplicationContext() rather than className.this? Jul 31 01:59:46 Depends on the lifetime of the object Jul 31 01:59:54 And what you're doing Jul 31 02:01:02 wat Jul 31 02:01:07 that question barely makes sense Jul 31 02:01:25 one is a method, the other is a Class object Jul 31 02:04:45 josepharmbruster: I'll ask *yet* again! what are you doing that's weird? why are you even dealing with dex? Jul 31 02:07:43 I have a ListView where each list item contains an ImageButton. I Jul 31 02:08:41 I'd like to create every unique button's OnClickListener in the ListView's parent Activity. However, OnClickListener only gets supplied a View object. Could I manually mutate the Id of the ImageButton when I create it in my Adapter, then call getId, and that way I could pass as ingle int param into the Activity-defined onClickListener? Jul 31 02:09:13 Set the onclicklistener in your adapter Jul 31 02:09:23 If you need stuff to happen in your activity, make a callback Jul 31 02:09:30 ok Jul 31 02:09:34 So take it one step further Jul 31 02:09:36 set a listener on the listener Jul 31 02:09:39 gotcha Jul 31 02:09:45 yo dawg Jul 31 02:09:53 ive chained that shit before Jul 31 02:12:33 yo dawg is outdated, it's now listener-ception Jul 31 02:14:56 basically Jul 31 02:16:51 is there a pre-api level 11 version of SharedPreferences.getStringSet? Jul 31 02:18:22 nope Jul 31 02:46:42 what's the best way to provide a color inversion option for a textview? Jul 31 02:46:52 should i just swap the background and text colors? Jul 31 02:47:01 and how does that affect the dimmed versions of the colors? Jul 31 02:55:05 Anyone using the new developer console? **** ENDING LOGGING AT Tue Jul 31 02:59:58 2012