**** BEGIN LOGGING AT Wed Dec 19 02:59:59 2012 Dec 19 03:00:05 bit MILC and DSLR are not too threatened for now Dec 19 03:01:37 i guess its cool if you can get a few apps for your camera Dec 19 03:01:54 like hyperfocal distance calc, or the photographer's ephemaris Dec 19 03:03:53 wabz: do you have a nice camera now ? Dec 19 03:06:04 I have a canon g1x Dec 19 03:06:19 which woudl be awesome if it ran android :p Dec 19 03:07:25 I'm not really into photography, but like travelling and this does far better than a phone/point and shoot Dec 19 03:07:48 taking the case off, sd card out is kinda painful Dec 19 03:10:04 wabz: oh wow, i would love a G1X. all i have is an old Powershot G9. It works ok in some cases. Here is a pic i took the other day http://i.imgur.com/034PO.jpg Dec 19 03:10:18 I actually upgraded from the G11 Dec 19 03:10:37 i'd even take the G11 over my G9 :P Dec 19 03:10:39 it really was worth it Dec 19 03:10:53 i had an s95 but it got destroyed in the rain Dec 19 03:10:58 heh Dec 19 03:12:03 i liked the idea of the G1X, but for the price had a hard time … deciding between something like the T4i Dec 19 03:12:15 (ok much bigger) … or the Sony NEX-5r or nex-6 Dec 19 03:17:46 the high iso capabilities of the g1x are pretty awesome Dec 19 03:18:04 and for someone who doesn't really know what he's doing (me) it's very easy to get accurate colours Dec 19 03:19:01 the only real advantage of the galaxy camera over point and shoot/phone is the 21x optical zoom Dec 19 03:19:11 but most people use point and shoot for food photos so..... Dec 19 03:19:34 hehe, food photos Dec 19 03:19:53 my wife does that Dec 19 03:19:58 with her iphone 5 Dec 19 03:20:03 it's so irritating :D Dec 19 03:20:22 I'm starving... food arrives woohoo "wait a minute, I need to take a photo" Dec 19 03:20:35 actually food photography is a big market Dec 19 03:20:47 professionaly, takes a lot of work, have to work with the chef, etc Dec 19 03:20:52 you mean for books/magazines/etc? Dec 19 03:20:52 yeah Dec 19 03:20:54 I can imagine Dec 19 03:20:57 yeah Dec 19 03:21:53 wabz: are you using any tools for postprocessing? Dec 19 03:22:54 just bridge, but I find with the g1x far less is required Dec 19 03:23:28 bridge/cs6 Dec 19 03:23:45 brb Dec 19 03:23:48 wabz: do you know anything about Photoshop Elements? I was looking at a book on PS Bend Modes, but i'm wondering if the techniques work with Elements too Dec 19 03:23:49 k Dec 19 03:28:15 hey is there a channel for Amazon web services? Dec 19 03:33:29 addPreferencesFromResource() is deprecated, but the application should still work, right? API Level 10. Dec 19 03:46:15 I have a FragmentPagerAdapter one of my fragments extends ListFragment (a DebitsListFragment). After I pop up a Dialog Fragment and take some input, I then have the Dialog Fragment notify the Activity, and the activity notifies the DebitsListFragment of the input. However, my list adapter has become null at this point / calling getListView() returns Content view not created exception. What the heck? Dec 19 03:46:37 My fragments are inside a view pager Dec 19 03:47:00 wabz, g00s try lightroom Dec 19 03:47:22 totally changed the way i edit pgotos Dec 19 03:47:27 *photos Dec 19 03:47:46 Am I not supposed to call fragmentPagerAdapter.getItem(0)? Probably not actually, that code instantiates a new fragment.... Dec 19 03:49:32 achuinard, i wouldn't call get item Dec 19 03:50:01 you want to separate the data your collecting and the display of it Dec 19 03:50:20 update the data and tell the display to update if it exists Dec 19 03:50:36 I need to get the fragment from the PagerAdapter Dec 19 03:51:24 but the fragments are transient, they get can be killed and recreated all over the place Dec 19 03:51:56 you want to update some more persistant storage and notify the adapter if it exists currently Dec 19 03:54:19 see https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller Dec 19 03:54:31 and some googling will return pages and pages of discussion on this idea Dec 19 03:54:34 ya Dec 19 03:54:38 but i think im right here Dec 19 03:54:44 i understand the decoupling of stuff Dec 19 03:54:56 but i have dialogfragment Dec 19 03:55:05 dialogfragment must tell listfragment about new input Dec 19 03:55:13 And the activity is the middleman between the communication Dec 19 03:55:27 These fragments are nice and all but you do get a lot of cases where you need to be clever about your code design to get the full power out of them Dec 19 03:57:06 but where's the list's data comming from? Dec 19 03:57:16 The lists data is contained within the listfragment Dec 19 03:57:29 the 'DebitsListFragment' has a List objects on it Dec 19 03:58:01 and how is that persisted? Dec 19 03:59:34 the fragment has a BudgetService that has a saveCredit method, and when the fragment gets notified, it adds the new object to the list and does the db in a background thread Dec 19 04:00:50 why not have the dialog perform the insert and then notify the list to rebuild itself if it can ve found Dec 19 04:00:56 *be Dec 19 04:01:24 because i think it'll be faster if i just give the java object to the list and let the db do its own thang in the background ya heard Dec 19 04:01:48 but still, if i did it that way, id still have to have the activity poke the fragment somehow Dec 19 04:02:04 so whether i poke passing in an object or poke and say do db, i still had same issue Dec 19 04:02:13 calling getItem on fragmentPagerAdapter was wrong Dec 19 04:04:42 look at the source for ViewPager and get the methid that creates tags Dec 19 04:04:58 return "android:switcher:" + viewId + ":" + index; Dec 19 04:05:01 then use findFragmentByTag Dec 19 04:05:06 http://stackoverflow.com/questions/8785221/retrieve-a-fragment-from-viewpager Dec 19 04:05:08 You are good ;) Dec 19 04:05:55 if you're really clever, you can access it through reflection and then if it changes your app wont break Dec 19 04:06:49 good idea Dec 19 04:06:53 but im deaing with this cursor stuff now Dec 19 04:07:06 i do a final Cursor cursor = getReadableDatabase.query(....); Dec 19 04:07:10 then iterate the cursor Dec 19 04:07:14 then cursor.close() Dec 19 04:07:23 but i still get close() was never explicitly called on database Dec 19 04:08:09 getReadableDatabase() returns an SQLiteDatabase object you shoyld close Dec 19 04:08:25 and query returns a query that you should also close Dec 19 04:09:52 damn. i shoud probably use the closure pattern Dec 19 04:09:54 ive used it with hibernate Dec 19 04:10:00 it does the open and close boilerplate and u pass the callback Dec 19 04:25:48 why won't a sqlite writableDatabase.insertWithOnConflict statement work when surround by writeableDatabase.beginTransaction(); ... writeableDatabase.endTransaction() Dec 19 04:26:58 JakeWharton: do you know Dec 19 04:27:09 don't use sqlite, never plan to Dec 19 04:27:16 interesting Dec 19 04:27:25 do you use the Basedroid-famous JSON to sharedPreferences strategy? Dec 19 04:27:38 nope Dec 19 04:27:44 JSON to disk myself Dec 19 04:28:56 and do you find yourself querying data ever? Dec 19 04:29:05 do you just load it all up and do the query yourself in code? Dec 19 04:29:12 never have to query Dec 19 04:29:25 occasionally filter which is just a loop and a comparison Dec 19 04:29:52 i will have to consider that Dec 19 04:30:30 only works in certain situations. thankfully I'm right smack in the middle of those situations Dec 19 04:31:50 is it true that most android gigs in cali would pay 100k minimum Dec 19 04:32:46 depends on the company, i suppose. hard to generalize Dec 19 04:32:51 achuinard, you need to mark the transaction sucsessful Dec 19 04:33:22 how Dec 19 04:33:28 cant find the obv method Dec 19 04:33:49 setTrans Dec 19 04:33:51 nvm Dec 19 04:33:52 got it Dec 19 04:38:53 intellij wants me to replace "return new StringBuilder(res.getString( BASE )).append(res.getString( resId )).toString();" with a default string addition, but i thought adding strings together like that is less efficient? Dec 19 04:41:14 alex_PP: yeah, i just got lr4 … not sure how to use it yet :| Dec 19 04:42:47 xorgate, for one addition it's just the same Dec 19 04:42:52 but + is clearer Dec 19 04:43:06 for more than one use buffer / builder Dec 19 04:43:54 g00s, just import every photo you ever took and edit away Dec 19 04:44:10 it does everything non destrictivly so go nuts Dec 19 04:44:16 :) Dec 19 04:44:31 * g00s is good at going nuts so ... Dec 19 04:46:27 xorgate: Java converts all chained string +'s with StringBuilder Dec 19 04:46:34 so unless you're looping, just use + Dec 19 04:46:53 odd.. well good to know Dec 19 04:47:28 the same goes with dividing by powers of 2, javac will convert it to bit shifts Dec 19 04:47:44 so don't bother reducing your code readability because you think you're optimizing Dec 19 04:48:18 but bitshifts are good for job security Dec 19 04:50:45 I dont appreciate unnecessary obfuscation Dec 19 04:50:53 my coworkers do that shit to be "clever" Dec 19 04:51:01 I just want to slap the shit out of them Dec 19 04:57:19 ron_frown, http://thedailywtf.com/Articles/A-Bit-Misguided.aspx Dec 19 05:09:53 yeh I saw that a few weeks ago Dec 19 05:09:57 I see LOADS of that sort of shit Dec 19 05:10:04 on a daily basis on coworkers code etc Dec 19 05:14:20 but shifting bits makes me feel sexy Dec 19 05:34:52 I'm having a problem with sound files loading inconsistently. I'm loading 3 small .ogg files. One time I'll load the files and the status will be 0. exit app, clear memory, enter and the next time the status for the same file is -1. code to load the files here: http://pastebin.com/uTjHetyF Dec 19 05:40:50 so im sitting there editing m android.mk file in eclipse, waht do you know, its not the file i have on disk Dec 19 05:41:09 what file was it? im baffled, eclipse seemed to be looking at the correct folder from everything else Dec 19 05:45:15 my widget opens facebook app, with startActivity(intent). However, the next time I click the gadget and if Facebook is already open, it goes right into facebook -- no code in my wiget is executed. How can this be? Dec 19 05:50:41 Is there a better way of loading files in a sound pool than this one? http://pastebin.com/uTjHetyF ? I just tried popLow = soundPool.load(openFd.getFileDescriptor(), openFd.getStartOffset(), openFd.getLength(), 1); and it gives me the same inconsistent results (status 0 one tim, status -1 the next) Dec 19 05:54:33 Hey.. Could anyone help me test an APK if they have an older Android 2.3 device? I only have Android 4 Dec 19 05:57:27 use the emulator Dec 19 06:05:35 yeah... that's what the emulator is for Dec 19 06:06:06 turns out it's an issue only on samsung devices. http://stackoverflow.com/questions/4547551/issue-with-soundpool-and-samsung-galaxy-s Dec 19 06:07:11 Sorry my internet crashed out on me so I probably missed something there Dec 19 06:07:31 OpenGL works on emulators that use Android 4.0.3+. Older emulators don't support openGL Dec 19 06:10:13 peckas Dec 19 06:10:24 whats the trick for fragment rotation Dec 19 06:10:37 I set retainInstance(true) and it craps out saying unable to save instance state Dec 19 06:10:58 I've been able to avoid it pretty well thus far Dec 19 06:19:00 man Dec 19 06:19:17 even touchwiz looks better than whatever the fuck eclipse has going on for a UI Dec 19 06:19:23 haha Dec 19 06:19:40 go look at intellij idea plus darcula Dec 19 06:19:56 what's dracula? Dec 19 06:20:04 http://www.jetbrains.com/idea/img/version12/darcula-minimized.png Dec 19 06:20:10 its just color scheme Dec 19 06:20:15 best java ide hands down Dec 19 06:20:19 and then a super easy on the eyes theme Dec 19 06:20:24 oh wow Dec 19 06:20:25 nice Dec 19 06:20:30 k doin it now Dec 19 06:20:31 :D Dec 19 06:20:46 So, no-one could lend me a hand if they had a 2.3 android device just to install an APK to tell me if it works? Dec 19 06:20:50 they did an eceptional job with v12 Dec 19 06:21:51 Amorgos: with what app? Dec 19 06:22:19 Just a LWP that I've been working on. I need to test it on older device before publishing Dec 19 06:22:45 amorgos can't use an emulator? Dec 19 06:23:00 No. It's an OpenGL based app Dec 19 06:25:39 okay so 2 questions about intellij Dec 19 06:26:09 how do i disable stuff like idetalk and commander jetgardie? Dec 19 06:26:27 and is there something like eclipse's workspace thing , cant find a setting on it Dec 19 06:26:35 workspace thing? Dec 19 06:26:41 directory Dec 19 06:26:42 its more of a traditional ide Dec 19 06:26:47 ahh okay Dec 19 06:26:50 project view is what you are looking for Dec 19 06:26:59 I am not familliar with those tools Dec 19 06:27:05 I use community version as it supports android well Dec 19 06:27:06 and its free Dec 19 06:27:32 Amorgos, wut if it has stuxnet Dec 19 06:27:41 i had an key ling around so i just installed the ful lversion Dec 19 06:27:52 or echelon even =) Dec 19 06:27:52 i think i should have probably disabled some stuff Dec 19 06:28:22 forget it Dec 19 06:28:49 so apparently if you put a "]" in an id name, it generates R.java Dec 19 06:28:55 and then you get really strange java errors :P Dec 19 06:31:05 yeah so how do i dsable maven projects commander and that stuff Dec 19 06:31:13 or like hide it Dec 19 06:31:30 hit the little arrow with the Dec 19 06:31:39 I dont know how to remove completely Dec 19 06:33:46 man why cant eclipse look like this Dec 19 06:35:29 idea works way way way better Dec 19 06:35:42 im used to eclipse :( Dec 19 06:35:45 just different if you haven been using solely eclipse Dec 19 06:36:00 yeah Dec 19 06:36:11 i'll do my next project in this Dec 19 06:37:40 lmao Dec 19 06:37:46 eclipse's ui giudelines are from 2004 Dec 19 06:38:54 grr how do you get an options menu to work in a fragment when the activity also has an options menu Dec 19 06:38:59 ron_frown: is there anything not good about intellij ? Dec 19 06:39:36 right now im finding intellij's WYSIWYG's editor a litle anoying Dec 19 06:39:45 oh wtf my fragment just wont load its damn menu T_T Dec 19 06:39:48 it dosnt show you what a widget looks like before you add it Dec 19 06:40:45 canadiancow: there is some old bug with that in the compat lib … cant remember, might be with a viewpager or something Dec 19 06:40:47 g00s doesnt support our crappy scm in the default free version +) Dec 19 06:40:58 i have no viewpager on this activity Dec 19 06:40:59 :\ Dec 19 06:41:05 its just a very simple activity+fragment Dec 19 06:41:10 canadiancow - are you setting setHasOptionsMenu(true) Dec 19 06:41:10 and the fragment isnt doing its thing Dec 19 06:41:12 yes Dec 19 06:41:24 and arey ou doing it in onPrepareOptionsMenu Dec 19 06:41:30 that was my recipe for success Dec 19 06:42:41 doing what in onprepareoptionsmenu? Dec 19 06:43:03 population/manipulation Dec 19 06:43:07 no Dec 19 06:43:12 oncreateoptionsmenu :\ Dec 19 06:43:23 stock actionbar crap or jakes lib? Dec 19 06:43:40 jake Dec 19 06:43:43 what Dec 19 06:43:46 lol Dec 19 06:43:49 <3 Dec 19 06:43:55 jake you still havent seen my place Dec 19 06:44:02 want a beer? Dec 19 06:44:18 i'm still at work right now Dec 19 06:44:23 :\ Dec 19 06:44:28 so the answer is "yes, but i can't" Dec 19 06:44:39 or at least i'd want a beer if i was at work this late Dec 19 06:44:51 i'd also want to leave Dec 19 06:45:05 we have beer, and I'm here by choice! Dec 19 06:45:29 excuse my language... but holy fuck I need a job I am actually interested in staying late at Dec 19 06:46:21 what time is it ron_frown & JakeWharton ? Dec 19 06:46:27 10:46pm Dec 19 06:46:28 2246 Dec 19 06:46:36 ron_frown, google.com/jobs ;) Dec 19 06:46:51 meh... I really dont think I'd pass googles interview questions Dec 19 06:46:54 canadiancow: no soliciting! Dec 19 06:46:56 ron_frown g00s onPrepare and onCreate are simply not being called Dec 19 06:47:00 i see Dec 19 06:47:02 JakeWharton, they're soliciting! Dec 19 06:47:05 still early Dec 19 06:47:09 lol Dec 19 06:47:13 he* Dec 19 06:47:27 i'm just...answering the solicitation Dec 19 06:47:33 should i have kicked him instead? :P Dec 19 06:47:36 I dont know why... seems like when they start asking a bunch of theoreticals... I just blank... or just feel like fuck it Dec 19 06:48:04 at least those theoreticals would probably actually apply at google unlike so many jobs I've interviewd in the past Dec 19 06:48:12 you'd be surprised Dec 19 06:48:25 cant remember the last time i needed an efficient algorithm Dec 19 06:48:45 Guava has an EffecientAlgorithmFactory anyways Dec 19 06:48:56 you look at android-porting or android-platform, and I participate heavily.... Dec 19 06:49:07 well like that was one amazon asked me for a simple web dev Dec 19 06:49:12 so apply and list that stuff Dec 19 06:49:31 explain hash maps, and I do... then they ask how conflict resolution is handled, and I explain some methods Dec 19 06:49:31 i get contacted by companies because linkedin SAYS i worked on a game once Dec 19 06:49:54 then they tell me give me the pseudo code for the resolution etc Dec 19 06:49:58 oh wow im not using SherlockFragment Dec 19 06:50:11 its like what the fuck language doesnt already have a proven hashmap implementation Dec 19 06:50:18 and hwo the FUCK does this matter to what I am applying for =) Dec 19 06:50:37 well it DOES help to know what to use Dec 19 06:50:47 i had an intern who really didnt know why you'd use a set/list/map/whatever Dec 19 06:50:53 but that was ok because he was an intern Dec 19 06:50:56 and he was awesoem Dec 19 06:51:02 canadiancow google is probably one of few larger companies id actually want to work for Dec 19 06:51:07 +1 Dec 19 06:51:10 intern at Zynga ? Dec 19 06:51:29 I've been so impressed with intellij I've almost tried to get hired over there Dec 19 06:51:34 but no relocating to russia for me =) Dec 19 06:51:44 i hear ibm is pretty good Dec 19 06:51:46 ibm and nvidia Dec 19 06:51:54 russia has a high incarceration rate for entrepreneurs Dec 19 06:51:55 not my kind of companies Dec 19 06:52:07 samsung hit me up for a couple random things Dec 19 06:52:15 in russia work does you Dec 19 06:52:18 but I was relocation to some random ass place in WA Dec 19 06:52:23 ron_frown: they would throw you in jail right away Dec 19 06:52:23 which is no bueno Dec 19 06:52:29 are there any idea campaigns going? id like to buy it but full price is a bit steep Dec 19 06:52:38 russia scares me... just about everything scaring me Dec 19 06:52:44 deebo community is free =) Dec 19 06:52:52 its also a bit too stripped down Dec 19 06:52:53 women in russia scare me Dec 19 06:53:02 probably harder than hard men in us Dec 19 06:53:04 in russia, you scare women! Dec 19 06:53:32 my wifes cousin works for google Dec 19 06:53:35 no idea what tho Dec 19 06:53:50 he was building guidance systems for raytheon or some such shit prior Dec 19 06:54:01 a savant you could say... very intelligent Dec 19 06:54:04 0 social skills =) Dec 19 06:54:07 worse than me even Dec 19 06:54:11 canadiancow: whereabouts are yo ufrom? Dec 19 06:54:23 are you asking me where i grew up, or where i live Dec 19 06:54:37 either or? Dec 19 06:54:42 toronto / san francisco Dec 19 06:54:54 nice nice Dec 19 06:55:07 I wonder if chinese people get upset when they buy souviners from america and find out they were made in china... Dec 19 06:55:17 if I am using an activity as a "activity for result", would it be inappropriate to use the actionbar mode where its acting like you are deleting items or whatever Dec 19 06:55:24 with ok/cancel buttons and its blue bg Dec 19 06:55:46 and follow up question... jake how do I manage =) Dec 19 06:58:31 is it sad that eclipse has not refined its UI at all since its very first version? Dec 19 06:58:48 eclipse needs an ice cream sandwich Dec 19 06:58:49 for me the very latest ver looks diff than previous versions Dec 19 06:58:50 on mac. Dec 19 06:58:55 actually yeah that's true Dec 19 06:58:57 the latest is diff Dec 19 06:59:02 just skip it and go straight to jellybean Dec 19 06:59:21 how is it diffrent? Dec 19 07:00:55 the only diffrence in eclipse that i've ever seen is the theme thing. 2.1 style classic and default Dec 19 07:01:17 and they're pretty much all the sameexcept for scroll bar and tab style Dec 19 07:01:49 it looked a lot more refined on mac Dec 19 07:02:02 man i hate oversold flights Dec 19 07:02:10 but then the ui honestly always looked a lot shittier than win Dec 19 07:03:29 it looks even worse in linux Dec 19 07:03:36 actually no Dec 19 07:03:40 it looks about as bad Dec 19 07:03:47 it never could handle my platform dev Dec 19 07:03:55 so I kicked eclipse to the curb on linux Dec 19 07:04:43 what kind of die you guys use for platform dev Dec 19 07:04:48 die - ide Dec 19 07:05:00 IntelliJ or death! Dec 19 07:05:05 what do you hear me in here evangelizing =) Dec 19 07:05:05 haha Dec 19 07:05:25 lol Dec 19 07:06:48 but intellij dosnt have very good python/haskell support Dec 19 07:07:10 no but intellij pycharm is jsut as badass as idea =) Dec 19 07:07:49 i like having 1 thing Dec 19 07:08:03 pycharm looks good though Dec 19 07:08:18 1 thing that does a ton of things shitty is not better than a few apps that are the best at their game at exactly one thing Dec 19 07:08:26 if eclipse worked well and had a remotely usable UI Dec 19 07:08:44 it'd be a lot harder to just walk away from it Dec 19 07:09:20 i use IDEA and pycharm Dec 19 07:09:25 love the jetbrains prods Dec 19 07:09:39 honestly I lke that eclipse can do cdt+adt Dec 19 07:09:41 BUT Dec 19 07:10:00 adt and cdt are shitty enough where I'd almost just rather use idea and netbeans or something Dec 19 07:10:45 adt? Dec 19 07:10:51 android add in for eclipse Dec 19 07:11:03 yeh but im not quite sure what features it has Dec 19 07:11:25 designer, adb integration, unit testing to some extent, etc Dec 19 07:11:31 yeah java support is just there out of box Dec 19 07:11:45 honestly i dont mean to sound ungreatful either Dec 19 07:11:52 free is free and os is os Dec 19 07:11:55 well i dont think i'm missing much Dec 19 07:12:05 but for free pricepoint, idea ce serves me much much better Dec 19 07:12:22 its different if you've been using eclipse... but its worth the investment of time to re-learn Dec 19 07:12:47 just a week ago i got my buddy to switch after 3 years of eclipse Dec 19 07:13:23 Hey Guys Dec 19 07:13:41 I've using OpenSSL with python, I want to downgrade my ssl connection to plain socket Dec 19 07:14:13 python ssl.py seems to have a ssl.unwrap() method for it, what would be the equivalent way to do it with SSL.Connection Dec 19 07:15:08 aah that was for openssl Dec 19 07:16:01 you guys would shudder if you saw what kinda of violation fennec is gonna get tomorrow at my hands Dec 19 07:17:21 does anyone know what are the units for VideoView's getDuration and getCurrentPosition? Dec 19 07:17:34 intege Dec 19 07:17:36 integer Dec 19 07:17:42 milisecond Dec 19 07:17:43 like, is that seconds? Dec 19 07:17:46 ah, thanks Dec 19 07:22:48 if they merged chrome OS and android then made eclipse for that Dec 19 07:22:54 i'd be done with windows forever Dec 19 07:23:28 provided there was a chromebook with high enough screen resolution Dec 19 07:24:21 i have loaded some html inside WebView. however i am unable to scoll the webpage Dec 19 07:27:23 really rubs me the wrong way that I have to set a height on a spinner with even the default simple_spinner_item template Dec 19 07:27:32 to not have squashed spinners Dec 19 07:32:28 hm, how difficult is it to call from your android java app into Clojure Dec 19 07:34:11 nm. seems like Clojure still sucks on dvm Dec 19 07:35:19 how disable emergency call button? Dec 19 07:42:21 when can a fragment be killed? after onPause? onStop? Dec 19 07:42:37 (of the activity) Dec 19 07:43:00 any time? Dec 19 07:43:28 holy cow the android sdk is big Dec 19 07:43:30 never noticed Dec 19 07:43:31 is there a tool to create a activity skeleton? Dec 19 07:43:39 that would mean i could have an activity with a fragment and at random the fragment is killed? Dec 19 07:47:46 eclipe does that Dec 19 07:48:00 xorgate I wouldnt expect it Dec 19 07:48:08 configuration changes can induce lifecycle events Dec 19 07:48:12 eg, screen rotation, etc Dec 19 07:48:58 what im trying to do is have my mapfragment inside R.id.lay1 in landscape, and R.id.lay2 in portrait Dec 19 07:49:13 but it wants to be inside the 'same' layout for both Dec 19 07:50:12 so my plan was to remove it from the layout right before the orientation change Dec 19 07:50:37 which comes to removing it right before calling super.onSaveInstanceState() Dec 19 07:53:31 oh well time to sleep Dec 19 08:06:02 If I'm reading a few lines of text from a network socket at a time in a service at unknowable intervals, and I need to transfer them to a fragment in an activity...would a loader be a good way to do that? Dec 19 08:07:56 I dont know what a loader is used for Dec 19 08:08:11 android platform does that sort of thing with intents Dec 19 08:09:10 you can use service binding for that communication as well Dec 19 08:09:12 I am currently trying with intents. On orientation change, however, apparently it's possible to lose data unless Istore it somehow on the service and query it from the activity...i thought that's what loaders were for. Dec 19 08:09:14 just depends on what youw ant to do it Dec 19 08:09:33 hi all Dec 19 08:09:40 I though tthat was more for loading say a list of users or something Dec 19 08:09:49 is there a way to use android.util in external java project? Dec 19 08:09:53 perhaps ro Dec 19 08:09:55 should be able to accomplish it Dec 19 08:09:55 ron_frown, Dec 19 08:10:28 fxiii if you load the android library in the external project and use the right imports, why not? Dec 19 08:11:17 it happens that a component i developed for android shows to be generic but still uses things like Pair<> etc Dec 19 08:11:37 damccull: have i to load all the android jar? Dec 19 08:13:05 fxiii dunno. never tried it. i imagine you would need to unless you can get the code for android.util or extract it from the jar on its own somehow Dec 19 08:13:38 may i write the library and leave the com.android dependencies so the developer who use it have to import its android library? Dec 19 08:14:10 fxiii, you can write a library that depends on android.jar Dec 19 08:14:25 and when that code runs on an android device it'll work Dec 19 08:15:04 you don't want to bundle android.jar though, as all the methods in in it throw an exception that says "STUB!!!" Dec 19 08:15:18 the point is that i will need just some basic class since the library i will write will be generic... import all the android.jar is not too heavy? Dec 19 08:16:00 the android libraries are provided by the runtime on the pgone and are never packaged Dec 19 08:16:01 damccull: I'd jsut bind to a service, possibly using some Queue interface Dec 19 08:16:07 *phone Dec 19 08:17:19 alex_PP: what if the library runs outside the phone? Dec 19 08:17:38 as a java application on an x86 platform for example Dec 19 08:17:50 fxiii: it doesn't Dec 19 08:17:52 then the android libs are unavailible to you Dec 19 08:17:57 ;) Dec 19 08:18:23 android libs are only available when running under android framework (doesn't have to be a phone) Dec 19 08:18:54 p_l, so like using an sqlite database to store my lines and then retrieving them from the db in the activity? Dec 19 08:19:07 damccull: not unless you want persistence Dec 19 08:19:21 don't need persistence yet, but perhaps later. Dec 19 08:19:39 damccull: create bindable service, bind to it from activity, call a method to get the new data from service Dec 19 08:19:51 or use a loader Dec 19 08:20:00 they stay around after config changes Dec 19 08:20:05 this do not show the contents of the URL. what can cause this? http://bpaste.net/show/65315/ Dec 19 08:20:06 alex_PP: loaders don't make sense in this case, it seems Dec 19 08:20:09 p_l i am doing that now but orientation change blows it up Dec 19 08:20:37 alex_PP, that's what my question was...is that a good solution? If so, where can i learn about using a loader with a network socket? Dec 19 08:21:25 d.android.com? Dec 19 08:21:30 let me look Dec 19 08:21:37 damccull: I'd put the data model in the service as well, then you can reload the "current" set from service into activity on orientation change Dec 19 08:22:33 p_l, store all incoming lines in arraylist and then query that? What about performance if we reach thousands of lines? As of now I'm displaying them in a textview Dec 19 08:23:32 hmm... it seems that loader might indeed work Dec 19 08:24:05 https://gist.github.com/4335270 Dec 19 08:24:18 that's a basic loader outline Dec 19 08:24:58 then just call loaderManager.initLoader in onActivityCreated in one of your fragments Dec 19 08:25:00 ??? Dec 19 08:25:02 profit Dec 19 08:25:41 deliver result can be called loads of times, each time you call it (with a different object) onloadFinished gets called in your callback Dec 19 08:26:05 if you call initloader on a finished loader, you get the last result back immediately Dec 19 08:26:17 and that's my crash course in loaders Dec 19 08:26:33 lol thanks. can i ask questions? Dec 19 08:26:46 yeah Dec 19 08:27:25 also read this https://developer.android.com/guide/components/loaders.html Dec 19 08:27:31 a few times Dec 19 08:27:42 does the service doing the network use that loader or the activity that needs to display it? the service is bindable but started with startService in order to let it run in the background as needed... Dec 19 08:27:47 its not sure clear, but you'll get it in the end Dec 19 08:27:49 yeah i'm reading it for the 4th time as i type Dec 19 08:28:17 you shouldn't need a service with a loader Dec 19 08:28:39 the loader uses an asunctask in the background, but without all the mess that usually brings Dec 19 08:28:44 *async Dec 19 08:29:09 I see. What if I want the user to be able to switch to other apps and get a notification on new read data? Dec 19 08:29:38 ah Dec 19 08:30:03 yes, then a service Dec 19 08:30:36 so loaders out then. Bind to service and store crap in an arraylist or something? Dec 19 08:30:37 though, i suppose there's nothing to stop you showing the notification from the loader, it's just a little weird Dec 19 08:30:45 yeah Dec 19 08:31:01 how long will the loader last if th euser is off the activity that started it? Dec 19 08:32:53 Hmm. I think I will store the lines in sqlite database to allow for logging. That way it's already there anyways. But p_l suggested the data structure in the service, so should I make the service also retrieve from db and pass to UI? Dec 19 08:35:16 have the service retreive and store the data and handle notifications, have the activity pull the data from the service Dec 19 08:35:36 this di not load the url in WebView. help. http://bpaste.net/show/65317/ Dec 19 08:35:42 and pass it to fragments to update themselves or update utsself Dec 19 08:36:12 dagerik, do you have INTERNET permission in your manifest./ Dec 19 08:36:13 ? Dec 19 08:36:46 alex_PP, so the service will retrieve data back from db after storing it to pass to activity or the activity pulls it from db?> Dec 19 08:37:15 i'd have it pull from the service Dec 19 08:37:35 alex_PP: yes Dec 19 08:37:36 then it's all nicely seperated and only written once Dec 19 08:38:01 alex_PP: no errors in logcat, and the view is not null Dec 19 08:38:23 then i'm out of ideas Dec 19 08:38:55 alex_PP, so service stores a local buffer, notifies activity, which pulls from that buffer? Dec 19 08:39:01 ahh fucking eclipse, the one theme that seems okay... ends up breaking adt Dec 19 08:39:25 http://imgur.com/GdK2j Dec 19 08:40:28 yeah Dec 19 08:41:12 alex_PP, if I use a loader to pull data from a sqlite database, then insert new data into that database will the loader automatically pick it up if it matches the original WHERE clause? Dec 19 08:42:16 not sure, it might be a feature of cursorloader Dec 19 08:42:20 damccull: there is no magic. it reloads if your content provider notifies on that uri. its totally up to you Dec 19 08:42:28 exynos-mem, use idea Dec 19 08:42:59 g00s so I'd have to write data and then notify the cursor? Dec 19 08:43:41 yeah Dec 19 08:44:29 http://stackoverflow.com/questions/11802823/whats-the-mechanism-of-setnotificationuri Dec 19 08:45:46 is it a bad idea to put view.loadUrl("http://sau.no"); inside onCreate()? Dec 19 08:57:08 guys please help me to solve this problem i have been ended up for 2 days :http://stackoverflow.com/questions/13929551/drawing-a-colorful-circle-inside-an-image Dec 19 08:57:21 dagerik, depends on if you want to load the url before you show the user your UI. as long as you put it in storage until you have somewhere to put it, why not? Dec 19 08:58:20 the loadUrl causes the internet browser to be invoked. but i did not pass such intent. whats going on here? Dec 19 09:04:44 How can I make an application not look so archaic...as in, use the Holo theme? Dec 19 09:04:47 do I change minSDK? Dec 19 09:05:18 mrsudoer, on 3.0+ you can just use the holo theme in your manifest Dec 19 09:05:36 on older you might have to manually copy the holo theme and its resources into your app as a custom theme Dec 19 09:05:40 sorry for newbiness, damccull. how do i know if i'm 3.0+? Dec 19 09:05:46 honeycomb? Dec 19 09:06:01 api lvel 11 Dec 19 09:06:27 but if you minsdk api11 you will not be able to run on devices prior to honeycomb Dec 19 09:06:59 honestly, it looks the best if your app matches the system, or else has a custom theme entirey that looks nice Dec 19 09:07:16 ie. looks like gingerbread if on gingerbread, and honeycome if on honeycomb Dec 19 09:08:35 mrsudoer, have a look at https://github.com/ChristopheVersieux/HoloEverywhere Dec 19 09:09:00 thanks guys Dec 19 09:09:07 wow that's neat alex_PP Dec 19 09:11:02 using eclipse is like using a gingerbread app with only phone UI on your nexus 10 Dec 19 09:11:24 thats my app :D Dec 19 09:11:59 g00s: i want to kill you Dec 19 09:12:20 it was a good decision Dec 19 09:14:25 cool, so amazon has their own a/b testing library for kindle fire developers Dec 19 09:20:30 I'm getting this: http://stackoverflow.com/questions/8218507/ndk-stack-not-working Dec 19 09:20:34 any clues? <.< Dec 19 09:21:18 strace says it opens the directory I pointed it to with -sym, tries to read it (which returns EISDIR) and then it asserts... Dec 19 09:27:52 what's it mean when a fragment programmatically added causes IllegalStateException: child already has a parent. Call removeView() on the child's parent? Dec 19 09:30:00 google needs to do their own IDE of some sort Dec 19 09:30:11 why? Dec 19 09:30:20 because ADT is terrible Dec 19 09:30:30 because eclipse is terrible Dec 19 09:30:30 i think adt is fine, but eclipse sucks Dec 19 09:30:40 and intellij isnt too far behind Dec 19 09:30:53 yeah but they don';t need to make an own ide then, but just create equaly functional plugins for good ides Dec 19 09:31:01 I use NetBeans and its way above eclipse Dec 19 09:31:03 james-ubc: if the ADT is terrible, why would they be able to write their own adt ? Dec 19 09:31:12 own IDE Dec 19 09:31:12 but anroid support ofc is kinda not soo good Dec 19 09:31:22 g00s: because it's eclipse that's bad Dec 19 09:31:44 So I would like just some NetBeans plugin for android from google :) Dec 19 09:31:57 (netBeans plugin anyway write way easier then eclipse plugins, from my past experience) Dec 19 09:33:06 i guess we could critique the adt on several fronts; but for usability and features, its not eclipse's fault Dec 19 09:33:22 why is it not eclipse's fault? Dec 19 09:33:41 how is the manifest editor eclipse's fault ? its just a pile of shit Dec 19 09:33:41 do you think adt lacks several features? Dec 19 09:34:16 it wasn't even until the last release that colors had a swatch Dec 19 09:34:17 visual studio/xcode are both more cohesive and more visually appealing Dec 19 09:34:43 I liked VisualStudio till VS 2010, then it got crappy Dec 19 09:34:45 i agree Dec 19 09:34:58 and since it doesn;t run under linux its anyway no choice for me :D Dec 19 09:35:17 idk i just feel like Dec 19 09:35:25 eclipse belongs in the xp era Dec 19 09:35:31 it looks like it belongs in XP Dec 19 09:36:01 james-ubc: +1 for that. The new eclipse style looks in Linux like a really bad WinForms application running with Mono :) Dec 19 09:36:17 java sucks for UIs Dec 19 09:36:27 why? Dec 19 09:36:29 hehe Dec 19 09:36:32 Somehow i got a dejavu :D Dec 19 09:36:45 i've never used a java app that didn't look like shit Dec 19 09:36:58 they never blended into the platforms well Dec 19 09:37:02 except windows Dec 19 09:37:02 hmm NetBeans looks all fine Dec 19 09:37:08 Swing is great if you're a Smurf, or into this song of Eiffel 65 Dec 19 09:37:19 i like swing Dec 19 09:37:22 it looks like my system Dec 19 09:37:31 as long as the app is good coded, and doesnt try to set an UI manager by itself Dec 19 09:37:53 on mac, they all look like shit Dec 19 09:37:56 but lets the system choose one, because i start every java app, so it uses gtk look for swing app, what fits really well with any other app Dec 19 09:38:04 on linux, i remember them all looking like shit too Dec 19 09:38:20 it looks exactly like any other program :D Dec 19 09:38:26 (ecept ofc new style eclipse) Dec 19 09:38:42 lol the eclipse UI guidelines are from 2004 Dec 19 09:38:43 figures Dec 19 09:38:50 anyhowisn't swing dead ? Dec 19 09:38:58 g00s: is it? Dec 19 09:39:03 isnt it replaced with JavaFX 2 or something Dec 19 09:39:11 what toolkit is eclipse written in? Dec 19 09:39:15 SWT Dec 19 09:39:38 basically, the eclipse guys said, Swing sucks Dec 19 09:39:40 IntelliJ looks okay enough Dec 19 09:39:47 and they tried ot make another UI layer, which sucked too Dec 19 09:40:19 http://i45.tinypic.com/hwfgol.png g00s, how does netbeans on the right side look anyone shit compared to the other two windows? :) Dec 19 09:41:23 i cant tell, images are too small :) Dec 19 09:41:40 there is a principle in HCI, shit i have to remember what it is called Dec 19 09:42:04 it has to do with when something tried to mimic the behavior of something else, but just barely falls short Dec 19 09:42:15 "don't make everything blue"? Dec 19 09:43:00 and the mind focuses on the differences, even though they are slight Dec 19 09:43:07 can't recall the principle Dec 19 09:43:13 idk eclipse on linux looks the worst Dec 19 09:43:20 g00s: it's not exactly in HCI, but it's called "uncanny valley" Dec 19 09:43:29 p_l: ah yes, thanks ! Dec 19 09:43:47 Eclipse on Linux takes battleship grey to a new level Dec 19 09:43:54 i thought i read that first in Schneiderman's book Dec 19 09:43:58 and sometimes you get hilariously wrong results when you are *trying* to get the effect of uncanny valley Dec 19 09:44:35 uncanny valley I usually hear wrt humanoid/anthropological things Dec 19 09:44:56 like robots that stare at you without blinking, or move in odd ways Dec 19 09:45:01 tbh i wish they would just drop the rounded corners on everything Dec 19 09:45:05 belgianguy: because thats where it really happens, and comes from Dec 19 09:45:08 that and nested borders Dec 19 09:45:28 belgianguy: we've got a lot of built-in machinery to process gestures etc. which starts getting wonky with that Dec 19 09:45:29 * g00s stares at belgianguy without blinking Dec 19 09:45:34 just have a simple 1 or 2 px shared border between views Dec 19 09:45:56 * belgianguy did it just get colder in here or what Dec 19 09:46:13 * james-ubc did it just get hotter in here or what? Dec 19 09:46:30 hehe Dec 19 09:46:44 * exynos-mem did it just get room temperature in here or what Dec 19 09:47:02 *SNRK* Dec 19 09:48:46 g00s: large screenshot http://img827.imageshack.us/img827/1138/screenshot1912201210390.png :) Dec 19 09:49:19 it really does look the same, so at least if you use a gtk based system (or qt based, with gtk styles) it fits well into your system Dec 19 09:49:33 in contrast to swt, what looks even with its default theme kinda crappy Dec 19 09:49:46 and better lets not talk about eclipse speed :D Dec 19 09:50:18 timroes: that indeed looks well integrated Dec 19 09:50:28 yeah because it just reads the gtk style :) Dec 19 09:50:55 same as my qt (since qt can read gtk styles, but gtk can't read qt styles, i always have a gtk style system, anyhow if i have more qt or more gtk apps :D) Dec 19 09:51:08 one point maybe, it has a lot of "chrome" on top Dec 19 09:51:13 why every android launch in eclipse starts in debug mode on mac os? Dec 19 09:51:15 but it does feel less cramped then Dec 19 09:51:48 but on my windows launching app in eclipse launches it normally Dec 19 09:52:07 belgianguy: what you mean by chrome? Dec 19 09:52:38 to the right of file and the icons Dec 19 09:52:52 there's a lot of GUI space Dec 19 09:52:59 ah yeah but thats the gtk theme Dec 19 09:53:10 or you mean, that netbeans waste space? Dec 19 09:53:18 because i have set it to large icons, you can also use smaller icons :D Dec 19 09:53:51 but with modern resolutions, i have already enough space, so I wanted to have icons I can still hit :) Dec 19 09:53:58 timroes: ah maybe that explains it Dec 19 09:54:08 http://i.imgur.com/Rbcgc.png Dec 19 09:54:24 james-ubc: beautiful :D Dec 19 09:54:39 i like how eclipse so totally doesn't want to fit into the system Dec 19 09:54:53 you can switch the new style off, it fits then a bit better, but still not really as well as swing does Dec 19 09:54:56 that's in gtk mode Dec 19 09:54:58 guys, have anyone encountered a problem when a simple launch in eclipse starts in debug mode? Dec 19 09:55:07 lol want to see it with default? Dec 19 09:55:13 oh i thought that was default :D Dec 19 09:55:43 looks a bit like the new default theme Dec 19 09:56:21 http://imgur.com/KYYC7 Dec 19 09:56:23 same thing Dec 19 09:56:26 except blue Dec 19 09:56:48 don't you use other gtk apps? Dec 19 09:57:00 i do Dec 19 09:57:15 hmm strange with gtk style it fits a bit better into my system, but still kinda crappy Dec 19 09:58:07 http://i.imgur.com/6UNS0.png Dec 19 09:58:10 james-ubc: http://i.imgur.com/1Un9y.png still not good, but better then default style for me Dec 19 09:58:30 belgianguy: what guy toolkit does intelliJ use? Dec 19 09:58:46 ah ok, so swing emulated platform widgets; SWT was delegated to native widgets. Dec 19 09:58:51 timroes: no idea Dec 19 09:58:58 g00s: yeah Dec 19 09:59:18 i remember reading this http://www.codinghorror.com/blog/2008/12/avoiding-the-uncanny-valley-of-user-interface.html Dec 19 09:59:20 why cant they just use QT? Dec 19 09:59:30 and then Bill Higgin's entry Dec 19 09:59:39 qt java bindings suck like hell :) Dec 19 09:59:40 timroes: IntelliJ uses normal swing Dec 19 09:59:52 james-ubc: linking to C++ code is nearly always hell Dec 19 10:00:30 i guess java 9 is supposed to replace the shitty JNI stuff Dec 19 10:00:32 timroes: it seems to be Swing :D Dec 19 10:00:42 okay so if intellij is swing... what's so bad about swing? Dec 19 10:00:53 actually let me rephrase that Dec 19 10:01:00 why does eclipse look like shit Dec 19 10:01:13 https://github.com/JetBrains/intellij-community/tree/master/lib Dec 19 10:01:30 james-ubc: designed by programmers Dec 19 10:01:34 g00s: JNI or no JNI, linking to C++ is hard Dec 19 10:02:00 where are the days one could go hunting for linker errors in C++ Dec 19 10:02:17 belgianguy: they ever disappeared? Dec 19 10:02:24 Are you John Titor? ;P Dec 19 10:02:42 james-ubc: the idea of using native elements on every system is not that bad in my opinion Dec 19 10:02:50 does oracle have an ide? Dec 19 10:02:56 NetBeans Dec 19 10:03:05 and JDeveloper Dec 19 10:03:20 oh okay Dec 19 10:03:23 that makes sense Dec 19 10:03:31 interesting, intellij uses JNA Dec 19 10:03:44 JNA? Dec 19 10:04:23 http://jna.java.net/ Dec 19 10:06:21 yeah swiching to swt dosnt seem to have brought any ui updates at all Dec 19 10:06:45 it annoys me that after so ong Dec 19 10:06:57 there's still no obvious way to import existing projects in the workspace Dec 19 10:07:17 is there any good tutorial on moving projects with multiple project dependencies from eclipse to intellij IDEA? Dec 19 10:07:30 import > existing projects does not feel natrual Dec 19 10:07:57 stiggpwnz: IntelliJ can import those through a wizard Dec 19 10:08:08 make a copy/backup beforehand Dec 19 10:08:18 and let IntelliJ try and do its things Dec 19 10:08:31 I had to assist a little when I tried Dec 19 10:09:58 james-ubc, belgianguy importing goes well, but I can't figure out the dependencies, it marks red on every class from jar or project libs Dec 19 10:10:16 so I was looking for some tutorial to figure out what am i doing wrong Dec 19 10:14:24 http://i.imgur.com/GdK2j.png Dec 19 10:14:35 trying to install chrome theme in eclipse Dec 19 10:14:47 derp Dec 19 10:25:25 lol Dec 19 10:25:42 there's still no nexus 4 profile for the emulator? Dec 19 10:31:55 stiggpwnz: oh, File > Project Structure Dec 19 10:32:55 belgianguy: thanks, gonna try that Dec 19 10:33:05 stiggpwnz: then on the left pick Modules, and on the far right of the window click the green + and select jar or directory Dec 19 10:33:17 sigh Dec 19 10:37:56 stiggpwnz: then on the left pick Modules, and on the far right of the window click the green + and select jar or directory Dec 19 10:41:08 Hi, someone knows how I can intercept the POST requests in a WebView ? I already use the WebViewClient, but it intercepts only the GET requests ... Dec 19 10:41:58 i miss my galaxy nexus Dec 19 10:44:46 belgianguy: so I made it like this: https://dl.dropbox.com/u/32772116/Screen%20Shot%202012-12-19%20at%202.43.25%20PM.png Dec 19 10:46:06 belgianguy: but anyways all my activities are fucked up: https://dl.dropbox.com/u/32772116/Screen%20Shot%202012-12-19%20at%202.45.16%20PM.png Dec 19 10:46:13 Hello guys, I have the following weird situation. When my activity is destroyed, it is still visible. This continuely happens on my Samsung S Plus. If I start camera app from my activity, it stops my activity. When coming back from camera, it doesn't restart my activity, but continues to destroy(). Than recreates my activity with onActivityResult() call, than destroy()s it and recreates again, while the first Activity is still visib Dec 19 10:46:13 le! I can follow it by logging also the 'this' pointer of the Activity. Any understanding of this weird behaviour? Dec 19 10:48:06 stiggpwnz: for ABS I had to add "Module from existing source" Dec 19 10:48:16 belgianguy: it says: "Cannot resolve method" on every activities method Dec 19 10:48:17 intellij looks booss Dec 19 10:48:19 but the rest of the libs you are using I don't know Dec 19 10:48:32 it's the Darcula theme Dec 19 10:48:54 I don't know how to handle this, on my HTC it works normally according to the android dev documentation, which means the Activity A should be restarted when coming back from Activity B. On my particular Samsung device Activity A gets called onDestroy() when coming from Activity B. Dec 19 10:49:03 can you Alt+Enter on some of those errors stiggpwnz Dec 19 10:49:21 stiggpwnz: Dec 19 10:49:30 did you select 'JAR or directory' Dec 19 10:49:36 or "Libraries"? Dec 19 10:49:38 grrr Dec 19 10:50:26 if the libraries are detected, IntelliJ should suggest to import those Dec 19 10:50:41 but from the icons it looks like you picked Library Dec 19 10:50:50 insteaf of "JAR or directory" Dec 19 10:50:55 instead* Dec 19 10:51:05 belgianguy: I have 5 module dependencies, like ABS, so i added them as module dependencies Dec 19 10:51:19 belgianguy: gonna try adding jar or directory Dec 19 10:51:53 the module deps you can keep Dec 19 10:52:01 it's those at the bottom with the odd icon Dec 19 10:57:56 belgianguy: wow, I think I sorted out every dependency, just needed to add them not as module dependencies, but as library dependencies Dec 19 10:58:21 now I cant figure out how to run an app from intellij : ) Dec 19 10:58:31 stiggpwnz: try building and running Dec 19 11:01:29 how to add a module to run configurations in intelliJ? Dec 19 11:07:17 belgianguy: did you just switch to intellij? lol Dec 19 11:07:39 james-ubc: I've always been using IntelliJ :) Dec 19 11:08:14 am i the only one still using eclipse :P Dec 19 11:09:19 can anyone tell me how to change the position of point as per the screen resolution? Dec 19 11:09:23 g00s: when getting down to the nitty gritty with NDK, I might still need good ol' Eclipse Dec 19 11:09:56 i've managed to avoid the ndk so far XD Dec 19 11:11:09 Heya guys, quick question - I have a custom dialogfragment class, and in its onCreateDialog method I fetch a builder and build the dialog obviously.... Dec 19 11:11:47 The dialog has a textview input and 2 radio buttons, defined simply as b.setView(textField); b.setSingleChoiceItems(options, -1, null); Dec 19 11:11:59 The issue is - the single choice items are always positioned above the text view Dec 19 11:17:26 g00s: im still on eclipse atm Dec 19 11:17:31 but once this project is done Dec 19 11:17:46 hello IntelliJ Dec 19 11:18:40 will it cost more if i don't call SensorManager.unregisterListener when pausing the activity? Dec 19 11:26:00 zhangxaochen: definitely unregister the listener in onPause Dec 19 11:26:29 g00s, just wanna know what will happen if i forget unregister it? Dec 19 11:29:13 it will keep the sensor active Dec 19 11:29:17 and use battery power Dec 19 11:29:53 also memory leak Dec 19 11:30:05 which is very bad Dec 19 11:30:20 probably a crash too Dec 19 11:30:24 sigh. Why can't I initialize a DES Cipher without a feedback mode? Dec 19 11:31:58 Ge0rG: maybe because ECB is so pitiful it's not worth running? Dec 19 11:32:10 one of the most popular sensor listing apps in the market doesn't unregister listeners onPause Dec 19 11:32:49 Ge0rG: OTOH, DES spec requires a mode of operation Dec 19 11:33:11 if you want the dumbest possible option that might stop at most a barely literate kid, use ECB Dec 19 11:33:27 p_l: unfortunately, I need to work with a DESfire tag, which implements CBC in an incompatible way, so I need to do it manually Dec 19 11:33:29 public void setSelection (int position, boolean animate) <- by any chance by setting animate to false it would not call spinners onSelectionChange? Dec 19 11:34:08 p_l: it looks like the only other viable option is to manually reset the Cipher after every block and perform the CBC by hand. Dec 19 11:35:49 belgianguy, g00s why might it cause memory leak and crash? Dec 19 11:36:02 i cant imagine Dec 19 11:36:18 because the GC won't touch it if it's still registered Dec 19 11:37:43 belgianguy, that's true, but unregister a listener doesn't release anything Dec 19 11:37:46 Ge0rG: I'd probably hit NDK Dec 19 11:37:59 and use some minimal C code implementing DESfire stuff Dec 19 11:38:03 I dislike doing crypto in DVM Dec 19 11:38:14 p_l: yeah, it sucks big time Dec 19 11:39:04 maybe I can even get it to work with the DESFire C implementation in libfreefare Dec 19 11:39:19 zhangxaochen: but it can contain references to other objects, which will live on as well Dec 19 11:39:32 yay! \o/ ECB mode and manual XOR worked! Dec 19 11:39:45 Ge0rG: yeah, I was just going to suggest that :) Dec 19 11:39:59 (after reading up how exactly they made it) Dec 19 11:40:48 belgianguy, as an example, what will GC collect in "mSensorManager.unregisterListener(mGraphView);" Dec 19 11:41:39 zhangxaochen: it won't leak memory Dec 19 11:41:40 zhangxaochen: I don't know what other code is depending on that, fact is, if you register it, you have to unregister it Dec 19 11:42:31 it will get unregistered when you finish the app and may complain about a leaked context or receiver, but it won't crash or leak memory Dec 19 11:43:10 the main problem is that you leave the sensor powered/active Dec 19 11:43:30 eg if your app registers the camera Dec 19 11:43:46 and you start another app that wants to use the camera (on top of Activity stack) Dec 19 11:43:53 you might not get what you expect Dec 19 11:44:10 i dont understand how not unregistering wouldn't lead to a leak Dec 19 11:44:19 rops, that costs more energy, is that true? Dec 19 11:45:34 it's just good programming and esp on mobile devices a "fair" approach: use anything you want, but give it back when you're done with it Dec 19 11:46:22 belgianguy, i don't know that camera example, but isn't the listener model using mechanisms like broadcasting? Dec 19 11:47:19 i know it's a good practice to make it a pair, but just want to know the exact behavior if i forget to unregister something Dec 19 11:48:45 i thought it might cost more power, but not sure and don't to how to verify that Dec 19 11:51:36 g00s: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/hardware/SystemSensorManager.java Dec 19 11:51:45 registerListenerIMpl() Dec 19 11:51:59 checks if listener exists already, so you can't register the same one twice Dec 19 11:52:29 so you can't really leak memory unless you have some awful design Dec 19 11:52:31 but still, you better remove listener when you don't need it Dec 19 11:52:41 hello, what do you guys use to manage internal storage? i think i borked the filesystem or equivalent of MBR somehow, but the phone doenst want to boot, not even recovery :S any chance of trying to fix it, provided its not hardware failiure? Dec 19 11:52:50 it's the same with services etc. Dec 19 11:52:55 and to check sensors, adb shell then: dumpsys sensorservice Dec 19 11:53:19 if you don't unregister, it will stay active and show up there Dec 19 11:53:24 I think one of the biggest problems with android applications (as in what ends up on market) is applications that don't follow simple rule of not enabling everything all the time Dec 19 11:57:33 p_l: I think it signifies that many programmers just don't care Dec 19 11:57:49 and probably think that Java is magic and memory leaks don't exist Dec 19 11:58:25 It's also a case where things like that have hardly any influence on how successful an app iss Dec 19 11:58:28 is* Dec 19 11:58:48 rops: more like people blame android for failures of teh app Dec 19 11:58:50 *the Dec 19 11:59:32 it's good practice to clean up after you're done Dec 19 11:59:42 I won't take "the user won't notice" as an excuse Dec 19 12:00:14 it's a bit clear now , thank you guys Dec 19 12:00:35 I also like doing things the correct way, but I'm just saying that people take shortcuts because they can Dec 19 12:00:38 I definitely notice - I have shitty phone (my N4 is still in customs >_>), and many people notice battery drain Dec 19 12:00:50 rops: often because they don't think Dec 19 12:03:16 you had to order from abroad? Dec 19 12:03:18 rops: i took a look at the code you pointed to - you are right, it doesn't register twice - but its still has a reference to an object which is probably a context, or has a reference to a context - so … sill likely a leak Dec 19 12:04:32 http://code.google.com/p/android/issues/detail?id=15170 Dec 19 12:04:35 hahaha, omfg Dec 19 12:04:53 what a pos Dec 19 12:07:06 guys... can you flash device with another ROM without access to recovery? like [ROM]RUU_Bravo_Froyo_HTC_WWE_2.29.405.5_Radio_32.49.00. 32U_5.11.05.27.exe - how does this do it from windows? phone needs to have access to recovery for this to work? Dec 19 12:08:03 -> #android-rom Dec 19 12:08:25 oops Dec 19 12:08:32 -> #android-root Dec 19 12:09:02 so many channels. .. any list of all the official channels ? Dec 19 12:09:04 thx tho Dec 19 12:10:38 what happen anyway Dec 19 12:11:31 phone wont boot, stuck at inital HTC logo screen, can't even get to recovery ... could be corrupt filesystem on internal storage or faulty mbr or even hardware issue Dec 19 12:11:48 trying to rule out software problems with reinstalling, restoring, etc but cant even access the device Dec 19 12:12:03 primski: #android-root or #xda-devs Dec 19 12:12:13 /join ... Dec 19 12:12:23 k, thx Dec 19 12:17:45 i guess mostly americans here who probably sleep currently eh ? Dec 19 12:18:01 not really Dec 19 12:19:27 * belgianguy coughs Dec 19 12:19:28 heh, canadians are mostly in the same timezone so sleeping argument counts :p Dec 19 12:20:08 lol there even was a giant syrup heist some time back Dec 19 12:20:20 Canadians sure are serious when it comes to syrup Dec 19 12:20:29 the great canadian cheese scheme? Dec 19 12:20:32 or soething like that Dec 19 12:20:40 hehe Dec 19 12:21:41 I only know Canada from South Park, so I my expectations might not be in line with reality Dec 19 12:22:02 -I Dec 19 12:26:08 anybody familiar with Curlview here by Harism? Dec 19 12:37:36 so uh... I have a custom class that extends dialogfragment Dec 19 12:37:57 In that classes onCreateDialog I create an AlertDialog and return it Dec 19 12:38:19 any game designers here? Dec 19 12:38:25 when I call the dialogfragment class' show() method, I get that dialog... but I can't get a handle on the buttons, no? Dec 19 12:38:50 Tee_Pee: you can Dec 19 12:39:14 if you set positive and negative button callbacks when you create an alertdialog Dec 19 12:39:17 The buttons are null before the dialog's show() is called Dec 19 12:39:32 Tee_Pee: doesnt matter Dec 19 12:39:33 yeah, callbacks are fine Dec 19 12:39:41 it's just that I need to disable the positive button initially. Dec 19 12:40:35 Tee_Pee: take a look: http://pastebin.com/7T6z8gUV Dec 19 12:40:48 Tee_Pee: oh Dec 19 12:41:22 oh indeed :< Dec 19 12:41:35 Tee_Pee: but you cave onViewCreated callback Dec 19 12:41:39 thinking I should probably just extend AlertDialog outright rather than DialogFragment Dec 19 12:45:36 thinking you don't need to extend either of those Dec 19 12:47:03 then what? Dec 19 12:50:44 then learn how to use dialogs properly Dec 19 12:51:19 you don't extend String just to use a String... Dec 19 12:51:49 lol Dec 19 12:53:30 pragma-: so you trying to say that you never extend DialogFragment? Dec 19 12:53:46 why would I need to? Dec 19 12:54:33 pragma- I am using a dialog with a custom layout Dec 19 12:54:38 What do you want me to do, crowbar it in? Dec 19 12:54:52 Tee_Pee: the dialog has a setLayout method... Dec 19 12:55:14 pragma-: yeah but it's more than just it Dec 19 12:55:18 Does it also support custom listeners? Dec 19 12:55:52 at the end of the day, it doesn't matter... this dialog fragment works, I just need a proper way to get a handle on the buttons. Dec 19 12:55:56 you have to provide your own dialoginterface classes in either case... Dec 19 12:56:58 the only time I had to extend a dialog class was due to having a Spinner in the dialog's layout and android having a bug that crashes the app if you rotate orientation while the Spinner's selection dialog was visible Dec 19 12:57:27 so I had to override the dismiss() method to handle the bug Dec 19 12:58:12 in all other cases, custom layouts and whatnot work find with the dialog classes as-is Dec 19 12:58:23 s/find/fine/ Dec 19 13:01:02 someone knows how I could intercept the POST requests in a WebView ? Dec 19 13:01:50 http://code.google.com/p/android/issues/detail?id=4936 describes the bug Dec 19 13:02:01 still unfixed in 4.2.1 Dec 19 13:02:11 bug opened in 2009 Dec 19 13:02:35 at least there's a workaround Dec 19 13:03:38 Does anyone in here have knowledge about using SQLite with the Singleton approach? (One instance, don't close the db) Dec 19 13:04:58 w00diSH: elaborate Dec 19 13:05:08 i have a singleton for the sqllite stuff Dec 19 13:05:12 I'm wondering how to use the getWriteableDatabase function. Dec 19 13:05:21 I have a lot of functions like: Dec 19 13:05:28 i use ormlite Dec 19 13:05:31 getThisItemFromDatabase() Dec 19 13:05:51 it works well enough, and i can swap out the storage engine for something else in the unit tests Dec 19 13:05:54 should I use getWritableDatabase in every function, or once in the constructor? Dec 19 13:06:08 http://touchlabblog.tumblr.com/post/24474750219/single-sqlite-connection Dec 19 13:06:17 im refering to this approach, but without using ormlite Dec 19 13:06:40 i'm guessing you can use dep injection Dec 19 13:07:26 I don't know what that is :} what is dep injection? Dec 19 13:07:35 ah Dec 19 13:07:40 well google is your friend here Dec 19 13:07:45 too much to explain Dec 19 13:07:52 plus i must go do battle with the inflater Dec 19 13:08:02 do you mean deep or dep? Dec 19 13:08:59 he meant dependency Dec 19 13:19:39 there's a host-serial:devicename:get-serialno call. Is there something like it that can give me a friendly name for a device? Dec 19 13:19:58 (adb api) Dec 19 13:20:31 so this app just popped a "rate this app" dialog with an option to "not show this dialog again" Dec 19 13:20:52 I ticked the no show thing and selected later, then pressed back and it popped up the same damn dialog again Dec 19 13:20:55 THREE MORE TIMES Dec 19 13:21:00 I feel like rating 1 star right now Dec 19 13:22:08 can a person rate an app more than once? Dec 19 13:22:17 probably not Dec 19 13:22:18 or is this rating not tied to Play? Dec 19 13:22:33 it was just a prompt to go rate it on play Dec 19 13:22:38 and I chose not to be interested Dec 19 13:22:47 nagging = 1 * Dec 19 13:22:52 yep Dec 19 13:22:52 Zharf: press the 'ok' button instead of the back button... Dec 19 13:23:16 pragma-, there were two buttons, to go to play store or to do it "later" with a tick box to not ask again Dec 19 13:23:19 pragma-: "Cancel" is the "DO NOT WANT" button Dec 19 13:23:23 obviously he doesn't save the prefs when dismissing with the back button Dec 19 13:23:27 I ticked the box and then chose later Dec 19 13:23:34 after that I wanted to go back in the actual application Dec 19 13:23:38 and it popped up the dialog again Dec 19 13:23:41 yeah, he forgot a code path Dec 19 13:23:48 probably switches a bool after ok Dec 19 13:23:51 but not after cancel Dec 19 13:24:00 the dialog was already gone when I pressed back Dec 19 13:24:30 anyway, there are ways to rate an app multiple times Dec 19 13:24:53 kind of a hassle with the google+ and phone linking, but still possible Dec 19 13:25:11 pragma-: argh, so people can cheat? :/ Dec 19 13:25:24 I for once thought the Play ratings were all organic Dec 19 13:27:37 but the real name requirement probably pushed back spamming bots quite some Dec 19 13:27:57 I refuse to rate apps because of the google+ thing Dec 19 13:28:17 all my google+ accounts have fake names Dec 19 13:28:48 I'd rather have fair competition than some subpar app drifting to the top on some botnet spam operation Dec 19 13:29:40 I identify more with my internet handle than my "real-life" name Dec 19 13:30:37 pragma-: well yeah, so do I Dec 19 13:30:49 but it's hard to counter spamming then Dec 19 13:31:11 unless you get out the captchas or "slide to untwist" Dec 19 13:33:12 You can design an app/game/website that takes captchas from official sites and proxies it to users of your app/game/website and then takes the input from the users and uses it against the captcha on the official site Dec 19 13:38:21 pragma-: and are such activities rampant? Dec 19 13:40:44 hi Dec 19 13:41:14 belgianguy: probably not, but still possible! Dec 19 13:51:33 what UID is a service run under? Specifically, if app A starts a service of app B - will app B have access to accounts it set up? Dec 19 13:53:10 can some1 do a quick test for me ? Dec 19 13:53:39 that has a gnex with latest JB on ? Dec 19 13:53:59 I think I found an odd Android Bug Dec 19 13:54:19 whats that? Dec 19 13:54:26 would nexus 7 be ok, too? Dec 19 13:54:49 just attempting it on a nex7 now to see Dec 19 13:55:35 may have to be a phone Dec 19 13:55:54 tis either an android bug or me being dense Dec 19 13:56:10 greater poss of me being dense Dec 19 13:56:14 :) Dec 19 13:56:18 lol Nintendo 3DS hacked? Dec 19 13:56:56 ok no...dont happen on nex7 Dec 19 13:57:01 but does on a gnex Dec 19 13:57:55 ok now this is annoying Dec 19 13:58:05 so ne1 have a gnex to do a quick test ? Dec 19 13:58:34 although pretty sure since there is diff behaviour from gnex to nex7 that it is a bug Dec 19 13:58:39 and not mine Dec 19 14:04:33 I feel like I'm missing the forest from all the trees Dec 19 14:04:38 darn, no rule to make target Dec 19 14:04:58 is it possible to change the "Done" text on the left-hand side of the contextual action bar? Dec 19 14:05:07 I am trying to get it to say "Cancel" Dec 19 14:06:26 hi, i use MediaPlayer to play a http stream, i call start() when the prepared event has been called, but it doesn't play, how can i debug the state of my mediaplayer? Dec 19 14:08:14 htrejh http://developer.android.com/reference/android/media/MediaPlayer.html look at the state diagram Dec 19 14:09:09 sure you could override and add data or read state Dec 19 14:09:16 not that I've ever done it Dec 19 14:09:37 heya all! I am having a problem with lucene, eclipse and android. Somehow the lucene-codec.jar is not included in the APK file, is there any workaround known? Dec 19 14:09:54 (lucene 4.0, eclipse Juno, latest ADT) Dec 19 14:10:56 StingRay_: yes i saw that diagram, but how can i get the state? i didn't find any property Dec 19 14:11:55 well no override the method start() and get all the info there I would think Dec 19 14:12:47 StingRay_: ok i'll try, btw if the prepared event is called, does it automatically means there have been no streaming errors? Dec 19 14:13:13 Hey guys, if I want to change the background from a textview shortly if I click on it(like the button does), is it done by a backgrounddrawable or is this some kind of animation? Dec 19 14:13:25 I would "guess" no... it would depend on the severity of error Dec 19 14:13:48 htrejh: I tried using it but ended up using VideoPlayer Dec 19 14:14:37 Looney: i'll have a look too, it worked yesterday though :s Dec 19 14:15:04 you are a lucky bloke in my opinion Dec 19 14:15:23 I banged my head on it for few days, gave up and used VideoPlayer Dec 19 14:15:28 worked like a charm Dec 19 14:15:30 Looney: didn't work every time though :p Dec 19 14:19:05 fuck it Dec 19 14:19:10 dropping 2.3.3 support Dec 19 14:20:58 I am about to pull my hair Dec 19 14:21:19 can anyone walk me through the solution to no rule to make target Dec 19 14:24:02 if i get Error(1, -4) in tomcat, how can i know what the error is? Dec 19 14:24:08 mapleDippedDonut: Instead of dropping support, have a basic 2.3 app, and a cool 4.1 app. Dec 19 14:24:28 There's no reason to shut out half the world. Dec 19 14:24:58 mapleDippedDonut: good man Dec 19 14:25:03 mapleDippedDonut: why dropping 2.3? Dec 19 14:26:27 Having a basic 2.3 app let's the 2.3 users know that, Yes you can still do things on your phone, but No, your phone really isn't that cool anymore and if you want really good things, you'll have to use a good phone. Dec 19 14:26:39 it's just a fun little app for my departments Dec 19 14:27:05 image board for physics compsci and science undergrad society Dec 19 14:28:02 nerds and geeks, but you missed the engineers though Dec 19 14:28:14 i'm not in engineering Dec 19 14:28:23 :) Dec 19 14:28:28 so why can't you do 2.3? Dec 19 14:28:40 it's already working Dec 19 14:29:06 it already sort of holo Dec 19 14:29:10 90% there Dec 19 14:29:53 i think considering comp sci and phys is already mostly on 4.0 or higher Dec 19 14:30:00 i can jsut save the rouble and drop it Dec 19 14:31:15 anyone else has no rulle to make target problem Dec 19 14:31:41 1 more update for gingerbread to add new features Dec 19 14:31:45 and i'm done Dec 19 14:31:48 sorry, I wanted to ask for suggestions Dec 19 14:32:16 ask people to use CM if they are stuck with old roms Dec 19 14:32:21 o.o Dec 19 14:32:29 what's target problem? Dec 19 14:32:50 is it possible to access mp3 file's album image without looking for it in the media content providers? Dec 19 14:32:52 no rule to make target when I ndk-build Dec 19 14:33:09 i mean i got an mp3 file, and want to simply extract a bitmap from it, is it possible? Dec 19 14:33:25 google has no answers for this question Dec 19 14:34:22 that stuff's beyond me sorry :( Dec 19 14:34:58 no problem, someone who has ndk experience will show up later or sooner to save my day Dec 19 14:35:02 :-) Dec 19 14:35:37 stiggpwnz no idea but I would start with looking at the metadata the mp3 file has attached to it Dec 19 14:36:59 there's probably a library for it Dec 19 14:37:07 you could look in the mp3 docs lol Dec 19 14:40:46 I want to let a user change an app's appearance/theme at runtime (eg. overall widget colors). How should I implement this? I'm creating a theme, but there are attributes I cannot define in a theme, for example, a listview's header style. Dec 19 14:40:54 mapleDippedDonut: have you done any research into your target audience? Don't forget that 2.3 is about 50% of the phones out there at this point. Dec 19 14:42:26 lov: i personally know about 30-40% of them and they're mostly on 4+ already :) Dec 19 14:42:38 new version is just ui overhaul Dec 19 14:42:54 and some other stuff Dec 19 14:42:56 nothing big Dec 19 14:46:47 should I create a layout file for each theme? Dec 19 14:47:36 if I am using local_shared_library to use a so file, where should I paste/place the so file Dec 19 14:47:40 any reason why preferences wouldnt be able to find a preferencefragment? Dec 19 14:47:41 android.app.Fragment$InstantiationException: Unable to instantiate fragment com.cyanogenmod.trebuchet.preference.HomescreenFragment Dec 19 14:48:48 hydra__: I think you can do from code anything you can do from a layout file or theme. Not sure which would be more convenient in your case, though. Dec 19 14:48:59 nebkat prefrence saved from a library context ? if you use library projects Dec 19 14:49:16 StingRay_: no.. this is in cm/aosp build system Dec 19 14:49:22 hydra__ I have the same problem with theme style etc Dec 19 14:49:23 no libs or anything Dec 19 14:50:01 hydra__ has to create a lib layout and accessor class to inflate detach and pass back elements that fit a "theme" Dec 19 14:50:45 I have tried both public static inner class and own file Dec 19 14:50:48 with no luck Dec 19 14:52:11 nebkat your finding by tag ? Dec 19 14:52:24 StingRay_: what do you mean? Dec 19 14:53:02 not sure i understand "any reason why preferences wouldnt be able to find a preferencefragment?" Dec 19 14:53:21 Trying to compile tcpdump with NDK, it seems it's looking at my OS's system headers… /usr/include/sys/_types.h My compile code is at http://p.webra.in/dr and I was able to compile libpcap. Dec 19 14:53:38 xalbo: it is best to separate presentation from code Dec 19 14:54:19 StingRay_: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.cyanogenmod.trebuchet.preference.HomescreenFragment Dec 19 14:54:24 hydra__ : and there are some style elements that you just cant set in code Dec 19 14:57:11 StingRay_: so, the best might be to create a different layout for each theme Dec 19 14:57:24 thats what I do Dec 19 14:57:39 for buttons and such I use a lib system as desc Dec 19 14:57:55 i dont understand that lib system Dec 19 14:57:59 but for biggy things like listViews, grid, etc own layout Dec 19 14:58:07 you pass a theme to that lib Dec 19 14:58:11 correct Dec 19 14:58:14 so Dec 19 14:58:15 theme id that is Dec 19 14:58:23 and it returns the appropriate view? Dec 19 14:58:31 myClass.giveMeButtonForTheme(theme) Dec 19 14:58:37 returns view Dec 19 14:58:39 (after inflating the themed xml) Dec 19 14:58:42 ah Dec 19 14:58:46 from a lib. layout Dec 19 14:58:51 with loads of views Dec 19 14:58:56 diff styles Dec 19 14:59:40 but, do you include those buttons in the parent layout? Dec 19 14:59:58 or completelly load it at runtime? Dec 19 15:00:21 lib_buttons.xml contains many buttons grouped into same types Dec 19 15:00:31 each type has a style Dec 19 15:00:49 so I dont use actionBar cause it's not consistant throughout versions Dec 19 15:00:58 so lets say menu button Dec 19 15:01:17 menu button is in a group (linLayout) in lib_buttons.xml Dec 19 15:01:26 tis tagged with a theme id Dec 19 15:01:40 "white" lets say Dec 19 15:01:48 but in your main layout file, do you include the button? because later you replace it with the output of myClass.giveMeButtonForTheme Dec 19 15:02:08 no Dec 19 15:02:15 I include a layout template Dec 19 15:02:26 not in xml in my own config object Dec 19 15:02:36 hmm Dec 19 15:02:40 it has a layout template (or what I call a viewMap) Dec 19 15:02:51 my viewMap has target areas Dec 19 15:02:59 viewMap can contain buttons Dec 19 15:03:11 button def are fetched and have a theme attached Dec 19 15:03:11 etc Dec 19 15:03:20 works ok.. for what I want neways Dec 19 15:03:37 but this is all so that android 2.3.3 is same as 4.2.1 Dec 19 15:03:56 dont like the action bar approach that gives diff results Dec 19 15:04:10 or the popup menu thats different (drawerr thingy on 2.3) Dec 19 15:04:27 but I'm using this to learn really :) Dec 19 15:04:34 me too Dec 19 15:04:59 styling each widget is tedious and senseless Dec 19 15:05:05 I'm actually a vfx/games TD rather than a programmer Dec 19 15:05:17 but I'm also lazy but want control ;) Dec 19 15:05:24 =) Dec 19 15:06:16 dont happen to have a google nexus do you ? Dec 19 15:06:24 on latest OS ? Dec 19 15:07:24 nope Dec 19 15:08:10 Galaxy S Dec 19 15:08:27 but i mostly test my project on the emulator Dec 19 15:08:36 doesnt help you? Dec 19 15:08:51 those of you on os x, can you run the avd etc tools without having terminal running ? Dec 19 15:09:04 funkbox yes Dec 19 15:09:05 how to make EditText with custom cancel buttom (the cross like on ipad) Dec 19 15:09:05 i sometimes accidentally close terminal and BAM it all goes away Dec 19 15:09:17 i tried nohup android avd & and it still remains attached to the process Dec 19 15:09:34 funkbox oh hang on...what you mean tools Dec 19 15:09:35 ? Dec 19 15:09:48 I never really use emu...only devices Dec 19 15:09:50 StingRay_: avd, hiearrchyfviewer etc... Dec 19 15:10:29 I thought that was just an include and a few lines in the act ? not needing anything sep ? Dec 19 15:10:35 seperate* Dec 19 15:12:08 funkbox you on about hierachyViewer ? or "View Hierachy" from like dumping current view state ? Dec 19 15:12:18 StingRay_: you're netirely misunderstanding Dec 19 15:12:40 ah...not uncommon :) Dec 19 15:12:57 I would say that about 75% of my life :) Dec 19 15:13:20 and got it. android avd &; disown Dec 19 15:13:57 was gonna say letting a process go to BG should work in terminal Dec 19 15:14:41 funkbox, & disown Dec 19 15:16:04 squ: yep it owkrs Dec 19 15:17:16 hmm shouldnt 4.2 have chrome as default browser? or is that only for tablets Dec 19 15:18:19 how to make EditText with custom cancel button (the cross like on ipad) Dec 19 15:18:20 can someone help me with database insert optimisation? why is this method takes 500-3000 ms to execute? http://pastebin.com/25ZCegqp Dec 19 15:18:40 cuz it's aint normal Dec 19 15:19:24 hello i want learn how to do use the sdk android and eclipse for develop application using the cam for read code QR or barcode and geolocation Dec 19 15:21:20 dummies_freelanc: http://developer.android.com/training/index.html Dec 19 15:21:30 stiggpwnz are you not opening the DB many times ? Dec 19 15:21:54 StingRay_: I don't see a loop; I'm assuming that he's just calling insert once, which makes this kind of odd. Dec 19 15:22:04 well Dec 19 15:22:16 he's calling getWriteableDatabase multiple times but since he's not closing it this shouldn't cause an issue Dec 19 15:22:29 you could try caching the database that you get back, stiggpwnz, but I don't think that will affect anything. Dec 19 15:22:34 thanks lov Dec 19 15:22:39 I also don't know how many rows you're updating. Dec 19 15:22:47 I have an odd feeling it will lov Dec 19 15:22:50 also, have you timed the update vs insert section? Dec 19 15:23:26 lov: I'm updating exactly one row, thanks for the advice, gonna try to cache and time update and insert Dec 19 15:23:36 StingRay_, lov thanks guys Dec 19 15:29:39 lov i see the link but i need know more specific .. code for use the component of smartphones. and integrate with my app . can you help me in this? Dec 19 15:30:16 dummies_freelanc: you need to learn android fundamentals first. There is also an amazing tool called "google" with which you can search the internet for information. Dec 19 15:30:24 In short, no, I will not do your job for you. Dec 19 15:31:34 StingRay_, lov: lol, caching did the thing, now it takes 4+2 ms, down from 3000 : ) Dec 19 15:31:42 Strange. Dec 19 15:31:56 Look at your log output, see if there's anything about trouble with your database. Dec 19 15:32:11 getWriteableDatabase should cache the result and keep the connection open until it's explicitly closed. Dec 19 15:32:36 there wasnt any, I'm constatnly tracking the logcat Dec 19 15:32:38 (your database is actually a singleton, so getReadableDatabase will actually get the writeable database reference if you call getWriteableDatabase) Dec 19 15:32:54 so I have not a clue why this would have affected your performance o_O Dec 19 15:34:48 thanks lov i do the training and find info in google Dec 19 15:43:23 howdy everyone Dec 19 15:44:22 Trying to compile tcpdump with NDK, it seems it's looking at my OS's system headers… /usr/include/sys/_types.h My compile code is at http://p.webra.in/dr and I was able to compile libpcap. Dec 19 15:46:41 does the galaxy note 2 have a hdpi or a xhdpi resolution? Dec 19 15:52:09 is there a good way to profile native code on android? Dec 19 15:53:29 Drakonite: you might be able to compile your own kernel with oprofile, or enable gprof in the c compiler Dec 19 15:56:03 grmrgecko: you may need to hack on the makefile Dec 19 15:56:56 dragorn: It seems the configuration file is looking for those headers and finds them via my system since they don't exist in the NDK. Dec 19 15:57:15 yup. So you have to figure out how (and if) you can create them in the ndk and hack the makefile to refer to them Dec 19 15:57:15 maybe if I did a chroot to the ndk? Dec 19 15:57:25 or disable that feature in the config.h output manually Dec 19 15:58:02 let's see if I can figure out chroot Dec 19 15:58:04 i've never seen something just ./configure inside the ndk. I just figure I'll have to spend the upfront time on doing the config.h and makefile tweaking. Unfortunately for you, while I've done libpcap, I haven't care about tcpdump Dec 19 15:58:08 chroot won't work Dec 19 15:58:26 actually depending how the ndk is set up, tehre's a chance it will Dec 19 15:58:32 but I doubt it Dec 19 15:58:47 ok Dec 19 15:59:02 I would think it will. Dec 19 16:00:06 I was just hoping someone in here will have a quick answer since I don't have the time to do research into the filesystem right now. Dec 19 16:10:30 Is there a way to open one of the standard Activities in Settings, such as the time_zone picker or the wifi settings, without showing the big menu full of options? Dec 19 16:10:50 Can I display one of the Settings activities in my own widget or view? Dec 19 16:11:38 no Dec 19 16:11:53 I was just thinking that if the settings are already broken out in a dozen separate activies, maybe I could open just one without opening the whole app. Dec 19 16:12:17 sigh, a design client finally sent us an app design that clearly uses an Action Bar and fragment based design pattern... Dec 19 16:12:31 ... but why oh why is it for an iPhone/iPad only project? D: Dec 19 16:14:03 Haha Dec 19 16:14:14 Reverse iOS-only syndrome. Dec 19 16:16:09 Estel: nowadays its happen with me too, many times :( Dec 19 16:16:20 Estel: and then they'd get rejected from appstore for not fitting in? :P Dec 19 16:16:45 p_l: no Dec 19 16:17:00 Did anyone make a UIActionBarController yet? >_> Dec 19 16:17:29 dont use ui prefix :) Dec 19 16:17:52 btw not much work for make it from navigation bar Dec 19 16:18:18 Yeh, not too worried about it, and I guess this isn't the place if I were ^^ Dec 19 16:18:18 Ge0rG: I forgot about gprof... thanks. hopefully it'll do well enough Dec 19 16:19:19 btw designers i think all the time swap actionbar and navigation bar :) Dec 19 16:20:45 Jonathan_Eyre: you could always make your own widget :D Dec 19 16:21:02 today i got a design for 3 state slider (left, center, right), design is 44x44 px, and they want slider, not 3 state button Dec 19 16:23:22 lov: I suppose I could take the source from Settings for their time_zone changer, and put that in the app I'm putting in /system/app/. Dec 19 16:23:32 It should allow it if it is in /system Dec 19 16:23:48 and you've given yourself the appropriate permissions Dec 19 16:24:43 The funny thing is I didn't see the ZONE permission given to the Settings app. Either they allow it where I'm not expecting, or it's just auto-given to system apps. Dec 19 16:35:56 is there a way I can keep from reinstalling an application every time I work from home? Dec 19 16:37:02 idrathernot: you mean, because the apps are signed with different keys? Dec 19 16:37:21 Drakonite: please let me know how gprof works out Dec 19 16:37:42 yeah. Dec 19 16:38:02 you can use on both computers the same debug key Dec 19 16:38:11 anyone know how to convert (in SQL or Java) a Java String to an UTF-8 String? Dec 19 16:38:13 any other way, I guess not Dec 19 16:38:22 I'm running out of ideas and will to live here Dec 19 16:38:23 :p Dec 19 16:38:36 belgianguy: java strings are utf8? Dec 19 16:38:40 Ge0rG: looks like it's actually a huge pain to make work properly, but I seem to recall you can get crummy results (which may be good enough for me) with the debug monitor, depending on your firmware Dec 19 16:39:04 they contain Slavic characters, and MySQL won't match them Dec 19 16:39:23 timroes, Awesome, thanks. I think this will do what I want. Dec 19 16:39:24 perhaps your MySQL Table is not utf8 :) Dec 19 16:39:31 timroes: they're actually full unicode iirc Dec 19 16:39:52 I asked to check, and got UTF-8 as response Dec 19 16:39:59 idrathernot: what timroes said. Just use the same debug key. Dec 19 16:40:00 lov: you are right! Dec 19 16:40:19 full unicode not utf-8 Dec 19 16:40:37 but it seems that Java converts anything you assign to String to UTF16 :s Dec 19 16:42:25 Hello guys, isn't it better to save data in an Application object when an orientationChange occurs? Dec 19 16:45:22 hey folks.. just starting out. which API level should I develop with for a decent balance of compatibility and features? I'm targeting OpenGL ES 2.0 (shaders and all) Dec 19 16:46:13 Number5: Orientation change isn't the only thing that can destroy your activity Dec 19 16:46:24 davedes: depending on what features you will need :) Dec 19 16:46:42 you specify the dependency to opengl 2.0 seperate from sdk version Dec 19 16:46:43 Tell me about ;-) Dec 19 16:47:08 davedes: IMO, minSdkVersion="8" is great for that Dec 19 16:47:14 unless you _need_ a newer API Dec 19 16:47:53 SimonVT, but do you think it's better to put it in an Application object? I don't see why not. Dec 19 16:47:58 ok thanks, will start there. Dec 19 16:48:06 davedes: tbqh, only 5% of the market is < API 10, iirc, so you may as well start there. Dec 19 16:49:07 Number5: It really depends on what you're saving Dec 19 16:49:29 You already have to use onSaveInstanceState to save enough data to re-create your activity/fragment as it was Dec 19 16:49:46 SimonVT, why? I can save a list of images for example, or a list of my own custom objects... Dec 19 16:50:02 If you e.g. have some bitmaps cached, application could work for that Dec 19 16:50:05 Or any singleton Dec 19 16:50:07 k will start with 10 for now then Dec 19 16:51:02 SimonVT, than what would be better to save it with onSaveInstanceState. Dec 19 16:52:12 I've read that onSaveInstanceState is handy for light stuff, like user edits or which page item... Dec 19 16:52:56 yes Dec 19 16:53:00 As I said, it depends on your data Dec 19 16:53:14 You just asked "is it better to use Application" Dec 19 16:53:19 No, it's not Dec 19 16:55:29 Has anyone implemented APK expansion files for Google Play and found that their file is not downloaded? I get a "Looking for files to download" notification immediately followed by "Download finished" but my 70MB obb isn't downloaded. I'm following the sample provided with the lib. Dec 19 16:56:44 This logcat looks important: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond Dec 19 16:58:33 Hello. Dec 19 16:58:42 How can you intercept hardware keys? Dec 19 16:58:46 real or virtual Dec 19 16:58:54 I mean home, for example. Dec 19 16:59:17 you cant / shouldnt do that Dec 19 16:59:24 can't or shouldn't? Dec 19 16:59:30 home = both Dec 19 16:59:40 are you sure? Dec 19 16:59:42 you can define your app as a homescreen Dec 19 16:59:46 mhm Dec 19 16:59:58 then it would get "home" key starting it Dec 19 17:00:14 I would rather want something like a key that will answer calls. Dec 19 17:00:29 aren't there any spare keys? or is it possible to override some? Dec 19 17:00:50 yeah, do a search, loads of info on it Dec 19 17:01:04 event key overrides like back etc Dec 19 17:01:19 I meant keys that don't do important things Dec 19 17:02:12 like Home Dec 19 17:02:17 and I want something like: if you press the camera button, camera launches Dec 19 17:02:21 I have VIewPager, I am setting PageAdapter, But afterthat I am not able to get first view's edittext using View view = viewPager.getChildAt(0); EditText editText = (EditText) view.findViewById(R.id.dialog); Dec 19 17:03:37 are there any open source solutions for fixing diagonal line touch input? i.e. fixing this http://www.youtube.com/watch?v=Dk9nwIRngvk Dec 19 17:03:44 I want something like you press the button and I get my call answerred Dec 19 17:05:10 for accessibility related usage Dec 19 17:05:13 actually Dec 19 17:08:51 davedes: it's problematic - first, you'll need to root. then you will need to try to make a model of the error. and this may not in practice be consistent. Dec 19 17:09:23 davedes: optimising it for a fingertip may make it less accurate for a finger-edge Dec 19 17:12:13 SpeedEvil - what about some sort of "calibration test" where the user tries to draw straight lines several times, giving the phone something to go off i.e. "this is how i am going to draw diagonal lines" Dec 19 17:12:39 doesdoes anybody know a good tutorial for learning android programming? Dec 19 17:13:50 davedes: in principle, yes, but then it may not work very well for pointing Dec 19 17:14:29 davedes: you're fundamentally trying to get the state of hardware you don't know the design of, and have no insight into Dec 19 17:15:58 can you react to the home key press without fully intercepting? Dec 19 17:16:14 yes Dec 19 17:16:18 like what are those constants in KeyEvent for if you can't use them? Dec 19 17:16:58 or it is more like if you return true from the event it will still do? Dec 19 17:17:20 or will it first return to the home screen and then propagate the event? Dec 19 17:17:20 Natanaiel: What do you want to do? Just a hello world app? Or do you want to know how to do something specific? You may as well declare that you want to cook. Cook what? A sandwich? Dirt? You need to know what you want to cook before anyone will be able to tell you how. Dec 19 17:17:25 anyone implemented APK expansion files? Dec 19 17:32:26 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Dec 19 17:32:26 <--- fragmenttransaction.add(R.layout.relativelayout,myfrag) ::::: Why? :( Dec 19 17:33:19 cause the "returned view" from OnCreateView in your fragment already has a parent ?? Dec 19 17:33:27 just a guess Dec 19 17:34:56 Hmm. But this is the first time I'm usng it anywhere.= Dec 19 17:35:21 when you inflate maybe your also attaching ? Dec 19 17:35:48 as in attaching inside the OnCreateView...so by the time you return it, it has a parent Dec 19 17:36:10 is myfrag already attached elsewhere? Dec 19 17:37:00 i suspect your using inflater.inflate(youtlayout.id, container, true); Dec 19 17:37:11 oncreateview only returns the inflater.inflate Dec 19 17:37:12 rather than inflater.inflate(yourlayout.id, container, false); Dec 19 17:37:18 activity's oncreate attaches it Dec 19 17:37:32 return inflater.inflate(R.layout.fragment_main_output, container); Dec 19 17:37:46 add false as 3rd param Dec 19 17:37:50 ok. Dec 19 17:37:59 does it default to true? Dec 19 17:38:14 dunno... but from your error I would now assume so Dec 19 17:38:16 :) Dec 19 17:38:22 lol ok Dec 19 17:38:23 trying now Dec 19 17:38:27 magic. thanks man :D Dec 19 17:38:32 Been looking at that for HOURS Dec 19 17:38:54 it works ? Dec 19 17:39:39 Yes Dec 19 17:39:52 So...interesting side effect that I was not aware of Dec 19 17:40:00 out of interest Dec 19 17:40:15 you dont have a galaxy nexus do ya? Dec 19 17:40:18 Yes Dec 19 17:40:29 runs cm10 Dec 19 17:40:34 arses Dec 19 17:40:46 Been looking at the ADK for accessories. Is the ADK for code that runs on the accessory? Or is it for Android phones to connect to USB devices? Dec 19 17:40:48 What's operating system is better for android developing? Windows or Linux? Dec 19 17:40:54 I tried to add two fragments to a relativelayout...and I wanted to make them appear one above the other...but the second OVERLAYED the first. With semi-transparency Dec 19 17:41:01 cause I think I found a OS bug on 4.2.1 google stock img Dec 19 17:41:06 m8: Which one are you familiar with? Dec 19 17:41:09 but only replicates on gnexus Dec 19 17:41:14 StingRay_, oh? Dec 19 17:41:14 Jonathan_Eyre, both Dec 19 17:41:29 Jonathan_Eyre, i'm a python developer Dec 19 17:41:34 * damccull isn't running 4.2.1 yet. CM10 release isn't there Dec 19 17:41:55 :(... oh well Dec 19 17:42:00 my search continues Dec 19 17:42:05 Jonathan_Eyre, i don't know if in windows there are better tools than linux, i prefer linux Dec 19 17:42:08 m8: I'd pick the one you like the most. Aside from windows usb drivers+cygwin there isn't much of a difference. Dec 19 17:42:21 Then go linux. Dec 19 17:42:47 Jonathan_Eyre, good! thanks! Dec 19 17:44:57 m8: The best IDEs (intellij, eclipse) and the best tools (git,vim or notepad++,g++) can be had anywhere. Dec 19 17:45:13 are fragments supposed to overlay themselves by default? Dec 19 17:45:14 good Dec 19 17:45:32 Jonathan_Eyre, but the native environment is better Dec 19 17:45:57 and imho linux is better for developing Dec 19 17:46:23 "native environment" made me snort my coffee. To go native you would need to compile your Android app on an Android phone. Dec 19 17:46:44 Jonathan_Eyre: what, you mean like AIDE? Dec 19 17:46:51 There is nothing native about win/OSX/*nux when you are talking about Android. Dec 19 17:47:05 Jonathan_Eyre, i talk about vim ecc Dec 19 17:47:11 evancharlton: Yes, if you hate yourself. Dec 19 17:47:12 Jonathan_Eyre: https://play.google.com/store/apps/details?id=com.aide.ui Dec 19 17:48:01 Jonathan_Eyre, anyway i will develop on linux :) Dec 19 17:49:47 evancharlton: I may be out of touch, but I think of mobile development as in, "With my awesome computer, how can I make something that will work when all the user has is a single thumb?" Then, I compile it and put it on a tablet/phone. I would never want to actually make something using just my thumb. Dec 19 17:50:33 * michaelnovakjr blinks twice, can't believe we are actually talking about this. Dec 19 17:51:20 * evancharlton can't either Dec 19 17:52:05 * Jonathan_Eyre notices that evancharlton started it. Dec 19 17:54:01 Back to the lab, Is the ADK for developing devices that connect to Android devices? Or is it so that Android devices can respond to devices. Dec 19 17:54:22 huh? Dec 19 17:54:33 Jonathan_Eyre either or Dec 19 17:54:36 ADK is based on Arduino. Dec 19 17:54:53 Okay, that makes so much sense. Dec 19 17:55:33 So, unless you are making a device that will be able to run this compiled code, it doesn't really fit. Dec 19 17:55:50 yes Dec 19 17:56:16 If there is already a device made, and you want to communicate with it, you have to bit fiddle your streams using USBManager, right? Dec 19 17:57:17 if I'm programatically adding 2 fragments to a relativelayout, and I want them to layout relative to each other (one above, one below), how do I do that? Setting relative layout properties on the parent container of each fragment in xml doesn't seem to work Dec 19 17:58:35 in http://developer.android.com/guide/topics/connectivity/usb/accessory.html it talks about working with an accessory. Does this accessory need to be an Arduino device? Or could it be like an IronKey or a USB camera? Dec 19 18:00:07 OR would I need to make some sort of low-level driver to work with custom hardware? Dec 19 18:01:30 ok back Dec 19 18:01:33 if I'm programatically adding 2 fragments to a relativelayout, and I want them to layout relative to each other (one above, one below), how do I do that? Setting relative layout properties on the parent container of each fragment in xml doesn't seem to work Dec 19 18:01:36 anyone answer this? Dec 19 18:01:49 johntramp: as I ski. it Dec 19 18:01:51 ski Dec 19 18:01:55 skim Dec 19 18:02:19 johntramp: it is a raw USB device, that you write a user space driver for Dec 19 18:04:24 and it requires custom USB devices Dec 19 18:04:34 http://developer.android.com/tools/adk/index.html Dec 19 18:09:16 Any recommendations on Android developer books? Dec 19 18:11:03 damccull, you're doing something wrong Dec 19 18:11:07 ataraxiaRS, d.android.com Dec 19 18:11:53 I'm making my way through the developer documentation site. Dec 19 18:12:05 that is really the best resource Dec 19 18:12:37 Okay, thank you. Dec 19 18:14:06 canadiancow, thanks :D Actually I think I just partially solved it. Now they're starting to react properly, but I can't make the height of one of them not overlap the other. Dec 19 18:14:42 damccull: perhaps a vertical linear layout is better suited Dec 19 18:14:48 Like, fragment2 is now on the bottom, but fragment1 is still displayed behind it instead of above it Dec 19 18:15:58 what would be the simplest/cleanest way of having a fragment receive broadcast events? only Context can receive them, afaik Dec 19 18:16:01 damccull: also, you can create containers in your view and then load the fragments into the containers instead of putting view modification code in java Dec 19 18:16:23 birbeck, yeah i gave up now i'm building framelayouts in the ui heh Dec 19 18:16:41 you went from a relative layout to a frame layout? Dec 19 18:17:46 birbeck linearlayout with 2 framelayouts Dec 19 18:17:46 xorgate: callback interface on the fragment and have the activity receive the broadcasts? Dec 19 18:18:11 birbeck yeh i have that now Dec 19 18:18:18 damccull: i dont know your intent, but that sounds like its not very efficient Dec 19 18:18:32 i think i'm gonna make something that will let fragments register themselves for broadcasts on the activity Dec 19 18:18:55 xorgate a fragment can register Dec 19 18:19:00 like a BroadcastReceiver? Dec 19 18:19:00 can you not register to receive broadcasts from the fragment? Dec 19 18:19:09 well I do it and it works Dec 19 18:19:17 hm i'll check Dec 19 18:19:32 only activities can declare them in the manifest, but im sure ive done registerReceiver(intentFilter) from fragments Dec 19 18:19:41 correct Dec 19 18:19:50 but you can register Dec 19 18:19:52 in code Dec 19 18:20:14 intent filter Dec 19 18:20:38 getApplicationContext().registerReceiver() Dec 19 18:21:18 registerReceiver takes a BroadcastReceiver and IntentFilter Dec 19 18:21:25 but fragment does not have registerReceiver Dec 19 18:21:26 defined in your fragment Dec 19 18:21:50 getActivity().getApplicationContext().registerReceiver(BroadcastReceiver, filter); Dec 19 18:21:58 you can get the context from the fragments activity Dec 19 18:22:14 neways it works Dec 19 18:26:44 hm i have it working but it's a bit hacky Dec 19 18:27:57 https://gist.github.com/e1e40db478d7e39a7f08 Dec 19 18:29:56 multiple fragments need to be aware of download status? Dec 19 18:30:50 well what i have now is several fragments downloading seperate things, i have an IntentService to download and broadcast on success. Then the fragments determine if they need to update depending on what the broadcast says Dec 19 18:32:20 does putting a value of "null" into a sharedprefs not do what i'd expect? :\ Dec 19 18:33:16 sup Dec 19 18:33:40 i would just have the fragment register itself instead of taking it as an argument. and if you go the argument route, either take fragment instead of sherlock fragment (dont bind to a sherlock impl), or better yet, make an interface like DownloadAwareFragment to pass as an argument Dec 19 18:33:48 canadiancow: what are you expecting? Dec 19 18:33:53 ^ Dec 19 18:33:56 canadiancow: are you looking for .remove() ? Dec 19 18:33:58 to store a null value :P Dec 19 18:33:58 no Dec 19 18:34:11 storing null has worked for me Dec 19 18:34:13 when i put a null value, the next get retruns the default i pass in, rather than null Dec 19 18:34:20 heh Dec 19 18:34:28 ummm, thats what it SHOULD do Dec 19 18:34:33 in the xml, it's: Dec 19 18:34:42 canadiancow: hmm Dec 19 18:34:46 storing null is working, its retrieving null, but since its null its being replaced with the default Dec 19 18:34:51 birbeck: not strictly according to the docs Dec 19 18:35:06 birbeck: the docs say defValue is returned if the preference doesn't exist Dec 19 18:35:14 oh, my bad Dec 19 18:35:19 but if you write ((String) null), that exists Dec 19 18:44:47 hi guys Dec 19 18:45:23 i have a question about publishing apps on google play? Dec 19 18:47:05 http://www.chromium.org/developers/how-tos/run-chromium-with-flags , specifically the "setting flags for chrome on android" Dec 19 18:47:11 about:version isn't showing anything useful, something like a Bad Request page, I'll have to look wait the tablet to power back on to get the specific message Dec 19 18:47:17 let's say that i allready have an app called htc news version 1 and i wanna upload a new version Dec 19 18:47:22 how do i have to do? Dec 19 18:47:26 but anyway, all the echo command does for me over here is create a file in /data/local/tmp/ called cotent-shell-command-line whose contents contain: chrome Dec 19 18:48:00 if someone can help me get a listing of the chrome flags, that would be nice Dec 19 18:49:13 so? Dec 19 18:49:17 can you help me? Dec 19 18:49:45 So upload a new version Dec 19 18:49:49 With a higher versionCode Dec 19 18:49:50 but how? Dec 19 18:49:52 ok Dec 19 18:49:55 thanks Dec 19 18:49:57 :) Dec 19 18:52:26 hm anyone ever tried making an intellij plugin? Dec 19 18:55:07 SimonVT, not sure if trolling, or really doesn't know Dec 19 19:01:00 can anyone suggest an a/b testing library like amazon's http://www.fiercemobilecontent.com/press-releases/amazon-launches-new-ab-testing-capability-app-developers Dec 19 19:01:31 maybe there is even something in play services i haven't seen Dec 19 19:01:53 and an other question Dec 19 19:02:12 if i wanna update the same version of the app but with [donate] how do i have to do? Dec 19 19:02:17 sorry, i'm new Dec 19 19:02:18 :( Dec 19 19:03:24 ok this is now just really bad, onConfig change I save states of all my views etc... an editText view returns a duplicated value appended to orig IF it has inputKeyboard minimized but still has focus Dec 19 19:03:40 I need some way to see if this is a bug bug :( Dec 19 19:49:07 has anyone played with custom info windows on the maps v2 api? I can get it to insert my view on the marker popup frame, but it's not scaling the frame to fit my view - I'm guessing I have to tell it somewhere some sort of sizing info that I'm not; but I'm not sure what to do Dec 19 20:09:19 so, I'm working on a custom View control Dec 19 20:09:27 I have scrolling working, but the scrollbars refuse to show Dec 19 20:09:52 I have them set to show, and I call super.onDraw() every call to onDraw() Dec 19 20:13:41 hey guys i have a custom class, made parcel able. i then make this class an array, how can i send the entire filled array to a new activity? Dec 19 20:14:34 anyone? Dec 19 20:15:36 just pass it as an argument Dec 19 20:15:43 or quit because you didn't get an immediate answer, whichever Dec 19 20:15:59 just pass it as an argument Dec 19 20:16:07 hey guys i have a custom class, made parcel able. i then make this class an array, how can i send the entire filled array to a new activity? Dec 19 20:17:52 hi how do i control google music player from my app Dec 19 20:21:39 Pr070cal: The short answer is that you can't control any app except your own. The long answer is MediaControl+MediaPlayer in the API. Dec 19 20:22:07 ok ... this is driving me nuts now...2 days on a editText field Dec 19 20:22:20 hey, coiuld somebody please tell me what it means when dalvikvm throws me an error that says "Rejecting re-init on previously-failed class {Classname_Here}"? Dec 19 20:22:30 i haven't been able to find anything Dec 19 20:22:47 MastaFlash: it sounds like your class' static initializer threw an exception Dec 19 20:22:55 why would it do that? Dec 19 20:23:03 You have resolve... It takes much less than 2 days to go nuts on a problem. Dec 19 20:23:09 either something in the static constructor, if you have one, or one of the static field initializers Dec 19 20:23:19 well, the class itself is static Dec 19 20:23:25 I just dont understand what it is I'm doing Dec 19 20:23:28 wrong Dec 19 20:23:39 simple EditText Dec 19 20:23:41 :( Dec 19 20:23:42 MastaFlash: that's mostly irrelevant Dec 19 20:24:16 a static class still can have static and non-static members Dec 19 20:25:05 MastaFlash: this is just a guess, of course. but take a look at any of the static fields initializers and see if anything might be throwing an exception Dec 19 20:25:07 yeah, none of the members are static Dec 19 20:25:09 JesusFreke : have you done custom View classes? Dec 19 20:25:39 StingRay_ : what's the problem? Dec 19 20:26:04 Pfhoenix: https://github.com/JesusFreke/Penroser/blob/master/src/org/jf/Penroser/PenroserStaticView.java Dec 19 20:26:22 MastaFlash: dunno what it might be then :) Dec 19 20:26:43 Pfhoenix on reading editText field onPause or any config change call method...IF the keyboard is minimized but the et still has focus, it returns double value Dec 19 20:26:47 MastaFlash: look further back in logcat, and see if you can find the original error Dec 19 20:27:19 eg. et with me typing "test"....minimize kb, rotate screen, on pause reads et.getText "testtest" Dec 19 20:27:41 are you saving and resetting the text on layout change? Dec 19 20:27:46 which is what you want to do Dec 19 20:27:56 well yes thats the purpose Dec 19 20:28:06 are you overwriting or adding to the text? Dec 19 20:28:14 because that's behavior only you can do Dec 19 20:28:30 JesusFreke: looks like a runtime exception is being thrown during the initializer to AsyncTask. Dec 19 20:28:30 well b4 i even do that Dec 19 20:28:31 far as I know, on layout change (or anything causing reloading of layout), EditTexts lose their text Dec 19 20:28:40 no no Dec 19 20:29:32 err Dec 19 20:29:45 I type "one" into et , minimise the keyboard...(at this point the et still has focus)...then rotate.... onPause returns that et as a double val "oneone" Dec 19 20:29:51 on layout change, edit texts *go away* and are replaced by new ones (or by something entirely unrelated), so of course thats' an issue. Dec 19 20:30:06 even if onPause i manually call focus on something else Dec 19 20:30:21 thats not my issue Dec 19 20:30:25 StingRay_: huh. have you done anything explicit w.r.t. preserving contents, or is this strictly a default behavior you're seeing? Dec 19 20:30:30 MastaFlash: is that a request for more help? or just an FYI? :) Dec 19 20:30:48 ctate default Dec 19 20:31:11 so every time you snap the keyboard in/out the text duplicates?! Dec 19 20:31:14 the et is generated dynamically ... and given unique vewId Dec 19 20:31:22 create no Dec 19 20:31:29 only if Dec 19 20:31:39 I add text, collapse kb, config change Dec 19 20:31:39 JesusFreke: a little of both. strangely enough, I tried running the task in a handler on the UI thread and it didn't give me any problems. Dec 19 20:31:50 StingRay_, pastebin code please Dec 19 20:31:58 yeah this is pretty freaky Dec 19 20:32:04 MastaFlash: pastebin the error? Dec 19 20:32:41 * ctate points to the imgur link in the channel topic. it's there for a reason. :) Dec 19 20:32:57 JesusFreke: http://codepad.org/sXIuqwHL Dec 19 20:33:12 anybody done a custom View control and had issues with scrollbars not drawing? Dec 19 20:33:38 I've set both scrollbars to be visible, I have the compute* methods overridden, and I pass super.onDraw() Dec 19 20:33:51 I've tried setting fading off, setting massively large fade delays Dec 19 20:34:10 MastaFlash: Are there any other details? a nested exception? The full stack trace might be useful (feel free to anonymize class names, if needed) Dec 19 20:34:15 I have scrolling working, so I should expect to see the scrollbars, and I even call awakenScrollBars() every time the control scrolls Dec 19 20:36:08 http://codepad.org/mFZApwhX Dec 19 20:36:15 there is nothing to it really Dec 19 20:37:02 JesusFreke: Doesn't look like there is a nested exception. and I haven't had any problems since I started guaranteeing it would run on the UI thread. Dec 19 20:37:26 JesusFreke: that was literally the only thing that popped up after that exception I pasted. Dec 19 20:37:30 I'm thinking that if you query and editText with kb minimised but active you get the kb buffer also ? Dec 19 20:37:32 "Doctor, it hurts when I run my code on the UI thread!" Dec 19 20:37:38 JesusFreke: before, i mean. Dec 19 20:37:51 MastaFlash: oh, yeah. I guess a static inializers wouldn't have a caller Dec 19 20:37:57 lov: lol, it's an asynctask, so it won't block Dec 19 20:37:57 since it's called implicitely by the system Dec 19 20:37:58 but first... is there a way to launch chrome in android without the flag --no-webgl ...about:version shows it is using this option... Dec 19 20:38:05 lov: they have mental institutions for that Dec 19 20:38:19 or do i have to compile chromium into android with this option? Dec 19 20:38:29 oGMo: for multithreading? :X Dec 19 20:38:31 MastaFlash: huh? it still blocks the UI thread, while it's running Dec 19 20:38:56 lov: for running stuff on the ui thread Dec 19 20:38:56 asynctask.execute blocks the calling thread? Dec 19 20:38:57 wat? Dec 19 20:39:00 heath: I would guess that this is a compile flag :X Dec 19 20:39:15 MastaFlash: it doesn't block the caller, per say Dec 19 20:39:23 but nothing else can run on the UI thread while it is running Dec 19 20:39:34 so it will be scheduled to run on the UI thread at some later point Dec 19 20:39:43 and while it runs, nothing else can run on the UI thread Dec 19 20:40:15 so while doInBackground is running, it blocks the calling thread? Dec 19 20:40:38 it blocks the thread it is running on Dec 19 20:40:45 which, you indicated was the UI thread Dec 19 20:40:53 .. is there a difference between scrollTo and scrollBy, other than the obvious? Dec 19 20:40:57 MastaFlash: fwiw can you pastebin the AsyncTask's static and class declarations? i mean, obviousyl it's doing something nefarious while being initialized Dec 19 20:41:00 you can't run multiple things on a single thread at the same time :) Dec 19 20:41:05 do both internally call awakenScrollBars()? Dec 19 20:42:11 ctate: the exception is thrown directly from AsyncTask's static constructor though, not from the subclass' Dec 19 20:42:30 passing a null object reference? Dec 19 20:42:33 nothing i do prevents getText() from returning result + result :( Dec 19 20:42:40 JesusFreke: sure Dec 19 20:43:02 but i can't imagine it has *nothing* to do with the way it's being subclassed, mm? Dec 19 20:43:22 ctate, JesusFreke: http://codepad.org/XqaG7zOM Dec 19 20:43:55 WriteBitmapToFileTask probably also needs to be declared public Dec 19 20:43:56 nothing too nefarious Dec 19 20:44:04 s/probably/might/ Dec 19 20:45:13 looks like that did it as well Dec 19 20:45:40 still crashed? hm. Dec 19 20:46:09 The Void... thing looks a little strange. Is that the correct way to handle that? Maybe Object... instead? Dec 19 20:46:09 no, i meant it looks like it fixed it Dec 19 20:46:19 It is, JesusFreke Dec 19 20:46:36 oho! Dec 19 20:46:49 the Void is just a placeholder. Dec 19 20:46:50 Yeah, I remember seeing/looking into that in the past, but I didn't remember offhand the correct way to do that :) Dec 19 20:47:05 yeah i wondered whether this was a particularly unhelpful failure of the DVM being unable to access the class Dec 19 20:47:28 oh believe me, i've run into this shit enough where i think the DVM just sucks. Dec 19 20:47:34 it really didn't log *anything* else about the failure? Dec 19 20:47:39 s/think/know/ Dec 19 20:47:44 not really Dec 19 20:47:45 Yeah, that's weird. I don't understand why it should be public Dec 19 20:47:48 just that one line to logcat Dec 19 20:47:52 (not just visible in the Eclipse ADT log viewer, but in command-line 'adb logcat' Dec 19 20:48:37 MastaFlash: well, classloaders are finicky in JVMs too; it's just that most people never wind up in the kinds of circumstances that one does in Android. Dec 19 20:48:46 im still going to post the task to the UI thread just to be safe, because the ammount of async stuff in this app is insane. Dec 19 20:48:52 omg... more to my problem, if I leave the collapsed kb for more than 1 second, maybe 2, it dont do it Dec 19 20:49:27 spent the last week trying to manage bitmaps efficiently, and am still working on this nightmare @_@ Dec 19 20:49:37 I want my C++ back ;~; Dec 19 20:50:55 c++ doesn't make MT any easier; on the contrary. ;) Dec 19 20:50:55 this has to be an android bug Dec 19 20:51:41 wasn't really talking about MT ion that case. at least in C++ i have direct access to memory. Dec 19 20:51:53 new / delete > GC Dec 19 20:52:04 yes and no Dec 19 20:52:39 i try to avoid threads like the plague anyway. I barely use them in my pet-project. Dec 19 20:52:51 just a simple task queue Dec 19 20:52:59 for deferred stuff. Dec 19 21:07:54 how do you guys normally handle a fling gesture, start another thread that handles the velocity decceleration? Dec 19 21:09:18 http://stackoverflow.com/questions/1910601/android-detecting-fling-gestures Dec 19 21:09:24 stack Dec 19 21:09:24 over Dec 19 21:09:25 flow Dec 19 21:09:26 . Dec 19 21:10:34 you might want to read the link before posting it as a solution Dec 19 21:10:47 it will have handling Dec 19 21:10:53 that and/or more critically read what's being asked Dec 19 21:10:57 when these guys are not answering, instead of waiting around, SO Dec 19 21:11:06 it doesn't matter; it will lead you elsewhere Dec 19 21:11:11 Good evening, I'm trying to get some basic proof of concept code together to test using a USB serial adapter via the hostmode port on my android Dec 19 21:11:36 I'm having a lot of difficulty with this unfortunately, and the docs don't seem terribly helpful Dec 19 21:11:59 does anyone have an end to end example of something like this that would help point me in the right direction? Dec 19 21:12:36 wait -- isn't that just scrypt? Dec 19 21:12:41 oops. sorry Dec 19 21:14:20 In trying to get some debug info to work with I've put the following code into a button onclick event, Dec 19 21:14:22 http://pastebin.com/enkN7ATh Dec 19 21:14:37 however it causes the app to stop when the accessoriesList.tostring() bit is included Dec 19 21:14:48 without that, the devices list alwasy returns {} Dec 19 21:15:12 using a terminal app, I can see that the device I plug in is showing up as /dev/ttyUSB# Dec 19 21:15:16 where # is some number Dec 19 21:19:49 "causes the app to stop" -- meaning the app crashes? Dec 19 21:20:05 sounds like accessoriesList is null Dec 19 21:20:12 so it's illegal to call methods on it Dec 19 21:21:40 that could be lemme throw a check in place real quick Dec 19 21:21:58 dravine: and indeed, if you read the docs, you'll see that UsbManager.getAccessoryList() Dec 19 21:22:04 * ctate | returns a list of USB accessories, or null if none are attached. Dec 19 21:22:23 yeah, I had read that Dec 19 21:22:36 I was thinking that perhaps if the devices list was empty, then the accessories list would not be Dec 19 21:22:49 as it stands I am getting no indication that android is detecting any USB devices Dec 19 21:24:34 ctate: yeah it's null, and the devices list is empty as well Dec 19 21:27:14 are there more steps that I am missing that are required to get USB info? Dec 19 21:27:31 hi all Dec 19 21:27:44 I'm trying to avoid using a device filter because I don't know ahead of time what vendor and device ID's I'll be dealing with Dec 19 21:28:38 android version is 4.0.3 and my minimum target is 12 Dec 19 21:28:52 Anyone know why a background NDK thread might execute faster if the UI is displaying a determinate progress dialog rather than an indeterminate progress dialog? Dec 19 21:28:54 I'm having problems with RadioButtons in JellyBean. App uses a custom implementation of RadioGroup that calls setButtonDrawable(null) and setGravity(Gravity.CENTER) on every radioButton Dec 19 21:28:59 USB accessories are not generic USB devices Dec 19 21:28:59 (I wish I was making this up). Dec 19 21:29:11 now on Jellybean the text is misaligned Dec 19 21:29:20 SpeedEvil: yes I know, I am iterating through both trying to just see _any_ device Dec 19 21:29:21 they are specific devices implementing a certain protocol Dec 19 21:29:25 oh ffs, it is a bug -- for anyone who cared Dec 19 21:29:37 tried on a task app from play store Dec 19 21:29:40 same thing happens Dec 19 21:30:36 jfpoole: hmm. indeterminate progress bars are a continuous animation; determinate ones only redraw to show actual change in state. Dec 19 21:30:46 so if drawing is slow, that'll have an effect. Dec 19 21:30:57 as I understand it, serial ports should not be picked up as accessories Dec 19 21:31:21 SpeedEvil: well currently, they are not picked up as anything whatsoever Dec 19 21:31:33 (background threads may only be allowed a small fraction of total cpu time when there is contention) Dec 19 21:32:09 ctate: I'm noticing this on quad-core devices when only a single thread is running, so CPU resources shouldn't be an issue. Dec 19 21:32:26 (sorry, single background thread) Dec 19 21:32:43 how do i report an android bug ? as in where ? Dec 19 21:33:04 dravine: accessories list lists accessories. aerial ports are not accessories, they should not be listed. Dec 19 21:33:05 you might not be getting hte other cores spun up Dec 19 21:33:20 (the kernel may be trying to hold down power instead of always spinning up cores all the time) Dec 19 21:33:34 ctate: According to /sys/devices/system/cpu/online all cores are online. Dec 19 21:33:42 SpeedEvil: I understand that, but should they not show up at least as DEVICES? Dec 19 21:33:49 jfpoole: that can be a lie Dec 19 21:33:52 HashMap deviceList = manager.getDeviceList(); Dec 19 21:33:54 show up where? Dec 19 21:33:56 that is empty Dec 19 21:33:57 ... Dec 19 21:34:00 "online" may mean "physically present" not "schedulable" Dec 19 21:34:02 ah Dec 19 21:34:11 and it varies by SoC Dec 19 21:34:17 do they show up as /dev/ttyn! Dec 19 21:34:21 ? Dec 19 21:34:22 getDeviceList and getAccessoryList both are empty Dec 19 21:34:26 ctate: It changes from 0-3 back to 0 when the process is idle. Dec 19 21:34:29 and yes, it shows up as /dev/ttyUSB# Dec 19 21:34:37 aha okay Dec 19 21:34:57 ctate: Plus there are other "files" in /sys/devices/system/cpu/ that make me think online means schedulable. Dec 19 21:35:05 jfpoole: how much difference in speed are we talking about? Dec 19 21:35:14 jfpoole: okay, good to know for the record. Dec 19 21:35:31 Depending on what the thread is doing? Up to 20% slower with the indeterminate dialog box. Dec 19 21:35:47 which phone / Android rev? Dec 19 21:35:55 (and which SoC, really) Dec 19 21:35:55 SpeedEvil: http://pastebin.com/T3Rn4mcw Dec 19 21:36:03 I can reproduce this on the Nexus 7 and the Galaxy Nexus. Dec 19 21:36:10 logging device list tostring results in Dec 19 21:36:10 Both running 4.2 Dec 19 21:36:11 "{}" Dec 19 21:36:17 wow Dec 19 21:36:20 obviously accessory list is null Dec 19 21:36:30 sorry if I'm being slow - toothache Dec 19 21:36:35 jfpoole: personally i'd like a copy of your code as a reference/benchmark/smoke test now :) Dec 19 21:36:38 no worries Dec 19 21:36:51 this is ... unexpected. Dec 19 21:37:14 jfpoole: you have CPU monitoring turned on? Dec 19 21:37:17 ctate: You're telling me this. :-) Dec 19 21:37:22 dravine: No. How do I do that? Dec 19 21:37:28 it's in the settings Dec 19 21:37:29 developer options Dec 19 21:37:33 will overlay on the top of the screen Dec 19 21:37:52 I was noticing that when I followed a code example for a status bar, it was poorly optimized Dec 19 21:37:55 basically it did Dec 19 21:38:07 while(current < max){ draw stuff} Dec 19 21:38:15 which will compare as fast as the processor is able Dec 19 21:38:54 this is what I did to resolve it in my stuff Dec 19 21:38:55 http://pastebin.com/5tZ9nL98 Dec 19 21:39:02 thread.sleep didn't seem to work for me Dec 19 21:39:09 but this method works fine Dec 19 21:39:20 hmm. i wonder whether the Tegra3 in the N7 is scaling down the clock when it spins up more cores Dec 19 21:39:43 ctate: That was one of my hunches, too. Dec 19 21:40:02 and the GN is a dual-core, right? Dec 19 21:40:26 ctate: According to /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state the CPU is always at 1200MHz. Dec 19 21:40:28 ctate: Yup. Dec 19 21:40:51 hm. Dec 19 21:41:01 can you systrace it? Dec 19 21:42:03 What's the surfaceflinger process? Dec 19 21:42:18 blitter Dec 19 21:42:27 manages fundamental composition to the framebuffer Dec 19 21:42:54 It's using a non-trivial amount of CPU when the indeterminate progress dialog is showing. Dec 19 21:43:00 It might just be the animation! Dec 19 21:43:05 that's unsurprising; it's animating at 60fps Dec 19 21:43:09 the html files systrace produces are self contained if you are able to upload them somewhere Dec 19 21:43:14 jfpoole, check my pastebin Dec 19 21:43:25 your issue sounds similar to the one I encountered Dec 19 21:44:33 i have an array of my custom class, this is parcleable. can anyone tell me how i can access this array from a new activity Dec 19 21:44:47 I honestly did not expect the animation to take up that much CPU time, and I hadn't noticed that the determinate progress bar wasn't animated at all. Dec 19 21:45:13 how often do you set the progress on it? Dec 19 21:45:17 what's that code look like? Dec 19 21:45:19 i'm still curious, especially on N7, why the quad core SoC isn't just letting you run flat out behidn the animation Dec 19 21:45:35 dravine: i doubt he's updating the progress at 60 fps :) Dec 19 21:45:37 dravine: Only when the progress changes. Maybe once every second? Dec 19 21:45:56 I don't update at all in the indeterminate case. Dec 19 21:45:58 why does radioButton.setButtonDrawable(null) not work on JellyBean? Dec 19 21:46:05 jfpoole, almost every example I saw of progress bars created a race Dec 19 21:46:32 spawned a thread, and that thread did while(current dravine: Oh, no, I don't do that at all! Dec 19 21:46:48 that while loop runs as fast as the proc will allow it unless you take steps to slow it Dec 19 21:47:46 see this as an example Dec 19 21:47:47 http://developer.android.com/reference/android/widget/ProgressBar.html Dec 19 21:47:56 anyway, short answer is that drawing the progress animation at 60fps is surprisingly cpu intensive. Dec 19 21:47:58 the end. Dec 19 21:50:11 ctate: BTW, thanks for the systrace pointer. Looks quite useful. Dec 19 21:50:30 indeed yes Dec 19 21:51:29 i have this public productInfo[] products; how can i pass products to a new activity Dec 19 21:52:13 make productInfo Parcelable Dec 19 21:52:19 done that Dec 19 21:52:33 but i can only pass products[1] Dec 19 21:52:38 not the whole array Dec 19 21:52:39 jfpoole: if you haven't yet read http://www.curious-creature.org/docs/android-performance-case-study-1.html do yourself a favor and do so Dec 19 21:52:45 pure gold, required reading Dec 19 21:53:02 NetStorm: Intent#putParcelableArrayListExtra(..) ? Dec 19 21:53:19 NetStorm: or putExtra(String,Parcelable[]) Dec 19 21:53:23 ctate, second that! Dec 19 21:53:26 (use the latter, actually) Dec 19 21:53:39 hell just for what it teaches you about the development tools made it a good read Dec 19 21:53:46 tried that but the other activity wants a parcleable and not my custom array Dec 19 21:53:58 ctate: Thanks! Dec 19 21:54:05 so i can't access its methods Dec 19 21:54:08 systrace is new as of 4.1? Huh! Dec 19 21:54:09 My main Activity loads values from a table in my database and displays the contents. However, when a new "Intent(new Activity" is started, some values of from the table in the database are modified. How can I make the values that are displayed on the main Activity refresh when the user presses "back" on their device? Basically, how can I start the main Activity from scratch and load all the values from the database when the users presses "b Dec 19 21:54:10 ack" to get to the main Activity? Dec 19 21:54:27 NetStorm: then productInfo doesn't implement Parcelable Dec 19 21:54:39 ah i c Dec 19 21:54:48 NetStorm: which is what I told you to do initially :) Dec 19 21:54:49 lemme try this putextra Dec 19 21:55:02 yea it does tho but ill try something Dec 19 21:55:22 well folks I have to head home, thanks for the help, I'm sure I'll be back later if not tonight then tomorrow Dec 19 21:55:26 till then have a good evening Dec 19 21:58:44 Anyone here on #flash? Dec 19 21:59:19 Gordon Dec 19 22:03:48 i get this Dec 19 22:03:49 cannot convert from Parcelable[] to productInfo[] Dec 19 22:04:04 but productInfo does implement parelable Dec 19 22:04:58 parelable? :) Dec 19 22:05:30 typo but no in code lol Dec 19 22:05:44 public class productInfo implements Parcelable{ Dec 19 22:06:08 NetStorm: pastebin your source code, please Dec 19 22:07:40 my custom class http://pastebin.com/wCCsWmmm Dec 19 22:10:25 http://pastebin.com/t8KXvJBn Dec 19 22:10:34 receiving activity Dec 19 22:10:35 NetStorm: and where you try and stick it into an Intent? (that class looks fine, aside from the broken name of the class) Dec 19 22:11:19 NetStorm: are you trying to get ItemInfo or productInfo? Dec 19 22:11:38 If I want to move back an Activity with Java, I use finishActivity(), right? If so, what parameter should I pass to it? Dec 19 22:11:52 finish() Dec 19 22:11:55 no parameters Dec 19 22:12:03 ahh Dec 19 22:12:04 okay Dec 19 22:12:05 thanks Dec 19 22:12:09 read the docs! ;) Dec 19 22:12:18 I'm trying to get products which is an array of productInfo and put thaT in to ItemInfo[] Dec 19 22:12:39 I somehow feel proud that I just reported my 1st AOSP bug :) Dec 19 22:13:09 even though it's taken me 2 days to figure out its android and not me thats insane Dec 19 22:13:30 sending activity http://pastebin.com/xs8QBbnz Dec 19 22:13:57 So, once I move back to the Activity before it (Activity X), I don't want Activity X to be as I left it...I want it to look as though it was JUST opened. Does that make sense? How can I do that? Dec 19 22:15:22 NetStorm: that doesn't make much sense Dec 19 22:15:36 NetStorm: why would you be able to assign productInfo[] to ItemInfo[] ? Dec 19 22:16:16 maybe I'm understanding it wrong, let me explain what it is I'm trying to do Dec 19 22:16:30 please :) Dec 19 22:17:11 i have a custom class in my first activity, in a for loop i add products to this class making it an array and filling the all with data Dec 19 22:17:27 i need to access this data from a separate activity Dec 19 22:17:39 ctate: "read the docs!" sounds like MS Windows' team prayer ;P Dec 19 22:17:57 no, that's "reinstall!" Dec 19 22:18:29 NetStorm: sure, but I don't understand why you think that passing an array of type A will be able to be assigned to an array of type B Dec 19 22:18:45 ctate: no no, it's "For Fuck's sake, 'reserved' means 'DO NOT FUCKING SET IT', and no, you shouldn't depend on administrator rights in your pretty kitten app!" ;) Dec 19 22:18:57 NetStorm: try productInfo[] passedInProductInfos = intent.getParcelableArrayExtra("whatever"); or whatever the code should be Dec 19 22:19:29 NetStorm: you will likely have to throw a cast in there, too. I don't think it returns the results with the right type Dec 19 22:19:34 hey guys, I'm experiencing this issues: http://code.google.com/p/android/issues/detail?id=20446 on android 4.0.3 -- none of the suggestions worked, and I'm at a complete loss of what to try, anyone have a suggestion on how to debug/fix? Dec 19 22:19:52 ill try Dec 19 22:22:24 my mac has slowed to a halt, need to reboot brb Dec 19 22:28:25 Can someone tell me what the name of the event is for when you go "back" to an activity? Dec 19 22:34:10 onResume Dec 19 22:41:57 p_l: blah blah blah HKEY_LOCAL_MACHINE blah blah Dec 19 22:44:54 Hello, got a question I have an activity and wish to "push" another activity on top of it, so when I remove this second activity the other one shows again, what is the proper way to do this? Dec 19 22:47:34 matsebc: startActivity(Intent) Dec 19 22:47:36 just startActivity from it and calling finish should just put you back to the caller Dec 19 22:47:48 ah I see thanks a bunch, sorry, new at this Dec 19 22:48:04 anyone on 4.2.1 device ? Dec 19 22:48:30 StingRay_: ask me after customs release mine Dec 19 22:48:46 customs ? Dec 19 22:48:52 why they got it ? Dec 19 22:49:09 StingRay_: because importing Dec 19 22:49:22 Is there something easy I change in the AndroidManifest file which will allow me to have Holo Theme throughout my application? Dec 19 22:50:04 and thanks to wonders of really shitty supply chain and utter lack of will to ship it here from Google Play, I had to pay nearly twice :/ Dec 19 23:05:00 mrsudoer: have you read http://android-developers.blogspot.com/2012/01/holo-everywhere.html ? Dec 19 23:05:07 just did! Dec 19 23:05:08 thank you Dec 19 23:15:35 ctate, mrsudoer, that's only for 14+ though Dec 19 23:16:37 or rather, the concept of having holo available everywhere Dec 19 23:16:43 but you definitely cant use holo on <11 Dec 19 23:17:55 well yes Dec 19 23:18:25 since <11 is 50% of devices; holo isn't everywhere :D Dec 19 23:20:45 had someone problem with galaxy tab on ubuntu? Dec 19 23:20:53 adb couldn't see it properly Dec 19 23:21:49 of course, I have rules properly set and user which run adb is in 'audio' group Dec 19 23:22:02 so with permissions is ok Dec 19 23:22:15 and there is no ???????? no permission after adb devices Dec 19 23:22:23 but ??????????? device Dec 19 23:22:33 so it's online, permissions are ok Dec 19 23:22:34 wtf? Dec 19 23:22:47 a few hours on google didn't help Dec 19 23:23:23 man that romain guy article was awesome Dec 19 23:25:27 which one? they're all awesome :) Dec 19 23:26:06 ahaah Dec 19 23:27:37 Is there a way to grab a view's width when using layout_weight? Currently getWidth() returns 0 Dec 19 23:27:52 once it's measured, yes Dec 19 23:27:55 Winslow: gotta wait until it's renderererered Dec 19 23:28:08 measured, not rendered Dec 19 23:29:09 measured? Dec 19 23:29:36 ahhh Dec 19 23:29:45 you can't get the width until it's *measured*, which comes before the first rendering Dec 19 23:29:47 nvm so once it is drawn I can grab the width Dec 19 23:30:01 gotcha... d'doh moment Dec 19 23:40:18 ctate are you sure? Dec 19 23:40:24 there's getMeasuredWidth() and getWidth(), right? Dec 19 23:41:36 canadiancow: no actually i'm on thin ice here Dec 19 23:42:12 thinking of using google lvl in a paid android ap Dec 19 23:42:16 is that a bad idea? Dec 19 23:43:15 canadiancow: it still has to be drawn first though right? Dec 19 23:45:27 Winslow, romainguy once told me my best bet was to do view.post(new Runnable() { @Override publice void run() { view.getWidth(); } }); Dec 19 23:45:34 to ensure i had a real value Dec 19 23:45:41 but that was like...early 2010 Dec 19 23:46:14 canadiancow: getMeasuredWidth is provided by the view itself. It's how big it "wants to be". getWidth is the actual width, once it's fully laid out Dec 19 23:46:27 yes i know Dec 19 23:46:39 but getMeasuredWidth() should return non-0 after measuring Dec 19 23:46:43 not getWidth() Dec 19 23:46:57 right Dec 19 23:47:12 ctate, spreading ALL the lies :( Dec 19 23:48:03 iirc, there's the measure pass, then the layout pass, then the actual drawing. getMeasuredWidth is available after measuring. getWidth is available after layout. I *think*. :) Dec 19 23:48:14 any thoughts on LVL? Dec 19 23:48:24 I was somewhat familiar with how that worked at some point in the past. that point not being now :) Dec 19 23:51:05 its awesome that ps3 controllers are supported by android. Dec 19 23:51:13 just had to spam that out Dec 19 23:59:12 rynkan: not "out of the box" though, right? I thought you had to go through some hoops to pair them or something. Dec 20 00:00:04 yeah, you got to know the bluetooth-addr Dec 20 00:00:21 this is done via otg /or computer Dec 20 00:01:07 shouldn't it be able to grab the width once onResume() runs? Dec 20 00:04:48 that's the nice thing about Android, nobody is smacking you on the head if you get creative with it Dec 20 00:05:17 was thinking of getting an Ouya to consolidate my old consoles into one big emulator (and real game service) station Dec 20 00:05:40 belgianguy: eh Dec 20 00:05:48 belgianguy: got one on the way whenever they ship just for that purpose Dec 20 00:06:05 also for some dev Dec 20 00:06:22 rynkan: I even researched SNES to USB cables, I hope those drivers aren't too hard :) Dec 20 00:06:38 (so I could play with my real old school controllers) Dec 20 00:07:01 I recommend these: hrrm need link, brb Dec 20 00:07:25 http://www.lukiegames.com/SNES-Super-Nintendo-Wireless-Controller-New Dec 20 00:07:56 using them with my snes works great Dec 20 00:08:25 rynkan: I didn't know that existed :) they do seem to have a different shape though Dec 20 00:08:46 the ones I have are rounder, and one has some odd curves (but is official Ninteno gear) Dec 20 00:09:31 belgianguy: ah, the "dob-bone"-shaped controllers Dec 20 00:09:35 dog* Dec 20 00:10:32 Winslow, only if the layout has completed by then Dec 20 00:10:43 for snes I'm also using "Superufo Pro 8 Superdrive" shiw is a SD-card anabled cartridge that loads the roms from SD to flash/eeprom (whatever isused) and plays 100% speend on the snes :) Dec 20 00:11:08 canadiancow: whats the problem? Dec 20 00:11:44 * rynkan scroll scroll Dec 20 00:15:40 <_3ntr0py> hello all Dec 20 00:16:26 <_3ntr0py> I am new to android dev and I am having an issue with creating a menu. I can create a menu, but when it appears, the list is the same as the class name. Dec 20 00:16:41 <_3ntr0py> is it possible to have the menu text to have different text Dec 20 00:17:02 <_3ntr0py> I did paste bin the source code, if anybody would like to see what I am doing doing Dec 20 00:17:29 <_3ntr0py> thank you in advance! it might be very newbie question, but I am stuck here Dec 20 00:17:36 just paste the pastebin right away, it can only help your case Dec 20 00:17:42 <_3ntr0py> http://pastebin.com/Px2DDn5x Dec 20 00:17:43 and you aren't billed per character :p Dec 20 00:17:50 <_3ntr0py> lol Dec 20 00:18:03 <_3ntr0py> thank you for yesterdays help Dec 20 00:18:21 yesterday no longer exists Dec 20 00:18:23 <_3ntr0py> i made simple mistake Dec 20 00:18:35 _3ntr0py: Menu extending ListActivity Dec 20 00:18:39 <_3ntr0py> ok, i take my words lol Dec 20 00:19:11 _3ntr0py: let's start from the beginning Dec 20 00:19:11 <_3ntr0py> should I use extending ? Dec 20 00:19:15 <_3ntr0py> OK Dec 20 00:19:17 what are you trying to do? Dec 20 00:20:09 <_3ntr0py> I am trying to create a menu, where one could select what they want to start . i.e. kg-lb conversion or mile - km converstion Dec 20 00:20:22 <_3ntr0py> once selected they are presented with that activity Dec 20 00:20:30 ah, so just a list of things you can do? Dec 20 00:20:44 not a real Android "menu" that lives in a seperate button? Dec 20 00:21:05 <_3ntr0py> yeah, but when the menu appears, the menu string as the same as the class name, and they are not very good Dec 20 00:21:20 <_3ntr0py> no Dec 20 00:21:41 <_3ntr0py> could I use android menu ? I did not know that exists Dec 20 00:21:42 well, you're using a ListActivity, you'll want things to be in there, usually these are supplied by an Adapter Dec 20 00:21:46 <_3ntr0py> I was following tutorials Dec 20 00:21:56 <_3ntr0py> yeah Dec 20 00:22:09 well now there's the ActionBar, too, and before that there was a menu Dec 20 00:22:21 <_3ntr0py> OK Dec 20 00:23:11 <_3ntr0py> so what do you recommend ? actionBar Dec 20 00:23:31 _ Dec 20 00:23:47 _3ntr0py: depends on your needs, I wouldn't take too big leaps up front Dec 20 00:23:57 but get to know the basics really well Dec 20 00:23:57 <_3ntr0py> OK Dec 20 00:24:05 <_3ntr0py> you are right Dec 20 00:24:29 _3ntr0py: have you made regular a Activity yet? Dec 20 00:24:30 <_3ntr0py> how about for my current problem ? how should I achieve my result ? Dec 20 00:24:36 <_3ntr0py> yes Dec 20 00:24:55 <_3ntr0py> I have splash, after three activities Dec 20 00:25:22 <_3ntr0py> and they are linked via menu (using listadaptor) as you saw Dec 20 00:29:32 <_3ntr0py> OK, Catch you all later Dec 20 00:29:34 <_3ntr0py> bye Dec 20 00:31:26 he left? Dec 20 00:31:42 I was just starting the emulator Dec 20 00:33:20 Need to learn gamedevelopment bad... Dec 20 00:34:05 no, learn it well Dec 20 00:34:19 bad! Dec 20 00:34:23 heh Dec 20 00:34:54 rynkan: game as in framework Dec 20 00:34:59 or game as in OpenGL? Dec 20 00:36:29 framework Dec 20 00:36:41 2D or 3D? Dec 20 00:36:50 2d Dec 20 00:36:56 libgdx? Dec 20 00:37:08 whats that? Dec 20 00:37:30 what ever you want it to be :p Dec 20 00:37:30 ahh, nice. Dec 20 00:37:37 yes, thats what i need Dec 20 00:37:42 what http/rest library is most often used? Dec 20 00:37:50 HttpURLConnection + gson Dec 20 00:37:52 done Dec 20 00:37:57 spring android resttemplate Dec 20 00:38:02 if you want a lib Dec 20 00:38:20 pfn: what goods does gson bring to the table? Dec 20 00:38:29 (I know the regular JSON parser) Dec 20 00:38:40 belgianguy, seamless object binding Dec 20 00:38:46 and serialization Dec 20 00:38:52 so represent your json data as java objects Dec 20 00:39:04 json -> pojos Dec 20 00:39:15 and the marshalling is seamless Dec 20 00:39:22 pfn: if I want to upload images that combo suffices? Dec 20 00:39:34 locks, sure Dec 20 00:39:40 I tried googlinating, but I saw so much code I got scared :P Dec 20 00:39:45 cheers Dec 20 00:39:48 should learn to code first, probably Dec 20 00:40:17 I know how to code, but I'm not used to Java anymore Dec 20 00:40:25 "anymore" Dec 20 00:40:27 you mean ever Dec 20 00:40:53 belgianguy: if i answered opengl, how would our conversation gone on then? ^^ Dec 20 00:43:20 I like the android spring way: ResponseEntity response = restTemplate.exchange(url, HttpMethod.POST, requestEntity, String.class); Dec 20 00:43:53 Thats a multipart-form-post with an image and some related params Dec 20 00:45:29 does it need the other bits of spring? Dec 20 00:45:46 ? Dec 20 00:45:51 rynkan: do you love the Matrix? Dec 20 00:46:07 belgianguy: living it Dec 20 00:46:28 then you'll love OpenGL, matrices for all the things Dec 20 00:46:33 rynkan: nvm, with the name "spring for android" I assumed there were other bits of it Dec 20 00:46:42 bookmarked Dec 20 00:47:28 OpenGL ES 1 has a fixed pipeline, where OpenGL ES 2.0 allows you to write your own vertex and fragment shaders Dec 20 00:47:57 it's quite math heavy Dec 20 00:48:04 (and I'm no math whizz) Dec 20 00:48:36 but once I see how something works, I can "backtrace" how these things work together Dec 20 00:48:41 hmm does this channel have its own pastebin-clone Dec 20 00:48:58 pastie? Dec 20 00:49:05 there's an ubuntu paste thing as well Dec 20 00:49:10 or gist Dec 20 00:49:20 rynkan: just use whatever you want Dec 20 00:51:22 locks: http://pastebin.com/ba0M8PQe Dec 20 00:52:48 locks: also remember to "extends AbstractAsyncActivity" or you make android sad Dec 20 00:54:08 belgianguy: Want to learn the the basics needed to create an red alert 2-clone really Dec 20 00:54:33 rynkan: yeah, RTS does have some angles where touch could really shine Dec 20 00:54:44 but it'd need some reworkings as well Dec 20 00:55:10 esp wrt HUD and things invisible to the user due to their hands covering it Dec 20 00:55:23 Tired of all tower-defense-games :) Dec 20 00:55:31 rynkan: yeah, same Dec 20 00:55:35 I never was a fan of tower defense. Dec 20 00:55:46 I'm a RTS fan since Dune 2 :p Dec 20 00:55:47 this may be a dumb question but what would be the best way to create a listview in which one can add a piece of the list then launch a certain activity depending on that which piece they clicked Dec 20 00:55:49 They just weren't enjoyable to me, for some reason Dec 20 00:56:12 tower defense was literally too static Dec 20 00:56:21 too little strategic freedom Dec 20 00:56:28 and repetetive Dec 20 00:56:48 I am excited about all the new space sim games on kickstarter (non-android related) Dec 20 00:57:20 JesusFreke: like Kerbal and Notch's project? Dec 20 00:57:39 Sheek: listactivity with items "clickable"? Dec 20 00:57:39 belgianguy: was thinking mostly of the new elite, and star citizen Dec 20 00:57:47 although I've backed 2-3 others recently as well Dec 20 00:58:09 hmm, is that more like Sins Of A Solar Empire? Dec 20 00:58:11 belgianguy: shat notch project Dec 20 00:58:12 yea dont really know how to word it Dec 20 00:58:16 im feeling kinda out of it Dec 20 00:58:37 belgianguy: sandbox space sim, more or less Dec 20 00:58:37 dynamically enable them to launch a certain activity might make more sense Dec 20 00:58:37 Sheek: something like this? http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/ Dec 20 00:59:17 JesusFreke: let me Google those for a moment :) Dec 20 00:59:37 belgianguy: there haven't been many (any?) good ones recently Dec 20 01:00:07 rynkan: wrt Notch -> http://0x10c.com/ Dec 20 01:00:08 but things like the old wing commander, the super-old elite, etc. Dec 20 01:00:16 yea just like that thanks rynkan Dec 20 01:00:19 freelancer Dec 20 01:00:20 etc. Dec 20 01:00:39 basically, you have a space ship and can do whatever you want in the universe. Dec 20 01:01:08 JesusFreke: yeah, that'd be cool, I don't want to be forced to always fight Dec 20 01:01:16 I'm especially looking forward to star citizen though Dec 20 01:01:18 or always have to collect X and buy Y Dec 20 01:01:21 Sheek: to add actions ot each item you just trow on a "list.setOnItemClickListener(new OnItemClickListener(){ ..." Dec 20 01:01:29 yo* Dec 20 01:01:31 t* Dec 20 01:01:41 gah, need sleep Dec 20 01:01:42 still ~2 years out though. Dec 20 01:02:30 ok ill figure something out cause the user needs to create each listitem and then depending on what they create it will generate a form of a page Dec 20 01:02:32 hey guys, I'm experiencing this issue: http://code.google.com/p/android/issues/detail?id=20446 on android 4.0.3 -- none of the suggestions worked, and I'm at a complete loss of what to try, anyone have a suggestion on how to debug/fix? Dec 20 01:03:06 Sheek: you get the clicked item with "ListItem item = ((ListItem) routes.get(position));" in the setOnItemClickListener Dec 20 01:03:35 routes is well your list or items :) Dec 20 01:04:00 oh ok that makes sense thanks im kinda new to this and still trying to get it all figured out Dec 20 01:04:08 belgianguy: ah 0x10c, waiting for that Dec 20 01:05:01 Sheek: np, write back if you get into a corner agian, go trough the link i gave you, should give you some milage on your way Dec 20 01:05:16 ok cool thanks Dec 20 01:07:54 belgianguy: you got any "learn opengl bookmarks to share?" Dec 20 01:10:30 rynkan: I think http://www.glprogramming.com/red/ is considered the "standard" Dec 20 01:10:49 aka the "red book" Dec 20 01:11:18 although keep in mind the phone uses the slightly restricted opengl es, not the full opengl Dec 20 01:11:47 JesusFreke: cool, thanks Dec 20 01:11:51 but the concepts etc. from the red book are still applicable. Dec 20 01:15:53 rynkan: learnopengles.com if you'd like a taste of 2.0 Dec 20 01:16:08 JesusFreke: Star Citizen -> O_O Dec 20 01:16:15 :) Dec 20 01:16:35 well they said they have Linux and Mac fans on their team Dec 20 01:16:37 really looking forward to that one :) Dec 20 01:16:46 so there's a chance :p Dec 20 01:16:51 belgianguy: nice Dec 20 01:17:00 belgianguy: for linux/mac? Dec 20 01:17:10 JesusFreke: Linux :) Dec 20 01:17:11 iirc, that was one of their stretch goals from the funding drive Dec 20 01:17:13 (that was met) Dec 20 01:17:31 rynkan: ty sir Dec 20 01:17:57 hmm. maybe not. I thought it was Dec 20 01:18:06 (shameless post) http://stackoverflow.com/questions/13774117/access-google-talk-chat-history Dec 20 01:18:18 answer needed :D, if not upvotes appricated lol Dec 20 01:18:31 JesusFreke: they mention they'll make Windows first, but that they have Linux/Mac fans on the dev team Dec 20 01:18:36 locks: np Dec 20 01:25:11 "Iphone Neo One" - android phone from brasil where "iphone" is not a registered trademark of apple ^^ Dec 20 01:25:39 rynkan: maximumtrolling.jpg Dec 20 01:28:47 I'm rather gleefully watching Instagram backpedal like crazy Dec 20 01:29:29 they're a part of facebook, what else did people expect to happen? Dec 20 01:30:26 they're not backpedaling Dec 20 01:31:22 ofcourse not, they're covering it up in more clouds Dec 20 01:31:30 but the end result will be the same Dec 20 01:31:49 smoke and mirrors Dec 20 01:32:06 but they didn't expect this backlash Dec 20 01:33:04 they did Dec 20 01:33:09 read the original document Dec 20 01:33:40 at no point could it have legitimately been read as giving them power to reuse your images Dec 20 01:33:46 or sell them Dec 20 01:34:56 "sell/use without compensation" Dec 20 01:35:36 if NatGeo thinks they're crossing the line, I do think there was a miscommunication of some sort Dec 20 01:36:24 instagram lol Dec 20 01:36:35 never cared then, dont care now :) Dec 20 01:36:56 but i do love watching facebook fail Dec 20 01:43:31 http://what-if.xkcd.com/23/ got to love the last q/a Dec 20 01:44:26 I don't think facebook is failing. One building burning in a city the size of NY is not 'in trouble', it's called, 'normal'. And Instagram isn't even a burning building. It's more like a nice building with a moldy room where someone farted. Dec 20 01:48:33 belgianguy: the 'use' is sharply limited Dec 20 01:48:56 belgianguy: they can put pictures and logos next to where it already appears Dec 20 01:49:57 SpeedEvil: I'm no instagram user, but even limited use goes over my tolerance Dec 20 01:50:42 I don't care why and how, if I made them, they aren't getting them, not even to place a "Person X liked this too" Dec 20 01:50:42 Yay, finals over. Five weeks to code, code, code. Dec 20 01:50:53 next to them Dec 20 01:51:54 I would like to see IP lawyers discuss my "limited use" Dec 20 01:52:05 of other people's work Dec 20 01:53:31 would you like to see IP lawyers discuss your "limited use" of other peoples work. Dec 20 01:54:33 SpeedEvil: hypothetical, as in "they'll allow free usage where I make money off of it when hell freezes over" Dec 20 01:54:48 belgianguy SpeedEvil: As long as you put up a privacy notice in advance, clearly stating that you will indiscriminately copy anything you can find that ends in a '.zip', .rar.' or '.torrent' file type. You may want to hang up copies of the notice at your local voting center or public library. Dec 20 02:02:20 * SpeedEvil copies belgianguy. Dec 20 02:02:51 /quit Dec 20 02:16:47 3 am Dec 20 02:16:57 darn it, I was going to get some sleep tonight Dec 20 02:18:05 is there an easy way to force -webkit-transform: translateZ(0); on an entire webview? Dec 20 02:18:48 turning on hardware acceleration doesn't seem to work **** ENDING LOGGING AT Thu Dec 20 02:59:59 2012