**** BEGIN LOGGING AT Wed Nov 21 02:59:58 2012 Nov 21 03:00:24 and most of the script kiddys that exploit these games dont know what they are doing Nov 21 03:00:28 true Nov 21 03:00:44 you should like you know a lot about this dblosevn ;) Nov 21 03:00:47 seem* Nov 21 03:00:50 in java, do you need to specify "this" with private variables? Nov 21 03:01:06 using a packet editor is childs play, decompiling and debugging an app in assembly however takes quite a different type of person Nov 21 03:01:11 historypeats: no, but do it Nov 21 03:01:26 and by private I think you mean instance Nov 21 03:01:54 also the convention dominant in android of using mFoo <-- sucks. Nov 21 03:02:17 thanks tdignan Nov 21 03:02:19 yeah Nov 21 03:02:20 because it breaks standard code gen functions in eclipse and intellij Nov 21 03:02:29 sweet, thanks Nov 21 03:02:32 i just wanted to make sure Nov 21 03:02:33 np Nov 21 03:02:34 KaiKai: ive worked a lot on preventing this sor of thing Nov 21 03:02:41 glad to help make code suck less Nov 21 03:03:14 dblosevn: yea i can tell. you helped me a lot. more knowledge gained in 10 minutes than hours of reading books Nov 21 03:03:14 KaiKai: i worked with the dev team on webdate when there video chat was exploited, took months to resolve Nov 21 03:04:12 KaiKai: there was an admin exploit that allowed anybody to become an admin with a null guid so no one could ban them Nov 21 03:04:23 but they could ban everybody Nov 21 03:05:23 what i was aiming for was to prevent script kiddies to jeopordize security. and im pretty sure true experienced hackers who would take their time trying to decompile my application would spend their time better elsewhere Nov 21 03:05:39 ya most games arent worth it Nov 21 03:07:04 dblosevn: would yo mind explaining that admin exploit? what caused it? Nov 21 03:07:32 basically they would camp in a channel until a mod issued a ban Nov 21 03:07:44 tdignan: can i PM you quickly about java coding? Nov 21 03:07:49 just some questions on "this" again Nov 21 03:07:55 they would capture the ban packet and grab a list of guids in the room Nov 21 03:08:07 and reboradcast the packet with everybody guids Nov 21 03:08:25 the server wasnt smart enough to realize the sender was not the mod Nov 21 03:08:33 and it would ban the unetire channel Nov 21 03:08:36 mhmm, sounds like a pretty complex exploit. Nov 21 03:08:37 yea Nov 21 03:08:37 *entire Nov 21 03:08:47 ok, launching a dialogfragment from a button clickhandler set inside the getView() of a BaseAdapter extended class.... good? bad? Nov 21 03:08:50 once it was figured out somebody released it Nov 21 03:08:57 and a lot of people started doing it Nov 21 03:09:13 so in a way if the information youre sending is ever captured. the person can modify it. that exploit sounds like a variation of sql injection Nov 21 03:09:32 the same concept i gues Nov 21 03:09:35 not really, sql injection Nov 21 03:09:55 basically they spoofed the server into thinking they were the mod that sent the inital ban packet Nov 21 03:10:09 but they would only be capable of banning right? Nov 21 03:10:29 and some of them even protected themselves by redirecting ban packets for them back at the person that tried to ban them Nov 21 03:10:35 using that exploit couldn't you also get a bunch of other admin rights as well? Nov 21 03:10:41 LMAO. Nov 21 03:10:52 * KaiKai spit out coffee Nov 21 03:11:14 it was also possible to set your guid so they would null the guid making it impossible to ban them Nov 21 03:11:34 what are you discussing? some recent exploit? Nov 21 03:11:34 shit, they were on to something then. new game was created that day. +1 pts everytime you successfully ban someone. +2 if you successfully redirect a ban back Nov 21 03:11:46 latest script kiddie project template? Nov 21 03:11:47 lol Nov 21 03:12:01 johny-b-goode: hes trying to preent this sort of thing in his app Nov 21 03:12:07 *prevent even Nov 21 03:12:38 oh prevent mis-use. I thought he was just describing a latest exploit/hack. Nov 21 03:12:40 historypeats: uh, i'm not really available for pms Nov 21 03:12:41 well, if i can protect this application this way i can just integrate some parts of it to another application if ever needed Nov 21 03:12:43 please ask in the channel Nov 21 03:12:53 oh i was describing one i successfully beat lol Nov 21 03:13:00 ooh nice. Nov 21 03:13:10 dblosevn: ? Nov 21 03:13:27 i rewrote the backend and now that explit is not possible Nov 21 03:13:32 niceee Nov 21 03:13:33 I'd be ok beating the hackers. once I figure out the stupid baseadapter. Nov 21 03:13:35 i couldnt even beat it when i tried Nov 21 03:13:51 were you paid by the dev team? or did you js do it as a favor? Nov 21 03:14:06 kind of a favor i been on webdate since they started Nov 21 03:14:16 its a free service so i didnt want to hammer them Nov 21 03:14:32 I met my wife via webdate. Nov 21 03:14:34 they dump all there money into fling Nov 21 03:15:12 dblosevn: now let's figure uot how Bryden got his wife so fast and you've been on since they started.... Nov 21 03:15:18 eg... webdate is the free version of fling, cept no nude cams Nov 21 03:15:41 ive hooked up with quite a few on webdate lol none wife worthy though lmao Nov 21 03:15:53 online dating actually works? Nov 21 03:15:54 maybe you could spruce up your profile picture. Nov 21 03:16:01 you know photoshop a tom selleck on there. Nov 21 03:16:09 Heh. Not only were we in the same area, it turned out that she was a coworker and friend to my mom and older brother. Nov 21 03:16:26 small world Nov 21 03:16:30 yep yep Nov 21 03:16:41 thats js weird.... like iono Nov 21 03:16:43 what do you guys recommend, ContentValues or SQLuteQueryBuilder? Nov 21 03:16:48 oh wait, target acquired, but target = acuirer.age() + 20? Nov 21 03:16:48 ive travelled all over the us for these chicks i meet none of them have truend out Nov 21 03:16:52 *turned Nov 21 03:16:53 Then it turned out (after we got married) that we were in the same state competition while in high school. Nov 21 03:17:26 they just cant dig my work ethic i guess lol i work too much Nov 21 03:17:27 dblosevn: yeah my folks bugging me about match Nov 21 03:17:42 i just use pof honestly Nov 21 03:17:55 free service, i just get on when i have time Nov 21 03:18:06 pof? Nov 21 03:18:11 plenty of fish Nov 21 03:18:21 any wife that doesn't think programming is one of the boss occupations is not wife worthy. Nov 21 03:18:30 get this... Nov 21 03:18:55 my last fiance, let her parents convince her to leave me because i didnt have an approved job by there standards Nov 21 03:19:02 took off with my kid and everything Nov 21 03:19:07 wow. Nov 21 03:19:26 just cause im not bankin millions like them Nov 21 03:19:31 I'm always wondering how a potential woman will react if I say, quiting your job to travel is no biggie. Nov 21 03:19:49 A woman who can be convinced like that wasn't really your wife, in my opinion. Nov 21 03:19:51 or that you don't have to have the biggest house in the street. Nov 21 03:19:53 i never quit my job, i dont work in an office, anywhere i have my machine im at work Nov 21 03:20:21 I work remote. but the point is I have to report 8am CST to 5pm CST if there's direct customer interaction. Nov 21 03:20:37 and i do travel lol, been to paris and rio this year Nov 21 03:20:48 otherwise, I just work till 4am and finish the project. then I tell my box that I'm done. he says bill hours and shut up. Nov 21 03:20:55 *boss Nov 21 03:21:02 yep thats the deal lol Nov 21 03:21:10 oh paris sounds so cool. Nov 21 03:21:14 i just have to be around a phone for meetings during the day Nov 21 03:21:30 I'd just have to figure out VPN and sametime presence. Nov 21 03:21:36 http://zachholman.com/posts/how-github-works-hours/ Nov 21 03:21:45 i wish i had more time i went out there for tech support on an app i developed for caterpillar worked 95% of the time i was there Nov 21 03:21:48 sums it up about programming occupation Nov 21 03:21:57 but how much could you really type after few bottles of merlot. Nov 21 03:22:18 not to mention jet lagged as hell lmao Nov 21 03:22:27 otherwise, you could camp out at a bar in france and VPN during US 8am-5pm cst Nov 21 03:22:39 when i got there i couldnt sleep had to jump straight into work lol Nov 21 03:22:52 lol. imagine your coding speed tho, when high on wine. Nov 21 03:22:54 but damn i got sidetracked grrr.... i still have a problem lol Nov 21 03:23:11 ok sorry for distracting you. :) I'm still trying to fix my baseadapter also. Nov 21 03:23:14 back to work. Nov 21 03:23:38 johny-b-goode, what's your adapter issue? Nov 21 03:23:45 lol, i gota have a solutoiin for this by tomorrow or there gonna start getting antsy Nov 21 03:24:37 alex_PP: wondering if it's ok to DialogFragment.show() from inside a class extending BaseAdapter. the show needs a reference to fragmentmanager and inside the adapter I don't have it. Nov 21 03:25:39 yeah, that should be fine Nov 21 03:25:52 either cast a context to activity or apss it in in the constrictor Nov 21 03:26:20 the whole adpater will be recreated on a config change anyway so it shouldn't leak unless you do somthing weird Nov 21 03:26:34 alex_PP: cool, I'm passing the context in my adapter constructor. can I get the FragmentManager from it somehow? Nov 21 03:27:05 just out of curiousity, is there any specific reason if only have one activity to make its context a static variable? besides OOP reasons Nov 21 03:27:11 if you* Nov 21 03:27:52 KaiKai, the activity is a context Nov 21 03:28:08 let me give you an example since i know it sounds weird Nov 21 03:28:11 johny-b-goode, ((Activity)context) Nov 21 03:28:25 as long as the context is an activity Nov 21 03:29:01 i prefer to pass the fragment manager in in the constructor, it's clearer Nov 21 03:29:06 well actually nvmd, doh. there is no valid example. js pass context as an argu or in constructor Nov 21 03:29:15 alex_PP: however, the actvity doesn't have a getFragmentManager() function. Nov 21 03:29:37 support lib, cast to FragmentActivity Nov 21 03:30:06 Hopefully quick question: Is there any way to pass the equivalent of command line options to an already running emulator instance on the fly? Nov 21 03:30:20 the creator is a fragment activity. Nov 21 03:30:27 johny-b-goode, use FragmentActivity or SherlockFragmentActivity Nov 21 03:30:54 alex_PP: ok, cool. my MainActivity is a fragmentactivity. Nov 21 03:31:06 getSupportFragmentManager Nov 21 03:31:19 either way works Nov 21 03:31:51 mrenouf: lol, so simple. Thankyou. should have gone thru the list further down. Nov 21 03:32:17 alex_PP: thanks. that makes sense now. since the creator is fragmentactivity, I'll just pass that in the constructor. Nov 21 03:32:54 irrelevant to programming question: has anyone every tried Chipotle? it truely is heavenly Nov 21 03:34:20 The flavor? The pepper? The restaurant? Nov 21 03:34:27 restaurant Nov 21 03:34:49 yep, one next to my office Nov 21 03:35:19 eating some right now... if i was offered chipotle everyday, some coffee, and some booze Nov 21 03:35:24 id be in 7th heaven Nov 21 03:35:54 mrenouf: what do you order? Nov 21 03:36:21 well, got everything except booze every day ;-) Nov 21 03:36:40 but there is a pub around the corner with a couple hundred types of beers available Nov 21 03:36:50 lucky you, living the life =[ Nov 21 03:37:08 Not like I go that often, but it's there Nov 21 03:37:18 told my parents last year I don't want no t-shirts for christmas or my birthday, give me a chipotle giftcard and im good to go Nov 21 03:38:14 How old are you that you still get T-shirts for your birthday but drink booze? Nov 21 03:38:28 24, my parents are asian Nov 21 03:38:40 aka, my mom and grandma knit Nov 21 03:38:41 arh, force close, it has a been a few hrs... Nov 21 03:38:58 okay, hhaha. wasn't sure the connection, got it Nov 21 03:39:19 KaiKai: you got a hot asian sister for me Nov 21 03:39:21 ? Nov 21 03:39:29 alex_PP: ok, I wasn't able to cast context back as fragmentactivity. thought I'd try that first. Nov 21 03:39:31 oi oi Nov 21 03:39:32 LOL. Nov 21 03:39:41 thats funny cause i didnt even mention a sister. Nov 21 03:39:48 i did :-D Nov 21 03:40:03 wow, when this channel goes off-topic. it goes WAY off-topic. Nov 21 03:40:08 haha nah, shes still an undergrad Nov 21 03:40:16 peckaz Nov 21 03:40:26 hmmm you think asians are off topic in #android-dev? Nov 21 03:40:32 hey if shes an undergrad shes at leats 18 lmao Nov 21 03:40:49 soooo anyone know if you can force a device into deep sleep for debugging purposes/ Nov 21 03:41:14 it seems most people fall in two categories these days, either they hate asians or they have yellow fever Nov 21 03:41:15 power button? Nov 21 03:41:20 tehyre never okay with them Nov 21 03:41:36 lol Nov 21 03:41:59 sorry for the prejudice but its true from an asian perspective Nov 21 03:42:00 i dont hate any race if there hot there hot lmao Nov 21 03:42:04 I'm ok with asians. Nov 21 03:42:15 altho, if pressed, i'd say japanese girls are really hot. Nov 21 03:42:17 well i mean, theyre either blaming asians for US's woes or in love with them Nov 21 03:42:23 but only if pressed. Nov 21 03:42:25 deep sleep is usually a while after sleep Nov 21 03:42:29 no no no dont get me wrong Nov 21 03:42:30 come on man Nov 21 03:42:35 take it elsewhere Nov 21 03:42:41 sorry to break it you guys but id say most japanese girls are fake Nov 21 03:42:41 otherwise, I'd just say all girls are hot. Nov 21 03:42:49 i totally disagree with the position the us has let us get in with china Nov 21 03:42:52 take that layer of make-up off and youll see a different person Nov 21 03:42:55 hey Nov 21 03:43:00 KaiKai: yeah but that's your asian on asian bias showing. Nov 21 03:43:05 * ron_frown sighs Nov 21 03:43:10 i dont blame china for being in that position i blame the us for putting us in it Nov 21 03:43:15 How can i put spacing/padding between two buttons in a horizontal linearlayout? Nov 21 03:43:27 turb1ne247: you can use margins or padding. Nov 21 03:43:33 #asian-girls anyone? Nov 21 03:43:34 if buttons allow those. Nov 21 03:43:55 i tried applying padding to the buttons, but it only adjust the contents inside.. Nov 21 03:43:56 * johny-b-goode is stopping OT convo. Nov 21 03:44:04 lol Nov 21 03:44:16 turb1ne247: margin would adjust spacing outside the button border. Nov 21 03:44:17 well i guess its just the grand scheme of mixing of races. asians like asians that look white and white like asians Nov 21 03:44:38 do you know the xml property? Nov 21 03:44:45 for margin Nov 21 03:44:51 just android:marginRight? Nov 21 03:45:20 android:layout_marginLeft="20dip" Nov 21 03:45:20 turb1ne247, should work. Nov 21 03:45:26 of whichever direction you want. Nov 21 03:45:28 witht he layout Nov 21 03:45:29 thanks Nov 21 03:45:46 perfect! thanks guys Nov 21 03:47:20 what do you guys recommend for a development tablet Nov 21 03:47:35 samesung tab II Nov 21 03:47:38 im currently using a thrive 10.1 Nov 21 03:47:40 thats what i have Nov 21 03:47:51 want to get something with a later version of android on it though Nov 21 03:48:07 dblosevn: have you tried this? http://www.perfectomobile.com/portal/cms/pricing/pricing.html Nov 21 03:48:17 well besides the pricing but theres a 1 hour free trial Nov 21 03:48:18 need an actual device too Nov 21 03:48:28 im going to use test suites too Nov 21 03:48:43 need to make a recommendatioon for what the team should buy Nov 21 03:48:48 if you need me to test for you i'd be happy to Nov 21 03:48:53 oh Nov 21 03:49:06 http://www.att.com/shop/wireless/devices/samsung/galaxy-tab-2-titanium.html?WT.srch=1&cagpspn=pla Nov 21 03:49:15 google needs to make an emulator that doesnt need to load nearly every single android service Nov 21 03:49:20 like a lightweight one Nov 21 03:49:44 dblosevn: consider also a cheap Chinese gingerbread tab. Nov 21 03:49:50 ive got a hell of a machine lol Nov 21 03:49:58 im not supporting gingerbread Nov 21 03:50:12 half the market is gingerbread Nov 21 03:50:16 i have a couple of thoughs Nov 21 03:50:19 never buy chinese products from china, only buy imported products from china Nov 21 03:50:21 this is a private app Nov 21 03:50:26 of course, some apps are not appropriate Nov 21 03:50:27 ah Nov 21 03:50:28 k Nov 21 03:50:40 will be on the market but require auth to use it Nov 21 03:51:19 so i have some degree of control over what devices to tell them to use but not much Nov 21 03:51:27 im going to target honeycomb + Nov 21 03:51:49 really wish they would let me get away with jellybean + Nov 21 03:52:09 like some of the new apis that were released ith jellybean Nov 21 03:52:11 honeycomb? Nov 21 03:52:18 alright, it's working! Nov 21 03:52:20 think its api14 or 16 Nov 21 03:52:23 not really much point in targetting HC Nov 21 03:52:35 hc has all but dissapeared Nov 21 03:52:48 ya but tablets about a year old will have it' Nov 21 03:52:53 Go with ICS+, API Level 14 Nov 21 03:53:02 thought ics was api18 Nov 21 03:53:16 thats latest Nov 21 03:53:17 dblosevn: my galaxy tab II is 4.04 latest version if that helps Nov 21 03:53:19 dblosevn, not really, except for a few stragglers. But none that I know of Nov 21 03:53:21 and its been out a year Nov 21 03:53:36 i bought my thrive about a year ago with honeycomb Nov 21 03:53:41 dblosevn, API 14 = ICS, API 15 = JellyBean Nov 21 03:53:46 I HATE AVD! Nov 21 03:53:50 11-13 are HC Nov 21 03:54:04 havent rooted it yet as i dont want to but i could probally get ics on it Nov 21 03:54:22 i have ics on m htc desire Nov 21 03:55:31 dblosevn: isn't honeycomb lower than jellybean? Nov 21 03:55:34 but my hardware is slowing dieing Nov 21 03:55:48 i didnt start seeing it till after Nov 21 03:55:52 it could be before Nov 21 03:56:08 i have 2 tablet with jellybean bought this year Nov 21 03:56:19 http://developer.android.com/about/versions/jelly-bean.html Nov 21 03:56:41 so its after ics Nov 21 03:56:47 yea Nov 21 03:56:55 follow the alphabet guys Nov 21 03:56:58 its easy Nov 21 03:57:00 lol Nov 21 03:57:09 there are new devices with hc Nov 21 03:57:23 SpeedEvil? Nov 21 03:57:27 which? Nov 21 03:57:28 well youre targeting a specific API not devices Nov 21 03:57:45 Motorola motoactv, for example Nov 21 03:57:48 ya i know, its a pain the only thing killing andorid is not being able to keep all devices on the same os Nov 21 03:58:18 eleven billion tablets on dealextreme.com Nov 21 03:58:35 i understand why but apple gloats everytime they release a new version of ios and 85% of people upgrade to it within the first 7 days Nov 21 03:59:11 By January, we'll likely be at 5% / 35% / 60% (Froyo, Gingerbread, ICS+Jellybean) Nov 21 03:59:17 How can you disable the notification click sound when you press a button? Nov 21 03:59:20 and personally im just antiapple lol they sell the same device with a different name every year and people eat it up lmao Nov 21 03:59:39 omg, I write paragraphs of code to fix one thing and the next requires paragraphs. Nov 21 03:59:41 Apple only have 4 or so devices and they are all apple hardware using apple software... google will never have that :P Nov 21 03:59:44 dblosevn, not even a different name. just a bigger number Nov 21 03:59:47 how I miss VB6. Nov 21 03:59:54 yup, antiapple here too. have you guys seen the video where they compare the newest version of ios vs an old android phone? Nov 21 03:59:54 i know right Nov 21 04:00:00 whatever happened to Input.getMessage() people? Nov 21 04:00:01 android rocked apple hard Nov 21 04:00:10 always has Nov 21 04:00:14 mrenouf: I'd be surprised if gingerbread falls that fast Nov 21 04:00:18 apple integrates what droid had 2 years ago Nov 21 04:00:22 every year Nov 21 04:00:43 and people are just like omg look what apple did, and im like omg ive had that for 2 years Nov 21 04:00:44 best part was siri using google vs a google device Nov 21 04:00:46 problem with android is not the features. it's the bad phones. Nov 21 04:01:13 well the many devices will never change, its their way of beating apple in sales Nov 21 04:01:16 the problem is right now, that ICS needs too much resources to fit on low end devices, and emerging markets are where Android is growing fastest right now Nov 21 04:01:26 ya, there needs to be some stricter guidelines on devices Nov 21 04:01:36 so as GB is displaced in the US, it's likely growing by just as much elsewhere :-( Nov 21 04:01:40 not everyone is capable of buying a $200 phone everytime they release Nov 21 04:01:43 you shouldnt be able to release a device that barely supports the os Nov 21 04:01:54 however. if your customers are mostly US, then things are looking good Nov 21 04:02:07 my app is nearly 50% ICS+ now. Nov 21 04:02:19 if you phone needs 2G of ram just to use recycled views, and fives years ago you could do anything on 2G on a fullblown computer ussing many apps, that's the problem.... Nov 21 04:02:30 johny-b-goode: ++ Nov 21 04:02:55 hardware guys: look we made higher capacity device Nov 21 04:03:02 well i always thought mobile devices were limited because of battery consumption Nov 21 04:03:02 software guys: look this algorithm use so much more ram. Nov 21 04:03:17 its a lot different with literally infinite amount of fuel vs limited Nov 21 04:03:28 it's mostly RAM. Anything with 256MB or less just wont do Nov 21 04:03:39 trying to remmeebr what kind of tablet i got the other day but it was an amazon one, didnt even have the google auth wrappers, i installed them so i could get the play store but the tablet only has like 128mb of ram so its basically worthless and it runs jellybean wtf Nov 21 04:04:05 thats weird AF Nov 21 04:04:17 Amazon tablets do NOT run jellybean Nov 21 04:04:26 its not a kindle Nov 21 04:04:33 o_O Nov 21 04:04:35 trying to rememebr what it is Nov 21 04:04:41 log into amazon account? Nov 21 04:04:47 dblosevn: look on your email Nov 21 04:05:05 oh, you just mean it was A tablet on Amazon. yeah there's ones out there. Nov 21 04:05:20 ya it didnt meet the requirements for google play Nov 21 04:05:30 so it uses the amazon marktet Nov 21 04:05:50 So there's this assumption that API Level 16 = 1GB RAM right. Even though it's not guaranteed anywhere Nov 21 04:06:07 128m seems unlikely Nov 21 04:06:10 It also does things like set the per-application heap size larger Nov 21 04:06:11 well in my opinion if you bought a tablet and you didnt check the specs thats your problem Nov 21 04:06:21 i didnt buy it lol Nov 21 04:06:40 256m ram chips are often cheaper Nov 21 04:06:48 it seems like android was rushed a bit Nov 21 04:06:50 i work in a pc repair shop PT mainly for the change in senery and i get a lot of crazy deals on trade Nov 21 04:06:55 so while you could get Jelly bean on a device like that, it's going to be a terrible experience because most of the stuff that claims to be compatible just wont work, or you might only get one app open at a time. Nov 21 04:06:59 ie: VERY slow Nov 21 04:07:05 basically i just go in and write code lol Nov 21 04:07:44 i traded a pentium II laptop @ 1.0ghz with 512mb ram for 60 bucks and 2 of thoughs tablets Nov 21 04:08:42 think it was a latitude d520 Nov 21 04:08:45 geeksquad was trying to charge a friend of mine $200 for a virus scan with malwarebytes Nov 21 04:09:03 what's the button on the bottom right called? it's the 3rd of the main 3 android buttons: there's "Back", "Home", and ____? http://developer.android.com/sdk/images/4.0/home-lg.png Nov 21 04:09:17 regedit, Recents Nov 21 04:09:22 ah Nov 21 04:09:33 at least thats what I call it, it opens the recent apps list Nov 21 04:09:41 is there a dev guide article about that button Nov 21 04:09:45 i always press that damn thing when i want a context menu lmao Nov 21 04:09:47 i think my tablet calls it application manager Nov 21 04:09:49 i'm reading about tasks & back stack Nov 21 04:09:56 task amanger* Nov 21 04:09:56 regedit, not really because it's function is fixed. Nov 21 04:09:58 manager* Nov 21 04:10:09 i only see mention of back and home button, not that one Nov 21 04:10:17 regedit: try task manager Nov 21 04:10:20 ya its been there since HC Nov 21 04:10:27 regedit, the only applicable dev thing, is hiding an activity from the recent activities list. Nov 21 04:10:44 which is rare, but desirable in specific cases Nov 21 04:10:50 in fact the behaviour of that button is not at all in sync with what's explained about tasks & back stack Nov 21 04:11:15 that button makes _everything_ look like it's in 1 stack Nov 21 04:11:37 unless i'm understanding it wrong Nov 21 04:12:01 it lists tasks Nov 21 04:12:04 it also shows multiple instances of 1 app if it's been open multiple times Nov 21 04:12:13 that's correct Nov 21 04:12:19 those would be different tasks Nov 21 04:12:33 it shows the activity that's on top of the stack Nov 21 04:12:44 i wish an explanation of this button were integrated in the article about tasks & back stack Nov 21 04:12:59 thats all there is to it really Nov 21 04:13:05 it lists tasks Nov 21 04:13:25 not sub-activities within tasks too? Nov 21 04:13:37 regedit, no that would be confusing Nov 21 04:13:40 anybody looked the new win8 stuff? Nov 21 04:13:44 for comparison. Nov 21 04:13:50 hm i see Nov 21 04:15:58 mrenouf: what about hiding an activity from recent activity list, does that trigger any sort of even to the activities in that stack? Nov 21 04:16:02 er *task Nov 21 04:16:04 finally figured it out it was a cruz t510 Nov 21 04:16:05 wtvr Nov 21 04:16:23 *event Nov 21 04:16:24 but the specs im seeing about it are deifnitely not the specs of the 2 devices igot Nov 21 04:17:20 regedit, so a common case is something momentary like a login prompt or a alert (in the app), that would be confusing for the user to be presented with if they switched away and returned later Nov 21 04:17:41 anyone know what that blue line under the time in the right hand corner is? its constantly moving. this is on a nexus s. I have another nexus s on the same version and theres no blue line. Nov 21 04:17:41 https://www.dropbox.com/s/6vzljf4i0c7k587/Screenshot_2012-11-20-20-12-28.png Nov 21 04:18:44 mrenouf: right i see Nov 21 04:19:10 mrenouf: you mentioned something about apps being removed from that recents list Nov 21 04:19:19 regedit, thats what I meant Nov 21 04:19:30 oh Nov 21 04:19:35 not removing, but kept from being added. Activity... not "apps" Nov 21 04:19:46 i thought you were talking about when user swipes an app off that list Nov 21 04:20:39 anything of interest developer-wise happens when user swipes an app/activity/task off the recents list? Nov 21 04:20:55 regedit, oh, no thats just closing the activity/task and/or removing a cached task (killing a process kept around for reuse) Nov 21 04:21:03 when you swipe it off onDestroy probably. Nov 21 04:21:18 ok. haz docs link about that? Nov 21 04:21:41 when you swipe it off its like calling finish() in the activity Nov 21 04:22:04 Sorry, was partially confusing FLAG_ACTIVITY_NO_HISTORY with FLAG_ACTIVITY_EXCLUDE_FROM_RECENT Nov 21 04:22:45 oh yay now i have some leads for searching docs, thanks Nov 21 04:23:17 oh, yeah, there's heaps of docs in the Intent class Javadoc Nov 21 04:23:25 regedit: this isn't a doc but it deals with recent Nov 21 04:23:25 http://forum.xda-developers.com/showthread.php?t=1663426 Nov 21 04:24:10 I still don't quite grasp task affinity and and all that. It is very confusing. Nov 21 04:24:19 it is, a bit Nov 21 04:24:48 the descriptions are clear but not when to use them or exactly what side effects occur Nov 21 04:25:07 "Swiping from task manager is the same as closing it using the back button." --wait a minute, when a user "Back"s off from an activity to home screen, that activity is still in the recents list - am i wrong? Nov 21 04:25:16 and thats where apple triumphs over google in developer support Nov 21 04:25:35 regedit: keep reading, my mistake its an ongoing discussion i guess Nov 21 04:26:05 that's why i want real docs Nov 21 04:26:27 its to my understanding that the last post on page one by "Member" is the correct one Nov 21 04:26:44 and from my experience of testing "Recent" Nov 21 04:26:53 basically, its like calling finish(); Nov 21 04:27:49 oh this is going to suck Nov 21 04:27:50 the "same as closing it using the back button" bit, i think is trying to say that it won't kill your process with your services or wipe your alarms or anything (it's not a force close). but the activit(ies) itself will get finish()ed Nov 21 04:28:41 i just assumed i would be ale to download hotfixes for strings in the background in my app, but it seems you have to recompile the app to replace strings in the app Nov 21 04:28:45 does anyone have any experience with the top right corner moving bar? Nov 21 04:28:45 https://www.dropbox.com/s/6vzljf4i0c7k587/Screenshot_2012-11-20-20-12-28.png Nov 21 04:29:16 i see KaiKai Nov 21 04:29:19 thanks Nov 21 04:29:23 np Nov 21 04:29:25 i think im going to basically have to write my own resource manager :-( Nov 21 04:29:45 KaiKai: is that maybe just a buggy display anomaly? Nov 21 04:30:08 dont know... it moves randomly so im assuming something is controlling it and a duplicate device with teh same version isn't showing that bug Nov 21 04:30:19 as the app is multilingual and i need to be able to pull all the strings on demand for all languages as well as new translations as they arrive Nov 21 04:30:32 ahh dumb me Nov 21 04:30:51 figured it out, i installed micro cpu monitor without realizing it was running Nov 21 04:31:07 as a service, no wonder "recents" didnt pick it up Nov 21 04:33:17 lol wow really Nov 21 04:33:30 that's a cpu HUD huh Nov 21 04:35:21 i guess im going to have to use sqllite instead of resources for all my strings Nov 21 04:35:52 i have to have a way to update all the strings on the fly Nov 21 04:36:41 as well as locacle specific images Nov 21 04:36:48 dblosevn whats your problem? i can always load string resources on the fly Nov 21 04:37:00 unless were talking about different resources Nov 21 04:37:01 no i need to be able to change them at runtime Nov 21 04:37:08 ahh Nov 21 04:37:26 eg download a new xml from the server if changes are made Nov 21 04:37:28 couldn't you save it to sdcard? Nov 21 04:37:41 string resources are compiled in the apk Nov 21 04:38:02 only way to change them is to recompile Nov 21 04:38:08 right, but i mean instead of sqllite Nov 21 04:38:48 wouldnt sqllite be faster then writing my own filetype and storing them on the sd? Nov 21 04:39:18 i save around half a mb and it barely takes a second Nov 21 04:39:23 pretty much everything changes between langs Nov 21 04:39:33 images, text etc Nov 21 04:39:53 and they make changes to the products daily Nov 21 04:40:39 i already have too much going against me using resources anyways so i might as well quit trying to use them lol Nov 21 04:41:18 need to be able to have the app using a different locale then the system locale Nov 21 04:41:29 and it sounds like thats buggy as hell Nov 21 04:42:08 eg a english speaking sale rep with a en-us locale might be doing an event in paris and need to switch the lang to french to demo it in paris Nov 21 04:42:35 but wouldnt necsissaily want to change his system locale Nov 21 04:43:13 http://developer.android.com/reference/java/util/Locale.html Nov 21 04:43:27 dblosevn: take a look at setDefault() Nov 21 04:43:28 :) Nov 21 04:43:34 ya you can change it but from what ive ready its buggy as hell ad sometimes will revert Nov 21 04:43:57 not too mention you have to setDefault in every activity Nov 21 04:45:34 im pretty sure youve read this post before since you mentioned it was buggy but have you tried the 2nd answer? Nov 21 04:45:35 http://stackoverflow.com/questions/2900023/change-language-programatically-in-android Nov 21 04:46:29 does activating a manta add a bunch of crap music to your account? Nov 21 04:46:45 KaiKai: ya thats one of the posts i read on it Nov 21 04:47:07 3rd comment on the second post Nov 21 04:47:15 he says its reverts after a while Nov 21 04:47:42 ive seen other hacks of changing it on a 100ms timer as well and my code will be reviewed so i cant do hacks like that Nov 21 04:47:48 i mean the 3rd post/2nd answer Nov 21 04:47:57 ahh Nov 21 04:47:59 lol eclipse closed on it's own. Nov 21 04:48:10 only if it can write working apps on it's own. Nov 21 04:48:11 thats a good thing Nov 21 04:48:44 not that ever would consider a hack like that ;-) Nov 21 04:49:05 eclipse is a piece of shit. I have an entirely different apk and when i install it it tells me the application has already been installed and its been brought to task. One would think it would use checksums -.- Nov 21 04:49:36 if only it would uninstall itself Nov 21 04:49:44 KaiKai: i just press the spacebar in one of the files and save it then click run again when it says that Nov 21 04:50:09 KaiKai: happens all too much though Nov 21 04:50:34 yea i know, or clean project. but its a real bitch when you just created 4 different classes and crossing your fingers for a clean run and it opens the old apk made 1 day ago Nov 21 04:50:49 i know right lol Nov 21 04:51:17 so what do you eclipse haters use for IDE? Nov 21 04:51:24 anyways im starving, got some things to think about Nov 21 04:51:25 IntelliJ IDEA Nov 21 04:51:37 dblosevn: bye, thanks again for your security tips :) Nov 21 04:51:42 intellij is from IBM? Nov 21 04:51:48 hope your project works out Nov 21 04:51:53 lol i use eclipse, not hating, just bitching lol Nov 21 04:52:09 intellij++ Nov 21 04:52:09 dblosevn: right, I use it too, but it's just a tad annoying. Nov 21 04:52:18 johny-b-goode: no, Eclipse is from IBM, IntelliJ is separate project Nov 21 04:52:21 are there any good guidelines to follow whether to make an app in launchMode standard or singleTop or singleTask or singleInstance ? Nov 21 04:52:39 bbl thanks guys for your help Nov 21 04:52:42 oh wait eclipse isn't free world, nuts cracking their knuckles, pushing out free code? Nov 21 04:52:52 IBM products have been known to not care about customers. Nov 21 04:53:26 well it is free... so they don't really have any reason to Nov 21 04:53:34 business wise of course Nov 21 04:53:42 they don't don't with lotus notes, or sametime either. Nov 21 04:53:57 or with anything else they may push out under the guise of software. Nov 21 04:54:20 johny-b-goode: Eclipse started out as Java rewrite of a good ide @ IBM, then got opensourced and moved to. nowadays, Eclipse Foundation Nov 21 04:54:39 p_l: interesting stuff. Nov 21 04:56:32 p_l: are you pplante? Nov 21 04:56:56 nvmd LOl pplante is in this room Nov 21 04:57:21 KaiKai: as far as eclipse being a pos; the problem you described is android/adt not eclipse Nov 21 04:57:31 i think many people bitch about eclipse, when really its the adt Nov 21 04:57:39 no eclipse is pretty shitty too Nov 21 04:57:40 g00s: mhm Nov 21 04:57:45 ron_frown: STFU ! Nov 21 04:57:47 haha Nov 21 04:57:51 I use it for completely seperate tasks than android stuff Nov 21 04:57:56 yeah, me too Nov 21 04:58:07 infacto n machines that dont have android adt or anything Nov 21 04:58:10 most of my problems are adt Nov 21 04:58:18 iono, from experience Google is like IBM but just caring a little more about their users Nov 21 04:58:28 slow startup, loading all projects from directory structure, not project files ( not known anyway), loading all projects in package explorer, crashing randomly, those are eclipse related things that piss people off. Nov 21 04:58:47 the only time my eclipse starts taking crazy memory is when i have the adt loaded for along time, for example Nov 21 04:58:49 I am sure some of it is adt Nov 21 04:58:56 but man Nov 21 04:59:06 two bad eggs = ? Nov 21 04:59:31 still, bitch and use product Nov 21 04:59:36 g00s: I have a 4g machine, 20 IE windows, 10chrome windows, vmware machine, and then eclipse. it's too slow. and the mobo is only expandable to 8G ddr2. and ddr2's freaking expensive. Nov 21 04:59:38 the cycle. Nov 21 05:00:01 johny-b-goode: i only have a pos MBP from 2009 and eclipse works fine . now the android emu … thats another story Nov 21 05:00:14 it almost never goes above 500 mb rss Nov 21 05:00:30 starts off at like 235; and climbs because peices of the adt plugins are lazy loaded Nov 21 05:00:39 yeah after few open windows windows just goes nuts. writing memory out to disk, is just too slow. Nov 21 05:00:54 my android emu … jesus christ; dont leave that thing running while you go to bed Nov 21 05:01:18 i have woken up with it consuming 100% cpu - fans going nuts, etc Nov 21 05:01:24 actually, just doing nothing it takes 10% Nov 21 05:01:33 I have to restart windows now and then because of my audio interface which doesn't like it if there's power surges on the circuit. Nov 21 05:01:46 O.o Nov 21 05:01:48 which cleans out the memory now and then, otherwise, I leave it running. Nov 21 05:02:01 i've had adt give me an hour worth of bullcrap exporting an APK thats 10 mb and also like g00s mentioned going crazy with 100% cpu Nov 21 05:02:53 android emulator is working fine so far. hasn't leaked mem. Nov 21 05:03:08 so when you install the ADT into eclipse, it asks if you want to send usage stats back to goog .. so they should know it sucks right ? Nov 21 05:03:22 google doesn't look at usage stats -.- Nov 21 05:03:29 hopefully its sending stuff back like "i keep wanting moar memory" Nov 21 05:03:36 no to all snooping. Nov 21 05:03:45 if they can't improve it in their labs, they'll never improve it. Nov 21 05:03:45 ^ Nov 21 05:03:59 lol, me wants moar memori!! Nov 21 05:05:57 its cause google encourages their developers to create new creative software. meaning after a developer develops a piece of software and moves on to the next, the software either dies or gets picked up by someone else who holds little interest in the software Nov 21 05:07:02 huh Nov 21 05:07:13 how is that not just universal to everything? Nov 21 05:07:36 well they have too many creative developers you know what im sayin? if not then nvmd lol Nov 21 05:08:27 are you on drugs?: Nov 21 05:08:53 sometimes :/ Nov 21 05:09:18 k Nov 21 05:09:31 explains my flawed abstract weird mofo logic Nov 21 05:12:30 mofo logic :) Nov 21 05:13:20 pot is not "drugs" ... its medicine Nov 21 05:13:21 KaiKai: maybe you can write a calculus of mofo logic; just imagine … you can be as famous as Lofti Zadeh ! Nov 21 05:14:05 i'm sure mofo logic and fuzzy logic have similarities Nov 21 05:15:34 capella: ++ Nov 21 05:16:08 pot makes you think abstractly, thus mofo logic Nov 21 05:16:26 heh :P well yes it does do that Nov 21 05:17:08 for showing a new screen, what do you guys recommend? Activity or FragmentActivity? Nov 21 05:17:14 i can spend two hours perfecting what would normally be 2 lines of code Nov 21 05:17:35 2 lines is already perfect. Nov 21 05:17:47 well yes - i agree Nov 21 05:17:51 unless you're adding checks for nulls or bad input. Nov 21 05:17:56 which so few devs so anymore. Nov 21 05:18:01 *do anymore Nov 21 05:18:43 i mean even i dont recommend coding high Nov 21 05:19:39 ok now how does one force the simulator to change orientation. Nov 21 05:21:19 it has to want to change Nov 21 05:21:31 lol change from within? Nov 21 05:21:49 heh sorry Nov 21 05:21:56 woo! ~flails arms~ almost have group SMSing completed ^.^ just have to figure weather or not to save conversations, and which method will work best ^.^ Nov 21 05:22:21 save conversations. Nov 21 05:22:24 mail to yourself. Nov 21 05:22:26 blackmail users. Nov 21 05:22:35 XD nono Nov 21 05:22:36 ron_frown: check this out http://www.gizmag.com/re-timer-led-glasses/25115/ Nov 21 05:23:12 like, say you're chatting with 3 of your buddies simultaneously... and you talk to them quite a bit. It sends any messages you type to all 3 of them, and lists replies from them in 1 window Nov 21 05:23:21 hmm Nov 21 05:23:59 I'm wondering on weather or not I should save the 'group' in the contacts activity automatically, manually, or not at all. Nov 21 05:24:51 Seeing as you can always read their messages individually at any time.. (non app user friendly) Nov 21 05:25:19 IIRC, Skype saves the 'group' in the contacts. Nov 21 05:27:24 I'm using all original SMS methods... talking to 3 buds means the app is manually SMSing each one, and nobody sees the others messages (unless they, too, are using the group chat function of said app) Nov 21 05:28:43 so, technically speaking, "groups" are just a shortcut of reading and talking to 3 friends simultaneously, not actually a seperate conversation Nov 21 05:30:03 You should at least give the user the option of whether or not they want to save the group in their contacts. Nov 21 05:30:38 manual saving it is ^.^ Nov 21 05:30:51 dang it, I have to read up on intents now? Nov 21 05:30:56 for activity. Nov 21 05:30:58 Bryden: nope. you should do everything for the user. force them to get that new contact, duplicate it, just all bunch of nastiness Nov 21 05:31:26 oh you have no idea drpenguin XD you could easily rack up SMS charges if you don't watch yourself Nov 21 05:31:52 Komak57: I know ;) I wrote an SMS app a few years ago Nov 21 05:31:55 don't you have unlimited texts? Nov 21 05:32:16 or is this for the users? Nov 21 05:32:21 right now, it splits SMS automatically, and sends to multiple users. SMS a msg ~350 chars long to 3 of your buddies, you just sent 9 SMS's in a second Nov 21 05:32:50 and of course I have unlimited SMS > 3> Nov 21 05:33:46 unlimited msgs woohoo! Nov 21 05:33:50 WOOO! Nov 21 05:34:04 I guess the next step is going to be the most difficult =.= Nov 21 05:34:05 Yeaaa! Nov 21 05:34:26 I need to read into MMS and figure out how to make it compatible... since the data structures are nowhere NEAR the same =.= Nov 21 05:34:37 hmm, can't you use bundles instead of intents? Nov 21 05:34:39 Komak57: Adapter! :D Nov 21 05:34:42 Hey Guys, I facing this isuse here https://groups.google.com/forum/#!msg/android-developers/O8z7-Q7XW38/y5qzxaeKQUwJ Nov 21 05:34:58 Komak57: (Not the "Android" Adapter, but the Design Pattern!) Nov 21 05:35:19 basically when I try to save my current fragment it goes voosh! in onSaveInstanceState Nov 21 05:36:38 drpenguin, with SMS, the Number, date, thread_id, and message data are all in one database. With MMS, i've got the thread_id, read, and seen in 1, data in another, and address in another =.= Nov 21 05:37:20 Komak57: ok, it just sounds like more queries? Nov 21 05:37:51 indeed... which will be a bit of a painful process to convert to my compatible format, but I'll get it done Nov 21 05:38:20 still not 100% sure of what to do about thread_id's Nov 21 05:39:08 is startActivity blocking? Nov 21 05:39:16 wait, all android UI is non blocking, correct? Nov 21 05:39:36 johny-b-goode, what are you trying to do with an intent =.= Nov 21 05:39:53 do you want to open an Activity? and from what? Nov 21 05:40:45 From listview click item. launches new activity with item info. (either item ID or entire obj). which shows the field for editting. press done or esc. react accordingly. Nov 21 05:41:37 johny-b-goode: so you are just creating an intent instance from OnListItemClick (or whatever the callback is) and stuffing the data from that item entry into the intent? Nov 21 05:42:11 pretty much. Nov 21 05:42:18 create a handle onCreate (handle = this;) and make sure to use intent.addFlags(Intent.Intent.FLAG_ACTIVITY_NEW_TASK); Nov 21 05:42:21 well.. thats really simple Nov 21 05:42:35 using as example: http://www.javacodegeeks.com/2010/11/android-full-app-part-5-launch-activity.html Nov 21 05:43:05 I think intent.putExtra and addFlags with this new_task thing should be it. Nov 21 05:43:18 usually is Nov 21 05:43:24 capella: i only code high when i have mechanical things to do aka checking for nulls and logging Nov 21 05:44:08 listening to epic music while doing mechanical null checking basically becomes a battle Nov 21 05:44:21 watching netflix while coding can get distracting XD Nov 21 05:44:24 i've been checking here 'coz many of my designs were shot down before even starting because of problems. so I fugre it's easy to run it by devs vs change it later. Nov 21 05:44:55 I make a request after I've been googling up a brick wall for a few minutes XD Nov 21 05:45:31 yeah I googled it and figure it out and then figure better to mention here. Nov 21 05:45:35 heh ... reviews stuff i coded high the day before Nov 21 05:45:36 wonders what the hell was I doing? Nov 21 05:46:04 I do the same when I google myself >3> Nov 21 05:46:22 if you google yourself youll go blind Nov 21 05:46:45 heh - in so many ways Nov 21 05:46:59 i only google myself so i can delete footprints ¯\_(ツ)_/¯ Nov 21 05:47:28 i still find articles and games i wrote WAY too many years ago ... BASIC programs ... GOTO statements .... ewww Nov 21 05:47:28 capella: you need to get 100% sativa, and watch the crazy code fly Nov 21 05:47:50 . o O ( sativa .... drools ) Nov 21 05:48:36 coding with sativa and tea or caffeine for one 1 hour is worth more than a full day to me. and the stuff that comes out is crazy Nov 21 05:49:06 but i have to say it does have its occasional wtf moment Nov 21 05:49:10 I remember maddog 20/20, smokes, and borland c++ compiler back in college. Nov 21 05:49:15 while TNG on tv. Nov 21 05:49:19 Guys how to I get instance of a fragment from current view pager Nov 21 05:49:34 borland c compiler was the bomb! Nov 21 05:49:40 even better tahn coding on pot is reading articles on programming ^_^ Nov 21 05:49:55 capella: after you figure out that you could change the blue background.... Nov 21 05:50:10 misses the blue ... i never changed it Nov 21 05:50:22 I changed it to black after a while.. Nov 21 05:50:27 was still doing MASM then also Nov 21 05:50:27 you know it showed others you knew more. Nov 21 05:50:41 just amateur programmer antics. Nov 21 05:50:56 I love picking up a good, big programming book and throwing it at the nearest idiot :P Nov 21 05:51:08 I never could stand reading programming books. Nov 21 05:51:15 like the GOF books. Nov 21 05:51:28 hit em with yourdan .. principles of structured analysis and design Nov 21 05:51:35 people memorize design patterns and then write convolute objects just to implements the latest pattern they read about. Nov 21 05:51:45 =.= the MS-DOS coding book was... misleading... i was NOT expecting assembly =.= Nov 21 05:52:05 Komak57: oh cmon assembly is fun! Nov 21 05:52:08 INT 15 ... INT 3 .... Nov 21 05:52:22 no, no it is not =.= Nov 21 05:52:34 int 21 is what I remember. Nov 21 05:52:42 jne *+8 Nov 21 05:52:44 push crap,ax Nov 21 05:52:46 int 21 Nov 21 05:52:50 MY EYES Nov 21 05:52:52 THEY BURN Nov 21 05:54:05 so there's no File -> New Activity menu. Nov 21 05:54:17 try assembly on a DEC PDP-8 .... 7 bit bytes ... counts to 777 then rolls to 1000 Nov 21 05:54:21 johny-b-goode: you make a new java class that extends activity Nov 21 05:54:26 3 but that is Nov 21 05:57:14 cool. step 1. completed. Nov 21 05:58:15 world domination? Nov 21 05:59:05 cool my fennec build just finished Nov 21 06:18:03 ok layouts take some skill. Nov 21 06:19:15 Along with anything have to do with Android. :) Nov 21 06:19:42 right, I can't seem to have textview followed by the editview. and the textview refuses to show up. Nov 21 06:22:07 johny-b-goode: why cant you? that doesnt make sense Nov 21 06:37:21 drpenguin: it's probably the comination of properties I'm using. it's my first layout design from scratch. Nov 21 06:37:46 johny-b-goode: probably Nov 21 06:43:57 phew, finally done. the layout design is even more annoying than in html/css. Nov 21 06:51:10 ok, in my layout there's a control in the middle EditText which takes up the entire screen. But when the keyboard is visible, the EditText resize to very small and the entire activity resizes itself. Nov 21 06:51:35 my activity in manifest is declared with android:windowSoftInputMode="adjustResize" Nov 21 06:52:04 what's a good alternative to use. Nov 21 08:35:46 hi I ran into an issue when trying to identify my sms message from my intent using msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]); stuff. for some reason when i do sms = msgs[0]; timestamp = sms.getTimestampMillis(); the time stamp is in seconds, last three digits are always 000. yet when i query the inbox i can see the correct timestamp. this is on android 2.3 emulator. Nov 21 08:36:23 is this expected/normal behavior? Nov 21 08:39:04 the problem is that to do something with that particular message I need to get the id (or some identifying piece of data about the message. problem is i can get the _id from the intent, so i need to use the only other piece of unique information, like the timestamp + address, but that doesn't work since the timestamps don't match. hrmf Nov 21 08:51:47 does anyone know if newer android versions support the charset koi8-u? Nov 21 08:56:06 guess the short question is why does createFromPdu() give you secconds but querying the content/inbox gives you milliseconds? and is that a bug or not? Nov 21 09:10:32 I haven't touched Java in a long time Nov 21 09:10:55 Tinkering with 'Hello World' android app Nov 21 09:11:12 Context class not recognized... do I need to import something special? Nov 21 09:12:19 Context cannot be resolved to a type Nov 21 09:12:32 you have the import for your context? Nov 21 09:12:50 Probably not... been years, have to relearn the basics Nov 21 09:13:01 import android.os.Bundle; < --- That's it Nov 21 09:13:23 step 1: use an IDE with java support Nov 21 09:13:52 I installed eclipse and ADT Nov 21 09:14:48 go to the line with the error, press ctrl+1 Nov 21 09:16:29 That worked, thanks! Nov 21 09:16:55 Went from stock hello world to a hello world that toasts :) Nov 21 09:17:55 What's the deal with the graphical preview/edit thing as part of the ADT plugin in eclipse? Nov 21 09:18:10 'Graphical layout' Nov 21 09:18:39 Can that section be used as a WYSIWYG editor? Nov 21 09:19:00 Because there's palettes of UI widgets but you can't drag and drop Nov 21 09:22:02 yah you can in eclipse ... ? i did find how confusing but you can ... easier to code manually Nov 21 09:22:17 hi Nov 21 09:22:44 i'm having trouble selecting actionbar tabs (actually ABSherlock) Nov 21 09:25:06 just updated to 4.2, and suddenly gson.fromJson() starts getting into infinite loops and throwing stackoverflowerror. Anyone seen anything like this? Nov 21 09:31:19 damn return of the dreaded ABS issues - getSupportActionBar() returning null, im sure i went thru this 3 weeks ago and finally fixed it after days n days, yet somehow its happening on clients device Nov 21 09:31:40 and osmehow i have no memory of how i fixed it or what it was related to Nov 21 09:32:36 bleh... i hate stripping down a database to figure out how it works =.= Nov 21 09:34:05 wonder if i have logs of this irc i can hceck Nov 21 09:34:08 i remember fixing it Nov 21 09:34:14 most annoying issue in the world :[ Nov 21 09:34:50 i am using a ActivityInstrumentationTestCase2 to test an activity, which is included in the test project, to test a fragment (basically i want to test a fragment in "isolation" from the overall system). i am also using actionbarsherlock with the android support library v4. the fragment in question is declared in xml, but when i try getSupportedFragmentManager().getFragmentById(...), it always returns null. when i use a fragmenttransaction and executepending Nov 21 09:35:52 i have added all dependencies required by the project that i want to test (library wise) to the test project Nov 21 09:36:02 apparently, MMS has 3 major databases I need... First, and foremost, is /MMS which contains data like the thread_id, date, inbox/outbox, read status and seen status. Next is /MMS/PART which are fragmented pieces of the MMS data. Part 1 is typically "image/..." and part 2 is typically "text/plain". Part 2 contains the mms message data, part 1 contains, well, the image. There are no links Nov 21 09:36:02 between /MMS and /MMS/PART to tell me which go to which yet... gonna have to try again with /MMS/id/addr and see what I get.. Nov 21 09:40:01 sick to death of these issues Nov 21 09:41:24 can someone help me with ABS? normal tabs with tablistener works, but when i want to force another tab to be selected it won't change the selector! Nov 21 09:41:30 Ehm... I need to output my text to a different buffer... LogCat doesn't store enough lines ._. there an 'easy' way to do this? Nov 21 09:41:34 i've tried everything! Nov 21 09:41:50 I have an embarassing question that I should know the answer to, and I bet 99% of people in this room know the answer. Let's say I have this: http://pastebin.com/kA95kbWW, a simple class that reads headers from HTTP request. The code isn't the issue. It's how in the world do I utilize this class from another class? I keep wanting to type things like: Meta requestStuff = new Meta(this).... Nov 21 09:41:50 But, I really need to understand what's going on here. Nov 21 09:42:12 .select() , .setSelectedNavigationItem() , removing all tabs and adding again with different selected item... Nov 21 09:42:43 Follow-up to my message: I'm tired of trying to cram all the code into one class, for lack of knowledge on how to separate .java files and keep things tidy. Nov 21 09:44:00 pierpark dont put it in main like that, put it in a method or a conatructor Nov 21 09:44:15 then call it like Meta m = new Meta(); m.doit(); Nov 21 09:44:21 constructor* Nov 21 09:44:37 Gaz`: Awesome. You rock. I'll go see if I can figure out how to make the constructor. Nov 21 09:44:52 public Meta() {} Nov 21 09:45:09 main is a weird one, a sort of entry point Nov 21 09:45:34 main is only used for standalone java programs, and only as the main entry point, indeed. Nov 21 09:45:53 In a normal java app you'd use it only once, on Android, you don't use it at all. Nov 21 09:46:18 I don't see a lot in this class that should go into a constructor, there is no state in the class. Nov 21 09:46:29 So a method would be the right thing to make. Nov 21 09:46:45 can anyone recall why this returns null getSupportActionBar(); Nov 21 09:47:07 i think i had to set targetsdk to 15 Nov 21 09:47:24 Ah. That helps a lot, because I keep seeing that main stuff everywhere and it's confused me to no end, not knowing how to utilize it. I've tried about everything, just trying to learn. Things like... Meta.main.hopefully_something_useful; but, that's why I'm here. I appreciate you guys, and I'm a frequent flyer here... it's exhausting, but at least I'm learning. Nov 21 09:47:34 which it is now, and tweak theme and remove any calls to set full screen etc, but all thats done, unless client is using old build, wouldnt suprise me that m pay is held up 2 weeks because of their stupidity Nov 21 09:47:58 yeh pierpark itll come naturally soon, what else u code? Nov 21 09:49:40 pierpark: the official tutorials help a lot, did you read them? Nov 21 09:51:07 Gaz` ... I do a lot of work in Python, though only been about a year in that area... I've been held up in PHP land for years with my job.... But I've dabbled in about everything I've found worthwhile... I did read a -lot- of the tutorials, but I was clueless, so I just tried to learn by doing, where I could... and then I end up stuck, having to try to go read how/why. I've lost my mind I Nov 21 09:51:07 think. Nov 21 09:52:19 hehe Nov 21 09:52:41 If I listed everything I have been decent in, it'd be about 10 different languages/scripting languages, and so I end up trying to speak Pythonajavaphpvbified garble :/ ha Nov 21 09:54:10 I used to love Delphi. But then I just... figured it was a dead market and going nowhere for me personally, in creating actual Windows applications. Wouldn't have a clue how to use it, today. Nov 21 09:55:48 yeh im using java or c# 99% of the time Nov 21 09:56:07 I was on AOL 2.5 'back in the day', writing "punters" and all of the things that got about 10 accounts of mine banned and pissed off my mom a time or three using Visual Basic.... I just wanted to create things... I didn't know any better. Someone said "here's VB", and I said "OK!" ... so I guess I never really had someone to follow to show me the ropes and the right languages and so on. Nov 21 09:56:08 I just kind of stayed in crap-ville with programming and wish I wouldn't have. Nov 21 09:56:49 there are no right languages Nov 21 09:57:04 ropes sure, to hang oneself with Nov 21 09:59:01 Zharf, I'm starting to see that. I guess what I really meant was... VB was not considered 'real' because it made you have to distribute that GD DLL that was 2-3 MB over a 56K modem with every single app you wanted to distribute. I was looking for something more standalone. I guess that's why I moved to Delphi. That did the trick for a lot of things, and then things became more focused on Nov 21 09:59:01 the web, and so the first thing I found was PHP. I don't like it, but it works, and has kept me employed. Suckily employed, but employed, nonetheless. Nov 21 09:59:12 I love Python, however. Nov 21 10:00:55 "but it works" that's where you are wrong ;) Nov 21 10:01:43 well, PHP has impressive baggage Nov 21 10:02:08 Like a garbage truck has impressive baggage :P Nov 21 10:02:19 :) Nov 21 10:03:10 someone mentioned 'go' was the php for server side; and i instantly lost interest Nov 21 10:03:32 hi guy s Nov 21 10:03:33 in contrast to php, what is not for server side? Nov 21 10:03:34 *guys Nov 21 10:03:41 Wait, people are doing client-side php? Nov 21 10:03:43 g00s: no, PHP for server side is php-cli :> Nov 21 10:03:46 1,000 internets to whoever can tell me how to implement http://jsfiddle.net/JFVdD/ like behaviour in android UI Nov 21 10:03:59 Haha. Well, it 'works' for keeping me employed, but it is so painful to use. Nov 21 10:04:13 think I'm done stripping the 3 databases for the info i need... now I should be able to patch up my MMS section and get it running... but... after some well deserved sleep :P Nov 21 10:04:28 feesh: you wouldnt do it like that Nov 21 10:04:38 g00s: a bit above, but in a way in same vein, is Node.js :) Nov 21 10:04:40 timroes: I understand I wouldn't use jquery and html Nov 21 10:04:40 you would more surly use a swipe to dismiss gesture on a list Nov 21 10:04:48 no i mean the design not the code :) Nov 21 10:05:00 Use a listview and a listadapter Nov 21 10:05:08 if you have a list and want to get rid of items, on android you use the swipe out pattern Nov 21 10:05:12 timroes: I really don't want to go into design philosophy, I've got a task and I want to know if there is a nice way to do it Nov 21 10:05:19 Using an animation on a listview row would probably work. Nov 21 10:05:41 yeah property animation on listviewitem could work Nov 21 10:05:51 Animations aren't that hard. http://developer.android.com/guide/topics/graphics/view-animation.html Nov 21 10:05:56 except, the rest of the items in the view will not move with it Nov 21 10:05:58 but since this isn't the behavior ppl expect, or should be done, ofc there is no lib for that Nov 21 10:06:11 timroes: look at the gmail app Nov 21 10:06:13 delete a message Nov 21 10:06:15 tell me what happens Nov 21 10:06:29 you dont delete mails in gmail by tapping on them Nov 21 10:06:50 sure, but I want to achieve the animation style, the click interface was purelty for demonstration Nov 21 10:06:54 okay perhaps i missunderstood, what do you want to achieve? the clicking to dismiss or just a fade out animation that is started frmo somewhere else? Nov 21 10:07:21 okay that is pretty much okay, and can be still done via animations :) Nov 21 10:09:14 [MMS] thread_id: conversation, _id: message id, date: date in miliseconds, msg_box: inbox/outbox, read: read state, seen: seen state, signature: contains message? | [MMS/id/ADDR] _id: part id, msg_id: message id, address: senders number | [MMS/PART] _id: part id, ct: data type ("image/jpeg"), _data: image location, text: message Nov 21 10:09:37 everything else 'seems' discardable Nov 21 10:09:45 hi, i have a design question. i have a screen which has some detail infos about an item. some views on the screen are touchable some ain't. if the user touches the view it is highlighted with a border. but should i highlight/underline the view so the user knows there is a function "behind" the view? Nov 21 10:10:46 m1hael, that sounds a little benign? The user can't really "click view behind clickable view"... Nov 21 10:10:56 What is this mysterious "view"? Nov 21 10:11:29 I suspect there's a reason it can't just be a button or some other standard control. Nov 21 10:11:39 f. e. a text view with an address. the user can touch the view and open google maps with the address Nov 21 10:12:03 I would make a small maps icon besides the adress, that indicates that this is clickable Nov 21 10:12:13 then it would probably be a good idea to change text color (something darker) or something to sugest it, yes Nov 21 10:12:40 Yes, a button / clickable icon would make sense, you can underline it but the user still won't know what's going to happen. Nov 21 10:12:42 i already thought about "decorating" the views with icons but don't know if that is the "android way" to go Nov 21 10:13:14 yeah you can do so, make it on the right side of the address Nov 21 10:13:22 so that it is aligned with the right border of the other text Nov 21 10:13:41 a user only needs some kind of sign that it is clickable. The 'old school' method is just color it blue and underline it. Nov 21 10:13:52 My opinion would be that going to a map is not necessarily the obvious action for clicking on it, so I would prefer a button, even if it's just an icon. Nov 21 10:14:39 In most of the designs I've seen, though, if it's directory service style, like a shop or a restaurant or whatever, there's usually a map button somewhere in the action bar, applying to the entire item. Nov 21 10:14:45 HDroid, supposing it said "map:yadayada" perhaps not. But I agree. Only app I have that implemented mappings was set as a button Nov 21 10:15:20 it is a detail view of employee data with address and phone numbers, etc. Nov 21 10:15:25 m1hael: https://www.youtube.com/watch?v=HTQDHT0qmN8&t=11m0s so it similiar to that small overflow icon Nov 21 10:17:19 timroes: thanx for the link. Nov 21 10:17:47 That's a nice vid Nov 21 10:21:01 timroes: I've not seen a clip animation though sadly, I was wondering how that would be done mainly, scaling actually scales the content inside the view also which doesnt't look very nice Nov 21 10:22:09 It's tricky in a listview, because it has a "hidden" container. Nov 21 10:22:49 But you should be able to get a hold of that container and animate it... but if your list is of limited size, it might be easier to just not use listview. Nov 21 10:22:57 m1hael: i would do something like that http://s14.directupload.net/file/d/3081/h9mvjveu_png.htm Nov 21 10:23:48 m1hael: ofc the icons should be a bit better centered vertically, but I wasn't now in the mood to sketch it pixel perfect :D Nov 21 10:24:21 That's a nice way to do it. Maybe even a small caption with "view" below it though, to imply an action. Nov 21 10:24:33 timroes: yeah that's exactly the kind of stuff i am trying to do. thanx Nov 21 10:24:53 and I even wouldn't make the whole address clickable but only the right side, where the icon is, perhaps i would even split it with a small separator, if you just make the right sside clickable Nov 21 10:25:24 timroes: already thought about that. thanx for your input Nov 21 10:25:35 I'd just make that an imagebutton Nov 21 10:26:43 m1hael: http://s14.directupload.net/file/d/3081/75ywtrru_png.htm with line, just image I can draw straight lines, freehand without the mouse :D Nov 21 10:27:03 Mhah Nov 21 10:27:07 That is one spammy site, though. Nov 21 10:27:18 hmm? Nov 21 10:27:32 yes Nov 21 10:27:54 these emus are so slow Nov 21 10:28:03 use tinypic.com Nov 21 10:28:04 or os Nov 21 10:28:04 ive heard of the fabled x86 version Nov 21 10:28:05 does anyone here has no ad blocker installed? :) Nov 21 10:28:18 timroes: I'm getting 2 popups every time. Nov 21 10:28:21 i didn't see anything "spammy" on there Nov 21 10:28:25 i dont get anything :D Nov 21 10:28:35 and see no ad at all, in fact it looked like a serious made page :D Nov 21 10:28:49 i don't have adblock installed Nov 21 10:28:57 okay sorry then for all the popups :D Nov 21 10:29:06 It's pretty serious about me getting to know some fake woman on facebook. But yes, it does eventually show the image :P Nov 21 10:29:31 :-D Nov 21 10:29:35 oh gosh :D Nov 21 10:29:41 i just turned off ad block :D Nov 21 10:29:51 OH GOSH , I am SOOO sorry guys :D Nov 21 10:30:00 it's ok. Nov 21 10:30:20 wow thats an terrible amount of different ads, all thrown together :D Nov 21 10:30:26 so that you for sure won't miss anything Nov 21 10:30:44 don't forget the popup window Nov 21 10:31:00 i got another one, when i closed the overlay ad :D Nov 21 10:31:03 it also broke chrome Nov 21 10:31:04 in flash Nov 21 10:31:08 adblock+ rules :) Nov 21 10:31:10 Aw, snap! Nov 21 10:31:30 Something went wrong while displaying this webpage. Nov 21 10:33:31 timroes: i always get confused for chrome: adblock, or adblock plus ? Nov 21 10:33:44 two plugins with almost the same name; so stupid Nov 21 10:34:33 g00s: i always take the one with the same icon, then on firefox :) Nov 21 10:34:40 the red stop shield with adp in it, so i guess ad block plus Nov 21 10:34:47 :) Nov 21 10:34:57 no the one with the hand :) Nov 21 10:35:09 but there are even several adblock plus in the store Nov 21 10:36:16 hi guys, i've downloaded this sample app https://github.com/tscolari/android-webview-sample-app Nov 21 10:36:41 when reading this http://developer.android.com/training/basics/firstapp/running-app.html Nov 21 10:36:45 it says to run ant debug Nov 21 10:36:59 it says Buildfile: build.xml does not exist Nov 21 10:37:31 you should load that sample app with eclipse and compile it there Nov 21 10:37:53 timroes, I don't have eclipse.. is the only way to get the build.xml file? Nov 21 10:38:03 hmm Nov 21 10:38:46 alex88: eclipse doesnt use build.xml Nov 21 10:38:52 go in the folder and type `android update project -p .` i guess it creates a build.xml Nov 21 10:39:05 timroes, yeah just found a page that states that.. let me try ;9 Nov 21 10:39:08 but not sure for that, NetBeans creates the build.xml automatically Nov 21 10:39:09 timroes: yeah, i believe that should do it Nov 21 10:39:36 i should target froyo.. --target is the id or the api level? Nov 21 10:39:49 alex88: android list targets i think Nov 21 10:39:50 it's target-15 Nov 21 10:40:00 so target- Nov 21 10:40:08 it goes by number(order installed) or name Nov 21 10:40:21 (id ok so --target 8 Nov 21 10:40:22 (perhaps also only the number works, but i used always with the target in front :D) Nov 21 10:40:33 timroes: btw, i also use this … always http://someonewhocares.org/hosts/ Nov 21 10:40:43 awesome ;) thanks timroes clever ;) Nov 21 10:41:19 g00s: nice one, didn't know that Nov 21 10:41:38 should be in cron Nov 21 10:41:56 g00s: lol :) Nov 21 10:41:59 ok, it was --target the id, not the api level Nov 21 10:42:02 is there a way to get noticed of the user has switched to another editText field? I want to save the value of the field when the user leaves the field Nov 21 10:42:39 mmh…both --target 8 and target 1 (the id of 2.2) i get Failure [INSTALL_FAILED_OLDER_SDK] Nov 21 10:42:43 i also use dnt+ for FF Nov 21 10:42:55 onigunn: view.setOnFocusChangeListener(...) Nov 21 10:43:04 but target in emulator is 2.2 Nov 21 10:43:28 timroes: u again! :) cheers - didn't saw it on flying over the api Nov 21 10:43:28 you must write a OnFocusChangeListener, and implement in your onFocusChange method what should happen on focus in and focus out Nov 21 10:43:59 its a general method of view and not of edittext :) Nov 21 10:44:03 perhaps thats why you missed it Nov 21 10:45:04 good point Nov 21 10:45:05 alex88: what does 'android list targets' give for 2.2? Nov 21 10:45:38 clever, id 1, api level 8 Nov 21 10:45:49 btw, i've edited the min sdk version in AndroidManifest and it works ;) Nov 21 10:45:55 ah Nov 21 10:46:14 alex88: yeah the id's are just incremental on every android target you install :) Nov 21 10:46:27 timroes, yup :) Nov 21 10:55:13 how odd... Nov 21 10:56:28 think client was using a month old build, grr Nov 21 10:56:30 a date of 1353460555 reads Tue Nov 20 2012 20:15:55 GMT-0500 (Eastern Standard Time) on an online time formatter, but my program is saying it's 01-16-70? Nov 21 10:56:56 The same code works for SMS, but MMS is haveing weird issues XD ~tries to find the bug~ Nov 21 10:58:35 Komak57: how do you convert it ? Nov 21 10:58:35 Komak57: I read GMT: Wed, 21 Nov 2012 01:15:55 GMT, not Nov 20? Nov 21 10:58:53 Gachl: GMT-0500 makes 20 o clock on 20th :) Nov 21 10:59:23 right Nov 21 10:59:47 Komak57: do you do new Date(1353460555); ? Nov 21 10:59:57 yes Nov 21 11:00:03 * 1000 :) Nov 21 11:00:06 java expects milliseconds Nov 21 11:00:07 not seconds Nov 21 11:00:13 new Date(myTimeStamp * 1000); Nov 21 11:00:16 that should be milli's Nov 21 11:00:17 and you should get your date Nov 21 11:00:21 but ill try it Nov 21 11:00:22 timroes: that was really fast forward, thanks again for your pointer Nov 21 11:01:04 *straight Nov 21 11:01:06 -.- Nov 21 11:01:22 you're welcome :) Nov 21 11:03:15 much better... so MMS stores the date in seconds, while SMS stores the date in millis Nov 21 11:03:36 that's in fact a funny 'feature' Nov 21 11:04:53 ok, i have narrowed down my problem, my current configuration is: support-v4 -> actionbarsherlock -> librarytotest -> testdummyproject -> android-junit test. apparently, i cannot inflate the SearchView provided by actionbarsherlock in my test project, dependencies are correct as far as i can tell, but i get an inflation exception stating that a certain resource is not a color state list, this must be related to a messup in R file creation somewhere i guess. Nov 21 11:07:29 morning, which class is better between http://pastie.org/5411310 (one) and http://pastie.org/5411308 (two), please? Nov 21 11:09:18 class two I'd say Nov 21 11:10:31 the implementation of VIew itself does something sort of similar in the sense that if you call View(Context ctx) it does a bunch of magic Nov 21 11:10:46 thx! Nov 21 11:11:02 if you call View(Context ctx, AttributeSet attrs) it just calls View(Context ctx, AttributeSet attrs, int style) but with style value of 0, which then calls View(Context ctx) as the first line Nov 21 11:11:45 it's easier to maintain one code path though Nov 21 11:11:46 aaaarg -headdesk- think i need some sleep now. getting hit and miss on my data downloader.. maybe i'll make progress tomorrow ^.^ Nov 21 11:13:42 Chainfire: your apps suck and crash a lot! p.s. they don't ? but as a lesser dev, it helps me cope kicking down someone better than myself :P Nov 21 11:14:15 cat feesh > /dev/null Nov 21 11:14:35 ;) Nov 21 11:15:41 cat feesh Nov 21 11:17:34 cat /dev/random > feesh Nov 21 11:17:49 2u94u8904ujnr92 hrt80n24 jrt9n h24f8 24 Nov 21 11:17:52 I had to ? Nov 21 11:31:15 cat > dog Nov 21 11:35:21 cat sleep > me Nov 21 11:35:31 dang didnt work Nov 21 11:39:17 dblosevn: int count = 0; for(int i = 0; i works everytime for me Nov 21 12:25:38 hello Nov 21 12:26:01 hello :) Nov 21 12:32:10 hi. how much is the size of double? 4 bytes? isn't? Nov 21 12:32:27 8 bytes Nov 21 12:32:32 ah ok Nov 21 12:32:42 float/int 4 byte, long/double 8 byte Nov 21 12:33:28 I ask cos i want to know how much i must allocate to 360 iterations x3 doubles x8bytes Nov 21 12:34:04 cos my app is crashing Nov 21 12:34:43 because it's out of memory? Nov 21 12:35:00 i think so Nov 21 12:35:17 doesn't it throw any exception in logcat? Nov 21 12:35:23 cos it's a List of an object of three double memebrs Nov 21 12:35:53 360*3*8 ~ 8KB Nov 21 12:36:05 yeah you cannot exaclty calculate it like that ofc Nov 21 12:36:19 maybe object creation has more overhead than the simple types underneath Nov 21 12:36:30 yeap it does Nov 21 12:36:31 maybe i should show you the engineering formula i am using in my code Nov 21 12:36:45 i don't remever how much it was exactly but an java object needs around 8 byte, without its data types Nov 21 12:37:06 what does logcat tell, when your app crashes? Nov 21 12:37:15 i cannot recall Nov 21 12:37:35 those numbers don't seem to be able to trigger out of memory by themselves Nov 21 12:37:37 but the program works well until i execute the calculations Nov 21 12:37:45 it's not reproducable the error? Nov 21 12:37:55 just see the formula Nov 21 12:38:01 i'll paste it Nov 21 12:38:30 the logcat output would be usefull too :) Nov 21 12:38:32 possible explanations: -You already got 99.9% of memory wasted before reaching that point. - There's an error and you are allocating more than 360 instances. - It was not OOM Nov 21 12:39:36 SuD, it's a List. not an array. it's index free just to remind you. Nov 21 12:42:28 cos i have a for loop : that i can make the steps towards 360 (obviously the whole angle of a circle) more slower for more accurate results, this means i might need more memory to save Nov 21 12:44:34 i want to plot the resulting coordinates which are two of the three doubles i have Nov 21 12:50:11 what mechanism is there to show a status icon of sorts (i.e. a spinner) in my activity when a sync is running via a syncadapter? Nov 21 12:53:44 timroes, this is the code http://pastebin.com/hhaKFNCb Nov 21 12:53:59 timroes, as you can see i am returning a list Nov 21 12:54:43 oh thats a lot let me dig into it :D Nov 21 12:54:49 nooo Nov 21 12:54:58 first wrong thing `if(sum_of_angels != 360)` Nov 21 12:55:10 why? Nov 21 12:55:47 this is the criteria Nov 21 12:55:53 sum_of_angels is a double, so due to floating point inaccuracies, there might be cases where you put three numbers (with no decimal places .0) to it and they would sum up, if they were integers, but don't sum up as doubles Nov 21 12:56:00 because they will be 359.9999995 Nov 21 12:56:07 what is not equal to 360 Nov 21 12:57:02 timroes, i never mind if they don't Nov 21 12:57:06 you need to make Math.abs(sum_of_angels - 360) < 0.000001 Nov 21 12:57:23 okay so you dont want to execute, even if 4 complelty right angles are inserted? Nov 21 12:57:34 timroes, it's not a big deal to me.. this is not a serious error Nov 21 12:58:20 okay i am not sure, if you got what the problem is, but this is one very serious error, because in fact you have no guarantee that your method will work if you put in 4 angles that are summed up to 360 Nov 21 12:58:38 it might sometimes, in other times it might not Nov 21 12:59:21 timroes, the criteria is that there is a rotatng cam with a follower working as a piston Nov 21 12:59:32 I've subclassed the AlertDialog.Builder for some custom styling. I'm adding a custom view to the dialog but this custom view is layed into a container view, which is black colored. Anyone knows if there is a chance to get this transparent? Nov 21 12:59:50 so there are phases based on the angle size Nov 21 13:00:08 4 phases actually Nov 21 13:00:57 so timroes just forget about the calculations... look into memory management for me only. Nov 21 13:01:14 okay just saying that your method anyway won't work, so I wouldn't bother with memory management :D Nov 21 13:02:18 timroes, the problem is that the same method works on desktop! weird Nov 21 13:02:39 JVM on desktop might bet more memory, then you get on a mobile device Nov 21 13:02:51 on android your app must get 16mb (but a device can give you more) Nov 21 13:04:22 from a memory point of view this method looks pretty okay, i don't see any obvious wrong allocations or stuff like that, so you should check with a profiler, what causes it, and still it would be a great help if you could post the logcat output... Nov 21 13:08:14 you can also crash your method with p_rise_angle = 0 parameter, but I don't know what your preconditions are, so don't know what data goes in there, just know that there are several points of failure, and if logcat says its an outofmemory error, i would use a profiler, since there doesn't seem to be any obvious memory allocation misstakes Nov 21 13:11:58 timroes, ok Nov 21 13:12:16 thanks.. i'll be back with the logcat Nov 21 13:17:54 timroes, guess what? logcat is showing me the dialogbox i am showing the results in has a problem Nov 21 13:18:06 hehe :) Nov 21 13:18:10 what problem? Nov 21 13:18:21 but the Math.abs remark was useful Nov 21 13:18:37 just a min Nov 21 13:18:42 as i said, comparing doubles with == or != you can be sure its just a matter of time, till your programm will fail Nov 21 13:19:06 and it highly depends on the numbers you put in Nov 21 13:19:28 you might get good results with 90.0, 90.0, 90.0 and 90.0 but it will fail with 90.0, 90.0, 91.0, 89.0 Nov 21 13:26:08 What's the best way to store 200 color names and their associated html values? Nov 21 13:26:43 lasserix: in code? I would say a Map :) Nov 21 13:26:59 I need to dump it into a gridview Nov 21 13:27:03 in resources, i would store them just as color resources in an xml file Nov 21 13:27:16 yeah then you might be good with a map Nov 21 13:27:20 thanks Nov 21 13:27:50 timroes, http://pastebin.com/wmmDu0KQ here is the dialog error Nov 21 13:28:40 i am displaying my results like this : new AlertDialog.Builder(getApplicationContext()).setMessage(output).show(); Nov 21 13:29:11 might output be null? Nov 21 13:29:38 Ah?! wierd! Nov 21 13:29:39 or your applicationcontext, what might be a bit strange Nov 21 13:30:04 app context always works Nov 21 13:30:22 i'll use Toast instead Nov 21 13:30:36 temporarily Nov 21 13:32:14 superlinux-hp: don't use getApplicationContext for the dialog builder, use `this` instead Nov 21 13:32:21 ok Nov 21 13:34:05 is it possible to play a video on only one overlay the same as the home screen of android Nov 21 14:13:39 hey, is it possible to get the font's height in pixels according to it's textSize? Nov 21 14:28:55 can i set the alpha of a view in my XML? Nov 21 14:29:35 onigunn, do you mean the color? Nov 21 14:29:46 a transparent color? Nov 21 14:29:53 onigunn android:alpha= <0-1f> Nov 21 14:29:59 i've got a relativelayout which should be only black with alpha 0.5 Nov 21 14:43:05 I'm working with some code a previous person in my position wrote, wherein an Asynctask fetches some data. I'm trying to implement the same thing, but often the data does not seem to populate the fields. I'm guessing this is because the Asynctask doesn't finish fetching the data before the UI thread runs its course. Is this a reasonable guess? And, if so, is there any way I can make sure the Asynctask has finished before I populate the UI? Nov 21 14:43:28 Hi all, lets say i have two functions f(x) and g(x), if i plotted a graph of f(x) against g(x), what would the resulting function be? Nov 21 14:44:34 Belacan I don't believe there is a resulting function, just plotting fx against gx, if you did composition you would f(g(x)) Nov 21 14:45:14 CompassRose: do you understand async's task callback behavior? Nov 21 14:45:46 lasserix, I'm afraid I do not. (I don't really know what you mean.) Nov 21 14:46:40 Asynctask has doInBackground where it does the offloaded work, it has onProgressUpdate which will incrementally be called as doInBackground runs (usually used to advance a progress bar, for instance), and finally it has onFinish which is when you want to update the UI Nov 21 14:47:28 *onFinish is called after doInBackground finishes Nov 21 14:48:14 Hmm. The original task the previous person made doesn't seem to have a function override for that at all. Nov 21 14:48:36 Is it an AsycnTask loader or an async task? Nov 21 14:48:55 Oh, no, it does. It's an async task. Nov 21 14:52:17 CompassRose: then do your fetching in background, and and onfinish update your view with the fetched data Nov 21 14:52:43 Okay. I will try to set that up. Thank you. Nov 21 14:53:14 Hi guys, is there a way to implement an Observer on changes to an SQLite database? Nov 21 14:53:35 I want to rearrange a ListView every time the db changes Nov 21 15:11:27 http://developer.android.com/reference/android/database/DataSetObserver.html ?? Nov 21 15:18:30 hi, I am making a android application that works with a REST api, Should I use a rest client library ?,what you prefer? Nov 21 15:20:27 mesuutt: I generally throw something up on the App Engine Nov 21 15:20:45 and then do all communications through AsynTasks Nov 21 15:21:11 *AsyncTask Nov 21 15:21:21 I am using django-tastypie as backend Nov 21 15:21:36 Is there a convience method for converting RGB to hex color code? Nov 21 15:22:00 lasserix: Color.parseColor() Nov 21 15:22:09 wait that's the other way Nov 21 15:22:14 yeah :) Nov 21 15:22:20 evana: Shoud not I use any thirty party libraries? such as http://code.google.com/p/resting/wiki/TwoMinuteTutorial Nov 21 15:22:20 mesuutt: are you asking about the client side or the server siide Nov 21 15:22:26 need the hex easier to store Nov 21 15:22:29 lasserix: why are you going the other way? Nov 21 15:22:39 avana: client Nov 21 15:23:00 I just have a list in rgb but I need to save it and want to save it as hex since 1 field is easier than 3 Nov 21 15:23:03 mesuutt: it's just a web call Nov 21 15:23:17 lasserix: convert your ints to strings and then concatenate Nov 21 15:26:45 avana: Should I write a asynctask class and use it for all request. you say this? Nov 21 15:27:48 evana: I know little English, I hope you understand me :) Nov 21 15:29:53 argh Nov 21 15:29:59 so very tired Nov 21 15:30:29 mesuutt: pretty much yes Nov 21 15:31:10 but I've found async-http library to be pretty good Nov 21 15:31:11 https://github.com/loopj/android-async-http Nov 21 15:38:15 hi all Nov 21 15:39:10 vavirta: which you suggest android-async-http or write myself asynctask :), I am asking because I am too new to android and java but I must choice right way for that I wont regret for this decision :) Nov 21 15:40:38 well, you should understand what asynctask does, but I'd suggest you to use async-http library Nov 21 15:40:49 vavirta: at the time, Android Asynchronous Http Client look beautiful. I should choice this maybe :) Nov 21 15:41:07 Ok, thanks :) Nov 21 15:41:40 np, you might also consider to wrap the AsyncHttpClient to singleton-class Nov 21 15:42:04 and create functions to each endpoint in your api Nov 21 15:45:14 Anyone use tabs inside a dialogfragment? Nov 21 15:46:39 hi i am used to use the number pad to input numbers. how can i make the keyboard emulation work with the number pad? Nov 21 15:47:30 vavirta: I maked an Asynctask that working with callback without any problem, this is good for me for now but I want to find right way for now and future, at now I am looking over async-http. Nov 21 15:48:11 superlinux-hp: do you want to make on a device the number pad appear instead of the normal keyboard in some edittext? Nov 21 15:48:20 or do you want to use your keyboard to enter stuff in the android emulator? Nov 21 15:49:38 mesuutt: that was exactly what I did too :) Nov 21 15:51:20 hey, is there a separate channel for android-ndk Nov 21 15:53:20 timroes, i want to use the laptop's keyboard to input the numbers which i can, however the number pad does not input the numbers. i am used to the number pad. and that's issue here Nov 21 15:54:58 oh okay, that i haven't heared about, i know that the keybord in general isn't sometimes (or always?) detected, if you don't give the avd a keyboard setting, but since you can enter via keyboard I guess thats another issue Nov 21 15:55:26 does anyone know if Chrome for Android implement its own network stack? Nov 21 15:55:32 and how much of the stack it implements? Nov 21 15:58:29 hello, everyone. I want to build an activity with a surface and underneeth it a few buttons. The surface should have a background image which is scaled to it size. Any suggestions ? Nov 21 15:59:50 yeah do it like that, sounds good Nov 21 16:09:31 what is the correct way to parse a url option set such as ?a=123?b=234?c=343 Nov 21 16:09:49 sorry ?a=123&b=234&c=323 Nov 21 16:09:52 Does anyone know a simple procedure to get the 4.2 source? I've tried the "repo init" approach; after about 45 minutes of output and downloading I get "error: Exited sync due to fetch errors" and no source files anywhere that I can find. Nov 21 16:10:07 docmur: isn't there a Uri.parse? Nov 21 16:10:14 just a sec will look; we've done that. Nov 21 16:11:47 docmur: use something like Uri uri = Uri.parse(someString) to parse the original uri... Nov 21 16:11:59 then uri.getQueryParameter("b") to get your "234" value. Nov 21 16:12:06 is that the sort of thing you're trying to do? Nov 21 16:12:14 yep Nov 21 16:12:21 thats exactly what I want to do Nov 21 16:13:03 there's also this one: http://developer.android.com/reference/android/net/UrlQuerySanitizer.html Nov 21 16:13:18 IIRC we had to use that when we had some funky query strings; some systems don't encode them properly Nov 21 16:13:52 that bit of the URL is called the "query string" -- searching for stuff like "android parse query string" will give you a lot of good results Nov 21 16:14:22 and at the risk of being pedantic, your example isn't right -- the ? only appears once; it should be ?a=123&b=234&c=343 Nov 21 16:19:49 anybody have any ideas on that 4.2 source code? Nov 21 16:26:42 is there somewhere a tool to test queries against content providers? trying to get a query working at the moment Nov 21 16:30:38 I got my Ingress invite :) Nov 21 16:35:05 how to figure out if the app is running for the first time ... i want if the app is running for the first time it should show information screens otherwise go straight to application Nov 21 16:36:02 digitalfallacy: probably just set a "firstTime" boolean flag on your application logic and check it when your launch activity starts? Nov 21 16:36:13 do you mean for the first time *ever*? Nov 21 16:36:52 yes Nov 21 16:37:18 seems like the easiest thing would be to check for the existence of a little file somewhere. Nov 21 16:37:26 show your info screens and then write to the file Nov 21 16:37:33 jgarbers1: and app variables are released from memory when the app stops ... so whenever the app starts it would look like its running for the first time Nov 21 16:37:35 what I'm doing wrong with this query? cursor.count is always 0 but there is a matching contact http://pastebin.com/t0QzDsuX Nov 21 16:37:36 store a user prefs --- if not found... (first time) Nov 21 16:37:38 next launch, if the file exists, skip the screen. Nov 21 16:37:55 digitalfallacy: right; you'll need to make something persistent. namely a file. Nov 21 16:38:03 digitalfallacy: Or a sharedpreference, perhaps. Nov 21 16:38:13 trovao: better yet Nov 21 16:38:13 you mean preference storage Nov 21 16:38:29 http://stackoverflow.com/questions/785973/what-is-the-most-appropriate-way-to-store-user-settings-in-android-application Nov 21 16:38:36 then you could easily have a "Don't show me this again" checkbox on your last info screen, and either save or don't save the preference Nov 21 16:39:02 basically you just have a preference that says "show info screen" - and have that default to true if it's not set. Nov 21 16:39:05 jgarbers1: right i guess this is the best way Nov 21 16:39:06 trovao: agree? Nov 21 16:39:46 jgarbers1: Yeah. Nov 21 16:39:48 hello, everyone. I want to build an activity with a surface and underneeth it a few buttons. The surface should have a background image which is scaled to it size. Any suggestions ? Nov 21 16:40:00 jigal: you should ask a question Nov 21 16:40:03 a real question Nov 21 16:40:13 my suggestion is still: it looks good, do it that way Nov 21 16:40:27 what do you want to know? if it sticks with design guidelines? Nov 21 16:40:57 timroes, well it's a long question. Mabe i should post the question somewhere and put here just a link ;-) Nov 21 16:40:57 how can i get the name (String) of a R.drawable resource file? Nov 21 16:41:52 jigal: again what is your question, how you do it, if you should do it like that, what the design guides say, any suggestion how to make it better? Nov 21 16:42:17 maybe he wants source code Nov 21 16:43:29 http://www.mkyong.com/tutorials/android-tutorial/ Nov 21 16:45:14 well its more about mixing layouts i think but i will get back when i work out a better question Nov 21 16:47:15 jigal: you can put layouts in layouts, you can have something like a vertical linear layout where in the upper part is the picture and in the lower part is another horizontal linear layout with the 3 buttons beside each other Nov 21 16:47:52 ok thank you i will have to work that out in code Nov 21 16:48:38 better in xml ;) Nov 21 16:49:42 does anyone know if Chrome for Android implement its own network stack? Nov 21 16:51:59 timroes, don't nest linearlayouts like that :\ Nov 21 16:52:06 cc jigal Nov 21 16:52:40 http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/ Nov 21 16:52:47 i do anyway prefere relative layouts way more Nov 21 16:53:26 it's not even a matter of preference. you just do not want a deep view hierarchy :P Nov 21 16:53:54 yeah, was just meant to be an example how to do it in short explanation :) Nov 21 16:53:55 slooowwwdownnnn Nov 21 16:56:18 man today is dead Nov 21 16:56:22 i htink 90% of SF took the day off Nov 21 16:57:37 ol Nov 21 16:57:39 lol* Nov 21 16:57:51 90% of the USA Nov 21 16:57:56 i took the whole week off xD Nov 21 16:58:00 no Nov 21 16:58:08 i know some people did, but the office hasn't been that tdead Nov 21 16:58:23 if my whole team had said they were taking the week off, i probably would have too Nov 21 16:58:31 it would have made my trip to toronto much more cost effective on a $/hour basis Nov 21 16:59:27 yup Nov 21 16:59:40 ive done worse though Nov 21 16:59:53 lol Nov 21 16:59:58 i once took a 3-day weekend trip to SF from toronto Nov 21 17:00:02 havent we all :S Nov 21 17:00:03 :| Nov 21 17:00:06 and i upgraded one of my flights to business clsas Nov 21 17:00:07 damn lol Nov 21 17:00:20 it worked out to about $700/day Nov 21 17:00:21 :P Nov 21 17:00:26 xD Nov 21 17:00:39 was it worth it? Nov 21 17:00:43 good trip, but if i were to do it again, i'd make it longer Nov 21 17:00:50 that's not a yes/no question Nov 21 17:00:54 i had an awesome time Nov 21 17:00:59 lol Nov 21 17:01:02 but id never do exactly that again Nov 21 17:01:09 aye Nov 21 17:01:15 i dont know why i did Nov 21 17:01:16 that was stupid Nov 21 17:01:21 i could have flown down for a week Nov 21 17:01:24 and worked out of our SF office Nov 21 17:01:35 and then had two weekends and five weeknights Nov 21 17:02:12 lol Nov 21 17:02:20 makes a bit more sense :P Nov 21 17:02:48 man this channel is dead Nov 21 17:02:54 very :S Nov 21 17:03:04 and im almost at work! i normally dont even catch the bus until 9:10 :D Nov 21 17:03:15 * canadiancow does a dance Nov 21 17:03:21 xD Nov 21 17:03:32 * Jug6ernaut is 150 miles away from work woho Nov 21 17:03:34 oh look. the bus wifi FINALLY came on Nov 21 17:03:44 * dragorn is about 3000 miles away from work :) Nov 21 17:03:46 bus has wifi? damn Nov 21 17:03:46 in 36 hours i'll be 2300 miles away :) Nov 21 17:03:51 hehe Nov 21 17:04:01 its sad, ubt i dont know the distance in km Nov 21 17:04:07 becuase my airline awards miles Nov 21 17:04:12 lol Nov 21 17:04:14 and ive flown the route enough to have that amount memorized Nov 21 17:04:29 3600 km Nov 21 17:04:39 aka, far Nov 21 17:05:00 anyway at work, brb Nov 21 17:10:45 Over weird question, how do you copy a Float2 array to a Renderscript allocation of type F32_2? Nov 21 17:11:35 I see no copy from option for the Float2 type Nov 21 17:22:18 Hey Guys Nov 21 17:22:58 So My app is eating up 60+ MB of RAM with few ListFragments+ viewPager + ABS Nov 21 17:23:07 how do I profile what's eating so much ram Nov 21 17:23:49 I tried dumping hprof from DDMS but it shows up with on 4MB of heap size Nov 21 17:23:49 ddms had some allocation stuff.. Nov 21 17:24:00 does anyone know as a root service, whether I'll be able to read an APK that was app-encrypted? Nov 21 17:24:05 it gets put in /mnt/asec Nov 21 17:24:11 how did you come to the 60M? Nov 21 17:25:02 I ran couple of Memory profiling app, they all concur that my app is using ~60MB of memory Nov 21 17:25:16 because on most devices dalvik limits application memory usage to 16M, iirc... Nov 21 17:25:55 Maybe 2 years ago Nov 21 17:26:25 s/2/3/ :) Nov 21 17:26:49 True Nov 21 17:26:53 Well I've tested on S2 and Galaxy 10.1 Nov 21 17:27:00 Its almost similar Nov 21 17:27:24 SimonVT, somehow coworker was hitting that on S3 though, but I'm not 100% sure of anything really ;) Nov 21 17:27:34 apps that use more than that just suck though ;) Nov 21 17:27:48 i can guarantee the s3 does not have a 16MB heap limit Nov 21 17:28:06 so any other way I could get the break up Nov 21 17:28:07 It's most likely 64MB Nov 21 17:28:24 canadiancow, not that I really care, it's such a crappy device Nov 21 17:28:40 brickhead: http://www.youtube.com/watch?v=_CruQY55HOk Nov 21 17:31:57 SimonVT: Thanks would go through it Nov 21 17:32:14 i dun wanna watch an hour...can u do it for me? Nov 21 17:32:44 You don't need to watch it, canadiancow Nov 21 17:32:50 I assume you know how to use eclipse memory analyzer Nov 21 17:33:01 i do Nov 21 17:33:06 also i was in that session Nov 21 17:33:54 ohai romainguy Nov 21 17:35:06 hoy Nov 21 17:35:28 oy Nov 21 17:35:33 hi Nov 21 17:36:03 is there some android developer (I mean google employer developing android) hanging around here usually? Nov 21 17:36:09 just curious Nov 21 17:36:13 quick everyone hide! Nov 21 17:36:31 canadiancow, lol Nov 21 17:36:42 but yes, there are Nov 21 17:36:50 don't worry I'm not going to bother him / them :) Nov 21 17:36:54 at least two of them are active in the channel right now Nov 21 17:37:03 not now at least >:) Nov 21 17:37:20 camerin, I suppose the ops :) Nov 21 17:37:40 ah sorrru camerin ... Nov 21 17:37:43 so I am nto sure if anyone remembers me nagging in here for answers regarding this project, but I started a synthesizer app a couple weeks ago Nov 21 17:37:46 I meant canadiancow Nov 21 17:37:54 ops are not necessarily googlers Nov 21 17:37:57 and today I accidentally discovered how electric organs are made Nov 21 17:38:02 it is amazing how simple it is Nov 21 17:38:11 like, that you can accidentally make an organ Nov 21 17:38:18 Any Android-developer here that can take a quick a look at this? Its just one small loop. Im trying to create a widget and the button that should start the updating service works. But the button that should open the main GUI does not work. And I do not know why. http://pastebin.com/cGr71YdW Nov 21 17:38:40 now I am tempted to set this aside and just work on an html5 drawbar organ Nov 21 17:38:51 but I am determined to publish something first Nov 21 17:39:40 maybe i'll just toss some drawbars on here and call it a day Nov 21 17:39:53 thebiffman, first, you do not need to call getApplicationContext() when you pass in the context there Nov 21 17:40:18 canadiancow: Roger that. It was one of the things I was trying just out of desperation :) Nov 21 17:41:20 but im not really sure Nov 21 17:41:27 up until yesterday i had never even used RemoteViews Nov 21 17:41:38 oh Nov 21 17:41:41 the request code Nov 21 17:41:46 the first "0" Nov 21 17:41:49 make those unique Nov 21 17:42:09 a unique zero :) Nov 21 17:42:35 canadiancow: Unique for each widget or just separate the two different ones? Nov 21 17:42:47 use 0 and 1 and see if that makes a diff Nov 21 17:42:57 oh i see Nov 21 17:43:00 i dunno Nov 21 17:43:03 How can i load all image files from a folder, let's say in an array or arraylist? Nov 21 17:43:08 use i and i+1 :P Nov 21 17:43:51 XD Nov 21 17:45:18 but no, pendingintents like to overwrite each other, and im not sure exactly how that works Nov 21 17:45:39 hence why the second one might work, but not the first Nov 21 17:47:43 I changed the value. And disabled the second one. Still no effect. Now im trying to set the first one to the second ones imageView :D Nov 21 17:48:31 No still doesnt work Nov 21 17:50:25 The only difference is that the first is a activity =/ Nov 21 17:50:26 Anyone bored? I would love for someone to try out this organ synthesizer and give me some feedback. Nov 21 17:50:32 I noticed that in my widget... updated with a PI to change some text, on-click PI to open my app. soon as an app called the text-change without the on-click, it no longer read on-click > 3> Nov 21 17:52:49 hi, i made a site browser for a well known magazine, and just got a C&D from them for violating the site's ToS. they asked me to take the app down from the play store. if they were to ask google to take it down, google would do that, right? Nov 21 17:53:27 oh Nov 21 17:53:41 u need to take care of terms and conditions Nov 21 17:54:05 CQN: Yes Nov 21 17:54:06 if u upload same app again,google may not reconsider it Nov 21 17:54:14 CQN, offer to sell them the app Nov 21 17:54:21 and they will remove your app again with a warning Nov 21 17:54:34 and you'l be losing all your google accounts Nov 21 17:54:50 i doubt they'll buy the app Nov 21 17:54:52 i'll just remove it Nov 21 17:54:56 including developer account if u dont consider privacy policies Nov 21 17:55:07 it was really for my personal use anyway, and i can keep using it Nov 21 17:55:13 do u have permission from the website ? Nov 21 17:55:17 no, ofc not Nov 21 17:55:22 their official app is horrible Nov 21 17:55:23 CQN, offer them for free Nov 21 17:55:34 + adsense revenue share Nov 21 17:55:35 if it is for personnal use then why do u upload if in market ? Nov 21 17:55:49 well, i just wanted to make it available to others for free Nov 21 17:55:54 since i'd made it anyway Nov 21 17:55:57 DugleeIT news Nov 21 17:56:02 check that app Nov 21 17:56:12 its a complete news and magazine app Nov 21 17:56:43 sometimes you need permissions from websites...did u use official website name ? Nov 21 17:56:52 even that can be a problem Nov 21 17:57:00 not in the app name Nov 21 17:57:08 i said in the description what site it was for Nov 21 17:57:22 is it just a web browser? Nov 21 17:57:28 it's a site browser Nov 21 17:57:31 it downloads the web site Nov 21 17:57:39 reformats it to show in a TextView Nov 21 17:57:42 and displays it Nov 21 17:57:48 no Nov 21 17:57:50 i used jsoup to extract the content Nov 21 17:57:54 its not a web browser Nov 21 17:58:04 its a complete news and magazine app Nov 21 17:58:23 so u can keet it as a reference on next time u put up an app Nov 21 17:58:49 well since it's guaranteed that google will remove the app, i might as well remove it myself Nov 21 17:58:54 you just mail a request to the website admin regarding permission Nov 21 17:59:02 yes Nov 21 17:59:04 i got a C&D from them already Nov 21 17:59:07 that is better option Nov 21 17:59:14 so i can't see them giving permission Nov 21 17:59:22 you can forward it to google Nov 21 17:59:31 customer support Nov 21 17:59:37 i should have avoided the play store completely Nov 21 17:59:41 just created an APK Nov 21 17:59:51 run it in your phone Nov 21 18:00:22 and maybe u can give it to your friends Nov 21 18:00:28 what does your app do ? Nov 21 18:03:53 ? Nov 21 18:42:39 united is showing me two different seat numbers for the same flight :\ Nov 21 18:51:48 canadiancow, better than having two different ppl with same seat numbers (happen often in french's train lol) Nov 21 18:52:40 lol Nov 21 18:54:14 Have you developed DID recently, canadiancow? Nov 21 18:54:19 Is there an animation for growing a dialog? I have a gridview with ~ 100 items to pick from, but once picking I want to "shrink" the dialog holding the gridview so I can show the effect of chosing such Nov 21 18:55:33 DID??? Nov 21 18:55:33 Hallo everyone, someone can help me with this? http://stackoverflow.com/questions/13480219/mediaplayer-video-not-showing Nov 21 18:55:47 Dissociative Identity Disorder - split personalities. Nov 21 18:55:57 lasserix, use a DialogFragment with a custom transition animation Nov 21 18:56:13 oh...not what i think of in this channel when i read the word "developed" Nov 21 18:56:49 canadiancow: could you elaborate a little--animations are not something i've done too much with yet. Nov 21 18:58:58 How can I set a VideoView without using xml? Nov 21 19:01:23 lasserix, http://developer.android.com/reference/android/app/FragmentTransaction.html#setCustomAnimations(int, int, int, int) Nov 21 19:01:43 http://developer.android.com/guide/topics/resources/animation-resource.html Nov 21 19:02:14 thanks Nov 21 19:03:19 Before I break everything within reach, can someone look at http://pastebin.com/dTS9QXrU and tell me WHY the "F U" doInBackground is running, and why I can't get the REAL doInBackground to work? Holy f* I'm so irritaed. 48 hours and 0 progress. NONE. Nov 21 19:04:18 canadiancow: maybe they automatically "assine" bovines to two seats ;) Nov 21 19:04:36 they're not together Nov 21 19:04:49 pierpark: you don't provide the template classes to "extends AsyncTask" Nov 21 19:04:51 when i booked the flight, i took the closest aisle to the front Nov 21 19:04:55 which was right at the back :P Nov 21 19:04:57 so it's going to invoke doInBackground(Object… params) Nov 21 19:05:02 pierpark: err, i don't see you defining the generics for the asynctask Nov 21 19:05:03 instead of the one which takes URL... Nov 21 19:05:03 when i checked in today, there was one much closer to the front, so i switched Nov 21 19:05:11 now depending on where i check, it shows my old or new seat Nov 21 19:05:18 pierpark: so make it extend AsyncTask Nov 21 19:05:19 pie what stevel said Nov 21 19:05:43 Ok I'll give that a try. brb. Thanks for the info. Nov 21 19:05:45 ::sigh:: Nov 21 19:05:53 stevel: i thin it's "Void" in that case, not "void" Nov 21 19:06:01 "think it's" Nov 21 19:06:07 pabs: yup, correct. Nov 21 19:06:07 it is Nov 21 19:06:11 pierpark: ^^ Nov 21 19:07:27 pierpark: the AsyncTask docs are here: http://developer.android.com/reference/android/os/AsyncTask.html and discuss the generic types Nov 21 19:07:27 -rubs face- I need an extra pair of hands for a bit. Trying to figure out how to strip the 'proper' images from fragments within the MMS database structure. MMS (raw data) -> MMS/255/ADDR (extra details) -> MMS/PART/255 (mms frag data). I have the loop set up, but the image downloader I found online seems to be grabbing the wrong image data. Trying to more accurately strip down the database Nov 21 19:07:27 structure. Nov 21 19:11:30 Hey Gang, I have a APEZ ContentProvider that's I'm using so i can do videoView.setVideoURI(), however I keep getting a NullPointerException. I've confirmed the video is in the path I'm sending it. Any ideas where I can look? Nov 21 19:11:47 stevel: Thanks. Still going to pull my hair out. I've changed it, but I'm still having issues. http://anydamnthingbutsue.com/bs.jpg Nov 21 19:12:38 oh right, sorry, extend AsyncTask Nov 21 19:12:40 since you don't have onProgress Nov 21 19:13:08 Hello, having problems with fragmentTransaction FragmentTransaction transaction = getFragmentManager().beginTransaction(); <-- why is fragmentmanager returning android.app.FragmentTransaction? should it be android.support.v4.app.FragmentTransaction Nov 21 19:14:39 check your imports Nov 21 19:14:47 Excellent. Finallly, after 14 hours, the red went away. Any suggestions on getting that execute line to work though? All I want is to pass in that String which is "http://shoutcastcrap:8080" into it. Nov 21 19:15:42 theTerry: well my activity extends v4.FragmentActivity and my fragment extends from v4.Fragment that's why I find it odd Nov 21 19:17:15 pierpark: Change AsyncTask to AsyncTask Nov 21 19:17:31 http://pastie.org/5413821 this is the code Nov 21 19:17:43 .execute("http://shoutcastcrap:8080"); Nov 21 19:17:56 matsebc: I give you a +1 cause you use paste.org :) Nov 21 19:19:34 matsebc: I guess you need to use getSupportFragmentManager() in case you are using support package v4 for fragments Nov 21 19:20:08 uniquesupri: thank you Nov 21 19:20:12 stevel: thank you also. Nov 21 19:20:22 uniquesupri: that did it, sorry I'm just getting started here Nov 21 19:20:43 matsebc: no problem Nov 21 19:20:46 matsebc: you a rails guy? Nov 21 19:20:47 and everyone else that helped. I think I _might_ be able to pull it off from here. I need sleep so maybe my brain might unrattle. Nov 21 19:23:08 hi :P Nov 21 19:23:12 i've just started playing with android emulator on Linux and am wondering, can I increase the size of /system ? Nov 21 19:23:33 matsebc: you may have to call addToBackStack(String name) to add it to back stack. replace wont do it Nov 21 19:24:04 uniquesupri: it's a two pane layout, so I don't think I need it added to the stack Nov 21 19:24:35 matsebc: okay, read so from your comment :p Nov 21 19:24:59 fakingfantastic: nope, old time java then moved to iOS now getting into android Nov 21 19:25:01 fun times Nov 21 19:25:29 matsebc: ah most other people i see using paste.org are rails guys … my bad Nov 21 19:27:12 uniquesupri: Passing in the string worked, but unfortunately I've got to get it to a "URL" to use when I call the streamMeta = new IcyStreamMeta(url) part... and when I used the URLEncode(string), it threw a bunch of %'s in it and ended up blowing out on me. Any suggestion on turning a String into a "URL" type? Nov 21 19:28:00 piepark, you can pass any object to execute method Nov 21 19:28:20 hmm Nov 21 19:28:29 just change AsyncTask to AsynTask Nov 21 19:28:44 .execute(URL) Nov 21 19:29:11 pierpark: URL myUrlObject = new URL("your url string") Nov 21 19:29:16 or use google Nov 21 19:30:13 If I have a high-res image and put it in drawable-xhdpi, shouldn't it effectively get scaled down smaller when used on an mdpi device? Basically, I cannot get this image to not look "zoomed in" on a lower res device, no matter what folder I put it in (nodpi/mdpi/xhdpi) Nov 21 19:30:33 Thanks. Yeah, I tried that but it didn't want to work. Or I thought I did. http://anydamnthingbutsue.com/bs.jpg is the last bit of hell, and I promise to go away for the day :) I appreciate the help guys. Nov 21 19:30:54 like i said, new URL(String) Nov 21 19:31:23 question, if I have two fragments that are not used concurrently, is it ok for both of them to have the same id? Nov 21 19:31:32 or is that bad practice? Nov 21 19:31:37 pierpark: he's telling you to change that line to this: streamMeta = new IcyStreamMeta(new URL(urls[0])); Nov 21 19:32:10 Hey guys, could use some help. Im using shouldOverrideURLLoading in a web view to take a parse a uri and get it to load a video. Everything works fine, except when I back out of the video, it gives me a 404 with the video URI, how do I get it to go to the page before that? Nov 21 19:32:27 So like, my URI is "play_video:test.mp4" Nov 21 19:32:49 Thanks, and thanks. It goofed because it wanted me to add the try/catch stuff. I appreciate it. I guess I'm going to test this and then take a nap. It's been a nightmare. You guys saved me. Going to have to read up on that entire AsyncTask documentation when I get up. Nov 21 19:32:58 I use the override to say, "hey if you see that, load this activity intent, and pass the test.mp4 as an intent extra" Nov 21 19:33:16 Hi, someone can help me with this? http://stackoverflow.com/questions/13480219/mediaplayer-video-not-showing thank you =) Nov 21 19:33:56 And what do you know... it spit out the artist/song. Pft. Thanks again. What a relief. Nov 21 19:40:19 Hi I am using Jsoup to parse through a xml file. I have an element that has this structure http://pastebin.com/nHKSypiW how can I extract just [[[Guest Name]]] Nov 21 19:41:09 If I use element.text(), I get "Guest : [[[Guest NAme]]]" Nov 21 19:41:26 hey guys Nov 21 19:42:55 probably simpel question: i have a asynctask, which simply won't stop doInBackground() ... . It just doesn't get to onPostExecute, but executes everything in doInBackground() .. Nov 21 19:44:05 pastebin the entire asynctask Nov 21 19:44:26 my bad! I can recursively get the inner html tag text Nov 21 19:45:51 Aeefire: pastebin your code Nov 21 19:46:01 sec, Nov 21 19:46:22 http://pastebin.com/qufKshUp Nov 21 19:46:30 nothing special, only a proof of concept yet Nov 21 19:48:43 are you getting Log.d(TAG,"handleSave() succeeded!"); Nov 21 19:48:49 entry in your logcat? Nov 21 19:49:12 Hello people. I produced a release version of my app. How can I check that indeed all the Log() relaged calls ahve been removed ? Nov 21 19:49:34 yup Nov 21 19:49:38 that's the funny thing Nov 21 19:50:00 the while - loop reaches its end.. that isn't the problem imho Nov 21 19:50:07 Beket: um.. look through your source? Nov 21 19:50:17 hm then you need to override onPostExecute(){} Nov 21 19:51:26 yea you have the wrong method signature for onpsotexecute Nov 21 19:51:30 drpenguin, I'd like to verify it while the app is running. just to be sure. hm Nov 21 19:51:44 if you use a real ide, you should be able to just type "onpo" and autocomplete the entire method stub Nov 21 19:51:55 Beket: then you need to run your app in a way that you touch every part of it and just monitor logcat Nov 21 19:52:30 ok, can I start logcat outside of eclipse ? Nov 21 19:52:36 canadiancow ... ya.. trying that, mom Nov 21 19:52:58 Beket: select Log.d method and ctrl + H in eclipse Nov 21 19:53:05 Beket: yeah, adb logcat Nov 21 19:53:19 thanks guys Nov 21 19:53:21 it lists all the instance of the method in your project. Remove them safely. Nov 21 19:53:31 Aeefire, im not your mom Nov 21 19:53:41 :P Nov 21 19:54:05 Aeefire: could you imagine? having a canadian for a mom Nov 21 19:54:23 HUA Nov 21 19:54:24 I thought Beket wants to remove Log calls Nov 21 19:54:29 works Nov 21 19:54:32 thanks not-mom :P Nov 21 19:54:39 uniquesupri: well he does.. but he wants to do it the long way I guess Nov 21 19:55:19 the better option would be to use a flag and static method to print log messages Nov 21 19:55:34 I'm relying on proguard to remove Log() calls Nov 21 19:55:53 Beket: oh... thats why you want to check it at runtime Nov 21 19:55:56 tubes are less vulnerable to emp attacks than semiconductors Nov 21 19:56:03 ah, wrong window Nov 21 19:56:12 wrong era Nov 21 19:56:14 yep, sorry I didn't say it earlier. alright adb logcat is looking nice. Thanks! Nov 21 19:56:17 Sculptor: Drinking a snapple? ;) Nov 21 19:56:39 capella, you'd have no idea Nov 21 19:56:40 Beket: would you mind to share the pro guard setup to remove Logs? Nov 21 19:56:46 Beket: you may want to do a "junit" style test (does the test app you can generate for an app do that?) so you make sure you touch all parts of you rapp Nov 21 19:56:48 drpenguin, nah, a lively convo in other channel Nov 21 19:56:53 heh - try me im old Nov 21 19:56:57 I had tried it un successfully long time ago Nov 21 19:56:58 Sculptor: ah.. that sounded like a snapple cap moment Nov 21 19:57:04 uniquesupri, sure let me paste it in some paste site Nov 21 19:57:08 drpenguin, nice idea Nov 21 19:57:10 drpenguin, i bet Nov 21 19:58:07 I usually print logs like this http://pastebin.com/484UfQE7 Nov 21 19:58:12 it works like a macro Nov 21 19:58:45 if debuggable = false, all log calls are ignored during compile time Nov 21 19:58:50 uniquesupri, I think the related directives in proguard.cfg is these lines: http://paste.lisp.org/display/133841 Nov 21 19:58:58 uniquesupri: thats not bad. I kinda wish java had a mechanism like C wher eyou could do #IFDEF DEBUG code #ENDIF Nov 21 19:59:37 java compiler does this if you declare your flag boolean final Nov 21 19:59:40 thats what i do ! custom log function with a debug flag Nov 21 20:00:22 Beket: thanks for sharing. let me know if it works fine Nov 21 20:16:17 Ingress needs more ppl on Enlightened :( Nov 21 20:16:51 tnzr: Have an invite left? :P Nov 21 20:19:39 Isn't that this pacman with people thing? Nov 21 20:19:52 waka waka? Nov 21 20:20:21 i guess they have the best trailer for an androd game so far :) Nov 21 20:20:50 it doesn't really show anything though Nov 21 20:28:40 Anyone know if I can call methods thats inside fragments in my tabbed activity? Nov 21 20:31:54 thebiffman: yes you can Nov 21 20:31:59 Any idea how? Nov 21 20:32:26 do you use fragment transaction to add fragments to activity? Nov 21 20:32:46 or have you declared fragment in xml? Nov 21 20:34:02 I have created a tabbed activity that was generated by eclipse. I have then converted most of my main activity so that the different content is separated into two tabs. One method downloads new data and after that is supposed to call refresh methods in both fragments. Nov 21 20:35:01 So I think maybe the first alternative :) Nov 21 20:35:10 get reference to the fragment Nov 21 20:35:23 you can call methods on it Nov 21 20:36:33 Im not sure how to do that? Can you give me any more hints? Nov 21 20:37:15 I havent used a tab activity before. Does your code resemble this? http://developer.android.com/reference/android/app/TabActivity.html Nov 21 20:37:47 No, not really Nov 21 20:37:47 XD Nov 21 20:38:12 hm I don't have a ready answer then Nov 21 20:38:24 Okey. Thanks for trying =) Nov 21 20:44:58 thebiffman: still around? Nov 21 20:45:03 Yes Nov 21 20:45:14 Im thinking that maybe I can use broadcast :D Nov 21 20:45:38 that is one way other wise you can declare an interface in fragment Nov 21 20:45:48 and implement the interface in your activity Nov 21 20:45:57 with call back methods Nov 21 20:46:32 broadcast would be a overkill if you just want to pass event message from fragment to activity Nov 21 20:46:38 How odd... my listview will display the images from MMS content if I am ONLY viewing MMS content. If I try to add the SMS content to the list as well, the MMS content images don't show... could this be a memory problem? What would my best bet be to fix it? Nov 21 20:47:49 Komak57: what kind adapter do you use for your list Nov 21 20:48:02 uniquesupri: I want to use fragment method from the activity. Not the other way around =) Nov 21 20:48:04 custom adapter Nov 21 20:48:20 a very noob question but.. I changed android:label in AndroidManifest.xml file under activity tag, but I still get the old app name while my app is listed in the launcher... wtf Nov 21 20:48:28 is Location.getSpeed() really in m/s? Nov 21 20:48:36 do I have to change it @ main activity or something ? Nov 21 20:48:39 Beket, change the String values Nov 21 20:48:45 Komak57, I did Nov 21 20:49:05 clean, rebuild? Nov 21 20:49:12 I mean the initial Title String Nov 21 20:49:46 thebiffman: I suppose you add your fragments in this method public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) Nov 21 20:51:26 Beket: have you added android:label to your application tag? Nov 21 20:51:33 yep Nov 21 20:51:35 uniquesupri: The content is an ArrayList object, splitting MMS and SMS by weather or not it has an image. Both load a template based on SMS or MMS. As long as I don't load the 100 SMS messages, the 20 MMS images show up just fine. Perhaps I should strip the image to a thumbnail, rather than the full thing? Nov 21 20:53:39 question about microphones: is it possible for two apps to record from the microphone at the same time? Nov 21 20:54:27 Komak57: I dont understand your problem properly. List view creates views for those rows which are shown on the screen Nov 21 20:54:44 these views are recycled (I hope you know about this). Nov 21 20:54:59 Question: I have a webview with an embedded video in it. Clicking on the embiggen button makes it go fullscreen, so onShowCustomView is called and some fragments are switched out to show the video fullscreen. Prior to 4.2, the back button worked wonderfully in going back to the prior fragment, but after 4.2 back button doesn't work Nov 21 20:55:07 uniquesupri: No.. Nov 21 20:55:15 Komak57 are you inflating two different views for mms sms? Nov 21 20:55:44 Correct. and I'm loading all the data from an SMS object I created. The split inflating is based off of the Bitmap sms.Image variable. Nov 21 20:56:07 are you overriding getViewTypeCoutn? Nov 21 20:56:09 In fact neither onBackPressed or onKeyDown are being called when the back button is pressed. Nov 21 20:56:51 lasserix, http://pastebin.com/102x1w7q Nov 21 20:57:26 Komak57: ovveride getViewTypeCount and return 2 (or the number of layouts you are inflating) Nov 21 20:57:35 that is how the listview recycles with convert view, Nov 21 20:57:35 thebiffman: I have no clue :( Nov 21 20:57:39 =/ Nov 21 21:00:54 Komak57, watch http://www.youtube.com/watch?v=wDBM6wVEO70 Nov 21 21:00:56 the whole thing Nov 21 21:01:01 lasserix: would it suffice to add a tag to the view inflated (as sms view and mms view) and return layout based on sms or mms content? Nov 21 21:01:47 also, ctrl-shift-f Nov 21 21:01:49 or cmd-shift-f Nov 21 21:02:04 no from what i understand if you are inflating multiple row layouts, you need to override getViewTypeCount otherwise the adapter does not know how to properly recycle Nov 21 21:02:12 also magic literals "unread_Color" "1" etc need to go away Nov 21 21:02:19 but i believe you also want to add a tag Nov 21 21:04:10 lasserix: I believe returning typeCount to be 2 recycles views in the same order as they are inflated. Nov 21 21:04:10 as in Nov 21 21:04:11 A Nov 21 21:04:11 A Nov 21 21:04:11 B Nov 21 21:04:11 ------ Nov 21 21:04:28 A Nov 21 21:04:28 A Nov 21 21:04:28 B Nov 21 21:06:06 that is why you need to return the cardinality of how many distinct layouts you are returning in getview Nov 21 21:06:36 lasserix: got it Nov 21 21:08:55 hmmm... setting the number doesn't fix the problem. The problem is that the Image in an MMS is null when listed with SMS. I don't have a MMS capable phone to send messages to my android to debug weather this changes with smaller SMS quantities... Nov 21 21:10:16 Well your logic is kinda of opaque Nov 21 21:10:20 seeing as it's null, It makes me think that there is a memory problem. I'm loading 100 SMS messages and 20 MMS pictures+text into a single object array, and trying to inflate them to a view. Nov 21 21:10:49 also I belive you want to change vi.inflate(R.layout.sms_temp, null); to vi.inflate(R.layout.sms_temp, parent, false); Nov 21 21:10:57 for both of those Nov 21 21:11:32 Also line 88 Nov 21 21:11:50 if (o.Read.equals("1")) but that is in the condition where o == null so ? Nov 21 21:12:24 err I mean line 105 Nov 21 21:12:51 if I am reading the brackets correctly Nov 21 21:13:26 o.O Nov 21 21:13:36 o.Read == "1" or "0" Nov 21 21:13:45 it should never be null Nov 21 21:14:03 Ahh yeah Nov 21 21:15:25 has anyone come across an issue where the SeekBar doesn't update the thumb position when calling setProgress()? Nov 21 21:15:26 So did you check whether o.image is ever null / not null? Nov 21 21:15:36 the ProgressBar fills up and is set to the appropriate position, but the thumb doesn't move Nov 21 21:17:40 lasserix: added "[MMS] "+o.Message to the MMS tMsg, so o.Image != null, it has been added to the inflated layout, but it is not appearing. Nov 21 21:18:08 also you should call your default saved preference values once, not everytime you get getting a view Nov 21 21:18:17 Hey gang, I have a web view that loads a Pano VR from a 3rd party JS library. One first load, it works fine, but if i do finish() and then re-open it, the images aren't there. Any idea what might cause that? Nov 21 21:19:22 lasserix: I'm not even able to use them atm... arbitrary, but I'll keep it in mind when i get back to that, thanks. Nov 21 21:20:48 When you have sms and mms have you verified both o.Image == null and o.Image != null are being called? Nov 21 21:23:00 Yes, tMsg.setText("[MMS] "+o.Message); on line 119 would only be called when o.Image != null, and works only when calling an MMS Nov 21 21:23:29 If the SMS object has NO null images, it seems to work just fine. Nov 21 21:23:49 ~going to fake the sms list and see if it still reacts the same~ Nov 21 21:27:27 Komak57 I think it has to do with overriding the two methods getItemViewType AND getViewTypeCount Nov 21 21:27:50 for instance, try changing the ids in the two layouts Nov 21 21:28:08 ie, for SMS change the id to nameSMS timeSMS etc Nov 21 21:28:14 for MMS change id to nameMMS Nov 21 21:28:29 My guess is when you run it again it'll actually crash because of a NPE Nov 21 21:28:34 or Nov 21 21:28:37 actually, esier Nov 21 21:28:48 are we still on this listview? Nov 21 21:29:06 don't do this: View v = convertView; do this View v = null; and see if it works Nov 21 21:29:21 then you'll know if it is a probably with the object list or the adapter implementation Nov 21 21:29:36 cc yeah Nov 21 21:29:39 ~_~ Nov 21 21:29:49 -blinks- added a fake SMS at the end of the sms list, and it works just fine... added it to the beginning and the whole list freaks out XD Nov 21 21:30:05 Komak57 for the fun of it try changin View v = convertView; to View v = null; Nov 21 21:30:18 "for the fun" Nov 21 21:30:20 :P Nov 21 21:31:53 I want to make tiles for a game... how difficult is it to include render n-gons with canvas? Nov 21 21:31:56 that seems to have fixed the issue, for the most part Nov 21 21:32:16 at least, so far I only know how to render rectangles Nov 21 21:32:18 haha yeah it's because convertView is only returning 1 inflated view to recycle, not two, which is what you need Nov 21 21:32:40 I guess triangles should be possible, and once I can render triangles I can do it. Nov 21 21:34:13 Komak so here http://pastebin.com/na0KrLkQ Nov 21 21:34:20 add that and change View = convertView; Nov 21 21:34:31 that will probably fix it while implemetning the recycling Nov 21 21:34:43 good evening all Nov 21 21:35:22 basically what is happening is your adapter is returning only one kind of view as convertview, when you need two distinct types to be returned (that is why setting view v = null makes it work, since you are bypassing the recycling) Nov 21 21:36:03 I'm using Handlers for the first time, and am slightly confused; from what I can see, Handlers either send and receive Messages, or they launch Runnables. Is that correct so far? And if yes, which of these two is preferred? Nov 21 21:36:05 since you are returning two dinstinct layouts in getView you need to let your adapter know that it needs to cache two types which you do by overriding those two methods Nov 21 21:36:38 I think I understand what's going on... Just have one little bug left to sniff out before I can try to work on speeding up the loading of the SMS's Nov 21 21:36:44 Pingless depends on what you need to do, usually messages convey variables but make sure to recycle them with the pool (use Obtain instead of new message) Nov 21 21:39:40 lasserix: So I'd create a Handler which receives the message, then decides depending on the message which main Thread methods to call? Nov 21 21:40:48 I've only used messages to pass basic variables from one thread to another, as flags etc Nov 21 21:41:09 So yeah you could do that Nov 21 21:41:28 What is the thread passing the message originally doing? Nov 21 21:42:15 For instance I had a thread doing some simulations on points on a curve which I passed as args in the message to the ui (main) thread so I could update them to a textview Nov 21 21:43:14 I have a ghost message appearing where there are no messages > 3> yaaay... source diving for bugs Nov 21 21:43:59 has anyone heard about the actionbar compat library google was working on? i haven't been following the android dev podcasts thingies Nov 21 21:44:11 The thread passing the message is running AsyncHttpRequests; since it interfaces with a JSON-RPC interface, it can return a variety of objects Nov 21 21:45:18 although I guess an int for the content type identifier and a String for the content could go a long way Nov 21 21:45:49 One way to handle it, no pun intended :p Nov 21 21:46:41 :) Nov 21 21:49:52 hello. i'm experimenting fragments (newby here) and ... it looks like fragments lifecicle is a lot more complex than what i read in the official fragments api guide. is there any "deeper" guide around ? Nov 21 21:50:38 is there an easy way to debug chrome from within an AOSP build? Nov 21 21:50:45 j0p: dunno, did see this the other day though http://www.infoq.com/presentations/Android-Fragment Nov 21 21:51:13 thank you g00s i'll check it Nov 21 21:52:17 ohh...a video..my english sucks i can barely understand written english :) Nov 21 21:56:16 hah... finally timed the poll process... takes me 5-6 seconds to get all the SMS and MMS :P gotta optimize this Nov 21 21:58:19 five seconds O____O Nov 21 21:59:38 so your saying it takes an eternity? Nov 21 21:59:56 That's like 10 billion cycles Nov 21 21:59:58 :p Nov 21 22:00:22 lol Nov 21 22:03:32 Can anyone explain to me the issues with HandlerLeaks? I'm getting "this class should be static or Leaks could occur", but I don't quite understand a) what the problem is and b) how I can resolve it Nov 21 22:05:16 Pingless: http://stackoverflow.com/questions/11407943/this-handler-class-should-be-static-or-leaks-might-occur-incominghandler Nov 21 22:06:03 Maurits_: Thanks, my own search only found a useless StackOverflow answer where the responder had just copy-pasted the Lint message. Nov 21 22:06:25 Hello world! Nov 21 22:06:46 n20: I'd say your code works! :P Nov 21 22:06:51 I'm trying to figure out what to display in the activity when it's loading the first time. Any ideas? Nov 21 22:06:58 I like the idea of covering a screen with a spinning image and hide it it's done loading, but I'm not quite sure how to implement it in a standardized way that's easy to utilize across the app. :-) Nov 21 22:07:27 Pingless: in general it's not such a big deal, may only lead to the sytem keeping a service/activity until all the messages have been processed Nov 21 22:07:44 while that's not really necessary Nov 21 22:08:32 Maurits_: So in essence, as long as the thread owning the handler won't block for long, I can suppress this? Nov 21 22:09:59 Pingless: well, I'm not sure what exactly is going on behind the schemes Nov 21 22:10:13 *scenes Nov 21 22:10:25 Alternatively, is the following a good solution? Make the Handler a static object, with a constructor that takes as parameter the current activity and wraps it in a WeakReference Nov 21 22:10:47 so that I can still call non-static methods, without worrying about the leaks Nov 21 22:11:03 the WeakReference option seems the best Nov 21 22:15:01 looking for optimization tips: http://pastebin.com/AbXwzDkX (takes ~4 seconds for 100 SMS and 20 MMS) Nov 21 22:17:03 please format your code Nov 21 22:17:47 Got a question on fragments, I have this layout http://pastie.org/5414722 but when I try to replace the second fragment with transaction.replace(R.id.documents_list_container, fragment); however the fragment is added on top of the one on screen instead of replaced, it has to be something really dumb since I am just getting started but can't figure out what Nov 21 22:18:33 Komak57, profile your code. figure out what is taking time Nov 21 22:18:38 i dont really like your query though Nov 21 22:18:46 what is threadID Nov 21 22:19:37 SMS and MMS are stored with a threadID to depict who you were talking to. In my app, it's an array so you can talk to multiple people simultaneously Nov 21 22:20:39 it's a hell of a lot easier than tracking via phone numbers, since +16781234567 != 6781234567 in a database Nov 21 22:21:11 regardless - profile it Nov 21 22:21:19 if something in that method is taking SECONDS, figure out what it is Nov 21 22:21:19 profile? Nov 21 22:21:49 i mean at that time scale, i'd put a Log.d(tag, "time: " + System.currentTimeMillis()); every few lines Nov 21 22:22:15 but it's either going to be the query() call, or the moveToNext() call Nov 21 22:22:25 XD I did... SMS takes about 1 second to parse 100 replies, MMS is taking 3-5. Tell me, is there a way to load an image source when the imageview is on-screen? Nov 21 22:22:27 i cant imagine anything else there taking time Nov 21 22:23:17 what do you mean "load an image source when the imageview is on-screen" Nov 21 22:23:25 npe, SMS < 100 ms, so that's good... Nov 21 22:23:54 load the image asynchronously? Nov 21 22:23:56 well, I have a function, private Bitmap getMmsImage(String _id) {} which stream loads the image in an MMS Nov 21 22:24:26 so is there any listview hooks i can use to load the image once you scroll across it? Nov 21 22:24:41 you could fire off AsyncTasks Nov 21 22:24:42 i'd probably trigger it in getView Nov 21 22:24:45 no Nov 21 22:24:47 dont use asynctasks Nov 21 22:25:01 why not? Nov 21 22:25:01 there are a bunch of examples of image loading for listviews on the interwebs Nov 21 22:25:07 ah Nov 21 22:25:16 there are some problems with the use of asynctasks, yeah Nov 21 22:25:19 any suggestions? Nov 21 22:25:28 especially with list item view recycling Nov 21 22:26:21 placing it in the getview will still result in a slow load time, won't it? Nov 21 22:26:53 well you need some form of threading model Nov 21 22:26:55 and a cache Nov 21 22:27:59 this looks semi-decent (after a quick glance) Nov 21 22:28:01 https://github.com/tbiehn/Android-Adapter-Image-Loader/blob/master/src/com/travisbiehn/android/util/AdapterImageLoader.java Nov 21 22:28:54 well, it MIGHT speed things up to redesign the getMMSImage to pull a thumbnail or something, rather than the full sized pic Nov 21 22:29:24 yeah, but this is a problem you will have to tackle eventually anyway Nov 21 22:29:34 or well, likely Nov 21 22:30:10 my primary goal is to speed up the thread load times... Nov 21 22:30:23 if it takes 5 seconds to open a thread, someone's gonna get upset Nov 21 22:30:26 hi Nov 21 22:31:02 I would like to know if it's possible to apply in-app products for testing purposes to unpublished app on developer console and then just replace the APK without losing the in-app products ? Nov 21 22:33:06 Is there a (simple?) way for an app to integrate with the form fields in a browser? For instance, a password-manager type app to fill in the forms in a browser Nov 21 22:33:19 Komak57: the problem you have when asynchronously loading images in listview items is that the items can get recycled Nov 21 22:33:29 and your asynchronous loading tasks can finish out-of-order Nov 21 22:33:45 resulting in the wrong image being set for an item Nov 21 22:35:08 Komak57: it's a bit of a pain to prevent that Nov 21 22:36:07 Not that much of a pain. THe tasks simply need to return an item-id with the image. Nov 21 22:36:16 Hi, someone can help me? http://stackoverflow.com/questions/13480219/mediaplayer-video-not-showing Nov 21 22:36:58 DaviDeMo: What's your video codec used? Nov 21 22:37:37 kamoricks: H264, tried with 3gp and mp4 Nov 21 22:38:09 but I don't think this is the problem, I think I make something wrong with the surface or with the videoview Nov 21 22:38:59 mp4 isn't a codec. Nov 21 22:39:09 h264 Nov 21 22:39:22 with mp4 extension and 3gp Nov 21 22:40:03 It's my first instinct, because the video's not showing up but the audio is. So your clip's being loaded and told to render. Nov 21 22:40:40 mhm... but there is something wrong. I'm sure I miss soemthing because I don't say where the video should render Nov 21 22:41:02 the docs from android tell me to use VideoView Nov 21 22:41:24 but I have found example only with editing some xml template files, but I don't use any xml files Nov 21 22:42:01 DaviDeMo: Sure you do. er(); Nov 21 22:42:04 mediaPlayer.setDisplay(playerholder); Nov 21 22:42:22 Hello! I'm trying to use AsyncTask to download an HTML document and then parse it to get some certain information. I've read up on AsyncTask, but I do not understand why Eclipse is telling me to "Add unimplemented methods" when I have already implemented it. Here is my code: http://rifers.org/paste/show/1927 Nov 21 22:42:53 if I set the holdfer with setDisplay nothing works. Neither the audio or other infos I check with the log Nov 21 22:43:10 Also, the TextView "article" is in another thread, is it possible to update that from the AsyncTask thread? Nov 21 22:43:14 well, generating thumbnails doesn't help, it still has to process 100% of the image. Need to load the MMS image content ONLY when the user scrolls over it? Nov 21 22:43:41 Thylith: There are three methods to implement. You didn't parameterize AsyncTask. Your varargs argument must match EXACTLY, which means it'll be Integer... once you parameterize. See http://developer.android.com/reference/android/os/AsyncTask.html Nov 21 22:43:49 Or I'll have to create a button to download the image.. Nov 21 22:44:01 kamoricks, check! thx =) Nov 21 22:44:45 DaviDeMo: What does it do if you do nothing else in surfaceCreated()? (As in, if your game doesn't draw?) Nov 21 22:47:25 kamoricks: how do you get the mapping from item id to the ImageView to set the image for? Nov 21 22:47:32 in the listview case Nov 21 22:48:08 afaics there's no getViewForItemId() on ListView Nov 21 22:48:29 kamoricks: nothing. But maybe I have found the problem. I have changed the MediaPlayer to VideoView like the android docs tell me http://rifers.org/paste/show/1928 but now the log in line 15 is -1 (seconds). This can be a wrong format? I can try to make other renders with other codecs for testing :-( Nov 21 22:48:46 Is it possible to set a large background for a button without it affecting the button's height? Nov 21 22:49:27 Maurits_: .getAdapter().getItemId() until it matches; or one could generate their own mapping. Nov 21 22:50:13 btw, thank you for the help Nov 21 22:54:20 kamoricks: how do you then get the View? without manually keeping track of a mapping... Nov 21 22:54:35 ie, you find out which position in the list holds your item id Nov 21 22:55:18 afaics you still always have to keep track of the views your adapter supplies Nov 21 22:55:46 you can't ask a listview for 'what is the item view at position x' Nov 21 22:57:03 Maurits_: But you can ask its Adapter. Nov 21 22:57:29 Maurits_: Index i in the Adapter is index i in the ListView. Nov 21 22:57:38 you mean with getView()? Nov 21 22:57:58 in fragments api guide example app (http://developer.android.com/guide/components/fragments.html) there's a main activity which : 1) in portrait : setContentView to a layout which staticaly loads an fragment; 2) in landscape : setContent view to a layout-land with 2 fragments. if i rotate the device from portrait to landscape i see the activity and its fragment onDestroy, and then activity Nov 21 22:57:58 and 2 fragments onCreate() and that is fine. if i rotate back to portrait i get activity and two fragments onDestroy and then activity and 2 fragments onCreate(), even if portrait layout only uses 1 fragment. why ? Nov 21 22:58:33 Maurits_: Sure. Though in this case, you'd use your own Adapter, and tell it to reinitialize with an updated image for a given itemID. Nov 21 23:00:06 kamoricks: well, no, you can't really getView() since that will just return a new cell Nov 21 23:00:21 kamoricks: rather than return the view of the cell already in the list which you want to update Nov 21 23:02:28 Maurits_: The adapter would call .notifyDataSetChanged(), return a new View for the given index, and all is well. Nov 21 23:05:29 kamoricks: again, not really, because you would have to reload everything every time one bitmap is loaded Nov 21 23:07:09 Maurits_: Uh. Yes. So? Nov 21 23:07:31 Maurits_: You'd have to recreate the TextViews and ImageViews, but you wouldn't have to make any additional network or disk requests. Nov 21 23:09:27 Good evening. I've got 2 classes: BaseActivity and BaseListActivity, but they both have the same onOptionsItemSelected() methods? Is there a way to reuse the code? Nov 21 23:10:32 make BaseListActivity inherit from BaseActivity? Nov 21 23:11:15 kamoricks: well, that it's quite slow, and almost as complex as just keeping track of everything Nov 21 23:11:27 ie, not really a viable solution to the original problem at all Nov 21 23:11:54 walking the list for the position==itemId checks also isn't free Nov 21 23:13:27 Maurits_: So why *don't* you just keep track of it yourself? Nov 21 23:14:11 kamoricks: I am, but you claimed to have a better solution Nov 21 23:14:31 Maurits_: can I do that when BaseActivity extends Activity and BaseListActivity extends ListActivity? Nov 21 23:14:49 freannrak: no, java doesn't have multiple inheritance Nov 21 23:15:06 freannrak: however, listactivity doesn't really do that much Nov 21 23:15:27 freannrak: you could reimplement it with a couple of lines of code in your baselistactivity Nov 21 23:15:28 Im getting an "cannot connect to adb" message when trying to take a screenshot with uiautomatorviewer Nov 21 23:15:39 adb is working fine, as I've been using it via eclipse Nov 21 23:15:55 and adb devices shows my devices Nov 21 23:16:12 any ideas? Nov 21 23:17:46 AICapwn: disable usb debugging for a second, then re-enable. Nov 21 23:19:16 freannrak: alternatively you could encapsulate the onOptionsItemSelected behavior in a delegate Nov 21 23:19:27 freannrak: and proxy it to that object Nov 21 23:19:57 freannrak: no luck. Does uiautomatorviewer with user builds? Nov 21 23:20:06 +work Nov 21 23:20:28 I remember hierarchyviewer never worked for my phone Nov 21 23:22:03 AlCapwn: I'm sorry, etc. (end of thinking capacity). Nov 21 23:22:18 freannrak: as a third option you could use fragments for the changing UI and provide the option menu on the activity Nov 21 23:22:21 Maurits_: Thanks for the suggestions, I'm quite new at this so I've got some googling to do now. Nov 21 23:22:43 freannrak: np Nov 21 23:23:27 freannrak: fyi, this kind of problem can be indicative of a design problem Nov 21 23:23:45 rather than something you want to solve by coding around it Nov 21 23:25:33 Maurits_: It's my first android project, i'm pretty sure I've got tons of design problems. I recently got loads of feedback from an experienced developer though. https://github.com/erkarl/Piqu Nov 21 23:25:49 Maurits_: Trying to fix all of the issues now, there are many :P. Nov 21 23:25:57 freannrak: I say this because option menus are generally contextual Nov 21 23:25:57 Maurits_: it's quite fun though. Nov 21 23:26:10 meaning that if you want the exact same menu for multiple screens Nov 21 23:26:18 there could be something wrong with the UI design Nov 21 23:26:50 Maurits_: Indeed, I haven't done any UI design. I'm using the same optionsMenu just to navigate and test atm. Nov 21 23:27:05 ah Nov 21 23:27:10 well, cool Nov 21 23:27:15 seems like a good way to learn Nov 21 23:27:31 if you want a challenge convert the entire thing to fragments for a tablet ui :) Nov 21 23:30:52 Maurits_: haha, I'll keep that in mind. Thanks again for all the suggestions. Nov 21 23:34:12 freannrak: I see you're using Twitter4J, have you encountered any issues with it? Nov 21 23:34:28 freannrak: In generala that is. :) Nov 21 23:35:58 n20: No it's been great using it, no problems at all and the code examples were great. :=). I've been only using the Twitter4J-core though. Nov 21 23:37:37 freannrak: I reckon my usage is the same as yousr, however I'm not getting the oauth_token/oauth_verifier in the URL :( Nov 21 23:38:08 freannrak: I do however get the PIN on the page, so I'm doing something wrong ha. Nov 21 23:39:06 n20: You'll get there... Nov 21 23:39:42 freannrak: Funny part is that the same code (apart from the token+secret) works for another app I implemented it in. :-) Nov 21 23:41:22 I'm using AsyncTask to get information from a website now, but how can I update a textview in the UI-thread? Using handlers? Nov 21 23:43:12 Thylith: you should be able to access the TextView from onPostExecute() iirc. Nov 21 23:44:00 Thylith: or yeah, you could use a handler. Hold on I just stumbled upon a simple tutorial couple of days ago, let me see if I can find it for you. Nov 21 23:44:07 oh Nov 21 23:44:09 I'm gonna try both Nov 21 23:45:59 Got a nullpointer exception when trying to access the textview from onPostExecute Nov 21 23:46:22 Thylith: https://github.com/levinotik/ReusableAsyncTask Nov 21 23:47:07 oh Nov 21 23:47:07 =) Nov 21 23:56:41 I've put a scroll view in my activity and within that a custom view, but it seems that the scroll view is only working vertically? Nov 21 23:56:55 how can I make it scroll horizontally or in both directions? Nov 21 23:59:20 Can you download your APK from the market while in Draft? Nov 21 23:59:28 trying to test expansion download Nov 22 00:01:10 I think you can set test users by email, can't you? Nov 22 00:03:44 leslie: idk, this is my first attempt Nov 22 00:15:58 leslie: any idea how to do it? Nov 22 00:16:08 I've never tried, sorry Nov 22 00:16:31 freannrak, thanks for the link earlier Nov 22 00:16:33 helped me out Nov 22 00:21:48 Thylith: Np, glad it did. I was cracking the same problem couple of days ago :=). Nov 22 00:21:54 ^^ Nov 22 00:44:47 Hey guys, i've noticed when i press the button on my bluetooth headset it brings a dialog box asking which app you want to complete that voice action with, vlingo or google voice recognition, ive been writing an app, programmatically... im not sure how to get my app listed in that dialog box! can anyone point me in the right direction? Nov 22 00:46:04 watch logcat when you press the button Nov 22 00:46:11 there will be an intent listed Nov 22 00:46:31 canadiancow: what do you do for google, android stuff? Nov 22 00:47:47 add a filter for those details Nov 22 00:47:48 action/uri/whatever Nov 22 00:47:48 yeah Nov 22 00:48:33 canadiancow, thank you, although im writing this in python using sl4a Nov 22 00:48:43 lol dev'ing directly to production device Nov 22 00:48:47 o.O Nov 22 00:48:52 ill have to set up an emu to check out logcat right? Nov 22 00:49:02 no, a device works Nov 22 00:49:20 i use emulators when i want to test a screen configuration i dont own. like before i had a 10 inch tablet. Nov 22 00:49:25 MAYBE for an old version of android Nov 22 00:49:29 for everything else i use devices Nov 22 00:51:50 so eclipse logcat will work Nov 22 00:51:56 just by having my phone plugged in via usb? Nov 22 00:52:01 canadiancow, ^? Nov 22 00:52:08 yes Nov 22 00:52:19 please go read the fundamentals at d.android.com Nov 22 00:52:25 it's worth the time Nov 22 00:53:24 Are you guys fans of eclipse? I think it kind of sucks Nov 22 00:53:29 hey guys, my tablet has an oem partition, (/dev/block/nand1) and when I use "mount -o rw,remount /oem" the partition is still read-only, any ideas? Nov 22 00:55:42 danielson, in terms of what works well for android, it is my "favorite" Nov 22 00:55:46 but i use that word very lightly Nov 22 00:56:22 It's such a resource hog... I had it opened yesterday and it'd lock up one of my cores trying to switch tabs at times Nov 22 00:56:36 ~700MB of RAM for an example android app? Nov 22 00:57:28 My computer has decent specs, starting to look a little dated. Core 2 duo 2.53Ghz, 6GB ram, win7x64 Nov 22 00:57:47 yea my home computer has 6GB, and ithink i give eclipse 2 Nov 22 00:57:52 my work computer has 24, so i gave it 4 Nov 22 00:57:55 :) Nov 22 00:58:14 How are you controlling how much RAM you give it? Nov 22 00:59:58 eclipse.ini Nov 22 01:17:55 hey guys... anyways to initialize the Nexus 10 without wifi? :S Nov 22 01:18:03 um. hit the "skip" button? Nov 22 01:18:08 that still exists, right? Nov 22 01:18:25 skip it, skip it good Nov 22 01:18:25 Don't see any Skip button anywhere :S Nov 22 01:18:36 I wanna skip it ... Nov 22 01:18:49 screen shot or lies :| Nov 22 01:18:56 Select Wi-Fi Nov 22 01:19:03 I see some locked networks from the hood Nov 22 01:19:05 and + Other network... Nov 22 01:19:08 dont select wifi Nov 22 01:19:42 get wifi then? :P Nov 22 01:19:49 ugg. Nov 22 01:19:49 lol Nov 22 01:19:52 i know in the past there was a "skip" option Nov 22 01:19:52 :S Nov 22 01:19:54 stil shouldnt need to... Nov 22 01:19:58 why was it taken out. Nov 22 01:20:01 i just set up a n10 yesterday Nov 22 01:20:03 but like Nov 22 01:20:05 * Jug6ernaut says pics or lies Nov 22 01:20:09 thats not something i look for Nov 22 01:20:11 Jug6ernaut, +1 :P Nov 22 01:20:19 meh no cam Nov 22 01:20:20 lol Nov 22 01:20:41 i want a n10, but i dont use my other 3 tabs so... Nov 22 01:21:39 heh Nov 22 01:21:47 it'll be nice on my flights this weekend Nov 22 01:21:58 high res, working, movies i want to watch, ... Nov 22 01:22:52 as long as i dont leave it on the plane like my n7 T_T Nov 22 01:23:03 :| Nov 22 01:23:05 dude Nov 22 01:23:10 epic fail Nov 22 01:23:29 she said to stow electronics Nov 22 01:23:35 so i put it in the seat pocket... Nov 22 01:23:36 :\ Nov 22 01:23:41 :( Nov 22 01:23:49 excuse to get 3g n7 :P Nov 22 01:23:56 i have no such excuse xD Nov 22 01:24:28 well i had another one from work Nov 22 01:24:30 so... Nov 22 01:24:44 lol Nov 22 01:24:46 im really glad the one i lost was running a stock build of android with nothing corporate on it though Nov 22 01:24:55 lol Nov 22 01:25:03 yea...that could be badddd Nov 22 01:25:17 well i think i can remote wipe all my corp devices Nov 22 01:25:32 s/corp devices/devices on which i installed the device policy manager and attached it to my corp email/ Nov 22 01:25:41 probably Nov 22 01:25:49 granted, wifi Nov 22 01:25:57 if/when it connects Nov 22 01:26:16 does adb work with the lockscreen up? Nov 22 01:26:22 yup Nov 22 01:26:30 adb dont care Nov 22 01:26:59 hmm Nov 22 01:27:03 that's an interesting scenario Nov 22 01:27:29 yup, adb = very insecure Nov 22 01:27:42 == Nov 22 01:29:12 i need to handcuff myself to my devices Nov 22 01:29:46 lol Nov 22 01:30:21 my nexus 4 slipped out of my pocket on a bus a few weeks ago Nov 22 01:30:23 * Jug6ernaut thinks canadiancow should write an app that kills adb until after keylock Nov 22 01:30:26 fell down behind my seat Nov 22 01:30:32 :| Nov 22 01:30:39 i had my bluetooth headphones on Nov 22 01:30:41 so i still had music Nov 22 01:30:45 u werent the guy who left one at a bar were u? Nov 22 01:30:46 :P Nov 22 01:30:46 i saw the guy behind me stand up and hold up a phone Nov 22 01:30:53 so i took my headphones off Nov 22 01:30:57 "is htis anyone's?" Nov 22 01:31:00 im like "oshi--" Nov 22 01:31:05 xD Nov 22 01:31:21 anyway almost home bbl Nov 22 01:31:24 it feels like friday Nov 22 01:31:30 in the sense that i feel like ive worked a whole week Nov 22 01:31:40 ouch lol Nov 22 01:32:49 How do you do a password-entry form? Nov 22 01:33:43 edittext with password text type Nov 22 01:33:47 soemthing like that Nov 22 01:36:59 Hmm. My eclipse.ini has two --launcher.XXMaxPermSize entries, both identical Nov 22 01:37:44 That's at 256M. -Xmx512M, -Xms40m Nov 22 01:38:06 What would you guys reccomend, win7x64 6 Gigs of RAM? Nov 22 01:38:16 danielson post whole thing Nov 22 01:38:25 * Jug6ernaut recommends more ram Nov 22 01:38:27 :P Nov 22 01:39:05 I'll pastebin Nov 22 01:39:30 http://pastebin.com/qzxJnkFB Nov 22 01:40:09 how did u get duplicates lol Nov 22 01:40:18 bump to at least 512 Nov 22 01:40:22 I didn't edit it... Nov 22 01:40:43 there are a lot of entries on sof about optimizing that file tho i would take a look there Nov 22 01:40:59 What about -Xmx512m? Nov 22 01:42:27 idk Nov 22 01:44:02 Can you access your app from market when it's in Draft? I'm trying to test the Expansion file download Nov 22 01:50:37 fakingfantastic nope Nov 22 01:50:41 only once its published Nov 22 01:53:48 canadiancow, pm, sorry for the bad manners shoulda asked first. Nov 22 02:01:55 does anyone ever have the android emulator bug really badly? Nov 22 02:02:11 when it loads it loads with a huge amount of grey space and it loads extraordinarily slowly Nov 22 02:10:24 Hey Guys, this intent "I/Bluetooth HS/HF(749): +BVRA: 1 Nov 22 02:10:24 " triggers a dialog box that wants me to select what application to open, how do i get my application listed with the apps there? Nov 22 02:20:49 so if you write your main activity as FragmentActivity then you can run it standalone or embed it in another activity, correct? Nov 22 02:21:32 Hello, World. I need help choosing an android device for developing an NFC application. Do you have any suggestions of a fairly fast device for coding/debugging and preferably at least 4.0+ Android. Nov 22 02:29:33 johny-b-goode, you can embed the fragments inside it in other activitues Nov 22 02:32:25 so the fragments inside the fragment activity can be embedded in other activites? Nov 22 02:33:15 also reading about intents from android documentation. lot of info. Nov 22 02:33:28 overloading a on ideas **** ENDING LOGGING AT Thu Nov 22 02:59:58 2012