**** BEGIN LOGGING AT Sun Apr 14 02:59:58 2013 Apr 14 03:03:26 O here is another question... Why/how does Verizon have their own button in the Play Store? Apr 14 03:04:04 First off, I hate all the crap they inject into my devices. The apps that they offer suck, are outdated, buggy, and hardly help with anything Apr 14 03:04:38 Second, why can I not opt out of it? I dont want it. Apr 14 03:05:18 adroidman: it's because they make the firmware images on the phones sold through their network, so they can put whatever they want on themn Apr 14 03:05:23 it's an issue with verizon Apr 14 03:05:39 as for their own button... what do you mean? Apr 14 03:05:52 Do you have a verizon device? Apr 14 03:06:19 1 sec ill get a screen shot Apr 14 03:06:32 no, we don't have such assholish networks here (or CDMA the king of lockdown) Apr 14 03:06:54 https://dl.dropboxusercontent.com/u/11217802/Screenshot_2013-04-13-23-06-14.png Apr 14 03:06:55 lucky! Apr 14 03:07:19 the button in the top right Apr 14 03:07:55 I am on a custom ROM so really I think they somehow got the API... In that case, why can't developers get the API? Apr 14 03:07:59 i'm confused about what you would want to do with a Play Store API Apr 14 03:08:21 you want to inject your content in to the play store app? Apr 14 03:08:30 adroidman: ... I actually can't figure out what version of Play Store you have o_O Apr 14 03:08:30 Display my App info on my site. Like download count, reviews/starts, Apr 14 03:08:46 p_1 its the newest, just came out Apr 14 03:08:54 not yet on my N4 Apr 14 03:09:14 Droid-life has a download of it Apr 14 03:09:15 however, I'd suspect a way to access carrier-only part of market Apr 14 03:10:00 adroidman: what happens if you do click it? Apr 14 03:10:23 it shows all the VZW apps Apr 14 03:10:25 hello all Apr 14 03:10:32 then private store Apr 14 03:10:39 Anyone seeing missing comments on their app's playstore page? Apr 14 03:11:00 I've had 3 comments in the last few days that I just cannot see but the 5-star number is increasing as is my star average. Apr 14 03:11:05 The API I want for web info and I have a few 'ideas' that need market info but I cant do any of that yet Apr 14 03:11:07 it's been announced sometime ago that Google will have private stores available for institutions and I guess networks count Apr 14 03:11:26 Hey QubeZ I dont have that issue but I am not able to reply to any comments... Apr 14 03:11:45 Gotcha, thats for answering that p_1 Apr 14 03:11:55 weird, I can reply to comments just fine. Just can't see the new comments. Apr 14 03:12:26 Does anyone know if Google is blocking replying to comments for root apps? Apr 14 03:12:41 p_l: heard a rumor that android 5 will be SE linux Apr 14 03:12:51 g00s: 4.1 uses SE Linux, iirc Apr 14 03:12:55 and containers Apr 14 03:13:00 they're rolling out the reply to comments feature slowly Apr 14 03:13:10 g00s: containers are definitely in Apr 14 03:13:26 is that the NSA made linux with the backdoors ;) ? Apr 14 03:13:28 Thanks Kevinb anyway to get it 'early' or sooner? Apr 14 03:13:32 p_l: maybe se will be on to greater extent, dunno Apr 14 03:13:35 shmooz: no backdoors Apr 14 03:13:47 adroidman: it's certainly undocumented, but the new developer console makes a JSON request to a URL like https://play.google.com/apps/publish/v2/androidapps?dev_acc=12345 that has the data in it Apr 14 03:13:52 g00s: or maybe one day the press will learn to not be rumour mongers Apr 14 03:14:12 SE rumour was actually before 4.2 Apr 14 03:14:22 and I think it was 4.2 that added it, sorry\ Apr 14 03:14:29 p_l: i've never google mention SE linux in their current info Apr 14 03:14:33 isn't the sgs4 using se linux? or is it something else? Apr 14 03:14:43 oh yeah, KNOX and stuff Apr 14 03:14:46 Gotcha, so I need my dev account in that json? Apr 14 03:15:39 adroidman: i doubt there is any way to get it earlier. just have to wait. Apr 14 03:16:17 Thanks Apr 14 03:16:31 What about any type of Play Store API? Apr 14 03:17:17 appbrain has some kind of iframe thing or something. android police uses it in their articles about apps. Apr 14 03:18:58 i don't know what the dev_acc value really is Apr 14 03:18:59 Kevinb I actually took that and improved it some. I guess I should just say this.... I work for Jrummy Apps and we have some ideas but need a way to retrieve data from the play store. This is a very basic start https://play.google.com/store/apps/details?id=com.jrummy.apps.google.play.api#?t=W251bGwsMSwxLDIxMiwiY29tLmpydW1teS5hcHBzLmdvb2dsZS5wbGF5LmFwaSJd Apr 14 03:19:05 but it would make sense if it was dev account Apr 14 03:25:04 so SE android contributions started Jan 2013 from NSA http://www.electronicsweekly.com/blogs/eyes-on-android-updates/2013/03/what-is-security-enhanced-se-android.html Apr 14 03:25:30 i mean, they started before that, but the code was submitted to aosp at that time Apr 14 03:25:38 so i dont see how it could be in 4.2 Apr 14 03:26:15 custom ROMS Apr 14 03:31:07 i got confused between SE Linux and SE Android :| Apr 14 03:31:35 g00s: SE linux is part of normal kernel, so it could have been built in some experimental versions Apr 14 03:31:47 I think some leaked 4.2.x had SE Linux enabled Apr 14 03:33:54 adroidman if you had the computing power, you could spider the store Apr 14 03:34:39 ... dafuq Apr 14 03:34:45 yet another school shooting Apr 14 03:34:59 Dav, we currently do that for our themes section but with over 600K apps and growing it would take hours :/ Apr 14 03:50:09 ls -l Apr 14 03:50:12 oops :) Apr 14 03:51:03 p_l: with UnloadTab extension, i've kept my FF open all week with 60-70 tabs, only using about 500mb memory :) Apr 14 03:51:20 nice Apr 14 04:11:10 How do I handle testing something that uses getExternalStorageDirectory. Besides creating an abstraction. Apr 14 04:13:13 Just an abstraction or pass in a File to the constructor :) Apr 14 04:33:18 Do recent (4.0 and higher) versions of Android support pan and zoom natively in the SDK or is this something I have to write myself? Apr 14 04:37:37 firefly2442 pan and zoom of…..what? Apr 14 04:37:53 an image Apr 14 04:38:11 in an image view? Apr 14 04:38:15 a rather large image, 8000x8000 Apr 14 04:39:14 yes I believe so, although I think I'll have to do some things to keep it from overflowing memory limits Apr 14 06:16:00 ? Apr 14 06:24:10 ! Apr 14 06:25:07 whats new g00s Apr 14 06:25:12 any new busines prospects Apr 14 06:25:17 or kinda just doing your photo thing Apr 14 06:25:38 hm, no. yeah - just reading about Lightroom and some other photography stuff Apr 14 06:26:07 reading obj-c Apr 14 06:26:15 well if you arent already... hope you make decent cash on that Apr 14 06:26:23 :) Apr 14 06:26:40 obj-c! Apr 14 06:26:46 i "attempt" photography for fun Apr 14 06:27:56 finished a book on Git Apr 14 06:28:18 haha Apr 14 06:28:20 going to start contributing to the eclipse paho mqtt client Apr 14 06:28:27 nice! Apr 14 06:28:33 what language is that.... java? Apr 14 06:28:49 they have a few. i'll probably work on java Apr 14 06:28:56 the other devs are ibm'ers Apr 14 06:29:52 trouble is, they are in the UK - so if i want to chat with them its like 5am here :/ Apr 14 06:30:00 haha Apr 14 06:30:12 thats how it was when I was starting to work with ubuntu writing ubuntu mobile apps Apr 14 06:30:21 half the devs were us half were people form other countries Apr 14 06:30:31 and they always wanted to have all dev meetings Apr 14 06:31:57 I need to figure out how to juggle my time better Apr 14 06:32:12 yeah, things get distracting Apr 14 06:32:21 coming off meds that were known to completely fuck my attention span and sleep patterns Apr 14 06:32:22 so Apr 14 06:32:42 hoping things get better Apr 14 06:33:16 the more i read, the more i'm convinced artifical light fucks everybody up - and probably light from the computer screen too Apr 14 06:33:34 meh my sleep patterns just suck Apr 14 06:33:49 for about 2yr I'd go to sleep at about midnight, wake up about 2hr later and couldnt go back to sleep Apr 14 06:33:55 take a 30min nap after work Apr 14 06:33:59 i remember one study that put people in a situation where they had 14 hours total darkness; they all went into a segment / biphasic sleep pattern Apr 14 06:34:02 same scenario repeats Apr 14 06:34:06 exactly Apr 14 06:34:09 thats what I was doing Apr 14 06:34:25 so sleep 2 hours after sunset for 4 hours, wake for 2, sleep for 4 more Apr 14 06:34:40 well same as me cept I spent much more time awake Apr 14 06:34:48 I was actually *HUGELY* productive then Apr 14 06:34:51 i have a link for you :) Apr 14 06:35:11 http://www.theatlantic.com/health/archive/2013/04/study-listening-to-certain-sounds-seems-to-improve-sleep/274921/ Apr 14 06:35:16 with these meds, I'm just a zombie Apr 14 06:35:26 i need something like that device :| Apr 14 06:36:25 ron_frown: sounds cheesy, but maybe try wearing glasses that block blue light … for indoors, i think they are yellow lenses Apr 14 06:37:06 http://playnoise.com/ Apr 14 06:37:34 in this study, the sound was sync'd to your brain waves somehow Apr 14 06:37:48 kind of like a master clock (click track) Apr 14 06:37:56 oh Apr 14 06:38:08 g00s: small sample set, only one test and one control, needs more data! Apr 14 06:38:10 I know everyone says your sleep cycles go like x and you dream x amount of the time Apr 14 06:38:18 I really really feel like I dont dream Apr 14 06:38:56 only dream I ever emember having is when I was passing a stone, and accidentally pissed on the living room floor Apr 14 06:39:15 :| Apr 14 06:39:19 tmi ! Apr 14 06:39:21 not like I had a dream and cant remember it Apr 14 06:40:06 so is this... just imagine a stent from the kidney all the way to outside environment... and that snagging on shit frequently Apr 14 06:40:17 no no no Apr 14 06:40:22 lalalalalalallalalalala Apr 14 06:40:22 HAHAHHA Apr 14 06:40:27 that is all Apr 14 06:40:43 ;) if you have a genetic predisposition to kidney stones, i think you want more calcium Apr 14 06:41:01 I've had stones before, this last time I got a stent... I already decided if it comes up again... I'm going to threaten the dr's life if they talk about putting a stent in again Apr 14 06:41:19 said lik this "... give me a stent again, I am going to fucking kill you... no ifs and or buts about it" Apr 14 06:41:49 g00s apparently what I am supposed to avoid is foods rich in calcium oxcelate which is surprisingly mostly greens Apr 14 06:41:52 leafy vegetables Apr 14 06:41:53 etc Apr 14 06:42:25 ron_frown: eat more kale ! Apr 14 06:42:35 no oxalic acid Apr 14 06:42:36 what you want me to have stones again Apr 14 06:42:38 oh Apr 14 06:43:07 http://www.nlm.nih.gov/medlineplus/news/fullstory_135643.html Apr 14 06:43:12 from last week Apr 14 06:43:12 one last gem... cubic centimeter stone... lodged in ureter and blocked any flow... my kidney felt like it was going to explode Apr 14 06:43:51 "The more calcium in the digestive tract, she said, the more oxalate it can bind and take out of the body before the oxalate is absorbed into the bloodstream and ends up in the kidneys and bile duct." Apr 14 06:44:17 there is no family history that I am aware of Apr 14 06:44:49 just lucky I guess Apr 14 06:45:08 I should try though some sleep expiriment Apr 14 06:45:40 start reading a book on Git or something Apr 14 06:45:40 not that I condone it, one time I tried a friends provigil Apr 14 06:45:47 jesus christ almighty Apr 14 06:45:56 i get so sleepy reading about git Apr 14 06:46:01 perception of time went right out the window Apr 14 06:46:05 I learn by doing Apr 14 06:46:16 I could read about git 100x but until I actually need to do it, its in one ear out the other Apr 14 06:46:21 well then, learn to sleep by doing ! Apr 14 06:46:31 :) Apr 14 06:46:50 you got a reasonably recent mobile phone? Apr 14 06:46:56 no Apr 14 06:46:59 balls Apr 14 06:47:21 ios simulator is very good Apr 14 06:47:44 i'm going to wait until i/o and maybe get something then if announced Apr 14 06:47:52 oh Apr 14 06:47:57 ios simulator is pretty good Apr 14 06:48:00 still seen some minor issues Apr 14 06:48:12 I really hate the fact they havent budged on the 'you must have a mac to build ios apps" Apr 14 06:48:40 one thing the ios guy have going for them, is they have awesome books. everytopic has a good book. you dont have to read the books, but i like books so … i'm happy Apr 14 06:49:13 cool I'm building something that I've been wanting to for quite some time Apr 14 06:49:14 i'm also looking forward to using sqlite directly from c Apr 14 06:49:37 will require me to knock out apps for ios,bb10,wm,etc Apr 14 06:49:43 nice learning experience I imagine Apr 14 06:49:48 i dont like the java sqlite bindings Apr 14 06:49:53 ios and android should be real brief Apr 14 06:50:08 between the java bindings, the jni, too much cycles burned Apr 14 06:50:14 g00s no shit.. if they were to jsut use a java lib to access sqlite and leave it at that without crappin all over it Apr 14 06:50:18 it would have been better Apr 14 06:50:31 ultimately that too Apr 14 06:50:47 I think I'd be a lot ahppier with android if c++ wasnt a second class citizen Apr 14 06:50:58 and there were android ui frameowrks etc for c++ Apr 14 06:51:08 like qml / qt Apr 14 06:51:13 although qt5.1 is supposed to support it natively Apr 14 06:51:23 the way qt supports android right now is kinda shitty Apr 14 06:51:38 you have to download a bootstrapper that will download a 20meg file to allow qt to run Apr 14 06:52:01 I *THINK* 5.1 is going to allow you to do it a bit diff Apr 14 06:52:06 but hell yes Apr 14 06:52:25 if I can write c++ and end up with stuff that will basically compile out of box on ios/android Apr 14 06:52:28 I'll be stoked Apr 14 06:52:57 about the only thing I like about objc is the weird message passing stuff (where you can basically see what a class can respond to etc) Apr 14 06:53:11 and the auto memory management Apr 14 06:53:29 i think it would have been better if most of the framework stuff was pushed into c layers, and you could access it from any language Apr 14 06:53:43 i mean, there is a lot of framework calling into c Apr 14 06:53:52 you are telling me dude Apr 14 06:53:54 but , too much stuff in java frameworks Apr 14 06:54:01 me being a platform engineer has turned me off on android Apr 14 06:54:02 hahaha Apr 14 06:54:03 i think the only reason its in java is to make frameworks simpler to write Apr 14 06:54:14 i can see java GUI stuff, ok Apr 14 06:54:27 only the stuff that performs badly is urgently moved over to c Apr 14 06:54:36 porting shit thats entirely new functionality into the os that uses a lot of low level kernel communications or drivers stuff Apr 14 06:54:38 and the regular Harmony classes (java.util.*, etc) Apr 14 06:54:40 total fucking nightmare Apr 14 06:54:57 been spoiled by .net =( Apr 14 06:55:12 ron_frown: but even ms seems to be emphasizing c++ lately Apr 14 06:55:26 they are just trying to get caught up with the c++ 11 standards Apr 14 06:55:30 g00s: yeah they are Apr 14 06:55:35 i mean, i did c++ for a long time and kinda don't miss it … but it has its place i suppose Apr 14 06:56:01 g00s I like that they are starting to get dynamic like features in it Apr 14 06:56:13 just makes it that much more viable Apr 14 06:56:23 but stuff like missing reflection etc Apr 14 06:56:43 I dont get how they cant look at something like reflection and really more or less ignore its value Apr 14 06:57:16 pojo to json would be a huge pita if there wasnt even the littlest bit of reflection in java Apr 14 06:57:59 ron_frown: c++ people knows about reflection and i guess they know its value, but it will break one of the C++ principal points: you only get what you need (a class instantation actually instantiates only what you need, so you can have a precise memory layout) Apr 14 06:58:03 I dont know... I dont think it'd be that hard for google to just fix their issues if they focused on it Apr 14 06:58:37 rendar there are people that have built stuff that basically builds a reflection database at compile time Apr 14 06:58:40 and even that would be sufficient Apr 14 06:58:52 just make it a compiler flag that by default is turned off Apr 14 06:59:28 yeah, i agree on that, but its more complex that it seems i guess Apr 14 06:59:28 I'm happy google is actually doing anything at all with android honestly Apr 14 06:59:49 seems like apple keeps adding 5yr old features to its platform Apr 14 06:59:54 and then acting like it was a gift Apr 14 07:00:06 yeah i agree, android is growing much more than iOS Apr 14 07:00:07 :) Apr 14 07:00:20 I just think the efforts to fix some of the major issues with android would go a long ways Apr 14 07:00:40 but aren't people from google just starting to make C/C++ coding (with nda i guess) in android more and more easy? Apr 14 07:00:41 wonder if dalkvik is gonna get a bump any time soon Apr 14 07:00:49 let us use some better language features Apr 14 07:00:52 ron_frown: i think google has designed themselves into a local maxima. some deeper parts of android can be updated easily, like filesystems, SE Android maybe - but the framework - essentially the public apis - in combination with the slow update cycles, makes it hard for them to evolve some things Apr 14 07:01:22 g00s its hard to unopen stuff you've opened, but I think the little stuff Apr 14 07:01:39 eg, fix resource ids (I dont even have a suggestion there), make apis intuitive Apr 14 07:02:06 make dialog management auto managed, or make it so its completely logical to show a dialog and not totally fuck everything up when screen rotation happens =) Apr 14 07:02:23 provide mechanisms to handle async network request callbacks after activity dissapears etc Apr 14 07:02:27 they need a better permission system, where apps are granted/denied perms at runtime too Apr 14 07:02:41 where you can escalate permissions? Apr 14 07:02:48 mostly deny Apr 14 07:02:51 with something like UAC Apr 14 07:02:54 oh Apr 14 07:03:03 see I think they could do that Apr 14 07:03:03 for example, if you want to use FaceBook Home - but not allow it to access your list of running apps Apr 14 07:03:06 based on what I've seen Apr 14 07:03:10 remove internet permission from angry birds Apr 14 07:03:17 clever that would be fucking nice Apr 14 07:03:18 then the ad's wont load, as if you had wifi off Apr 14 07:03:18 open pdroid Apr 14 07:03:20 the app should be able to run without that permission Apr 14 07:03:25 that's what you want for this. Apr 14 07:03:30 ron_frown: i have seen apps (that need root) that do that Apr 14 07:03:43 I've built apps that do that sort of shit Apr 14 07:03:44 haha Apr 14 07:03:46 open pdroid is a ROM patch, works better than those apps. Apr 14 07:03:55 FaceBook Home potentially legitimately needs running apps to handle some lockscreen duties Apr 14 07:04:11 facebook home is a werid concept Apr 14 07:04:17 I use facebook reasonably often Apr 14 07:04:21 I have 0 desire to install home Apr 14 07:04:22 android doesn't let apps see things like FLAG_SHOW_WHEN_LOCKED, so handling voice mail apps from a replacement lockscreen is hard Apr 14 07:04:23 kevinb: how does it need running apps to do the lock screen? Apr 14 07:04:27 it's not built into ROMs though because Google threatens to take away compatibility certification from any ROM that includes it - which means it works. ;) Apr 14 07:04:32 kevinb: another thing is, devs should be able to explain in their words why they need a permission Apr 14 07:04:39 because android doesn't properly support replacement lockscreens Apr 14 07:05:03 kevinb: ah, so it replaces the entire lockscreen, its not using a daydream? Apr 14 07:05:06 g00s they usually do, but in an app description in play store Apr 14 07:05:19 I am sure it doesnt replace Apr 14 07:05:27 it's not using a daydream Apr 14 07:05:51 there are ways to prevent lockscreen from locking etc Apr 14 07:06:12 but theres no intent filter for lockscreen and let users pick what they want to use Apr 14 07:06:27 ron_frown: yeah, ive used 'holo hd locker' before on my tablet, but the bugs where too big of a problem Apr 14 07:06:36 well yeah Apr 14 07:06:40 its going to be half assed at best =) Apr 14 07:06:42 massive upgrade over the stock kindle locker Apr 14 07:06:53 and I dont blame the develoeprs Apr 14 07:07:19 pdroid is interesting Apr 14 07:09:18 If there is not "res/raw" folder i should create one ? Right ? Apr 14 07:09:25 if you need it Apr 14 07:12:48 does anyone want to make a social network app? Apr 14 07:12:55 im in the mood for that Apr 14 07:13:00 why Apr 14 07:13:16 hasnt the internet already proven that social is kind of on its way out Apr 14 07:13:24 I mean dont get me wrong facebook is huge Apr 14 07:13:32 googleplus is bigger than I would have guessed Apr 14 07:13:48 but I dont see a ton of people looking for yet another way to bug their friends Apr 14 07:13:54 yeah, the last thing we need is another social apps Apr 14 07:14:12 VCs won't even fund that crap anymore Apr 14 07:14:35 unless you have a crystal clear business strategy and infallible monetization plan Apr 14 07:14:35 I went to add a volume control and everyone was wanting to connect me ways I did not want Apr 14 07:15:03 I say build it if you want Apr 14 07:15:05 you never know Apr 14 07:15:28 but Instagram and stuff is good, VC will fund if they see a possible aquisition Apr 14 07:16:23 social sucks, you just haven't realized it yet. because (1) the easier it is to share, the less worthwhile the stuff being shared and (2) externalizing experiences is vacuous Apr 14 07:16:26 I have a terminal app so I can unmount my sdcard will android try to mount it again Apr 14 07:16:56 I dont use instagram nor do I see any use for it Apr 14 07:17:02 they obviously made craploads of money off it Apr 14 07:17:15 but I'd bet for instagrams success, there were probalby 1000s of attempts Apr 14 07:17:30 its almost like, you can't claim you were someplace unless you posted a picture of you there proving it these days Apr 14 07:17:37 hehe Apr 14 07:17:56 "ron, i went to the Pyramids today!" Apr 14 07:18:06 ron: instagram or it didn't happen Apr 14 07:18:48 meh Apr 14 07:18:51 and then you're sitting there with 7 billion other profiles, and have to decide, how the fuck to i make my profile stand out Apr 14 07:19:00 oh, i'll exaggerate Apr 14 07:19:17 my cousin uses pintrest non stop to post to his facebook feed Apr 14 07:19:19 so eveybody starts exaggerating their awesome lives Apr 14 07:19:42 and everybody else just gets depressed because they didn't climb Everest over lunch Apr 14 07:20:02 I dont like people, I'm a sociopath Apr 14 07:20:13 so I'm probably not the best person to provide input =) Apr 14 07:20:41 actually, personality disorders are over represented on FB … specifically narcissism Apr 14 07:20:53 and anxiety & depression Apr 14 07:21:01 well based on this def I'm not a sociopath Apr 14 07:21:03 But guys, even if I agree these social things suck, the guys who made these sites are rich as fagck Apr 14 07:21:08 "masters of influence and deception" Apr 14 07:21:22 tumblr, how f*cking simple idea wasn't that? I think they have a billion dollar valuation Apr 14 07:21:23 dahlmoony: that was a different time and era Apr 14 07:21:31 I just hate people, value social interaction atnothing Apr 14 07:21:40 I dont know what tumblr is honestly Apr 14 07:21:43 I have never signed up with FB and I uninstalled Instagram when it forced me to be FB member, which is from the start Apr 14 07:21:50 micro blogging, sheesh ron_frown Apr 14 07:22:13 well like twitter, when it first came out... I was like wtf, I dont get it Apr 14 07:22:18 hehe Apr 14 07:22:20 its like facebook without the shit I'd actually use Apr 14 07:22:20 MediaPlayer mediaPlayer = MediaPlayer.create(context, R.raw.sound_file_1); Apr 14 07:22:28 Is sound_file_1 is name of file ? Apr 14 07:22:30 looked into it... .sure enough... exactly what I thought Apr 14 07:22:32 oh, and android question Apr 14 07:22:38 its mass hype and everyone starts talking about it Apr 14 07:22:46 people tweeting about the massive shit they took Apr 14 07:22:51 g00s: shush, if we ignore it he might think this isn't #android-dev! Apr 14 07:22:53 or some equally uninteresting fact Apr 14 07:23:05 ? Apr 14 07:23:22 bluesm: These are not the developers you're looking for. Apr 14 07:23:45 kakazza: speak for yourself Apr 14 07:23:51 j/k ;) Is that your own code or from a sample? Apr 14 07:24:03 bluesm I enjoy water in my lungs. Apr 14 07:24:08 what I'd say dahlmoony is just because x, y, z companies were successfule doesnt mean that niche is going to continue to be that way Apr 14 07:24:13 kakazza: Trolls ? Apr 14 07:24:30 dahlmoony: even twitter really can't seem to figure out how to make money Apr 14 07:24:33 bluesm yes its a file, but you dont have to access files like that Apr 14 07:24:44 eg, if you wanted to be able to load a mp3 by filename from sdcard Apr 14 07:24:44 never twitted in my life either ever Apr 14 07:24:45 thats doable Apr 14 07:24:54 doesnt matter, the guys who made twitter live in $10m houses :D Apr 14 07:25:33 ron_frown: I have this file in "raw" folder Apr 14 07:25:36 the best are the guys who have no code at all, and want to know how to architect a social solution that will scale to millions of people Apr 14 07:25:38 yeah Apr 14 07:25:44 haha Apr 14 07:25:51 see I know how to do that Apr 14 07:25:52 because, of course, since its social, millions of people will just start using it Apr 14 07:25:55 and just have shit motivation =) Apr 14 07:26:07 haha xD Apr 14 07:26:22 g00s I met a guy with a pretty genius idea honestly... and his dev was going to be taking a sabattical from code Apr 14 07:26:25 wanted me to take over Apr 14 07:26:33 he already had a pretty decent customer base etc Apr 14 07:26:48 ended up the code was overly complex, and a nightmare to maintain Apr 14 07:27:08 is this your spatial indexing project ? Apr 14 07:27:11 moral of this story is... sometimes its important to stop and make sure you arent coding yourself into a corner =) Apr 14 07:27:16 no no Apr 14 07:27:23 spatial indexing stuff is a part of my database engine =) Apr 14 07:27:24 haha Apr 14 07:27:38 thats what I work on for fun Apr 14 07:27:50 unfortunately that takes a backseat to what actually might make me cash Apr 14 07:28:21 r&d on databases honestly brings up more questions than answers Apr 14 07:28:25 who uses Path? Apr 14 07:28:31 gotta walk the dog, bbl Apr 14 07:28:33 I look at a lot of implementations of storage and and indexing Apr 14 07:28:35 and was like oh god Apr 14 07:29:09 glad my dogs dont need a walk at what... 1am? Apr 14 07:29:31 the prince of dubai might want an app for his $300,000 diamond plated phone Apr 14 07:29:47 I think even just building apps these days Apr 14 07:29:53 is a market not worth the effort Apr 14 07:30:09 I'll let a company pay me 120/hr to build something where they front all the liability and risk Apr 14 07:30:21 but I wont bother building a standalone app for a mobile device Apr 14 07:30:25 its a saturated market Apr 14 07:30:35 I agree Apr 14 07:30:53 depends on the market Apr 14 07:30:55 even top charting games just gross a few million Apr 14 07:31:11 everyone is undercutting the next guy Apr 14 07:31:25 I saw a chinese guy literally release the block matching game under 10 diff names Apr 14 07:31:34 some of which were actually nice quality Apr 14 07:31:40 ad based Apr 14 07:31:54 one thing did come out of twitter Apr 14 07:31:59 bootstrap Apr 14 07:32:01 and I appreciate it Apr 14 07:35:10 I dont know shit about programming but I think you wont make good money unless you get aquired, like Draw Something etc Apr 14 07:35:32 what's your favorite audio app? I'm comparing Tune In to Winamp not sure which wins but they are top Apr 14 07:35:42 and that app Snapseed that Google aquired Apr 14 07:38:07 Tune In is radio, is it not? Apr 14 07:38:18 honestly look at every social network Apr 14 07:38:24 until they get bought they arent making any money Apr 14 07:38:35 facebook is still trying to figure out how to capitalize outside of ads Apr 14 07:38:42 and most of what they've tried is huge fail Apr 14 07:38:53 Could my app run when screen is off. And wait to "activate" when accelerometer shows move ? Apr 14 07:39:00 yes Apr 14 07:39:00 yeah I like Tune in because even if you dont have a FM radio chip, it gathers the radio stations in your area by Location and feeds to you from internet as a stream Apr 14 07:39:26 well I think fb does a good job capitalizzin' but I agree with twitter and all of those guys Apr 14 07:39:27 bluesm the problem is that accelerometers would have to be listening all the time which would murder your battery life Apr 14 07:39:29 but you can also do a search and Tune In and Winamp both claim 50,000+ stations Apr 14 07:39:32 but you could create a service Apr 14 07:40:09 ron_frown: It didn't have to be long. It's kind of prank :) Apr 14 07:40:20 yeah create a service Apr 14 07:40:28 from your service you can fire a broadcast intent Apr 14 07:40:39 and have a intent listener somewhere in your app to wake device Apr 14 07:40:42 turn on screen Apr 14 07:40:42 etc Apr 14 07:41:26 I'd like to build an audio app like those and extend it further Apr 14 07:42:49 make it so users can contribute links to media or even upload media to a database, and add more server networks like IceCast and whatever Apr 14 07:43:25 do it Apr 14 07:43:29 just be careful Apr 14 07:43:45 messing with audio licensing etc can be a nightmare Apr 14 07:44:42 I can have users create accounts to upload so that it will be their responsibility, with a disclaimer of some sort that they have to agree when they sign up Apr 14 07:45:00 A more private version of facebook + call it "Path" = quarter billion dollar valuation Apr 14 07:45:01 FUCK Apr 14 07:45:07 we need to do a copycat too! Apr 14 07:45:30 nobody wants another facebook Apr 14 07:45:34 tons of people are LEAVING facebook Apr 14 07:45:43 that was a real world example yo Apr 14 07:45:55 I am going to create the first antisocial network Apr 14 07:45:57 Path is valued at $250 milli :S Apr 14 07:46:03 lmao ye good idea Apr 14 07:46:08 where you cant connect to anyone Apr 14 07:46:09 haha Apr 14 07:46:14 I have honestly never heard of path Apr 14 07:46:19 dahlmoony: really? Apr 14 07:46:23 yes! Apr 14 07:46:27 unbeliveable! Apr 14 07:46:36 ron_frown: with a signal jammer to shut everyone up around you lol Apr 14 07:47:00 honestly if I didnt have a family that was in love with california Apr 14 07:47:06 and I could tolerate the snow Apr 14 07:47:16 I'd move way the fuck out to nowhere in alaska or canada or something Apr 14 07:47:18 boonies Apr 14 07:47:28 where I wouldnt have to encounter humans very often =) Apr 14 07:48:12 ron_frown: some friends of mine said that california is pretty cool btw Apr 14 07:48:12 :) Apr 14 07:48:21 I like it a lot heree Apr 14 07:48:26 beautiful, great weather Apr 14 07:48:44 maybe too much crimes? dunno Apr 14 07:48:44 ebing a lot of people come here for that reason, its not great for a hermit like me Apr 14 07:49:18 I actually dont dislike people that much, its just that its become so evident that we are starting to evolve backwards Apr 14 07:49:32 people cant be civil to one another, and while people may be intellectually smart Apr 14 07:49:37 the are just so fucking stupid Apr 14 07:49:37 haha Apr 14 07:49:53 ron_frown: i agree, but i blame mass media for that, which spreads unbeliveable signals to the masses Apr 14 07:49:53 :) Apr 14 07:51:57 * dahlmoony *ALERT* NEW APP IDEA! *ALERT* Apr 14 07:52:00 Eggs-Ray, and app that conducts a X-Ray in a small radius (where your pressed finger is) and you are searching eggs for chickens and then you do something with them... havent figured out it yet I just came up with this ^^ Apr 14 07:52:09 ? Apr 14 07:52:19 lol Apr 14 07:52:42 i think you should find something that people genuinely need Apr 14 07:52:44 and build it Apr 14 07:52:49 and see where it goes from there Apr 14 07:53:12 its a chicken=egg problem Apr 14 07:53:18 I think trying to get something to fly is going to be more about being persistent about an app success Apr 14 07:53:38 than unrealistic lemme come up with an idea for an app I am going to make meelions on Apr 14 07:53:49 stuff I build for andorid makes millions Apr 14 07:53:52 just not for me =) Apr 14 07:54:45 the market needs a better magnifying glass app, work on that Apr 14 07:54:58 ? Apr 14 07:55:11 ifart Apr 14 07:55:12 ron yep yep Apr 14 07:55:13 I was gonna do one but now I'm busy with this video/audio app Apr 14 07:56:14 I need something where I can watch tv online Apr 14 07:56:16 cant you do a night vision app somtime? Apr 14 07:56:31 or thermal vision like in splinter cell Apr 14 07:56:43 magically without necessary hardware Apr 14 07:57:06 he just have to come up with the right java code! Apr 14 07:57:37 ron_frown: thats what I was working on but I couldn't fin suitable mobile links that are compatible with VideoView and now still working on getting some ffmpeg container compiled with NDK for that Apr 14 07:57:52 android makes good UI for SCADA Apr 14 07:58:10 BJfreeman you've seen the stuff I've built then? Apr 14 07:58:11 =) Apr 14 07:58:11 haha Apr 14 07:58:20 VideoView component that comes with the API works well with mobile youtube links though, but couldn't find much else Apr 14 07:58:31 industrial automation, HMI, etc Apr 14 07:58:39 No been in SCADA since the 80's Apr 14 07:58:58 been doing Java only Apr 14 07:59:04 what is your link Apr 14 07:59:41 I just had a couple screenshots of what basically amounts to scada monitoring Apr 14 07:59:54 ah Apr 14 08:00:03 I built a scada interface builder that was a real clean 3d environment Apr 14 08:00:07 place a machien here Apr 14 08:00:16 setup gauges/monitors Apr 14 08:00:24 push values in and out of compatible devices Apr 14 08:01:09 adb stands for "android debug tool" what the "am" command mean ? Apr 14 08:01:12 yeah mine is more widget in xml that get rendered Apr 14 08:01:13 android ... m ? Apr 14 08:01:36 i think am is activity manager Apr 14 08:01:39 yep Apr 14 08:01:45 BJfreeman cool Apr 14 08:01:47 you got links to that Apr 14 08:02:05 just glad to see people doing that sort of thing Apr 14 08:02:13 engineers typically build scada software Apr 14 08:02:19 and it usually LOOKS like engineers built it Apr 14 08:02:40 oooh now i know a good app name Apr 14 08:02:42 LickMayonnaise Apr 14 08:03:03 I took from the ofbiz frame work ofbiz is an opensource ERP system Apr 14 08:03:09 its about licking up mayonnaise from the bowl but it sounds like "lick my own ass" :D Apr 14 08:03:16 wow Apr 14 08:03:20 fuuuuuuu Apr 14 08:03:24 ofbiz is still around?!? Apr 14 08:03:24 haha Apr 14 08:03:26 nice Apr 14 08:03:44 I was dinking around with ofbiz like 10yr ago Apr 14 08:03:48 very much I support it Apr 14 08:03:57 used to be aquaintences with the dude who wrote that crap Apr 14 08:04:05 when he was building it Apr 14 08:04:08 changed a lot from the orginal Apr 14 08:04:12 I can imagine Apr 14 08:04:19 David Apr 14 08:04:27 he used to hang in #java Apr 14 08:04:38 and I used to bitch to no end about the j2ee non-standards Apr 14 08:04:44 his stuff just worked better Apr 14 08:05:12 well his framework is and was the reason I adopted it Apr 14 08:05:25 very shortly after he started making public builds, I was using it Apr 14 08:05:41 yup Apr 14 08:05:42 oh wel nighty night time for me Apr 14 08:05:56 take care Apr 14 08:06:03 First rule of #android-dev: You do not go to sleep Apr 14 08:06:23 I'm starting boat motor rebuilt first thing in the morning tomorrow Apr 14 08:06:25 just a new shift of people Apr 14 08:06:27 need sleep between now and then Apr 14 08:07:02 alright bye man :) Apr 14 08:07:04 have fun nice to have a life outside of dev Apr 14 08:07:11 haha Apr 14 08:07:55 I made love to a goose Apr 14 08:08:24 well that is better than being goosed Apr 14 08:09:24 I have 3 animals in my house Apr 14 08:09:28 1 seahorse Apr 14 08:09:30 1 moose Apr 14 08:10:03 interesting roommates LOL Apr 14 08:10:11 yeah:D Apr 14 08:10:59 living in an MotorCoach limits my roommates Apr 14 08:11:38 is it a tour bus? Apr 14 08:12:04 http://roadwarrior.free-man.com/ Apr 14 08:12:55 haha fun Apr 14 08:13:43 I have enjoyed it for decades Apr 14 08:13:56 let me guess, since 1989 Apr 14 08:14:13 how did you know :P Apr 14 08:14:39 the evil internet have revealed all your personal information! Apr 14 08:15:13 Right now am converting my RV Dash to Android Apr 14 08:15:43 im not american I dont know what RV dash means :( Apr 14 08:16:31 RV is Recreational Vehicle a general class of living situations on wheels Apr 14 08:16:43 Dash as in Car Dashboard Apr 14 08:17:09 oh :) Apr 14 08:17:16 with dials and gauges Apr 14 08:17:54 plus video for front and back monitory and avoidance alerts Apr 14 08:18:09 monitoring Apr 14 08:20:30 the Base UI is on a A13 using STM32F1 for systems monitoring like engine, generator,Refrigerator, and holding tanks Apr 14 08:21:42 BJfreeman: how do you transfer your truck? Apr 14 08:22:28 if i have my EditText inputType set as datetime, what is the format of datetime? Apr 14 08:22:32 I tow the truck Apr 14 08:22:42 BJfreeman: funny :D Apr 14 08:22:53 BJfreeman: whats your job? Apr 14 08:23:29 I am 7.1 decades old and mostly been a Systems integrator for SCADA Apr 14 08:23:52 aha Apr 14 08:25:03 been freelancing since the early 70's Apr 14 08:27:44 If I have aacone file (which is aac music file) Apr 14 08:27:51 It shit correct MediaPlayer mPlayer = MediaPlayer.create(this,R.raw.aacone); ? Apr 14 08:28:18 I get Caused by: java.lang.NullPointerException Apr 14 08:28:18 E/AndroidRuntime( 2294): at com.example.myfirstapp.DisplayMessageActivity.onCreate(DisplayMessageActivity.java:44) Apr 14 08:28:26 After -> mPlayer.start(); Apr 14 08:28:37 superlinux-hp http://developer.android.com/reference/java/text/DateFormat.html Apr 14 08:29:10 BJfreeman, thanks Apr 14 08:30:39 oggone seems to work ... Is aac supported ? Apr 14 08:30:57 BJfreeman, but what is the default format i should tell the user to type? Apr 14 08:32:03 superlinux-hp if your internationalizing it the format should change based on local Apr 14 08:32:22 so read up on I8n Apr 14 08:35:13 bluesm if you could paste you stuff in pastebin.com and give a link would be easier to read Apr 14 08:35:54 bluesm, is't about audio files? Apr 14 08:36:17 not on all versions of android. using mp3 is better Apr 14 08:37:52 superlinux-hp: It's probably because there isn't support for this codec Apr 14 08:38:28 bluesm, there is , but on 4.x and on.. Apr 14 08:38:52 superlinux-hp: For aac ? Apr 14 08:39:06 superlinux-hp: Do you know something about audio codecs ? Apr 14 08:39:07 there is a table about audio support in the API reference about it Apr 14 08:39:16 just let me find it Apr 14 08:39:41 superlinux-hp: There is probably a several codecs for "acc" i do not understand Apr 14 08:41:18 superlinux-hp in the link I gave you DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE); Apr 14 08:41:19 bluesm, i don't know about the codecs. all i know that ACC in general needs newer android Apr 14 08:43:09 bluesm if you download the SDK code, it will give you how to handle audio Apr 14 08:43:45 bluesm, http://developer.android.com/guide/appendix/media-formats.html Apr 14 08:44:28 also http://developer.android.com/reference/android/media/AudioFormat.html Apr 14 08:48:14 superlinux-hp: So I probably have AAC ELD (enhanced low delay AAC) ? Apr 14 08:49:09 bluesm, all i understand is to stick with what inside the reference Apr 14 08:49:56 and i don't understand the meaning of different codecs, to be frank Apr 14 08:52:15 This could be because 2.3 doesn't support the codec Apr 14 08:52:15 https://gist.github.com/bluesm/5381996 Apr 14 08:55:56 bluesm a codec is how the audio was compressed Apr 14 08:56:19 sort of like a zip, Tar file Apr 14 08:56:30 BJfreeman: Right. Apr 14 08:56:43 BJfreeman: I do understand. Apr 14 08:56:45 if you don't have the codec to de-compress it won't work Apr 14 08:57:23 so the meaning of the codec is the format they were compressed Apr 14 08:59:07 if i want the EditText inputType to be either datetime or a positive number is this xml correct: android:inputType="datetime|number" ? Apr 14 08:59:07 The word codec stand for "coder-decoder" Apr 14 09:02:21 BJfreeman: But why this error -> Caused by: java.lang.NullPointerException Apr 14 09:02:23 ? Apr 14 09:04:11 superlinux-hp http://android-er.blogspot.com/2010/07/some-examples-of-inputtype-on-edittext.html Apr 14 09:04:43 BJfreeman, thanks mate. bless you for your information. Apr 14 09:04:45 bluesm there is more before that error that gives you why Apr 14 09:05:35 superlinux-hp google is my friend android EditText inputType xml Apr 14 09:05:52 BJfreeman: Could you point the line. ? Apr 14 09:06:37 please pastebin.com the error message you got entirely,thanks Apr 14 09:08:07 BJfreeman, i understand google is our friend. but what i am really looking for is another level of thinking. i want the input type to check for ONLY either positive number or a date format, and whether this is allowed or if allowed whether it will work. got me? Apr 14 09:09:06 the xml is just for the layout. you have to code the way to evaluate Apr 14 09:09:47 mmm Apr 14 09:09:49 ok Apr 14 09:12:04 you would have a listener on that text field that when something is typed it would call the listener and you would evaluate. this is basic java Apr 14 09:14:09 superlinux-hp: but you can force only numbers for instance through xml Apr 14 09:14:21 and then evaluate the input with code Apr 14 09:14:24 android:inputType="number|numberSigned|numberDecimal" Apr 14 09:15:02 sorry, didnt read the entire conversation Apr 14 09:16:21 Quacked, i am trying to use existing API code.. got me? this means i have to make two EditTexts and hide/disable the other Apr 14 09:16:53 i am making a form to convert between julian date and normal dates Apr 14 09:18:16 so the spinner to choose the conversion direction can help in setting the inputType check Apr 14 09:27:24 hey guys, I m kinda stuck trying to change a view background color to something more transparent Apr 14 09:28:15 no matter whether I try it via HexColor (e.g. "#33FF0000"), view.getBackground().setAlpha(10); or with an AlphaAnimation - it always displays a different color instead of the same one, just transparent Apr 14 09:28:54 however if I try it in the XML file and set the color to "#33FF0000" for instance, it displays a transparent color just as it should Apr 14 09:35:04 BJfreeman: https://gist.github.com/bluesm/5382097 Apr 14 09:35:39 BJfreeman: It's all from starting app to click "force close" Apr 14 09:35:49 anyone got an idea why setting a transparent background color for a view wouldn't work in code, but does in the xml file just fine? Apr 14 09:36:44 bluesm: Caused by: java.lang.NullPointerException Apr 14 09:36:53 and then tells you where Apr 14 09:37:09 ray122: how are you setting it ? Apr 14 09:37:23 StingRay_: Why this is an error when it should say "codec is not available" Apr 14 09:38:18 I tried: view.setBackgroundColor(0x33FF0000); (same in xml which worked), view.setAlpha(), view.getBackground().setAlpha() and AlphaAnimation -> view.startAnimation(alpha); Apr 14 09:38:29 all with the same result, a whole different color and not a transparent one Apr 14 09:38:47 ray try Color.TRANSPARENT Apr 14 09:38:53 returns an int Apr 14 09:39:09 or try Color.parse("myhexvalue"); Apr 14 09:39:16 that returns an int Apr 14 09:39:30 I also tried Color.parse already but will try Color.TRANSPARENT quickly, thanks! Apr 14 09:40:24 same result, the current color is somehting red'ish and using that its getting fully green Apr 14 09:40:32 not transparent though Apr 14 09:40:54 however if I use the hexcode of above in the xml as background value, its perfectly transparent Apr 14 09:42:12 0x33FF0000 well that is a faint red tint Apr 14 09:42:26 and you get green ? Apr 14 09:43:20 if you do something like setBagroundColor(Color.parseColor("#88FF0000")) you get green ? Apr 14 09:43:24 yep dark solid green Apr 14 09:43:31 wait I try Apr 14 09:44:09 that gives me something inbetween yellow and brown Apr 14 09:44:27 bluesm the problems is thread exiting with uncaught exception. you need to add an exception that either shows the stack or handle the exception Apr 14 09:44:33 what? Apr 14 09:44:55 if I do it in code, if I do it in the xml its sorta lil transparent red Apr 14 09:45:06 just setBagroundColor(Color.parseColor("#FF0000")) Apr 14 09:45:11 yeah I did Apr 14 09:45:16 obviously solid red Apr 14 09:45:22 thats what you get > Apr 14 09:45:23 ? Apr 14 09:45:25 viewOld.setBackgroundColor(Color.parseColor("#88FF0000")); Apr 14 09:45:32 something inbetween yellow and black Apr 14 09:45:44 I have a DEX prep when launching my app saying unzip in 0ms, rewrite 365ms. Is it normal that it takes so long? Apr 14 09:45:45 kill transparency "ff" and test Apr 14 09:46:06 its and ads-435223523.jar Apr 14 09:46:08 as in just #FF0000 Apr 14 09:46:10 an* Apr 14 09:46:22 red Apr 14 09:46:29 morning StingRay_ Apr 14 09:46:36 morning pal Apr 14 09:46:57 ray122: you dont have colors underneath that are causing the blend = result Apr 14 09:46:59 ?? Apr 14 09:47:05 thing is: i tried all workaround I found, i tried setalpha, work with hex, use a whole alphaanimation... and using the same values they always give me back the same result Apr 14 09:47:37 StringRay_: thats a good question... :) Apr 14 09:47:52 cause it's either that or a use/typo thats doing this Apr 14 09:48:03 color is not that….erm…. finiky :) Apr 14 09:48:16 StingRay_: I found a reason for benefitting from RL btw... now my progressbar doesnt show in the middle of the screen anymore Apr 14 09:48:41 Quacked: it should be in a dialog thats why Apr 14 09:48:51 and yes you could have it there if you wanted Apr 14 09:48:51 yeah, thats what I'm working on now :) Apr 14 09:49:06 yeah, but not on top of other stuff Apr 14 09:49:21 yeah Apr 14 09:49:26 your root is a frame layout ? Apr 14 09:49:49 well neways, you should use a dialog really Apr 14 09:49:54 mine? linearlayout Apr 14 09:49:57 lol I m so stupid,,, thanks StingRay_ Apr 14 09:50:22 What he should do is update the results as the user types, but a dialog works as well ^_^ Apr 14 09:50:27 I was sitting here for hours tryna figure that one out... the layout containing the view had also a background color for test purposes Apr 14 09:50:33 ray122: take heart, sometimes simple things confound complex minds Apr 14 09:50:40 I have the opposite problem Apr 14 09:50:51 complex things screw my simple mind Apr 14 09:50:54 SimonVT: thats a horrible solution :D Apr 14 09:51:01 haha yeah I guess, well thanks a lot Apr 14 09:51:09 Not really Apr 14 09:51:19 I dont even know what this progress is ? Apr 14 09:51:23 whats it for ? Apr 14 09:51:34 SimonVT: in this case it is, as it relies on user input in two text fields Apr 14 09:51:40 SimonVT: its not just a normal search Apr 14 09:52:07 oh this for results from typing a word ? Apr 14 09:52:15 yeah Apr 14 09:52:19 looking up in a database Apr 14 09:52:26 and whats the source db ? Apr 14 09:52:26 through a POST Apr 14 09:52:28 local ? Apr 14 09:52:31 nope Apr 14 09:52:50 but tis a db ? Apr 14 09:53:02 nah, just a POST on a website Apr 14 09:53:10 so on slow connections I show a progress bar Apr 14 09:53:15 after 500 ms Apr 14 09:56:20 crap.. if I click on searches like mental, the progressbar dialog goes in an endless loop Apr 14 10:19:39 hi - anyone here familiar with costing/revenue for a mobile app game Apr 14 10:20:28 I am with console games Apr 14 10:20:32 not so much mobile Apr 14 10:20:42 perhaps you can still help :) Apr 14 10:20:56 there is a slight gap, so not sure Apr 14 10:20:58 :) Apr 14 10:21:11 basically i am building a model to find out how much the company should price their app, when they should upgrade etc Apr 14 10:21:14 but im stuck on some stuff Apr 14 10:24:48 well that would take lots of info/research/demographics and existing dist. figurues for similar games, also plotting time Apr 14 10:25:08 what exactly are you stuck on….well…..this chan is for android dev really :) Apr 14 10:29:25 ive done all the research/built the model Apr 14 10:29:31 im stuck on some specific questions on the model Apr 14 10:29:32 lseactuary you my try #startups Apr 14 10:29:36 its hard to describe without the models Apr 14 10:30:11 yup trying them :) Apr 14 10:30:51 you hsould make it free and pay for items in game Apr 14 10:30:59 ppl tend to not want to 'check out' paid games Apr 14 10:31:38 right Apr 14 10:31:42 this is exactly how i have modelled it Apr 14 10:31:50 the issue is some specific stuff on my model Apr 14 10:31:54 i can email my model and explain? Apr 14 10:32:03 it will not take more then 10 mins Apr 14 10:32:07 just a few little things im stuck on Apr 14 10:33:02 no i dont want to do personal consulting Apr 14 10:33:03 sound similar to ERP modeling Apr 14 10:33:08 just paste it here somewhere Apr 14 10:33:33 what is ERP modelling? Apr 14 10:33:49 the model is in excel so if i paste it it wont be useful.... Apr 14 10:34:25 well i dont have excel :) Apr 14 10:34:30 how about google docs Apr 14 10:34:53 http://www.umsl.edu/~sauterv/analysis/f06Papers/Wonglikphai/index_files/image004.jpg Apr 14 10:35:27 Enterprise Resource Planning Apr 14 10:35:57 yup i can uplaod in google docs Apr 14 10:39:50 BJfreeman - its not as advanced as that i dont think Apr 14 10:39:54 its a simple DCF analysis Apr 14 10:40:06 http://pastebin.com/MJMLrmxG there is a way to do this only in xml? Apr 14 10:41:06 xan_it: why would you want to ? Apr 14 10:42:03 i need to create a tab with fragment Apr 14 10:42:41 but I mean why would you want to do it ONLY in xml Apr 14 10:42:45 sounds odd/wrong Apr 14 10:43:35 StingRay_ actually works but in eclipse interface if i open layout file as gui (not text editor) i recieve some error Apr 14 10:43:56 ok, dont matter, dont answer then :) Apr 14 10:44:22 this is the best way to do a tab widget? Apr 14 10:45:14 can someone please help me :S Apr 14 10:46:52 ask a question ... dont ask to ask Apr 14 10:47:16 if no one answers, meh Apr 14 10:47:19 StingRay_ ? Apr 14 10:50:35 can anyone help me please? Apr 14 10:50:46 discounted cash flow analysis ... heh ... suspects not many financial planners in here :p Apr 14 10:50:56 lseactuary: yes I will help you Apr 14 10:51:01 thanks!!! Apr 14 10:51:05 can i pm you? Apr 14 10:54:11 hello all Apr 14 11:06:21 http://pastebin.com/MJMLrmxG this is the best way to do a tab widget? Apr 14 11:06:50 why i need tabcontent and realtabcontent??? Apr 14 11:10:58 I've got a strange problem... I've created a class which extends ImageView. The purpose of this class is to scale the image to fit the ImageView's layout_width parameter. I add the images dynamically via the code. I first load a loading image (from res/drawable folder(s)), and that's just right (I set the LayoutParams' width to MATCH_PARENT). The image is scaled to exactly fit the parent's width. Then I load another image from the net Apr 14 11:10:58 and use the setImageBitmap, but width and height become crazy (something like Width: 1073742464; Height: 0 or even negative). http://pastebin.com/UNg6ucyJ - any hint? Apr 14 11:11:38 just to note: I've got another problem, i.e. only the first "loading" image is being shown, the others seem to have height: 0 Apr 14 11:12:16 (according to the Logcat) Apr 14 11:13:31 elegos: well I am no expert but why create your own ImageView subclass. I am ImageView has a method to scale image to its width/height Apr 14 11:14:55 elegos: I used ImageView from layout (XML) and there was this attribute android:scaleType="fitXY" Apr 14 11:15:10 elegos: what are you doing different to using match_parent on the imageView and using scaleType of xxxx ? Apr 14 11:15:35 yeah that what KaiSVK said :) Apr 14 11:15:44 uhm... so I don't need a subclass, but only width: match_parent and height: wrap_content? Apr 14 11:15:55 and scaleType set to fitXY? Apr 14 11:16:23 elegos: give it a shot, I think that is what you are trying to do :) Apr 14 11:16:47 thanks, will try! I thought that with height: wrap_content would deform the image Apr 14 11:16:49 StingRay_: oh my... yeasterday I was struggling with XML parsing in android ... now I am trying to help :D Apr 14 11:17:17 indeed, well I'm currently 80% through ditching xml/inflate for my app Apr 14 11:17:41 to get a speed increase since I do lots of conditional layout stuff Apr 14 11:17:47 elegos: StingRay_ I was not inflating it :D I was just lame parsing it to some structure and worked with that ... :D Apr 14 11:17:59 sorry Apr 14 11:18:03 was for StingRay_ Apr 14 11:18:21 well inflate reads and parses Apr 14 11:18:29 so kinda the same Apr 14 11:18:39 something like this? http://pastebin.com/DRfyBxrv Apr 14 11:18:59 StingRay_: I just needed to finish my master's thesis app quickly :D so now I am ashamed of the code when I read it back :D Apr 14 11:19:22 be affraid when you not ashamed Apr 14 11:19:26 means you have peaked Apr 14 11:19:28 ;) Apr 14 11:19:43 luckly I'm ashamed of things I wrote 5 minutes ago Apr 14 11:19:47 :D Apr 14 11:19:55 you mean I can still better myself :) Apr 14 11:20:25 elegos: why not to set scaling in those layour params ? Apr 14 11:21:30 KaiSVK: what do you mean? btw for height > width images, the image gets distorted (and I suspect the other case, too) Apr 14 11:22:20 elegos: nevermind... Apr 14 11:22:50 elegos: look at scale types Apr 14 11:23:02 and test if you must in layout editor Apr 14 11:23:08 you will find what you want Apr 14 11:23:16 centerInside etc Apr 14 11:23:34 StingRay_: that LayoutParams somehow I don't like :/ Apr 14 11:23:36 yeah, unfortunately all the images are being loaded from URLs :P Apr 14 11:23:54 irrelevant, download it an test Apr 14 11:23:59 or have a test subject Apr 14 11:24:01 elegos: download some and test with them maybe ? Apr 14 11:24:12 KaiSVK: uhm... gonna do that Apr 14 11:28:28 Fixed with the CENTER scale type. Now to the other problem... must have something wrong when I've got more than an image per "post", i.e. only the first image is being displayed... may you please check what's wrong in my adapter? Maybe it's just something stupid (selected code): http://pastebin.com/uEmMSSpt Apr 14 11:29:08 also, images tend to be the same, rather than being all different, post per post, but this must be a cache problem Apr 14 11:29:38 elegos: so you are loading images and putting them as view to parrent layout correct ? Apr 14 11:29:44 you dont set a unique ID Apr 14 11:30:13 KaiSVK: yep, the main layout has a separate LinearLayout where images go, I may publish the XML if you want Apr 14 11:30:17 StingRay_: how can I do that? Apr 14 11:30:22 setId() Apr 14 11:30:25 :) Apr 14 11:30:30 simply as that? :) Apr 14 11:30:36 yes :D Apr 14 11:31:13 it requires an int, and I suppose it must be unique Apr 14 11:31:19 epox milliseconds? Apr 14 11:31:20 elegos: you not "inflating" any view then ? Apr 14 11:31:56 StingRay_: no, not inflating, the LinearLayout is already present in the ListLayout's element XML layout file Apr 14 11:32:14 I'm just adding ImageViews to the inner LinearLayout Apr 14 11:32:25 ah ok Apr 14 11:32:51 well the docs say something like "you dont need a unique id in a view hierachy, unless they are at the same level" Apr 14 11:32:59 but I personally think thats BS Apr 14 11:33:17 ahahah :) Apr 14 11:33:37 I'd just use an incrementing int value then Apr 14 11:34:15 i think you should always set a unique id Apr 14 11:35:01 >.< still repeating Apr 14 11:35:15 gonna check if it's a cache issue or something else Apr 14 11:35:27 (by looking the files if they've been downloaded or not) Apr 14 11:36:16 images ARE being downloaded correctly, so it's an implementation issue by my side Apr 14 11:36:55 image duplicates across listView ITEMS ? Apr 14 11:37:07 or duplicates within an listView ITEM ? Apr 14 11:38:17 no, images are always unique Apr 14 11:38:55 i.e. any image from a post is unique both in the post itself and between posts Apr 14 11:42:01 is there a way to get a checksum of an apk's class files within code? Apr 14 11:42:57 Solupus: you could add a custom build process which reads a class' file and outputs an MD5 Apr 14 11:43:21 (setting a variable read by the program at execution time) Apr 14 11:43:21 elegos: custom build process? Apr 14 11:43:47 hmm, sorry still not clear. Could you provide an example? Apr 14 11:44:13 yep, searching for it... I once made a C# app which incremented the build minor version automatically Apr 14 11:45:19 Solupus: look at this example: http://stackoverflow.com/questions/6758685/auto-increment-version-code-in-android-app Apr 14 11:45:31 also read somewhere that you can block access to your application if it wasn't installed from play store? Apr 14 11:45:35 the reply with 48 ups Apr 14 11:46:45 hmmm wasn't exactly what im looking for... unless i misread Apr 14 11:47:06 how does auto-incrementing android manifest relate??? Apr 14 11:47:51 Solupus: that's just an example - the external program can do whatever you do - i.e. creating an MD5 hash of a file (your class) Apr 14 11:48:06 btw to check whenever the app has beeing installed from the market or not: http://stackoverflow.com/questions/3178043/is-there-a-way-to-detect-if-app-was-installed-with-market-or-not Apr 14 11:51:02 ahh thank you very much Apr 14 11:52:29 hello Apr 14 11:53:11 i want to add my android virtual device emulator device id to the testdevice of google admob in order to see ads. how do i see the device id ? Apr 14 11:53:35 ufk: i don't believe you can do that with the virtual device emulator Apr 14 11:53:45 ah ok :) thanks Apr 14 11:53:46 IIRC, all emulators share a similar device id Apr 14 11:54:34 anyone who can help me? Apr 14 11:57:41 Where I can find simple explanation what "context" is ? Apr 14 11:57:59 And "intent". Why they created such a concepts Apr 14 11:59:48 bluesm: http://stackoverflow.com/questions/3572463/what-is-context-in-android Apr 14 12:00:04 http://developer.android.com/reference/android/content/Intent.html Apr 14 12:00:48 is there a way to add data to a ListAdapter to be before the content I have now without scrolling to the top of the list? Apr 14 12:01:26 I wan to invert an endless list view to scroll from bottom to top without autoscrolling to the top when getting more info Apr 14 12:03:21 thepoosh: http://developer.android.com/reference/android/widget/AbsListView.html#setStackFromBottom(boolean) Apr 14 12:03:53 clever: that IS clever Apr 14 12:03:56 thepoosh: and setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL) Apr 14 12:03:59 how did I never see this Apr 14 12:04:01 ?! Apr 14 12:04:15 its on AbsListView, not ListView itself, the documents hide it by default Apr 14 12:05:15 with transcript mode set to normal, it will stay scrolled to the bottom as new things get added Apr 14 12:05:21 but only if you are already at the bottom Apr 14 12:06:13 but when setting the stack from bottom it'll stick to the top when normal? Apr 14 12:06:32 not sure Apr 14 12:06:43 ive always used both together, i'm using it for a chat window Apr 14 12:06:43 hmmm Apr 14 12:07:00 do you save everything locally? Apr 14 12:07:05 or on a server? Apr 14 12:07:15 sqlite db on the phone Apr 14 12:07:18 cause I have it all on a server, and I request batches of 25 messages Apr 14 12:07:39 and I don't want the list to scroll upwards when getting new messages Apr 14 12:07:45 I'll try it on now Apr 14 12:07:49 this is awesome! Apr 14 12:13:07 Hey, is there anyone who can help regarding dynamic/programatically building a layout list or table? I've checked out SO but not sure those answers help my situation... Apr 14 12:15:54 I think need a better explination of your situation Apr 14 12:16:16 as in how is a listView + adapter not suited Apr 14 12:18:12 StingRay_: I'm trying to fill a list based on content in db, so length of the list will change over time, and each line in the list will contain 3 different textviews Apr 14 12:18:52 so how is that not usable as a standard listView and cursor driving and adapter dataset ? Apr 14 12:19:56 hmm, it is the first time ive heard about adapter dataset, when googling I only found LayoutInflater, which I could not see how I could use Apr 14 12:20:26 you should maybe go through the getting started guides Apr 14 12:20:27 herro fine peeps Apr 14 12:20:42 could someone help me figure out why when trying to build from source i get make: *** No rule to make target `device/htc/golfu/prebuilt/kernel', needed by `/home/ohm/CM10/out/target/product/pico/kernel'. Stop. Apr 14 12:21:00 im asking in the cyanogenmod channels too but it is dead right now in there Apr 14 12:21:13 StingRay_, well thanks for pointing me in the right direction! Apr 14 12:21:13 * NinjahMeh r noobs and this is first attempt to build from source everz Apr 14 12:27:30 NinjahMeh: this is more app dev than AOSP build Apr 14 12:27:46 try cynogen channel or android Apr 14 12:27:47 ok where might i go for AOSP helpz please Apr 14 12:27:54 ok im in cyanogen Apr 14 12:27:57 will try android Apr 14 12:28:02 thnks Apr 14 12:28:04 <[deXter]> NinjahMeh, or #android-root Apr 14 12:28:40 Still on ImageView scaling thingy... I can't seem to set a proper ScaleType to have width = 100% of the parent (MATCH_PARENT) and height = scaled from width maintaining proportions... any hint? Apr 14 12:29:03 proper scale ? Apr 14 12:29:32 I tried with CENTER, FIT_CENTER, MATRIX... EVERYTHING! But nothing Apr 14 12:29:35 hi guys Apr 14 12:29:45 images are not scaled having width matching the parent Apr 14 12:29:45 trying to build rom build from source Apr 14 12:29:55 NinjahMeh: still wrong channel Apr 14 12:29:55 getting error on kernel make file Apr 14 12:29:56 :) Apr 14 12:30:06 how can i get a make rule in kernel folder Apr 14 12:30:10 r noob here Apr 14 12:30:15 ah gaaaay Apr 14 12:30:16 lol Apr 14 12:30:32 * NinjahMeh coughs and slips out as if no one noticed his ninjah shizzle Apr 14 12:30:39 :) Apr 14 12:30:53 elegos: screenshot of what your getting ? Apr 14 12:31:02 StingRay_: incoming Apr 14 12:32:02 http://pbrd.co/128fGm9 Apr 14 12:32:33 as you can see, the first image just ignores the match_parent thing, while the other 2 work as expected Apr 14 12:32:51 and the resolution of the 1st is ? Apr 14 12:33:24 and the screen dimensions in X are ? Apr 14 12:33:54 StingRay_: checking (have to find it from cache). The screen resolution is the N7 one, so I suppose beeing HD -> 720 pixels Apr 14 12:33:55 checking Apr 14 12:35:59 StingRay_: even if the image is smaller than the screen size, I'd like to scale it to fit it - still searching in cache Apr 14 12:36:25 well thats not a default thing, cause it's obviously ugly Apr 14 12:36:49 anyone have any idea how to change the bitmap in a selector dynamically, for a RemoteView (Widget)? Apr 14 12:37:30 StingRay_: it's not if the size is similar to the screen, and I use an algorithm to take the most similar image in width Apr 14 12:37:49 upsize = ugly Apr 14 12:38:07 no matter what spin / method / filter / or resize method you use Apr 14 12:38:33 StingRay_: you don't consider screen DPI are crazy, considering 27" screens have the very same resolution Apr 14 12:38:47 irrelevant Apr 14 12:39:02 I draw a line of 3 pixels that is "detail" Apr 14 12:39:12 and you scale it by (random factor) Apr 14 12:39:27 based on filter/resize method, you kill my detail Apr 14 12:39:53 both images are 600 pixels width Apr 14 12:40:21 both ? Apr 14 12:41:03 the "small" one and the "big" one Apr 14 12:41:22 not sure I follow Apr 14 12:41:34 there are 2 big I can see in that shot Apr 14 12:41:36 and 1 small Apr 14 12:41:45 in the screenshot, the first (small) and the second (big) Apr 14 12:41:54 still can't find the 3rd Apr 14 12:42:12 both are 600px width ? Apr 14 12:42:20 yep Apr 14 12:42:23 and if you swap the order ? Apr 14 12:42:28 big at top Apr 14 12:42:31 small below ? Apr 14 12:42:48 uhm... yes, according to the screenshot Apr 14 12:45:38 no i mean what happens when you swap the order Apr 14 12:45:42 of those images Apr 14 12:45:54 eg, rule out it being the image Apr 14 12:46:00 then focus on layout/views Apr 14 12:46:08 or not …as it were Apr 14 12:47:03 I should check that out... being loaded programmatically, I have to hack the code a bit to check it Apr 14 12:47:50 Hey StingRay_ , have you ever used EditText.setError? Apr 14 12:48:11 no what is it ? Apr 14 12:48:19 some kind of input validation ? Apr 14 12:48:29 hey guys, is it possible to open other activities/intents from an app from within your own app? Apr 14 12:48:30 Have a look at the screenshot http://stackoverflow.com/questions/15992440/weird-placement-of-edittexts-error Apr 14 12:48:57 huh, funky Apr 14 12:50:15 Yeah, I found out that, when I use requestFocus before setError, its solved, but when I reselect it, it shows the error 1 again (the incorrect one)... Any ideas? Apr 14 12:50:52 Haha, just came to see the topic. Apr 14 12:50:56 never used, I do validation on data commits Apr 14 12:51:02 rather than realtime Apr 14 12:51:20 linkazelda : use the launch intent from the packagemanager Apr 14 12:51:24 intent = getPackageManager().getLaunchIntentForPackage( getActiveMediaApp().getPackageName()); Apr 14 12:51:24 } Apr 14 12:51:24 return PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT); Apr 14 12:53:08 that codes a bit rough but should point you in the right direction Apr 14 12:54:58 Is it possible to have a Button have the ToggleButton style including the 'on/off' indicator. Because I want to have a button that looks like the native ToggleButton in a widget Apr 14 12:56:31 haven't done that but a selector should do the trick Apr 14 12:56:49 or just change the image based on if its selected Apr 14 12:59:11 when you define the layout just reference the selector defintion instead of the src on your button Apr 14 12:59:19 its saved me a ton of time Apr 14 12:59:59 Do you know where I can download com.android.internal.R.drawable.indicator_input_error ? Apr 14 13:00:26 that looks like a internal png Apr 14 13:00:47 cbates: Yeah it is, but I don't want to clone the android git, just for one file... Apr 14 13:01:03 could just copy the image file local Apr 14 13:01:26 flan3002: just check in the sdk Apr 14 13:01:42 as in platforms/android-version/data/res/drawable Apr 14 13:02:07 Nice, thanks! Apr 14 13:07:04 so I keep getting a securityexception trying to check the state of the network, even though I do have the requested permission declared in my manifest (android.permission.ACCESS_NETWORK_STATE) and I'm sorta losing my mind, have I missed something here? Apr 14 13:07:57 bwahaha. Apr 14 13:08:10 note to self - try editing the *right* manifest file in future. Apr 14 13:18:35 If I extend a Button to make a togglebutton how would I make sure a widget can load it? Error inflating class *.ToggleButton Apr 14 13:21:42 clever: are you here? Apr 14 13:22:47 Marlinc: You cant! Apr 14 13:22:53 * StringRay_away wonders if he will ever get his messenger app done Apr 14 13:22:58 Really? Apr 14 13:23:04 thepoosh: yeah Apr 14 13:23:05 It doesnt even allow a 'View'! Apr 14 13:23:19 So I can't extend a view.. Apr 14 13:23:21 http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Apr 14 13:23:33 Descendants of these classes are not supported. Apr 14 13:23:55 Meh Apr 14 13:24:05 You can use a drawable / ImageView in combination with onclickListeners, but this is very hacky! Apr 14 13:24:52 So I guess there is no way I can get a button that looks like a native ToggleButton in a widget? Apr 14 13:25:02 So if someone has a HTC it looks like the HTC ToggleButton? Apr 14 13:25:04 Does anyone know how I can find out which part of an EditText is visible? Apr 14 13:25:29 Marlinc: Oh, there is, but its hacky, like I said! Apr 14 13:26:07 Mm okay Apr 14 13:26:41 You can use a drawable / Bitmap to display the two states, and use Onclicklisteners to switch between them. Apr 14 13:30:09 Mm apparently I can set the style to the Android 'togglebutton' thats great the only thing I need is to set the state so the layout changes Apr 14 13:30:20 So I would need to find a way to set the state Apr 14 13:30:29 anyone here who can help me with a mobile game app model? not sure how to make it better Apr 14 13:30:37 i am getting a string.xml warning about typing a value containing a dash. how it should be typed without getting a warning? Apr 14 13:31:04 e.g: a date 02-11-2009 Apr 14 13:31:54 dammit Apr 14 13:36:05 could someone please check my code: http://dpaste.com/1058041/ and see why am I having problem when calling date_save object's method.. seems like the object is created only locally in the class CustomOnDateSetListener. Apr 14 13:39:04 lseactuary: are you focusing on making the best game you can? Apr 14 13:39:13 nope Apr 14 13:39:18 im focusing on launching it Apr 14 13:39:29 or are you focusing on gimping the game to make more money from it? Apr 14 13:41:53 http://media.tumblr.com/tumblr_mdtoa6iD551r8drvq.jpg is there any decent code editor for java/android on android? Apr 14 13:43:28 Isn't AIDE pretty much the only one? Apr 14 13:45:45 clever: I tried your solution in a sample project and none of the options are good for me, I want to append data and I want the list to appear as it's not scrolling, meaning that it scrolls down the amount of slots that were added to the list Apr 14 13:46:15 thepoosh: are you adding the data to the end or start? Apr 14 13:46:57 well, I add it to the end Apr 14 13:47:06 not sure then Apr 14 13:47:20 think of this scenario Apr 14 13:47:35 Leeds - its just a piece of work i need to do Apr 14 13:47:35 you have a list of messages, but you only fetch the latest 25 Apr 14 13:47:45 when scrolling up, you request 25 more Apr 14 13:47:57 and add them to the top (or bottom) of your list Apr 14 13:48:09 but you don't want the view to change after adding the data Apr 14 13:48:19 just to have seamlessly endless scrolling Apr 14 13:48:52 thepoosh: what i do, is modify the adapter so getCount returns the number of real objects, that actualy exist on the server Apr 14 13:49:06 thepoosh: getView will then either a: create a view from a cached object Apr 14 13:49:15 thepoosh: or b: create a loading... view, and schedule the download Apr 14 13:49:27 hmmmm Apr 14 13:49:29 interesting Apr 14 13:49:30 then the number of elements never changes, just the contents Apr 14 13:49:34 do you have a sample for that? Apr 14 13:49:40 *looks* Apr 14 13:49:48 I'll be interested in taking a closer look Apr 14 13:50:35 ? Apr 14 13:51:55 thepoosh: http://privatepaste.com/922d1312cd Apr 14 13:52:10 thanks Apr 14 13:52:17 in this case, its just doing the sqlite query in a thread, but its not bulking things up Apr 14 13:52:31 so i would up making 200 AsyncTask's at once and murdered the cpu :P Apr 14 13:53:10 you likely want to push the id's into an array, and setup a single timeout (pushing it ahead on each query) Apr 14 13:53:17 then fetch all of them when the timeout fires Apr 14 13:56:00 hey guys, whats the best tutorial for showing me how to click on a 3d object? i have a 3d scene with some rotating objects. i want to be able to tap on a particular 3d object and reverse its rotation. i know to manipulate rotation etc, but i dont know how to click on a 3d object. any tutorials/videos would be excellent! thanks! Apr 14 13:59:15 anyone know about cost/rev of an android app? need some help. Apr 14 14:04:29 lseactuary: is this the right channel ? Apr 14 14:04:35 yup Apr 14 14:04:46 not really Apr 14 14:05:07 android development = pratical development Apr 14 14:05:14 not really project management Apr 14 14:09:07 but a developer will know costs/rev? Apr 14 14:09:51 not many Apr 14 14:10:00 and it's highly specific Apr 14 14:10:06 with lots of variables Apr 14 14:10:22 so unless you have a direct question, not sure there is an answer for you Apr 14 14:12:10 kinda like saying does someone know how much it will cost to fix my car Apr 14 14:12:12 :) Apr 14 14:12:43 10 dolla Apr 14 14:13:24 problem, types of fixes, places to take it, labour costs, unknown costs, travel time/distance, type of car, source of parts…… the list is endless Apr 14 14:13:28 well not endless Apr 14 14:13:55 but combinations start to get a bit….well ….. ridiculous Apr 14 14:14:37 and you kinda have to know all the elements/uses/context/expectations to be able to say anything with any kind of authority Apr 14 14:15:15 so I still think A ) your in the wrong place to get an answer… B ) I'm not sure you have a real question that can be answered Apr 14 14:15:28 I would try and help if you had a direct question Apr 14 14:24:10 i have some direct questions yes Apr 14 14:24:14 but they are from the model i built Apr 14 14:24:25 there are so many variables which is why im stuck Apr 14 14:24:26 you know? Apr 14 14:24:49 what are your direct questions ? Apr 14 14:25:19 i need to model a discounted cash flow Apr 14 14:25:24 for a gaming mobile app Apr 14 14:25:26 so i have done the model Apr 14 14:25:31 but there are a few parts in stuck on Apr 14 14:25:49 ok, so what are your direct questions ? Apr 14 14:25:51 1. im not sure how to get no of users per month or year becase this data isnt available. and i cant just guess because i have to justify it. Apr 14 14:26:05 you dont ever guess Apr 14 14:26:19 and if i use break even analysis then that gives me no of users but doesnt give me a cash flow therefore NPV is wrong Apr 14 14:26:21 so im stuck Apr 14 14:26:27 http://pastebin.com/XRpH5Hen --- Does anyone know what i could do in order to have different menus for the different tabs? thanks Apr 14 14:26:38 lseactuary are you a developer Apr 14 14:26:43 nope Apr 14 14:26:45 im helping one Apr 14 14:27:33 so your stuck on getting projected user figures ? Apr 14 14:27:40 pretty much Apr 14 14:27:48 the other problem is that Apr 14 14:27:55 some of my numbers are for ios, some are andoird. Apr 14 14:28:02 im not sure if i should model them seperately Apr 14 14:28:04 or together Apr 14 14:28:08 and if so what numbers to use Apr 14 14:28:08 well that has to be a demographic/season/comparable data driven figure Apr 14 14:28:19 as it seems to vary depending on what i can find on the internet Apr 14 14:28:45 ios and android are worlds apart in terms of average user habbits and demographic Apr 14 14:28:55 right Apr 14 14:29:03 and the other problem is Apr 14 14:29:12 i have no idea how to figure out when i should introdue an upgrade etc Apr 14 14:29:20 how am i supposed to figure this out? Apr 14 14:29:23 you dont Apr 14 14:29:32 end of really Apr 14 14:29:40 or if you do it's a throw away figure Apr 14 14:29:58 as your only projecting probability Apr 14 14:30:01 but i have to produce something.... Apr 14 14:30:03 yes Apr 14 14:30:08 probability/range of figures is fine Apr 14 14:30:11 but i cant even find this Apr 14 14:30:21 probability = almost everything changes on actual Apr 14 14:30:26 so yeah you dont Apr 14 14:30:39 but i need to do something... Apr 14 14:30:55 out of all games I've ever worked on, I have never seen an accurate market projection Apr 14 14:30:58 :) Apr 14 14:31:04 oh tell a lie Apr 14 14:31:18 a BBC game I did for PS was very accurate Apr 14 14:31:29 but also one of the worst selling PS titles of all time Apr 14 14:31:30 :) Apr 14 14:31:39 so that wasn't too hard Apr 14 14:31:50 StringRay_: what was it called? Apr 14 14:32:15 noddy's aventures in toyland Apr 14 14:32:17 I think Apr 14 14:32:18 someone knows how to get a refresh_token ( oauth2 ) using the accountmanager / play services? is it possible at all? Apr 14 14:32:21 something like that Apr 14 14:32:24 it doesnt need to be accurate 100% Apr 14 14:32:26 just needs a range Apr 14 14:32:30 its ok if its not accurate Apr 14 14:32:34 but atm i cant even find any numbers :S Apr 14 14:33:01 1-10,000,000 new users per day. Apr 14 14:33:06 lseactuary: come to terms that there is no such thing as 100% accuracy Apr 14 14:33:12 ik there isnt Apr 14 14:33:16 but i need to find a reasonable range Apr 14 14:33:23 there is a nice aim for a 50-75% probability Apr 14 14:33:32 and your life will be easier ;) Apr 14 14:34:11 sure Apr 14 14:34:13 but i cant find data Apr 14 14:34:26 i have to write a report and back this data up btw thats why a range/probability is fine Apr 14 14:34:32 so what data you looking for ? Apr 14 14:34:36 That's because there's games that don't get downloaded at all and there's Rovio with Angry Birds. Apr 14 14:34:40 sales numbers of X ? Apr 14 14:34:46 as time/season Y Apr 14 14:34:55 for demographic/target Z ? Apr 14 14:35:57 took me 2 weeks to get >100 Apr 14 14:35:59 >1000 Apr 14 14:36:18 xorgate: word search ? Apr 14 14:36:23 yup Apr 14 14:36:36 1300 dlownloads as of yesterday Apr 14 14:36:37 you still not got rid of that silly pizza on the loading thing Apr 14 14:36:44 no :) Apr 14 14:36:51 i DONT want pizza Apr 14 14:36:53 but i did make that option to put the wordlist on top Apr 14 14:36:53 * StringRay_ crys Apr 14 14:37:03 oh cool Apr 14 14:37:07 * StringRay_ crys less Apr 14 14:37:29 I have to display a 5x5 table of text cells, is there an advantage in using a TableLayout rather than directly nesting LinearLayouts? Apr 14 14:37:50 anddam yes performance will be better Apr 14 14:37:58 xorgate: in which case? Apr 14 14:38:02 less deep > deep Apr 14 14:38:17 You want a Table and there's TableLayout, make an educated guess. Apr 14 14:38:42 ok Apr 14 14:38:42 5x5 also sounds like a grid ;) Apr 14 14:39:04 StringRay_: But that would have ruined my point!!1 Apr 14 14:39:30 and that would need an adapter, wouldn't it? Apr 14 14:39:39 maybe he can place the grid in a tableLayout ? Apr 14 14:40:09 also I wonder why TableLayout page isn't in API Guides > User Interface > Layouts Apr 14 14:40:20 old Apr 14 14:41:03 StringRay_: Guides section is old or TableLayout? Apr 14 14:41:14 tableLayout i think Apr 14 14:42:24 the reason behind my question: I found http://developer.android.com/guide/topics/ui/layout/grid.html but it's not in the left side menu, this made me wonder if I should be using it or not Apr 14 14:42:42 I guessed it could be old, as you wrote, and I should be using something else Apr 14 14:43:28 well I dont know, but I seem to think, or got the impression that a gridLayout is preffered Apr 14 14:43:35 newer, more features Apr 14 14:43:42 maintained more Apr 14 14:43:59 dunno, just a thought that I can place the origin of ;) Apr 14 14:44:45 Isn't GridLayout only API 14+? Apr 14 14:45:04 Depends on his minSdk Apr 14 14:45:33 gridView is an option then Apr 14 14:45:34 :) Apr 14 14:45:45 maybe I jsut like the word "grid" Apr 14 14:46:35 I'm trying a very simple application, will go with the oldest sdk I can Apr 14 14:46:56 GridLayout is in support-v7 Apr 14 14:47:05 Oh, cool. Apr 14 14:47:07 thanks all Apr 14 14:47:16 SimonVT: What's your opinion then? Grid or Table? Apr 14 14:47:42 I didn't follow the conversation Apr 14 14:48:44 5x5 table of cells. TableLayout vs nestes LL. Resulted in Gridlayout vs TableLayout Apr 14 14:51:00 so im screwed? Apr 14 14:51:04 and cant build the model? Apr 14 14:52:37 Can't you pretty much achieve the same with gridlayout as you can with tablelayout Apr 14 14:53:09 SimonVT: is that a question or a statement? Apr 14 14:53:20 yes Apr 14 14:53:37 ts;dr Apr 14 14:58:54 SimonVT: That's why I am asking. I did not look at both intensively enough to tell someone "Use Grid instead of Table". Only enough to prevent people from using nested Linearlayouts. Apr 14 14:59:01 If it's a static page, I'd probably just create a layout with a horizontal linearlayout and 5 views, include it 5 times in a vertical linearlayout Apr 14 14:59:23 D: Apr 14 14:59:31 Much easier to maintain Apr 14 15:02:10 It's not really bad to nest linearlayout, it's bad to nest your view hierarchy too much Apr 14 15:02:13 someone knows how to get a refresh_token ( oauth2 ) using the accountmanager / play services? is it possible at all? Apr 14 15:02:20 Doesn't matter if it's linearlayout or any other viewgroup Apr 14 15:02:34 I am trying to send a param from Activity to Fragment… it works fine when fragment created first time, but after that it does not… What I am doing wrong? Apr 14 15:02:46 (also, tablelayout/tablerow are just linearlayouts anyway) Apr 14 15:12:17 SimonVT: it's a static page, and I read that Table* are direct child LinearLayout's children. Since I've no experience in writing an app I cannot foresee if I will need any of the features eventually provided by Table* Apr 14 15:12:42 I guess it's the right time to learn, I'll go with LinearLayout and see Apr 14 15:15:56 hey, is it possible to put 2 action bars in an activity? one vertical and one horizontal? Apr 14 15:16:10 how to send param from Activity to Fragment? Apr 14 15:16:44 get an instance of it and call method directly ? Apr 14 15:18:40 Or Bundle/Intent, depending on what exactly you're doing. Apr 14 15:32:20 Instagram's buttom buttons, is that a custom view? or is that something native? Apr 14 15:33:09 well it just looks like a few drawables Apr 14 15:33:14 not really a custom view Apr 14 15:33:24 button with different state drawables Apr 14 15:33:50 anyone got the new playStore yet ? Apr 14 15:34:42 thanks StringRay_ Apr 14 15:50:35 hey guys, whats the best tutorial for showing me how to click on a 3d object? i have a 3d scene with some rotating objects. i want to be able to tap on a particular 3d object and reverse its rotation. i know to manipulate rotation etc, but i dont know how to click on a 3d object. any tutorials/videos would be excellent! thanks! Apr 14 15:51:07 demifuror: does that not depend on how your displaying it / drawing it ? Apr 14 15:53:34 StringRay_: hmmmm im not sure...what are the different way of drawing/displaying it? i have a GLSurfaceView, and then, I have my object. My object has an array of verts, an array of indices, and an array of texcoords. i reference them with glVertexPointer/glTexCoordPointer and then draw the verts with glDrawElements. Apr 14 15:54:12 so then you just need a touchListener and know the bounding area on the surface Apr 14 15:54:15 no ? Apr 14 15:54:43 okay, ill google touchlisteners and see how i get on! Apr 14 15:54:45 thanks! Apr 14 15:55:44 w00t, mah n4 should be here tmmr Apr 14 15:55:45 :P Apr 14 16:00:25 StringRay_: i override onTouchEvent in my activity, but when i try to Log the touch event, im not getting anything back...ive even tried adding a system out print, but im not getting any output when i touch my screen. im deploying my app to my phone and touching the screen... Apr 14 16:02:17 demifuror: no offence intended but this stuff isn't hard to search for http://stackoverflow.com/questions/6264034/how-to-move-images-on-finger-touch-in-android Apr 14 16:03:32 StringRay_: no offence taken :) i was following this post: http://stackoverflow.com/questions/5024892/glsurfaceview-not-getting-ontouch-events i'll have a look at yours now! Apr 14 16:04:23 you should look at onTouchEvent if you dont want to tie it to a view Apr 14 16:05:00 and that second answer in the post you were looking at seems to do what you want Apr 14 16:08:51 Hi, I'm having a small problem with this code: http://pastie.org/7528910 - If I do tv.setText to something huge like I have done there, the buttons don't show. However, if I set a small amount of text, the buttons show on the same line (which is where I want them). How do I get it so that if the text *does* wrap onto the next line, the buttons go there too? Apr 14 16:10:36 WhereIsMySpoon: AFAIK you want buttons on the right, text on the left? Apr 14 16:10:42 elegos: yes Apr 14 16:11:49 WhereIsMySpoon: layout_weight Apr 14 16:11:56 exactly Apr 14 16:12:09 was searching for the particular attribute :) Apr 14 16:12:58 hm,i dont see any setLayoutWeight/setWeight/weight etc Apr 14 16:13:12 LinearLayout.LayoutParams Apr 14 16:13:23 oh, whoops Apr 14 16:13:31 create the params, edit them, set them to the item Apr 14 16:14:06 or if your using a view from findViewWithID Apr 14 16:14:15 grab them from that Apr 14 16:14:20 or just change it in xml Apr 14 16:14:47 StringRay_: it's all dynamic so cant change in xml Apr 14 16:15:14 the activity's onResume is fired (1) after onCreate or (2) when the app returns in foreground, right? How can I check wherever the method is being called from? 'cause I'd like to do something only when I resume the app to foreground, not when the activity is being created Apr 14 16:15:19 then the easiest thing to do Apr 14 16:15:31 is pass a 3rd param to constructor of layout params Apr 14 16:15:40 WhereIsMySpoon: you could create an XML layout and inflate it putting items in it Apr 14 16:15:51 *.wrap_content, *.blaa_something, 1.0f Apr 14 16:16:11 the 3rd param being weight Apr 14 16:16:48 so for example Apr 14 16:16:53 your textView Apr 14 16:17:26 would have match_parent OR 0dp , wrap_content, 1.0f Apr 14 16:17:52 and your button would just use the 2 params Apr 14 16:18:38 StringRay_: so tv.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, 1.0f)) ? Apr 14 16:18:48 yes Apr 14 16:19:23 StringRay_: The constructor ViewGroup.LayoutParams(int, int, float) is undefined Apr 14 16:19:39 you dont want ViewGroup Apr 14 16:19:49 you want linearLayout.layoutParams Apr 14 16:20:10 LinearLayout.* if your parent is a LinearLayout, as in your case ofc Apr 14 16:20:28 aha oops Apr 14 16:20:33 i had the other one imported Apr 14 16:20:42 dont really matter if your not gonna use attribs Apr 14 16:20:50 cause they all come from ViewGroup Apr 14 16:20:57 but in this case you need the attribs Apr 14 16:20:58 :) Apr 14 16:21:05 :) Apr 14 16:21:30 lovely, that works perfectly Apr 14 16:21:46 indeed Apr 14 16:21:50 thank you Apr 14 16:26:15 uhm... I'd like to add a menu in the ActionBar, on the right. I'd use a simple menu "three dots" icon and a PopupMenu Apr 14 16:26:38 what about addind checkboxes in the menu items? Just like a ListView, using a custom XML layout? Apr 14 16:26:47 adding* Apr 14 16:29:23 The "three dots" are called an Overflow Menu. Apr 14 16:29:56 And they have a defined behaviour afaik. So not really meant to be customized I guess. Apr 14 16:33:30 just saw I can just call a menu from onCreateOptionsMenu Apr 14 16:33:33 inflating the menu Apr 14 16:33:48 and there are checkbox groups, so no need of custom elements :) Apr 14 16:34:12 If i set an imagebutton src as a 9patch, will everything be clickable or only the area defined by the right and bottom black pixels? Apr 14 16:34:57 do0ob: afaik all the area between the markers Apr 14 16:35:31 between which markers? Apr 14 16:35:45 black pixels? Apr 14 16:35:51 depends how you use it Apr 14 16:36:00 all of it if your using it as a button Apr 14 16:36:13 cause content area != button area Apr 14 16:36:30 pixels used by button image = button area Apr 14 16:36:34 so all of it Apr 14 16:36:46 or rather the buttonView boundary Apr 14 16:36:47 ah Apr 14 16:37:03 tis the view that is clickable Apr 14 16:37:07 not the image Apr 14 16:39:32 u Apr 14 16:39:54 If i created a linearlayout could i treat it as a button by setting an onclick listener to it? Apr 14 16:40:19 as with any View yes Apr 14 16:40:30 ok i'll do that, thanks Apr 14 16:41:17 if i have date format "dd-MM-yyyy G" (G is either A.D. or B.C.) how should I input the "G" value? Apr 14 16:43:36 I use this as menu of an ActionBar... whenever I click on the filter_photoset item to check it, the item will highlight as if I've clicked it and the menu disappears... any hint? Apr 14 16:44:34 oops. http://pastebin.com/4R5WDNG1 Apr 14 16:46:00 superlinux-hp: input where to? Apr 14 16:46:09 before I spend too much more time on this. Looks like for a remoteView (widget) there is no way to specify a selector that was built pragmatically. Short of programmatically creating the Remoteview itself. Apr 14 16:46:37 All of the set methods are for bitmap or resources Apr 14 16:47:05 anddam, i have an EditText and i set its xml android:inputType="datetime". Apr 14 16:48:32 basically have a hidden button launching anther application, the selector shows and hides the image correctly. Just can't figure out anyway to set the bitmap programatically. Apr 14 16:53:32 cbates: and what are you wanting to use ? Apr 14 16:53:42 other than a drawable ? Apr 14 16:55:24 how can I prevent the default behavior of a PopupMenu when the user clicks on an item, which causes the menu to close? Apr 14 16:56:02 up front Iam doing a bit of a cheat so if the answer is you should not do that totally understand. I have an application launcher so Iam trying to use the icon of anther application (not mine). For most of my widgets I just show the icon by converting it to a bitmap. Apr 14 16:56:21 Just guessing here, but if it's anything like the AlertDialog.Builder buttons, then you have to set an onClickListener on the items with an empty onClick(). Apr 14 16:56:56 For this one widget I wanted flash the icon when the user touched a specific part of the widget using a selector. Apr 14 16:57:19 I have several other controls working that way (with drawables I control) Apr 14 16:57:28 superlinux-hp: can't really help you, sorry Apr 14 16:57:45 ok thanks Apr 14 16:58:43 StringRay_ - BTW you are always on here don't you sleep Apr 14 16:58:53 sometimes Apr 14 16:58:56 or are there 2 of u Apr 14 16:59:09 3 or 4 maybe, I dunno Apr 14 16:59:11 we dont talk Apr 14 16:59:16 lol Apr 14 16:59:22 need to figure out that trick Apr 14 17:03:34 not a brilliant trick Apr 14 17:03:45 my days are just longer really Apr 14 17:03:54 like 26 hours Apr 14 17:04:04 on an easier note, trying to figure out a good way to store transparency for widgets when they are created. Sort of shuttle if u have used that. Apr 14 17:04:09 sleep for 8, work for 18 Apr 14 17:04:13 simples Apr 14 17:04:19 at least u get 8 Apr 14 17:04:36 working on that trick Apr 14 17:04:54 odd though cause you end up going to bed +2 hours every day Apr 14 17:05:12 odd when you go to bed at 11am and wake at 6-7pm Apr 14 17:05:14 classic Clone Technique Apr 14 17:05:52 so you work as full-time ninja, don't you? Apr 14 17:06:39 or time dilation trick to get all those extra hours Apr 14 17:08:59 oh Ill pull that feature from the widget for now. Wanted to move on to configuration anyway so I can reduce the number of widgets I have back to a reasonable number. Apr 14 17:11:43 StringRay_: have you considered polyphasic sleep? Seem you don't have a regular day/night cycle anyway Apr 14 17:12:47 anddam: I'm a simple creature atm Apr 14 17:13:01 who isn't Apr 14 17:13:03 if tired do sleep Apr 14 17:13:11 if !tired do work Apr 14 17:13:15 very zenish Apr 14 17:13:32 if ever get my app released, take break Apr 14 17:13:56 can't take break then, users get in the way Apr 14 17:13:57 hi everyone, just wanted to know if it is possible for a class to extend more than one classes Apr 14 17:14:06 no Apr 14 17:14:16 and watch the bodies of other developers float down the river Apr 14 17:15:24 agent47: no but a class can implement more than one class Apr 14 17:15:38 agent47 - can extend multiple interfaces Apr 14 17:15:43 i want to add listviews in some of the tabs I made with viewpager. Any advice? Apr 14 17:16:05 static helper class Apr 14 17:16:52 not ideal I know Apr 14 17:18:22 is ANDROID_HOME env variable mandatory? I see android binary puts that in ant's build script and thought it was up to the user to set it or not Apr 14 17:18:50 I'm asking since IDEA just complained about the env variable not existing, it checked all files before committing to local repo Apr 14 17:19:32 defining it won't harm, I'm just curious about any reference if it's mandatory when installing SDK or not Apr 14 17:21:17 simple layout question , have a simple media control. Want to get the cover art square using the widget height instead of hardcoding it. Apr 14 17:25:30 If it helps Ive never set ANDROID_HOME Apr 14 17:26:52 You probably need it if your on windows Apr 14 17:34:53 guys is a touch listener the correct listener to use when i want the app to respond to someone touching the screen? Apr 14 17:35:20 respond no Apr 14 17:35:24 thats up to you Apr 14 17:35:33 detect yes :) Apr 14 17:35:59 touchEvents give you an event Apr 14 17:36:08 which is nice Apr 14 17:39:15 I never set ANDROID_HOME on Windows or OS X. I'm not sure in which case it's needed. Apr 14 17:39:36 i think NDK uses it Apr 14 18:11:10 Hi, how do i keep the textboxed from beeing on top of each other? I'd like the to be next to each other instead. Tried to follow this: http://stackoverflow.com/questions/6757346/how-to-place-relative-layout-at-the-bottom-always . My layout: http://pastie.org/7537631 Screen: http://i.imgur.com/Y9mZbx6.png Apr 14 18:14:30 when can I retrieve a view's width? i.e. onCreate and onResume (first one), the width will be 0 because it's still being created Apr 14 18:27:26 uhm... Couldn't resolve menu item onClick handler showBehindView in class org.elegosproject.martinekenblog.ListViewPosts <-- I've got that method, declared as public void showBehindView(View v)! Apr 14 18:27:30 what's wrong with it? Apr 14 18:34:09 Any reason why "Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_launcher);" would return a NullPointerException? Apr 14 18:38:03 the resource pointer is null? Apr 14 18:38:08 or has not data Apr 14 18:40:31 The resource exists Apr 14 18:41:02 "context" is null ? Apr 14 18:41:32 LinearLayout.removeAllViews recursive? Apr 14 18:41:34 Shouldn't be Apr 14 18:41:59 e8newallm: that's the only reason, from taht code, that it would return an npe Apr 14 18:42:02 anyone knows a good tutorial for static helper class? Apr 14 18:42:07 context is declared as "this.context" outside the function Apr 14 18:42:27 e8newallm: so do a println to see if it's null or not before you call that Apr 14 18:42:29 "LoadTexture(gl, R.drawable.ic_launcher, this.context);" is declared and that decode is the first line Apr 14 18:43:06 maybe context.getResources is null and the constructor uses it Apr 14 18:43:13 either or, check them botjh Apr 14 18:47:38 is LinearLayout.removeAllViews recursive? Apr 14 18:48:04 why would it need to be Apr 14 18:48:14 it removes all direct children Apr 14 18:48:17 or to put it another way, if I remove a thing inside the layout which has other things inside it, will it all be removed Apr 14 18:48:46 it doesnt re-parent if thats what your asking Apr 14 18:48:53 it's just like any hierachy Apr 14 18:49:20 if I chop of both your arms how many hands you got ? Apr 14 18:49:28 say i have myLayout which has someThing1 and someThing2, and someThing1 has someThingThing1 Apr 14 18:49:38 will removing myLayout also remove all of those someThings Apr 14 18:49:54 see my above example Apr 14 18:50:01 the arm still has hands Apr 14 18:50:10 but they are not attached to you no more Apr 14 18:50:12 :) Apr 14 18:51:25 right good Apr 14 18:51:28 so that isnt the problem Apr 14 18:52:47 Ah fuck Apr 14 18:52:53 The context was crashing it Apr 14 18:53:23 How can I find the application's context inside an OpenGL Renderer Apr 14 18:55:45 Could someone please check my code http://dpaste.com/1058041/. This line date_save.getDate(); crashes the whole application Apr 14 18:56:34 I wonder why this doesn't work. Apr 14 18:56:53 http://imgur.com/jacoj Apr 14 18:57:48 Love the new Play/Checkout/Wallet customer email notification thing and how it no longer includes a direct link to the transaction online :X Apr 14 19:09:53 hello pals Apr 14 19:09:53 Chainfire: you got the new playStore yet ? Apr 14 19:11:05 StringRay_ nope haven't tried it yet Apr 14 19:12:08 from what ive read on the interwebs, it's only rolled out to certain countries (possibly the US), and if you sideload it, nothing shows up Apr 14 19:12:35 What doesn't show up? Apr 14 19:13:39 well then, let's hope the major kinks have been corrected before we get it here then Apr 14 19:13:45 but somehow I doubt that Apr 14 19:14:05 well i know someone in canada who installed it, and he gets the links to like "apps, movies, books", etc Apr 14 19:14:12 but the rest of his main screen is blank Apr 14 19:14:28 Works fine here Apr 14 19:15:22 did you sideload it Apr 14 19:15:29 or did it just show up Apr 14 19:15:34 Sideload Apr 14 19:15:53 when a download/network/Google error occurs, does it finally show a message that implies its Google's fault, or the user should try later, or something like that, instead of an error number that inspires users to spam my support box ? Apr 14 19:15:59 well again, i dont really know how it works Apr 14 19:16:45 for all i know, there are three sets of countries: 1. use new content source (and it's set up) - these get the update 2. use new content source (not set up yet) - these don't get the update 3. use old content source - these get the update Apr 14 19:17:05 so it's only if you're in a country where the new play store will use a new source of its data, but it hasn't been set up, where you encounter a problem Apr 14 19:27:34 What do you call the like that blinks in a textedit? Apr 14 19:27:51 its to the keyboard what the pointer is to a mouse Apr 14 19:28:06 cursor? Apr 14 19:28:14 isn't the mouse the cursor? Apr 14 19:28:17 anyway Apr 14 19:28:22 how do you change its color? Apr 14 19:28:55 i'm using the Theme.Holo but i need a white cursor in my textedit Apr 14 19:28:58 http://stackoverflow.com/questions/7238450/set-edittext-cursor-color :) Apr 14 19:29:08 http://stackoverflow.com/questions/7238450/set-edittext-cursor-color Apr 14 19:29:13 oh look, we both googled Apr 14 19:29:28 :) Apr 14 19:29:45 shh, don't divulge our secret source of knowledge Apr 14 19:30:05 thanks guys Apr 14 19:30:27 hmm, anyone doing 3D graphics on android? Apr 14 19:31:10 Anyone know how I can make ViewPager *not* preload fragments? I've tried setOffscreenPageLimit(0) but my research and experimentation verified that it won't take that value, and 1 is the minimum. I've also searched the web and stack overflow, only to find indirect 'workaround' type answers, or answers that were irrelevant to my case. Apr 14 19:31:18 what I really need is to make the viewpager not preload the next page Apr 14 19:31:21 anyone know how? Apr 14 19:31:47 Eh.. why? Apr 14 19:31:47 tdignan: why do you not want it to preload? Apr 14 19:32:15 because my fragments have to display progress dialogs, and if they preload the progress dialogs are confused with the other screens. Apr 14 19:32:37 avaj: a little Apr 14 19:32:41 Progress dialogs for fragment in a viewpager? Apr 14 19:32:46 1. that sounds horrible Apr 14 19:33:07 tnzr: sdk or ndk? Apr 14 19:33:11 tdignan: FragmentActivity.setOnPageChangeListener() use the listener to see when your hidden views have focus and call the appropriate method for them to do heavy stuff Apr 14 19:33:14 2. fragmentpageradapter calls setUserVisibilityHint on your fragment, you know which one is currently visible Apr 14 19:33:43 s/visibility/visible/ Apr 14 19:33:48 avaj: just sdk Apr 14 19:33:56 SimonVT:, do0ob, I'm aware of both of those Apr 14 19:34:05 tdignan: so why not use them? Apr 14 19:34:07 I'd prefer to be able to snuff the problem at the viewpager level. Apr 14 19:34:17 do0ob: because IMHO, they're not very good solutions. Apr 14 19:34:28 Not pre-loading is not a very good solution Apr 14 19:34:41 tnzr: have you encountered any performance problems from the beginning? most posts online say "if you want 3d go for C++ directly" but they are usually 2 years old Apr 14 19:34:51 you need to preload to have something to show when the user slides to an adjacent view Apr 14 19:35:03 SimonVT: maybe I should just not use a progress dialog, could I get away with an overlapping imageview of my own for each fragment or something? Apr 14 19:35:36 Just have their layout be a progress bar.. Swap it out with the actual layout once they're done loading Apr 14 19:35:48 do0ob: I was wondering whether that was the case, but I don't know if you're speaking from a position of certainty when you claim that either. Apr 14 19:35:50 avaj: not really. OpenGL ES 2.0 requires that you do most of the stuff on the GPU anyway, so I'm not sure how C++ would speed things up any Apr 14 19:36:05 although I can really bog things down with an over-complicated fragment shader (for example) Apr 14 19:36:07 SimonVT: 3/4 of the fragments use dynamic paging. Apr 14 19:36:11 i'm not sure if using c++ would help that or not, though Apr 14 19:36:14 to lazy load listviews. Apr 14 19:36:23 i'm thinking no, because the code I'm using runs entirely on the GPU Apr 14 19:36:32 The other is a map embedded inside a fragment using an activity! Apr 14 19:36:41 I need something generalized Apr 14 19:36:41 avaj: that being said, if you want to guarantee you are getting the best performance, I would go with c++ Apr 14 19:36:43 So put a loading view at the bottom or whatever Apr 14 19:36:50 tnzr: well, in java whenever you send something to opengl, even a stupid integer you have to allocate (or preallocate) a buffer, then copy your int inside and send it, in C++ you just send the pointer to int directly, I guess it would be significant in the long run Apr 14 19:36:58 SimonVT: I think that makes the most sense Apr 14 19:37:01 avaj: but I think most things ppl are doing with mobile and 3D aren't THAT demanding, but don't quote me on that :) Apr 14 19:37:08 I'll see what i can do Apr 14 19:37:09 thanks. Apr 14 19:37:53 avaj: yeah true Apr 14 19:38:15 avaj: i think you make a good point, but I'm not at the stage where I'm running into performance issues yet Apr 14 19:38:26 I should also mention that I'm still ramping up with all this stuff, I'm by no means an expert Apr 14 19:38:47 avaj: You should join #opengl, lots of those guys are good at opengl ES and would probably have better answers Apr 14 19:41:03 Correct you can do a LOT Of modern GL work in Java or any language, once the data is all loaded on the GPU Apr 14 19:41:16 From that point you mostly bind shaders and or issue draw calls Apr 14 19:41:32 Now if you want to make a cutting edge game engine you really should use C++ Apr 14 19:41:51 for other low level speed friendly features of the language. Apr 14 19:42:16 yah Apr 14 19:42:21 But if your game or what ever does not spend a huge amount of its time managing the game world etc, non C++ should be just fine. Apr 14 19:42:35 * TheBunny writes big game engines for a living - currently Apr 14 19:42:54 TheBunny: interesting Apr 14 19:43:11 its really all a matter of scale of what you want o do... Apr 14 19:43:28 and most GL performance is about feeding the data to the GPU correctly. Apr 14 19:44:00 yeah, WebGL proves that :) Apr 14 19:44:19 fyi: check out glsl.heroku.com if you're bored and want to mess with fragment shaders :) Apr 14 19:45:21 i made a similar shader toy for android too that you can edit in real time Apr 14 19:45:35 but its not quite as uh...enjoyable..using an EditText for editing the code Apr 14 19:45:53 the nexus7 does alright with some of the more advanced ones Apr 14 19:46:12 my galaxy nexus though will get overwhelmed pretty easily so you have to keep it simple on those Apr 14 19:48:26 I am not exactly knowledgeable on the current level of rendering performance on Android, last time I remember most phones were choking on GTA 3 :) Apr 14 20:04:30 Is anyone aware of the location of the native progress drawable used by indeterminate progress dialogs, perhaps within android.R Apr 14 20:04:58 @android:drawable/progress_indeterminate_horizontal is nice, but it shows a bar, not a circle. Apr 14 20:12:57 nevermind, I've simply used the progressbar widget which uses the spinning wheel by default when indeterminate is set. Apr 14 20:13:05 looks much better this way too, thanks Apr 14 20:13:53 http://dpaste.com/1058336/ Apr 14 20:13:59 http://dpaste.com/1058337/ Apr 14 20:14:08 i have managed to implement tabs inside viewpager Apr 14 20:14:28 looking for a way to attach an onitemclickedlistner that would trigger different code based on what was selected Apr 14 20:17:59 anyone? Apr 14 20:26:47 I'm subclassing ArrayAdapter, but the view coming through to the getView is null? Why is that? https://gist.github.com/pixelterra/5384014 Apr 14 20:27:45 I'm having to specify the view manually in the getView method. Where does the view come from that is sent to this method? Apr 14 20:30:12 Watch this to understand listview: http://www.youtube.com/watch?v=wDBM6wVEO70 Apr 14 20:32:18 benlieb: short answer: it might get a recycled view, that has already been used once, in what case you don't need to initialize a new view anymore. But it might ofc also be null, if there is no view to recycle Apr 14 20:33:56 Yeah, I apparently don't really understand what's going on. I've read the docs, but I'm still confused. I'll watch that vid. What is a recycled view, and why is that var usually called convertView? Apr 14 20:36:08 if you scroll through your list, it would be insane to create a new view for every list item in list Apr 14 20:36:16 you would run out of memory pretty fast with larger lists Apr 14 20:36:46 so the listview will just take lists, that are out of screen already and pass it to your method again, so you only need to change the values displayed (but the layout is already loaded) Apr 14 20:37:12 and thats also why its called convertView, because you get this view and just convert it to the one with the matching data Apr 14 20:37:30 i need to set onitemclieckedlistener to items in my listview implemented inside viewpager Apr 14 20:39:16 timroes: so it's expected to be null initially? Apr 14 20:39:28 you must expect it to be null at random times Apr 14 20:40:03 just check if its null, and if so use the layout inflater to create a new view, else just use the variable directly Apr 14 20:40:16 and in both cases, afterwards just fill the fields in that view with the data you need Apr 14 20:40:31 timroes: thank you for this explanation. Apr 14 20:40:41 you're welcome Apr 14 20:50:52 SimonVT: thanks for that video, it's exactly what I needed! The docs here don't make any of that really clear: http://developer.android.com/reference/android/widget/ListView.html Apr 14 21:02:05 guys im having trouble understanding how i should use gluProject, can someone point me to a tutorial for beginners? Apr 14 21:17:44 <__import__> When I export my app to apk and use adb to install it, when I go to run it it says "App not installed" Apr 14 21:17:50 <__import__> How can I remedy this? Apr 14 21:23:43 Hi guys, I'm trying to launch a home activity from my own home activity (I created a kiosk mode launcher, where when you disble kiosk mode, it executes the "standard" launcher, trebuchet, nova or whatever). But I'm having problems with the Intent flags for execute the "standard" launcher. Apr 14 21:25:09 It seems to execute the "standard" launcher from zero, instead of executing the action that it supposes to do (for example, show the thumbnails when pressing home at the main screen) Apr 14 21:26:19 (Instead of that, it seems to reload the activity) I've tried every flag combination known by man... well almost Apr 14 21:35:34 <__import__> I'm able to start the app via Eclipse Run/Debug, but from the device itself it fails. Apr 14 21:36:28 guys im having trouble understanding how i should use gluProject, can someone point me to a tutorial for beginners? Apr 14 22:02:03 WIthin a sublcassed ArrayAdapter how can I get the position/item of the instance? I know in getView() the position is given, but in other helper methods I create in the class how can I get the position? Or do I have to pass position around from get view? Apr 14 22:07:20 yo! Apr 14 22:26:49 seekBar returns a value from 0 to 100 right? Apr 14 22:29:47 0 to max Apr 14 22:30:26 <__import__> How long is the validity of the google developer registration fee good for? Apr 14 22:31:28 Zharf: uh, wat's max? Apr 14 22:31:38 zhej, whatever you set it to :p Apr 14 22:31:46 Just check it.. Apr 14 22:31:59 There's a getter Apr 14 22:32:16 __import__, pretty sure it's for life Apr 14 22:34:03 hmm, k, but i rely don't know how to check Apr 14 22:34:19 zhej, read the documentation... -.- Apr 14 22:35:49 I'm trying to set up a SearchView, and when I type, the suggestion list shows up with the right number of rows, but all of the rows are blank. How do I map my query results to the suggestion view? Apr 14 22:47:44 I would like to call a method on the Activity after an AsyncTask has completed (onPostExecute()). How do I get a reference to the Activity / Context? Apr 14 22:48:14 pass it to ti in the contsruction Apr 14 22:48:55 but watch out for the activity being destroyed while the task is running Apr 14 22:50:06 sonOfRa: what does that look like exactly? what should I check for? Apr 14 22:50:09 what is the difference between a raw certificate and the signing certificate in android? Apr 14 22:50:26 is one the keystore cert and the other the proejct specific cert? Apr 14 22:50:40 I don't remember exactly, benlieb, i just remember that it causes problems Apr 14 22:51:00 activity gets destroyed while task is running -> postExecute calls method on non-existing activity -> crash Apr 14 22:51:16 Solupus look at openssl Apr 14 22:51:18 capella: When I try to change the signature I get an error public class Download extends AsyncTask Apr 14 22:51:53 capella: it says I have to implement the inheritance abstract... Apr 14 22:52:20 look at this for clues http://pastebin.mozilla.org/2306143 Apr 14 22:52:57 BJfreeman: i'm talking about the signing of apks Apr 14 22:53:09 don't see how its openssl related Apr 14 22:53:38 And, figured it out: http://stackoverflow.com/questions/6889285/search-suggestion-results-displayed-as-blank-no-text Apr 14 23:05:32 Solupus was meant to give you and over view about certs Apr 14 23:11:05 capella: tnx. I figured it out :) Apr 14 23:11:29 cool Apr 14 23:12:33 hmm, my textView disappears after assigning string to it Apr 14 23:12:56 textView id is unique, never been used b4 Apr 14 23:13:29 capella: well I got the context in, but I can't call anything on it: context.set_sdcard_video_data(); Is there another method I need to call on context to get the activity? Apr 14 23:22:58 is there a java programming channel? Apr 14 23:29:56 Hi all. Apr 14 23:30:10 Hey guys, Anyone ehre familiar with Fragments? AHving trouble understandng them and running out of time as it is due in less than 12 hours! Apr 14 23:30:29 <__import__> Gah, this is quite annoying. Apr 14 23:30:29 <__import__> Can Apr 14 23:30:29 <__import__> Er, wrong channel. Apr 14 23:31:02 I have an activity that launches the camera app for a result, takes the picture and uploads it somewhere. How can I ensure that after that is done, that the app just closes? Apr 14 23:32:05 Any freelancers available for hire (Might be a better idea)? Apr 14 23:32:15 where am i supposed to set the weight? Apr 14 23:32:36 need help setting weight! any1 help? Apr 14 23:36:30 nvm, figured it out...finally found out how to make it now apply to all Apr 14 23:48:13 guys whats the best book for learning how to develop 3d games in open gl es? i simply can't find web resources that teach things to someone of my experience (very little!) i figure a book that talks me through ful 3d development in open gl eswould be best Apr 14 23:48:42 demifuror: I think the canonical opengl book is "the red book" Apr 14 23:49:06 for OpenGL ES? Apr 14 23:49:09 JesusFreke: would it teach me how to do ray picking? Apr 14 23:49:24 KungFuHamster: not specifically. but I imagine it's still fairly applicable Apr 14 23:49:36 demifuror: no clue :) Apr 14 23:49:52 I'm a noob at opengl myself :) Apr 14 23:49:56 aw :( Apr 14 23:50:14 and the little I have done has been 2d Apr 14 23:50:35 for my penrose tiling live wallpaper Apr 14 23:53:49 I have a custom View where I've drawn a few basic shapes, got them moving aronnd etc and I'm trying to work out how to rotate them, but I just can't work it out. How do i do the rotation ? Apr 14 23:54:57 Canvas.rotate? Apr 14 23:55:23 can i do it without rotating the canvas ? Apr 14 23:55:36 why don't you want to rotate the canvas? Apr 14 23:55:54 That's the whole point of canvas.rotate :) Apr 14 23:56:04 because i want each element rotating independently Apr 14 23:56:21 right. you apply a different rotation before you draw each element, and then restore the rotation after each one Apr 14 23:56:55 ahh gotcha Apr 14 23:57:21 just be careful of the order of operations Apr 14 23:57:36 i.e. if you rotate and then translate, you'll get a different result than if you translate and then rotate Apr 14 23:58:01 I always have trouble remembering/figuring out which should come first :) Apr 15 00:02:19 Any freelancers on availble for hire tonight? Got a uni project due tonight! Apr 15 00:06:28 Go fail Apr 15 00:09:56 shr3k, So you want to hire somebody who either A) already has a degree and has probably worked hard for it or B) didn't get a degree and probably has a disdain for the need of one. Apr 15 00:10:51 shr3k: lolololol Apr 15 00:11:51 i'll do it Apr 15 00:11:54 400$/hr Apr 15 00:12:01 sounds like a reasonable rate to me Apr 15 00:12:02 sonOfRa, fitting price Apr 15 00:12:09 make that € actually Apr 15 00:12:17 *1.3 Apr 15 00:12:54 400 €/hr sounds cheap for helping some schmuck pass a class he doesn't understand Apr 15 00:13:15 Well... it also comes with mailing his professor... :D Apr 15 00:13:32 I sorted it now, was having problem with the sherlock tabbed views, but was not using the listener correctly, nice answers though lol Apr 15 00:13:55 sherlock tabbed views? Apr 15 00:14:08 woah. that shit exists. Apr 15 00:15:06 <__import__> How would one go about persisting a hashmap of hashmaps? Apr 15 00:15:13 hey guys, how do I find out if an app supports URL for file opening? Apr 15 00:16:14 __import__, that sounds like a bad idea, what are you trying to do? Apr 15 00:16:42 generally, hashmap of hashmaps does not sound like it would perform to well for large datasets Apr 15 00:16:58 hashmaps make me happy Apr 15 00:17:00 <__import__> It won't be a large dataset at all. Apr 15 00:17:01 so do lists Apr 15 00:17:04 <__import__> max 15 items. Apr 15 00:17:10 why not use a list? Apr 15 00:17:31 <__import__> Well, here's my app's setup. Apr 15 00:17:57 I would think Map, Ble>> is better than Map > no? Apr 15 00:18:00 <__import__> It's to control remote servers, so one server will have username, password, port, hostname, etc. Apr 15 00:18:06 __import__: u android dev in eclispe by any chance? Apr 15 00:18:16 <__import__> zhej, I do. Apr 15 00:18:18 i do :) Apr 15 00:18:26 and jee dev in eclipse as well. Apr 15 00:18:26 <__import__> Not sure how that applies here. Apr 15 00:18:32 __import__: ah, ok, time to pick ur brain and steal everything u know Apr 15 00:18:42 <__import__> :P Apr 15 00:18:51 man avd startup is as slow as hell Apr 15 00:18:54 waiting for it to load Apr 15 00:19:07 <__import__> Netbeans is my program of choice, using eclipse because everything is integrated. Apr 15 00:19:24 ah, i use eclispe cuz idk anythign else Apr 15 00:19:51 vim is my program of choice, using eclipse because this world sucks. Apr 15 00:20:12 <__import__> So basically, i'll be storing something like HashMap> (Very simplified example) Apr 15 00:21:26 That's a big memory hog, __import__ Apr 15 00:21:55 giaour: macvim is also nice :P Apr 15 00:21:56 why not use the datastore? Apr 15 00:21:57 <__import__> giaour, that's only for storage, when live, I use actual objects. Apr 15 00:21:59 Map , String> is better. Just a simple Pair class that you could reuse later. Apr 15 00:22:14 Android acutally has a Pair class. Apr 15 00:22:14 <__import__> overdamped, because I have no idea how? :P Apr 15 00:22:19 kakazza: Sweet! Apr 15 00:22:20 keke... okay Apr 15 00:22:40 <__import__> This is literally my first Android app. Apr 15 00:22:46 :p Apr 15 00:22:49 <__import__> Wrapping my head around fragments was a PITA Apr 15 00:22:53 in that case, prepare to throw it away :D Apr 15 00:22:57 lol Apr 15 00:22:59 ugh.. mine still stinks Apr 15 00:23:02 My first :p Apr 15 00:23:07 whereas wrapping a pita around fragments is a kebab Apr 15 00:23:42 <__import__> giaour, I'm not new to coding at all, and it's turning out quite nice :P Apr 15 00:23:44 <__import__> Leeds++ Apr 15 00:23:57 <__import__> :o storage supports SQLite Apr 15 00:24:19 yes, you can use sqlite! Apr 15 00:24:34 <__import__> That's perfect. Apr 15 00:24:37 I have an activity that launches the camera app for a result, takes the picture and uploads it somewhere. How can I ensure that after that is done, that the app just closes? Apr 15 00:24:58 <__import__> giaour, can't you just request camera perms and take the pic youself? Apr 15 00:25:12 System.exit(0); :D Apr 15 00:25:15 (don't do that) Apr 15 00:25:30 __import__: I could, but why should I when there's a camera app well written already for that purpose? Apr 15 00:25:46 with all the nice flashy features that I would have to reimplement some of when I want to do the same task Apr 15 00:27:08 <__import__> I question your design choice. What is your app meant to do? Apr 15 00:27:18 my problem is activity A starts activity for result ("give me a pic yo!") ---> A.onActivityResult (...) { oh yeah, old bug where the result is null anyway and not like what the docs say. No problem. I know where I save the pic anyway. Start asyncTask to upload via ftp.} Apr 15 00:27:32 after that, activity A starts all over again Apr 15 00:28:26 __import__: when I won't be adding anything to the "taking a picture" activity, why should I make my own "taking a picture" activity? That is a waste of time, to be honest. Apr 15 00:28:33 ok, meh back! Apr 15 00:29:07 taking the pic, saving it, uploading it all works fine Apr 15 00:29:19 I just want to add: exit activity A Apr 15 00:30:22 call finish() in onPostExecute or something like that? Apr 15 00:30:29 I did that, didn't work Apr 15 00:30:38 "didn't work" Apr 15 00:30:54 gave a reference to the current instance of "A" to the asynctask, then call finish() on it Apr 15 00:31:01 and it simply just restarts. Apr 15 00:31:12 that's "didn't work" :p sorry for sounding retarded there. Apr 15 00:32:17 So let me get this straight... the official way of running unit tests is with an instrumentation test on the device? Apr 15 00:36:21 guys, my glReadPixels is returning all zeroes, any ideas? http://pastebin.com/ib5GWVWc Apr 15 00:36:25 testing on android is fun, ain't it? Apr 15 00:36:37 sonOfRa: :'( Apr 15 00:37:07 If you actually want to properly test, I can REALLY recommend robotium Apr 15 00:37:36 Even more fun: Android JUnit comes with JUnit3! Apr 15 00:37:40 Not TestNG Apr 15 00:37:43 not junit4 Apr 15 00:37:49 I tried robolectric... but it threw an OMFGThisIsTooNativeException Apr 15 00:39:38 regular junit tests are pretty straightforward though Apr 15 00:39:56 At least, if you separated your logic from your gui Apr 15 00:42:11 sonOfRa, robotium looks pretty nice, but I'm not at that stage yet... Apr 15 00:42:14 thanks Apr 15 00:42:42 I just want some simple units to make sure I'm not an idiot while I'm writing code... Apr 15 00:42:58 MrPoopyHead Apr 15 00:50:57 guys, my glReadPixels is returning all zeroes, any ideas? http://pastebin.com/ib5GWVWc Apr 15 01:01:08 demifuror: uh, wat um thingy Apr 15 01:01:27 zhej: ? Apr 15 01:01:37 demifuror: eclispe? Apr 15 01:01:44 yep Apr 15 01:02:41 demifuror: u mean printing out zeroes? Apr 15 01:04:07 zhej: yes Apr 15 01:04:23 demifuror: just curious, b[0] returns string? Apr 15 01:05:08 no a byte? Apr 15 01:05:40 hm, can u even format it like that, idk Apr 15 01:06:06 zhej: i dunno, i was just following an example online. should i not be using a byte buffer? Apr 15 01:06:27 demifuror: idk, i don't think u can format it like that..give me a sec Apr 15 01:11:10 I'm defining an on click event for a button in an ListView. How can I get the button to send it's list position to the download method? I need some sort of enclosure or a way to refer to the button itself at run time… https://gist.github.com/pixelterra/0d80ccc95d002465dd47 Apr 15 01:12:27 Do I set a tag that represents the buttons position or is this already available through the view obj passed to the on click even somehow? Apr 15 01:12:56 demifuror: try %s Apr 15 01:14:04 zhej: as a printf? Apr 15 01:14:13 demifuror: wwait no, pixels.getfloat(); Apr 15 01:14:26 pixels.getFloat(); capital F Apr 15 01:14:44 printf("%0.1f") Apr 15 01:15:43 getFloat is available on pixels. should i make it a float buffer and do a get()? Apr 15 01:17:02 benlieb the overload for the onclick has an arg which is i believe the id of the item in the list? Apr 15 01:17:46 lasserix: the on click is not for the list item itself, but a button within one of the list items... Apr 15 01:17:50 demifuror: from what i read, ByteBuffer returns a floating #.# Apr 15 01:18:20 demifuror: and also, .get() is an accessor, there shouldn't be anything in it Apr 15 01:19:06 lasserix: a cleaner question would be how do I obtain the list view container from an button view inside? Apr 15 01:19:25 oh yeah sorry was talking Apr 15 01:19:52 zhej: hmmm okay. im sorry but it's almost 2.30 am here and i have work in the morning, ill try ut some stuff and hopefully report back tomorrow! thanks for all your help tonight! :D Apr 15 01:20:25 demifuror: no prob, i'll be on tomrrow as well Apr 15 01:20:40 http://stackoverflow.com/questions/8121476/how-to-setonclicklistener-on-the-button-inside-the-listview Apr 15 01:20:53 cheers, nn Apr 15 01:28:19 Hey folks, I'm about to embark on something that needs to ensure every item in a list of strings gets successfully HTTP POSTed to a service. Retry when failed. Parallelised if too many. Stored locally for when no connection. It seems like something that would have been solved already. Any good libraries for this? Apr 15 01:29:18 Something similar to the spirit of Core Data Sync (if that worked), but for android. Local cache for when offline and tries to push to online when it can Apr 15 01:51:48 hi, other than eclipse, what recommended free ide's do i have available for developing in? Apr 15 01:57:58 Is there a way to only collect the first onTouch event? I.e. I want the user to hold down the button and an action to take place only when they initially press it. Apr 15 02:06:49 thomas_r: you could try netbeans Apr 15 02:11:30 hey guys how do I get the current time in HH:MM:SS ? Apr 15 02:12:34 look up dateformat Apr 15 02:13:06 BJfreeman, the docs are pretty confusing Apr 15 02:13:30 they gave examples the last time i looked Apr 15 02:13:40 BJfreeman, really? i'll haev a look again Apr 15 02:14:17 which was this morning plus you can do a search for android timeformat examples Apr 15 02:16:27 BJfreeman, thanks man Apr 15 02:17:52 I'd give you a freeBJman! :P Apr 15 02:17:54 sorry I had to.. Apr 15 02:24:19 thomas_r: use a flag or put the thread to sleep for 16 ms Apr 15 02:25:08 thomas_r: usually some set of flags is used, particularly if you have to handle multiple pointers (distinct, simaltanous tocuhes) Apr 15 02:25:33 oops that was @mattinahat Apr 15 02:25:56 I'm having an issue with viewpagers and fragments. I have post a question almost a month ago, and no help yet. can anyone help me with this please? http://stackoverflow.com/questions/15628577/viewpager-cluttering-fragments-on-fragmentspageradapter Apr 15 02:25:57 thomas_r: seems a lot of exp' devs use intellij Apr 15 02:27:35 lasserix, thanks, i've downloaded the free version to have a look, currently reading up on the tegra development package Apr 15 02:29:43 anyone here has XP with viewpager and fragments? Apr 15 02:33:18 I think I'm on my own.. Apr 15 02:36:23 cyberrog i'm working with that combo right now Apr 15 02:36:38 davcamer combo? Apr 15 02:36:56 cyberrog combination of viewpager and fragments Apr 15 02:37:15 davcamer are you having the same issues as mine? Apr 15 02:38:20 davcamer it's like the fragments are being mixed when loading each page on the viewpager.. when I scroll to the second page, it loads the correct fragment, but suddenly, the content changes, by loading another the third fragment, where it should be the fragment number 2.. got it? Apr 15 02:40:14 cyberrog no, not having that problem Apr 15 02:40:31 davcamer.. u think u can help me with that? Apr 15 02:42:44 cyberrog looking at your code. i'm not too familiar with this code in my app yet either Apr 15 02:44:29 davcamer if you read the content of the question also the update you will understand my problem. Apr 15 02:47:50 cyberrog have the same "container" activity code as you, except for a few lines hooking in to the action bar Apr 15 02:48:02 cyberrog don't have those, i think because we are using a TabWidget instead Apr 15 02:48:34 davcamer what you mean.. dont have those what? Apr 15 02:50:41 davcamer shouldnt we use a TabWidget?? I'm using a TabHost. Apr 15 02:52:08 davcamer but in other activity, I'm using a TabHost with ViewPager to hold 2 fragments, and it works perfectly. Apr 15 02:54:57 cyberrog here, we are using a TabWidget below the actionbar, instead of putting the tabs in to the action bar Apr 15 02:55:04 cyberrog it's a bit non-standard Apr 15 02:55:13 cyberrog so we don't have these lines: Apr 15 02:55:23 mSherlock.setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW); Apr 15 02:57:13 public ActionBarSherlock mSherlock = ActionBarSherlock.wrap(this); Apr 15 02:57:22 cyberrog sorry, i don't see anything in your code Apr 15 02:57:42 cyberrog have you tried logging the lifecycle activities (onCreate, onStart et cetera) on activities and fragments Apr 15 02:57:52 and seeing if anything fishy is going on in terms of order? Apr 15 02:58:35 davcamer so.. what's your opinion? **** ENDING LOGGING AT Mon Apr 15 02:59:57 2013