**** BEGIN LOGGING AT Thu May 02 02:59:58 2013 May 02 03:26:44 could anyone give some pointers on how to print a leading 0 if its 5 minutes past the hour? May 02 03:27:09 i've looked at strings, simdateformat, string formatting, date, time... none will print the leading 0 May 02 03:27:49 this si the code i'm working with: http://pastebin.com/dWH0e1ra May 02 03:30:46 uh May 02 03:31:01 SimpleDateFormat formatter = new SimpleDateFormat("MM"); May 02 03:31:05 formatter.format(date); May 02 03:31:18 sorry, "mm" May 02 03:31:22 MM is month :) May 02 03:33:04 ok thanks May 02 03:36:36 that didn't work, but thank you May 02 03:37:01 then you did something wrong. May 02 03:37:04 because that works. May 02 03:37:23 seems that way May 02 03:39:18 huh, how does Theme.Holo.Dialog set the dialog size? May 02 03:39:21 String.format("%02d", minutes); works as well May 02 03:43:59 hmm, there's a preferencePanelStyle attribute.. May 02 03:45:10 hmm... still not working for some reason =\ May 02 03:45:49 pfn: what do you want documented? May 02 03:46:51 you use onCreateOptionsMenu to create options, just like native May 02 03:47:55 you need 3 things to use ABS: a Theme.Sherlock theme, calling getSupportActionBar, and changing your imports to com.actionbarsherlock.* instead of android.* for action bar/menu types May 02 03:47:56 JakeWharton: winky is released https://plus.google.com/116031914637788986927/posts/Hp9n6oXpFfH May 02 03:48:07 everything else is 100% the same as native May 02 03:48:50 gaah May 02 03:48:53 please update the market google May 02 03:48:56 my app still won't show May 02 03:48:57 D:< May 02 03:49:51 i have an app that runs on 2.3.5 but will not on 4.2.2, there anyway to get it to work? May 02 03:50:59 what wont work about it May 02 03:51:12 JakeWharton, yeah, just wish that was a bit more clear up-front May 02 03:51:28 JakeWharton, and having to use getSupportMenuInflater vs. the alternative May 02 03:51:45 it starts but then fc May 02 03:52:54 it was made around august 2011 May 02 03:53:48 * pfn headscratches some more May 02 03:53:54 how the heck is preferencePanelStyle used... May 02 03:54:57 Hey is there a android specific freelance channel? Not meaning to advertise or anything, but I'm looking to outsource some work soon, and wanted to hitup some devs on irc. May 02 04:01:28 meh, how lame, I guess I'll just make my theme extend theme.holo.dialog May 02 04:10:22 pfn: yeah, true. that actually changed with v4. it wasn't needed before May 02 04:10:43 i'm too lazy to update it now May 02 04:10:50 usually just refer people to the demos sample May 02 04:10:59 everything you'd ever want to do is in one of thiose May 02 04:25:39 ugh, wtf isn't my background to Theme.Holo.Dialog transparent (outside the window) May 02 04:29:15 pfn: HTC device? I think i've seen that there but not anywhere else. I've used Theme.Transparent and create an alert dialog in onCreate and finish the activity when the dialog is dismissed May 02 04:29:37 samsung tablet May 02 04:29:40 cm10.1 May 02 04:29:46 but I recall the background being transparent before May 02 04:29:52 I think I'm doing something that's preventing the transparency May 02 05:23:31 hey guys May 02 05:23:35 got a question for ya May 02 05:24:10 my eclipse breakpoints seem to be acting up May 02 05:24:24 I have a breakpoint that I can seem to disable, but it keeps an empty circle there May 02 05:24:28 I can't seem to really get rid of it May 02 05:24:42 and then I can't set a break point at all in this static function for some reason May 02 05:31:40 Somebody knows why findViewById returns null in my case? May 02 05:31:41 http://pastebin.com/uN1ZTSdF May 02 05:31:44 I have a XML May 02 05:31:52 corresponding to this view May 02 05:32:07 Can anybody help me? May 02 05:32:26 already tried to look on stackoverflow, but my code seems right May 02 05:41:29 *facepalm* May 02 05:41:41 found a 16MB large bitmap object in my app heap dump. May 02 05:42:03 found out its an application icon in 2048x2048 size because I accidentaly copied the wrong file from designer resources May 02 05:42:32 games do this all the time. it's super annoying as a launcher developer May 02 05:43:16 512x512 pixel icon in drawable/, framework scales this up to 1024x1024 px for xhdpi, launcher then scales it back down to 96x96, leaving a bunch of work for the GC behind and a poor quality looking final icon. May 02 05:43:40 yeah May 02 05:43:48 we need vector ! May 02 05:44:11 I just accidentaly copied the wrong file from design resources… took me awhile to figure out what the 16MB Bitmap is :P May 02 05:44:18 had to dump it from memory May 02 05:44:20 yeah yeah, i'm familiar with all the arguments against vector. :) May 02 05:44:45 g00s, I'd love vector resources that get generated on install :P May 02 05:44:53 er, converted to bmp on install May 02 05:45:05 yeah :) May 02 05:46:00 there's some collection of android icons in font format, interesting way of getting vector but kind of awkward May 02 05:50:00 g00s - probably not as much of a concern before, but vectors are more computationally expensive, bitmaps are much larger, but raw data May 02 05:50:34 thanks for the profound insight ron_frown :P May 02 05:50:48 :D May 02 05:50:50 oh May 02 05:50:53 I read that as not familliar May 02 05:51:08 ass. May 02 05:59:01 hm, sounds like if you get a Haswell based machine with integrated graphics, you want Iris / Iris pro May 02 06:01:38 is that Android related? May 02 06:01:40 or a mid-range nvidia :P May 02 06:02:24 haha May 02 06:03:23 oh! duh, Iris / Retina derp May 02 06:04:12 Retina Android phone? May 02 06:04:57 JakeWharton how long until you are working for google? =) May 02 06:06:16 It's be hard to top the arrangement I have now May 02 06:06:48 eloquent :) May 02 06:07:12 hmm, eclipse is still a buggy mess May 02 06:07:22 Mavrik: then use something better May 02 06:07:44 Mavrik: you signed up for buggy messes when you decided to dev for android May 02 06:07:56 :D May 02 06:07:58 I am, even though IDEA has some annoyances with not-so-seamless Android tool integration May 02 06:08:20 What's not seamless? They're very receptive to feature requests and bug reports May 02 06:08:20 should poke guys at IntelliJ with a stick more May 02 06:08:32 I'm torn... i'm using a more capable machine now... eclipse UI stuff is a lot better on windows, but actually does the biulding and stuff a lot better on windows May 02 06:08:47 er on osx May 02 06:08:56 JakeWharton, switching to monitor and back requires ADB restarts May 02 06:09:06 which isn't the case when using eclipse May 02 06:09:28 also logcat tends to lag / lose output alltogether at times May 02 06:09:38 as I said… annoyances :) May 02 06:09:49 what do you mean by 'monitor'? May 02 06:09:56 and i've never used logcat in IDEA so can't help you there May 02 06:10:03 i use console for logcat ; Mavrik have you tried jasta's logcat script ? May 02 06:10:23 JakeWharton, Android Monitor tool… the "new" integrated traceview/hiearchview/opengl tracer script :) May 02 06:10:33 hmmm May 02 06:10:35 g00s, is that the python colored logcat thingy? May 02 06:10:40 I haven't seen that May 02 06:11:14 JakeWharton, basically when you run it IDEA has to disable ADB integration… so I can't look at hiearchy view / tracedump at the same time as actually running through breakpoints May 02 06:11:38 and on times ADB just craps out all together when switching… :) May 02 06:12:46 it could be worse, envsetup sets your system to point at built adb... so every time you build os, you gotta kill-server and sudo start-server May 02 06:12:47 total pita May 02 06:13:42 Mavrik: yeah May 02 06:14:24 g00s, yeah, even though I noticed same "lags" (basically, getting logcat in packets of 100 lines or so every few seconds which don't seem to happen in eclipses DDMS) May 02 06:14:27 wierd >( May 02 06:14:52 on the other hand, I did notice that only on Samsung/Motorolas and not on Nexuses May 02 06:15:36 well, if adb logcat does that … its not intellij :) May 02 06:16:02 Mavrik: ive had the same problem May 02 06:16:12 :) Anyway, enough whining about tools, lets give some newbies a chance to tell their woes. May 02 06:17:10 someone un+1'd my page :( May 02 06:17:27 canadiancow: how the hell do you un +1 ? May 02 06:17:34 you... click the +1 button again May 02 06:17:39 LOL May 02 06:17:52 maybe they wanted to +2 and didn't realize May 02 06:22:07 does +1 require Google+ ? May 02 06:22:13 probably May 02 06:22:18 bah May 02 06:22:40 canadiancow: linky again ? May 02 06:22:52 dont worry about it :P May 02 06:22:57 also im tired May 02 06:22:58 gnight all May 02 06:23:02 gnight May 02 06:23:42 oh, there are new classes since last i looked. Best practices for Bluetooth May 02 06:23:54 if they decided they give a crap enough now about BT, i hope its BLE May 02 06:24:57 "The new android build system", well hopefully thats because the'll announce the gradle stuff May 02 06:25:09 honestly, i dont want to use groovy, but ant sucks too May 02 06:25:33 join the dark mvn side May 02 06:25:49 i was mavening from the beginning :) May 02 06:26:14 wow, tons of new android talks May 02 06:26:26 yeah, the schedule changed a lot since yesterday May 02 06:26:29 we approve, hopefully something more advanced and not C/P from the docs May 02 06:26:48 hm, lotsa gaming May 02 06:27:22 well, i'm just watching videos for free … so if a talk is 5 minutes heh, its better than nothing … but I'm wish they didn't cut them down to 40 minutes May 02 06:28:07 yeah, but the thing about listening to devs of a platform it that they can tell you how they intended it to be used and how to jump over warts May 02 06:28:19 yeah, i like that May 02 06:28:32 like the one from 2009 (?) about fast game rendering May 02 06:28:36 view optimization, etc. May 02 06:28:48 its always interesting to hear "why" May 02 06:28:53 I'd love a "how to deal with 2.3 in 2013" talk :) May 02 06:29:05 i thought i was the only one :D May 02 06:29:19 but its probably the same as last year May 02 06:29:23 Mavrik, you deal with it by ignoring its existence :p May 02 06:29:27 JakeWharton: is Retrofit supposed to support multiple @Name parameters for POST requests (converted to a urlencoded entity)? May 02 06:29:35 they had a multiversioning - UI talk last year May 02 06:29:41 codebutler: no May 02 06:29:42 Zharf, yeah, thats what guys in MV told me as well May 02 06:29:48 not really acceptable though :P May 02 06:29:58 for at least another year or so :) May 02 06:30:00 codebutler: what API are you hitting that requires that? May 02 06:30:01 its not acceptable when you already have users May 02 06:30:08 JakeWharton: is that something you'd like to add? May 02 06:30:15 codebutler: we removed that May 02 06:30:34 g00s, yeah, doesn't touch some warts I hit recently… especially camera APIs are rustic on 2.x :) May 02 06:30:37 if you are just starting fresh, meh. Mavrik also, i noticed from the stats that ICS declined faster than GB. GB is still > ICS May 02 06:30:56 Mavrik: oh god, fuck that May 02 06:30:59 yeah, because alot of devices are getting ICS -> JB upgrades May 02 06:31:35 JakeWharton: what was the reason for removing it? May 02 06:31:35 g00s, yup, there's a special place in hell for a man who made SurfaceView May 02 06:31:55 codebutler: it doesn't make sense with the converter May 02 06:32:29 you have a converter whose responsibility is marshaling to/from the request/response bodies... oh except in this one case May 02 06:33:25 hmm. May 02 06:33:31 even multipart is a bit of an oddball then May 02 06:33:45 maybe we could add @FormEncoded May 02 06:33:58 *re-introduce May 02 06:35:12 okay, I'll think about it a bit more and consider proposing something May 02 06:35:21 codebutler: think quickly :) May 02 06:35:49 heh :) May 02 06:35:52 is it a public API you're hitting May 02 06:36:07 we couldn't find any APIs that supported form encoding and JSON May 02 06:36:28 this one is my fault May 02 06:37:43 you could make a FormEncodingConverter with its own RestAdapter but that's a bit of a pain May 02 06:38:21 you still wouldn't be able to easily pass the name/value pairs. would have to be a @SingleEntity Map or something May 02 06:40:24 let me sleep on it and consult the brain trust tomorrow May 02 06:40:40 right now I have a URLEncodedEntity type that implements TypedOutput May 02 06:40:54 as a workaround May 02 06:40:59 ah, clever. that'll totally work and is much easier May 02 06:41:45 but this means the api interface is no longer self-documenting, as with @Name params for example May 02 06:42:51 right. and that might be the argument that wins me over May 02 06:53:59 that settles it May 02 06:54:02 I need me some LSD May 02 06:54:38 dmt is what the cool kids do these days May 02 06:54:46 no ideas what that is May 02 06:54:47 if you work for Apple, they probably have it in the cafeteria May 02 06:54:53 I was just kididng anwyay May 02 06:55:24 if I was in the elevator with Jobs, I would have asked him where he git his LSD from May 02 06:55:35 everybody dreaded being in the elevator with him May 02 06:55:37 I'd have kicked him in the junk May 02 06:55:41 ha May 02 06:56:30 well maybe he really just faked his death and one day you'll get the chance ;p May 02 06:57:04 lasserix: no way man, Ives is going full boar removing the skeumorphic bs from iOS May 02 06:57:20 Jobs would have come out from nowhere to put an end to that May 02 06:57:26 if still alive May 02 06:57:42 likje good ol 2pac May 02 06:59:12 maybe he's in space? kinda like that one guy if you ever the book contact, May 02 07:00:03 i think jobs was always in space, probably hanging on Uranus, and just projected himself down. May 02 07:00:24 what the shit May 02 07:00:26 we're in may? May 02 07:00:51 firing himself off into the depths of space to spend 10 years culturing himself with the greatest view in the solar system, until he freezes and many light years later is discovered and revived by another civilization May 02 07:00:54 not for long May 02 07:01:08 I thought it was like 4/10 May 02 07:01:09 lol May 02 07:02:12 i hope they go all out with iosched and use all the newest techniques, like the new build system May 02 07:02:30 i always liked rummaging through that May 02 07:06:03 where is canadiancow's talk ? i cant find it any more May 02 07:06:26 ah, found it May 02 07:06:31 what is the new build system May 02 07:06:46 gradle May 02 07:06:58 oh here https://developers.google.com/events/io/sessions/326148829 May 02 07:07:58 bah, i tried to +1 but they want me to create a Google+ profile May 02 07:08:05 sorry canadiancow :) May 02 07:08:35 haha May 02 07:08:39 Hello, is there any good open source library that allow me to select multiple image? I found some but they are not good enough May 02 07:09:27 select multiple image May 02 07:09:28 haha May 02 07:11:26 mikedg is topping hacker news May 02 07:11:39 nobody from NJ can top HN May 02 07:11:47 * g00s calls BS May 02 07:11:53 * g00s is from NJ :) May 02 07:12:36 hi May 02 07:12:40 was number 3 for a moment May 02 07:15:11 ron_frown: I found some, but they are blocking the UI thread May 02 07:15:43 edwinkcw: do you mean download? May 02 07:16:16 JakeWharton: I am not sure, I think the query the thumbnail part is blocking May 02 07:28:30 hey StingRay_ May 02 07:28:44 morning May 02 07:29:17 i get more work done when I'm not on irc, I think May 02 07:29:30 oh, thats for sure May 02 07:38:03 I was paid in advance to develop an android port, and I've done most of the ground work (rest is variation on a theme) but the guy who hired me has not replied/called me back for a long enough while I am suspect he may not get back to me. I feel like I should finish it since I was paid to do such, but I don't want to waste my time if this project goes no where and everything useful to me May 02 07:38:04 as a coder I've completed. Anyways just wondering if anyone has a reason to finish it or not? May 02 07:39:09 if you were paid to finish, finish it May 02 07:39:34 the end result/target and or distribution…if/why are irrelevant really May 02 07:40:15 Yeah that's kind of the problem, the guy was vague what he wanted in total. I did what we discussed, but I'm assuming he wanted a full port of the website, but he did not specify anything. May 02 07:41:09 then in leu of guidence and no real contract, "best guess" by yourself May 02 07:41:18 hehe thanks May 02 07:41:43 any alterations based on changes to your "best guess" if/when he does contact you May 02 07:41:49 you charge for as extra time May 02 07:42:14 and - well - producing working code is never not a learning experience. May 02 07:42:24 but as long as you make continued efforts to contact, there is no real problem from a work/legal standpoint May 02 07:45:04 ahh okay, figured such was the case. SpeedEvil: that's true, but I'd rather not do a bunch of boiler plate when I could be doing personal projects sitting on the stack May 02 07:47:52 yeah May 02 07:48:54 I just get the weird feeling he ended up on the wrong side of a poker game or something. sigh. May 02 07:49:51 perhaps add in something to future contracts. 'any development questions not answered within x that lead to reasonable assumptions for desired features, that lead to extra development will be billable' May 02 07:51:47 Yeah that's a good idea, mostly I just want to focus on some other projects instead of working on a dead end espicially if this app never goes live and i can't use it as a reference May 02 07:52:42 Hello everybody, i need help with home widget. Is there a way to give focus to a widget? i've to work with external keyboard on a tablet May 02 07:53:15 i've already set focusable=true on widget layout May 02 07:53:31 carlovv: are you talking about an app widget or a view widget? May 02 07:53:44 app widget May 02 07:54:10 2x2 app widget on android home screen May 02 07:54:30 shortcuts are focusable but not my widget May 02 08:07:04 hi all. May 02 08:15:43 What's the "Google Store" on the IO agenda? May 02 08:16:18 we'll have to wait i guess :P May 02 08:16:53 what's the context? last year they had a little store where you could buy google merchandise (like t shirts, not hardware) using google wallet May 02 08:20:11 ah I just though it was something they had last year that I didn't know about May 02 08:38:58 guys please help me /msg NickServ identify May 02 08:39:22 help needed guys http://stackoverflow.com/questions/16333044/app-restarts-itself-when-returning-from-browser May 02 08:40:59 Android03, implement application life time handling correctly May 02 08:41:10 you should return to the same state the user was in when they left the app May 02 08:49:14 hey, which webservice you use to translate your apps? May 02 08:49:32 http://sprunge.us/RcfB those are processes "top" shows on android 2.2.1 phone, what are can be safely killed ? to free up memory, I have only 182MB of RAM May 02 09:20:37 I have an app with a database as asset file. On launch of app I read from the database with sql order by random(). But I need to be able to remember the position for next launch (currently storing in sharedprefs, but because it takes new random for each launch, its all wrong). I also need to be able to change the database later on new versions. Both removing entries and adding new. Any suggestions on how I should do it? May 02 09:21:33 1. why are you using a sort of random() ? May 02 09:21:40 and 2. just do it the usual way May 02 09:21:45 I'm thinking I either need to store the database entries in random or only order by random() in app on first run May 02 09:22:02 :O May 02 09:22:09 Enlighten me please :) May 02 09:22:15 onUpgrade ? May 02 09:22:20 Ah May 02 09:22:51 Atm, I just overwrite database onUpgrade since user dont put anything into it May 02 09:23:28 well you can do what you want in onUpgrade May 02 09:23:37 so…erm….. do whatever you want/need May 02 09:24:16 but the sorting? May 02 09:24:30 your sorting by random ? May 02 09:24:34 I dont get it ? May 02 09:24:58 I just wrote the stuff about changing database in new versions because it will affect the current position that I store May 02 09:25:30 well sorting random will change everything neways ? May 02 09:25:37 Yeah, I have a list of Strings that I display randomly, but I want it to loop through the whole list before starting over May 02 09:25:39 I still dont get what your wanting to do May 02 09:25:42 :) May 02 09:25:58 then thats not random May 02 09:26:32 Yeah, it's only sorted randomly once :P May 02 09:26:47 ok so whats the question ? May 02 09:26:54 hehe May 02 09:26:55 quacked, it doesn't matter how your table is ordered May 02 09:27:12 lasserix: what do you mean? May 02 09:27:16 when you use random() it randomizes the cursor that is returned, not the actual underlying data May 02 09:27:35 on ORDER BY RANDOM() ? May 02 09:27:38 yeah May 02 09:27:44 aha May 02 09:27:44 that doesn't rearrange your table May 02 09:27:52 just how it gives you the results of the query May 02 09:27:57 yeah, makes sense May 02 09:28:19 also you can throw in a another table and just use that instead of shared prefs May 02 09:28:31 to save position or whatever since you are already writing db stuff May 02 09:28:52 yeah, I have an extra row in the table with ints May 02 09:29:02 no make a whole new table May 02 09:29:07 not a new database file May 02 09:29:12 but don't put it in the same table as the strings May 02 09:29:30 Why is that? May 02 09:29:44 there's a lot of theory about how to design databases May 02 09:29:51 Oh, ok May 02 09:30:02 but the idea is that each table should be consistent May 02 09:30:22 not throwing data sets into tables, each dataset should have its own table(s) May 02 09:30:37 but for instance, what if you add more strings to the table and you want to do a count May 02 09:30:48 ok May 02 09:31:10 But, my main problem is how I should get random entries but also remember the position :) May 02 09:31:22 use the primary id May 02 09:31:40 sort by random, then get the id of the cursor, save that and voila you can just reload those ids next time May 02 09:31:55 *err id of the row the cursor is currently returning May 02 09:32:00 The _id ? May 02 09:32:30 Android needs a column called _id apparently May 02 09:33:43 yeah May 02 09:34:20 in db theory, that is usually called a primary id which is you can think of the indice (like in an array) usually it is set to autoincrement (just like an array) May 02 09:34:53 I see May 02 09:34:56 so when you do sortbyrandom, for each row you read from your cursor, copy its _id and then you can always grab it again by selecting for that _id May 02 09:35:32 yeah, that was my plan actually May 02 09:36:03 you do mean order by random btw? May 02 09:36:18 yeah May 02 09:36:26 what you can also do which is what i did for a similar thing May 02 09:36:32 was make an array the size of your table, May 02 09:36:50 randomize its indices May 02 09:37:06 err May 02 09:37:09 sorry i am a little tired, May 02 09:37:09 yeah, I thought about that May 02 09:37:39 but to garuntee non-repition so it cycles, is each time just make a list of numbers, the size of your table, randomize them and remove them from the list as you present them May 02 09:38:02 and when it gets to count of zero, rinse repeat May 02 09:38:15 you can also convert it to a string to save in a db or prefs or whatever May 02 09:38:17 depending on the size May 02 09:38:32 hehe May 02 09:38:49 oh i remember, the problem I had was i wanted to use a view pager May 02 09:39:26 and since i wanted it to remember which string goes to what page, i had to abstract the list of _ids from the view pager since calling random doesn't work May 02 09:39:42 consistently for a view pager (since it destroys pages > 1 from current page) May 02 09:39:49 I'm gonna try with just the db for now. Gonna order by random on first launch, then save the primary int and continue with the cursor from there on next launches. The only obstacle I'm seeing now is when database is changed (probably only with more entries) May 02 09:44:07 oh wait, I cant only sort by random on first launch, then select * from will obviously not be random afterwards like you said May 02 09:47:27 Can anyone explain (a howto link is better :-) ) to me how I can put some static lib ( .a ) files into my android project ? May 02 09:47:49 quacked, if the database is changed it means you are adding more entries, which means just get the difference of count and randomize that and add it to the end of the list May 02 09:48:04 "order by random on first launch" what are you trying to achieve? May 02 09:48:40 I'm just reading from the database when app launches May 02 09:49:11 but I cant order by random each time it does, since then I won't know whats been shown etc May 02 09:49:28 that's what i was saying May 02 09:49:33 don't use the db to randomize it May 02 09:49:41 yeah, I understand :) May 02 09:50:03 BlackDal: well, what do you want to accomplish? you can't just put any prebuilt static lib into android May 02 09:50:12 thank you May 02 09:50:18 since it needs to be compiled for various flavors of ARM May 02 09:50:22 at the very least May 02 09:50:25 Quacked: also depending on how big the random list of ids is, it can be slow to put into shared prefs on the main UI thread May 02 09:51:05 lasserix: yeah, there should be about 500 May 02 09:51:21 MDijkstra: I want to use pjsip in my app; It senns to not have shared object as output, So I have a lot of .a files. Can I use them? May 02 09:51:53 hi all. i need to do get the gps location of a set of db rows and update them. the long-time tasks are 2, waiting for the location and doing the massive update. should i use an "AsyncTask implements LocationListener"? should i update the db in the doInBackground()? thanks May 02 09:52:24 BlackDal: I think so, yes May 02 09:52:33 BlackDal: http://stackoverflow.com/questions/5463518/android-ndk-link-using-a-pre-compiled-static-library May 02 09:52:53 BlackDal: but pjsip should of course be compiled for the architectures you're targeting May 02 09:53:31 MDijkstra: target compiling is ok, But LOCAL_SRC_FILES works for one file May 02 09:53:55 BlackDal: I would probably try to use the NDK to build pjsip May 02 09:53:59 that could be a lot of work though May 02 09:54:23 yeah, probably a lot of work ;) May 02 09:55:02 MDijkstra: pjsip is built, and compile is ok. my problem is the way of it's usage May 02 10:05:56 lasserix: what kinda list would you recommend to store that random list of ids? May 02 10:18:35 Quacked: i think i saved it as a string with a X delimiter and then just put it into an array or arraylist May 02 10:19:10 saved it as a string for prefs/etc and then dump it into the arraylist as needed May 02 10:19:29 you can use whatever, but basic data structure is like a queue of ids May 02 10:20:57 is there gcc for android on the market ? and if install it I would be able to run commands like: "gcc -o hello_world hello_world.c" on the phone ? turning android phone into developing machine ? May 02 10:21:22 ok May 02 10:22:03 now, I have android phone for 1.5 years, and only now I found out about it ? May 02 10:26:33 I want to save an image to local storage, and this item is coupled to a row in a SQLite database May 02 10:27:04 would I just store the image in the row as a BLOB, or am I better off through the ParcelFileDescriptor? May 02 10:32:52 can "Terminal IDE" be used instead of regular SDK for developing android applications like the ones on the market ? or its supposed to be used for creating small system tools like "cat" or "sed" ? May 02 10:37:28 elkng, it does seem to come with a few android specific tools but I don't really know, try it... though I wouldn't really ever recommend developing on an android ... I'd find the experience horrible May 02 10:53:16 belgainguy is the image an imagefile on the device? May 02 10:57:27 writing blobs can be expensive May 02 10:57:38 io i mean for blobs May 02 10:59:33 Hello! May 02 10:59:37 Are there Android Apps developer willing and available to spend their 2 minutes talking about the tools you use to detect and solve bugs during development? I am looking for analysis tools specific for Android and any suggestion would be appreciated! Thanks!! May 02 11:00:29 buy a physical device, load your appo May 02 11:00:53 toss your device into the air, leave it out in the sun, let your kids use it May 02 11:03:03 "Some 17% of U.K. adults believe Google has their best interests at heart" :| May 02 11:03:29 If google doesn't who does goos, WHO DOES? May 02 11:03:35 :p May 02 11:03:44 at least that's not fb May 02 11:08:16 they think goodle think about them ? May 02 11:08:43 i for one get a birthday card from google every year! May 02 11:22:39 hm.. when i specify setActionWith with a layout that has a FrameLayout layout_width="@dimen/action_button_min_width" i get an inflate exception May 02 11:22:49 err, setActionView May 02 11:28:25 hey May 02 11:28:42 how can I password-protect uninstallation of my device administrator application? May 02 11:34:46 you can't May 02 11:38:19 what language in Lithuania ? lithuanian ? May 02 11:39:10 zhulikas: look into enterprise solutions May 02 11:39:30 elkng, yes May 02 11:39:34 nyan language May 02 11:40:02 why nyan ? nyan cat ? May 02 11:40:15 yeah May 02 11:40:23 nyan cat is national mascot May 02 11:40:28 of lithuanya May 02 11:40:36 yeah, we have a national mascot May 02 11:40:37 deal with it May 02 11:40:47 elkng, http://lmgtfy.com/?q=what%20language%20is%20used%20in%20lithuania May 02 11:41:28 i prefer tac nayn May 02 11:43:16 "cat is national mascot", doraemon ? May 02 11:46:32 http://imagebin.org/index.php?mode=image&id=256162 May 02 11:46:56 ech May 02 11:46:56 shit May 02 11:47:45 no offence May 02 11:51:50 Hong Kong has a new temporary mascot: http://goo.gl/GSnGM May 02 11:52:27 Where's my duckhunt gun? May 02 11:52:48 damn it... its in my closet somewhere May 02 11:53:01 you mean bayou billy gun May 02 11:53:07 hello, how can I move an android app from one developer account to an other? May 02 12:00:58 is it just me or play.store.com/apps/publish doesnt work? May 02 12:01:12 it says that site made loop of redirections? May 02 12:02:24 anyone else have same problem? May 02 12:03:18 anyone?:< May 02 12:03:47 ciurkut: weird, you're the second person to say that today May 02 12:04:11 cool... at least im not alone May 02 12:04:13 :< May 02 12:04:27 can you check for me dimensions of promotional graphic for app? May 02 12:04:43 it was like 1200xsomething May 02 12:04:46 but i cant check May 02 12:05:25 they hacked play store :<... and now they are comming for us :< May 02 12:07:22 ciurkut: Poland ? May 02 12:07:25 yep May 02 12:07:29 nice May 02 12:07:37 polish store doesnt work?! May 02 12:07:38 :< May 02 12:07:38 what language do you have in Poland ? May 02 12:07:43 polish May 02 12:07:43 :D May 02 12:07:51 just as I thought May 02 12:07:59 gut May 02 12:08:05 ich gehe essen May 02 12:08:06 :C May 02 12:08:41 so can anyone check for me dimensions of promotional graphic? May 02 12:08:58 1024x600 and 512x512 May 02 12:09:09 thx May 02 12:09:49 eh May 02 12:09:53 180x120 May 02 12:10:00 and 1024x500 May 02 12:10:32 "ich gehe essen", thats would be german May 02 12:10:56 ciurkut: liebst du essen ? May 02 12:32:27 is it possible to put framelayout's child layout off-screen ? May 02 12:33:39 i don't get it May 02 12:33:48 what do you want to create? May 02 12:48:40 focken play store Y U NO WORK?! May 02 12:50:14 ciurkut: cuz ur mom! May 02 12:50:38 mom! stop eating internet :/ May 02 12:50:47 *omnomnom* May 02 12:52:00 ciurkut: getting error 403? May 02 12:53:24 any of you use intellij? I can't figure out how to specify a class name when doing the whole "go to symbol thing".. like "MyActivity.onOptionsMenu.." May 02 13:05:15 good afternoon May 02 13:05:40 monsti: could you please see http://stackoverflow.com/questions/16338647/framelayout-is-it-possible-to-put-child-layout-off-screen May 02 13:06:01 is there something special I need to do in order to save the list position in a ListFragment when there is a configuration change like rotation? May 02 13:06:14 monsti: i'm trying to animate A layout in and out of screen May 02 13:07:50 Dear fellow programmers, whom are probably much smarter than I am. I ran into a problem during Android Java development. I'm trying to implement Socket.io on Android in combination with node.js. However, I'm using this poorly documented class for socket.io java support and I'm not really familiar with Java. ::::TL>DR::::: What I'm trying to do is get the (String event, ..., Object... May 02 13:07:50 args) event name to identify an event sent by the socket.io server and read the arguments of that specific event. When I System.out.print(args[0]) I get {'usercount','0'} echoed. How do I access the '0' instead of this entire {'...'} block? Here's a pastebin of the code: http://pastebin.com/3PbxhaeM. THX IN ADVANCE!!! May 02 13:10:01 you mean {'usercount':'0'} ? May 02 13:10:14 use something to parse json May 02 13:10:23 either org.json or gson or whatever else you'd like May 02 13:12:33 hi, I have an app that runs a service in the background and continuously gets updates for data that I need to keep updating on the screen (activity). whats the best way to do this? Right now i am storing it in database and activity is polling this, but i rather just have the activity get it directly from service if its possible May 02 13:13:56 sylon: it's generally not a bad idea to persistently store it somewhere May 02 13:14:05 sylon: since the service may die, etc May 02 13:14:44 sylon: you can of course bind to the service directly and execute methods on it May 02 13:14:55 how about a broadcast receiver May 02 13:14:55 MDijkstra: i don't really care if the service dies cause each update contains everything i need May 02 13:15:03 which can then return the data May 02 13:15:16 broadcast receiver is another good option, as basilisk said May 02 13:15:20 i read up on bound service - but maybe i misunderstood something - this kinda of service cannot run by itself? May 02 13:15:33 sylon: it can May 02 13:15:38 another option is loaders, http://developer.android.com/guide/components/loaders.html May 02 13:15:51 sylon: if you call startService on it it'll remain running even when the last client unbinds May 02 13:15:57 if you insist on storing the data in the database that is May 02 13:16:32 sylon: with a broadcastreceiver you could simply push the data to the activities from the service May 02 13:16:53 MDijkstra: have you got an example? not sure what to google for May 02 13:17:45 pfn, I will try to parse the args as JSON May 02 13:18:17 sylon: http://www.vogella.com/articles/AndroidBroadcastReceiver/article.html May 02 13:18:25 not an official tutorial, so dunno how accurate it is May 02 13:18:27 does anybody have an experience with android-maven-plugin? May 02 13:19:17 can you pass rich objects through broadcast receiver? May 02 13:19:51 you can pass anything that implements the android serialization api May 02 13:20:46 If system.out returns : [Ljava.lang.Object;@40f3f5e8. Then how should I correctly display the object contents? May 02 13:21:57 ricklamer: you can implement the toString method for the class May 02 13:23:17 But when I do System.out.print(args[0]); I get back: {"message":"Welcome to the chat client!"} May 02 13:23:40 depends on the object you pass in to print May 02 13:23:51 cool thanks May 02 13:24:27 When I try arg[0]["message"] (which I tried because it works in JavaScript) it gives me an error. May 02 13:24:43 How do I access "Welcome to the chat client!"? May 02 13:25:56 ricklamer: what is the type signature for arg May 02 13:27:15 How do I know/find out? May 02 13:27:22 (Object ... args) this? May 02 13:27:59 mind sharing some code? May 02 13:28:03 ricklamer: pfn already told you to use a json parser May 02 13:28:10 and java != javascript May 02 13:29:51 Ill try using a JSON parser, and I know Java is not javascript. But I was at the point that I was just trying stuff. May 02 13:32:58 "java != javascript", captain obvious, is it you ? May 02 13:34:00 LOL May 02 13:34:21 * StingRay_ is not ashamed to admit he knows not the difference (other than there being on) that java != javascript May 02 13:34:40 one* May 02 13:35:36 never really thought to look into it either May 02 13:39:19 any ideas on this : http://stackoverflow.com/questions/16338647/framelayout-is-it-possible-to-put-child-layout-off-screen?   ? May 02 13:39:27 help is needed May 02 13:41:05 use a sliding menu lib May 02 13:41:40 but you can do what you want either with anim + animlisteners AND/OR negative margins I would think May 02 13:42:48 I have tried the anim and negativ margins May 02 13:43:00 Layout keeps returning into visible area May 02 13:43:27 then your doing it wrong May 02 13:43:30 I'm thinking of combination: animate out -> visiblity gone May 02 13:44:02 you can have states that indicate resting positions on animations, fillAfter fillBefore May 02 13:44:51 but yeah, vis gone at the end of the anim sounds about right May 02 13:44:52 :) May 02 13:45:35 ok, thanks I will read about fillAfter and fillBefore, I;m new to android. :) May 02 13:46:39 I have related question May 02 13:47:49 when I was editing my xml file in eclipse a set layouts margin to negative and I looked at Graphical Layout in eclipse, and it was out of screen May 02 13:48:06 but as soon as tested it on my phone it was back in May 02 13:48:12 is that normal ? May 02 13:53:37 anyone ever get GL error from OpenGLRenderer: 0x501 when working with opengl es 2.0? May 02 13:57:28 @Override May 02 13:57:28 public void on(String event, IOAcknowledge ack, Object... args) { May 02 13:57:28 System.out.println("Server triggered event '" + event + "'"); May 02 13:57:28 if(event == "welcome"){ May 02 13:57:28 System.out.print("WELCOME!!!"); May 02 13:57:29 } May 02 13:57:29 May 02 13:57:30 } May 02 13:57:51 how can this echo: Server triggered event 'welcome' and not print "WELCOME!!!"? May 02 13:58:43 please use pastebin for sharing code snippets. May 02 13:59:05 *excuser May 02 14:00:27 Hello! I have this little project where I want to control my phone through the computer. I have an accessibility service that can react to notifications. However I can't seem to force my custom keyboard open. When I simulate a click on an EditText it doesn't show up. If I use the InputMethodManager it does not either. What do your brains suggest? May 02 14:01:01 isn't there an intent to show the keyboard? May 02 14:02:06 http://pastie.org/7753082 May 02 14:02:12 thats from a project i did a long time ago May 02 14:02:16 could be easier now May 02 14:02:21 i think thats andorid 1.5 or something=) May 02 14:05:49 asfdd: there you have a handle on the actual EditText class. May 02 14:06:21 If I had that I could simply just use .setText() on it. However, I only have AccessibilityNodeInfo instances for the views. May 02 14:06:44 find a way to get the focused component then if you just want to show it at a random component May 02 14:07:40 http://developer.android.com/intl/fr/reference/android/app/Activity.html#getCurrentFocus%28%29 May 02 14:09:17 I don't want to show it at a random component. I can focus the correct component but I can't get any text in there. May 02 14:09:41 so why are you asking about a keyboard? :P May 02 14:11:03 anybody experienced with the android maven plugin? May 02 14:20:27 hello good morning everybody i'm a hobbyst without java skills i've been programming in android 1 year ago and i want to know where can i learn best programming practices for android May 02 14:22:04 asfdd: I'm asking for any idea that might help accomplish that. May 02 14:22:54 i don't understand why you can't just get the view and cast it to the correct class but i don't work much with android so i might just be ignorant May 02 14:23:29 or if android has binding set it directly to the model =) May 02 14:26:25 The view is from a different (3rd party) Activity. May 02 14:30:51 marrrk: what is it your attempting to do ? May 02 14:30:59 not how…. but what ? May 02 14:31:20 Writing messages on my computer and sending them through my phone. May 02 14:33:00 popers, by looking through aosp code and following their approaches May 02 14:33:06 is probably a good start May 02 14:33:38 StingRay_: I don't know how they bring up the keyboard in TalkBack for exampel May 02 14:34:12 well if it's not a textView getting focus, it will be the imputManager calling it May 02 14:34:16 * StingRay_ is guessing May 02 14:35:41 I can focus a text view. I can simulate a click on it. But the keyboard doesn't come up. May 02 14:36:08 requestFocusFromTouch ? May 02 14:36:09 I'm wondering anyway where the keyboard reacts. It's not part of the onclicklistener because I made an empty one and it still comes up! May 02 14:37:04 How to make ListFragment save the scroll position when there is a configuration change like rotation? May 02 14:37:08 any gotchas? May 02 14:37:31 Epilog: no May 02 14:38:12 StingRay_: I only create the ListFragment if the savedInstance of the activity is null May 02 14:38:40 StingRay_: I do, however, create another instance of the CursorAdapter but getListAdapter is always null... May 02 14:38:41 what I wish for, more than anything in the world, is to be able someday to understand queries being made in these channels... May 02 14:39:43 Izhido: step 1, almost all statements are actually questions :) May 02 14:40:02 you have to kinda guess to what the question would be if it were not a statment May 02 14:40:08 :) May 02 14:40:20 your face is ugly. May 02 14:40:33 and simply adding a "?" to the end of a statement is odd ? May 02 14:42:37 alright so what is that requestFocusFromTouch? A function of widget? May 02 14:44:18 I think you can search the api and answer your own question May 02 14:44:19 :) May 02 14:45:31 api docs* May 02 14:46:20 Okay so I guess I can't invoke the keyboard by selecting or focusing the field. Sad. May 02 14:46:43 huh ? May 02 14:46:59 you mean from your finger ? May 02 14:51:57 No. Through an accessibility service. May 02 14:52:21 why cant you requestFromTouch ? May 02 14:52:49 Because it's not my view. May 02 14:52:54 Hey guys, when you click the home button, the Activity is paused right? Does the Activity kill itself after a certain time? because when I exit the app and go back in within a couple of minutes everything works as normal. However, when I exit the app and come back to it maybe an hour later it, it's just a blank screen for a while and some of the methods aren't called I don't think :S May 02 14:52:55 It's some random messenger app. May 02 14:53:37 CocoStorm: if by paused you mean Activity.onPause is called then yes. May 02 14:54:02 CocoStorm: and after that its process can be killed at any time if the memory is needed for some other app/process May 02 14:54:10 appel1, so when you exit the app, onPaused is called and after a while it kills itself? May 02 14:54:25 appel1, Oh so how do I work around that May 02 14:54:35 appel1, because when it does kill itself, my app goes tos hit May 02 14:54:36 *shit May 02 14:54:36 CocoStorm: no, it is killed May 02 14:54:51 appel1, it is killed after a while you mean May 02 14:54:56 CocoStorm: then your implementation is broken :) May 02 14:55:11 CocoStorm: you should start by reading docs like http://developer.android.com/guide/components/activities.html#Lifecycle May 02 14:55:14 CocoStorm, yes, after a time your app may get evicted from memory May 02 14:55:28 CocoStorm, read the lifecycle, make sure you implement onSaveInstanceState properly May 02 14:55:39 Mavrik, okay I will do, thanks May 02 14:56:12 CocoStorm, in debug options on the phone you can turn on force kill of activities always for testing May 02 14:56:13 Mavrik, I have sharedPreferences though so that will still be available? May 02 14:56:22 Mavrik, that's handy thanks May 02 14:56:33 um, what do you mean by shared preferences? May 02 14:56:53 proably saved key-value pares ;-) May 02 14:56:58 guys... why is play.store.com/apps/publish doesnt work May 02 14:57:03 because of loop May 02 14:57:12 anyone else have same issue? May 02 14:57:21 yeah, I have a boolean to check whether the user is logged in in sharedPreference and the username itself May 02 14:58:02 ciurkut: works here May 02 14:58:15 ciurkut: agree with you May 02 14:58:22 also redirect loop here May 02 14:58:34 CocoStorm, um, I don't see the connection. Go read the docs on lifecycle and instance saving so you'll have a clearer picture of what's going on :) May 02 14:58:50 Mavrik, will do, thanks! May 02 15:05:45 hi May 02 15:05:47 Has anyone here ever worked in any application Torch? May 02 15:05:52 timroes i fixed it May 02 15:05:53 :C May 02 15:07:14 I have a torch that code works fine on a device on a sony ericsson motorola defy but it does not work properly. When the torch trigger it seems to involve something autofocus and not turn on the light May 02 15:08:23 does anyone know if there is some adaptation to function in the Torch handsets motorola? May 02 15:11:25 can someone please help me? May 02 15:12:35 what. May 02 15:13:42 Mavrik: I have a code that Torch is running on a machine in a sony and motorola does not work correctly it seems to try to adjust autofocus and not turn on the light May 02 15:13:53 ops device sony May 02 15:14:34 it seems that this code also works on samsung May 02 15:15:01 Mavrik: But I do not have a device to test samsung May 02 15:17:33 ciurkut: how? May 02 15:19:08 Might be because play.store.com is the wrong url May 02 15:20:04 okay i read play.google.com :D and anyway getting redirect loops for that May 02 15:20:23 Works fine here May 02 15:20:51 https://play.google.com/apps/publish appends ?pli=1 and ends in a redirect loop here May 02 15:21:22 So don't append ?pli=1 ;O May 02 15:21:34 i don't :D May 02 15:21:38 Anyway, works fine as well May 02 15:21:59 get forwarded to ?pli=1 May 02 15:22:25 everything is 302 moved temporary May 02 15:22:37 Googles servers dont like you ;d May 02 15:22:41 anyway i don't need the console right now, so I don't care, :D May 02 15:25:10 Anybody know how to scale the container for an ImageView in an XML layout file? May 02 15:25:24 SimonVT: clearing cookies helped :) May 02 15:25:28 I'm able to get the actual image data to scale, but the container is still the same size May 02 15:33:41 timroes ctrl shift del May 02 15:33:43 at chrome May 02 15:33:51 and than it should work May 02 15:33:58 just clean cookies May 02 15:34:04 yeah i just deleted the cookies for play.google.com :) May 02 15:34:13 didn't want to clear it for every page May 02 15:45:11 should've gone to market.android.com/publish/Home like me May 02 15:46:35 should've gone home :) May 02 15:49:45 anyone here has worked with switching on and off the flash light? Could you help me? May 02 15:54:27 I keep getting this error: Failed to find provider info for com.example.myapp.MyContentProvider May 02 15:54:48 dang it, afk brb May 02 15:56:42 damnit google, why you no add a search extension so I can type "108pixels in dip in xhdpi" in a search bar and give me the number of dip back May 02 15:56:55 216? :P May 02 15:57:05 hmm May 02 15:57:12 no. May 02 15:57:16 but yes, that would rock :) May 02 16:07:47 If I switch my device off and on does this replicate the system killing my application due to memory needed elsewhere? i.e would onSavedInstanceState be called because savedInstanceState seems to be null when I reopen my app? May 02 16:09:23 No May 02 16:10:05 SimonVT, I see, so nothing is saved when the device is switched off May 02 16:12:33 anyone? May 02 16:12:45 what CocoStorm May 02 16:13:39 Looney, If I switch my device off and on does this replicate the system killing my application due to memory needed elsewhere? i.e would onSavedInstanceState be called because savedInstanceState seems to be null when I reopen my app? May 02 16:13:55 no May 02 16:14:29 no May 02 16:14:30 CocoStorm: didn't you ask that question, like 6 minutes earlier? May 02 16:14:55 CocoStorm: I don't think you even get onSaveInstanceState called when you're killed due to memory pressure May 02 16:15:08 You do May 02 16:15:08 evancharlton, really? May 02 16:15:15 so, I'm getting an error: "Failed to find provider", I assume it's a conflict between my Manifest.xml and the String the provider uses May 02 16:15:28 but I'm at a loss what it could be May 02 16:15:56 kay thanks guys May 02 16:16:57 I'm pretty sure that the system just sends your process a SIGKILL when the system needs more memory May 02 16:17:55 evancharlton, the docs say it saved stuff May 02 16:17:56 *saves May 02 16:18:07 alright, then go by the docs May 02 16:18:25 unless i'm reading it wrong May 02 16:34:34 anyone with opengl experiance here.. getting a logcat output of GL error from OpenGLRenderer, and my views are all fucked May 02 16:34:39 artifacts everwhere May 02 16:49:25 question. if i want to have ad displayed in two activities May 02 16:49:33 should i make 2 ads May 02 16:49:37 or use one ad May 02 16:49:53 i mean ad units May 02 16:54:23 http://stackoverflow.com/questions/16333482/android-webview-onbackpressed May 02 16:54:44 I am unable to understand why wekview cannot do same thing as browser back button May 02 16:55:15 does webview lack this capability ? May 02 16:55:21 So for the last few days, I've been breaking my head trying to figure out a decent way to store passwords/credentials on a device that's a little better than standard permissions-based stuff. My current approach is at https://gist.github.com/kbsriram/5503519 -- if someone is knowledgeable about this area; would love some feedback. May 02 16:55:38 what gets called when the activity reloads when the activity is killed due to memory needed elsewhere? onCreate() right? May 02 16:55:55 SavedInstanceState is still null D: May 02 16:56:32 coco oncreate onstart onresume? May 02 16:57:16 ciurkut, oh, that's weird cos I have the if SavedInstanceState!= null condition and nothing in it gets called May 02 16:58:10 cause maybe nothing was saved? May 02 16:58:12 :< May 02 16:58:18 CocoStorm: but when you rotate the screen it's fine right ? May 02 16:59:58 I have disabled screen rotation so not sure May 02 17:00:00 StingRay_, May 02 17:00:08 ciurkut, I have onSavedInstanceState though May 02 17:01:08 I have outState.putString("username", username); May 02 17:03:20 strange right? May 02 17:04:26 cant tell May 02 17:04:30 doubt it is May 02 17:04:36 :) May 02 17:04:41 StingRay_, doubt it is strange? :S May 02 17:04:45 ya May 02 17:07:52 what did i miss May 02 17:08:00 the internet connection at starbucks is horrible May 02 17:08:27 i said "ya" May 02 17:08:28 CoCoStorm: I am yet to go to a starbucks where the internet doesn't blow May 02 17:08:30 I don't get it May 02 17:09:08 andrewcarter, The wifi used at starbucks in england use BTOpenZone and that's generally quite shit May 02 17:09:15 *london at least May 02 17:09:17 StingRay_, I see May 02 17:09:21 heh May 02 17:09:32 They use AT&T DSL in the US I think May 02 17:09:34 StingRay_, So a string can be bound together with a key and stored as a namevaluepair object? May 02 17:10:02 yes May 02 17:10:08 StingRay_, cool :) got it thanks May 02 17:10:20 a bundle May 02 17:10:34 andrewcarter, and yes, the US is better than England in many ways imo May 02 17:10:38 so bundled together :) May 02 17:10:47 StingRay_, stored as a namevaluepair bundle? May 02 17:10:50 oh i see May 02 17:10:56 no May 02 17:10:57 and it's stored as a namevaluepair object, cool May 02 17:11:03 look at bundle class May 02 17:11:16 your on about savedInstanceState object right > May 02 17:11:17 ? May 02 17:11:28 StingRay_, right now? just namevaluepairs in general May 02 17:13:15 StingRay_, So disregard the bundle? May 02 17:13:32 your loosing me now May 02 17:13:45 you asked if it's odd that your saveInstanceState is null May 02 17:14:05 I said doubt it, meaning it will be something you are doing / done that is causing it to be null May 02 17:14:42 StingRay_, Ah I gave up on it and was meaning to look into it later so I moved on to nameValuePairs in general and asked how they are stored May 02 17:14:44 some days Android makes me want to scream May 02 17:15:07 and shout, and let it all out May 02 17:15:10 :Call requires API level 16 (current min is 7): android.view.View#setBackground May 02 17:15:28 Ankhwatcher: what are you setting ? May 02 17:15:33 :This method was deprecated in API level 16. May 02 17:15:34 use setBackground(Drawable) instead May 02 17:15:35 a resource ? May 02 17:15:36 StingRay_, so strings can be bound together with a key and stored as a namevaluepair object May 02 17:15:37 aaaah May 02 17:15:45 Arrghhndroid May 02 17:15:54 I'm setting a background drawable May 02 17:16:34 they've changed the name of the function in API 16 so now lint either tells me it won't work because it's unavailable or it shouldn't be used because it depricated May 02 17:20:34 anyone here has worked with Torch? I have compatibility problems with devices in my code could use some help May 02 17:21:41 my code works fine on a device but in sony motorola defy does not work he tries to trigger the autofocus and not turn the light May 02 17:26:18 whenever I have to use motorola droidLed Class? May 02 17:36:01 Is it possible in my CustomTextView which extends TextView to calculate how many lines of text I can fit (E.g.:Trying to calculate maxLines instead of setting it manually) May 02 17:37:28 try android.text.StaticLayout maybe, assuming you know the width of the container. May 02 17:39:01 but that gives me linecount of a given text right May 02 17:39:10 I want to know how many lines of my text will be visible May 02 17:44:04 http://stackoverflow.com/questions/16333482/android-webview-onbackpressed ...hope some one answers May 02 17:44:39 webkit webview does not seem to help like history.back on browser May 02 17:44:58 im using the android videoView control. It keeps snapping to the sides of the screen to auto align. Is there any way to stop that? May 02 17:45:49 Manavan: hm, interesting. In principle, the height "should" be the lineheight*numlines, and you can include some of the padding from the fontmetrics -- but I've never tried that myself so I'm out of other ideas :-) May 02 17:47:47 Is there a layout type which will shift an item under the previous item if there is not enough space May 02 17:47:59 Hey, I'm trying to get a unique device ID outside of an activity, can I do this? May 02 17:48:12 ie derp | derp | derp becomes May 02 17:48:27 derp | derp | May 02 17:48:29 derp May 02 17:48:31 this: http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id is problematic, because getContext isn't set May 02 17:49:42 Ankhwatcher: it sounds like you want to do somehing like a FlowLayout -- romainguy had a post about it some time back, which might be helpful. https://code.google.com/p/devoxx-schedule/source/browse/devoxx-android-client/src/net/peterkuterna/android/apps/devoxxsched/ui/widget/FlowLayout.java May 02 17:51:24 kbs: thanks! May 02 17:51:36 kbs Hi again! I am just trying to fix the TextView bug that doesn't ellipsize unless multilines are specified. May 02 17:52:06 *maxlines May 02 17:53:39 Manavan: *thinking* so presumably, you have a max-height, but it's just not expressible as numlines? is that about right? May 02 17:53:47 <|0xD34D|> Korvin: you have no access to a Context object at all? May 02 17:53:48 er, maxlines May 02 17:54:08 |0xD34D|, I did not, I found an article that explained how to fix that May 02 17:55:33 Manavan: also looking at this SO post -- sounds like another possibility, thought I haven't tried this myself. http://stackoverflow.com/questions/14173776/ellipsize-not-working-properly-for-a-multiline-textview-with-an-arbitrary-maximu May 02 17:56:01 I'm really wading through android development as fast as I can |0xD34D|, I didn't even think of creating an application sub-class May 02 17:57:09 wow kbs thats a simple solution. Hope that works. getHeight() / getLineCount() May 02 17:57:33 will give a try May 02 17:58:02 all hail google :-) May 02 17:58:09 I think I have asked this a thousand times before, but I still don't know the answer May 02 17:58:20 :) May 02 17:58:29 two children of linear layout right next to each other. I want one to always be visible and the other to take up as much room as possible without obscuring the other May 02 17:58:49 Do I set the layout_weight of one to 1 and the other to 0? May 02 17:59:11 set the weight of the one you want to expand to 1 May 02 17:59:17 and do not set the weight of the other one May 02 17:59:51 basilisk: Thanks, I'll give that a go May 02 17:59:53 and you should set the layout_width of the child with weight 1 to 0 May 02 18:14:53 I'd like to develop an IME that's transparent and always completely covers whatever activity caused it to be launched. I've seen examples of fullscreen transparent activities, but when developing an IME it seems all I get to render is a view. How would I go about doing that with an IME? May 02 18:16:06 Is the standard for storing data in an app sqlite? May 02 18:17:38 Korvin, sharedpreferences for small pieces (individual settings) and sqlite for everyhing else yea May 02 18:17:49 awesome, thank you May 02 18:17:57 sharedpreferences for auth aswell? May 02 18:18:19 Korvin: http://developer.android.com/guide/topics/data/data-storage.html May 02 18:19:12 For auth, http://stackoverflow.com/questions/1925486/android-storing-username-and-password maybe May 02 18:35:20 heh. I've just spent a couple of days obsessing over auth. My "least worst solution" after a lot of googl'ing https://gist.github.com/kbsriram/5503519 May 02 18:35:35 can someone please help me work out a code that only Torch is working on some devices? May 02 18:37:52 hi, is it possible to use Android Google Maps API v2 with API10 ? May 02 19:07:33 kbs, keystore isn't so safe... May 02 19:07:38 kbs, keystore is shared data May 02 19:08:07 kbs, so, by storing your stuff in keystore, any app that has access to keystore now has access to your credentials May 02 19:08:26 oh, they're bound? May 02 19:08:27 hmmm May 02 19:09:00 pfn: yep :-) May 02 19:09:11 pfn: access controlled by app userid May 02 19:09:45 again, it's the least worst alternative. The real issue I see is that it's (for all practical purposes) generally protected by a 4-digit lockcode May 02 19:10:00 you can choose a more secure lock code May 02 19:10:12 yes, but for all practical purposes, most people dont May 02 19:11:24 It would be terrific if there was a way to ensure brute-forcing occurs on the device (a.k.a ios) but I can't seem to see anything that's generally available that does that. oh well. May 02 19:11:26 kbs, nicely done, though May 02 19:11:56 sure, make /data/misc/keystore world unreadable May 02 19:12:04 and that ensures brute forcing occurs on-device only May 02 19:12:11 unless you root and give unlimited root permission May 02 19:12:13 yeah, nikolay had a really interesting idea and I just cleaned it up a bit. May 02 19:12:20 *nod* that's the real kicker May 02 19:12:39 if a phone is stolen, I'm not sure it's particularly hard to root it, etc May 02 19:13:00 i like the new bootloader encryption in 4.x, but it's not generally used/available in any case May 02 19:13:18 make sure your bootloader is locked and rooting is relatively difficult May 02 19:13:28 of course, if your phone is stolen May 02 19:13:38 it's gonna get unlocked eventually May 02 19:14:31 yep. I finally decided that this was a small step above simply putting it into sharedpreferences, like I see 90% of the apps end up doing... May 02 19:14:54 you only have to run faster than the next guy to escape the lion, or something :-) May 02 19:36:44 how can i get a borderlessButtonStyle on non-holo devices? May 02 19:36:47 Is there a definitive IOS development concept crossover for android development? May 02 19:48:37 Hi May 02 19:49:36 I wanna run main activity function from another class May 02 19:53:14 Hey, I got a question... if i wanted to load Contacts information from the Content Provider and show each contact in a cell in a GridView (showing the name + contact photo), what would be the best way to do that in case I have 700 contacts or more? May 02 19:53:34 I tried using an ArrayList of Contact Beans May 02 19:53:53 and then load the information of of it in getView (BaseAdapter) May 02 19:54:05 but that does not work well if I have alot of contacts... May 02 19:54:07 so what should I do? May 02 19:54:15 Use a cursoradapter May 02 19:54:24 I tried that May 02 19:54:27 using a cursor loader May 02 19:54:35 but what do I do with the cursor? May 02 19:54:45 do I use that directly in getView? May 02 19:55:25 I queried in taht cursor for ID, DISPLAY NAME and PHOTO URI May 02 19:55:26 Look up cursoradapter May 02 19:56:14 Have a REST server up and running, Where can I see some guide to make a HelloWorld in an android app for JellyBean? May 02 19:56:29 I just want to GET a URL May 02 19:57:11 Should I use HttpURLConnection or apache HttpClient? May 02 20:08:24 crised: I really like http://loopj.com/android-async-http/ May 02 20:09:23 any idea why eclipse would crash every time i try to export signed apk? May 02 20:09:28 or how i can even find out why it is? May 02 20:13:37 speakingcode-wor: theres a few bugs that cause that May 02 20:15:38 Napalm: i know it's really a shot in the dark w/o specific error messaging but any idea of any sort of direction to go for resolve? May 02 20:16:55 speakingcode-wor: disable auto project building before exporting May 02 20:17:27 I have a funky question May 02 20:17:30 I'm in a class May 02 20:17:44 I can type this.startActivity( and the little intellisense thing comes up and everything seems okay May 02 20:17:55 so I made another class with a public static function May 02 20:18:09 it takes a parameter of type android.app.Activity May 02 20:18:19 (I believe .startActivity comes from android.app.Activity, right?) May 02 20:18:38 but when I try to call that function and pass in this, it says it can't convert this to an Activity May 02 20:18:47 why cant you call startActivity from that class May 02 20:18:51 pass in the context May 02 20:19:10 Napalm: thank you so much. worked May 02 20:19:19 that's what I'm trying to do. Pass the context? Not an activity? May 02 20:19:20 np May 02 20:19:52 ProgramMax: what is this class you speak of.. is it a anonymous inner class? May 02 20:20:26 the class where I can this.startActivity( is public class foo extends ListFragment{ May 02 20:20:38 not sure how it gets a .startActivity ... May 02 20:20:41 heh May 02 20:20:51 just call getActivity.startActivity(...); May 02 20:20:56 getActivity().startActivity(...); May 02 20:21:03 oh, you can do that? Sweet May 02 20:21:04 thanks May 02 20:21:12 why does ActionBar.setCustomView behave differently when using a resid vs. a view... May 02 20:21:13 Anyone wants to test my app? May 02 20:21:24 pfn because its crazy May 02 20:21:27 pfn: hows it going? May 02 20:21:35 good, busy, same ol', you? May 02 20:21:36 Patterns lite:< May 02 20:21:36 pfn: you using native custom view? May 02 20:21:42 in this case, abs May 02 20:21:42 ahh May 02 20:22:01 ah, well that might have something to do with it, but i can tell you probably why May 02 20:22:13 the action bar imposes some layoutparam's on the customview May 02 20:22:31 I want to make my app to have full screen images that i can scroll through, like gallery, can anyone point me to the right direction? May 02 20:22:39 the resid is inflated and by the actionbar and therefore it determines the layoutparams May 02 20:22:41 Napalm, indeed, it's certainly a possibility May 02 20:22:44 what should i use? May 02 20:23:00 where as a view you hand in can have the pre-set and therefore they are used instead May 02 20:23:18 androidman: ViewPager May 02 20:23:21 Fragments with view pager May 02 20:23:26 no fragments May 02 20:23:46 ok thanks, i'll try May 02 20:23:54 androidman: if you are only displaying images, simply return a ImageView, but most of the time fragments are overkill May 02 20:24:08 yea only images May 02 20:24:21 andrewcarter: looks nice, although google advices to use Java libraries May 02 20:24:40 andrewcarter: ->We recommend using HttpURLConnection for applications targeted at Gingerbread and higher May 02 20:25:04 crised: Doesn't this utility use java libraries underneath though? May 02 20:25:10 so either use a "wrapper" someone else made May 02 20:25:14 or write your own wrapper May 02 20:25:30 andrewcarter: apache May 02 20:25:49 what do you guys think of robospice? May 02 20:33:16 jan1337z: sounds greate! May 02 20:33:21 great May 02 20:33:47 i am currently using spring resttemplate May 02 20:33:56 which is also stronly typed May 02 20:34:31 i get POJO from json (created by wcf) and can put the result stright to database with ormlite May 02 20:34:55 that's like sex with three topmodels ;) May 02 20:36:06 what is wcf May 02 20:36:54 anyone here has worked with the flash light of the camera? I'm having trouble with motorola devices where the camera seems to trigger the auto focus and the light does not light. May 02 20:37:43 someone who knows how to make the setting for the flash LED to work properly on Motorola devices? May 02 20:38:49 maybe try setting the focus to infinity when you enable the led May 02 20:38:53 shigeru: windows communication foundation May 02 20:43:57 andrewcarter: so this library saves you to make another class? right? May 02 20:48:47 hey guys. I'm trying to setup a test for a service.. I'm currently having trouble writing to files even though I'm passing it getSystemContext() May 02 20:50:29 deleet: files in the external dir? May 02 20:52:11 Napalm: they are being saved in /data/data/pkgname/ May 02 20:52:51 whats does your exception stack trace say? May 02 20:53:14 but pkgname is null (because I see the call to /data/data/null/) .. I'm using getSystemContext and setContext so not sure why this is happening May 02 20:54:26 androidman: I tried this but have not had success May 02 20:54:37 setContext? May 02 20:54:49 yes I'm using ServiceTestCase May 02 20:54:54 deleet: sounds like you are scewing up your context May 02 20:55:20 wait.. why are you using getSystemContext()? May 02 20:55:45 because I dont' want a mock context (since I need to write files to the package dir) May 02 20:56:21 How do I log an enum? May 02 20:56:29 ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); Log.v("blah", connMgr.getActiveNetworkInfo().getState().getLabel); May 02 20:56:37 Hi, I'd like to add external jars to my ant build scripts, right now it seems like the way is to add a -pre-build copy to libs folder in custom_rules.xml May 02 20:56:53 I'd like to just reference the jar in some external/common directory May 02 20:57:18 has anyone done this or have suggestions? May 02 20:57:21 porten: add them to your .classpath? May 02 20:57:36 crised: saves time imo May 02 20:57:52 see my code: http://pastebin.com/aZkKH4vZ plis help me work flash led on motorola devices May 02 20:58:34 andrewcarter: thx, I'll keep the advice May 02 20:58:44 porten: I do just that (ant copy task in custom_rules.xml) but I haven't had a need to refer (rather than copy.) Out of curiosity, why do you prefer to refer rather than copy? May 02 20:59:45 kbs: I have a bunch of projects that reference the library and I feel like this is just making unncessary copies May 02 21:00:13 kbs: but maybe that's just me? May 02 21:00:54 porten: Well, if it's just disk space at issue; my personal vote is to do whatever works because the cost is fairly minimal -- but I understand what you mean. May 02 21:01:05 symlinkkk May 02 21:01:17 kbs: yea, it seems like a simple deal too May 02 21:01:36 deleet: lol, more hackery, but I've thought about that May 02 21:02:26 The libs of course need to get dexed and proguarded and so forth, so I wonder how much it'll save -- safer to copy is the decision I made anyway... I have about 3 projects that refer to a common set of libs (zxing, and a custom bouncycastle.) May 02 21:03:42 Hey, how does clockworkmod differ from flashing a rom, and how would I flash a new rom after rooting/putting clockworkmod in recovery May 02 21:04:24 Wargah: #android-root May 02 21:05:05 kbs: alright, thanks for the help May 02 21:10:45 this the room to discus apk, google play market etc? May 02 21:10:55 yes May 02 21:11:16 I wanted to know if simply saving an apk file on there will be enough to save a pacakge name May 02 21:11:23 or reserve it I mean May 02 21:12:22 a quick google search suggested that, but I want to be 100% May 02 21:12:26 that I don't know, you'll have to hope and wait for reply from a googler May 02 21:12:50 I got a hella name/project and I want to reserve it May 02 21:12:55 p.s it's a "channel", not a "room" May 02 21:13:50 p.s patato-potato May 02 21:16:05 Out of curiousity, do Google devs hang out in here? May 02 21:16:46 <|0xD34D|> there is one in here right now May 02 21:16:51 <|0xD34D|> probably afk but logged in here May 02 21:18:38 Interesting May 02 21:25:06 eh,.. I just ran one of my free apk files under the new name May 02 21:25:15 and published it with a paid price May 02 21:25:18 I'll change it all later May 02 21:25:34 atleast I can change all that later May 02 21:27:33 Is PopupMenu a class of Android? I can't seem to make these popup menus May 02 21:28:26 I just get "PopupMenu cannot be resolved to a type" May 02 21:29:27 Kake_Fisk, Are you talking about this: http://developer.android.com/guide/topics/ui/menus.html#PopupMenu ? May 02 21:29:40 yeah May 02 21:31:17 Hmm, looks like this was added in Android 3. :| May 02 21:31:28 Is there any other menu systems like that I can use? May 02 21:31:36 Hi, anyone know if the eye tracking API is available yet to test with the S4? I've had a little look round, but haven't found it May 02 21:31:38 yeah, I'm seeing that it requires API 11+ May 02 21:33:11 Smashcat: well thats no android api May 02 21:33:46 monsti: Ah ok, guess it's a bit early yet May 02 21:34:03 Smashcat: you need to get an samsung sdk May 02 21:34:16 it's not part of android May 02 21:35:29 can someone please help me? working with the LED flash devices motorola? May 02 21:35:52 i learned somethign funny the other day May 02 21:36:39 the first radio's in car's where called Motorola's, like back when model A was out or shortly after May 02 21:36:55 :D and now you know May 02 21:38:16 the only thing that happens is the noise of the autofocus May 02 21:39:41 Novus: aah, nice :-) interesting. May 02 21:40:16 ahaha, looking through code and stumbled upon this one -> mContext = (Activity)context; //TODO: WIZARD, YOU SHALL NOT CAST May 02 21:43:43 i see your wizard, and raise you a three headed monkey! May 02 21:43:44 http://pastie.org/7755103 May 02 21:44:24 heh. Is this in any actual AOSP code? May 02 21:45:21 mine isn't, not sure about the not casting May 02 21:58:40 hi, i want develop an app with hide menu, i like https://play.google.com/store/apps/details?id=com.ohso.omgubuntu do you know component that show hideleft menu, such us Google+ App? May 02 22:00:14 pepigno75: https://github.com/SimonVT/android-menudrawer May 02 22:02:32 codebutler: google+ use this menu? May 02 22:02:40 pepigno75: or this http://stackoverflow.com/questions/14152328/android-sliding-menu-show May 02 22:03:41 here is the github page for the library: https://github.com/jfeinstein10/SlidingMenu May 02 22:04:09 SimonVT's library doesn't require subclassing from a special activity, it's much less intrusive May 02 22:04:54 codebutler: thanks, I thought it war Action Bar May 02 22:05:17 c0wz: thanks May 02 22:07:08 slidingmenu also doesn't require subclassing from a special activity May 02 22:07:10 pepigno75: no problem May 02 22:23:55 meh. https://play.google.com/apps/publish/ still loops May 02 22:26:37 Ge0rG: have you tried clearing all your cookies for the domain.. as it works fine for me May 02 22:27:53 Ge0rG: weird, you're the 3rd person that mentioned that now May 02 22:28:46 what does it mean 'it loops' May 02 22:28:54 redirects May 02 22:29:05 infinite redirects, presumably May 02 22:29:39 Napalm: thanks, worked May 02 22:30:03 Ge0rG: same problem here May 02 22:30:48 codebutler: cookie clearing helps May 02 22:30:52 maybe it's a loop May 02 22:53:31 which is correct: Declare my AsyncTask and assign class members using AsyncTask.myMember = "" prior to calling execute(), or should I create constructor in my AsyncTask and pass the variables in, then assign them to class members May 02 22:53:54 I know both will work but what is the proper way? May 02 22:57:49 brx_: when is assigning class members directly ever a good idea :) May 02 22:58:37 g00s, i should look into it more, but I will take head and create a constructor May 02 22:58:39 thanks May 02 22:58:44 that said, hackbod's response shows the canonical way of doing good with asynctask http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something May 02 23:00:06 cheers May 02 23:09:47 i have an app that runs on 2.3.5 but will not on 4.2.2, there anyway to get it to work? May 02 23:10:05 yes but the tool isn't voodoo May 02 23:10:14 it's brain / eclipse / debugger May 02 23:10:29 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:10:49 rlivin find out what's going wrong May 02 23:10:52 then fix that May 02 23:11:14 usually it's some very very small stuff May 02 23:11:28 how do i do that, it starts to load the fc but works fine on 2.3.5 May 02 23:11:34 e.g. networking operations needs to be done in a thread in >3.x May 02 23:11:35 <|0xD34D|> logcat is your friend May 02 23:12:08 anyone? :) May 02 23:13:04 so use logcat and it should see the problem when trying to run? May 02 23:13:40 rlivin: no you still need brain / eclipse / debugger May 02 23:13:45 in any case May 02 23:13:52 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:14:23 k May 02 23:14:24 CocoStorm: sry i couldn't read that, can you repeat it again? May 02 23:14:37 monsti, har har lol May 02 23:15:54 so can anyone just tell me whether it's correct or not? May 02 23:16:54 anyone May 02 23:17:04 monsti? May 02 23:17:25 that information is classified to 25 years old blondes May 02 23:17:34 cute and female May 02 23:17:51 ~tias May 02 23:18:21 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:18:43 <|0xD34D|> 3rd time's the charm May 02 23:20:17 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:22:32 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:22:33 huehueheu May 02 23:23:42 Hi, question on the back pressed functionality. Lets say I have fragments, and I have one tab that lets you search for content, and you can search again and again. I would want pressing back to go back to the previous search, how can i do that? May 02 23:25:16 Nothing shorter to create an object from an INput Stream ? May 02 23:25:17 http://stackoverflow.com/a/13267720/1341526 May 02 23:25:25 * a JSON object May 02 23:25:53 apache iocommons has a IOUtils.toString method May 02 23:28:09 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:31:38 Hello, when should I use a popup and when should I use a full page? I got some stuff like "Login via Google+, Twitter, Facebook etc.", registration page etc. and I can't decide which one to go for! May 02 23:31:52 Hey all, I am writing an android app, and I want to be able to place a button anywhere on the screen I like, I was using linear layout, but found out that that does not work. I tried to use absolute layout, but eclipse is telling me that absolute layout is deprecated and use a different layout, what should I be using in this case? Thanks May 02 23:32:17 um May 02 23:32:26 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:32:27 "anywhere on the screen you like" really won't fly on Android May 02 23:32:29 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:32:31 find another way :) May 02 23:32:45 theazman, or explain why do you need to put it "anywhere you like" May 02 23:33:03 CocoStorm, why are you spamming? May 02 23:33:13 Mavrik, because nobody is acknowledging me May 02 23:33:20 and answering other people instead May 02 23:33:23 it's not nice May 02 23:33:23 good. May 02 23:33:30 why is that good May 02 23:34:20 Macrik: Right now it only lets me put the buttons in the top, I want to be able to put them in different locations on the screen. May 02 23:34:22 CocoStorm: because it teaches you a valuable lesson about growing up May 02 23:34:33 says boytoy May 02 23:34:48 and not yelling at people like some damn brat going "I WANT MY CAKE!!" May 02 23:35:05 but i want some cake, NOW! May 02 23:35:08 CocoStorm: im guessing you dont know what boytoy means: http://www.urbandictionary.com/define.php?term=boytoy May 02 23:36:25 boytoy, I know what a boytoy it means you're queer May 02 23:37:15 <|0xD34D|> no it doesn't May 02 23:37:19 <|0xD34D|> chicks can have boytoys May 02 23:37:34 Sorry my internet died May 02 23:37:36 yeah it means a manwhore May 02 23:37:51 nahh May 02 23:37:59 a young man who provides sexual services usually to older women :p May 02 23:37:59 boytoy is a euphemism for dildo May 02 23:38:06 basically you're a dildo May 02 23:38:15 oh you do that? May 02 23:38:27 yes what else can he do? program? pff May 02 23:38:29 nigguh please May 02 23:38:50 monsti: from time to time yes May 02 23:38:50 theazman, basically, you should never position items in android interface absolutely May 02 23:38:57 theazman, since devices come in all shapes and sizes May 02 23:39:01 boytoy, you have aids? May 02 23:39:07 i used to do it for money but now that my app is doing it big i just do it for fun May 02 23:39:10 theazman, you always position elements accorting TO something May 02 23:39:13 boytoy: i like it ;) May 02 23:39:15 theazman, (see RelativeLayout) May 02 23:39:20 cool thanks man May 02 23:39:22 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:39:45 CocoStorm: there are lots of nfc examples May 02 23:39:46 boytoy: from time to time every lady needs some boytoy May 02 23:40:21 she does May 02 23:40:48 especially if things are going well for her. well-educated, decent income, those are the ones you have to go for May 02 23:40:58 are you considering becoming one yourself? May 02 23:41:17 codebutler, not really May 02 23:41:36 guys May 02 23:41:40 #defocus. May 02 23:42:12 boytoy, immplying you're gonna a chick with that thing, bitch please that aint any longer than your smart phone May 02 23:42:14 theazman: You can just drop everything into a FrameLayout, ensure you're using Gravity.Left, |Gravity.TOP and set left/top margins to position content. You can base positioning on the size of the device screen May 02 23:43:14 Thanks, I'll try that May 02 23:44:51 teazman: Only problem is that there are so many different aspect ratios that a full-screen design often won't work well unless you can control the types of device used. May 02 23:45:37 boytoy, *satisfy May 02 23:46:04 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:46:10 !ops May 02 23:46:14 oops! May 02 23:46:34 !opsy daisy May 02 23:46:36 Smashcat: So what do people usually do if they want to place a button lets say for example 2 inches up from the bottom right corner and 2 inches towards the center, just for example? May 02 23:46:39 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 02 23:46:45 just came across this regarding popups -- some good info right there www.androiduipatterns.com/2011/12/quick-ui-tip-avoid-popups.html May 02 23:46:57 CocoStorm: you have to wait more than 30s for someone to respond May 02 23:47:07 theazman: You can use dp (display independent pixels) May 02 23:47:29 JakeWharton, I was patient at first until people started taking the piss May 02 23:47:48 theazman: Or calculate the dpi of the device in code, then get the native resolution, and base it on that. May 02 23:48:18 theazman, you use Relative layout and set "layout_alignParentRight and layout_alignParentBottom" to position it next to bottom/right corner May 02 23:48:33 CocoStorm: You realise that we're not your parents? Pissing people off in a channel makes them LESS likely to help you May 02 23:48:35 theazman, and then set layout_marginRight/layout_marginBottom to set margins of how far away from borders it is May 02 23:48:48 theazman, in dp units of course which will adjust according to display density May 02 23:50:19 Thanks May 02 23:50:22 Smashcat, I don't give a shit if people can't help or don't know but when I'm not acknowledged and they answer other people's questions and immply that they know exactly the answer to my question I'm totally not gonna let that shit happen without making a scene May 02 23:51:08 CocoStorm: Go ahead and throw a hissy fit because you're not getting the attention you think you deserve if you like. It's not going to do you any favours. May 02 23:51:18 demand a refund! May 02 23:51:25 or get some confidence May 02 23:51:36 boytoy, some confidence? you fucking kidding me? May 02 23:51:39 CocoStorm: You're a special little snowflake. There, feel better? May 02 23:51:57 boytoy, why are you still talking May 02 23:53:38 exactly May 03 00:00:00 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:01:00 I know the answer, but I ain't gonna tell, so huff'n'puff May 03 00:01:08 ;) jk May 03 00:02:04 CocoStorm: Magic 8 Ball says, "Ask Again Later" May 03 00:02:18 yo.. If I have a multiline EditText, is there a way to prevent people from entering more than 3 lines (be it word wrap, manual enter etc) May 03 00:02:30 Smashcat, sure why not May 03 00:02:32 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:02:54 Smashcat, tell it again May 03 00:03:12 and bonus question: Is there a way to detect the enter key being pressed in a multiline EditText? (not the ime stuff, since this is multiline) May 03 00:03:13 CocoStorm: yo ease down dawg May 03 00:03:18 imma help u in a bit, just made busy right now May 03 00:03:24 * mad busy May 03 00:03:45 boytoy: CocoStorm is a very important person you see. he does not take kindly to people who make him wait. May 03 00:04:09 CocoStorm: Me too, I'm looking it up for you right now. I've made some phone calls about it. Should get a response in 15 minutes or so. May 03 00:04:11 hehe May 03 00:04:17 nah hes cool May 03 00:04:45 I launched an intent to answer that question May 03 00:05:02 arnorhs, I think you can always setup an edit listeners and look for newlines May 03 00:05:12 and cancel edit when you detect the fourth one May 03 00:05:54 Mavrik: you mean a TextWatcher? May 03 00:06:34 yeah, that's what I'm doing now.. that just feels ugly May 03 00:06:58 i was just hoping there was a secret way May 03 00:06:58 arnorhs, yeah, but you'll have more chance of success than trying to detect anything on IME May 03 00:07:02 number of "lines" would differ between devices May 03 00:07:11 since IME's are very finnicky :) May 03 00:07:13 also that May 03 00:09:26 Mavrik: yeah, there's another bad thing about this approach is that it doesn't play very nicely with wrapped text May 03 00:09:26 Wonder if you could do it by having 3 single line EditText elements, with transparent backgrounds etc, and switching between them when return pressed, or cursor moved back from start of line etc. May 03 00:12:06 I have an application that uses fragment activities, and in one tab, I have the mainbody act as a search with a edittext and a button that returns result in a listview below. the user can search again and again, however when u press back it exits the app because of a null pointer exception. How can i keep each search iteration as part of the back pressed stack? May 03 00:12:27 Or if there is another way to approach this, I am all ears. May 03 00:13:15 Also another issue I am having is that the edittext even when clicking inside the box does not get focus, but instead focus goes into the fragment tab itself, although I think that has partly to do with it being on the emulator rather than a device, because if I use the soft keyboard it seems to be fine. May 03 00:16:53 arnorhs: Another though (bit late I guess) would be to check if the scrollbar is visible (if the EditText is the right width height to hold the 3 lines you want). If getVerticalScrollbarWidth()>0 then it's scrolling, meaning it must have gone over 3 lines by any method May 03 00:17:59 Smashcat, interesting idea May 03 00:37:38 Mavrik, asshole May 03 00:37:58 O.o May 03 00:38:30 why so surprised May 03 00:41:54 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:41:54 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:41:54 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:41:54 Hey guys, I'd just like to confirm onNewIntent(Intent intent) is called each time a new intent is received and this intent can be any intent, including an ACTION_NDEF_DISCOVERED intent? May 03 00:41:58 heuheu May 03 00:42:55 still? May 03 00:43:04 is it very important to get this answer? May 03 00:43:10 xorgate, no it is not May 03 00:43:15 it's the fact that nobody tried May 03 00:43:21 well then you move on May 03 00:43:23 no need to spam May 03 00:43:38 xorgate, no, it's not justified May 03 00:43:46 i'm not that sort of person May 03 00:44:17 have you tried it? May 03 00:44:22 have you tested the behavior? May 03 00:45:14 if someone helps other people and ignores you by choice, I'm going to drop the programming issue I had to begin with totally and seriously give the fucker a good bollocking May 03 00:45:29 ...maybe they know the other person's answer, and not yours May 03 00:45:34 why feel so entitled? May 03 00:45:37 if you behave like that, you won't be welcome here May 03 00:46:39 canadiancow, no certain people implied they knew the answer and didn't even bother to say much more, not even a suggestion to try and do a log or something May 03 00:47:05 I wouldn't have a go at anyone for not knowing the answer May 03 00:47:22 it's outrageous, i'd be asking for a refund May 03 00:48:43 you need to spam harder May 03 00:49:05 that information is classified to 25 years old blondes May 03 00:49:22 That's the sort of shit that i don't like May 03 00:49:42 welcome to the internet? ignore stuff you dont like May 03 00:49:48 I'd tell ya, but then I'd have ta kill ya May 03 00:49:54 like me for example im gonna go take a nap now :) May 03 00:51:22 well, people shouldn't be dicks on the internet. Be a dick like that in person and you'd probably get your face kicked in May 03 00:52:28 CocoStorm: are you new to chat ? May 03 00:52:47 shmooz, obviously not May 03 00:52:59 Yeah, obviously. May 03 00:53:08 why do you let your buttons get pushed ? May 03 00:53:15 just ignore what you don't like May 03 00:53:35 shmooz, no because he was being a cunt May 03 00:54:40 if he's pretending to know and not tell you , he probably doesn't really know May 03 00:54:49 he probably can't admit he doesn't know May 03 00:55:02 shmooz, maybe May 03 00:57:20 CocoStorm: monsti is a 25 year old blonde female May 03 00:57:32 boytoy, no he is Christian Neumann and he's from frankfurt May 03 00:57:40 happy new year! May 03 00:58:02 oh May 03 00:58:03 my bad May 03 00:59:34 imma find him May 03 01:00:37 CocoStorm: sounds like a threat. be careful, you may wind up perma banned May 03 01:02:15 sounds like V for Vendetta May 03 01:06:58 g00s: there are actually some people who specialize in tracking down people via irc May 03 01:07:17 hitmen of sorts May 03 01:07:41 I got cutoff and not sure if anyone responded to my question May 03 01:07:54 I have an application that uses fragment activities, and in one tab, I have the mainbody act as a search with a edittext and a button that returns result in a listview below. the user can search again and again, however when u press back it exits the app because of a null pointer exception. How can i keep each search iteration as part of the back pressed stack? Or if there is another May 03 01:07:54 way to approach this, I am all ears. May 03 01:07:55 Also another issue I am having is that the edittext even when clicking inside the box does not get focus, but instead focus goes into the fragment tab itself, although I think that has partly to do with it being on the emulator rather than a device, because if I use the soft keyboard it seems to be fine. May 03 01:13:38 Smubeht: you could increment/decrement a variable to keep track of how deep it goes in or out before exiting and check for it in onBackPressed() May 03 01:20:25 How would I see what is causing my app to force close May 03 01:21:06 select verbose in logcat ?? May 03 01:23:51 shmooz: it isnt going deep, it is staying on one activity and changing the listview over and over based on what is searched May 03 01:24:19 if another tab is pressed then that works as expected in that it saves the previous activity in the stack for backpressed May 03 01:24:36 Smubeht: are you calling finish() within onBackPressed() to exit ? May 03 01:26:04 shmooz: no i dont call it May 03 01:26:05 I got an "error inflating class" any idea what that might mean? May 03 01:26:43 i just cant get this May 03 01:27:08 could someone help me figure out why an app works on 2.3.5 and not 4.2? May 03 01:30:52 Caused by: java.lang.SecurityException: Binder invocation to an incorrect interface May 03 01:30:57 why im slipping May 03 01:59:34 I attempt to launch the "add account" activity with this code: http://pastebin.com/LQznnrbu but on the emulator (at least, haven't tried a device) no new activity is launched. No errors are logged either May 03 02:02:24 erisco: I don't know much about the account stuff specifically, but the emulator doesn't have any of the google account stuff May 03 02:02:44 JesusFreke, how am I supposed to test this then? May 03 02:02:54 JesusFreke, I also need to auth with google services May 03 02:06:10 erisco: you have a android phone ? May 03 02:06:24 shmooz, unfortunately no May 03 02:06:34 eh I need to hook up the account manager in my app :/ May 03 02:06:48 I just read that starting the emulator with google apis might work, so I'll try May 03 02:07:22 Is there a reason my adt from eclipse disappeared i shut down everything normally and had not used it in almost a week and atfirst my eclipse wouldnt open and i deleted the .metadata folder suggested and got it, o work now it say adt is installed but is not appearing in the quick launch bar just the installd software folder May 03 02:08:33 droidbuster: just drag a shortcut to quicklaunch again May 03 02:09:48 Shmooz fromwhere i see no icons i am speaking quick launch tool bar within eclipse May 03 02:11:04 or reinstall adt May 03 02:12:27 I had i will do it again as it is registering in eclipse under the install new software but it is not showing and of the adt run, xml editor etc May 03 02:15:22 does anyone knows how to do a mask for a view? So for example an alert would be on top and mask would cover the background view. May 03 02:16:02 is that possible to overlay views without framelayout? May 03 02:18:08 anyone doing opengl stuff here.. trying to see why my colors are off by a lot.. like blue==purple off **** ENDING LOGGING AT Fri May 03 02:59:58 2013