**** BEGIN LOGGING AT Fri Jan 18 02:59:59 2013 Jan 18 03:01:12 so i want to put a timer in my app. is there some widget to make use of, or do i roll my own Jan 18 03:02:49 there is a timer Jan 18 03:02:59 depends on how percise you want to be though Jan 18 03:03:55 low precision is fine Jan 18 03:04:05 what class do I look at? Jan 18 03:04:13 45C/113F today :/ Jan 18 03:04:48 jimi_hendrix: i would use Handler Jan 18 03:05:18 jimi_hendrix: either postAtTime (Runnable r, long uptimeMillis) or postDelayed (Runnable r, long delayMillis) Jan 18 03:06:28 jimi_hendrix: and if you want code to run at a given time, after the process has ended (alarm clock, calendar) use AlarmManager Jan 18 03:06:56 Handler is better for making the UI tick down, AlarmManager to just do something at a given time, after a long delay Jan 18 03:07:09 alright, Handler sounds like what I want Jan 18 03:07:37 *clever, @jimi if you can be more specific might be able to help you more Jan 18 03:07:43 are you making a metronome by any chance? Jan 18 03:08:58 lasserix, no. essentially, i am going to show a countdown then change some text when the countdown hits 0 Jan 18 03:09:37 jimi_hendrix: sounds like Handler.postAtTime would do then, keep posting new events for 1 second from now Jan 18 03:09:55 or maybe just postDelayed if you dont care about locking it to xx:xx:xx.000 (0ms) Jan 18 03:11:45 alright, thanks Jan 18 03:11:53 I'm looking for a real-time image *pattern recognition* library. Suggestions? Jan 18 03:12:37 The_Phoenix: ive heard opencv is good for that, but ive never tried to use it (and i dont know if android can run it) Jan 18 03:15:43 clever: There's an iOS port but as far as I looked, it seems like image recognition(comparing two images) than for pattern. Jan 18 03:16:40 clever: There's android tutorial too. Jan 18 03:16:42 The_Phoenix: internaly, android is just linux, so you might have luck with the linux port, via NDK Jan 18 03:16:44 i've used opencv (not on Android though) and it has hough at least Jan 18 03:17:35 clever: True but am not sure if it could do pattern recognition. Jan 18 03:19:21 kevinb: Interesting. Jan 18 03:21:34 kevinb: I think I should read up a bit on image recognition. Am not familiar with all image recognition algos. I was hoping there was an API that doesn't require much image recognition knowledge like Android gestures. Jan 18 03:23:45 i imagine you're going to have to do the bulk of the recognition yourself. image processing itself (like running a filter or changing color spaces) has plenty of libraries (at least outside of android), but recognition is heavily tied to the type of images you're working with and the type of features you're trying to identify Jan 18 03:29:34 My Toast is not getting cancelled :/ I do MyToast.show(); to make it show up, but it doesnt go away with MyToast.cancel(); Jan 18 03:31:09 did you set a duration? Jan 18 03:31:39 I don't think so Jan 18 03:31:46 Does it matter even when I do .cancel() ? Jan 18 03:32:11 i believe protocol is to set a duration, then there's no need to 'cancel' Jan 18 03:32:55 LENGTH_LONG Jan 18 03:33:00 I set Jan 18 03:33:26 Are you running something while the toast is showing that would make the application non-responsive? Jan 18 03:34:18 No. Jan 18 03:38:46 Solved it. ty Jan 18 03:38:57 how? Jan 18 03:40:20 I made sure I checked everywhere if it was null, set to Toast.SHORT_LENGTH and when it wasnt necessary apart from cancelling I set it null Jan 18 03:40:29 1 am here, later I can optimize it hehe Jan 18 03:40:31 nighty night Jan 18 03:43:37 Hmm sounds like a context leak Jan 18 03:43:48 *symptomatic of Jan 18 03:52:26 http://abcnews.go.com/Business/us-software-developer-busted-employer-outsourcing-job-china/story?id=18230346 Jan 18 03:58:57 heh read that on ars yesterday .... most people think the guys a genious Jan 18 04:01:46 except for the bit where he allowed the chinese guy to vpn directly into his work machine Jan 18 04:02:02 should have let the guy vpn into his home computer and from there connect to his work machine Jan 18 04:02:16 then the connection would have appeared to originate from his home and appear more legit Jan 18 04:02:56 because yeah connections from china aren't suspicious at all Jan 18 04:03:10 :D naaaaaaahhh Jan 18 04:03:38 i'd be surprised if any body else ever hires that guy again Jan 18 04:04:01 demoted from a $100,000+ job to a gas station attendant Jan 18 04:04:17 and if the company was smart, they'd hire the chinese guy that was working for only $50,000 Jan 18 04:04:43 He'll start his on contracting firm - like he should have to begin with Jan 18 04:11:23 he'd need to have contracts in the first place Jan 18 04:12:04 yep Jan 18 04:36:29 Leeds i have access to b.a.c now :P Jan 18 04:36:46 progress :) I saw you merged and closed my bug Jan 18 04:36:57 yep Jan 18 04:37:02 I'll have to find something else to report now, see how long it takes to get noticed ;) Jan 18 04:37:10 lol Jan 18 04:37:17 im not sure how to close a lot of the bugs Jan 18 04:37:21 "cannot reproduce" or "released" Jan 18 04:37:43 shouldn't be released unless it's actually known to be fixed Jan 18 04:38:04 well a bug filed in 2010 that is no longer a bug... Jan 18 04:38:07 or do you mean there should be a status for "this is an ancient OS version, we ain't gonna fix it here" Jan 18 04:38:23 no i mean, someone filed a bug Jan 18 04:38:25 it was likely fixed Jan 18 04:38:29 but i have no proof they werent making it up Jan 18 04:38:40 like yours Jan 18 04:39:02 ah, because it was probably fixed without the bug being updated at the time Jan 18 04:39:31 yea Jan 18 04:39:47 i mean in "simple" cases like a typo i could just look at the history of the file Jan 18 04:40:23 I'd say make a judgement call and leave a message on the bug Jan 18 04:41:48 presumably even if something could be reproduced on, say, 2.X or even 3.X, but not on 4.X, nobody is really going to care anyway Jan 18 04:42:18 I mean, it's not like the 2.X users are likely to ever see a fix pushed to them Jan 18 04:47:20 Can anyone help me with with a tutorial from vogella.com? It's just not working, and it's only the first step. Jan 18 04:52:10 EGamerHDK: don't ask for help without actually saying what you want help with... Jan 18 04:52:22 s2 959 (tracfone) has been unlocked/rooted, has it not? Jan 18 04:53:14 Leeds: Sorry, it's the first step in this tutorial. http://www.vogella.com/articles/AndroidJSON/article.html Jan 18 04:53:32 EGamerHDK: and the problem you're having is... Jan 18 04:53:39 It crashes when started Jan 18 04:53:58 what's the exception? what line is it on? Jan 18 04:54:05 HttpResponse response = client.execute(httpGet); Jan 18 04:54:32 Unable to start activity. Jan 18 04:54:53 erm, no Jan 18 04:55:02 pastebin your backtrace Jan 18 04:56:43 Oh. Sorry, I'm not that great at this whole programming thing yet. You mean pastebin the logcat error... right? Jan 18 04:57:03 yes Jan 18 04:57:25 How do I do that though? It's a bunch of lines, but it only lets me select one? Jan 18 04:57:46 I'd guess that you're doing network IO on the main activity thread, as a matter of raw prejudice :P Jan 18 04:59:54 EGamerHDK: I'm assuming you're using eclipse - which means someone else will have to teach you how to copy and paste Jan 18 04:59:54 How would i go about copying an entire logcat error message?O:-) Jan 18 05:00:05 click one line Jan 18 05:00:10 shift click the other end of the trace Jan 18 05:00:36 Ah. Shift click. How dumb of me. Thanks canadiancow Jan 18 05:01:15 Here's the logcat pastebin: http://pastebin.com/e55KRDLX Jan 18 05:01:34 someone already gave you the answer Jan 18 05:01:38 Yep, "Caused by: android.os.NetworkOnMainThreadException" Jan 18 05:01:39 dragorn Jan 18 05:01:48 and yup, dragorn wins the prize Jan 18 05:02:03 "NetworkOnMainThreadException" Jan 18 05:02:08 Hrm... lol When did that come into play? Sorry I'm still very new at Android. Please bear with me. Jan 18 05:02:12 woo! :) Jan 18 05:02:25 EGamerHDK: you can't do network io, or anything that would block the main UI, on the main thread Jan 18 05:02:51 EGamerHDK: look at threading, asynctask, runnables... Unfortunately you picked a pretty complex first thing to do Jan 18 05:03:03 not erally Jan 18 05:03:14 you just need an asynctask with doInBackground() and onPostExecute() Jan 18 05:03:21 It's not my first. It's just early on in my programming career. Jan 18 05:03:23 well, it's slightly more complex - you *could*, in the past, then you were advised not to, then there was a strict mode which would flag it... now you can't Jan 18 05:03:48 so if you're following a tutorial which is almost 2 years old, it was allowed at the time Jan 18 05:03:52 Okay, don't kill me on this one, but it works on my emulator? Jan 18 05:04:02 Oh! Alright, so it was allowed at one time. Jan 18 05:04:10 Leeds, "almost" 2 years ago was pretty close to the HC release Jan 18 05:04:12 which did not allow it Jan 18 05:04:28 canadiancow: except it's not like most people ever came into contact with HC Jan 18 05:04:34 :P Jan 18 05:04:41 I had a samsung 10.1 with HC Jan 18 05:04:43 lol Jan 18 05:04:47 stop writing tutorials if you don't know what you're talking about ~_~ Jan 18 05:05:07 I had - have - what is, as far as I know, the only device to ever get upgraded *to* HC Jan 18 05:05:18 poor you Jan 18 05:05:18 galaxy tab? Jan 18 05:05:21 :p Jan 18 05:05:35 nope, HTC Flyer Jan 18 05:06:15 although mine came with HC, they originally shipped with gingerbread Jan 18 05:06:30 interesting Jan 18 05:06:55 canadiancow: I don't think the original tab, at least, ever had an upgrade from 2.X - one of my colleagues had one, which he actually used as his phone for a while Jan 18 05:07:23 i was just trying to name a "tablet" that was released before teh xoom Jan 18 05:07:25 official upgrade, at least Jan 18 05:07:28 and that's all i could think of Jan 18 05:08:06 the flyer was pretty much a flop, and HTC walked away from tablets afterwards... I was given one by, oh, what's the company... Google? Jan 18 05:08:42 wabbit Jan 18 05:08:42 a flyer? Jan 18 05:08:47 the original dell streak might've gotten the honeycomb update as well (i kind of recall this but don't have one myself so i could be wrong) Jan 18 05:09:00 googler never gave me a flyer :( Jan 18 05:09:02 just a bunch of nexus ones Jan 18 05:09:21 and apparently they're about to announce an 8" Tab, because 7", 7.7", 8.9" and 10.1" doesn't give them enough variety Jan 18 05:10:12 yeah, they had a workshop here on upgrading to fragments, gave everyone a Flyer because - as the trainer correctly said - the emulator is not really the most efficient way to do tablet dev Jan 18 05:10:26 why didnt they give out a xoom Jan 18 05:10:53 presumably because Moto didn't have a warehouse full of unsold ones, unlike HTC? Jan 18 05:11:05 also, AFAIK they only did it in HK and Taiwan, so HTC are more local Jan 18 05:12:37 in the past few years I've had an N1 and a Flyer from Google, a Playbook from RIM, a Lumia from Nokia and an 8X from HTC directly... Jan 18 05:17:52 Leeds: 8" tablet from who ? htc ? Jan 18 05:18:32 g00s: Samsung Jan 18 05:24:02 This may seem pathetic, but after I fetch a project directory from svn, how do I coax eclipse into opening it? It always seems to open the last project when I say open project. Jan 18 05:27:13 jda2000: import it as an existing project Jan 18 05:29:04 clever, Thanks! Jan 18 05:29:26 So, I should not have downloaded it into workspace already? Jan 18 05:30:28 jda2000: it doesnt matter where the dir is i find Jan 18 06:10:32 How do I induce whatever is supposed to generate my R class to go ahead and do it? Jan 18 06:12:30 ^B Jan 18 06:15:06 Errors occurred during the build. Jan 18 06:15:06 Errors running builder 'Android Pre Compiler' on project 'daap-client'. Jan 18 06:15:06 java.lang.NullPointerException Jan 18 06:15:31 Am I as screwed as I think I am? Jan 18 06:16:20 That's telling me the compiler is crashing, right? Jan 18 06:17:04 I mean the "Android Pre Compiler" is crashing. Jan 18 06:25:26 well this is an interesting effect Jan 18 06:25:42 this desire z somehow decided to mirror every touch Jan 18 06:26:07 I tap on back button, menu opens Jan 18 06:26:20 I open a software, some other software opens from the other side of the screen Jan 18 06:26:35 I tap home button it opens search Jan 18 06:26:39 and search button opens home Jan 18 06:26:43 err, goes home Jan 18 06:27:31 I type qwerty on the software keyboard, I get poiuyt Jan 18 06:27:42 this is somehow hilarious Jan 18 06:48:12 deebo, thanks. Jan 18 07:09:24 any ndk expert here ? how can i force a c or cpp t always be recompiled ? Jan 18 07:09:36 i want to embed the build date and time in the librray so i can print it out in logcat Jan 18 07:09:47 http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html doesn't work Jan 18 07:10:38 __DATE__ and __TIME__ :) Jan 18 07:10:48 the object has to be rebuilt for that to work Jan 18 07:10:52 i may have figured it out Jan 18 07:10:56 yeah.. Jan 18 07:10:58 myfile.o : .PHONY Jan 18 07:11:09 k0nichiwa: other way arround Jan 18 07:11:13 no that odesnt work Jan 18 07:11:14 .PHONY: myfile.o Jan 18 07:11:20 i already tryied the other way around Jan 18 07:11:25 sh*t doesnt work, no suprise, its android Jan 18 07:11:34 hehe Jan 18 07:11:47 its a standard feature within make, not android Jan 18 07:11:57 we've got canadiancow cornered, he's fixing tons of bugs Jan 18 07:12:09 android usees make Jan 18 07:12:25 make or gmake ? Jan 18 07:12:35 i mean, they are often aliased ... Jan 18 07:12:36 k0nichiwa: i would add a touch command into it Jan 18 07:12:39 gnu make Jan 18 07:12:46 within the 'all' section, add 'touch myfile.c' Jan 18 07:12:57 how do i add a touch command ? its not an fng make file Jan 18 07:13:01 then it will detect that myfile.o is outdated and rebuild it Jan 18 07:13:01 its an android.mk Jan 18 07:13:10 k0nichiwa: android.mk is just a makefile :) Jan 18 07:13:19 yeah but i dont have an all section Jan 18 07:13:27 though `touch` is unix command Jan 18 07:13:33 and if it is just a makefile why doesn't http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html work ? Jan 18 07:13:48 possibly a side-effect of how its included into the main makefile Jan 18 07:13:48 it's GNU, something *must* be broken Jan 18 07:14:00 k0nichiwa: do you have a Makefile within the root dir? Jan 18 07:14:02 its no fun when you're not sure if your lib has really been rebuilt and reinstalled Jan 18 07:14:18 clever no its not a makefile, its android build system Jan 18 07:14:25 it uses gnu make syntax Jan 18 07:14:31 it probably uses gnu make somehwere internally Jan 18 07:14:41 create your own Makefile, that runs touch on myfile.c, then runs the android build system Jan 18 07:14:50 use that to build things Jan 18 07:15:37 anyway, .PHONY targets shouldn't be used for that Jan 18 07:16:19 you should have a file (let's say config.h) which contains the build string or whatever, and "touch" in its make rule Jan 18 07:16:39 or rather, touch it whenever you want to make a release ;) Jan 18 07:17:39 http://stackoverflow.com/questions/12372500/how-to-run-custom-rule-in-android-mk-before-compilation Jan 18 07:17:42 maybe that will work Jan 18 07:17:51 clever that would work but i'd rather not make it a to stage process Jan 18 07:18:59 no not working yet Jan 18 07:28:37 ndk build is apparently completely f'd up Jan 18 07:32:01 So changing the opacity of text via its paint doesn't automatically apply to its shadow layer. However I'm trying to achieve a fade effect. I see setting the shadowlayer invokes jni method. After looking at the Paint.cpp, a new Skia shadow is allocated. Is it bad practice to change shadowlayer every frame of a game? Is this memory being properly managed, or was this method intended to only be invoked once Jan 18 07:34:31 I'd rather not draw into bitmap beforehand and use paint on that Jan 18 07:35:01 especially because android text measure doesnt account for shadow Jan 18 07:35:14 making that basically impossible Jan 18 07:46:51 can anyone get to https://live.xbox.com/ Jan 18 07:47:13 Yes Jan 18 07:47:15 POS xbox is saying YOUR MTU IS FUBAR, when i cant even get to their main page on my desktop Jan 18 07:47:16 ugh Jan 18 07:47:29 hmm now it loads Jan 18 07:47:40 but its late enough that i dont even care anymore Jan 18 07:47:40 sigh Jan 18 07:50:20 oh man, there is a vending machine in Munich just for Legos http://i.imgur.com/GdlJT.jpg Jan 18 07:50:25 * g00s must move to Munich Jan 18 07:51:16 greatjustice, are u setting opacity on the vie wthat contains the text ? Jan 18 07:53:35 k0nichiwa: I am setting opacity on the paint I use with the text drawn to Canvas. The text fades fine, but the shadow color stays Color.Black. I am looking to change shadow color on the fly quickly and most importantly without invoking the garbage collector Jan 18 07:54:05 oh sh*t textedit just crashed again Jan 18 07:54:33 is asking a simple texteditor to work too much ? geesus Jan 18 07:55:28 textedit? on mac? who uses that :| Jan 18 07:55:46 greatjustice maybe you can draw the text at regular opacity to an offscreen with transparency Jan 18 07:56:04 and then composite the offscreen Jan 18 07:57:29 k0nichiwa: I would, but android doesn't account for shadow layer when you ask it to measure text. And I don't want a bigger bitmap than needed because of precise positioning Jan 18 07:58:30 Numbers are generally same width and height, so I measure stuff with 7 or 77 and position based on those measurements Jan 18 07:59:17 which I have to do manually because if I use a view, timing draws will be off on account of 2 threads Jan 18 08:01:39 My other option would be to allocate 15 paints, each with a color 17 opacity greater than the former, making sure I go from 0 -> 255 in 15 frames. I just see the allocation in the jni source and worry Jan 18 08:02:40 I mean I know only java objects will be gc'd, but I don't know c or cpp. If it just creates a new looper Jan 18 08:03:04 Everytime I setShadowLayer, are things going to explode? Jan 18 08:06:08 greatjustice, there still may be a way you could composite with an offscreen Jan 18 08:06:25 im not sure why precise positioning prevents that Jan 18 08:06:41 you draw the text from the top left and the shadow goes to the bottom or right i assume Jan 18 08:07:12 you know exactly the position of the text within your offscreen so you have all the info you need to position it Jan 18 08:08:21 I don't understand. You mean have a bitmap allocated and use canvas to draw into it and then draw the bitmap through the other canvas? Jan 18 08:08:41 Applying paint while blitting Jan 18 08:08:50 with variable alpha Jan 18 08:09:18 greatjustice: writing on another canvas may be reference question - if one bitmap is on two canvases, so if bitmap changes do both canvases changes Jan 18 08:09:34 though, i am not an expert Jan 18 08:10:01 pacior: yes the object is held by reference on both canvases Jan 18 08:10:26 changes to one are reflected in all canvases initialized with that bitmap Jan 18 08:10:28 greatjustice, yes Jan 18 08:10:36 of course what did you think i meant Jan 18 08:10:59 that would allow you to change the alpha of both the text and shadow consistently Jan 18 08:11:47 k0nichiwa: Just making sure. The problem is.. how big should that bitmap be? If I measure the text, shadow isn't accounted for, so it would be too small Jan 18 08:12:09 I'd have to guess, and I'm bad at that Jan 18 08:12:58 I'd rather not have to composite a ton of transparent pixels as a result Jan 18 08:15:37 Okay ill go with that route. Jan 18 08:16:04 I'll just make it twice as big to be safe :/ Jan 18 08:16:17 Stupid android.. Jan 18 08:16:30 greatjustice, yeah dont see another way Jan 18 08:16:58 you wuld only be intersted in a shadow that is maybe 30 percent the text height i think Jan 18 08:17:06 k0nichiwa: thanks for the help Jan 18 08:17:20 why make the bitmap twixe as big as the text ? the shadow would only be lon the scale of the text heigt or something Jan 18 08:17:23 yeah it changes based on screen size Jan 18 08:17:39 or maybe the shdow is more like a fixed 10 pixels in "size" Jan 18 08:17:39 I have shadow dimensions stored in resources xml Jan 18 08:18:09 i dont know if android supports layers Jan 18 08:18:29 another possibility if you are drawing to views, if you have layers, make a layer for all the text w/shadows that you want opacified Jan 18 08:18:31 Can't be pixels. Doesn't look good on different device sizes. It's stored as dp in dimens.xml Jan 18 08:18:34 and then set the alpha on that layer Jan 18 08:18:42 or how bout this Jan 18 08:18:49 make another view, stick it on top of your current view Jan 18 08:18:58 make it translucent and set the alpha on the biew on top Jan 18 08:19:55 Only using one view. The UI thread is only bootstrapping. I can't render on it or performance is real choppy Jan 18 08:20:10 using surfaceview full screen Jan 18 08:20:31 and its smooth because I use no other views Jan 18 08:22:03 wow i just rebuilt my ndk library, i deleted my app from the device, and ran it Jan 18 08:22:13 the stupid thing has a build and date stamp in logcat from an hour ago Jan 18 08:22:20 that is just weird, how coudl that happen Jan 18 08:22:26 I'm just trying to be careful here with sizes because I have no idea how big a shadow actually is Jan 18 08:22:28 hi i have a question in viewpager and fragment like google play can antone help me ? Jan 18 08:22:38 hi i have a question in viewpager and fragment like google play can antone help me ? Jan 18 08:22:48 im trying to debug stuff and half the time im using code from an hour ago, no wonder i get confused Jan 18 08:22:51 Just ask please Jan 18 08:23:51 my problem is in http://stackoverflow.com/questions/14301595/what-can-update-this-viewpager Jan 18 08:24:17 my viewpager dont update when i change pages Jan 18 08:24:26 :-( Jan 18 08:26:40 I don't know much about viewpager (yet) but this seems like something ideal for debug with breakpoints Jan 18 08:28:08 pencilvania: i have an answer for that somewhere, i think Jan 18 08:30:59 pencilvania: first, are you calling dataSetChanged? Jan 18 08:32:07 no Jan 18 08:32:47 pencilvania: that would be a good place to start then, just not sure if its a public method or an internal one ran by an event Jan 18 08:33:20 hmmm, i think you want notifyDataSetChanged within the Adapter subclass Jan 18 08:41:40 how can i use notifyDataSetChanged() in my code ? http://stackoverflow.com/questions/14301595/what-can-update-this-viewpager Jan 18 08:43:55 pencilvania: you need to call mAdapter.notifyDataSetChanged() when the data set changes Jan 18 08:54:37 has anyone had any success with styling the overflow menu on a device with a hardware menu button. I need to change the pressed state to orange. Any ideas what attrs/styles to override Jan 18 08:57:27 cfv Jan 18 08:58:46 hi Jan 18 08:59:17 anyone has problem with AudioRecord::setNotificationMarkerPosition? Jan 18 08:59:26 I set the marker position Jan 18 08:59:49 but the callback doesn't get called as noted in the documentation Jan 18 09:02:26 the android docs recommend using a Nexus S for testing http://developer.android.com/tools/device.html Jan 18 09:03:12 ali__: I could be wrong, but I think I've seen JakeWharton say that the menu on a device with a menu key isn't technically an overflow menu, so you can't style it... or something Jan 18 09:04:36 but I could be wrong... Jan 18 09:04:54 Leeds: ahh that sucks! I've got everything in a nice orange.. Jan 18 09:04:59 JakeWharton: there? Jan 18 09:05:04 i have problem please help me Jan 18 09:05:05 http://stackoverflow.com/questions/14395259/how-can-i-use-notifydatasetchanged-in-this Jan 18 09:05:30 man, no wonder why SO is becoming a shithole Jan 18 09:06:03 becoming? Jan 18 09:06:20 SO isn't a pastebin pencilvania Jan 18 09:08:37 and its bad style to PM people without asking Jan 18 09:14:52 hi Jan 18 09:15:19 what does getIntent().getStringExtra("str") do? Jan 18 09:16:49 linuxuz3r: :| Jan 18 09:16:57 hi g00s Jan 18 09:17:00 ;p Jan 18 09:17:01 :) Jan 18 09:17:14 do you know the answer to my question? Jan 18 09:17:54 linuxuz3r: what do you think it does? Jan 18 09:18:19 based on your reading of the docs, tutorial code, etc Jan 18 09:19:17 well i am confused with getIntent but getStringExtra gets the data that is inputed in the intent activity and passed to the main activity Jan 18 09:19:38 im just confused on what getIntent do Jan 18 09:20:25 really, you're confused by http://developer.android.com/reference/android/app/Activity.html#getIntent() Jan 18 09:20:57 how can i use notifydatasetchange() ? Jan 18 09:20:58 http://stackoverflow.com/questions/14395259/how-can-i-use-notifydatasetchanged-in-this Jan 18 09:21:16 how can i use notifydatasetchange() ? in this sample http://stackoverflow.com/questions/14395259/how-can-i-use-notifydatasetchanged-in-this Jan 18 09:21:29 pencilvania by calling it on your adapter ??? Jan 18 09:23:49 pencilvania you must have mistaken what I said for "please pm me so we can have an intimate conversation" .... my apologies if I indicated that, I assure you it was not meant that way Jan 18 09:24:10 leeds thanks Jan 18 09:24:19 what do they mean by extended data Jan 18 09:24:44 Hi guys. Is it possible to speed up app launching in the emulator. Right now, the time it takes from the moment I click on Run as -> Android Application to the application is launched in the emulator is nearly several minutes Jan 18 09:25:02 fairuz thats horrific Jan 18 09:25:10 emulator problem Jan 18 09:25:16 whats logcat saying ? Jan 18 09:25:20 sys errors ? Jan 18 09:25:29 I read somewhere if we muck around in the emulator, it will speed up eventually. Jan 18 09:25:44 fairuz what is the host machine spec ? Jan 18 09:25:48 It does but why, I don't know Jan 18 09:25:59 StingRay_: 4 cores with 16 GB of ram Jan 18 09:26:00 fairuz: save a vm snapshot state and just load that state Jan 18 09:26:06 should be enough Jan 18 09:26:14 because the avd already been cache Jan 18 09:26:28 ? Jan 18 09:26:28 that way you can directly load the state instead of having android boot up Jan 18 09:26:52 also consider using the x86 android image with virtualization instead of the arm emulation Jan 18 09:27:30 throw eclipse away and learn how to use command-line Jan 18 09:27:36 you'll have so much more power Jan 18 09:28:04 yeah...but dont like the great responsibility :) Jan 18 09:28:12 where is my adapter to call notifydatasetchange () http://stackoverflow.com/questions/14395259/how-can-i-use-notifydatasetchanged-in-this Jan 18 09:28:42 if you're on windows, install cygwin and putty, and learn how to use vim and the linux commands Jan 18 09:28:51 pencilvania I suggest your read a bit more, also looking for the word "adapter" is a good start ! Jan 18 09:29:39 pencilvania: are you the dev that recently released an app update with the change message ""Added ability to select all. Due to limitations with ListView, scroll to the bottom of the list then back to the top to refresh all the checkboxes." ? Jan 18 09:30:10 pencilvania http://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter.html Jan 18 09:30:35 pragma :) Jan 18 09:30:41 because I just saw an update for one of the apps that I use with that "recent changes"/"what's new" update message... Jan 18 09:30:54 pragma market link? Jan 18 09:31:04 cause I dont believe you Jan 18 09:31:18 lol Jan 18 09:31:27 https://play.google.com/store/apps/details?id=com.jtschohl.androidfirewall&hl=en Jan 18 09:32:16 o....m....g Jan 18 09:32:42 ok, I believe you :) Jan 18 09:34:49 pragma got quite a feww installs, looks like was only released in dec Jan 18 09:34:55 yeah, like i'm going to trust the security of my device and functioning of the firewall to someone that can't use ListView Jan 18 09:35:26 also md5 hashing for passwords Jan 18 09:35:59 let's guess, straight md5 ;) Jan 18 09:36:21 lol Jan 18 09:36:23 "Rooted device ..android 2,3,6 what is the wrong?!" Jan 18 09:36:33 wat is the wrong ! Jan 18 09:36:34 the grammar, obviously Jan 18 09:37:07 lol Jan 18 09:37:36 g00s: maybe he's english but other stuff maybe good? Read the worker who outsource his job to china? Jan 18 09:37:37 lol Jan 18 09:37:53 yes, saw that Jan 18 09:38:20 speaking of China - it's almost 6pm, so I declare the weekend OPEN Jan 18 09:38:31 ... what day is today? Jan 18 09:38:38 beerday Jan 18 09:38:43 https://play.google.com/store/apps/details?id=com.jtschohl.androidfirewall&reviewId=Z3A6QU9xcFRPRThBY3VEN19SU1hfdlRnb056LUlVQ3J1Z2poemZMMTN4cGM2czM4YVdPVy1fQXl2OFZoRTZERHJ3SW9yelo1ZExIUXExSmpqTnZ2ZzJkLU9J Jan 18 09:38:47 ... oh right, it's friday :D Jan 18 09:38:52 * p_l didn't notice Jan 18 09:39:49 wow Jan 18 09:39:50 Because of limitations with ListView after you select or clear all please scroll to the bottom of your list and back to the top. This forces the checkboxes to properly populate. I will hopefully fix this issue in a future build. Jan 18 09:40:15 i hate nondeterministic listviews Jan 18 09:40:37 Maziz: i ran into the exact oposite problem when i used listview last Jan 18 09:40:46 it was recreating every (visible) item on every ui update Jan 18 09:41:10 lern to getView() and notifyDataSetChanged() Jan 18 09:41:41 who's that Jan 18 09:41:42 Md5 passwords? Limitations with ListView? Jan 18 09:41:43 More like limitations with developer. It's an poor move to blame the tools when you don't know how to use them. And Md5 hashes are not good enough for password hashing. Use SHA hashing or something better. Jan 18 09:42:02 pragma-: in my case, i was not expecting getView to be re-called so often, for items i had already made Jan 18 09:42:26 it shouldn't get called often Jan 18 09:42:37 either you're refreshing often or scrolling often or doing it wrong Jan 18 09:42:49 pragma-: every time i edited a TextView within the list (causing a layout change), it got re-called Jan 18 09:42:58 and i was ignoring the convertView parameter Jan 18 09:43:24 every row in the list had ~4 counters, ticking up at once/second Jan 18 09:44:33 Maziz: SHA doesn't help by itself. You need to know how to do hashing of passwords first :) Jan 18 09:44:55 i took from link Jan 18 09:44:57 requoting Jan 18 09:44:58 lol Jan 18 09:45:28 yes Jan 18 09:45:40 but just using SHA doesn't a secure password hash make Jan 18 09:45:44 (just adding salt either) Jan 18 09:49:03 http://krebsonsecurity.com/2012/06/how-companies-can-beef-up-password-security/ Jan 18 09:50:29 ah, he mentions brypt Jan 18 09:50:33 bCrypt Jan 18 09:51:33 there is jBCrypt … not sure how well it works on android. entropy pool could take a while to fill up Jan 18 09:51:35 bcrypt is an example of a complete password-hashing solution Jan 18 09:51:46 g00s: most importantly it's *slow* Jan 18 09:52:03 g00s: i heard reports at one site claiming that replacing /dev/random with a symlink to urandom made everything on android faster Jan 18 09:52:19 so the amount of rounds you can do in pure java is much less than the same device can do in native, thus possibly damaging security Jan 18 09:52:22 i think the details of the message got lost quickly as sites repeated it Jan 18 09:52:36 pragma-: what about RenderScript? Jan 18 09:53:47 p_l: oops, meant to type your name Jan 18 09:54:25 clever: I don't think bcrypt runs well on GPUs Jan 18 09:55:02 case in point is that unlike SHA-1 based hashing schemes, it doesn't use a *quick* hash function, but uses a crypto function known for its loong key setup phase Jan 18 09:55:37 http://web.archive.org/web/20080822090959/http://www.matasano.com/log/958/enough-with-the-rainbow-tables-what-you-need-to-know-about-secure-password-schemes/ Jan 18 09:55:43 (also, back when I used bcrypt on android, renderscript wasn't an option due to being available on veeery limited amount of devices) Jan 18 09:56:53 pragma-: one of the web services i help maintain, still stores bare passwords in mysql tables :( Jan 18 09:56:59 atm I haven an OpenGL scene in NDK, but now I'd like to add some interaction, I've seen code using ASensorEventQueue, has anyone ever used that? Jan 18 09:57:08 pragma-: but ive been moving the entire system towards openid Jan 18 09:57:16 clever: I suspect most companies do Jan 18 09:58:10 This is why I use keepass to generate and remember 64-character random passwords for every site I use Jan 18 09:58:28 yeah, i use KeePassX Jan 18 09:58:37 pragma-: the project i just mentioned, silently truncates your password to ~16 characters Jan 18 09:58:38 though a large portion of sites actually limit the maximum password length to sizes as small as 8 characters Jan 18 09:58:40 pragma-: then you cant login, because it doesnt match Jan 18 09:59:23 i wish KeePassX was compat with KeePass though :| Jan 18 09:59:26 some also actually limit it to alpha-numeric only -- no punctuation or other chars Jan 18 09:59:29 how absurd Jan 18 09:59:47 pragma-: crappy attempt at preventing sql injection? Jan 18 10:00:24 pragma-: ever heard of bobby tables? Jan 18 10:00:40 http://xkcd.com/327/ Jan 18 10:00:41 xkcd? Jan 18 10:00:44 yep Jan 18 10:01:24 Anyone knows an API to do some basic image editing, like changing contrast, highlight edges... ? Jan 18 10:02:14 valgrind: OpenCV ? Jan 18 10:02:20 (that'd be C++) Jan 18 10:02:32 ah belgian, do you remember yesterday i was checking for a way to login with google? Jan 18 10:02:33 there is also an Java OpenCV port afaik Jan 18 10:02:53 ive been playing with the AccountManager thing... works smoothly :) Jan 18 10:03:00 yes valgrind I remember that, nice to hear! Jan 18 10:03:15 pretty easy to get the user to login with gmail and integrate it with google app engine, if you need backend supoort :) Jan 18 10:03:25 thanx I'll check opencv Jan 18 10:11:30 Hey guys, I have an byte [] that is constantly represented as an address when I want to send it over the net (I base64 it) when decoded it returns as an address like [B@2bbe8d08, What gives? Thanks Jan 18 10:13:36 StingRay_: pragma- But I thought the save state is just for speeding up android boot (or bypass it since the state is saved) Jan 18 10:13:51 In my case, the avd is already on, and the android is up and running Jan 18 10:14:10 bobsonator sounds like either you are printing .toString or sending .toString Jan 18 10:14:30 Just the each time I do some modification and relaunch the app, it takes too much time. Jan 18 10:15:37 fairuz: state save is a lot like hibernation, but without informing the guest os at all Jan 18 10:15:56 fairuz: shrug, I just use adb -e install -r myapp.apk Jan 18 10:16:02 asfdd: I don't have any toStrings Jan 18 10:17:16 bobsonator: use "new String(bytes, offset, length)" to print it Jan 18 10:17:17 bobsonator: it gets called automaticaly if a function expects a string, or if you do "string"+object Jan 18 10:18:15 asfdd: I take my message and do an encryption on (myMessage.getBytes(UTF-8)), then I base64 it and send that Jan 18 10:20:32 Anyone use crittercism in here? Jan 18 10:20:42 pragma-: Ok will try it. Jan 18 10:21:25 If so, how do you identify (or "name") your bugs? It doesn't seem to assign an id to each of them. Jan 18 10:21:58 In my repo, I want to include in the commit message "fixes bug (crittercism-id)" Jan 18 10:22:40 Hmm I guess I can use the first occurred time. Jan 18 10:22:50 has there ever been an android device with GLES 1.0? Jan 18 10:23:09 bobsonator how do you print the return value? Jan 18 10:23:27 asfdd: I'm trying the new String method, I think that's going to work Jan 18 10:23:27 if you jsut do sout(byte[]) then that prints the .toString() of the object Jan 18 10:23:35 for arrays that seems to be what you are doing Jan 18 10:23:50 try sout(new String(byte[])); instead Jan 18 10:24:02 yeah it will Jan 18 10:25:20 Anyonee ever used titanum sdk? what do you think? how slow is it? Jan 18 10:26:00 I think Titanium builds native code, Gavilan2? Jan 18 10:26:58 Prototyed a simple app once and it seemed fine. Not done something like a game where I might've noticed it being "slow". Jan 18 10:27:42 progzer: I'm not talking about a game, but about a serious bussiness app... Jan 18 10:29:45 Had enough im going outside to build an android snowman Jan 18 10:29:59 O_o Jan 18 10:36:14 pragma-: A lot more faster installing with adb. Jan 18 10:36:20 asfdd, I have no clue what I'm doing wrong now, I did encryption.encrypt(message.getBytes("UTF-8"), then did new String[] { Hex.encode(ciphertext, ascii) and then sent the new string [0] over and decrypted it, and sitll an address is there Jan 18 10:36:23 thanks :) Jan 18 10:38:28 Im working with a project that is using several external libraries (that are not available via maven). What is best practice when using revision control (git in my case)? Should I put all the projects/libraries in the same folder and revision control it? Or how do I approach this? Jan 18 10:39:23 you may create a lib folder and then add it to git, Jan 18 10:39:32 lapdis: If each external lib has their own version control. I suggest put them as sub-modules Jan 18 10:39:48 so you can update them when they have updates in the tree Jan 18 10:40:19 is that a feature in git? Didn't know about that, gonna check it out. Jan 18 10:40:38 lapdis: Yes. Jan 18 10:40:57 thanks :) Jan 18 10:43:38 lapdis: It's a very nice feature to separate external code in your project. Jan 18 10:44:00 separate in git point of view* Jan 18 10:45:23 intents are cool Jan 18 10:49:44 hello guys Jan 18 10:50:12 my application cant connect to the internet Jan 18 10:50:18 although the emulator has internet Jan 18 10:50:23 i mean it works at browser Jan 18 10:50:33 and at physical device Jan 18 10:50:57 hi Parhs Jan 18 10:51:20 asfdd: why is it still printing an addr? Jan 18 10:51:23 does it have internet permission Jan 18 10:52:18 Jan 18 10:52:18 Jan 18 10:52:21 it has these two Jan 18 10:55:18 what is it doing then? crashing? just nothing? Jan 18 10:56:36 password talk... Jan 18 10:56:45 i get crash Jan 18 10:56:45 I thought rainbow tables were more advanced these days. Jan 18 10:57:01 Parhs: logcat? Jan 18 10:57:37 it doesnt say much. i puted a Log.e to see what is tha error :) Jan 18 10:58:00 well in the console it should at least say why it crashed Jan 18 10:58:01 Parhs, networkonmainthreadexception? Jan 18 10:58:05 i dont have usb cables now (i have spent 50 euros at usb cables) Jan 18 10:58:12 waiting for debuger Jan 18 10:58:53 null pointer exception it says Jan 18 10:59:04 then fix it Jan 18 10:59:06 :) Jan 18 10:59:29 the problem is that this happen only at debugger Jan 18 10:59:41 I doubt that... Jan 18 10:59:53 Parhs: debugging on a real device? Jan 18 10:59:57 or maybe the library for connection isnt compatible Jan 18 11:00:03 no real but at emulator Jan 18 11:00:18 because i have given my usb cables and waiting to get the new one Jan 18 11:01:01 I don't know if networking can be tested as well on a emulator Jan 18 11:01:22 sure it can Jan 18 11:01:37 as I faced some issues with a networking library earlier Jan 18 11:01:41 Hello! I have extended a BaseAdapter and attached it to an AutoCompleteTextView. In my onItemClickListener, what is the best way to get a reference to the AutoCompleteTextView the adapter is serving? Jan 18 11:02:58 connectivity seems a bit slow in android Jan 18 11:03:04 Parhs: at what point does it crash? Jan 18 11:03:09 on which line? Jan 18 11:03:37 belgianguy, I never had problems with networking on emulators Jan 18 11:03:48 although server responds in 7ms it takes 100ms for android. maybe tcp delay fucking algorithm.. but at ipod it was lighting fast Jan 18 11:04:06 com.turbomanage.httpclient.BasicHttpClient i use this library Jan 18 11:04:43 String s = httpResponse.getBodyAsString(); here it crashes Jan 18 11:05:03 Hi guys! Can you give me a link or boor where I can find how to share responsibilities between the classes.. how to determine what tasks should be decided by each class? Jan 18 11:05:15 *or book Jan 18 11:05:15 should check first if there is a response, and after that if it is HTTP OK (200) Jan 18 11:06:41 and is the body guaranteed to be filled? Jan 18 11:07:17 I'd say try and find the HTTP response's status first, to see if the server accepted and returned Jan 18 11:07:43 i am running the apk at mobile and works Jan 18 11:07:59 and ipod works with same server returns 100% data Jan 18 11:08:40 Parhs, doesn't mean you can't ignore network errors and other stuff like that Jan 18 11:09:07 I want to integrate accelerometer data into my NDK project, and I saw I need to use ALooper* looper = ALooper_forThread(); Jan 18 11:09:26 which then fills an eventqueue and calls upon callbacks at a certain frequency Jan 18 11:09:33 hey, I cant find an example of a camera preview that actually works. Anyone got any suggestions? Jan 18 11:10:00 this frequency probably is higher than my onDrawFrame() function, so should I put the Input handling in a seperate thread? Jan 18 11:11:16 as otherwise this input handling would end up in the draw function itself, which I don't think is good for the program flow Jan 18 11:11:54 but alas, I can't find any examples of such usage Jan 18 11:14:45 damn, whatever I am doing wrong with the camera even crashes my machine Jan 18 11:17:21 huh, the POSIX thread in the NDK don't implement read/write locks? :/ Jan 18 11:17:59 good morning/evening, i just installed the adt, eclipse, android sdk and wikitude sdk. when opening one of the sample projects of wikitude, i get the following error: Description Resource Path Location Type Jan 18 11:17:59 Project 'SimpleIRExampleActivity' is missing required library: 'libs/QCAR.jar' SimpleIRExampleActivity Build path Build Path Problem Jan 18 11:17:59 Didn't found anything on google.. the QCAR.JAR isn't included in the sample project. The wikitude guide only told me to import the sample project and it should work. any ideas to solve the problem? Jan 18 11:18:54 v1c3 add that library from the wikitude sdk Jan 18 11:19:19 probably in wikitudeSDKlocation/lib Jan 18 11:19:28 though never used that sdk Jan 18 11:22:15 i searched the whole directory for "QCAR.jar". unfortunately it don't exist Jan 18 11:22:52 +es Jan 18 11:22:58 http://www.jarfinder.com/ Jan 18 11:23:01 http://code.google.com/p/armd2011/source/browse/trunk/armd2011/libs/qcar/?r=670 <--- ? Jan 18 11:23:09 augmented reality ? Jan 18 11:23:23 thanks! Jan 18 11:23:28 StingRay_: yes Jan 18 11:23:44 Anyone who has experience with getting the view the adapter is serving? Jan 18 11:23:46 oops, jarfinder didn't find anything Jan 18 11:24:00 g00s hand that though Jan 18 11:24:02 hello guys, I'm developing a Service to get GPS fixes and process them. Right now I'm using requestLocationUpdates() to choose my mintime and mindistance parameters and I have a TimerTask which run every five minutes to get GPS data and send them to a remote server. All works fine, but I have a problem: if GPS coordinates are near a certaint point I'd like to *change* the mintime and mindistance values, but I can't do that inside a TimerTask Jan 18 11:24:04 handy* Jan 18 11:25:11 I know I can't because the Timer is using a new thread, but I can't find a way to avoid this problem, any suggestions? thanks Jan 18 11:30:29 ertl: Just because I'm curious... you want to update the criteria used in requestLocationUpdates? Jan 18 11:31:37 ok QCAR.jar problem solved! thanks! Jan 18 11:32:01 Savuud: exactly. To avoid battery draining I'm firing up GPS, obtaining a fix and then shutting it down for five minutes. I'd like to keep it always on when I'm near a certain location and then going back to the old values. Jan 18 11:32:13 now i get this error: Could not find SimpleIRExampleActivity.apk (sorry i'm new to the android corner..) Jan 18 11:34:20 Savuud: We're giving Android tablets to truck drivers to track their position on a google map, so an update every five minutes is fine. Unfortunately we need to know when they pass a certain place, but at that moment the GPS could be off, so when I'm near it I'd like to keep it ON. Jan 18 11:36:12 ertl: So the problem is that you want to activate the GPS when the GPS is off whenever the user is withing a certain area Jan 18 11:36:20 ertl: did I understand that correctly? Jan 18 11:36:37 ertl: I solved it by making a service getting the location updates, and the service cann just call requestLocationUpdates() from the update callback with time=0 Jan 18 11:36:59 and switch back to the time=5min whenever it is appropriate Jan 18 11:38:42 ertl: I'm puzzled by how you would know that the user is within a location when the GPS is off. I guess you could track the user by frequently going through all the providers and getting the last known location from each provider Jan 18 11:39:07 ertl: my two cents atleast Jan 18 11:39:12 Savuud: You can track it by it's ip addresss Jan 18 11:39:44 the google car that takes photos, also market the exact location of each wifi router available at the moment... Jan 18 11:39:44 Gavilan2: Yep, if you have an IP address.. which is not always the case Jan 18 11:40:01 and now when you connect to google with a gps, they know the new location of that router... Jan 18 11:40:12 so if you know which routers are around you, google can guess pretty well where you are at... Jan 18 11:40:35 that's still secondary to Cell triangulation, most of the time Jan 18 11:40:45 Savuud: no, wait. Every time I collect a GPS fix I'm using a distancebetween() method to check if that fix is near the place I'm interested it. If no then we can continue with the old criteria, but if we have a distance < 10km then I'd like to change them. Jan 18 11:41:12 Gavilan2: True.. but if you are in the dessert there might not be a wi-fi available. Therefore I said that one should loop through all the providers.. WI-FI, cell triangulation, GPS.. etc Jan 18 11:41:23 Ge0rG: sounds really interesting, could you show your code? thanks. Jan 18 11:41:58 ertl: So it's really just a question of updating the Criteria reference? Jan 18 11:42:19 ertl: Couldn't the Criteria object be a static reference then? Jan 18 11:42:22 Savuud: yep, but remember that I'm inside a TimerTask ... Jan 18 11:42:47 Savuud: and I'm getting an Exception because it's a new thread Jan 18 11:43:33 ertl: Ok, what about using message handlers to update the Criteria object in the other thread? Jan 18 11:44:04 ertl: Dispatch a message with the correct what(int) and then on the other side listen to this and update the static from there... Jan 18 11:44:34 ertl: I'm just an Android newbie.. but I would try that approach Jan 18 11:45:38 Savuud: it's what I was asking, possible solutions. I'm much more a newbie than everyone, so I was hitting the wall with my head ... I'll read message handlers documentation, thank you Jan 18 11:46:16 ertl: I guess you can do a broadcast as well... and not having the implement the handlers and stuff Jan 18 11:47:02 ertl: are you scared by scala? https://github.com/ge0rg/aprsdroid/blob/master/src/location/PeriodicGPS.scala Jan 18 11:47:54 my application can be sometimes started by clicking on a notification and that notification has an extra that I use to do something specific... but after doing that I don't want to do it anymore until the notification is tapped again... but if I rotate the device the application will get that same intent again with the same extra... can I remove this somehow? getIntent.removeExtra("foo"); doesn't help Jan 18 11:48:13 ertl: the code logic is as follows: request a fix every 10min, then stay on for 30s to obtain better position data, then deliver and set 10min again Jan 18 11:48:30 getIntent().removeExtra("foo") that is Jan 18 11:48:37 Ge0rG: nothing can scare you more than teaching 150 truck drivers how to use an Android tablet :) ... thanks a lot! :) Jan 18 11:49:40 ertl: my condolence... ;> Jan 18 11:56:41 dammit, I want some object in my OpenGL world to react to the accelerometer in NDK Jan 18 11:57:22 but pthreads are not fully implemented, and so far I only have the onDraw method, where the world gets drawn which gets called repeatedly Jan 18 11:58:05 and I think polling the sensors in the draw method will be awful for performance Jan 18 11:58:06 belgianguy: http://stackoverflow.com/questions/6457768/moving-an-image-using-accelerometer-of-android Jan 18 11:59:18 Savuud: thanks, but the brunt of my code is in C++, I think jumping back to Java only to pass me back those results probably would be expensive as well Jan 18 12:00:54 I was looking at this: http://stackoverflow.com/questions/8989686/access-faster-polling-accelerometer-via-nativeactivity-ndk Jan 18 12:01:09 but the while(1) worries me that this needs its own execution thread Jan 18 12:05:11 but then I read that the Bionic POSIX threads don't have read/write protections in place Jan 18 12:05:45 so I either have to link in the real pthreads, or use boost threads I guess (I'm alreay using boost for another feature) Jan 18 12:06:11 what do you mean by read/write protection Jan 18 12:06:37 Chainfire: hang on, I'll get the citation Jan 18 12:07:16 Chainfire: http://mobilepearls.com/labs/native-android-api/ Jan 18 12:07:38 and then Ctrl + F for "POSIX threads (pthreads)" Jan 18 12:09:38 they state that the Bionic implementation is a subset of the full POSIX, and that there's no pthread_cancel and no read/write locks Jan 18 12:11:42 and that makes it hard to make a seperate "input handler" thread in my eyes, as I was planning on using mutexes Jan 18 12:14:08 this is supposedly an overview of what mutexes _are_ supported: http://stackoverflow.com/questions/2282949/bionic-android-libc-mutex-variants Jan 18 12:14:25 is there any good way to directly pass a json object to my javascript which i Jan 18 12:14:36 have connted with an javascriptinterface to my webview Jan 18 12:14:36 but that's a bit outside of my realm of knowledge Jan 18 12:14:50 connected* Jan 18 12:15:26 belgianguy interesting Jan 18 12:15:35 seems like issues that would not be very hard to work around though Jan 18 12:15:49 currently i'm using the following method within my javascriptinterface http://paste.kde.org/650336/ Jan 18 12:16:10 Ok, I have a pretty simple (I think) question and I've been searching without any luck. I have an onItemClickListener registered for an AutoCompleteTextView and when this answers, how do I get the reference to the AutoCompleteTextView instance? Jan 18 12:16:21 however ... inside my js i can't retrieve the value that is associated with my "scriptPath" key Jan 18 12:17:01 Chainfire: and what would be the most effective here, linking in another library? Jan 18 12:17:25 I'm not a real fan of that Jan 18 12:17:32 I would probably just fake the functionality through custom code Jan 18 12:17:53 Savuud: You should be able to retrieve your textview from the second argument of your onItemClick method. Jan 18 12:17:58 it should be a reference to the clicked view Jan 18 12:18:26 it's just to read out the accelerometer on a different thread, which then would be readable by the other thread, which draws the GL scene Jan 18 12:19:28 MrMaffen: Yep, I get the reference to the view the user has clicked. However I want to get a reference to the AutoCompleteTextView that will be updated with the data the user has selected from the list Jan 18 12:20:04 belgianguy and you absolutely need an rwlock for that? without thinking about that in-depth, seems perfectly doable to me with normal locks Jan 18 12:21:20 does anyone else find eclipse getting buggy and slow as hell when editing android xml files? Jan 18 12:21:24 MrMaffen: Does that make sense? :) Jan 18 12:21:32 Savuud: if i understand you correctly, you should store the reference to the AutoCompleteTextView that should be updated inside your onItemClickListener Jan 18 12:21:37 Chainfire: well a regular lock would probably ensure me a critical section Jan 18 12:21:53 how else would the method know which AutoCompleteTextView it is associated with Jan 18 12:22:58 i got to run so no time to discuss right now, but I don't see the problem Jan 18 12:23:13 Chainfire: I'll figure something out :) thanks for the help Jan 18 12:24:33 MrMaffen: The thing is, that I have two AutoCompleteTextView fields and one onItemClick listener that handles both of them. I just need to understand how Android knows in the background which AutoCompleteTextField it will update when an item is clicked. Jan 18 12:29:14 rect1.contains(rect2) will this be true for partial overlaps? Jan 18 12:30:59 oh, I see, there's intersects for that Jan 18 12:40:04 I have my layout. I was wondering if I can insert a listview below the information I already have. Jan 18 12:42:21 vuln: Did you try and what happened when you tried? Jan 18 12:43:11 it closed Jan 18 12:43:24 when I clicked the button to go to the window with the listview it crashed. Jan 18 12:44:02 vuln: It would help to get the context of what you are trying to achieve. Describe the app and use a codepaste service so we can look at the code Jan 18 12:44:11 Ok. Jan 18 12:44:33 :) Jan 18 12:44:42 The activity LoggedIn has a TextEdit. When the user click Publish the content of the TextEdit will appear at another activity Jan 18 12:44:59 It happens. But I want to show it in a ListView, cause teh way it's done now it's ugly Jan 18 12:45:02 haha Jan 18 12:45:48 vuln: ok, so you want to update the text from one activity to fill the values in a ListView that recides in another activity Jan 18 12:46:19 Yes. Jan 18 12:46:21 I've never worked with ListView, though Jan 18 12:46:23 That's why I'm a bit lost. Jan 18 12:46:57 vuln: I would perhaps try to store the data in the Intent and when onCreate in the other activity, create the ListView object and attach it to the viewgroup defined in your layout XML Jan 18 12:47:03 vuln: my two cents Jan 18 12:48:42 vuln: http://developer.android.com/training/basics/firstapp/starting-activity.html Jan 18 12:49:05 I already rad it Jan 18 12:49:27 Ok, my issue here is 'creating hte livewview object and attaching it to the viewgroup defined in the layout XML" Jan 18 12:49:30 read* Jan 18 12:49:55 is there any way to debug / test different lifeCycle calls ? Like something in the emulator control I can say, "ooo this app is now "x circumstance"" ? Jan 18 12:50:09 and if not, why? would that not be good to have ? Jan 18 12:51:24 vuln pastebin your code or something, maybe some1 could help you better and suggest things to read etc if they knew what/how your doing Jan 18 12:51:59 k Jan 18 12:52:11 but there are three activities more res files =/ Jan 18 12:52:17 it will be like hell to understand and read everything Jan 18 12:52:17 vuln: I think it is just a question of finding the view you want to add the ListView object to.. and then create the ListView object by "new ListView(context)" and myView.add(listViewRef); Jan 18 12:52:33 that's it? Jan 18 12:52:45 vuln: hehe.. I think so.. Jan 18 12:53:12 well to attach data to the listView you need an adapter also Jan 18 12:53:14 :) Jan 18 12:53:43 vuln why not just pastebin the exception information then ? Jan 18 12:54:04 StingRay_: Yep, that's true.. but atleast he would have an empty ListView :) Jan 18 12:54:27 Savuud with little or no visual way to indicate such ;) Jan 18 12:54:51 StingRay_: also true... :p Jan 18 12:55:50 LinearLayout MyView = (LinearLayout) findViewById(R.id.loggedlayout); Jan 18 12:55:55 ListView lista = new ListView(this); Jan 18 12:55:59 MyView.add(lista); Jan 18 12:56:06 It says there is no .add method =/ Jan 18 12:56:16 errr Jan 18 12:56:24 vuln: addView? Jan 18 12:56:59 vuln: As StingRay_ said.. you should initialize a simple array adapter with the data you want to display Jan 18 12:57:43 I think pointing him to a listView into tutorial would be a good idea Jan 18 12:59:02 vuln : http://developerlife.com/tutorials/?p=327 <-- read and understand Jan 18 12:59:14 vuln: Check out http://www.androidhive.info/2011/10/android-listview-tutorial/ also Jan 18 12:59:17 ty Jan 18 12:59:21 :) Jan 18 12:59:42 actually reading more on the link i sent,, ignore mine Jan 18 13:02:28 Hm.. so the thing about ListView is that they can be 'clicked' Jan 18 13:02:43 I dont really need that. All I need is a fancy and organized way to display messages Jan 18 13:03:20 vuln: LinearLayout? Jan 18 13:04:26 * Savuud is away Jan 18 13:04:26 I'm searching for a good way to pass an JSONObject to my javascript function. Can anybody hint me on how i could do that? Jan 18 13:04:57 simply using a method like public JSONObject getObject(){...} doesn't seem to work Jan 18 13:05:28 of course I'm using a javaScriptInterface to expose this getObject()[...} method to my javascript function Jan 18 13:06:12 MrMaffen: Is this what you are looking for? http://stackoverflow.com/questions/10114993/how-to-pass-json-formatted-data-from-a-webview-to-a-html-page Jan 18 13:11:57 Savuud: unfortunately not :S. i've already been able to pass a json formatted string to my javascript file. but the javascript function can't work with it Jan 18 13:12:28 i instead want to pass a json object directly to my javascript function, so that i can directly with the values in it Jan 18 13:12:59 for now i have to assume that i'll need to explicitely parse the json string inside my javascript Jan 18 13:13:18 and my questions to that all is: is there any way to directly pass a valid jsonobject to my javascript function ? Jan 18 13:15:08 MrMaffen: for me that sounds like a potential security risk of that was allowed... Why can't the javascript work with the string data? Jan 18 13:15:20 s/of/if Jan 18 13:16:29 Savuud: it of course can work with the string data. but i don't want to pass string data to my javascript. i want to pass an object on which i can work. Jan 18 13:16:52 and therefore i think i'll need to parse the string data into an object first Jan 18 13:17:12 MrMaffen: to preserve memory? Can't you pass a reference to a function that holds the string data? Jan 18 13:18:23 MrMaffen: there you could also build "helper" methods that could parse the string and be more "object" like Jan 18 13:19:17 hello guys Jan 18 13:19:24 should i use async task for everything? Jan 18 13:19:33 every method a new async task ? Jan 18 13:19:33 Parhs: Yes! Jan 18 13:19:40 wow overkill Jan 18 13:19:47 Parhs: ofc not :) Jan 18 13:20:00 Parhs: hehe.. it depends... if the task would make the screen and UI laggy Jan 18 13:20:10 lol Jan 18 13:20:12 but i have some network operation and i cant run at main thread because i get exception Jan 18 13:20:30 android.os.NetworkOnMainThreadException Jan 18 13:20:34 Yep Jan 18 13:20:49 so that mean that every single network thing (about 30 calls) Jan 18 13:20:54 should be wrapped in a class? Jan 18 13:20:56 thats something you could handle with asynctask Jan 18 13:21:31 you don't want to be doing networking stuff on your main thread anyways Jan 18 13:21:32 parhs really depends on what your code does and your overall stucture, your question is like "should I buy a new car" Jan 18 13:21:54 Parhs: You can just create a small class implementing Runnable and start a new Thread with the code that does the network thing Jan 18 13:22:15 not it is if the only way to handle my case is to create AsyncTask objects Jan 18 13:22:25 class Jan 18 13:22:38 Parhs: AsyncTask is like one of several ways of solving this Jan 18 13:22:46 other way ? Jan 18 13:23:00 Parhs: You could also create a new Thread manually as I said Jan 18 13:23:23 Savuud: i want to do something like that: http://paste.kde.org/650354/ i hope that clears up my intentions Jan 18 13:24:32 through my getData() method i could then directly access the content of the scriptPath variable Jan 18 13:24:46 therefore i'm passing a JSONObject to my javascript function Jan 18 13:25:07 MrMaffen are your sure it's a JSONObject ? Jan 18 13:25:15 MrMaffen: Not sure if that is possible at all.. My first though is that we are talking about two languages and you are expecting javascript to be handle to handle a Java object out of the box Jan 18 13:25:31 s/though/thought Jan 18 13:25:33 as int {"sdas":"asda"} rather than a json array ? Jan 18 13:25:48 [{}{}{}] Jan 18 13:26:15 "{\"scriptPath\":\""+mScriptResolver.getScriptFilePath()+"\"}" is a valid JSON object Jan 18 13:26:23 fair play Jan 18 13:26:58 i've checked on http://jsonlint.com/ Jan 18 13:27:05 hi Jan 18 13:27:51 MrMaffen: Do you know for a fact that you can access java objects like this in JavaScript? Jan 18 13:28:27 Savuud: no i don't ... but i'm not sure. and i'm still hoping it's possible Jan 18 13:28:41 in qt/c++ this definitely is possible Jan 18 13:28:52 you can simply pass a QVariantMap there Jan 18 13:29:19 spend 30 minutes debugging a formula Jan 18 13:29:26 realize it's not even being used... Jan 18 13:29:28 cry Jan 18 13:29:41 mikedg: *hug* Jan 18 13:29:54 MrMaffen: ok, never heard of it.. but if it's possible then it's really cool. Just very unsure if this memory pool is even shared that much... and I'm certain it could be exploited Jan 18 13:30:36 Savuud: so in conclusion you're saying that i will need to explicitely parse the passed string Jan 18 13:31:07 MrMaffen: Well.. I have never worked with javascript running in a WebView, but that would be my guess atleast Jan 18 13:31:14 and of course the IDE didn't pick it up because the developer decided to do float blabla = 0.0; blablab = some complex formula; Jan 18 13:31:22 MrMaffen: Should be straightforward enough though... Jan 18 13:31:41 i'm sitting here going this is totally wrong in every case imaginable how could this be working, oh it's not actually getting used Jan 18 13:35:14 am i allowed to change the UI from a Runnable passed to a Handler via a post method? Jan 18 13:42:53 Savuud: thanks for helping out Jan 18 13:46:32 how to clear backstack when finishing activity (not when starting) Jan 18 13:47:59 MrMaffen: you are very welcome :) Jan 18 13:48:34 jimi_hendrix: what? Jan 18 13:49:51 Savuud, nvm. found my issue Jan 18 13:52:52 Nokia put 3D models of its covers online, for people to print them Jan 18 13:52:55 that's a nice idea Jan 18 13:53:12 (3d printing) Jan 18 13:54:10 belgianguy: I've been looking to buy a 3D printer for a long time now.. Can you suggest one? :) Jan 18 13:54:54 Savuud: oh, I'm not accustomed to 3D printing, I've followed it for a while, at the time the makerbot was the go-to printer, but since there are new candidates as well Jan 18 13:56:23 I mean the 3D cover is nice, but you'd need to be able to etch them or draw/paste vinyl on them to make them stand out Jan 18 13:56:27 belgianguy: yep, seems like there is a new 3D printer appearing on the market quite often... and often they are small budget companies and the queue to get one is just ridicoulus or they are too expensive. Jan 18 13:56:34 Would love to have one though :) Jan 18 13:57:10 Savuud: yeah, it's a market that changes very rapidly, I remember them just being able to print white, nowadays there's more options in color etc Jan 18 13:57:48 I'd like to see some options where one could colorize such covers or adorn them in other ways (vinyl/stickers) Jan 18 13:58:08 or etch out the Android logo Jan 18 13:59:02 belgianguy: that would be cool :) Jan 18 13:59:41 but the machines to do that are usually huge and have to be programmed in a very specific way Jan 18 14:00:17 CNC machines they're called IIRC Jan 18 14:04:52 Can't a 3D printer simply print (or rather, omit a few layers for) the logo? Jan 18 14:06:05 CNC is different stuff than 3D printer, but full fabricators would have CNC and printer together Jan 18 14:06:26 can I load an activity in the background (because it takes 2-3 seconds until it's there..) and then QUICKLY switch from the current to the other activity? Jan 18 14:07:25 Hello, I got a PagerViews with a ListFragment in each, those ListFragments that implements LoaderCallbacks. I use the loaderManager but when the data is updated in a asynctask how do I reload the loaders? Jan 18 14:07:30 spobat: better to fix the thing that makes it take 2-3 seconds, or if it's unfixable, start and display the activity with a loader of some sorts that disappears when it finishes loading. Jan 18 14:08:24 okay1 Jan 18 14:10:28 how to force newView to be called for each row of ListView ? Jan 18 14:12:11 squ there is a method on a listView called newView ? Jan 18 14:13:22 yes Jan 18 14:13:41 I'm seeing it like your nickname now Jan 18 14:14:03 squ link to the method you mean Jan 18 14:14:26 <-- shocked! Jan 18 14:14:34 i dont have that :) Jan 18 14:16:04 timroes, I'm switching layouts depending on a condition inside newView Jan 18 14:16:19 please link in the reference to the newView method you mean Jan 18 14:16:21 view = mInflater.inflate(R.layout.list_type_2, parent, false); Jan 18 14:16:26 My first post about something related to dev & Android: https://plus.google.com/115462329892247078112/posts/2B1fpKQWFmG http://developer.android.com/reference/android/widget/CursorAdapter.html#newView(android.content.Context,%20android.database.Cursor,%20android.view.ViewGroup) Jan 18 14:16:58 okay so on cursoradapter not on listview Jan 18 14:17:02 lol Jan 18 14:17:04 :) Jan 18 14:17:42 problem is that newView is not called when cursor is changed Jan 18 14:17:59 only in case when the new cursor has more rows than previous Jan 18 14:18:04 perhaps you want to override getView Jan 18 14:18:39 call super.getView... and modify the view as you need to modify it Jan 18 14:19:34 hm ok Jan 18 14:20:04 then I can drop newView at all? Jan 18 14:20:08 somebody know how to retrieve picture frame from specified video without mediadataretriever? Jan 18 14:20:15 leave getView + bindView Jan 18 14:20:30 squ: you could, if you want to generate the view also in getView Jan 18 14:20:43 dear god, apple created a monster when it allowed ios programmers to use blocks Jan 18 14:20:52 but you could also use newview (what you anyway must override) to generate the views, and getView just to modify them Jan 18 14:22:11 mikedg_: What do you mean? Are we talking about duplo or what Jan 18 14:22:19 lego Jan 18 14:22:23 classy Jan 18 14:22:50 how to use class from api 10 in api level 8 ? Jan 18 14:22:58 pacior: reflection, factory patterns Jan 18 14:22:59 http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Blocks/Articles/bxGettingStarted.html#//apple_ref/doc/uid/TP40007502-CH7-SW1 Jan 18 14:23:16 timroes, another approach is to switch adapters on ListView Jan 18 14:23:18 pacior: you can't? Jan 18 14:23:40 squ: do you just want to change the representation (view) of the data? Jan 18 14:23:44 or is there somethign else that changes? Jan 18 14:23:44 yesterday I was thinking what to do better switch adapters or inflate different layouts.. Jan 18 14:23:56 pacior: see http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html as one method Jan 18 14:24:06 pacior: personally, I prefer to use the factory pattern. Jan 18 14:24:14 timroes: please don't spread false information. Jan 18 14:24:22 lov: he was asking the other way around :) Jan 18 14:24:33 I have two data types and want them displayed in one listview with different layouts Jan 18 14:24:55 or i misunderstoof it, but it reads like he want to use api 10 methods on an api level 8 device Jan 18 14:24:57 user clicks left/right, data is switched, listview updates Jan 18 14:24:58 how can reflection help me taking frames from video loaded by fileiinput stream? Jan 18 14:25:13 well, ok Jan 18 14:25:14 let me rephrase Jan 18 14:25:24 you can't use higher level API functions on a lower API level device Jan 18 14:25:24 it is a pattern, hence i need to process encoded video Jan 18 14:25:47 what you CAN do, however, is use strategies like reflection or factory to make your app backwards compatible and safe to run on that lower API level device Jan 18 14:25:53 I have two data types and want them displayed in one listview with different layouts - maybe you need headered list view Jan 18 14:25:57 i wish i could do this, since i read about compatibility library v4 and v13 Jan 18 14:26:19 which have to items - header and item Jan 18 14:26:21 squ: in that case I guess you could also create a new adapter, though if you just want to change visual representation of data, I would consider it bad style to change the whole dapter Jan 18 14:26:41 lov: yeah but you go one step further - i need to do the operation on api level 8, since it's many of devices Jan 18 14:26:48 Lol... Since I am such a newbie and I cannot get a reference in onClickListener method bound to TextView. I have ended up with creating a separate Listener object for each textView. Jan 18 14:26:56 pacior: you can't. Jan 18 14:27:01 ok Jan 18 14:27:05 * Savuud hates being a noob in a language Jan 18 14:27:08 strange, sounds like my fisrst answer ;P Jan 18 14:27:22 pacior: you could look into the android sources, and see if you can copy the code over Jan 18 14:27:40 but be prapares, you would need a lot of tweeking to get it working, since also the surounding api changed Jan 18 14:27:40 pacior: you could port the code from a higher api level if that's possible, but if it depends on native implementations or codecs or whatever then you're pretty much stuck. Jan 18 14:27:42 i tried to use ndk Jan 18 14:27:50 to install ffmpeg Jan 18 14:27:53 timroes, is it easier when switching adapters? Jan 18 14:28:01 but the debugger suxx Jan 18 14:28:05 you sux. Jan 18 14:28:15 me too Jan 18 14:28:17 :D Jan 18 14:28:27 sorry Jan 18 14:28:31 switching adapter will be easier, but create more code, and depending on your use case, bad coding style Jan 18 14:29:09 how to capture bitmap from video without mediaDataRetriever class? Jan 18 14:29:23 in froyo? Jan 18 14:29:53 * lov shrugs Jan 18 14:30:06 You'll need to have a decoder library to handle this, sorry. Jan 18 14:30:14 what was that link with android api code browser? Jan 18 14:30:27 uh Jan 18 14:30:29 d.android.com ? Jan 18 14:30:38 * lov points at the topic Jan 18 14:30:48 I wan source code of getView Jan 18 14:30:50 click "reference" under "develop" Jan 18 14:30:51 oh Jan 18 14:31:02 I'm not sure if that's still online, sorry Jan 18 14:31:13 there was a condition to call bindView/newView depending on something Jan 18 14:31:13 you could try searching for View.java and see what comes up Jan 18 14:31:24 alternately, get the source yourself from source.android.com Jan 18 14:31:53 lov, thanks Jan 18 14:31:58 for words :) Jan 18 14:32:43 I have many words Jan 18 14:32:52 squ: source code is on github Jan 18 14:33:00 what is the link? Jan 18 14:33:12 github.com Jan 18 14:33:17 https://github.com/android?tab=repositories Jan 18 14:33:48 Hierarchy viewer will work fine on rooted device or i need special engineering rom? Jan 18 14:34:32 squ: for the lazy ppl: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/CursorAdapter.java#L237 Jan 18 14:34:46 oh thank you :) Jan 18 14:35:32 seems like I have to modify 245 line if Jan 18 14:35:34 jni sais that wrong field id warning is, when passing string to native method. Jan 18 14:35:53 string is utf-8 encoded Jan 18 14:36:17 like `if (my data needs to be position in different layout) ` call newView for each new row, if previously used layout was different :) Jan 18 14:39:45 09:33:23 < timroes> https://github.com/android?tab=repositories Jan 18 14:39:47 no kidding! Jan 18 14:41:21 * lov presses his luck Jan 18 14:41:25 lov: ? Jan 18 14:41:39 don't confuse me so early in the morning Jan 18 14:41:43 is it okay to dismiss the actionbar on screens I have no options for Jan 18 14:41:46 timroes: I didn't realize that github was mirroring AOSP again Jan 18 14:41:56 that is monstrously useful! Jan 18 14:42:04 How can i define that there's no Launcher activity and instead of this just an Service (which starts the Activity)? Jan 18 14:42:04 ..and activities that look without waaay better :P Jan 18 14:42:18 i think so, (too, if you didn't meant it sarcastically) Jan 18 14:42:45 misterli: just remove the intent filter for the MAIN action in your activity, and it won't show in the launcher Jan 18 14:42:50 easy to show code fragments of to ppl, though I prefere surfing in my local repo, thanks to `godir` command and such :) Jan 18 14:42:55 (mind you, this may not be a good idea if you plan to distribute the app on market) Jan 18 14:45:02 any idea why my nexus 7 fails to install a apk at a 2nd run from eclipse? Jan 18 14:45:28 without more information, no? Jan 18 14:45:31 It's an Anti-Thieft Service which gets activated by sending a SMS. The only Activity is the Settings-Activity which gets activated in DEBUG and/or by receving a SMS.. Market does not allow Apps which have no Activity on Startup? Jan 18 14:45:37 i get a Installation error: INSTALL_FAILED_VERSION_DOWNGRADE Jan 18 14:45:49 i use the same debugkey Jan 18 14:45:51 same machine Jan 18 14:45:59 misterli: newer android devices require the user to start an activity before services, etc will run Jan 18 14:46:02 this works on any other 4.0 device, the emulator and a virtualbox Jan 18 14:46:03 iirc Jan 18 14:46:12 monsti: sounds like you changed the versionCode to be lower? Jan 18 14:46:18 try upping your versionCode Jan 18 14:46:23 i changed a layout in an xml Jan 18 14:46:24 alternately, uninstall and reinstall Jan 18 14:46:27 douch? Jan 18 14:46:33 my x86 4.1 emulator keeps restarting. anyone see this before? Jan 18 14:46:34 ? Jan 18 14:46:42 why did they do this in 4.2.1? Jan 18 14:46:43 you may not downgrade apps any more? Jan 18 14:46:46 Hmmm. Okay.. So it's required to start an activity (after the broadcastreceiver received an event) and the Activity starts the Service? Jan 18 14:46:46 funkbox: I think it MIGHT be a known issue Jan 18 14:46:51 monsti: I don't think "they" did. Jan 18 14:46:53 what are they smoking?! Jan 18 14:46:58 misterli, you can have service only packages in the market Jan 18 14:46:59 monsti: I think you changed the version code and made a mistake Jan 18 14:47:08 Okay Jan 18 14:47:12 lov: again - i do the same as on 4 other devices Jan 18 14:47:22 * lov shrugs Jan 18 14:47:23 lov: just edit an xml layout - recompile Jan 18 14:47:47 lov: in other words - i don't have to uninstall on my S3, on my archos, on my avd and on my x86 Jan 18 14:48:03 lov: sorry i don't understand why this is neccessary on a nexus 7 Jan 18 14:48:27 monsti: I'm trying to gently tell you that it's probably not specific to the nexus 7 and that you may have inadvertantely made a mistake in your codebase. Jan 18 14:48:30 But lets check! Jan 18 14:48:36 Another Question: My GF lost her HTC Sensation. Is there any way to block the Phone over Google(Accounting) or somehow? It's only neccessary that the Thief/Finder has no access to the SD-Card Jan 18 14:48:42 adb shell dumpsys package > out.txt Jan 18 14:48:45 look for your package Jan 18 14:48:48 search for the versionCode there Jan 18 14:48:56 double check what version it is in relation to the versionCode in eclipse Jan 18 14:49:25 misterli: I don't think that it is, sorry. Your GF should at a minimum change her google password, but there's nothing that can be done about the storage Jan 18 14:49:33 misterli: don't forget that the thief can just pull the SD card physically Jan 18 14:49:58 Yeah. It's time for newer Android-Versions to encrypt the MicroSD... Jan 18 14:50:18 misterli: if she's using an older version of Android, you might be able to install something like Lookout and then remotely activate it, but that's about it. Jan 18 14:50:59 I've Cerberus installed which has a GPS-Following-Option. But the Thief/Finder powerd off the Phone. It seems that he changed the SIm-Card .. Jan 18 14:51:11 oh Jan 18 14:51:32 lov: i did this and there is a "Can't find service for foo.bar.package" Jan 18 14:51:53 monsti: where? That's also not what you're looking for Jan 18 14:52:07 search for the first instance of "versionCode" then search for "foo.bar.package" Jan 18 14:52:37 lov: thats the error - http://code.google.com/p/android/issues/detail?id=41019 Jan 18 14:53:01 Huh! Jan 18 14:53:09 Looks like you were right, it is in fact your nexus 7 Jan 18 14:53:13 sorry for doubting you Jan 18 14:53:15 If I am creating components programmatically, and want to set a style on them, do I do like this then?: http://stackoverflow.com/questions/14198460/problems-putting-a-black-cursor-in-my-autocompletetextview-as-many-others Jan 18 14:53:53 lov: "It seems that it is not allowed to put any reference into the versionCode, versionName attributes." :) i hate them! Jan 18 14:54:06 lov: i love my app_info_values.xml Jan 18 14:54:10 Yeah, there's a bunch of stupid piddly bugs like that which crop up Jan 18 14:54:18 google forces me to get rid of it :( Jan 18 14:54:20 whooooops, not gonna let you reference an xml resource for your app bitmap Jan 18 14:54:27 * lov shrugs Jan 18 14:54:35 to be fair, versionCode and versionName are things that you want to inline Jan 18 14:54:35 I got a tumbleweed badge for that stackoverflow posting, not bad :) Jan 18 14:54:37 lov: i have a reference for the versionCode Jan 18 14:54:45 yeah Jan 18 14:54:49 and it sounds like this is your problem :) Jan 18 14:55:12 lov: yeah it's my problem - but google changed this silently in 4.2.1 Jan 18 14:55:29 ok, well, we're in agreement then. Jan 18 14:58:47 android has no bugs dude Jan 18 15:02:18 hi, I'm not 100% sure I'm right here, but I'm looking for a possibility to run javah on my android project from eclipse, it works fine but I have a small problem with my classpath variable. Jan 18 15:02:35 my current line is-classpath "${project_classpath}:/home/alex/android-sdks/platforms/android-11/android.jar" Jan 18 15:02:56 the problem is the hardcoded part Jan 18 15:03:36 Im not sure with the android.jar isn't added to the project_classpath Jan 18 15:04:11 is there a variable that I can use to define the jar file that is used in the project. Jan 18 15:04:46 so that I dont have to change my run command if I just change the android version from 11 to 17 or something Jan 18 15:05:48 well, where are you actually calling this from? Jan 18 15:06:00 are you just doing this from the command line manually? Is it part of a script somewhere? Jan 18 15:06:27 Honestly, you should have a $JAVA_HOME variable somewhere, and you should be able to reference the project target based off of that Jan 18 15:06:30 e.g. Jan 18 15:06:57 "${project_classpath}:{$ANDROID_HOME}/platforms/{$ANDROID_PLATFORM}/android.jar" Jan 18 15:07:04 s/JAVA_HOME/ANDROID_HOME Jan 18 15:08:53 nyloc, you had me going for a minute that our bot named nolyc had gone rogue Jan 18 15:09:34 Zharf: Yeah I noticed that my nick on IRC is a little... Off Jan 18 15:09:41 Zharf: rampancy is a serious problem with IRC, I've heard. Jan 18 15:09:53 but I really have this for a long time Jan 18 15:10:05 bots usually just start talking about dicks and making bad jokes though Jan 18 15:10:14 look at mikedg Jan 18 15:10:48 the dg stands for device governor, but now he calls it dick generator Jan 18 15:10:53 Zharf: But no idea with my problem? Jan 18 15:11:09 nyloc: did you see the 6 lines I answered you with? Jan 18 15:11:11 didn't read... yet anyway Jan 18 15:11:18 oh missed sorry Jan 18 15:11:28 >_< there was no other conversation in the channel Jan 18 15:11:37 so many irc chats i miss almost everything that is not highlighted Jan 18 15:12:11 yeah but im chatting parallel in 4 windows Jan 18 15:12:19 I don't, I'm far too obsessed with irc Jan 18 15:12:48 I have around 80 windows open in my irssi... Jan 18 15:12:48 My activities onPostResume is called even if just the orientiation is changed. How can I detect if the user navigated from another activity other than just orientation changed? Jan 18 15:13:02 memoryleak: you can't and shouldn't. Jan 18 15:13:38 you can disable activity recreation on orientation change but you most often shouldn't have to Jan 18 15:15:42 If you need to detect the origin, startActivityForResult might make sense. Jan 18 15:16:03 lov: I calling it from eclipse (External Tools) and I have a SDK root variable Jan 18 15:16:23 As for orientation changes, my pragmatic approach is to disable activity recreation unless I know I need it (e.g. I have different layouts for landscape and portrait). Jan 18 15:17:22 Which is actually more work (okay, it's only 1 line), since you need to save your state anyway Jan 18 15:17:28 I tend to advocate the opposite Jan 18 15:17:47 lov, Zharf: To be more specific: When the login screen is shown the user is getting notified that his saved credentials are being verified (onCreate) Jan 18 15:17:48 Why do I need to save my state if it is still there after the orientation change? Jan 18 15:18:09 Because orientation change isn't the only thing that can destroy your activity Jan 18 15:18:35 that particular code was in onPostResume before, so every orientiation change was triggering a new authentication verification request Jan 18 15:18:51 orientation change is a good way to test it though Jan 18 15:19:00 lov: eclipse keeps complaining about undefined Variable any idea how to use an evironment var in eclipse maybe some special syntax, (googling at the moment) Jan 18 15:19:03 Not if you disable it Jan 18 15:19:17 SimonVT, right Jan 18 15:19:19 The system might need the memory for another app Jan 18 15:19:40 You should restore your activities as they were after that happens Jan 18 15:21:50 If that happens, the app is likely not in focus anymore, in which case it often doesn't necessarily make sense to continue at the point where the user left. Jan 18 15:22:14 If it does, though, then yes, restore state. Jan 18 15:22:19 Of course it does Jan 18 15:22:24 well i put the "currentUser" in a static valiable Jan 18 15:22:29 You don't know how long the user has been away from your app Jan 18 15:22:34 I think often it does, just rarely it doesn't :) Jan 18 15:22:43 And iirc, the system will automatically throw away your state if they leave it for too long Jan 18 15:22:49 which makes more sense then persisting it to a database or thru bundles Jan 18 15:23:05 SimonVT, this is what I've observed Jan 18 15:23:33 any idea about that? Jan 18 15:23:33 http://ideone.com/QiP4zh Jan 18 15:23:37 monsti: If the system needs your memory, your static variable is gone Jan 18 15:23:40 how do I restart a loader from say a asynctask? Jan 18 15:23:41 The exception source seems to be a plain android one. Jan 18 15:23:48 there is no location given that is related to my code, that wonders me :D Jan 18 15:23:52 nyloc: not sure offhand. That said, you could always just define a new variable for eclipse. Jan 18 15:23:54 lov: Ok I got to ${env_var:SDKSROOT} for the sdk root, nut the ANDROID_PLATFROM Variable is still not defined by Jan 18 15:24:02 ok, there you go then Jan 18 15:24:11 that's probably better anyway, since it'll be in sync with where eclipse is looking for the sdk Jan 18 15:24:11 this makes me having reason to believe its an android-"bug"? - but i'm not sure Jan 18 15:24:16 SimonVT: if the application is gone, the application is gone Jan 18 15:24:27 -.- Jan 18 15:24:30 lov: but If I define a new one then I have to rembemer to always change it if I edit the project configuration Jan 18 15:24:33 SimonVT: then it's ok to do a relogin Jan 18 15:24:53 spobat: not really. It looks like you called setImageView on one of your imageviews with a recycled bitmap Jan 18 15:25:03 You do not know how long the user has been away from your app Jan 18 15:25:05 spobat: (which imageview? which bitmap? who knows!) Jan 18 15:25:14 lov, yeah, that's the problem :o Jan 18 15:25:22 The expected behavior is that the state is restored Jan 18 15:25:33 The correct behavior is that the state is restored Jan 18 15:25:38 the app contains over 20 imageviews o_o Jan 18 15:25:48 so? Jan 18 15:25:50 and each is unique (non-array-style) Jan 18 15:25:57 I can't say which one it is. Jan 18 15:26:02 architect your shit better then ^_^ Jan 18 15:26:09 there are absolutely no hints to it. Jan 18 15:26:15 I want to launch my app even if I press F11 when having an xml file in the current editor, is that possible to do? Jan 18 15:26:23 the problem isn't your imageviews per se, it's your Bitmap resource management Jan 18 15:26:28 (I triggered it with "monkey" Jan 18 15:26:32 the resource management that you yourself are doing Jan 18 15:26:37 - thus I don't know the exact steps to cause it) Jan 18 15:26:39 lol :) Jan 18 15:26:46 anli: no, welcome to one of the most annoying bugs in the ADT Jan 18 15:26:54 :) Jan 18 15:26:58 "run? of course, you mean process this xml file into an error!" Jan 18 15:27:12 lov: i stoped complaining about android bitmaps ;) when using a camera app and dealing with bitmaps it's simply not possible to do it "right" Jan 18 15:27:14 (at least, I don't know of any way to do this, and I'd seriously love to know) Jan 18 15:27:20 monsti: sure it is. Jan 18 15:27:22 use idea and you can! Jan 18 15:27:24 Must try, lets see Jan 18 15:27:28 had that bug too :p Jan 18 15:27:32 monsti: you just need to actually think through your systems. Jan 18 15:27:39 lov: my supid samsung s3 cam rotetes images 90 degrees Jan 18 15:27:44 so? Jan 18 15:27:59 you've got the width/height for the bitmap Jan 18 15:28:01 lov: i can't handle a 8mbit pixel image "right" Jan 18 15:28:12 monsti: right, so you resize it immediately. Jan 18 15:28:24 lov: that's what the user doesn't want Jan 18 15:28:34 for viewing... Jan 18 15:28:35 monsti: then you save it to file, then resize it to work with. Jan 18 15:28:40 * lov shrugs Jan 18 15:28:43 lov: thats what i do Jan 18 15:28:44 would be great to know what "in windows" is and how an xml window is different from a window Jan 18 15:37:12 lov: I tried to change the "when" parameter to something else than "in windows", for instance to "editing xml source". However, that did not seem to match my xml source editing Jan 18 15:37:35 Whatever xml source is Jan 18 15:43:41 I have a few questions about long run data tasks, like remote sql sync etc.... As it stands I'm not doing this via a service, but would think that is the way to actually do it ? Jan 18 15:44:40 Yeah, you should strongly consider a Service. Jan 18 15:44:42 lov: Have you tried Eclipse -> Window -> Preferences -> Run/Debug -> Launching -> Launch Operation -> Always Launch the previously launched application ? Jan 18 15:45:11 seems like eclipse does not handle xml files very well Jan 18 15:45:46 anli: I've just trained myself to always use the run dropdown. This actually works out since I'm usually working in a library project. Jan 18 15:46:11 ah, ok Jan 18 15:46:15 libgdx? Jan 18 15:46:25 no, library project that we create/implement Jan 18 15:46:30 ok Jan 18 15:46:33 we've got a common codebase that we have different targets for Jan 18 15:47:30 Is it possible to create some soft links in the file system then? Jan 18 15:48:06 So you will never need those lib projects Jan 18 15:48:21 Or you can of course just add a class path Jan 18 15:48:38 I'm so leet I shit 0-day hacks :P Jan 18 15:48:46 :) Jan 18 15:48:48 anli: yes you can but there are some limits to that, too Jan 18 15:48:54 ok Jan 18 15:52:28 if you use Handler postDelayed and the app goes into the background, will it be processed in the background ? Jan 18 15:52:33 seems no Jan 18 16:01:04 how do i request my adapter to update one item in gridview? Jan 18 16:02:46 when i click an gridview item i want the item to offer an alternate view of itself Jan 18 16:10:30 I tried to set the cursor of an autocompletetextbox to a black cursor using http://pastebin.com/7yVCgBup, but what I got was an autocomplete textbox that does not respond on press, now, do I have to add some default style to the style? Jan 18 16:10:43 Like one that autocompletetextboxes normally have? Jan 18 16:11:08 nvm i only needed to call notifydatasetchange Jan 18 16:11:39 Oh, I mean autocompletetextview of course Jan 18 16:14:10 is there any support in android for making a gridview item do a 3D flip animation to turn it around? Jan 18 16:23:03 If I have a style with some :s, when will those be applied? Jan 18 16:25:13 hi Jan 18 16:25:45 SimonVT are you around ? I'm having more ABS issues ;( Jan 18 16:26:16 have the action buttons ever frozen on you ? Jan 18 16:32:03 has anyone have ABS trouble? it looks like it resumes on me.... Jan 18 16:37:01 is there any beautiful way to allow strings in a switch()? ive tons of commands to be parsed and they are all strings.. Jan 18 16:37:22 I dont want to define Strings to INT and translate them in the switch and i want to avoid huge if clauses Jan 18 16:37:52 When I try to style a AutoCompleteTextView by creating it programmatically, passing a style as 3rd argument to constructor of AutoCompleteTextView, I actually get an unresponsive component as result Jan 18 16:39:28 I'm trying to understand how to to implement a handler in my code, i have an activity and a thread, i would like them to communicate back and forth, right now I've designed it like this Jan 18 16:39:32 http://pastebin.com/5QTC5rAS Jan 18 16:39:55 This seems like the wrong way to go about things though, for one, it's not very scalable Jan 18 16:42:33 what are you trying to do? Jan 18 16:42:56 misterli, if else if else if else if.... Jan 18 16:43:08 or use the string's hashcode Jan 18 16:43:30 or what are the commands? enums work nicely for this kind of thing Jan 18 17:02:34 can I get the files dir of another package somehow? Jan 18 17:04:37 I have an existing android project source, when I import it into eclipse, it shows up named as one of the activities. Can I make it use some other string, like package name or app name label? Or is there some other value I can change in the androidmanifest? Jan 18 17:04:50 Zharf, i think you need root to do that Jan 18 17:05:23 I only really just want to know the name of it :E Jan 18 17:07:45 has anyone have ActionBarSherlock or any actionbar freeze ? its buttons just stop reacting! Jan 18 17:08:00 nope Jan 18 17:16:16 brx_, getPackageManager().getApplicationInfo("com.example", 0).dataDir; was what I wanted ;) Jan 18 17:17:52 anyone able to answer a few questions on services/a service ? I seem to not quite grasp something Jan 18 17:21:35 what would a memory mapped file into an sdcard external storage perform like as an http cache Jan 18 17:21:45 writes to the sdcard can be very slow Jan 18 17:29:09 so, any ideas how to make eclipse not name an imported project after the main activity? Jan 18 17:32:37 yeah, looks like there is nothing I can do :/ Jan 18 17:32:43 well, other than renaming it after the fact Jan 18 17:39:43 gkatsev: Refactor the Projectname? Jan 18 17:40:34 in what android version did dalvik gain the ability to ignore code wrapped around checks like (if OSversion > honeycomb) doXYZ; else doABC? Jan 18 17:40:53 isn't that a compiler optimization? Jan 18 17:40:56 AlCapwn: api level 8 Jan 18 17:41:06 2.0 iirc Jan 18 17:41:27 SimonVT: I think it is 2.2. It was my reason for dropping 2.1 support. Jan 18 17:41:33 No, it wasn't Jan 18 17:41:38 It was 2.0 or 2.1 Jan 18 17:42:05 My money is on 2.0 Jan 18 17:42:42 lets see if the dalvikvm README has anything about it Jan 18 17:43:09 2.0 is pointless tho, and so is earlier platforms tbh, so 2.1+ you're good Jan 18 17:43:16 Hrm, is there an easier way to have SQLite's "LIKE" functionality? i.e, i have key=value pairs, but i want to find the closest match in this case... ? Jan 18 17:43:29 hmm..nothing in readme Jan 18 17:43:45 ok, I'll do some checks with the emulator Jan 18 17:45:46 http://stackoverflow.com/questions/7265459/android-dalvik-verification-in-eclair Jan 18 17:46:47 yeah novie / SimonVT, 2.1 allowed it Jan 18 17:46:58 2.0 and 2.0.1 are considered obsolete/deprecated Jan 18 17:47:05 so effectively 2.1 is the enxt step after 1.6 Jan 18 17:47:14 canadiancow: sounds like it was in 2.0 Jan 18 17:47:19 but yea, not that it matters. Jan 18 17:48:01 if (Build.VERSION.SDK_INT > 13) initApi14(); Jan 18 17:48:21 canadiancow: i put all of my api 14 code into that function, would that be enough to make it safe? Jan 18 17:49:12 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) Jan 18 17:49:14 but yes Jan 18 17:49:56 the only other major problem i have, CookieManager doesnt exist in api 8 Jan 18 17:50:06 SimonVT ++ Jan 18 17:50:14 so i loose all cookie support if i try to drop my min version one step Jan 18 17:50:21 So don't use it on earlier platforms.. Or just don't support earlier platforms Jan 18 17:50:40 http://pastebin.com/9xzx8Ewe i get html request invalid index 0, size is 0. Any idea? i have a hasmap which is submitted to the constructor Jan 18 17:50:51 SimonVT: tests i did with a custom CookieHandler refused to work at all Jan 18 17:51:08 and other checks ive done (scanning access.log) reveal that about half my potential users run api level 8 Jan 18 17:55:55 you can do all your own cookie stuff Jan 18 17:56:03 i wrote an app that works on 2.2 and does cookie stuff Jan 18 17:56:17 canadiancow: ive tried that, i dont remember why right now, but it refused to work Jan 18 17:56:27 http://developer.android.com/reference/org/apache/http/client/CookieStore.html Jan 18 17:56:30 api level 1 Jan 18 17:57:05 i had also tried just grabbing the source for CookieManager and stuffing it into my project, but that didnt work out either Jan 18 17:58:54 has anyone added support for Galaxy Note's multiwindow feature? What would be a good default & min height & width setting? Jan 18 17:59:26 I copied 632x589 dip from Mocado's story post, but am not sure how that translates Jan 18 18:13:55 heh, the apiref says NativeActivity is api 9, and all the examples use 8 Jan 18 18:26:08 you know Firefox is having a bad day when Eclipse loads the View class javadoc inside its own browser quicker than Firefox Jan 18 18:30:09 Anyone know where I can get a royalty free sound for "Scanned in" or "Scanned Out" Jan 18 18:30:39 or an angry person saying "You're late, your pay is docked." Jan 18 18:30:46 hello, does anyone know a good reason why my data connectivity doesn't work under gingerbread? Jan 18 18:32:06 make your own sounds! Jan 18 18:32:30 oh I dont want that kind of karma Jan 18 18:47:05 Is there a (free) way to confirm a telephone number? Jan 18 18:47:50 or rather confirm that the user actually owns it... and by owns I simple mean knows the pin and is able to receive texts and calls Jan 18 18:47:51 i have a long listview and andriod is showing a scrollbar that can be dragged around to quickly to jump to items, lik ein the contacts app. i don't want this. what setting that i need to set ? Jan 18 18:48:48 What is the most failsafe way of converting a byte[] -> string then string -> base64? I'm currently doing byte[]->Base64.Encode(Arrays.toString(byte[]).getBytes(UTF8)), but upon undoing base64, I get a much larger original byte[]. Can someone show me the light? Thanks Jan 18 18:52:52 I'm basically asking for a fool-proof way of base64 encoding and decoding a byte[] Jan 18 18:53:16 im timing out? Jan 18 19:16:09 bobsonator, why are you going byte[]->string->b64? Jan 18 19:16:13 why not byte[]->b64 Jan 18 19:16:22 and obviously base 64 is going to be bigger than your original byte array Jan 18 19:16:49 you switching from a 256 bit encoding to a 64 bit encoding Jan 18 19:18:38 Hey there every one ... is linux a good choice for application development Jan 18 19:21:17 I'm dropping about 55% of my rx packets on my wifi. Jan 18 19:21:27 Has anyone else seen this on Android devices? Jan 18 19:21:37 Jonathan_Eyre: with screen on or off? Jan 18 19:21:49 Jonathan_Eyre: maybe your AP has a broken power-saving implementation? Jan 18 19:21:50 cobra-the-joker: yes, that is why developers are most of the linux users :) Jan 18 19:21:56 I drop about 105,000 packets for every successful 100,000 packets recived. Jan 18 19:22:14 RubyPanther: very nice Jan 18 19:22:18 Ge0rG: The screen is on... Jan 18 19:22:28 as far as android, everything is available on linux including the IDE that comes with the dev kit Jan 18 19:22:41 i almost want to go around and give everyone a new phone instead of making this app work on their shitty old phones Jan 18 19:27:11 is there a battery-conserving way to detect if the phone has been moved by the user? Jan 18 19:27:29 moved how far? Jan 18 19:27:36 and with what latency Jan 18 19:27:44 Ge0rG: A kensington lock? Jan 18 19:28:27 Jonathan_Eyre: that could ensure that the phone is _not_ moved... which is the opposite of my goal ;) Jan 18 19:28:40 :) Jan 18 19:28:41 SpeedEvil: the fact alone is sufficient, latency in the order of 30s Jan 18 19:29:07 are we talking meters or 100s of them? Jan 18 19:29:09 :) Jan 18 19:29:28 * Ge0rG 's got two application scenarios: a) a jabber client changing the presence status from/to away when phone is (not) moved Jan 18 19:29:41 and b) a geolocation app that turns gps off when no movement takes place Jan 18 19:30:18 I don't think you can actually turn off (or on) the gps Jan 18 19:30:25 poll the accelerometer /gyro once every 10s or so. Jan 18 19:30:36 yeah that Jan 18 19:30:48 Zharf: I can at least stop requesting location updates Jan 18 19:30:57 Ge0rG, sure that you can do Jan 18 19:30:58 also, face down = away Jan 18 19:31:06 getActionBar().setDisplayHomeAsUpEnabled(true); <--- why is this put in default in every onCreate method? it throws npe if i forget to comment it out and my layout seems to work fine without it Jan 18 19:31:28 SpeedEvil: the accelerometer/gyro API is very low-level... is there some higher-level lib just to detect movement? Jan 18 19:31:42 also, how much energy does polling every 10s eat? Jan 18 19:32:17 Ge0rG: Turn GPS on and poll location every ten minutes. If position has changed, leave GPS on. If posiiton stay the same for five minutes, turn GPS off. Jan 18 19:32:28 I don't know the android answer to that Jan 18 19:32:29 AKA, the service killer. Jan 18 19:32:53 I know the n900 answer is equal to several days battery life. Jan 18 19:33:22 there is no simple way to know movement in general Jan 18 19:33:44 polling wouldn't let the cpu sleep Jan 18 19:33:57 'every 10 seconds' Jan 18 19:34:07 same difference still Jan 18 19:34:15 it's very much not Jan 18 19:34:33 my n900 has wakes about every 4s Jan 18 19:34:42 Jonathan_Eyre: thats too much lag Jan 18 19:34:46 it gets ~6 day standby Jan 18 19:35:04 Jonathan_Eyre: I want to turn GPS on in a matter of 30s Jan 18 19:35:50 GPS will often not produce a position for 30s after it's turned on Jan 18 19:36:04 it'll take a few minutes Jan 18 19:36:08 maybe less Jan 18 19:37:02 I would go with the gyro route, but I would really like to know how much battery it kills on android Jan 18 19:37:08 * Zharf thinks the general idea here is bad, but whatever ;) Jan 18 19:37:19 my phone has a really bad battery life already Jan 18 19:37:28 way less than a day Jan 18 19:37:30 The real solution to this is to make GPS not take battery. Jan 18 19:37:35 fresh out of the box too! Jan 18 19:37:42 gyro is irrelevant Jan 18 19:37:45 Not to randomly turn it off, sometimes. Jan 18 19:38:11 the important bit is how much the CPU uses when waking, and how fast it can sleep again Jan 18 19:38:21 That "sometimes" word is the plague to every IT support center in the world. Jan 18 19:38:53 the really annoying part? Jan 18 19:39:18 most gyrp/magnetometrr/accel chips support interrupt on changed position Jan 18 19:39:22 stupid play, update faster Jan 18 19:39:27 which android doesn't support Jan 18 19:39:46 and would need almost no power Jan 18 19:40:07 Jonathan_Eyre: I'm with you here... but my users demand lower battery drain Jan 18 19:44:24 I'm currently trying to work with javascript scripts in my WebView. I have created a simple html file and within i've included my javascript files within