**** BEGIN LOGGING AT Thu Feb 28 02:59:58 2013 Feb 28 04:50:22 ohh, neat. Feb 28 04:50:47 never knew about column before. this is handy. Feb 28 04:50:59 apparently this is a bsd main stay? Feb 28 05:20:55 Who's awake?? Feb 28 05:21:06 * Bleeptech has hit a wall.. Feb 28 05:21:32 nobody sleeptech Feb 28 05:22:27 Well since you answered you can probably do this in your sleep.. Right? Feb 28 05:23:09 Zzzzzzzzzzzzz Feb 28 05:23:26 Morning! :D Feb 28 05:26:13 Evening here.. Late afternoon by my time scale. :) Feb 28 05:31:40 Anybody want to scan a line of code for obvious errors? Feb 28 05:32:51 dos.writeBytes("Content-Disposition: form-data; name="uploadedfile";filename="" + exsistingFileName +""" + lineEnd); Feb 28 05:34:09 ??? Feb 28 05:34:33 So here I am trying to decide whether to delete a " or add another one.. LOL.. Feb 28 05:36:35 use \" to encapsulate a quote in a quoted string. Feb 28 05:36:59 name=\"uploadedfile\" . If i understand your question. Feb 28 05:40:40 dragorn: The code I'm working from is http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/ Feb 28 05:50:38 is it possible to have sql function? Feb 28 05:58:24 what? Feb 28 05:59:56 That is like asking, "can I put a spare tire in my vehicle?" Feb 28 06:01:13 no Feb 28 06:01:23 it's like asking "is it possible to have a spare tire?" Feb 28 06:02:03 no, its perfectly reasonable. sqlite is lame this way, H2 allows this Feb 28 06:02:04 no, it is like " is it ok if i buy a spare tire Feb 28 06:02:33 many databases allow user defined functions in sql or another language like java (informix, db2) Feb 28 06:02:40 is that what he was askign? Feb 28 06:02:58 i guess we'll have to ask :) Feb 28 06:03:03 thats what i thought ... Feb 28 06:03:43 http://stackoverflow.com/questions/7867099/how-to-create-a-user-defined-function-in-sqlite Feb 28 06:39:14 user defined functions, yep thats what I need Feb 28 06:39:23 but looks like android does not allows this Feb 28 06:41:32 squ: if you can catch mrenouf around ever (haven't seen him in a while) - he did something called spatialite i think; he may be able to help Feb 28 07:32:02 too funny: "HTML5 localStorage allows sites to fill up users' hard disks" Feb 28 07:32:50 spec says this shouldn't be possible; but chrome / safari / ie do not enforce. horay specs \o/ Feb 28 07:35:11 g00s: Heh. Reminds me of early versions of the JVM that didn't implement garbage collection. Feb 28 07:38:46 i wanted to know when android releases the resources associated with my activity after a period of dormancy. does the instance of the activity get destroyed too? or maybe it does even crazier things like unload the class itself too >_> Feb 28 07:44:02 balls2thewall: the Activity instance can get destroyed but the class won't be unloaded Feb 28 07:44:06 your process might get killed too Feb 28 07:44:39 so the only guarantee i have is that the application instance wont get destroyed? Feb 28 07:44:50 >_> ty Feb 28 07:55:23 hi all Feb 28 07:55:33 anybody know how to do android unit test on fragments? Feb 28 08:05:22 Hello. I'm trying to find a solution to a security problem I have with Samsung Apps in app purchase verification process. From my Android application I send through HTTPS POST request to my server an url + some other data in the body. From my server I take the data and make an HTTPS request to the Samsung's purchase verification servers in order to validate the purchase. So far so good, but what if an attacker creates his own purchase Feb 28 08:05:22 verification server that always says that the purchase is valid and make requests to my server with *his own* url? The solutions I was thinking about so far are not feasable, because: using a hash + a secret for sending the data from my app to my server, using a public key of my server to encrypt the data and send it to the server, but this again means that the attacker can take the public key and decompile my apk and make his own request... Feb 28 08:05:22 any ideas of other solutions? Feb 28 08:05:22 The sending of the URL from my Android app to the server is mandatory because that url is the url of the Samsung Apps purchase verification server which changes based on country or maybe other thing... Feb 28 08:08:00 *decompile my apk and see what data I send in the HTTP POST Feb 28 08:19:14 hi. I have an set of attributes for textviews (font-size, color, margin, etc) which i want to define once in the layout-xml and apply to multiple textviews than. How can i do this? Feb 28 08:22:00 values could be a way, but may there is something better? Feb 28 08:23:27 Stummi: you use styles http://developer.android.com/guide/topics/ui/themes.html Feb 28 08:25:25 appel1, seems to be exactly this what i looked for :) thanks Feb 28 08:28:37 another question: (Using eclipse) I have an library project and want it as distributable jarfile. There seems to be an generated bin/myproject.jar, but it doesn't have the R.class in it, so when i use it in another project i get the ClassNotFoundException as far as something in this jar tries to access its R-class. Is this a bug? Feb 28 08:29:18 afaik android library projects can't be distributed as jar Feb 28 08:30:48 is there any other way to get them in distributable form? Or will everybody who wants to work with my project has to checkout my project and the lib projects in workspace? Feb 28 08:32:31 typically you unpack the source code somewhere on your disk, then you specify the path to the library source in the configuration Feb 28 08:33:06 I think the problem is that resource identifiers can collide if you're trying to combine two precompiled libraries Feb 28 08:33:40 but e.g. the android support libs are a jar file, so it's obviously possible to make jars... it's just the resource files that cause trouble iiuc Feb 28 08:35:13 hm, is there already an proved way to handle this with maven? Feb 28 08:35:45 dunno, i gave up on maven because of questions like that :) Feb 28 08:37:14 okay, can you recommend something better for the build management? Feb 28 08:47:20 Stummi: you can get the experimental gradle build system, but its somewhat unfinished. Feb 28 08:47:43 it will be more useful when 0.4 comes out, if they stick to their milestones Feb 28 08:54:01 g00s, so, currently the best way is to do an "old style" project, without any build management and just having the lib/*.jar in scm? Feb 28 08:54:20 and telling people to checkout other lib projects besides that project Feb 28 08:54:33 well ... Feb 28 08:55:47 everybody loves that maven can take care of those explicit deps; but the gradle based system does that too. if you are good at maven and your project doesn't require extreme customization, it takes 10 minutes to make a pom Feb 28 08:56:00 you can migrate to gradle when it makes sense Feb 28 08:56:41 my project doesn't have enough deps to worry about; i just put in the project README what should be in libs Feb 28 08:59:19 I want to refresh a notification every second for say.. 24 hours.. how do I do this so it doesnt stop when my device goes to deep sleep? Feb 28 09:00:04 Last time I tried it stopped after just 30 minutes Feb 28 09:01:58 Quacked: doesn't sound very battery friendly.. Feb 28 09:02:08 I know, but I want to test it Feb 28 09:02:49 Quacked: a service then Feb 28 09:02:59 Quacked: thats nuts. Feb 28 09:03:18 I have a notification service and run a timer there Feb 28 09:03:39 which type of information is this important it has to be updated secondly? Feb 28 09:03:45 Quacked: is it a sticky service? do you handle the case where the service is killed and restarted correctly? Feb 28 09:03:52 Stummi: time remaining of countdown :) Feb 28 09:04:11 appel1: no, I didn't get any respons about that when I asked earlier Feb 28 09:04:22 Quacked: and you expect your users to sit with the notification drawer pulled down for the entire duration? :) Feb 28 09:05:09 appel1: no, but I want it updated when they show the notification drawer :) Feb 28 09:06:12 appel1: so if I do "return Service.START_STICKY;" and do something to remember the previous state, it should work? Feb 28 09:06:36 Quacked: why not do something sensible and only do an exact countdown when there's perhaps 10 seconds left or something? Feb 28 09:07:19 appel1: maybe, I could for instance live with showing minutes only until the last 10-60 seconds Feb 28 09:08:09 but how would the minutes be accurate if the timer updates every 60 seconds? If the timer is a bit off it would show an entire minute off I guess Feb 28 09:08:52 Quacked: have you looked at what the JB clock app does for its timer? you might get some inspiration there. Feb 28 09:09:17 I tried. It's confusing :) Feb 28 09:09:56 Where do you find the source for that? Feb 28 09:11:54 Quacked: https://code.google.com/p/android-source-browsing/source/browse?repo=platform--packages--apps--deskclock Feb 28 09:12:15 Thanks Feb 28 09:12:46 if you don't update the notification very frequently you might want to use AlarmManager instead of an always on service Feb 28 09:13:12 but for updates once per minute perhaps that'd complicate things unnecessarily Feb 28 09:16:00 if I use Service.START_STICKY, will the Service also restart if I force close the app? Feb 28 09:20:45 no Feb 28 09:33:33 Whats the difference between onHandleIntent and onStartCommand really? I just realized that my notification service was an IntentService so I changed it now. But it looks like I can still use onHandleIntent() Feb 28 09:35:03 Quacked: huh? onHandleIntent does not exist in Service. Feb 28 09:35:21 Quacked: also, if you moved to use Service don't forget to stop your service when it is done. Feb 28 09:35:57 Weird. It compiled fine Feb 28 09:36:27 It compiles! Ship it! Feb 28 09:36:29 Quacked: you can add onHandleIntent but it'll never get called by anyone unless you do Feb 28 09:37:20 annotating overrides with @Override is usually a good idea =) Feb 28 09:37:57 huh? hadoop hasn't had a release since 2011? is it that good or is there something wrong with the project :/ Feb 28 09:38:26 oh nm, their news is bogus Feb 28 09:38:42 appel1: so startService(intent) won't trigger onHandleIntent? Feb 28 09:39:03 Quacked: for IntentService ? Feb 28 09:39:10 For normal Service Feb 28 09:39:12 Quacked: onHandleIntent does not exist in Service Feb 28 09:39:30 Quacked: it is an abstract method in IntentService Feb 28 09:39:38 Yeah ok, but why don't I get any errors? Feb 28 09:39:45 Quacked: O.o back away from the keyboard Feb 28 09:39:58 Quacked: because you can add a new method to your classes Feb 28 09:40:09 hehehe Feb 28 09:40:13 * Quacked facepalms Feb 28 09:40:18 Quacked: there's no rule against defining a method with the same name as a method defined in other classes Feb 28 09:40:48 such a programming language would be.. interesting.. Feb 28 09:40:52 hehehe Feb 28 09:41:34 Quacked: anyways, annotate your overrides with @Override so you do get compiler errors when you do a mistake like this =) Feb 28 09:42:38 I'm reluctant to say this, but I removed the @Override that was initially there because it gave error Feb 28 09:42:51 lol Feb 28 09:43:07 hehe Feb 28 09:43:10 ;) Feb 28 09:45:13 hi,how do I set a backgroud for a MultiAutoCompleteTextView drop down? The drop down appears while and the drop down items are white too. Any fix for this? Feb 28 09:46:00 hi,how do I set a backgroud for a MultiAutoCompleteTextView drop down? The drop down appears white and the drop down items are white too. Any fix for this? Feb 28 09:46:52 Btw, is it somehow possible to have setWhen() display time left till HH:mm? I saw a screenshot of an app that had that, but it could be the ROM. I think it was some sort Kindle device Feb 28 09:49:02 BadDesign, use a nonce? Feb 28 09:49:42 Trinity: yeah, but that adds another HTTP request from my server to the Android app Feb 28 09:49:50 so? Feb 28 09:50:51 Trinity: I have to generate the nonce on the server and send it to the client and the client after the purchase has been made sends it back along with the purchase details... this is an option I have to take into consideration, will see... Feb 28 09:50:58 yes i know Feb 28 09:51:14 basically youl'll have to consider the possibility and if its worth it Feb 28 09:51:23 imho its worth it and its barely noticeable to the users Feb 28 09:51:52 I could also check if some part of the URL Samsung's IAP gives matches with that I get on the server... but what if the URL changes completely... Feb 28 09:52:00 s/that/what Feb 28 09:52:30 Anyone help, how do I set the backgroud and foreground colors for a MultiAutoCompleteTextView drop down? Feb 28 09:52:39 Currently they have https://country-odc.samsungapps.com/verifyPurchase... where country = uk, us, de, fr etc... Feb 28 09:52:43 is there any specific reason why you're using samsungs IAP? Feb 28 09:53:00 Trinity: Its not my decision... I have to implement it... Feb 28 09:53:01 the link doesnt work Feb 28 09:53:07 why not use google IAP? Feb 28 09:53:12 Trinity: We use that too Feb 28 09:53:36 do you have server-to-server verification working on google IAP? Feb 28 09:54:02 Trinity: Yes. Feb 28 09:54:16 From Samsung IAP, the URL they give after a purchase is different based on what country is configured within the account that is logged in into Samsung Apps Store Feb 28 09:55:00 I have to make a request from my server to that URL and check whether the purchase is valid... Feb 28 09:55:20 I never used Samsung IAP so i wouldn't be sure Feb 28 09:55:38 i'm pretty sure 99% of android users have google play installed Feb 28 09:56:00 so they could use google's IAP and it wouldn't hurt any sales. Only bit of advice i could give sorry :/ Feb 28 09:56:45 "they" being? Feb 28 09:57:01 your customers Feb 28 09:57:33 not 99% really but those who actively use apps and most likely will purchase your "items" will have Google Play installed Feb 28 09:58:10 Yes, but my company has a partnership with Samsung and they want to have our app in their Samsung Apps store... so I have to comply... Feb 28 09:58:25 Trinity: given how many people are getting samsungs... :P Feb 28 09:58:57 hey p_l Feb 28 09:59:08 and Trinity :) Feb 28 09:59:09 p_l: yea i know :/ but wouldn't they still have Play Store haha Feb 28 09:59:12 hey g00s Feb 28 09:59:45 IMO though the only two IAPs you should have would be Amazon and Google Feb 28 10:00:19 * p_l doesn't give jack shit about Amazon's, not available in many markets (probably less so than Samsung's) Feb 28 10:00:38 Amazon for kindle? Feb 28 10:01:14 Trinity: android-based kindles aren't available in many markets either Feb 28 10:01:27 isn't it the most sold tablet in usa? Feb 28 10:01:36 not to mention that K3 Keyboard 3G was *THE* best :P Feb 28 10:01:49 timroes: and USA isn't even the biggest country out there? Feb 28 10:02:21 For example on the Samsung market, http://apps.samsung.com/mars/topApps/topAppsDetail.as?categoryId=G000012927&productId=000000488367 Feb 28 10:02:32 number 2 apparently, they don't have the # of downoads or # of ratings Feb 28 10:02:46 but i did a manual count of the ratings, about 30 Feb 28 10:03:13 * p_l has yet to see Kindle Fire anywhere, or any other of the LCD kindles Feb 28 10:03:17 doesn't seem that active to me but i guess ill have to upload there to check it out Feb 28 10:03:38 if rating rate is similiar to google play 30 ratings would mean ~500 downloads? Feb 28 10:03:56 * BadDesign "That which can be asserted without evidence can be dismissed without evidence" Feb 28 10:04:41 oh nvmd its #4, still.. lol Feb 28 10:04:43 lol Feb 28 10:04:45 good 1 Feb 28 10:26:49 Ive got to support ldpi, mdpi, hdpi and xhdpi. Now Ive got different sized Pngs for each and every one, but is it possible to only have xhdpi and let android scale? Or is it much more time consuming? Feb 28 10:27:20 the scaling is at least bad quality Feb 28 10:27:48 especially in images that are not 9 patches and are large Feb 28 10:29:11 this is actually why I don't use many images in my applications... the size gets too large too fast Feb 28 10:29:23 http://stackoverflow.com/questions/5998865/only-use-xhdpi-drawables-in-android-app <-- seems like scaling is a bad idea? Feb 28 10:29:30 (also I suck at graphics :p) Feb 28 10:29:36 me 2 :) Feb 28 10:29:41 ive got a graphics guy := Feb 28 10:30:44 android got experience with having a surface view and a mediaplayer and only the audio gets played? Feb 28 10:30:48 im trying to stream a video - it works with a VideoView, but if i manually use a mediaplayer and a surface view only audio gets played - and i need the mediaplayer because it has more callbacks that i need Feb 28 10:31:56 sometimes I wish android supported vector graphics Feb 28 10:40:03 p_l: so the FF tree style tab extension has been stable for you ? Feb 28 10:40:21 i think i'm going to give it a try Feb 28 10:41:16 ¿uo ƃuᴉoƃ s,ʇɐɥʍ 'sʎnƃ ᴉɥ Feb 28 10:42:07 Hello, I need to create an activity that draws a graph and allows zoom in/out. not sure which type of layout is needed here? can you point me in the right direction? Feb 28 10:43:30 viran: have you looked at any of the existing open source chart libraries? Feb 28 10:43:59 nope, didnt know there are any.... Feb 28 10:44:43 viran: https://code.google.com/p/achartengine/ https://github.com/jjoe64/GraphView http://www.jjoe64.com/p/graphview-library.html Feb 28 10:45:06 thanks Feb 28 10:45:43 I am looking for a "flip card" animation where I want to animate two TextViews as front and back... I have seen the examples but those only works with higher API level than I can afford to set as minimum.. does anyone know a good example where I can see how to have such animation from sdk 7 ->.. Feb 28 10:46:46 the card flip animation at android developers requires fragments and therefore a minimum of 11 Feb 28 10:47:21 MelvinKelvin: you can use compatibility library, I think... Feb 28 10:48:56 BadDesign: like the support library? Feb 28 10:48:57 you've got a support library you can use on older versions. (i think) Feb 28 10:49:07 MelvinKelvin: that is, to get fragments working in older SDKs, http://goo.gl/uvCfU http://goo.gl/LJiWP http://goo.gl/668bj Feb 28 10:49:27 g00s: for years now Feb 28 10:49:52 Thanks, I will look into it! Feb 28 10:50:30 p_l: it was this one? https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/ Feb 28 10:50:49 yes Feb 28 10:50:57 I often install it from the author's page, though Feb 28 10:51:12 different version? Feb 28 10:51:14 shouldn't make much of a difference now Feb 28 10:51:22 g00s: in the past :) Feb 28 10:51:24 hey guys :) Feb 28 10:51:35 uh oh, its styler2go :) Feb 28 10:51:50 and i have no question! just want to see u guys :D Feb 28 10:51:56 :D Feb 28 10:52:19 i'm kiddin, i found out that eclipse has an irc client, i am trying it right now :D Feb 28 10:52:50 styler2go: there's a special "theme" for irssi if you use a terminal embedded in Eclipse, so that it looks like you're working when you're ircing Feb 28 10:53:24 hahahaha Feb 28 10:53:27 good idea :D Feb 28 10:53:31 but i really have to work :D Feb 28 10:53:36 hi guys.. i'm trying to understand the Point-object.. and my brain just melted Feb 28 10:53:37 http://pastebin.com/bnEUc4C1 Feb 28 10:53:50 how come line #6 also affect the original point, p? Feb 28 10:54:51 lime: you need to dig into thevery java basics Feb 28 10:54:58 styler2go: „You know how people say that the top coders are ten times as productive? I'm one of those guys, except instead of outperforming everyone, I just play games, read web pages and goof off most of the time. Then I keep up with my workload by occasionally doing a couple of hours of actual work.” Feb 28 10:55:11 timroes, that sounds scary Feb 28 10:55:27 yeah but that is not an android question but the very very basic java question Feb 28 10:55:34 true Feb 28 10:55:42 you need to understand differences between referenced datatypes and primitive datatypes Feb 28 10:55:55 oh Feb 28 10:55:58 ofc you manipulate p, because yeah... you manipulate the point? Feb 28 10:56:11 you somehow expect new_poitns[0] = p do copy somethign? Feb 28 10:56:23 yup :D Feb 28 10:56:24 no it sets the first element of the array to point to p Feb 28 10:56:41 i see, so i only make a reference Feb 28 10:56:52 http://docs.oracle.com/javase/tutorial/ you should give these a try Feb 28 10:57:00 i guess that stuff is convered in one of the very beginning tutorials Feb 28 10:57:18 let's hope so :D Feb 28 10:57:21 what would be the rationale behind a white bitmap being a different color than just setting the view color in code to white >_> i checked, the bitmap is perfect white but still is obtrusive on a white background set by code/xml Feb 28 10:58:08 lime: it does Feb 28 10:58:15 2nd chapter: http://docs.oracle.com/javase/tutorial/java/javaOO/index.html Feb 28 10:58:24 --> #java Feb 28 10:58:59 throw 'em to the sharks! Feb 28 10:58:59 hehe, yeah, this might be java related, but I'm more familiar with you people in here :D Feb 28 10:59:05 and in my head it's basically the same deal Feb 28 10:59:14 >might be Feb 28 10:59:15 thanks for the help timroes ;) Feb 28 11:01:26 nvm, found an explantion for my problem Feb 28 11:01:29 >_> Feb 28 11:04:01 whoops, no i didnt >_> Feb 28 11:06:05 p_l: So you save your work until you have to work under pressure? Feb 28 11:09:54 What is the long variable 'next' in this code ? http://pastebin.com/Y8Yf2nCr Feb 28 11:10:05 I don't get it :) Feb 28 11:10:22 I think I've included enough of the code Feb 28 11:12:22 styler2go: exactly how i work as well haha, without pressure I wouldn't be able to code at all >_> Feb 28 11:12:43 p_l: Lol.. so i am not alone.. Feb 28 11:13:04 Trinity: i thought this would be my way of coding :D Feb 28 11:14:15 what object should I use to store key value pairs that I can easily call methods to check if certain key exists; and get value of a certain key Feb 28 11:14:27 it seems Bundle can do it, but I was not sure Feb 28 11:14:59 Quacked: whats not to get? Feb 28 11:15:00 gmag: a map if you jsut need a regular java object not to send between activities? Feb 28 11:15:07 Preferences maybe? Feb 28 11:15:24 ah you need to store them forever? or just for one session Feb 28 11:15:38 I need to store during my application life Feb 28 11:15:58 okay why aren't you using a Map? Feb 28 11:16:07 timroes, gonna check that Feb 28 11:16:15 Quacked: you set interval.millis and then with millisTillNextInterval interval.millis() - now % interval.millis(); is done Feb 28 11:16:25 i get the feeling this channel more and more takes a turn into basic java questions.. Feb 28 11:17:00 timroes, I just dont want to have to implement "checkIfKeyExists(key)" and "getValue(key)" Feb 28 11:17:32 timroes: want a droidy question then Feb 28 11:17:38 about loaders :) Feb 28 11:17:46 i want some breakfast :) Feb 28 11:18:07 irc + basic java or breakfast hmmm Feb 28 11:18:09 as ## Java people would say, test it and see Feb 28 11:18:13 timroes, yeah Map seems to do it, ty Feb 28 11:18:29 styler2go, gonna check Preferences too, just in case Feb 28 11:19:11 StingRay_: so got my breakfast :D Feb 28 11:19:26 so now i want some clothes, somehow its getting cold in here :D Feb 28 11:19:29 anyone here use shorthand if statements? Feb 28 11:19:39 not tenary Feb 28 11:19:44 timroes: fried and contributing to heart-attack ? Feb 28 11:21:12 Trinity: what do you mean by shorthand if, but not tenary? Feb 28 11:21:17 Trinity: and value of interval.millis() is simply 1000? Feb 28 11:21:23 if (true) doThis(); Feb 28 11:21:31 StingRay_: no just took a day off today :D Feb 28 11:21:41 well i guess thats not shorthand but rather without brackets Feb 28 11:22:04 Trinity: i use this for some return statements Feb 28 11:22:13 e.g. if(stuff == null) return; Feb 28 11:22:29 but not if the command inside the if block is more complex Feb 28 11:23:11 this was a fun read http://tech.blog.box.com/2013/02/improve-the-testability-of-your-android-app/ Feb 28 11:23:33 what about (num & 1) == 1 ? num1 : num2) Feb 28 11:23:42 yup Feb 28 11:23:49 Quacked: yup Feb 28 11:24:49 timroes: ahh, good to know same way i use it then. Got confusing if I tried to use it with more complicated blocks Feb 28 11:25:00 but I found the one line statements easier to understand Feb 28 11:25:38 The irc client inside eclipse is very funny :) Feb 28 11:25:39 g00s: that lifecycle pic should be doc.android's pic Feb 28 11:25:59 its so pretty :D Feb 28 11:28:13 damn it, i'm pissed linkedIn removed all the books I reviewed in my profile Feb 28 11:28:56 fracking sochul bs Feb 28 11:34:27 is this lib any good ? https://github.com/commonsguy/cwac-loaderex Feb 28 11:35:18 or am i actually better learning and doing my own Feb 28 11:35:33 Trinity: what's the point of the code? the next interval becomes almost a random long between 0 and 1000 Feb 28 11:36:10 As I can understand from line 188 here he is updating the notification every 'next' second: http://code.google.com/p/kraigsandroid/source/browse/android/alarmclock/src/com/angrydoughnuts/android/alarmclock/NotificationService.java Feb 28 11:36:23 'next' millisecond I mean Feb 28 11:37:05 Quacked: is that not asking for the next interval IN milliseconds ? Feb 28 11:37:21 I mean in seconds Feb 28 11:37:47 rather than millis :) Feb 28 11:38:27 the parameter of postDelayed takes long I think Feb 28 11:38:36 hi all - if android is android then why are some programs limited to certain makes / models of tablet - assuming the same OS version I would think that an app from one should work on the other but it doesnt look like this is the case? Feb 28 11:38:37 Quacked: handler.postDelayed(soundCheck, next); Feb 28 11:38:43 StingRay_: in millis Feb 28 11:39:01 devswap: android is android ? O.o Feb 28 11:39:20 Trinity: pardon? Feb 28 11:39:24 i don't think hes updating the notification but rather the sound Feb 28 11:39:31 Check line 188 instead Feb 28 11:40:01 ahh nvmd i see hold up Feb 28 11:40:05 That's his notificationBlinker which I think updates notification. I'm using NotificationCompat.Builder so mine doesn't look exactly the same Feb 28 11:40:19 devswap: because theres a small thing called fragmentation :) Feb 28 11:40:22 g00s: thats what I mean - why wont an app for one work on another - is it the cpu architecture? Feb 28 11:41:11 hello folks Feb 28 11:41:40 devswap: same reason why not all windows pcs could read floppy disks Feb 28 11:41:41 hello to you Feb 28 11:41:52 because some pcs have the hardware to read floppy disks Feb 28 11:42:15 unless you're talking about API/SDK Feb 28 11:44:08 as I've used that app for a long time without noticing a major battery usage, I believe I can update my notification every second as well (that is if he is actually updating it every 0-1000 ms) Feb 28 11:44:10 Quacked: seems to me its basically like a deltaTime Feb 28 11:44:27 so you got it right, its updating it every 1 second Feb 28 11:44:40 so a blink/LED notification every 1 second Feb 28 11:45:02 It's not the notification drawer notification update? Feb 28 11:45:03 but that time is dependent on epoch Feb 28 11:45:21 Why doesnt he just set the value to 1000 ms? Feb 28 11:46:19 because it takes time for that runnable to run Feb 28 11:46:53 wait nvmd Feb 28 11:47:36 is it basically to avoid having 1 second wrong every now and then? Feb 28 11:48:25 i.e. the timer goin 10,9,9,7,6,5,5,3,2,1 Feb 28 11:48:36 Hi guys, i'm looking for a way to monitor network activity, on the long time (an app maybe ?), and make show me all networ transactions happening Feb 28 11:50:41 any one android punter here Feb 28 11:56:05 a what ? Feb 28 11:57:24 Trinity: still here? Feb 28 11:57:38 anyone a android speculator/gambler/patron here... nope still dont get it Feb 28 11:58:25 A punt is a flat-bottomed boat with a square-cut bow, designed for use in small rivers or other shallow water. Punting refers to boating in a punt. The punter generally propels the punt by pushing against the river bed with a pole. A punt should not be confused with a gondola, which is propelled by an oar rather than a pole. Feb 28 11:58:59 stowelly: hence my confusion :) Feb 28 11:59:04 :) Feb 28 11:59:18 generally the term is for a customer though Feb 28 11:59:30 and id guess everyone in here owns an android device of some sort..... so yes ? Feb 28 11:59:52 cant be that though, logic dictates going into an android dev channel and asking that is....well.....not sound Feb 28 12:00:35 * StingRay_ needs a pill that instills loader, cursorLoader knowledge Feb 28 12:00:36 in that case it must be the boat thing! Feb 28 12:00:44 :) Feb 28 12:02:47 Quacked: my guess really is he wants it smack on every interval of 1000 in Epoch time Feb 28 12:03:11 Aha Feb 28 12:03:35 Thanks Feb 28 12:03:50 Also, In his NotificationService he uses START_NOT_STICKY. Would his wakelocks be enough for Android not to kill his Service? Feb 28 12:05:36 yea i think he just wants it to be constant on every 1 second Feb 28 12:06:00 Trinity: seems a bit OCD to me but to each his own :) Feb 28 12:06:37 erm... with a HashMap I can have any combination of key/value types, right? Considering (key, value) as an entrie of HashMap, I can have the following HashMap: (string:int), (string:bool), (double, string), etc, right? Feb 28 12:07:30 gmag: yeah, cept objects rather than primitives no? Feb 28 12:07:33 ehh, not really though. probably came up with some weird errors during testing because of the threading Feb 28 12:08:04 StingRay_, sorry, could you rephrase is? Didnt get it Feb 28 12:08:10 it* Feb 28 12:08:14 you should test it! see if theres a difference between postDelayed 1000 and milli Feb 28 12:08:21 Integer, Boolean etc Feb 28 12:08:48 I think as long as your key is hashable you can use any type right? (at least thats the case in c++, not too fluent in java) Feb 28 12:09:28 which keys are hashable? Primitive keys are hashable? I just need primitive keys and values Feb 28 12:09:37 Trinity: yeah Feb 28 12:09:55 gmag: yes, I have some hasmaps with Integer keys and string values Feb 28 12:09:59 *hasmaps Feb 28 12:10:02 ah ffs Feb 28 12:10:52 also consider sparseArray<*> if your key is an int Feb 28 12:11:06 apparently tis quicker, so lint keeps telling me Feb 28 12:11:15 StingRay_: it is Feb 28 12:11:29 timroes: but... Feb 28 12:11:36 :) Feb 28 12:11:38 but? :) Feb 28 12:11:43 sure getting null is not, rather than contains ? Feb 28 12:11:54 if you want to know if key exists Feb 28 12:13:20 there is a problem with that Feb 28 12:13:35 or at least i would assume it, lemme look into the impleemntation shortly :D Feb 28 12:15:22 okay its not like i thought :) Feb 28 12:15:27 they could have easily created such a method Feb 28 12:15:31 :) Feb 28 12:15:59 but how often do you use contains? Feb 28 12:16:07 containKeys* Feb 28 12:16:22 in the most cases I remeber I would want to work on the result if it exists Feb 28 12:16:35 so why not getting it directly instead of needing another call to get it Feb 28 12:17:02 (and not to mention the complexity of the call Feb 28 12:17:21 those moments when you ran out of green tea and youre banging your head against the table to wake up Feb 28 12:17:24 un* Feb 28 12:17:26 run* Feb 28 12:18:48 Hey folks, is it considered reasonable to develop for Android >= 4 for a new android app today? Or is 2.x support still mandatory? Feb 28 12:19:35 provideal: http://developer.android.com/about/dashboards/index.html decide yourself :) Feb 28 12:19:40 1.6 is below 2.x Feb 28 12:20:25 oh im stupid, 4.x you mean :) Feb 28 12:21:09 timroes: I knew that, I just wonder whether 4.x features will ever take off :) Feb 28 12:22:09 provideal: sorry don't get how you mean that? Feb 28 12:22:18 * Trinity looks into a crystal ball and says "yes" Feb 28 12:22:47 ofc 4.x will grow or do you think manufatures will now begin and think.. we won't do any new stuff mroe, lets go back to 2.x for the next device? Feb 28 12:24:43 I feel a little awkward developing a new app for such an ancient version... Feb 28 12:25:14 I still cater to that 0.2% :) **** BEGIN LOGGING AT Thu Feb 28 12:27:15 2013 Feb 28 12:27:30 timroes: I just expected more users to not uptdate to 2.3.3 even if possible Feb 28 12:27:37 rooted ones? Feb 28 12:27:56 wouldn;t know why they shouldn't Feb 28 12:28:22 timroes: I've talked to a lot of people who doesnt know how to update etc Feb 28 12:28:38 my mobile bothered me with it till i got every update? Feb 28 12:28:53 ^ yea.... it was fairly annoying lol Feb 28 12:29:12 my mom didn't want to update cause she knew the UI between 2.3.3 and 4.0.x was entirely different Feb 28 12:29:28 yeah but stupid if she want to stick to the old ui :) Feb 28 12:29:38 shes 70+ LOL Feb 28 12:29:48 especially then Feb 28 12:29:58 in my opinion the 4.x has way better usability Feb 28 12:30:05 she was fairly pissed off when she found out she learned the old UI for no reason. ehh shes stubborn Feb 28 12:30:16 can't figure out how to use it well Feb 28 12:30:18 and gives a user way more consistency Feb 28 12:35:50 my mom has an iphone 3gs but its behaving badly so she wants a new phone Feb 28 12:35:50 Trinity: she has a nexus device? Feb 28 12:36:09 I'm not sure whether she should get my father's iphone 4 or convert to Android Feb 28 12:36:16 difficult choice that is Feb 28 12:36:52 Hello! How would you refresh a spinner's data if the data is stored in a SharedPreference ArrayList and the user modifies the list in a separate class? The user does not make the changes after clicking anything in the spinner drop down. The ability to modify the ArrayList is totally separate from the spinner itself. The spinner is created in the onCreate of the Activity class. Making the spinners adapter a class var Feb 28 12:36:52 iable and calling adapter.notifyDataSetChanged in the onActivityResult doesn't work. Feb 28 12:39:21 appel1: yea Feb 28 12:39:23 Skull0ne: what kind of adapter do you use? Feb 28 12:39:24 appel1: how'd you know? Feb 28 12:40:18 Quacked: my entire family wants to get iPhones but none of them shall ever own one muahahaha Feb 28 12:40:19 Trinity: only they that had any noticable difference when upgrading to 4.x Feb 28 12:40:57 appel1: yea it was quite a big change in everything, contacts, dialer, etc Feb 28 12:41:19 appel1: ArrayAdapter Feb 28 12:45:11 Skull0ne: is it the same list that you modify? Feb 28 12:46:06 appel1: yes. if you close the app and reopen the spinner is correctly populated with the new data. I just can't get the spinner to refresh the data on the fly. Feb 28 12:46:28 'morning Feb 28 12:46:56 Skull0ne: huh? the object you use as argument to the constructor to ArrayAdapter, is it the same instance that you later modify? Feb 28 12:48:50 skullone: if I remember correctly, notifyDataSetChanged() needs to becalled Feb 28 12:48:56 Trinity: are you preventing them from acquiring iDevices :) Feb 28 12:49:26 Trinity: did that. doesn't work. Feb 28 12:49:28 g00s, yup! and they hate me for it Feb 28 12:49:55 SkullOne: is it crashing? cause you have to re-create the adapter after notifyDataSetChanged() Feb 28 12:49:59 heh Feb 28 12:50:29 but in all honesty... android > ios anyday Feb 28 12:52:08 anyday? Feb 28 12:52:12 Trinity: nope. no crash. Feb 28 12:53:43 Skull0ne, http://stackoverflow.com/questions/3283337/how-to-update-a-spinner-dynamically-in-android Feb 28 12:54:03 Stummi: yes :) anyday Feb 28 12:58:55 Trinity: bigger in what ? app sales revenue ? ad revenue ? paid purchases per uint? Feb 28 12:59:02 :) Feb 28 12:59:13 If an app crashes due to a device running out of memory, should I expect to see a java out of memory exception, or could it result in nothing more than a segfault? Feb 28 12:59:58 zorfrex: whenver I get out of memory i get an error from Dalvik Feb 28 13:00:39 you generally get an OutOfMemoryException ... there's even a method in your activity (I think) that gets called when its almost going to happen Feb 28 13:00:41 Stingray_: total profit from advertising, user base, speed Feb 28 13:01:21 total profit for advertising based on unit/developer is a different view though no ? Feb 28 13:01:54 thanks both :) Feb 28 13:02:27 unit : developer ratio to advertising revenue is what i meant Feb 28 13:03:20 ok lets clarify that... if the device is running out of memory, onLowMemory() will be called before problems occur. If your app exceeds the VM limit, you'll get an out of memory exception. I'm not sure what happens if your app has not exceeded VM but your already beyond onLowMemory(), probably just a force quit without crash. Feb 28 13:03:53 Well in my opinion its all connected :) more advertising = less paid apps Feb 28 13:04:16 less paid apps = wider diversity of apps out there. though I can't say atm that android apps outperform apple apps Feb 28 13:05:13 but i'm in for the longhaul :) and Android looks like the best investment Feb 28 13:05:27 the minor difficulty is that the app is written in Titanium, so I'm not sure what it does with the onLowMemory() call - I'll look into that Feb 28 13:05:49 as it stands though the only useful thing in logcat is the segfault dump, no low memory warnings from any process Feb 28 13:06:00 Trinity: but Sergey thinks phones are emasculating ) Feb 28 13:06:05 I suspect based on what you said that it is an actual crash and not OOM Feb 28 13:06:52 zofrex: you could always pastebin stacktrace :) Feb 28 13:07:39 g00s: ahem... clearly you haven't seen the latest Droid DNA ad... they empower you and enhance your capabilities! Feb 28 13:08:13 not to mention "hyper intelligence" Feb 28 13:08:57 maybe i'm reading too much into this, but i never say Sergey as excited about android as he is about Glasses. I think this is where he feels the future is. And chrome for traditional desktop maybe. if true, android is just a stopgap Feb 28 13:09:28 i wouldn't be surprised in 5 years - google totally disowns android to oha Feb 28 13:09:41 ^ heresey!!!! Feb 28 13:10:03 i see android taking more of a windows approach Feb 28 13:10:19 Remember those Michelle Bachman political ads where instead of talking to the camera she was always looking up and off to the left? That's what you'll look like to people while talking to them and wearing those glasses. Feb 28 13:10:19 Trinity, which is? Feb 28 13:10:21 zofrex: if you're talking about native memory allocation those do not count towards the java heap limit, but there's still an upper limit of course Feb 28 13:10:24 Trinity: http://pastebin.com/6j3vcp7S Feb 28 13:10:56 interconnectivity between desktop, mobile, laptop Feb 28 13:11:15 maybe the old programmers dream will come true and your fridge will have an android in it :) Feb 28 13:11:16 why interconnectivity? convergence is already happening Feb 28 13:11:38 Glass is even worse than phones for being "absent" during a conversation or outing... stop looking at your damned glass - end of conversation. Feb 28 13:12:09 g00s: my mistake convergence is more specific Feb 28 13:13:34 besides, if sergey was so smitten about stopping the emasculation of phones he'd toss in one of these per every device sold:) http://cf1.fancyimgs.com/commerce/original/20130122/b97e40d164e54b69a6999f3f494595fe.jpg Feb 28 13:13:40 would it be safe to keep a static context for non-activity related tasks. e.g. file access Feb 28 13:13:49 anything mark Zuckerberg thinks is a good idea - is probably not a good idea :D Feb 28 13:14:03 and since Zucker loves Glasses, I'm thinking this is a really bad idea Feb 28 13:14:23 lol, im telling you man zuckerberg has something else in store Feb 28 13:14:38 one of the glasses functions are to record everything you see Feb 28 13:15:22 and with the current facebook search history who knows whats going to happen with glasses Feb 28 13:16:02 balls2thewall: no, android doesnt like that Feb 28 13:16:30 i think if Glasses becomes ubiquitous; and lets assume it recognizes faces which are sent to google for recognition and return AR overlay data - this could destroy the fabric of society. i'm not kidding Feb 28 13:16:55 g00s: how? Feb 28 13:16:58 the existing social lubrication: ignorance and white lies, will no longer work Feb 28 13:17:05 (and forgetting) Feb 28 13:17:07 balls2thewall: making a static context will lead to mem leaks Feb 28 13:17:38 in4theride :) Feb 28 13:18:00 future android apps - lie detector Feb 28 13:18:15 Trinity: that app has already been completed ;) Feb 28 13:18:24 Glasses Lie Detector* Feb 28 13:18:40 based on eye movements, subtle changes in expressions Feb 28 13:18:47 hmm card counting app Feb 28 13:19:18 I wonder if society would stop lying or decide to learn to hide their expressions well enough to trick the app :) Feb 28 13:20:10 but the application context isnt supposed to change >_> Feb 28 13:20:18 no need for Argus; lots of cameras right on the street :) Feb 28 13:20:39 balls2thewall, it doesnt change... context.getApplicationContext() Feb 28 13:21:04 balls2thewall, what are you trying to accomplish? Feb 28 13:21:09 so why cant i make it static Feb 28 13:21:14 Does anyone know a good way to draw graphs on Android? Feb 28 13:21:34 balls2thewall, you can make it static. its just bad practice and will most likely lead to memory leaks Feb 28 13:21:46 Ankhwatcher: tried any of the existing chart libraries? Feb 28 13:21:52 Ankhwatcher: https://github.com/nadavfima/ChartView/ Feb 28 13:21:54 oh its a design thing. i thought you meant i cant do itbecause it changes >_> Feb 28 13:21:59 http://www.androidviews.net Feb 28 13:22:08 i want to circumvent passing a context to every method Feb 28 13:22:09 Trinity: was there anything useful in there? from my reading it's not particularly useful Feb 28 13:22:47 appel1: I tried this one http://androidplot.com/, not super impressed. figured someone in here would have a really good one to recommend Feb 28 13:23:06 zofrex: sorry didn't understand anything in that stacktrace :/ Feb 28 13:23:12 Trinity: consider the ethical implications of this simple exchange: your wife, wearing glasses, asks you if you think she is fat. Her glasses are running an app implementing an Eulerian video magnification algorithm; she can tell if you are fibbing. Feb 28 13:23:34 yeah annoyingly the crash is in the middle of the titanium runtime binaries. thanks for the help though, it's narrowed down the causes :) Feb 28 13:23:47 is it possible to instead of having "wrap content" say "expand " or something like that? That is I want the thing to be displayed overlapping other layout stuff Feb 28 13:24:04 we need to put in the topic: titanium, sencha touch, etc, … go away :) Feb 28 13:24:14 timroes: that looks promising Feb 28 13:24:30 balls2thewall, btw, im pretty sure you could accomplish whatever you're trying to do without a static applicationContext :) Feb 28 13:25:48 g00s: what's sencha touch? Feb 28 13:26:34 g00s: i'd tell my wife that algorithm should include in its functionality "detection of male sexual interest" Feb 28 13:26:41 bullet dodged :D Feb 28 13:27:08 zofrex: there are some tools in the ndk that might help you interpret the stack trace like ndk-stack Feb 28 13:27:12 im just speaking generally. i dislike passing a context to every method because of the clutter Feb 28 13:27:36 balls2thewall: clutter vs memory leak. i'd pick the first one Feb 28 13:27:56 cheers I'll look into it :) Feb 28 13:28:31 beisdes you could always pass context into class constructors and make a private member Feb 28 13:28:53 its not a guarantee of a memory leak >_> testing testing testing. i get where youre coming from, i hate static fields as they always cause the most bugs, but the fact everyting needs a context irritates me a bit Feb 28 13:28:59 Trinity: a large number of android classes do exactly that, adapter, every view Feb 28 13:29:35 would using a static context cause a memory leak? I would have thought it would just crash, Null Pointers and all that. Feb 28 13:29:59 Ankhwatcher: if its not set ahead of time, it will cause a null pointer Feb 28 13:29:59 ie the program probably wouldn't keep running long enough to leak memory Feb 28 13:30:13 Ankhwatcher: and if its not cleared after use, it will leak exactly one object (and anything it references) Feb 28 13:30:21 clever: and look at what you have to do because they do to avoid leaks Feb 28 13:30:22 http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html Feb 28 13:35:08 any of you guys tried this app? https://play.google.com/store/apps/details?id=com.urbandroid.sleep Feb 28 13:35:17 positively one of the most useful apps i have ever encountered Feb 28 13:36:23 Trinity: i was using something similar but more crude on ios, all it did was find a time in the future that was evenly divisible by ~2.5 hours Feb 28 13:36:37 had plans to copy it but forgot Feb 28 13:36:51 hehe yea same here until i found this app. for once a well made app Feb 28 13:37:18 it uses a sleep graph to wake up you when it notices that you've awoken based on the accelerometer Feb 28 13:37:31 since dad took the ipod back, ive found that it works to just get to bed early, 8pm! Feb 28 13:38:17 haha, its 5:38 AM here :/ haven't fell asleep yet Feb 28 13:38:28 Trinity: how does it know when to wake you up ? Feb 28 13:38:37 Trinity: http://www.orneryboy.com/index.php?comicID=1 Feb 28 13:39:41 Trinity: problem is that you need your phone in the bed, which shouldnt really be done while charging Feb 28 13:39:56 Quacked: the tablet always sleeps with me :P Feb 28 13:40:24 Quacked: yea i know :/ but theres airplane mode for that Feb 28 13:40:32 what scares me more are reports of devices exploding Feb 28 13:40:42 Trinity: thats what I meant (the exploding part) Feb 28 13:41:18 I dont want to wake up with the bed on fire Feb 28 13:41:20 g00s: it uses the accelerometer. device is placed on bed wheneever you move your body or shift vibrations hit the device Feb 28 13:41:36 the more movement/vibrations = light sleep. the less vibrations = deeper sleep Feb 28 13:41:47 would be nicer with a small bluetooth device with an accelerator Feb 28 13:41:59 i can't believe thats scientifically accurate Feb 28 13:42:00 Quacked: and what is that powered by?, another lipo! Feb 28 13:42:05 deeper sleep is called REM sleep and is when you're actively dreaming. in a way its harder to wake up to an alarm during deep sleep and you'd feel a lot more tired waking up to an alarm during REM sleep Feb 28 13:42:23 clever: you don't need it hooked up to a charger Feb 28 13:42:40 so what this app does is it makes it easier for you to wake up and to let you feel more refreshed when you wake up. Its all sleep therapy. Feb 28 13:42:43 Quacked: yeah, if its only use is when you sleep, it can charge durring the day Feb 28 13:43:14 clever: yeah, and my phone needs to be charged when I wake up Feb 28 13:43:14 i thought the only devices that exploded were fualty asian made ones? Feb 28 13:43:17 there are a few of those http://wakemate.com/ Feb 28 13:43:18 they wernt even android! Feb 28 13:43:37 g00s: yeah Feb 28 13:43:41 the best is http://www.latimes.com/health/la-he-gadget-alarm-clocks-20120512,0,7223920.story Feb 28 13:43:57 Trinity: i believe its due to improper protection, allowing the battery to overheat Feb 28 13:44:15 clever: still.. bed.. pillow.. movement in bed.. Feb 28 13:44:15 Trinity: the decent lipo's have voltage and current cutoff in a pcb mounted directly on the battery Feb 28 13:45:06 phone gets a bit hot underneath a pillow :P Feb 28 13:45:12 (while charging) Feb 28 13:45:19 i dont put it under the pillow Feb 28 13:45:52 quacked you're not supposed to put it under the pillow though right? Feb 28 13:45:54 yeah, I just mean it could move a bit if you're a restless sleeper Feb 28 13:46:00 thought it was just the corner of your bed or something Feb 28 13:46:15 Trinity: yeah, I just meant its not necessarily in the same place when you wake up :P Feb 28 13:46:17 Quacked: ive slept in that bed with 3 laptops before, its got plenty of room :P Feb 28 13:46:28 my wife takes too much space for 3 laptops Feb 28 13:46:28 hehe Feb 28 13:46:30 Quacked: .... Feb 28 13:46:53 Quacked: oh your wife haha :). cause i sleep on a twin bed and my tablet doesnt move anywhere :) Feb 28 13:47:10 timroes: this is my first time using an android library project, I've added it build and it is now working in my .java files but my xml file is failing lint. Feb 28 13:50:02 iiiiii want candyyyy... Feb 28 13:50:45 Hello? Feb 28 13:51:28 SimonVT: Are you there? I can't seem to get the menu drawer library to work in Intellij. Are there any documents that can be of help? Feb 28 13:53:16 is it possible to get the content width of a WebView? *get the width and scroll Feb 28 14:03:24 balls2thewall, http://stackoverflow.com/questions/1612628/how-to-get-width-and-height-of-a-webview-in-android Feb 28 14:05:56 Sorry for that Feb 28 14:06:59 Trinity width of the content, not the actual view Feb 28 14:07:15 the page is wy out of bounds and scrolled to 0, im trying to center it >_> Feb 28 14:07:20 way* Feb 28 14:14:06 Trinity: Thanks. That pointed me in the right direction. I have it working now. Sorry for the late reply..had to take care of the kid. Stupid ear infection. >< Feb 28 14:16:15 hi all Feb 28 14:16:34 i came here after long test and having some performances issues Feb 28 14:18:11 anyone had a similar problem ? Session: an attempt was made to open a session that has a pending request. Feb 28 14:18:16 facebook sdk Feb 28 14:18:31 i'm using Samsung galaxy tab 2 (Android 4.0.4 Kernel 3.0.8) When i run my activity without tethering it works fine, when i enable tethering my application becomes laggy Feb 28 14:19:22 don't enable tethering, problem solved. Feb 28 14:19:42 I'm only half joking. Feb 28 14:19:50 Samsung could very well have fucked up tethering Feb 28 14:20:06 lov: true, but my application needs network access, when i connect using wifi/router everything works fine, it's all about having tethering enabled Feb 28 14:20:39 ohmy: so it is when you tether your tab 2 to some other device like a phone you have issues? Feb 28 14:21:20 appel1: yes Feb 28 14:21:42 ohmy: do you download data on the gui thread or something? perhaps the tethering connection is just a lot slower? Feb 28 14:21:53 appel1: my Android application is just a UI that communication with annother remote application Feb 28 14:22:12 appel1: i send just few commands, really few bytes Feb 28 14:23:13 appel1: when i use wifi connection there's no lag at all, when i use tethering my commands are buffered like by 5-6 seconds Feb 28 14:24:47 ohmy: it's no surprise that tethering adds some overhead Feb 28 14:25:05 ohmy: 5-6 seconds sounds a bit much though, perhaps the device you tether to has bad reception? Feb 28 14:25:42 Hello! I have issue with keep-alive connection timeout. I have 2 servers (not my :) ) development and production. When i use rest api of dev-server (using http)- everything ok, if i use this api but host of production server (https) - i can request api a lot of times but after delay (15 seconds) i receive empty response. I use java http client (HttpURLConnection/HttpsURLConnection). How i... Feb 28 14:25:43 ...can fix it? Feb 28 14:25:43 appel1: i've tried any devices, including two PC, two android phones and a ipone Feb 28 14:26:23 xgear: change the timeout? Feb 28 14:26:27 seems straightforward. Feb 28 14:26:47 ohmy: from your tab 2's point of view there's no difference between normal wifi or wifi to another device like an iphone (tethering) Feb 28 14:27:10 appel1: yes .. Feb 28 14:27:24 ohmy: but of course it'll be slower since presumably your wifi is connected to a fast internet connection and your iphone uses 3g Feb 28 14:27:27 xgear: http://developer.android.com/reference/java/net/URLConnection.html#setConnectTimeout(int) http://developer.android.com/reference/java/net/URLConnection.html#setReadTimeout(int) Feb 28 14:27:47 using headers? Feb 28 14:27:54 09:27:31 < lov> xgear: http://developer.android.com/reference/java/net/URLConnection.html#setConnectTimeout(int) http://developer.android.com/reference/java/net/URLConnection.html#setReadTimeout(int) Feb 28 14:28:09 I can copy/paste myself again if you'd like Feb 28 14:28:22 i tried this, it doesn't help Feb 28 14:28:35 ping Feb 28 14:29:17 then use something like wireshark to figure out what's going on at the network layer, and figure out if maybe your server has a bug. Feb 28 14:29:44 those methods just set headers, really, so you can pretty easily verify whether they're working or not. Feb 28 14:31:07 hi, im new to java and android. Im trying to create a button that sends data to a webserver, but right now im getting IOException. Any ideas? :) http://pastie.org/6354490 Feb 28 14:34:26 cHarNe2 if you print the stacktrace instead of 'ioexception' you will get more info Feb 28 14:34:32 is it me or is there little resource for learning loader + cursor + baseAdapter + sqlite (not a content provider) Feb 28 14:35:11 thank you all Feb 28 14:35:14 good day Feb 28 14:37:05 cHarNe2: change line 25 to e.printStackTrace(); Also, strongly consider using the Log class. Feb 28 14:37:25 cHarNe2: http://developer.android.com/tools/debugging/debugging-log.html Feb 28 14:37:52 the Log class methods all have a version that take an exception at the end, and will properly emit the exception and its stacktrace. Feb 28 14:39:00 xorgate, lov : thanks! will try this :) Feb 28 14:45:01 is there a good way to do image cropping which works cross all devices? Feb 28 14:45:11 i am currently trying this: http://www.androidworks.com/crop_large_photos_with_android Feb 28 14:45:45 embfoo: write your own would be a sure solution to that Feb 28 14:45:46 that seems to be close but is setting the cropped image as the device wallpaper for older motorola phones. Feb 28 14:46:05 ugh, such a pain, thanks :) Feb 28 14:46:53 mornin Feb 28 14:50:20 lov: Log is working great, but i dont see where it prints the stacktrace. Feb 28 14:50:48 e.printStackTrace() ? Feb 28 14:50:50 cHarNe2 just do e.printStackTrace() Feb 28 14:51:01 then look at logcat Feb 28 14:51:20 ohh, my bad. sorry Feb 28 14:51:50 i thought it would pop up as if it would crash :) Feb 28 14:52:06 it would be hard to read a stack trace in a dialog Feb 28 14:59:57 Session: an attempt was made to open a session that has a pending request. Feb 28 15:00:00 facebook anyone ? Feb 28 15:00:24 tagrudev: no, email facebook about it. Feb 28 15:04:03 I want to overlap an image over the rest of the layout below it . What is the best way of doing this? Feb 28 15:04:35 Right now my image is shrunk to within the size of the RelativeLayout and only the center of it is shown. Feb 28 15:04:38 Looks ugly as hell Feb 28 15:05:11 make the view that holds it full screen ? Feb 28 15:05:24 I have a db transaction with more then 50k query performed. I need to execute them in a single transaction. At some point during this transaction the garbage collector goes mad and start to slow down everything... do you have some idea to make it quicker without breaking the database consistency? Feb 28 15:05:42 selar1: your attempting to describe something visual, and not doing it very well :) Feb 28 15:05:53 haha :) Feb 28 15:06:40 lov: it was a premission thing, added a row to the manifestfile and it seems to work, thanks for the help :) Feb 28 15:06:46 selar1: to avoid confusion, you should ask that question is pastebin of layouts, noted references and maybe an image/screenshot Feb 28 15:07:05 cause your always gonna get people not quite grasping where you are currently and what you want Feb 28 15:07:07 :) Feb 28 15:09:14 StingRay_: http://tinypic.com/view.php?pic=348myvd&s=6 Feb 28 15:09:41 the top is what you have ? Feb 28 15:09:46 the bottom is what you want ? Feb 28 15:09:47 yes Feb 28 15:09:56 I want it to overlap Feb 28 15:09:58 you dont want to use a scrollView ? Feb 28 15:10:06 no scrolling Feb 28 15:10:13 I want to display the full image Feb 28 15:10:35 full image + bottom != true Feb 28 15:10:38 ? Feb 28 15:10:53 your wanting it to be off the bottom AND display full image ? Feb 28 15:10:58 Its actually not showing the entire top right now either Feb 28 15:10:59 sorry, that makes no sense Feb 28 15:11:40 Stingray_ have you tried any of the sleep cycles? like uberman? Feb 28 15:11:41 I want the whole image to be displayed and its okay that it covers the bar Feb 28 15:11:54 which was the rectangular shaped thing I draw. Feb 28 15:12:46 selar1: although I dont know what you want, the answer will be imageView + scaleType + (maybe) negative padding Feb 28 15:13:21 Trinity: no, mine is simpler Feb 28 15:13:24 alright, Ill look it up. I know Java but the layouts of android, not so much Feb 28 15:13:26 Thx Feb 28 15:13:32 sleep when not able to work Feb 28 15:13:39 wake when rested and can work Feb 28 15:13:40 :) Feb 28 15:13:56 so sometimes I have 26 hour days Feb 28 15:13:59 hey guys Feb 28 15:14:04 sometimes 28 Feb 28 15:20:55 lov: System.setProperty("http.keepAlive", "false"); - this is work around. (yes i know it is famous but and not correct but it helps) Feb 28 15:27:56 hello Feb 28 15:31:25 Hi Feb 28 15:35:01 Hey, so i made a java library (zip/unzip helper utils) and when i load and run this library I get a crash of java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets Feb 28 15:35:09 I use standarcharsets for the encodings Feb 28 15:37:36 in my android application Feb 28 15:38:50 Hello Feb 28 15:39:11 I'm looking for a little help with implementing an additional Lockscreen to the AOSP Feb 28 15:39:16 Its part of my bacherlors thesis Feb 28 15:40:06 And I don't really know where to start Feb 28 15:42:15 Tassilo: start with reading and understanding the existing code perhaps? Feb 28 15:43:02 Yeah I tried that. But I don't really get how all the classes work together Feb 28 15:43:07 Tassilo: start with source.android.com I guess Feb 28 15:43:13 Feeel kinda dumb i picked this topic Feb 28 15:43:15 specific questions are great? Feb 28 15:43:25 also, bear in mind that the lockscreen is a little bit hacky as it is Feb 28 15:43:40 I know how to write Apps for android Feb 28 15:43:41 you can probably peek at cyanogenmod to see their lockscreen replacement/improvements Feb 28 15:43:50 it may or may not help Feb 28 15:44:10 Is there any kind of documentation avout the keyguard? Feb 28 15:44:14 except the "javadoc" Feb 28 15:44:28 an uml would be great :P Feb 28 15:47:00 ok, so standardcharset is from 1.7... Feb 28 15:48:37 Tassilo: hahaha. Feb 28 15:48:43 (no) Feb 28 15:51:32 Tassilo: it's not that many classes in com.android.internal.policy.impl.keyguard :) you could create your own uml ;) Feb 28 15:53:41 dont forget about the settings.apk and many other shit :D Feb 28 15:55:47 start small is probably a good idea ;) Feb 28 15:55:58 first step i could not do was adding an additional setting Feb 28 15:56:13 ill try again :P Feb 28 16:01:51 I'm trying to figure out the best way to go about handling an adapter and onItemClick for a ListView that's using JSONArray/JSONObject with the IDs from the remote database being UUIDs and not numeric data. Any thoughts? Feb 28 16:02:14 Can someone explain why starting NotificationService a second time makes the the old timer show same String as the new one? http://pastebin.com/pWYZ6UHu When I used IntentService and onHandleIntent() it was working fine. Feb 28 16:03:31 please kill me Feb 28 16:04:21 it's something \o/ Feb 28 16:04:36 /o\ Feb 28 16:04:43 true :D Feb 28 16:05:27 very helpful as always Feb 28 16:09:19 Maybe I should try with IntentService and a wakelock instead Feb 28 16:16:14 any idea where i can find the layoutfiles for the lockscreens? Feb 28 16:23:40 hm i have a normal string without "|" in it, then i TextUtils.split(s, "|") and the resulting array just has individual letters per item Feb 28 16:24:57 hello Feb 28 16:25:31 hmm i should have used "\\|" Feb 28 16:27:17 i want to include a binary in my apk such that i can execute it later with exec. what'd be the best way? include in assets and extract to file system? Feb 28 16:27:44 i hope it's not a VIRUS Feb 28 16:29:59 EPG, can you guarentee that the binary is compiled for the arch? Feb 28 16:30:33 kaneda^, no, but that's a question i approach later (if needed) Feb 28 16:30:52 EPG, sounds like you're trying to use someone else's payload, go back the way you came Feb 28 16:31:58 ok, anyone here without prejudices who can help me? Feb 28 16:40:16 in java for pc, all classes from java.lang.* are imported automatically. which package(s) does android do this with? Feb 28 16:42:51 java.lang. Feb 28 16:43:07 android doesn't change this in any way afaik Feb 28 16:43:11 this is why you have to import Context, etc. Feb 28 16:43:51 how could I implement something like this: I've got any kind of server app running on my android and it listens on port x. now I want to put a proxy/forwarder in front of it, which just listens on port y and forwards everything to port x. Feb 28 16:43:54 EPG: yeah, sticking it in your assets then extracting is probably the most appropriate. Feb 28 16:44:13 as mentioned, you get to deal with different ARM versions, MIPS, x86, etc. Feb 28 16:44:48 mystiiq: have a server listen on y which then in turn tunnels to x when connected, and then just passes data back and forth? Feb 28 16:44:52 I don't understand the question. Feb 28 16:45:38 lov -> i cannot find Activity under java.lang. i think it is imported automatically. Feb 28 16:45:58 mystiiq: presumably the server running on port X isn't your code? Feb 28 16:46:28 are you trying to intercept something? Feb 28 16:47:30 lov -> maybe not. i see it's in android.app package and i have it imported Feb 28 16:48:02 Leeds: not really, it pretty much just forwards data back and forth between local server and external clients Feb 28 16:48:23 then what are you actually trying to achieve? Feb 28 16:50:23 Leeds: I'm hoping to use NAT punch through so that smartphone would be accessible from a remote network Feb 28 16:50:32 BullShark: glad I could help? Feb 28 16:51:06 Leeds, your network probably wont allow inbound connections Feb 28 16:51:14 err Feb 28 16:51:19 not Leeds Feb 28 16:51:24 mystiiq, Feb 28 16:52:17 just VPN to your home network and port forward from your router to your vpn'ed device Feb 28 16:52:19 problem solved Feb 28 16:52:27 canadiancow: well, the idea is to at least try it Feb 28 16:52:55 can you ping your device? Feb 28 16:53:12 like before you write any code, you should test whether it's possible Feb 28 16:53:16 and i know it's not possible on many networks Feb 28 16:53:25 so if this is something you plan on releasing... it won't work Feb 28 16:53:50 mikedg: well, it's more of a research thing, of course there are several ways to do it efficiently Feb 28 16:55:12 mystiiq: my assumption is that you're making a connection OUT from Y, which you're going to then tunnel and pass through to X, correct? Feb 28 16:55:20 that could work. Feb 28 16:55:42 lov: exactly Feb 28 17:00:18 Good idea to have an e-mail function in preferences sending debug log to developer? :P Feb 28 17:06:11 Morning, Morning.. What's the quickest way to throw a flag via logcat? Log.d() ? Feb 28 17:06:16 ah mystiiq that could owrk, but it will drain your battery :P Feb 28 17:06:21 "throw a flag" ?? Feb 28 17:07:55 canadiancow: most likely, but that problem is out of my domain. Feb 28 17:09:08 canadiancow: Yeah, Since "echo "Function 47 called";" is right out.. And do you know how tempted I am to yell "Moose!" at you ? Feb 28 17:09:58 lov -> yes, thank you Feb 28 17:12:55 flag thrown on the play, 10 yards receiving team, TOUCHDOWN Feb 28 17:16:29 * Bleeptech pokes canadiancow with a stick.. Feb 28 17:20:29 . Feb 28 17:21:55 Quick q: In layout file I get xml error (not well-formed, invalid token) for following line:xmlns:android="http://schemas.android.com/apk/res/android" Feb 28 17:22:04 any ideas? Feb 28 17:22:43 nothing obvious to me... Feb 28 17:22:51 has anyone setup NDK on windows? Feb 28 17:23:14 is it even worth going through the trouble? Perhaps I should just dual boot Feb 28 17:23:45 Nvida has a windows installer etc Feb 28 17:23:48 for all platforms Feb 28 17:23:57 only sane way I have seen to do it at all Feb 28 17:24:23 I'm not comfortable installing Cygwin. Feb 28 17:24:51 TheBunnyZOS, can you hook me up with a link? Feb 28 17:25:21 and do ALL android devices and NVIDIA Tegra? Feb 28 17:25:41 RustyShackleford: I've used Cygwin on and off for years.. I use it if I'm required to use a Windows machine just to get basic shell tools.. :) Feb 28 17:25:43 *devices have Feb 28 17:26:35 sharris595: uh, are you actually sticking a span tag into that? Feb 28 17:26:41 sharris595: or is that just an artifact of copying this? Feb 28 17:26:59 sharris595: because you really ought to just have xmlns:android="... Feb 28 17:28:27 Tegra part does not matter Feb 28 17:28:40 I ran the NDK nvida stuff on a Gen 1 Fire just fine etc Feb 28 17:38:09 I am running out of ideas here: I have a view covering the whole screen. It has several buttons beneath... and if I click on the cover view, it will forward all clicks to the buttons....how to prevent this? Feb 28 17:41:36 is it really 'covering' it? Paste the layout file somewhere perhaps? Feb 28 17:42:45 Bleeptech, Log.[vdiwe]("tag", "function 47 called"); Feb 28 17:43:22 kbs, I can see the view covering the buttons....it's a transparent view. Feb 28 17:43:48 kbs, unfortunately I inject this view dynamically...it's some kind of a dialog you could say Feb 28 17:44:31 kbs, it's only half transparent...so I can see where the view actually is Feb 28 17:44:42 Question: Is there any sort of Live SQL debugging tool I can use to debug the SQL database in my app? Feb 28 17:44:44 mephju: pastebin or gtfo. Feb 28 17:44:46 Handle clicks on your transparent view Feb 28 17:45:24 I got something better: /home/mephju/Dropbox/Public/moboqo/device-2013-02-19-163553.png Feb 28 17:45:26 shit Feb 28 17:45:29 Some queries aren't running but I can't figure out why and it'd be great if I had a way to directly access the SQLLite DB during program run to see data as its being added, updated or removed. Feb 28 17:45:41 https://dl.dropbox.com/u/19948722/moboqo/device-2013-02-19-163553.png Feb 28 17:45:45 it look like this Feb 28 17:46:08 looks*; and I can still press the button you can see in the upper corner. Feb 28 17:46:35 canadiancow: Yeah, I got that.. I'm stuck trying to get the tag defined.. I get a "Constants must be in a seperate file" error. Feb 28 17:46:44 ?????????? Feb 28 17:47:17 oO Feb 28 17:48:19 And I'm down to 1 monitor so I'm doing the Alt-Tab shuffle.. Feb 28 17:49:52 mephju: PASTEBIN YOUR LAYOUT PLEASE. Feb 28 17:50:14 a screenshot is nice and all but we'd like to see your actual XML layout! Feb 28 17:50:19 hey Feb 28 17:50:31 lov, it's dynamically injected into the contentView parent Feb 28 17:50:44 So handle any clicks on the transparent view Feb 28 17:50:55 Override onTouch, set a click listener.. Do something Feb 28 17:50:55 I use textView.setText(Html.fromHtml("foo")); and the formatting works fine. Feb 28 17:51:05 Sometimes (in about 99% of all cases) Feb 28 17:51:09 but sometimes it doesn't Feb 28 17:51:20 then it just shows the plain text " any idea on that? Feb 28 17:53:49 SimonVT, that's what I tried first. and it seems to work...but then I get click sounds if the border is clicked. How to remove those click sounds? Feb 28 17:54:43 this 99% thing makes that bug especially hard to spot Feb 28 17:55:01 be it mine or Androids. It's more probable that its mine :P Feb 28 17:55:42 SimonVT, never mind. there is a method to disable sounds Feb 28 17:56:11 thank you, SimonVT, kbs, lov Feb 28 17:56:17 I cast the spannable to a CharSequence, then I add it with setText Feb 28 17:56:30 may it - under ANY conditions - happen that the "spannable"info gets lost or sth? Feb 28 17:56:53 the thing is that this textview sometimes shows Spannables and sometimes it shows plain String's. Feb 28 17:57:00 Maybe TextView gets confused.. :P Feb 28 17:58:39 Casting it to a charsequence seems reduntant Feb 28 17:59:00 SimonVT, well, that's because it sometimes is a String Feb 28 17:59:22 tv.setText(generateThingy()); generateThingy returns charsequence as iti sometimes returns String, somteimes Spannable Feb 28 17:59:27 *darn my writing* Feb 28 17:59:38 Both are charsequences Feb 28 17:59:43 i know. Feb 28 17:59:49 thus I made it return charsequence.. Feb 28 18:00:28 That doesn't explain the casting Feb 28 18:00:48 ? Feb 28 18:00:56 Nevermind Feb 28 18:00:59 :) Feb 28 18:01:15 cast-due-to-common-return-type Feb 28 18:01:45 redundant-cast-due-to-common-return-type Feb 28 18:01:56 what would you do? Feb 28 18:04:10 SimonVT, ^ Feb 28 18:04:11 I'm just imagining you doing return (CharSequence) someSpannable; Feb 28 18:04:46 it would cast intrinsically I guess, but it all is a lot more complicated - there's a reason for it ;) Feb 28 18:05:03 thus, cast is not redundant. Feb 28 18:06:41 :) Feb 28 18:07:08 is there any way to improve on this? http://pastebin.com/WMLjhfRv Feb 28 18:08:10 that looks fine to me Feb 28 18:08:57 Are you only showing every other item? Feb 28 18:09:03 yeah Feb 28 18:09:12 Wouldn't you need to use Math.floor Feb 28 18:09:22 Otherwise it'd return count = 5 for 9 items in an array Feb 28 18:09:35 Wait Feb 28 18:09:41 :) Feb 28 18:09:53 WTH does ^ private static final String TAG = "DEV_DEBUG"; ^ throw a token error and tell me to delete from String ... "; ? Feb 28 18:10:37 My math failed me for a minute Feb 28 18:10:39 if it's getting read in memory anyway, seems simpler to me to just trim the array at the beginning :-) simpler code, etc. Feb 28 18:11:22 You could extend BaseAdapter and save having to implement a lot of those methods :p Feb 28 18:11:36 i thought about that Feb 28 18:14:19 Bleeptech, do you know java? Feb 28 18:14:52 and can you pastebin the whole file Feb 28 18:16:09 SimonVT: i guess an improvement is to keep inflater as a private member instead of a local variable so i only have to get one instance Feb 28 18:16:40 Im looking at some code which does some animation. From within the onDraw method in the view, it calls invalidate - isnt this very wrong to do? IMO it would cause this method to be invoked endlessly? Feb 28 18:17:06 birbeck: But think about the memory usage of a layoutinflater! Feb 28 18:17:26 Wonder if it's the same instance anyway Feb 28 18:17:33 canadiancow: http://pastebin.com/30WMqByd Feb 28 18:17:46 yeah i was wondering what the underlying impl returns Feb 28 18:17:51 I lol'd Feb 28 18:17:54 anyone=? Feb 28 18:18:07 but you think an inflater is big? Feb 28 18:18:28 ok yeah Bleeptech Feb 28 18:18:35 you should go read up on java a bit more Feb 28 18:18:39 canadiancow: Some.. With C/Lisp/Pascal which gets in teh way if my brain slips gear.. LOL Feb 28 18:18:47 you cant declare a constant outside of a class Feb 28 18:18:49 birbeck: Not really Feb 28 18:19:57 I usually don't bother caching it. Since you only have 1 view type, once the listview is shown, it's just recycling the same views and Feb 28 18:20:01 -and Feb 28 18:20:10 No more inflation Feb 28 18:20:13 canadiancow: OK.. So then http://log4think.com/debug-android-logging/ is full of crap.. :) Feb 28 18:20:32 yes Feb 28 18:20:48 that doesnt even make sense Feb 28 18:21:23 Damn Google.. ROFL.. Feb 28 18:21:38 that's not a Google site... Feb 28 18:22:08 selar1: in theory, invalidate() effectively posts an event to the message queue of the UI thread (rather than calling onDraw() on the stack later on.) Feb 28 18:22:49 Hehehe.. I didn't even end up with a Google site in the first page of results. Feb 28 18:22:59 http://developer.android.com/reference/android/util/Log.html Feb 28 18:23:04 Tip: A good convention is to declare a TAG constant in your class: Feb 28 18:23:04 private static final String TAG = "MyActivity"; Feb 28 18:23:11 kbs: So? Its a no no to call invalidate() on the same view from within its onDraw? Feb 28 18:23:11 Notice how it doesn't say "outside your class" Feb 28 18:23:24 kbs: effectively causing endless refresh? Feb 28 18:23:37 Isn't that what an animation is? Feb 28 18:23:39 selar1: meaning it doesn't cause a stack overflow, but it does call an endless refresh loop Feb 28 18:23:41 SimonVT: looking at the LayoutInflater source, its not caching the inflaters. infact new LayoutInflater(context) looks to be better than LayoutInflater.from(context) Feb 28 18:24:38 kbs: exactly, but an animation that has ended in one place and is now static, why should it continue to do its ondraw continuously? Feb 28 18:25:11 shouldnt it rather disappear and be replaced with an image? Feb 28 18:25:32 It shouldn't continue to invalidate if it's no longer animating Feb 28 18:25:51 Im thinking about using unnecessary resources and thereby battery Feb 28 18:25:53 thank you Feb 28 18:26:09 But that's not what you asked Feb 28 18:26:10 :) Feb 28 18:26:23 Well thats what I meant Feb 28 18:26:47 Im quite new to android and had to take over some android app which does exactly this Feb 28 18:26:56 And couldnt really grasp Feb 28 18:26:59 why Feb 28 18:26:59 hmm.. isnt there a way to mark certain lines in Eclipse to remember to check them later? Feb 28 18:27:10 todo? Feb 28 18:27:20 or like bookmark in intellij? Feb 28 18:27:25 like a highlight marker or something Feb 28 18:28:17 Quacked: //TO DO maybe Feb 28 18:28:39 Odd.. Moved it into the function, Then had to drop the "private static final" to get it to work. Feb 28 18:28:40 or right click add task Feb 28 18:30:08 It's not showed in a different color though Feb 28 18:30:10 birbeck: It seems that it caches the layoutinflater Feb 28 18:30:31 its //TODO Feb 28 18:30:39 Quacked: Feb 28 18:30:44 should be blue in eclipse Feb 28 18:31:06 birbeck: Yep, it does Feb 28 18:34:11 //TODO after a line makes it a task, but its not blue Feb 28 18:34:27 the line of the cursor is blue Feb 28 18:35:39 Bleeptech, no Feb 28 18:36:03 canadiancow: ??? Feb 28 18:36:07 public class Whatever { private static final String LOG_TAG = "whatever"; public void myMethod() { Log.e(LOG_TAG, "blah"); }} Feb 28 18:36:12 Put it in your class Feb 28 18:36:13 you put it in the class Feb 28 18:36:17 Not outside your class, not in a method Feb 28 18:36:19 In your class Feb 28 18:38:23 selar1: yeah, I can see now that the word //TODO itself is in blue Feb 28 18:38:34 a minor difference from the default green, hehe Feb 28 18:38:40 but I want the entire line if its possible Feb 28 18:39:12 You can see todos in a list in the IDE Feb 28 18:39:23 should be easier to just click on them instead of manually navigating Feb 28 18:41:43 canadiancow: I moved it into doFileUpload() then just chopped it to String TAG="blah"; and it's working. Feb 28 18:42:16 working != optimal Feb 28 18:42:17 selar1: yeah, but I would like a highlight as well :) Feb 28 18:43:24 anyone read the commonsware book? Feb 28 18:43:40 aside from the guy who wrote it who I bet is hanging around Feb 28 18:43:46 you can probably configure Feb 28 18:43:52 in the editor settings Feb 28 18:44:16 canadiancow: With the hell I've been having with this I'll settle for "working" and figure out "optimal" as I go. :) Feb 28 18:44:28 working is optimal Feb 28 18:44:31 badumsha! Feb 28 18:46:07 selar1: I was only able to change color of the //TODO mark, not the entire line Feb 28 18:47:11 ugh had to do a complete format today, so lost all my dev tools Feb 28 18:47:33 I heard something about a version of eclipse that contained the SDK etc in one package Feb 28 18:47:38 any idea where that can be found? Feb 28 18:48:14 belgianguy: you mean ADT bundle from... i forget the name now... Feb 28 18:48:28 http://lmgtfy.com/?q=eclipse+with+android+sdk Feb 28 18:48:28 StingRay_, yeah, that one Feb 28 18:48:31 belgianguy: d.android.com :P Feb 28 18:48:41 belgianguy: it's the default download now. Feb 28 18:48:42 well, d'oh Feb 28 18:48:42 thats it Feb 28 18:48:46 :) Feb 28 18:48:50 eclipse + cdt + adt = android ndk ready Feb 28 18:48:59 adt-bundle-linux-x86.zip Feb 28 18:48:59 nice Feb 28 18:49:10 back in my day, we had to do it all ourselves Feb 28 18:49:18 but this is good Feb 28 18:50:28 kaneda^, is the NDK not seperate? Feb 28 18:50:30 Back in my day, I just installed intellij Feb 28 18:51:10 SimonVT, IntelliJ is lightyears ahead of Eclipse, and I'll be using that as soon as my NDK endeavour is done Feb 28 18:51:13 SimonVT: isn't intellij just an attempt to make an ide similar to xcode ? Feb 28 18:51:17 :) Feb 28 18:51:23 I even submitted a bug to IntelloiJ :p Feb 28 18:51:35 I've never used xcode, so I wouldn't know Feb 28 18:51:50 oh then it def. is!! Feb 28 18:52:07 IntelliJ even looks nice Feb 28 18:52:09 SimonVT: Back in my day it was grab a pad of gragh paper and a 6502 opcode cheat sheet... Feb 28 18:52:33 Bleeptech: http://s.android.com/tech/dalvik/dalvik-bytecode.html Feb 28 18:52:36 have fun ;) Feb 28 18:53:24 JesusFreke: No thanks.. I gave it up for lint.. Feb 28 18:55:50 ugh, I'll have to setup ndk-gdb again, noooooo Feb 28 18:56:39 and seems I need Java, too, lol Feb 28 19:03:53 nice to see they added a splash screen though Feb 28 19:03:56 and an icon Feb 28 19:11:05 is the bundle really preferable to the old fashion way Feb 28 19:11:11 or is it just convenient for installation purposes Feb 28 19:12:56 preds, for me convenience is preferable Feb 28 19:13:20 this job i am looking at uses eclipse + adt + ant Feb 28 19:13:30 i dont know that i could go back to eclipse and ant Feb 28 19:13:43 i dont think i've ever actually built an ant file though Feb 28 19:14:14 they also use macs... eww Feb 28 19:14:33 ubuntu + intellij + maven = happy birbeck Feb 28 19:14:40 at least you don't have to muck around with udev files ;) Feb 28 19:15:03 never used intellij or maven tbh Feb 28 19:15:03 you only have to do that once... or run adb as root Feb 28 19:15:16 but actually on my new computer i never had to touch udev Feb 28 19:15:19 maven is for masochists Feb 28 19:15:25 i see to have somehow lost the status bar at the top and the soft home/back buttons after rebooting my android tablet Feb 28 19:15:34 anybody happen to know what could cause that? Feb 28 19:15:49 clever: posting a silly question like that in #dev Feb 28 19:16:09 i havent changed anything that could cause that Feb 28 19:16:31 clever, did you reboot, AGAINi? Feb 28 19:16:38 kaneda^: *tries* Feb 28 19:17:43 kaneda^: weird Feb 28 19:17:48 mmhmm Feb 28 19:17:56 what could cause it to fail to start up like that? Feb 28 19:17:59 anyone know where the android eclipse logo (the green one) is stored on Ubuntu? Feb 28 19:18:05 clever, do you have fast boot/shutdown enabled? Feb 28 19:18:10 and persist thru 'adb shell stop;adb shell start' Feb 28 19:18:14 I'd like to add it to Unity, but if I start it, it doesn't point to Eclipse Feb 28 19:18:21 kaneda^: whatever is default on this build, havent messed with that Feb 28 19:18:22 clever, that doesnt modify the window manager... Feb 28 19:19:32 thanks lov, I'll try it this way Feb 28 19:19:47 kaneda^: ive got a bone to pick with you Feb 28 19:20:05 mikedg, alright, have at it Feb 28 19:20:24 dude you stole my money Feb 28 19:20:34 i did not steal your money Feb 28 19:22:32 * kaneda^ fans himself with a palm-full of bills Feb 28 19:22:37 hot today ;) Feb 28 19:24:31 lol Feb 28 19:26:45 this Dialog, http://pastie.org/6355908 is misbehaving. Whenever I reach it, I enter my phone number and I press Save, it accepts but runs parentCtx.finish() at line 11, a statement which should have been listening to Cancel action (meaning I pressed back) Feb 28 19:27:01 so I enter my phone number > save > app exits Feb 28 19:27:18 I just want it to exit when I DON'T enter a phone number; when I try to avoid it Feb 28 19:35:14 do you NEED Cygwin to use NDK on windows? Feb 28 19:35:34 MinGW maybe? Feb 28 19:36:26 you definitely need something Feb 28 19:37:49 Sicp: you are cancelling the dialog Feb 28 19:37:52 of course it's going to call cancel Feb 28 19:38:01 I see, I am defining what happens when dialog.cancel() is called Feb 28 19:38:11 this is the silliest question since who shot JR? Feb 28 19:38:13 so whenever I call it from wherever, it's going to close the activity (parentCtx) Feb 28 19:38:31 dismiss the dialog Feb 28 19:39:00 hey all, anyone ever seen a good example of a 3d cube transition? Feb 28 19:39:06 between two activities Feb 28 19:39:26 I want to close the parent activity when the user tries to cancel the dialog Feb 28 19:39:35 I dont want to dismiss the dialog unless I've got what I wanted Feb 28 19:39:40 (i.e. input) Feb 28 19:40:03 Sicp: is that not just a bit of logic ? Feb 28 19:40:12 I am trying, but asked prematurely Feb 28 19:40:17 mikedg, i now understand that reference thanks to the lack of ideas from every TV writer ever! Feb 28 19:40:23 if it's cool, dismiss Feb 28 19:40:28 if not cancel Feb 28 19:40:30 Sicp: i dont get it now Feb 28 19:41:38 so the dialog stays open but the parent activity gets finished? Feb 28 19:42:26 one moment Feb 28 19:44:33 I just did a simple check on the field I wanted to have the input in; if cancel was called (which is going to happen after saving the input) and there was data in the field, dismiss the dialog, else kill everything Feb 28 19:47:29 Hi Feb 28 19:47:41 who uses maven with android development? Feb 28 19:50:41 Hey guys. If I want to clear app data from within the app itself, such that its the same result as hitting clear data in the app manager menu, how would I do that? SO has a few examples that say deleting everything getCacheDir().getParent() works but it seems a little hacky. Any ideas? Feb 28 19:50:55 do you have problem using eclipse m2e plugin, apklibs dependencies? Feb 28 19:51:25 Any ideas why my IntentService stops working after a couple hours? http://pastebin.com/wMbW0pRn Feb 28 19:51:43 jayd16: that's basically it. You'd enumerate the files in your own cache/data dirs and unlink them Feb 28 19:51:48 It stops updating my notifications Feb 28 19:52:19 dragorn: you dont think that will get broken in a patch any time soon? Feb 28 19:52:30 Quacked: not sure but would you not want to use a service that is supposed to continue ? Feb 28 19:52:34 like service Feb 28 19:52:42 rather than intentService Feb 28 19:52:50 extracting works like a charm, thanks again, lov :) Feb 28 19:53:05 jayd16: you define and create your data; you can erase it. So long as your app then gracefully handles shutting itself down and knowing that data disappeared out from under it Feb 28 19:53:33 dragorn: cool, just wanted to double check. Thanks! Feb 28 19:54:29 StingRay_: I was hoping to override that with the wakelock I'm setting Feb 28 19:54:38 jayd16: you should be able to manipulate anything you created in your app data store; clear app data is sort of a hammer for "it's so corrupt it cant start itself" Feb 28 19:55:07 Quacked: well sounds like you need a service rather than intentService Feb 28 19:55:31 My problem was that with the Service, the newest notifcation would override the content of the old notification Feb 28 19:55:40 And I couldn't find out why :) Feb 28 19:57:23 Quacked, you shouldnt be using an intentservice Feb 28 19:57:32 the whole point of an IS is that it shuts down when it finishes processing Feb 28 19:57:38 receive intent, do something, shut down Feb 28 19:57:48 Here is my attempt at Service: http://pastebin.com/1Z131p4t Feb 28 19:59:00 If that Service is started more than once (multiple countdowns), all Notifications will be the same as the newest Feb 28 20:00:34 Are you able to spot the error? :) Feb 28 20:01:18 hey guys, any idea why I have lot of call (createview) on my Fragmentactivity ? its hide my fragment :-( Feb 28 20:02:23 In my log I see lot of "onCreateView", on time i create/createview my fragment and after again lot of my fragmentactivity.. Feb 28 20:03:28 Activity#onCreateView is called for every view that's inflated Feb 28 20:04:12 You should know why, how and what it does before you override it Feb 28 20:05:22 I call my fragmentactivity like an other activity. In my xml I call my Fragment. That's all ?! Feb 28 20:05:23 :/ Feb 28 20:05:38 Why are you overriding Activity#onCreateView ? Feb 28 20:07:49 well, I removed my Activity#Oncreateview and it's seems better but I haven't my fragment :) Feb 28 20:08:39 I have a linear layout with a listview, the items are clickable, however I would like the entire view to handle onClick Feb 28 20:09:10 for example my listview only takes up the upper half of the screen, if I long click the bottom (or anywhere) i would like to handle that Feb 28 20:09:38 setting my parent layout to clickable and making an onclick listener isn't working Feb 28 20:10:13 any ideas? Feb 28 20:10:27 thank you SimonVT , if you have an idea why I haven't my fragment it will be awesome :-) Feb 28 20:10:49 Because you're using fragments wrong Feb 28 20:11:17 ? :/ Feb 28 20:12:14 In my log I have : Fragment (create and createview) and after I have fragmentactivity (create) :-(( Feb 28 20:14:52 Just a wild idea.. How about you pastebin some code. Then people can see what you're actually doing, and maybe even tell you what you're doing wrong Feb 28 20:16:21 too easy Feb 28 20:18:37 http://pastebin.com/WCzmWMYy Feb 28 20:19:08 SimonVT, if you need more ... :/ Feb 28 20:19:10 .. Feb 28 20:19:13 android:layout_width="0px" Feb 28 20:19:39 Pretty small fragment Feb 28 20:19:49 omg >< Feb 28 20:21:50 Thank you very much SimonVT \o/ Feb 28 20:23:07 SimonVT, is it an error in http://developer.android.com/guide/components/fragments.html#Example ? Feb 28 20:23:24 No, they use linearlayout and weight Feb 28 20:24:05 You're supposed to set the size to 0dp when you use weight Feb 28 20:25:42 Ok fine, i copy/paste between my layout-large :-( and it's a linearlayout. Feb 28 20:25:49 thank you. Feb 28 20:26:25 are loaders supposed to monitor data sources like sqlite db, and auto update if that data changes ? Feb 28 20:26:48 or only content provider stuff Feb 28 20:27:40 If that's what the Loader implementation you're using does, then sure Feb 28 20:28:14 well actually using this https://github.com/commonsguy/cwac-loaderex Feb 28 20:28:21 That's like asking if fragments are supposed to show a listview Feb 28 20:32:21 is there a way to put line breaks in a Linear Layout? Feb 28 20:34:30 what is a line, and how would you break it? Feb 28 20:34:47 skipping a line Feb 28 20:34:56 * SimonVT Like.. Li Feb 28 20:34:59 nearLayout Feb 28 20:35:37 You're still not making sense Feb 28 20:35:50 nug700: what is a line? Feb 28 20:36:00 nug700: add a textview and put \n in the text Feb 28 20:36:15 oGMo: you are the worst. Feb 28 20:36:18 or add an image like "-------\-------" Feb 28 20:36:31 yea.. I knew about that, but was just woundering if there was a better way Feb 28 20:36:47 <\n> hai Feb 28 20:36:50 Anyone able to see why my notifications get the same text if I do startService() to start this NotificationService more than once? For every startService I have a new alarmId, secondsToAlarm and buttonStr set with putExtra(). http://pastebin.com/1Z131p4t Feb 28 20:37:09 <\00> damnit \0 was taken :( Feb 28 20:37:25 nug700: do you mean "add space between things"? Feb 28 20:37:38 oGMo: exactly Feb 28 20:37:47 hmm Feb 28 20:38:11 i'm guessing "add space linearlayout" has a lot of hits on google Feb 28 20:38:18 <\quit> how can i animate changing the title in the actionbar? Feb 28 20:38:31 (if that's even a good idea, i have nfc about widget-level stuff these days) Feb 28 20:38:46 <\quit> oGMo: so does "jennifer lawrence nude" but there's not useful sites Feb 28 20:41:30 <\quit> JakeWharton: how do i animate a ducking title change in the actionbar Feb 28 20:41:39 custom view Feb 28 20:42:05 <\quit> too much effort Feb 28 20:42:09 <\quit> can you add this to ABS 4.2.0 Feb 28 20:42:26 no Feb 28 20:42:32 <\quit> why not Feb 28 20:43:03 two reasons: it's ugly, and it would only affect Android 3.2 and prior Feb 28 20:44:39 If I can ask an advice : I would like to create a fragment menu (who call other fragment, extends ListFragment). If I implement an interface in my fragmentactivity it's a good way for play with my fragment ? Feb 28 20:46:42 hi, i don't know if anyone here can help me with this question. i'm from barbados and would like to publish an app to the play store, but barbados isn't listed as a distribuing country. is it possible for me to publish under a different country? i wouldn't be publishing any paid apps so payment wouldn't be an issue Feb 28 20:46:59 If I'm going to migrate to the loopj http client libs do I need to remove the java.net.* imports? Feb 28 20:48:12 nblue: possibly, but you'd basically need to set up an account under another country. Feb 28 20:49:07 lov: a google account? Feb 28 20:49:27 nblue: you could try something like this also http://www.androidpolice.com/2013/02/25/google-play-alternative-yandex-store-available-worldwide-with-50000-apps-yandex-shell-upgraded-with-3d-ui/ Feb 28 20:49:44 (until your country is available) Feb 28 20:49:45 <\quit> JakeWharton: i cant use custom views in andorid 2.3? Feb 28 20:51:52 I'm getting an error that a certain text color needs API level 18 and the highest API I can download is 17? Any ideas? Feb 28 20:53:22 ryantbdm: It's just a wild guess, but that sounds like a code error.. Feb 28 20:53:40 list: what's the exact error Feb 28 20:54:04 Sorry for the nick change Feb 28 20:54:13 Hang on I'll screen shot it Feb 28 20:54:21 API level 18 doesn't exist, does it? Feb 28 20:54:27 (well, in the wild) Feb 28 20:54:34 correct, not in the wild Feb 28 20:54:42 g00s: i'm interested in getting into the play store Feb 28 20:58:05 nblue: basically, you'd need someone to purchase a developer account for you using a credit card from a region that's supported. At least that's my understanding. Feb 28 20:58:21 <\quit> nblue: ill do it Feb 28 20:58:27 me too Feb 28 20:58:29 <\quit> paypal me $69 dollars with a dirty message Feb 28 21:00:02 lov: i have a credit card with a US address.. i just live in barbados. I don't know how that will work out when it comes to payment (not that i am submitting a paid app) Feb 28 21:02:30 if you have a credit card with a U.S adress, then there should be no issue. Just use that account for any monitary transactions. Feb 28 21:02:44 an* Feb 28 21:05:14 nblue: it should be fine, as long as the billing address is in the US. Feb 28 21:08:51 ok, thanks Feb 28 21:18:26 isn't adb included in that dev package? Feb 28 21:18:49 seems I lost a good 2 weeks of code because I _thought_ I synced my data to Git Feb 28 21:18:59 but turns out it only was stored locally Feb 28 21:20:15 Hey again me (if you are here SimonVT or an other ;) ) I have my list from listfragment. I see i can make an adapter but I don't know how. Feb 28 21:21:08 Because my adapter should take a name for the UI and start the other fragment (if I have true, I should work with fragment activity ?) Feb 28 21:21:09 belgianguy, adb is in platform tools Feb 28 21:21:23 canadiancow, thanks, my head is a mess atm :( Feb 28 21:21:45 NDK isn't easy, not fun and losing so much data because I'm effin stupid really sucks Feb 28 21:22:52 does anyone here have any experience with irrlicht for android? (if here is the right place to ask) Feb 28 21:27:56 belgianguy: how is adb related to git syncing? Feb 28 21:29:48 what is a good way to check if an update affects asset files which were copied to memory? I've currently only a few files so I thought about storing the version number of the app in shared prefs, onCreate compare with current package's version number and then (if this number is greater) update the files (here: just copy them again). however, with many files this isn't feasible anymore, maybe use some hashes (stored both in memory and in the apk)? Feb 28 21:30:44 EPG: like, files updated out from under you? Feb 28 21:30:55 I thought updates kill the running app Feb 28 21:31:58 yes, but if the updated app starts again it must make sure that the files which are copied from assets are uptodate Feb 28 21:33:06 <\quit> EPG: why isnt that feasable Feb 28 21:33:42 <\quit> jrr: he's probably talking about internal storage or something Feb 28 21:34:10 EPG: you should probably be doing that anyway. You'll need to work out some sort of scheme. Feb 28 21:34:12 well, I think with too many larger files the overhead is too high if you simply copy them over Feb 28 21:34:14 I don't know what's meant by 'assets', perhaps the mechanism by which you can have downloads external to your apk Feb 28 21:34:37 EPG: you could always have a manifest written out which lists all of the files, their lengths, and their modified dates. Feb 28 21:34:54 the manifest also lists the most recent version. If the version is wrong, everything is out of date. Feb 28 21:35:11 if the version is right, only files which don't match the metadata there are out of date/corrupt Feb 28 21:35:14 * lov shrugs Feb 28 21:35:18 this is your job, nerd, figure this shit out. Feb 28 21:35:41 :D ok, thx Feb 28 21:36:00 P-l: lol. Now people will have even more problem with my nick :> Feb 28 21:37:08 hey p_l you already said me that one time ;) Feb 28 21:37:19 hmmm Feb 28 21:37:21 maybe Feb 28 21:37:35 got a bit stupefied tonight Feb 28 21:37:38 lame Feb 28 21:37:53 p_|: now we need someone with 1 instead of l Feb 28 21:38:53 hum no stress lI|1lIIl1|| I don't skeap lot of here ;) Feb 28 21:39:05 Noob in english and noob in android :-( Feb 28 21:39:38 s/skeap/speak Feb 28 21:39:44 EPG: where do you copy the files to? Feb 28 21:40:09 internal memory Feb 28 21:40:21 like a tumor Feb 28 21:40:28 "internal storage"? Feb 28 21:40:33 that's a filesystem, not typically called memory Feb 28 21:40:33 /data/data//files Feb 28 21:41:25 I'm with lov - check the timestamps Feb 28 21:41:44 hashing the files wouldn't be as costly as recopying, but it's still pretty costly Feb 28 21:43:48 yeah, hashing is probably more expensive than you'd like, but it's doable. Feb 28 21:43:54 much cheaper to check the timestamps. Feb 28 21:44:00 you could check the timestamps then hash to verify if they don't match. Feb 28 21:44:10 yeah, i thought about hashing them only locally before creating the apk and save the hashes too but this'd result in the same as using timestamps Feb 28 21:46:51 thats weird; my sdk manager is saying rev2 of analytics is available. I thought 2 was out for a while? Feb 28 21:49:03 * lov shrugs Feb 28 21:49:19 EPG: do some benchmarks. Figure out how long it takes to extract 5MB, vs how long it takes to get an MD5 sum of a file. Feb 28 21:49:36 if it's possible that someone just touched the timestamp and the file is ok, and there's a huge difference in time, it's worth the extra check. Feb 28 21:54:10 * brx_ wonders where all the UK android devs hang out Feb 28 21:54:46 brx_: right now? Pubs, I guess :P Feb 28 21:55:09 p_l prolly ye, i dot drink though :< Feb 28 21:57:56 heho Feb 28 22:00:56 cu Feb 28 22:04:12 i have a strange problem communicating with a service from an activity. I've defined a set of functions (most notably one returning a boolean) in my AIDL file, created the service stub for it with "return true" for that boolean function. i instantiate that service stub in my services onCreate. Feb 28 22:05:07 now, whenever i try to access that function from my activity in the onConnect() of a new ServiceConnection, i get false as a value of that method. no error is thrown, nothing. just false. inserting debug prints i've also seen that my service-stub method isn't called at al oO Feb 28 22:05:08 *all Feb 28 22:05:15 does anyone have some kind of tip for me? Feb 28 22:07:33 Nebukadneza: is the service in a different process than the activity? Feb 28 22:08:00 if not, there's not much reason to do the whole aidl file binder interface thing Feb 28 22:08:32 i'm trying to extend an existing project, so this is not completely my code. i believe its in a different process, yes Feb 28 22:08:34 p_l: fun http://tjake.github.com/blog/2013/02/18/resurgence-in-artificial-intelligence/ Feb 28 22:08:54 But yeah, I don't know offhand why you would be getting false. Feb 28 22:10:09 especially after it more or less successfully bound, right? Feb 28 22:11:33 its strange at least, right? its not me understanding something completely wrong, its strange? Feb 28 22:11:48 I don't understand it either, based on your description Feb 28 22:11:54 mhh Feb 28 22:12:05 g00s: yeah, good find Feb 28 22:12:15 I'd add that the stigma on AI seems to be lifting :D Feb 28 22:12:55 is there some way of checking the state of such a ServiceConnection? Feb 28 22:15:01 Nebukadneza: is the service in a totally seperate application? Feb 28 22:15:12 and if so, are you sure you pushed the new version :) Feb 28 22:15:37 not a completely separate app, no Feb 28 22:18:10 hey guys, I have a webview that loads an image with img src… wondering if I can do an imagemap on the webview? (that can work for various device sizes) Feb 28 22:18:49 JesusFreke: would you mind to have a little look at the actual code? Feb 28 22:19:03 sure, feel free to pastebin Feb 28 22:19:05 g'd damn, the sdk manager is flaky. every time i run it , different things show up. this time HAXM extensions are gone Feb 28 22:19:12 JesusFreke: one second Feb 28 22:22:34 http://indefero.ghostdub.de/index.php/p/yaxim/source/tree/muc/src/org/yaxim/androidclient/chat/ChatWindow.java#L191 here i make the serviceconnection to the service and try to call the boolean method that should return true... (or get called at all...) || http://indefero.ghostdub.de/index.php/p/yaxim/source/tree/muc/src/org/yaxim/androidclient/chat/XMPPMucServiceAdapter.java my very simple service adapter (simply calls the stubs method... Feb 28 22:22:34 ) || http://indefero.ghostdub.de/index.php/p/yaxim/source/tree/muc/src/org/yaxim/androidclient/service/IXMPPMucService.aidl this is the AIDL defining the method called Feb 28 22:23:31 http://indefero.ghostdub.de/index.php/p/yaxim/source/tree/muc/src/org/yaxim/androidclient/service/XMPPService.java#L187 here is the stub on service side Feb 28 22:23:55 note that the isRoom in the inner class in XMPPService never gets called Feb 28 22:25:06 i even replaced the return in that method by "return true", for testing Feb 28 22:26:59 ok, this is fucking hilarious. if i start the sdk manager, and then open up 'Android 2.2', it has 3 children. Just so happens, that from that point on, 'Extras' loses its last 3 children, like the tree widget is getting corrupted. Feb 28 22:27:47 (on mac 10.7) Feb 28 22:30:05 JesusFreke: now i even bypassed the XMPPMucServiceAdapter ... as expected no change Feb 28 22:37:28 hey.. Environment.getExternalStorag.... is buggy when the device is usb plugged, isnt it? there must be /mnt/sdcard/0/ folder but as long as its plugged there is only /mnt/sdcard/legacy.. and its still linked to /0/ .. Feb 28 22:38:13 misterli: i believe its because you dont have the permission Feb 28 22:38:35 well, then i shouldnt have permission on the legacy folder too Feb 28 22:39:12 its hard to debug when its linking to a path which does not exist at the moment Feb 28 22:39:34 i just have a feeling, the other day i had a similar problem, and as soon as i added the read and write external storage permissions i forgot to add, the problem went away... could be a coincidence Feb 28 22:39:52 i was debugging accessing external storage Feb 28 22:40:19 do you mean the permissions in the manifest or in the devices debuggingoptions? Feb 28 22:40:44 Feb 28 22:40:44 Feb 28 22:40:46 those Feb 28 22:40:54 have both of them Feb 28 22:41:19 ah.. id forget READ Permissions -_- Feb 28 22:42:29 Nebukadneza: what do yo umean no change - isRoom still returns false? Feb 28 22:43:05 Is the RemoteException log being generated, when you go through XMPPMucServiceAdapter? Feb 28 22:43:18 no, there's no remoteexception Feb 28 22:44:25 oh god Feb 28 22:44:28 i'm platinum dumb! Feb 28 22:44:36 the uri of my intent was slightly invalid! Feb 28 22:45:44 JesusFreke: thanks for your help -- i believe checking everything once again after bugging you helped me ;) Feb 28 22:45:54 np :) Feb 28 22:45:55 rubber duck coding ftw ! Feb 28 22:46:01 :) Feb 28 22:46:14 hehe Feb 28 22:51:56 by the way.. is there any way to create a "Service" which can be bought in appstore to pay for a membership? Feb 28 22:52:26 Anyone have any good guide for transitions? I've been playing around with the 3d view flip but it doesn't take in my other view correctly, anyone know how to configure that Feb 28 22:52:31 Im offering premiumservices for my app (via paypal). alot people pay by paypal but it's expensive. Now im looking for a way to pay by market. Like.. "Download an app every month to extend a membership for a month". Any idea/way to do that? Feb 28 22:53:19 misterli: is that not just in-app-purchasing ? Feb 28 22:53:49 StingRay_: it is Feb 28 22:53:54 oh :> Feb 28 22:54:09 also if this service is just for your app and nothing physical or outside your app service linked to it Feb 28 22:54:17 you are not allowed to do it the way you do it Feb 28 22:54:44 for services that are just used inside your app, without physical goods or otgherwise accessible services, you must use google in app payment (if you distribute your app via google play) Feb 28 22:54:56 Okay thanks. How many % does google want? Feb 28 22:54:59 30 Feb 28 22:55:04 like most app stores i guess Feb 28 22:55:06 70:30 Feb 28 22:55:08 woah :S Feb 28 22:56:26 well.. but it's possible to buy via the linked google account, right? Feb 28 22:56:45 yeah Feb 28 22:56:52 its only possible that way Feb 28 22:57:18 okay great. Another question.. Is there any way to see who rated only 1* on an app? (Without submitting a comment) Feb 28 22:57:20 you pay via credit card (i guess in every country) and also carrier bill payments is available in I guess the largest user countries Feb 28 22:57:37 you mean an account? Feb 28 22:57:43 yes Feb 28 22:57:49 ofc not :) Feb 28 22:57:54 bläh Feb 28 22:58:22 just got 1 *. 110x 5*, 1x 1*. Im sure it's a competitor Feb 28 22:58:54 eh or just someone who isn't happy with your app Feb 28 22:58:58 becasue it might not start on its mobile or so Feb 28 22:59:17 do you have any ANRs? that might give a clue Feb 28 22:59:22 Probably. But i dont think so. It's an alpha release and the app is only listed on xda devlopers. Probably those guys know what alpha means ;) Feb 28 22:59:25 (though not the only reasaon) Feb 28 22:59:45 not today. Fixed almost all bugs which causes an ANR Feb 28 23:00:18 or crash report in general Feb 28 23:00:22 though it might not be the noly rason Feb 28 23:00:37 e.g. steam app on my mobile doesn't crash but just gives me blank screen Feb 28 23:01:00 so if I would like to use it, i would rate it 1*, though I might consider writing acomment about that Feb 28 23:01:06 yeah, my app does not support the half of google nexus. It uses the Frontcamera but it keeps taking only black pictures (only on nexus 7) Feb 28 23:02:08 well thats not true is it ? Feb 28 23:02:13 I tested and works fine Feb 28 23:02:14 it is Feb 28 23:02:24 yea. Only some Nexus have the bug. I cannot figure out why Feb 28 23:02:29 stock rom VS custom Feb 28 23:02:32 bet thats it Feb 28 23:02:43 <-- stock Feb 28 23:02:44 The problem is only on some Stock rom Nexuss Feb 28 23:03:53 ive about 400 registered nexus devices and almost the half have the black-picutre problem Feb 28 23:07:51 misterli: nexus 7 has no rear camera Feb 28 23:08:10 Im capturing the frontcamera Feb 28 23:08:32 oh, sorry, misread "black" not "back" Feb 28 23:08:47 oh, it's the Galaxy Nexus, not Nexus 7 which have the black-picture-problem Feb 28 23:10:25 misterli: link to your app pls Feb 28 23:11:06 https://play.google.com/store/apps/details?id=de.seiboldsoft.ssspy&feature=nav_result Feb 28 23:11:55 neh do i need do register an account before using it? Feb 28 23:11:59 yes :/ Feb 28 23:12:09 okay then i won't test it :D Feb 28 23:12:33 haha well. I'm pretty sure it has something todo with the fake surfaceview. Some Nexus dont like that Feb 28 23:28:32 I've got a bit of a design question and I don't have a great eye for design... I'm working on a DialogPreference that has one field that allows the user to manually enter their user ID (an integer) for a website. But I also want them to be able to do a lookup based on their email address (side note: if the user enters their user ID in the search box it'll return a single result for the... Feb 28 23:28:34 ...user). This is my current layout: http://pastebin.com/n1G1Ubcm any thoughts? Feb 28 23:30:49 nplus: well visually cant tell a thing from a load of xml Feb 28 23:30:50 :) Feb 28 23:31:05 Let me take a screenshot.. Feb 28 23:31:58 What do you want it to do, show their name once it has found the correct user? Feb 28 23:32:49 I have a ListView that I populate with the search results - ultimately I want to save the user ID so it can be used to load user statistics Feb 28 23:33:45 Screenshot from eclipse: https://minus.com/lEOmI6o6hdicV Feb 28 23:35:40 are your wanting design crit on it ? Feb 28 23:35:50 as in aesthetics ? Feb 28 23:35:58 When I click the search icon, another EditText opens up next to the existing one. The EditText that's visible is limited to entering an unsigned integer Feb 28 23:36:21 StingRay_: Yes - at this point I've made it work, but I want to clean things up and make it "good" Feb 28 23:36:39 well it has a few things I dont really like Feb 28 23:36:57 on no particular order Feb 28 23:38:08 1, Alignment, there are 3 distinct and different (with no associated reason) gaps-spaces, a) the edit text left, b) the list left, c) the button left and right Feb 28 23:38:51 2. the items if scrollable will go into nothingness at the top, this is a design choice but would always have so indication to user that there is more above Feb 28 23:39:20 I had a thought, but I don't know if it'd be confusing. Here it is: scrap the userID box and make solely a search box. If the user wants to enter their user ID directly they can put it in the search box and hit search - their username will be the only result. Feb 28 23:39:23 3. the spacing surrounding the edit text and the size of the button (search) is a little odd Feb 28 23:40:05 well those 3 points are how I would comment on the design/aesthetics Feb 28 23:40:24 just so you know, I'm more a vfx artist than a coder Feb 28 23:40:51 StingRay_: Thanks :) Feb 28 23:41:49 I think that right now I'm not very happy with the "flow" of things and maybe using a SearchView is part of the problem. Feb 28 23:43:36 Hey - I want to code an app where I'm able to play audio & video simultaniously .. and swap the audio. Any suggestions on where to start? I've never made an app before. Feb 28 23:43:58 Do you have any coding experience, if so with what? Feb 28 23:44:44 Yeah, I'm a web developer. I've coded HTML, CSS, PHP and JS before. Howerver my JS knowledge is basic. Feb 28 23:45:14 Have you dealt with objects in PHP? Feb 28 23:45:24 A little, yes. Feb 28 23:45:25 If you know PHP you should know JS pretty well, it is the same OOP concepts. I would reccomend watching the new boston android tutorials on YouTube. Feb 28 23:46:08 I'm trying to pass for a.. quite big school assignment. I'm supposed to develop an educative app relating to music. So I chose to teach people to apprechiate music in movies .. I'm trying to swap audio on scene fragmetns, where music is swapped for different music. Feb 28 23:46:08 http://www.youtube.com/course?list=EC2F07DBCDCC01493A Feb 28 23:46:39 I second those videos ^ Feb 28 23:46:48 How long do you have for this project? Feb 28 23:47:34 So what I'm really trying to do is: Show a meny of possible movie scenes, and people can then select to swap the audio (= only music, no dialog) for different audio. Well, I had 3 weeks - but I kind of payed no attention, so now I have either until tomorrow (= 14 hours) OR until next friday. Feb 28 23:47:43 menu* Feb 28 23:47:55 ... Feb 28 23:48:06 Shouldn't the teach you how to make the app? Feb 28 23:48:15 No, that's the issue. Feb 28 23:48:23 They teach the basics and they say "ey good luck, have fun" Feb 28 23:48:24 But they requiered you to make an app? Feb 28 23:48:42 So really, we should learn everythign on our own. They taught us how to use some frameworks and html5 - but that's it. Feb 28 23:48:47 You're screwed for tomorrow Feb 28 23:48:58 Frameworks? Feb 28 23:49:14 Well yes, I'm going to show up with sketches and some elaborate explanation - I'm good at explaining things. Feb 28 23:49:21 I can tell. Feb 28 23:50:05 14 hours isn't much time at all to make the kind of app you're describing. Feb 28 23:50:08 christophe_v_e: where are you planning on getting the audio/video from? Feb 28 23:50:27 Frameworks - yes. I never showed up for those lessons - because I can read a manual in an hour that teaches me the same of 5 lessons. Feb 28 23:50:39 that's good Feb 28 23:50:39 Basically you just need videos without sound and a few mp3 files with the sound and when you play the videos you have options to play different mp3s at the same time Feb 28 23:50:47 At least thats what I'm thinking :P Feb 28 23:50:51 So describe to me what a framework is then. Feb 28 23:50:58 I have the audio & video. I cut scenes and audio from several movies. It's not strictly legal - but then again it's for a school exercise. Feb 28 23:51:21 Yes, quacked, exactly Feb 28 23:51:44 so, select 1 video then select 1 audio? Feb 28 23:51:50 well, a framework is what jQuery is to js. Feb 28 23:52:09 yes, kind of. The 1 video should play a standard audio, and you should have the option to replace it. Feb 28 23:52:21 Ok, what framework are they talking about? Feb 28 23:52:37 But - again - I have no idea how to even begin creating an app. However, I'm a really quick learner so I appreciate any advice. Feb 28 23:53:06 http://developer.android.com/training/index.html Feb 28 23:53:29 Did the explicitly say you had to do and Android app or can you do a web app? Feb 28 23:53:48 I'm guessing an overlay would be unnecessary so I would have a list of movie titles and then just place 3 checkbox options between each title to select one of three audio tracks that it should play with Feb 28 23:55:21 I can make anything, as long as it is an "app" and works on a mobile device. My teachers prefer an android/iOS app - however, our IT teacher only really taught us HTML5 applications and frameworks Feb 28 23:55:40 http://drawsave.com/1nr Feb 28 23:56:10 more JS frameworks than html5 frameworks really. Feb 28 23:56:38 well, best of luck man, I am heading home. Feb 28 23:57:06 So I really postponed this task until the very last moment - I realise this is stupid, but if I don't pass on this I might as well throw my year away. So I need to come up with SOMETHING the next 13 hours. :$ Feb 28 23:57:20 This is how I got here. Feb 28 23:57:22 while the drawing I linked is ugly, it seems like an easy way of doing it Feb 28 23:57:29 Thanks for even talking to me. Feb 28 23:57:41 no sure anyone should be helping with homework Feb 28 23:57:43 I really appreciate it, thanks, Snicers-Work2 Feb 28 23:57:46 :) Feb 28 23:58:21 StingRay_: at least he presented it as homework straight away :p Feb 28 23:58:29 No, no, it's not like I'm asking for "help on homeworks" I'm looking for the best apprioach to create an app where a movie fragment is shown where I can switch the audio on command. I don't expect any solutions. Feb 28 23:58:46 christophe_v_e: did you see my drawing? :D Feb 28 23:59:49 Looking at it right now, one sec Mar 01 00:00:08 It's lovely! Mar 01 00:00:18 thank you, thank you Mar 01 00:00:20 I'm an artist Mar 01 00:00:39 Yes, that's about right. I'd like people to select a "movie" first, like from 9 images, and then watch the original - and then swap the audio for like 6 different audio pieces. Mar 01 00:00:45 But your drawing is .. about what I had in mind. Mar 01 00:00:52 Yeah :p Mar 01 00:01:13 actually, those checkboxes could really just be buttons and the title just be a textView Mar 01 00:01:31 Ok. Well yes. Mar 01 00:01:44 so you just click on the mp3 file and it would play the movie title above Mar 01 00:01:46 But again, I really have no idea how to even start making an android app. Mar 01 00:01:58 Yep. That's kind of what I'm aiming for. Mar 01 00:02:11 what Snicers linked you is a good start Mar 01 00:02:12 http://developer.android.com/training/index.html Mar 01 00:02:17 christophe_v_e: Have you downloaded the developer tools? Mar 01 00:02:20 So just select a movie => New sceen with movie on top => Check audio =====> Play audio & movie Mar 01 00:04:15 I have the sdk installed. Mar 01 00:05:15 Hey guys, does anyone have a rule of thumb for when to use the account manager in your application? I have a website with its own login that I want users to upload photos to, would I store my website's login info in the account manager or just in my application? Mar 01 00:05:42 NOT in you application Mar 01 00:05:54 unless you care not about anyone using it outside the app Mar 01 00:07:18 StingRay_: What do you mean outside my app? Like another app needing to login to the site as well with the user's credentials? Mar 01 00:07:28 no Mar 01 00:07:36 i mean it would be easy to get that login Mar 01 00:07:40 out of your app Mar 01 00:07:48 and do funky things if it allowed me to Mar 01 00:08:06 depending on the authority on your website afforded to it Mar 01 00:08:12 StingRay_: Yeah right, I understand, I just want to use a authToken and never store the password. Mar 01 00:08:26 StingRay_: I have found that using the AccountManager to do that is very complicated. Mar 01 00:08:38 Which is why I was trying to figure out if I needed to use it at all. Mar 01 00:08:40 not looked into accountManager tbh Mar 01 00:09:18 StingRay_: Have you implemented 3rd party authentication/authorization? Mar 01 00:10:08 well I query mysql and return a valid token and expire time Mar 01 00:12:00 StingRay_: Right, after a successful login. And then you store the token somewhere on the phone and when it expires you make the user log back in? Mar 01 00:12:22 well it's kept live in a service Mar 01 00:12:30 so I dont store anything Mar 01 00:12:45 well I store lots but nothing related to authority Mar 01 00:12:49 but thats just me Mar 01 00:12:58 I don't know what you mean by authority. Mar 01 00:13:26 login/pass/token etc Mar 01 00:13:44 The rest I understand, so if the user force stops your application they would have to login again, and the token just lives in memory. Mar 01 00:13:46 session ident Mar 01 00:13:57 well no Mar 01 00:14:05 my service would have to be KILLED Mar 01 00:14:06 or Mar 01 00:14:14 expire the session Mar 01 00:14:29 the app force closing would not kill it Mar 01 00:14:36 the service would still run Mar 01 00:14:44 Weird Mar 01 00:14:56 not really Mar 01 00:15:01 thats what a service is for Mar 01 00:15:03 :) Mar 01 00:15:28 Someone able to see why my CancelAlarmReceiver won't remove notifications if there are more than one notification/timers? http://pastebin.com/Nmsxy2Mi Mar 01 00:15:43 StingRay_: Yeah I didn't know they were separate like that from the force-stop perspective. Mar 01 00:16:06 well they can even run in a separate process if you want Mar 01 00:16:19 I can only stop the newest timer it seems Mar 01 00:16:23 StingRay_: Is it possible to see a list of the services? Mar 01 00:16:48 plantian: I dare you to download facebook and have a look at HOW MANY services still run if you forcefully close the f*kr Mar 01 00:17:10 running programs or any detailed system monitor apps from play Mar 01 00:17:16 should show you Mar 01 00:17:47 StingRay_: Yeah that seems like a major weakness in the model presented to the user. Mar 01 00:17:49 and cause those fb fkr services listen to broadcasts they start back up again Mar 01 00:17:52 Can someone help me diagnose why my application is crashing? Mar 01 00:18:04 agy2154: not from the info you supplied Mar 01 00:18:08 oh wait Mar 01 00:18:11 StingRay_: Ha wow. Mar 01 00:18:47 plantian: the end of the story, I dont use FB Mar 01 00:18:50 :) Mar 01 00:19:13 StingRay_: I try to even avoid using the website. Mar 01 00:19:26 So I am trying to pass a context Mar 01 00:19:32 to a non activity class... Mar 01 00:19:38 so it launches a toast Mar 01 00:19:42 but It always crashes Mar 01 00:19:49 plantian: same, and I raped all of my info off there, important to muddle it rather than delete Mar 01 00:19:50 could it be something wrong with my class Mar 01 00:19:54 acitivyt class: http://pastebin.com/biVVuMpq Mar 01 00:20:05 non-activity class Mar 01 00:20:06 http://pastebin.com/axYkcDMh Mar 01 00:20:12 StingRay_: Thanks for the help and details, I've been smashing my face into the Account Manager many nights the last few weeks. Sounds like I should just not use it. Mar 01 00:20:18 StingRay_: Yeah right, zero it out. Mar 01 00:20:35 Error is on line 34 Mar 01 00:20:44 im sure it has something to do with transfering the context Mar 01 00:21:04 I also posted the problem here but what people suggested didnt work Mar 01 00:21:04 http://stackoverflow.com/questions/15126522/toast-cant-be-shown-in-a-non-activity-class Mar 01 00:21:19 why are you using a context to try and get a context ? Mar 01 00:21:28 or the app context Mar 01 00:21:31 if you pass it in Mar 01 00:21:39 toast will hang off that alone Mar 01 00:21:54 Isn't the context related to the activity itself Mar 01 00:22:01 or does it deal with the whole application? Mar 01 00:22:01 yes Mar 01 00:22:04 ohh Mar 01 00:22:08 your asking for the app context Mar 01 00:22:16 of a passed in activity context Mar 01 00:22:16 then don't I have to transfer the context from the activity to my class Mar 01 00:22:46 but neways this is confusing InputFilterMinMax context Mar 01 00:22:52 Ohh Mar 01 00:22:59 naming your class context Mar 01 00:23:05 well instance of your class Mar 01 00:23:49 just would confuse the hell outta me Mar 01 00:23:50 :) Mar 01 00:24:04 Lol Mar 01 00:24:26 so how can I get the context of the Enterinformaiton activity Mar 01 00:24:29 am I doing it right? Mar 01 00:24:59 well i just use (this) Mar 01 00:25:42 but neways, why not just log if your context in your filter class is null or not ? Mar 01 00:25:57 Sorry I haven't been reading anything - brb Mar 01 00:26:07 and also just use (this.context, in the toast Mar 01 00:26:32 StingRay_: tried it Mar 01 00:26:34 it won't work Mar 01 00:26:46 so if(this.context==null){log.e("f","sh*t");return;} Mar 01 00:29:07 also in your constructors if your gonna rely on a "context" being passed the 2 that have 2 string or 2 ints are never gonna work Mar 01 00:29:26 I included the onStartCommand() now as well: http://pastebin.com/Fx5p4qCK Mar 01 00:30:13 Basically I do a startService(NotificationService) for each alarm I set Mar 01 00:30:50 Quacked: was this every second :P Mar 01 00:30:51 But I'm having issues cancelling the notifications if there are more than one (only the freshest gets cancelled) Mar 01 00:31:13 g00s: pardon? Mar 01 00:31:18 Damn its going to be difficult to make this toast then Mar 01 00:31:26 agy2154: no Mar 01 00:31:28 simples Mar 01 00:31:33 were you updating the notification every second (from yesterday) Mar 01 00:31:44 g00s: I need to get it to work as Service instead of IntentService before I'm considering the interval :) Mar 01 00:32:09 as IntentService it would stop after a few hours Mar 01 00:32:10 StingRay_: Would a non-activity meathod be able to launch a toast? Mar 01 00:32:18 Is it possible Mar 01 00:32:22 if you pass in a context Mar 01 00:32:29 StingRay_: I think i found an alternative meathod Mar 01 00:32:40 but I can't figure out why I can only cancel the newest notification Mar 01 00:32:42 :( Mar 01 00:32:44 can I make a meathod in the activity Mar 01 00:32:54 and run it from the non-activity meathod? Mar 01 00:33:11 erm, with an interface yes Mar 01 00:33:19 but your over complicating it Mar 01 00:33:24 just pass in (this) Mar 01 00:33:36 i did Mar 01 00:33:37 and use context in the toast Mar 01 00:33:47 you can run a toast in a Receiver with this: Toast.makeText(context, "string", Toast.LENGTH_SHORT).show(); Mar 01 00:33:48 and then i would use context.getapplicationcontext? Mar 01 00:33:59 no Mar 01 00:34:02 just context Mar 01 00:34:09 how does android know? Mar 01 00:34:17 you passed it in Mar 01 00:34:17 Didn't i only declare it? Mar 01 00:34:21 in the constructor Mar 01 00:34:21 ohh Mar 01 00:34:26 stored it Mar 01 00:34:30 and then just use it Mar 01 00:34:43 Toast.makeText(context, "look i have a context to the left of me", Toast.LENGTH_SHORT).show(); Mar 01 00:35:25 g00s: but feel free to take a look at my current problem instead ;) Mar 01 00:36:09 StingRay_: Just tried it and it won't work Mar 01 00:37:32 and is it a null pointer exception ? Mar 01 00:38:07 too quiet here atm :/ Mar 01 00:38:12 Alright, I'm back and you have my full attention. I have the Android SDK installed and I'm prepared to start creating an app. Mar 01 00:38:22 Quiet, you say :D ? Mar 01 00:38:27 christophe_v_e: good luck Mar 01 00:38:47 StingRay_: I can't use log in Inputmaxmin Mar 01 00:39:04 what ? Mar 01 00:39:05 Thank you very much. Any suggestions on where to start other than "creating an android project" :) ? Mar 01 00:39:19 android hello world tutorial Mar 01 00:39:39 then just start adding buttons, textviews,edittexts and stuff Mar 01 00:39:44 I was told HTML5 could work just fine - but I don't think that's the right way to go - ........ is it ? Mar 01 00:39:45 then think of an idea Mar 01 00:39:51 add the stuff ! Mar 01 00:40:02 then add all the things Mar 01 00:40:06 :) Mar 01 00:40:11 and then when you think you know something Mar 01 00:40:13 lookup fragments Mar 01 00:40:26 StingRay_: it won't let me use log Mar 01 00:40:49 agy2154: maybe time to learn java first :| Mar 01 00:41:20 StingRay_: do you use gimp at all ? Mar 01 00:41:26 have done Mar 01 00:41:28 I'm gonna try again, hehe. Why am I only able to cancel the newest notification? http://pastebin.com/Fx5p4qCK Mar 01 00:41:42 g00s: you doing graphics ? Mar 01 00:41:44 :) Mar 01 00:41:49 programmer art ? Mar 01 00:41:52 :) Mar 01 00:42:22 StingRay_: :) i have Pixelmator, but want to use gimp b/c pixelmator is only mac; not sure how long i'll be a mac user. but i'm gaving a problem siwth gimp 2.8.4 Mar 01 00:43:04 basically all the dialogs keep popping up under the palettes … majorly annoying Mar 01 00:43:17 gaving prob with pigm ? hatws het brop Mar 01 00:43:49 StingRay_: Does your file upload use httpAsync? Mar 01 00:43:52 hang on, I think I have gimp Mar 01 00:44:08 i do have gimp Mar 01 00:44:12 on this mac Mar 01 00:45:02 g00s: dialogs popup under pallets ? Mar 01 00:45:08 yeah. gimp 2.8.4 Mar 01 00:45:22 ooo beat me 2.8.3 Mar 01 00:45:37 Bleeptech: uses a threaded thingy, maybe async Mar 01 00:45:38 its like everything always wants to popup on the upper left. there was no 2.8.3 :/ Mar 01 00:45:42 2.2 -> 2.8.4 Mar 01 00:45:49 2.8.2 -> 2.8.4 Mar 01 00:45:53 oh odd Mar 01 00:46:17 g00s: shove it in single window mode Mar 01 00:46:29 then let it try :) Mar 01 00:46:43 window > single window mode Mar 01 00:46:55 StingRay_: Can you pastebin the http code? Mar 01 00:47:07 Bleeptech: you mean the php ? Mar 01 00:47:34 oh hang on, tis a broadcast receiver + intentService now Mar 01 00:47:39 rather than just a method Mar 01 00:47:45 since last we spoke Mar 01 00:47:46 :) Mar 01 00:48:11 Nope, PHP I can write.. I'm having hell getting past opening a network connection. Mar 01 00:49:01 * Bleeptech has a laptop with Apache/PHP sitting here for an access/error console. Mar 01 00:49:51 opening a net connection ? Mar 01 00:49:56 whats the prob ? Mar 01 00:50:01 What I as trying was opening an audio stream for some reason.. Mar 01 00:51:59 Hello there Mar 01 00:52:24 where!? Mar 01 00:52:37 Have a n00b question, can't seem to find an answer: I want to mod some non-system apk's Mar 01 00:52:52 #android-root Mar 01 00:53:17 In order to do that I use APK multi tool (just another implementation of apktool), with my current framework-res (and twframework-res) installed Mar 01 00:53:21 oh, ok Mar 01 00:53:28 StingRay_: http://pastebin.com/R7MdXZCj There's the error. Mar 01 00:53:33 JesusFreke: I see what you did there Mar 01 00:53:36 th3m1773n: there's also #apktool Mar 01 00:53:49 JesusFreke: oh Mar 01 00:53:57 I'll be back tomorrow to nag some more :P Mar 01 00:53:57 JesusFreke: well I don't feel too smart now Mar 01 00:53:59 g'nite Mar 01 00:54:07 nite Mar 01 00:54:14 thx for the help ^^ Mar 01 00:54:58 Bleeptech: and what are you doing there ? Mar 01 00:55:58 attempting to play audio off a http source ? Mar 01 00:58:33 Ok, I missed all conversation since 1:41 - did anybody respond to me? Mar 01 00:59:33 what TZ are you in ? Mar 01 01:00:03 18:00 here. Mar 01 01:01:19 GMT+1 for m Mar 01 01:02:03 i think the answer is no then Mar 01 01:02:33 +12 is best Mar 01 01:02:45 I don't know the OG question so, meh. Mar 01 01:03:22 Time2303: NZ ? Mar 01 01:03:27 I'm really just wondering how I can quickly code an app where I 1) show a video 2) after the video show several options to select different audio & autoplay Mar 01 01:03:50 Sorry, wrong. 1) Select 1 out of 9 videos 2) play video Mar 01 01:04:18 bankai_, yep Mar 01 01:04:50 christophe_v_e: so ....w hat's your question ? Mar 01 01:06:28 Well my question is how to get started really fast - skipping the "how to creat your first app"-part and diving right into what I need, PREFERABLY. If this really isn't possible I'll take the long route - but I only have like 13 hours until I have to hand in an entire communication, marketing graphics,research and application- plan (with a basic functioning app) Mar 01 01:06:51 http://developer.android.com/guide/topics/media/mediaplayer.html Mar 01 01:06:56 So, well, I'd prefer the fast route. Mar 01 01:07:15 Ok, thanks, I'll read through that Mar 01 01:09:39 does anyone know how to create an avd using AOSP? Mar 01 01:09:45 I have one that I created using eclipse Mar 01 01:10:26 I wish I can just copy it over to the AOSP directory Mar 01 01:10:28 so it uses it Mar 01 01:11:08 bbiab.. Signifigant other just showed up.. Mar 01 01:11:25 that's a very politically correct statement Mar 01 01:16:08 StingRay_: I am goign to use another way I found to work... Mar 01 01:16:14 StingRay_: It works now Mar 01 01:16:40 StingRay_: It wasn't the Context that was causing the problem it was the actually logic of it Mar 01 01:21:09 I am implementing a controller, with controller states and inboxbox/outbox handler for view and controller. A controller state can issue AsyncTasks, now I have the problem, that one of these AsyncTasks needs to make a call to GCMRegistrar which requires an activity. But normally I don't store that in the AsyncTasks, since decoupling them via controller Mar 01 01:21:14 any idea on that? Mar 01 01:22:53 ah nevermind, I see that I have covered that problem already Mar 01 01:27:39 hi - is it possible to use Service.startForeground() with multiple notifications? i'd like to have a notification for each in-progress download, and i want the service to be in the foreground as long as at least one download is active Mar 01 01:35:27 Hey guys, sorry for the dumb question, but the list view tutorial isn't quite clear on how to set the list elements, could someone help? Mar 01 01:38:40 ollienx: adapter backed by ...well... anything you want Mar 01 01:38:54 list, array, cursor, xml resource Mar 01 01:39:11 ollienx: http://www.youtube.com/watch?v=wDBM6wVEO70 Mar 01 01:39:38 thanks so much, I'll take a look at this Mar 01 01:46:11 ok, I see how from here, bit one more question, how could I use an arraylist with an ArrayAdapter Mar 01 01:46:15 *but Mar 01 01:46:43 by extending arrayAdapter Mar 01 01:46:58 I think there are among the most common asked/explained online Mar 01 01:47:13 yeah, I'm working on googling it Mar 01 01:47:14 almost never use ArrayAdapter. extend BaseAdapter Mar 01 01:47:22 actually, never use ArrayAdapter Mar 01 01:47:26 why g00s? Mar 01 01:47:34 yea why g00s Mar 01 01:47:36 :) Mar 01 01:48:05 BaseAdapter and CursorAdapter are the only ones you need. The extras add stupid 'conveniences' which just make things more rigid and stupid Mar 01 01:48:14 rigid and stupid are hard metrics Mar 01 01:48:17 :D Mar 01 01:48:33 ah the joy of listviews :) Mar 01 01:49:09 why would I use a baseadapter over a cursor then? Or visa versa> Mar 01 01:49:10 ? Mar 01 01:49:16 if you look at the code for ArrayAdapter, you will have one question if you are thinking : why the fuck does this even exist Mar 01 01:49:22 these both seem to do the same thing Mar 01 01:49:40 oh wait I see Mar 01 01:55:19 g00s, you could say that about ListFragment/Activity :P Mar 01 01:55:28 canadiancow: :) Mar 01 01:56:19 canadiancow: i found a bizarre bug in the sdk manager today Mar 01 01:56:30 are you using a mac ? Mar 01 01:56:45 no Mar 01 01:57:13 its so crazy, i need to confirm it with someone else before i file it Mar 01 01:58:11 Am I getting the error "02-28 19:55:12.538: E/AndroidRuntime(8418): java.lang.NumberFormatException: Invalid double: "" " maybe because my string is empty Mar 01 02:01:37 well, an empty string isn't a valid double number Mar 01 02:14:33 for a fragment in a viewpager, is what lifecycle method can I use to be notified when the fragment is out of the view? onPause is triggered when it is 2 swipes on either side of the current fragment Mar 01 02:16:41 hi there, can I prevent emulator from being start? Because I have a real phone for development, it's just disconnected sometimes. Mar 01 02:17:36 luoluoluo: if it's for eclipse, you can ask it to show you a dialog everytime Mar 01 02:18:59 f2prateek: I am on eclipse, where can I setup it? Mar 01 02:26:27 I am making an app that downloads an xml file and parses it into a listview in the onCreate method. The xml file contains links to videos stored on a server. What is the best way to store this so it doesn't have to redownload it each time the app starts? Mar 01 02:27:37 droiddev32: maybe you can just save it yourself using file on sdcard somewhere Mar 01 02:27:41 works for me Mar 01 02:27:45 I save lots of images Mar 01 02:28:39 and save a tag in SharedPreferences, maybe the tag is the download url. when the tag is presented, that means the video is there; if not, you should download it Mar 01 02:29:15 I was thinking about doing that. Would there be any advantage to using a database? Mar 01 02:29:39 saving the video in the database? Mar 01 02:29:51 no the links Mar 01 02:30:14 I think SharedPrefences is kind of database. Key value database, hehe Mar 01 02:30:30 Yes you can use sqlite or something **** ENDING LOGGING AT Fri Mar 01 02:59:58 2013