**** BEGIN LOGGING AT Wed Nov 07 03:00:02 2012 Nov 07 03:23:49 does this channel have a log(ging bot)? Nov 07 03:24:06 nope Nov 07 03:24:58 oh well Nov 07 03:25:12 argh must get new laptop, can't deal with this hunk of a rig anymore Nov 07 03:25:21 any recommendations? Nov 07 03:25:29 sorry for the off topic, ignore me Nov 07 03:28:17 regedit: since it's quiet... I love lenovo Nov 07 03:29:02 regedit: never treated me wrong. T-series is the best usually. Nov 07 03:29:13 get an ARM Chromebook Nov 07 03:29:24 my criteria is; lightweight (ultrabook?), powerful (>= i5 ?), affordable (<= $800 / $900 or so) Nov 07 03:30:07 regedit: check out the lenovo uhhh 510 or 520 ultra Nov 07 03:30:13 regedit: Might be my next one Nov 07 03:30:17 mmm ok leme see Nov 07 03:31:30 i lost touch with CPUs nowadays. used to be all about the Ghz, like the last CPU i bought intel q6600 (quad 2.4 ghz) Nov 07 03:31:32 but now i'm seeng these i3/i5/i7 quads qith just 1.6 or 1.8 ghz wtf Nov 07 03:31:39 base price is in the 600-700 range, slightly heavy but classified as 'ultrabook', ivy bridge Nov 07 03:31:48 *with Nov 07 03:31:50 i figure "it's all fast" at this point Nov 07 03:32:34 so we're "there" already huh Nov 07 03:32:52 at that point in moore's law or wtvr Nov 07 03:33:06 isnt the 4 digit qualifier generally regarded as a performance thing, so the e5-2690 > e5-2670 ? Nov 07 03:33:16 either better cache, whatever Nov 07 03:33:28 makes it a little easier to compare cpus Nov 07 03:33:56 never fear - they always must make it hard and confusing, so that everything is marketable Nov 07 03:34:33 yeah, i look forward to buying a new pc like buying a new car Nov 07 03:34:43 apple makes it so easy. Nov 07 03:34:51 * g00s <3 less choice Nov 07 03:35:02 g00s: I haven't been able to track down BTLE APIs btw Nov 07 03:35:09 g00s: but i was out of town yesterday Nov 07 03:35:16 haven't actually bought 'a PC' for many years - just rolling upgrades Nov 07 03:35:41 dragorn: ok, cool thanks … yeah, i guess we'll find out when the 4.2 sources are out Nov 07 03:35:51 thought that would have happened on the 5th bday of android Nov 07 03:35:59 as a cool thing to do Nov 07 03:36:34 it's a bit of a weird birthday, because it's the date of the announcement - G1/1.0 release is more significant Nov 07 03:37:41 in the future, if anyone remembers at all, nobody will remember when WP8 or BB10 were announced, just when they released Nov 07 03:38:49 i'll always remember when wp8 was announced. it was the day google wanted to rain on microsoft's parade, but irony ruled the day and sandy rained on google's parade so they cancelled their announcement Nov 07 03:38:54 should 5400 RPM hdd bother me much? Nov 07 03:39:24 not if your giving it as a gift to someone you don't like Nov 07 03:39:32 rofl Nov 07 03:39:39 i have a 5400 and it is fine Nov 07 03:39:54 runs much lower temp than the 7200 Nov 07 03:40:07 aftermarket SSD win? Nov 07 03:40:29 is there any smart status on ssd's that tell how much wear they have ? Nov 07 03:40:45 just replace it every 2 years and you'll be fine Nov 07 03:40:46 not sure i would every get a used ssd Nov 07 03:40:48 no idea Nov 07 03:40:51 :D Nov 07 03:41:04 new ones are bound to be faster, I wouldn't get used either Nov 07 03:41:21 I don't mean to mock traditional drives, just taht if your building a new machine, I wouldn't consider anything but ssd at this pt Nov 07 03:41:29 regedit: watch out for 1.8 vs 2.5 inch drive bays Nov 07 03:41:37 regedit: 2.5 is dirt cheap. 1.8 is not. Nov 07 03:41:37 g00s: Ever heard seth godin's talk on that? It's quite good Nov 07 03:41:47 g00s: (About more choices not necessarily better) Nov 07 03:41:49 i see Nov 07 03:41:49 gutano: for a desktop, SSD for software, HDD for media is still fine Nov 07 03:41:56 +1 Nov 07 03:42:34 maslen: not from seth … from Schwartz http://www.amazon.com/The-Paradox-of-Choice-ebook/dp/B000TDGGVU Nov 07 03:44:13 g00s: You're right. I was confusing the names. Nov 07 03:44:29 Referring to https://www.youtube.com/watch?v=Iy8R5TZNV1A Nov 07 03:46:58 Hello, I have created a custom DialogPreference for my settings screen that contains two textboxes. I am wanting to set attributes for the textboxes when I setup the DialogPreference in the settings.xml file. The problem is that the constructor has the AttributeSet variable, and I don't have access to the textboxes until the onCreateDialogView function. I currently have a variable for each attribute in the DialogPreference, bu Nov 07 03:46:58 t that's double the memory than required. Nov 07 03:49:52 btw, intel came out with their 3rd gen ssd controller http://www.anandtech.com/show/6432/the-intel-ssd-dc-s3700-intels-3rd-generation-controller-analyzed Nov 07 03:50:10 how does this look http://www.microsoftstore.com/store/msstore/en_US/pd/VIZIO-14Inch-Thin-Light-CT14A1/productID.252852900?ClickID=avvsla5layr5vn5zk0tz0oyntrkso0p5sllr dragorn Nov 07 03:51:19 regedit: if you can't expand the memory, 4 gig is a little low for eclipse + any sort of VM Nov 07 03:52:03 dragorn: good point, but what if i could? chatting with rep now.. Nov 07 03:52:15 or to put it more generally, I wouldn't touch a PC which I didn't know I could easily upgrade to 16GB Nov 07 03:52:29 regedit: I'm happy with 8 in a laptop Nov 07 03:54:23 is vizio good generally? never heard of 'em Nov 07 03:54:47 is it the 80s/90s again where everyone and their uncle is manufacturing PCs? Nov 07 03:54:48 heard of them, never used them. Also if you care about linux, do some searching to see if anyone has gotten it running cleanly Nov 07 03:55:15 i would just avoid hp Nov 07 03:55:33 asus, lenovo seem like good bets Nov 07 03:56:42 dragorn: don't need to search, the answer is no Nov 07 03:56:42 :P Nov 07 03:56:59 tried linux mint for a while recently, let me down... Nov 07 03:59:56 so on the one hand, it doesn't seem like this laptop can do > 4gb ram.... on the other hand, i dunno how many other laptops with this specs/price ratio can Nov 07 04:00:15 regedit: that's fine, didn't know your requirements Nov 07 04:00:18 regedit: http://www.amazon.com/b/ref=sv_pc_2?ie=UTF8&node=2956501011 Nov 07 04:01:16 what the hell is with movies costing $9.99 to rent on iTunes these days Nov 07 04:01:24 i am indeed worried about eclipse + emulator though, so unsure... otherwise i might have added to cart by now Nov 07 04:01:26 there is /no fucking way/ i'm paying that :P Nov 07 04:01:55 g00s: jobs still after you from the grave :D Nov 07 04:02:03 hehe Nov 07 04:02:10 Hm, quick question. Say I have a dialogpreference with two textboxes inside of it. Is there a simple way to pass custom attributes from the dialogpreference to the textboxes? (I don't think there is, but maybe there is a simple way) Nov 07 04:02:14 5169 dragorn 20 0 5258m 923m 32m S 0.3 11.9 22:41.54 java Nov 07 04:02:23 my eclipse is using 5.2 gig Nov 07 04:02:31 dragorn: WHAT!!!! Nov 07 04:02:39 my eclipse usually stays around 500 MB Nov 07 04:02:48 maybe 600 Nov 07 04:02:55 g00s, ive never seen eclipse under a gig :P Nov 07 04:03:01 after having a project open for an hour Nov 07 04:03:09 my Chrome is usually using 5GB-6GB at least, but then I rarely have less than 150 tabs open Nov 07 04:03:23 canadiancow: i install the platform runtime, JDT, and ADT. it starts at about 350mb and climbs on usage to 500-600 for me Nov 07 04:03:43 Leeds, lol Nov 07 04:04:01 Leeds: heh, yeah thats why i had to stop using chrome :| ff seems to be a little better with lots of tabs Nov 07 04:04:23 g00s: That's their architecturing at work Nov 07 04:04:57 Leeds: how the f*** do you even navigate about tabs Nov 07 04:05:07 regedit: lots of windows Nov 07 04:05:13 ah Nov 07 04:05:31 doesnt FF have tab groups or something Nov 07 04:06:02 my eclipse currently at 500 MB (peak working set, 403mb private working set)) Nov 07 04:06:16 javaw.exe Nov 07 04:06:41 crashplan / mozy also eating up a bunch Nov 07 04:07:23 I do like crashplan, but it eats a lot of memory... I do have it backing up about 1.3TB of data though, so that's a lot to track :) Nov 07 04:07:45 yeah, crashplan … Nov 07 04:07:51 me too 1.3 tb lol Nov 07 04:08:05 we have same pron tastes perhaps? Nov 07 04:08:21 doubt it... Nov 07 04:10:20 rofl Nov 07 04:13:19 How would one go about having 2 buttons be exactly 50% width next to eachother in a RelativeLayout? I tried the weight trick but that doesn't seem to be a valid thing. Nov 07 04:14:29 weights are for LL Nov 07 04:15:15 Yeah, that's what eclipse told me. Though it seems kinda silly to need a Linear in a Relative, since the buttons are all in place, just not sized right. (they're on wrap_content at the moment) Nov 07 04:18:36 Tyrope add an android.widget.Space object with 0dp height and width & layout_centerHorizontal="true" Nov 07 04:18:49 then line up the left and right margins with that Nov 07 04:19:19 Space objects aren't android 2.2 though, are they? Nov 07 04:19:38 ah, true Nov 07 04:19:52 any boject will do, i only chose that because its light Nov 07 04:20:09 Empty TextView? Nov 07 04:20:14 viewstub is api 1 Nov 07 04:20:26 maybe a generic View Nov 07 04:20:38 any really Nov 07 04:20:40 Leeds: Can those be generated with XML? Nov 07 04:20:49 Nov 07 04:20:59 Ofcourse. Nov 07 04:22:13 is there any performance difference between layout_centerInParent and layout_centerHorizontal? Nov 07 04:58:23 Hey Guys I need to encrypt a file but also use randomaccessfile Nov 07 04:58:52 As Cryptography is not really my strong area, is there any library I can refer to ? Nov 07 05:28:36 Has anybody been able to import that latest release of action bar sherlock into the eclipse? Nov 07 05:29:36 lasserix, "they" told me we should be doing minsdk=17 now Nov 07 05:29:45 ;) Nov 07 05:31:12 Not sure what you mean, I can import existing project on previous version, but the new version doesn't have any projects show up in the list to import Nov 07 05:32:39 But thanks? :/ Nov 07 05:38:15 does the standard content view container have a top bar? I'm trying to set my ABS background to transparent but nothing I do gets rid of the vertical divider Nov 07 05:40:38 Most people must be caught up with the elections, sigh. Nov 07 05:40:51 obama won. nothing to be caught up with :) Nov 07 05:40:52 what election Nov 07 05:41:16 are they electing a new king of Android? Nov 07 05:41:27 if no then IDGAF Nov 07 05:43:35 he has not technically won, and people get caught up for all sorts of reason most of all either in the excitment of having won or the in the belittling sadness of losing ;p Nov 07 05:43:50 the android king, hmm... Nov 07 05:44:01 makes me think of center command in tron Nov 07 05:44:12 Pepsi and Coke are running for president Nov 07 05:44:13 somewhere deep within the google server complex Nov 07 05:44:27 I'll pass. Water is much healthier. Nov 07 05:44:49 too bad all the world's water was used in the last few bottles of coke & pepsi co ;p Nov 07 05:45:42 I read a study of the different PH of all sorts of drinks Nov 07 05:45:51 and dasani water by coke is pretty bad Nov 07 05:46:17 makes sense because I always thought it tasted slightly different Nov 07 05:46:26 the worst drink for your teeth, is grape juice Nov 07 05:47:10 so i did buy this in the end http://www.microsoftstore.com/store/msstore/en_US/pd/ThemeID.27509700/VIZIO-14Inch-Thin-Light-CT14A1/productID.252852900 Nov 07 05:47:41 128 ssd, i5 up to 2.60, 4gb ram, lightweight, amawesome price, Nov 07 05:47:56 regedit: is that a ms certified thing; something w/o crapware installed Nov 07 05:48:01 I love that there is no politics talk going on here Nov 07 05:48:01 i had a vizio tablet Nov 07 05:48:09 cann't say i'd buy vizio again Nov 07 05:48:19 who cares? i always reformat to whatever i care for Nov 07 05:48:24 if someone talks about politics, pour scalding oil on them Nov 07 05:48:41 JackWharton, are you here? For the life of me I cannot get the sherlock action bar to be transparent. Nov 07 05:48:42 regedit: yeah … unless you dont get the CD :P Nov 07 05:49:32 g00s: they usually have a cd option, either to burn or comes with laptop or free shipped. worst case, it's retail win7 for me Nov 07 05:49:33 *JakeWharton i mean Nov 07 05:49:38 or who knows - linux perhaps? Nov 07 05:49:45 wut Nov 07 05:49:57 it's transparent by default Nov 07 05:50:01 regedit: cool, i hope you enjoy it Nov 07 05:50:16 thanks, hope so too Nov 07 05:50:27 had enough with my custom rig Nov 07 05:50:36 dotn play as much crysis anymore Nov 07 05:50:38 JakeWharton: how can I hide the vertical divider? I am trying to go for a white minimalistic background Nov 07 05:50:40 *don't Nov 07 05:50:41 i won't be buying any more desktops Nov 07 05:50:46 what divider? Nov 07 05:50:53 need to get myself a mac as well Nov 07 05:51:05 On the actionbar between the actionbar and the "content" Nov 07 05:51:15 oh, set the background to null Nov 07 05:51:17 Err between the activity's content and the actionbar's content Nov 07 05:51:17 too much technical trouble with desktop components. i very much needed a computer i can RMA the hell out of Nov 07 05:51:28 I tried that, still I get the horizontal divider Nov 07 05:51:41 getSupportActionBar().setBackgroundDrawable(null); you mean? Nov 07 05:51:47 maybe Nov 07 05:52:04 or in the theme Nov 07 05:52:09 or set it to a transparent color drawable Nov 07 05:52:17 now i need to begin selling my desktop rig piece by piece... anyone need some ram? gpu? mobo? :) Nov 07 05:52:25 I tried that too, and tried transparent color Nov 07 05:52:52 Nov 07 05:53:29 where @color/clear has been #00000000 or has been a transparent drawable or has even just been same color as window background Nov 07 05:53:30 what's color/clear? Nov 07 05:53:41 #00xxxxxx Nov 07 05:54:05 tried all three, and tried setting the getSupportActionBar to null in my oncreate too Nov 07 05:59:01 Doh! I figured it out Nov 07 05:59:23 Had wrong derived parent class set. Nov 07 05:59:47 Thanks for responding though Nov 07 06:01:30 Oh no wonder, I had this problem before. Is there a way to override parent themes? The problem is if I use Theme.Sherlock.Light it forces the horizontal divider, but if I just use Theme.Sherlock everything else goes out the window (on a white background) Nov 07 06:07:50 How can I override the actionbar style theme while using a different parent theme? Nov 07 06:15:27 anybody here? Nov 07 06:15:33 no Nov 07 06:15:37 darn Nov 07 06:16:16 if i were curious as to how Android applies manifest properties to activities at run time, where might i look? Nov 07 06:16:19 though if you ask maybe your question will echo enough to tunnel through to the ghost in the machine Nov 07 06:16:26 as in, actual code that runs Nov 07 06:17:02 like, where/when is it parsed from the xml, what calls are made, etc Nov 07 06:17:40 karakuri, pretty sure from R Nov 07 06:18:07 at least the parsing Nov 07 06:19:07 its hard to explain, but i'm curious about things that might be happening to the activity instance before i get the onCreate callback Nov 07 06:23:04 JakeWharton what is the background ninepatch image name of the ActionBar.Sherlock.Light theme named? Nov 07 06:23:18 karakuri: you probably want to look for something like 'attachContext()' Nov 07 06:23:18 action bar background? Nov 07 06:23:20 window background? Nov 07 06:23:42 you can just look into abs__themes.xml and abs__styles.xml Nov 07 06:25:52 JakeWharton I know you from ActionBarSherlock and I want to say thank for you for saving my Android project in class last semester. I'll leave it at that Nov 07 06:26:07 excellent. hope you got an A Nov 07 06:27:03 We did, and ViewPage Indicator is incredible as well. Makes the theming too easy Nov 07 06:29:10 awesome. If I ever find some free time I'd love to update those projects Nov 07 06:29:11 they need some love Nov 07 06:29:18 JakeWharton: sorry to bug you. I am using Theme.Sherlock.Light as parent, but I want a transparent actionbar background. If I use Theme.Sherlock and set the style of the ab to have a transparent background it works, but when I set the parent theme to Theme.Sherlock.Light it always shows the vertical divider. What am I missing to override the Theme.Sherlock.Light to make the background of Nov 07 06:29:19 the actionbar not have the vertical divider? Nov 07 06:29:41 you mean horizontal divider? Nov 07 06:29:45 yes Nov 07 06:29:51 JakeWharton, what are you working on nowadays? Nov 07 06:30:15 jmfurlott: in the open source world? mostly Square's open source projects as well as some yet-unreleased ones Nov 07 06:30:26 and, of course, our apps itself suck a lot of time Nov 07 06:31:18 Square the credit card company? Nov 07 06:31:34 indeed Nov 07 06:32:25 JakeWharton, any ideas? Nov 07 06:33:17 JakeWharton, awesome man, thanks again Nov 07 06:34:28 How can I make the horizontal divider null for the action bar in a theme if I am using Theme.Sherlock.Light as the parent theme? Nov 07 06:35:25 lasserix: i'm not sure about this, but it could be the last attribute on this samples page Nov 07 06:35:26 http://actionbarsherlock.com/theming.html Nov 07 06:35:33 @drawable/bg_striped_split Nov 07 06:39:01 f2prateek1 Uhh, I'm not sure I see your point. I am declaring both android / background items but I don't use a split Nov 07 06:40:05 i thought the splitBackground was the divider between the action bar and the content, so if you're not overriding that it will use the default one form the parent Nov 07 06:40:21 *from Nov 07 06:40:38 splitBackground doesn't refer to having a split action bar? Nov 07 06:41:09 lasserix: oh that makes more sense. didn't occur to me Nov 07 06:41:58 thanks though, yeah just tried it no luck Nov 07 06:42:57 what about actionBarDivider Nov 07 06:43:31 could you quality that? Nov 07 06:43:53 does any one know how an activity actually starts? Nov 07 06:44:59 lasserix: yeah you would put it in you app theme as  #00000000 Nov 07 06:45:55 lasserix: it might be the vertical deiveder though Nov 07 06:46:02 hehe Nov 07 06:46:07 there is no hope. Nov 07 06:46:47 didn't even change the vertical divider, i feel like i am ovveriding the parent theme incorrectly somehow Nov 07 06:49:00 i guess at this point it'll just be easier to go through item by item and make the other things visibile, thanks for the help f2 Nov 07 06:53:12 lasserix: np. one last potential solution - https://github.com/JakeWharton/ActionBarSherlock/issues/379. attribute is android:backgroundStacked Nov 07 06:55:42 heh ive been going through the drawables adding colored dots can't seem to cause any change so i think there is something wrong in the inheritance Nov 07 07:14:58 whats a good resource for learning about IBinders? Nov 07 07:15:10 inb4 IBinders full of women Nov 07 07:17:01 IBinders full of women Nov 07 07:17:05 oh wait... Nov 07 07:50:42 hi. i have downloaded a static build of rtmpdump for android, my question is how to run it in the application context? Nov 07 08:19:00 Good morning Nov 07 08:19:32 is there a way to figure out differences between a specific function in different API levels? Nov 07 08:22:14 the api has a api level drop down Nov 07 08:22:15 * ron_frown shrugs Nov 07 08:22:20 thanks Nov 07 08:22:22 also generally says since verson blah at the top Nov 07 08:22:26 lol Nov 07 08:22:39 moin Nov 07 08:22:49 yeah, the function I'm looking at was added in level 1 but acts differently in 10 and 15 :( Nov 07 08:23:09 RandomSort: surprise surprise ! Nov 07 08:23:14 WebView.loadDataWithBaseUrl() Nov 07 08:23:17 still makes me sad :( Nov 07 08:23:18 if it isn't documented, you can always go read the source Nov 07 08:23:39 webview is … a world of hurt Nov 07 08:23:41 true Nov 07 08:23:44 indeed Nov 07 08:54:38 hello all, I have a problems with eclipse dev env setting up. I have eclipse 4.2, android sdk, android plugin for eclipse adt installed, followed with the instructions on android developer site, but I cant see android sdk manager in eclipse-windows menu, nor can I create a new android project. everything was fine with eclipse 3.7 Nov 07 08:57:45 If I am making a ninepatch file for the actionbar background (to replace the horizontal divider) what are recomended dimensions? Nov 07 08:58:14 hrzhu: on eclipse check ctrl + 3 + log for plugin error Nov 07 08:59:05 is there a way to display the home screen from an application? I mean if I've done my task let the user go back to his home Nov 07 09:00:34 baptistem: you can launch the launcher, as it were, by startActivity-ing the right Intent Nov 07 09:02:41 Leeds: mmmh, I'm not sure it's what I'm looking for, I want to act as the 'home' button act Nov 07 09:02:55 yes, all the home button does is issue the appropriate Intent Nov 07 09:03:02 nothing magic about it Nov 07 09:03:44 oh right ok Nov 07 09:03:47 thx Le Nov 07 09:03:55 thx Leeds Nov 07 09:04:03 np Nov 07 09:04:27 ( found the good intent here http://stackoverflow.com/questions/2752319/android-simulate-home-click if anyone got the same issue ) Nov 07 09:05:10 right... Nov 07 09:05:49 baptistem: as a general piece of advice, whenever you see romainguy's name attached to something, it's probably going to be as good an answer as you'll find anywhere Nov 07 09:08:51 Leeds: I'm not sure I understood, you mean that it won't be 'The' perfect answer ? As far as I can see, he is a answer eater on SO Nov 07 09:09:12 baptistem: he's one of the world's top experts on Android... Nov 07 09:09:27 oh ok :) Nov 07 09:09:52 and he's not here right now to disagree :) Nov 07 09:10:46 baptistem: When I open the preference dialog, there is a DDMS and the error log prints a line says "Invalid preference category path: com.android.ide.eclipse.preferences.main (bundle: com.android.ide.eclipse.ddms, page: com.android.ide.eclipse.ddms.preferences.LogCatPreferencePage)" what does it imply? Nov 07 09:11:22 <[deXter]> Leeds, you forgot to mention he's also a very good photographer. ;) Nov 07 09:11:40 that too Nov 07 09:13:24 hrzhu: did you already download a sdk? Nov 07 09:13:36 yeah I'm pretty sure Nov 07 09:13:58 ok, windows? linux? Nov 07 09:14:11 baptistem: xubuntu 12.04 Nov 07 09:14:30 xubuntu ftw Nov 07 09:15:21 hrzhu: ok I had 2 main issues with eclipse/android/adt first was path issue, eclipse is waiting for a ~/android-sdks by default iirc, the second one was about 32/64bits libs Nov 07 09:17:26 baptistem: my sdk is located in ~ and I've put it in PATH I cant run adb from terminal and I am running a 32bit linux with a pae kernal Nov 07 09:18:30 hrzhu: you can't run adb? what happend? Nov 07 09:18:57 baptistem: sorry just typo I mean I can Nov 07 09:19:04 ok Nov 07 09:19:40 bwah, my buddy just got a job at google :) Nov 07 09:20:05 hrzhu: so the problem come from the plugin not from your conf, did you try the ctrl+3 stuff? Nov 07 09:24:20 baptistem: why do yo mean by ctrl+3, I press ctrl 3 typed log and there is a error says Invalid preference category path, by the way I can open the android logcat Nov 07 09:27:31 hrzhu: this seem to be very specific to eclipse, you may have better answer on #eclipse you may find a way to reset your preference on this plugins Nov 07 09:29:13 baptistem: ok, thank you for your help. i'll try it later Nov 07 09:29:19 has anyone an idea why i get sound glitches since android 4.0, when setting the playbackrate of audiotrack? Nov 07 09:45:40 the android sdk works fine with idea 11 Nov 07 09:47:27 good morning. Any one knows how to configure SVN on eclipse for an existing project? Nov 07 09:48:43 dont.. just use git svn on the command line :) Nov 07 09:49:25 tdignan: hmm? Nov 07 09:49:30 'ello Nov 07 09:54:11 http://pastebin.com/G1jvZ7yu <---That is my gridview adapter... there are a few performance hiccups, and I am trying to figure out what I can change for it to improve performance. Nov 07 09:54:35 If anyone is bored enough to spend a few minutes on it, fresh thoughts might be helpful Nov 07 09:56:07 Tee_Pee: see how you're calling findViewById every time, even if convertView is non-null? Nov 07 09:56:11 hi... I've had my app and its play store description translated to Spanish. Play Store lets me translate to Spanish (Spain), S... (Latin America) and S... (USA). If I only add one translation (say Spain), will it also "count" for people with the other two Spanish variations? Nov 07 09:56:43 or should I create 3 translations and paste the same text? (I will not translate it again) Nov 07 09:56:48 Tee_Pee: don't do that. Make a static class calle ViewHolder that contains the views that are in your layout. Then save it in the convertView, with setTag() Nov 07 09:56:51 has anyone an idea why i get sound glitches since android 4.0, when setting the playbackrate of audiotrack? Nov 07 09:57:27 erm, my phone, after being reformated, it's not showing up on eclipse. i am on linux. what should i do? Nov 07 09:57:29 Tee_Pee: Then, instead of just hitting the findViewById() code (which is your bottleneck) you say if (tag = getTag()) { use views from tag } else { fill in tag from findViewById and store tag } Nov 07 09:57:37 for more info google "viewholder pattern android" Nov 07 09:58:20 superlinux-hp: did you set up on your computer as said here http://developer.android.com/tools/device.html#VendorIds ? Nov 07 09:58:22 findViewById is not that performant of a function. You'll find it's much faster after you make these changes. Nov 07 09:58:52 baptistem, the udev rule is there already Nov 07 09:58:52 That's a start, albeit I don't think it's the findViewById alone, as I have a similar adapter that doesn't look for views by ID and still has the same issue. Thanks though, let's fix this first then move on... Nov 07 09:59:53 Tee_Pee: do I see a downloader? Nov 07 10:00:01 downloading images from somewhere in there too...? Nov 07 10:00:21 aye, but I'm testing this on an already cached data set, so isCached(position) returns true every time. Nov 07 10:00:29 the else if isn't being called Nov 07 10:00:49 superlinux-hp: err I guess that your dev option is on but I add the same problem when I use MTP instead of MSC as usb connectivity maybe it will solve your problem Nov 07 10:01:25 Anyone want to team up to help me develop a small sports club app? :D Nov 07 10:01:29 findAlbumById can't be that fast Nov 07 10:01:50 baptistem, yes there is something about MTP but i don't understand what it is and how to deal with it Nov 07 10:01:55 I also question why you are using 5 array lists to hold entities in relation dependent on their position therein, instead of defining a custom object type and making one array list of that Nov 07 10:02:47 I don't know honestly, most of that was just "let's get it to display stuff on the screen, worry about performance later" Nov 07 10:02:50 well, now is later :p Nov 07 10:02:52 baptistem, it was off in the settings Nov 07 10:02:59 this is more about clean code Nov 07 10:03:10 whos experienced with audiotrack? Nov 07 10:03:12 superlinux-hp: MTP mean that your phone is a kind of gateway between computer and phone's memory card, MSC will just mount your memory card, sometime adb complain about installing if it's in MTP or MSC Nov 07 10:03:13 object { int a; int b; int c; } arraylist you get it Nov 07 10:03:18 I'm going to get coffee and do my work Nov 07 10:03:21 anyway, let me implement the tag solution instead of findViewById and see what happens then Nov 07 10:03:26 aye, thanks for help Nov 07 10:03:26 i'll be on tonight Nov 07 10:03:41 baptistem, it works now Nov 07 10:04:04 superlinux-hp: perfect! did you change it? Nov 07 10:04:23 yes i did Nov 07 10:04:38 in the applications development settings Nov 07 10:04:51 they were off Nov 07 10:04:57 glad that it's working for you now :) Nov 07 10:05:04 thanks mate. Nov 07 10:05:35 your welcome! Nov 07 10:06:32 baptistem, do you have some experience in live video streaming? Nov 07 10:07:23 there are some sites are not using rtsp. instead they are using rtmp and rtpmpe protocols. Nov 07 10:07:38 superlinux-hp: no sorry but many poeple here had issues with video streaming, I'm sure you will find what you want here Nov 07 10:07:45 so what should i do? Nov 07 10:07:56 baptistem, i understand... Nov 07 10:08:40 baptistem, do you ve experience then in running things from command line? "rtmpdump" commend can do me what i want. Nov 07 10:08:46 baptistem, do you ve experience then in running things from command line? "rtmpdump" command can do me what i want. Nov 07 10:09:13 err I never heard of rtmp :) Nov 07 10:09:20 ah ok Nov 07 10:09:57 baptistem, thanks Nov 07 10:18:16 How would I share a SVN repository with someone? Nov 07 10:19:40 rtfm? Nov 07 10:19:50 give them the url to the server and an account Nov 07 10:22:25 vascobnunes: maybe #svn :) Nov 07 10:24:27 appel1: How do I give them an account? Nov 07 10:25:17 vascobnunes: http://svnbook.red-bean.com/ Nov 07 10:25:41 does anyone use paypal API with android? is there a way to disable asking for damn PIN? Nov 07 10:29:15 appel1: thank you Nov 07 10:38:22 appel1: but tell me, does it make sense to use svn for an android app development? Nov 07 10:42:03 http://i.imgur.com/H0pMt.jpg Nov 07 10:42:09 ha haaaaaaaaaaaaaa Nov 07 10:44:20 root66: they did board games from mobile games based on board games? :P Nov 07 10:48:30 I can't wait to adapt my super mario board game to the video game platform Nov 07 10:55:17 isn't there even an "IRL" angry birds game? Nov 07 10:55:51 http://static.gamesradar.com/images/mb/GamesRadar/us/Daily/2011/01-Jan/07/angry%20birds%20board%20game/angry_birds_boardgame_1--article_image.jpg yeah.. :P Nov 07 10:56:03 well, there was an episode of Tosh.0 where he slingshots actual dead birds at his staff Nov 07 10:56:47 my god Nov 07 10:56:56 What is the best REST client for android? Nov 07 10:57:11 you mean a library for rest communications? or... Nov 07 10:57:14 jap Nov 07 10:58:12 check out Jersey Nov 07 10:58:18 I havn't used it though Nov 07 10:58:22 doesnt work under android as far as i read Nov 07 10:58:41 oh Nov 07 10:58:48 otherwise i would use it, since my serverside is jersey Nov 07 10:59:03 I mean, to be completely honest, I would write my own Nov 07 10:59:11 because all of the libraries I have seen for REST were bloated Nov 07 10:59:31 it's so simple it hardly requires using a library Nov 07 11:00:08 same goes for most web-based api's and crap I see Nov 07 11:00:44 REST is supposed to be simple anyway :) Nov 07 11:01:11 thats why i thought there might be some simple rest lib out there Nov 07 11:01:12 timroes: just learn to use HttpClient :) Nov 07 11:01:22 i know how to use httpclient... Nov 07 11:01:32 my android game supports all sceen sizes, still the 'stretch/zoom to fill screen" button appears Nov 07 11:01:42 is there any way to prevent this button from appearing? Nov 07 11:01:47 I agree with miha.. and in my experience, any time someone writes a library to do make something already-simple "more simple" they bloat it and screw shit up Nov 07 11:02:19 Sera6x7: I have never even seen such a button in my life Nov 07 11:02:41 games have a "stretch/zoom to fill screen" button? Nov 07 11:02:45 Sera6x7: i think you need to change targetSdkVersion to android 3.x+ http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Nov 07 11:02:54 i remember something like that Nov 07 11:03:05 oh, a new feature Nov 07 11:03:18 I should really get a new phone Nov 07 11:03:29 still rocking the vivow Nov 07 11:03:46 root66: it's compatibility for "old apps" Nov 07 11:03:52 root66: this button is available for all apps that don't explicitly supports large screens Nov 07 11:03:54 yeah, makes sense Nov 07 11:04:26 miha: I already target SDK 13, and explicitly support all screen sizes with a width > 320dp Nov 07 11:05:54 Morning all Nov 07 11:07:15 Sera6x7: beats me, sorry Nov 07 11:07:38 miha: thanks anyway Nov 07 11:07:44 Under eclipse, is it possible to test changes in signal strength? I've looked online and only found people mocking the connectivity manager - is there not a way to say, "Assume I'm on a GSM connection"? Nov 07 11:08:36 https://www.youtube.com/watch?v=mp07dPusJNA&feature=youtube_gdata_player Nov 07 11:08:41 7 taps on about phone -> build version to unlock developer settings Nov 07 11:08:44 Sera6x7: have you read http://developer.android.com/guide/practices/screen-compat-mode.html ? Nov 07 11:09:26 though I think it's embarrassing that they didn't code in a simple plural toggle so that it says "1 tap" instead of "1 taps" Nov 07 11:09:40 seriously amateurish mistake Nov 07 11:09:46 definitely Nov 07 11:10:21 Estel: I have, and I believe I have all the required settings in my manifest (including the deprecated varieties) Nov 07 11:13:14 ah, apparently if your manifest contains , even though the app runs on one of the supported screens, this compatibility button appears Nov 07 11:14:02 so, the compatibility button disappears by not explicitly declaring that I support all screen sizes Nov 07 11:14:16 That sounds... wrong Nov 07 11:15:20 well, the doc you linked to states, in the last section: "you can affect whether compatibility mode is enabled for certain screens by using the element." Nov 07 11:15:22 that makes sense Nov 07 11:15:41 ie, if android knows the app doesn't support the particular screen size of the device it is running on Nov 07 11:15:47 it shows the zoom button Nov 07 11:16:09 if it claims to support all sizes, there's no point in showing the zoom button Nov 07 11:17:05 MDijkstra: in I had listed all screens wider than 320dp, and I run the app on a 10" tablet. I don't think it makes sense to show the zoom button in that case Nov 07 11:17:45 a follow-up question: assuming the compatibility button is there, can I handle the configuration change my self? Nov 07 11:17:55 wider in portrait? Nov 07 11:18:08 I already handle android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|uiMode" but apparently the compatibility zoom is not included in that list Nov 07 11:19:05 Sera6x7: in the docs: Nov 07 11:19:19 "a typical handset screen has a smallestWidth of 320dp, a 7" tablet has a smallestWidth of 600dp, and a 10" tablet has a smallestWidth of 720dp." Nov 07 11:19:39 so it makes perfect sense to show the zoom button in such a case Nov 07 11:20:02 or wait Nov 07 11:20:05 disregard that Nov 07 11:20:29 what exactly do you have there? Nov 07 11:20:50 o_O Nov 07 11:20:59 specifically, do you have android:compatibleWidthLimitDp specified? Nov 07 11:24:04 the docs for ""requiresSmallestWidthDp" says "the device's smallestWidth must be equal to or greater than this value" but it concludes with: "If your application properly resizes for smaller screen sizes (down to the small size or a minimum width of 320dp), you do not need to use this attribute." Nov 07 11:24:22 I guess it pays to not include unnecessary stuff in your manifest Nov 07 11:25:11 yeah, that's the wrong attribute, you want android:compatibleWidthLimitDp Nov 07 11:26:13 not according to my reading of the docs: "the maximum "smallest screen width" for which your application is designed", while my application is designed to support all screen sizes Nov 07 11:26:32 it can't be designed for 'all' screen sizes Nov 07 11:26:57 you can't predict an android device won't come out with a 200000dp width Nov 07 11:27:23 there's always some subset of screens you target Nov 07 11:27:42 in your case it's everything from a 3" phone screen to a 10" tablet Nov 07 11:27:46 but it's not every screen Nov 07 11:28:08 yeah need to support 1" android watch and 120" android tv too Nov 07 11:29:08 my game uses gles2 with its own ui scaling, so yes it 'supports' all screen sizes Nov 07 11:29:44 hi guys Nov 07 11:29:54 (long time no see), how do you quit a HandlerThread? Nov 07 11:30:05 mHandlerThread.quit() is just hanging indefinitely Nov 07 11:32:16 Sera6x7: again, that doesn't support all screen sizes Nov 07 11:32:43 android device with 2dpx1000000dp Nov 07 11:34:07 some kind of android powered ticker display Nov 07 11:34:13 MDijkstra: that's why I included the minimal width of 320dp Nov 07 11:34:40 minimal width says nothing about the ratio Nov 07 11:38:12 MDijkstra: from those same docs: "The smallestWidth is the shortest dimension of the screen space (in dp units) that must be available to your application UI—that is, the shortest of the available screen's two dimensions. " Nov 07 11:38:57 so no, it says nothing about the ratio but it clearly defines which dimension is the 'width' of the screen, and my app has no issue with varying ratios Nov 07 11:41:23 Sera6x7: again, if you just declare support for larger screens the issue will go away Nov 07 11:41:30 so I don't know what exactly you want Nov 07 11:41:53 MDijkstra: yes, that's what I said ;) Nov 07 11:42:44 O_o Nov 07 11:42:48 ok, well, good luck Nov 07 11:43:58 http://pastebin.com/gCSY7DyE <----This is driving me insane... any idea what might cause this? Nov 07 11:44:30 Line 42 is the inflater.inflate line in the first constructor Nov 07 11:45:00 the albumadapter line 119 is just albumView = new PycsellAlbumView(mContext); Nov 07 11:45:39 if I comment out the two inflater lines, and uncomment the Layoutinflater.from(context) line, the error changes Nov 07 11:48:36 has anyone used this: http://caughtinthemobileweb.wordpress.com/2011/06/20/how-to-implement-calendarview-in-android/ Nov 07 11:48:37 ? Nov 07 11:50:18 'fraid not Nov 07 11:51:09 * miha bugging paypal forums.. i feel bad Nov 07 11:51:25 what's in their samples works great, what's not is mystery :D Nov 07 11:51:32 no javadoc or anything Nov 07 11:52:03 pdf has even less details than Simple Sample Nov 07 11:52:17 * miha spam :p Nov 07 11:54:58 Trying to figure out what the hell is bottlenecking my gridview scrolling performance Nov 07 11:58:47 getting a weird error, fixed this once before but i cant remember how, noClassDefFounError org.apache.http.entity.mime.MultipartEntity, thing is its definitely there Nov 07 11:59:08 Trying to set the Android emulator to use GPRS by running the emulator executable from the command line and using -netspeed gprs, it's not actually doing anything. Can anyone offer any advice? Nov 07 12:00:14 Gaz`: Sounds like a build path issue. Nov 07 12:03:49 Yeh, Nov 07 12:03:53 and bloody eclipse Nov 07 12:06:04 dalvik errors now, Nov 07 12:10:17 Glad I'm not the only one with Dalvik errors. Nov 07 12:10:39 Try blaming it on Obama. Nov 07 12:11:01 I might, but I'm British, so blaming it on Romney is more my thing ;) Nov 07 12:11:28 I find that it's effective to simply add "THANKS, Obama." sarcastically to the end of anything angry or irritated that you say. Nov 07 12:12:24 Gaz`: Any luck with the dalvik errors? Nov 07 12:22:43 yes Nov 07 12:22:53 some order and export crap Nov 07 12:23:00 and when i was ticking some i hit android.jar Nov 07 12:23:05 so it must have been trying to use it twice Nov 07 12:23:15 solved all my issues now :) finally Nov 07 12:23:21 now im trying to talk to my damn servlet Nov 07 12:26:07 altho getting a servlet to work is like taming a shrew Nov 07 12:26:11 so.... finally traced my gridview performance dip to my scroll listener... sigh. Nov 07 12:27:38 ;/ Nov 07 12:27:58 or rather Nov 07 12:28:10 to the notifyDataSetChanged() called on the adapter from the scroll listener. Nov 07 12:28:52 hi... I'm trying to localize my app's label below the icon on the home screen. it appears android:label (in AndroidManifest.xml) is not responsible for this. It appears only the label in settings/applications is affected by android:label... how do I change it? Nov 07 12:28:55 What is essentially happening is this - I have an image gallery, and if the user is just zooming past, I don't want the images to load at all... so I track the speed of the scroll via listener... if the speed dips below a certain value, and the user was flinging earlier, I tell the adapter to load shit. Nov 07 12:42:27 Hey Guys I'm encrypting my files in Android Nov 07 12:42:31 it works well with CipherInputStream/CipherOutputStream, but I'm running in issues with RandomAccessFile Nov 07 12:42:38 here's what I'm doing to encrypt the data using RAF http://pastebin.com/hzZTN9zJ Nov 07 12:43:30 basically I'm using AES/CBC/PKCS5Padding so I'm the blocks are 16 byte aligned Nov 07 12:44:31 do you convert in base64 your binary data? Nov 07 12:44:47 adq no Nov 07 12:45:06 hmmm not sure (has to be verified by more ppl from here), but it might be an issue Nov 07 12:45:19 because if you end up with a \0 in binary Nov 07 12:45:27 s/if/you/ Nov 07 12:45:44 errr you might end up* i meant Nov 07 12:46:04 so? Nov 07 12:46:22 hmm... so tried couple of files with Cipher*Stream functions they seems to be working Nov 07 12:46:54 adq, bytes don't care if it's 0 Nov 07 12:46:57 i'm probably wrong :| Nov 07 12:47:05 or is it a "padding" problem? Nov 07 12:47:20 its most likely a padding issue, Nov 07 12:47:51 because when I seek, the rf.length() is always in multiple of 16 where the offset server ask me to write at varies Nov 07 12:48:13 yeah, so you have to pad it to ensure the blocks is always the correct length Nov 07 12:48:19 so I guess PKCs5Padding is mandating a certain padding Nov 07 12:48:47 so that's what I thought I did http://pastebin.com/hzZTN9zJ Nov 07 12:50:27 brickhead, is your test on "iif (offset != 0)" should not be against the value of padding instead? Nov 07 12:51:21 * miha thinks it's brave to do such code Nov 07 12:51:23 and then add the necessary remaining byte as padding to fill the correct length of the block (so 16 in this case) Nov 07 12:52:41 adq: yeap that could be it for 16 byte aligned I would be adding 16 to it Nov 07 12:54:23 what i meant is, if you have per example 2 blocks which in total is per example 20 bytes, the first block is 16bytes (no need padding here) and the second block is 4 bytes and need 12 bytes of padding Nov 07 12:55:05 isnt that padding 16 bytes block, makes 32 bytes block? cause you need at least 1 byte for padding? Nov 07 12:55:13 :p Nov 07 12:55:22 two 16 bytes blocks, i mean Nov 07 12:56:02 no i don't think so, if it is exactly 32 bytes in total, there is no need of padding Nov 07 12:56:40 adq: Thanks that did it, stupid coding by me Nov 07 12:56:43 cool Nov 07 12:57:03 i played a lot with ECB/CBC long time ago, so it's not fresh in my head anymore :) Nov 07 12:57:18 adq: ECB is bad m'key Nov 07 12:57:19 worst i run into was the GP (global platform) Nov 07 12:59:39 I was earlier using default encryption scheme, but was later suggested to explicitly define mode and padding and then IV Nov 07 12:59:57 but now it looks like the whole encryption thing is darn slow Nov 07 13:01:49 IV chaining improves a bit the security by preventing decryption if someone eavesdrops in the middle of the "conversation" Nov 07 13:03:28 brickhead, FYI: http://en.wikipedia.org/wiki/Weak_key choose carefully your key ;) Nov 07 13:05:50 anyone here interested in producing raw sound waves? If so I could fill your mind with awesome right now Nov 07 13:06:24 I just wrote a synthesizer and it was so incredibly simple.. nothing like "they" try to teach you Nov 07 13:06:33 when you google for examples, that is Nov 07 13:06:54 in fact I might just write a tutorial Nov 07 13:07:02 screw all you Nov 07 13:12:13 100% functionality implemented booya! Nov 07 13:12:35 root66, I did one too :) I use like a software VCF, VCA and VCO Nov 07 13:12:49 which produces sound clearly close (and also so far) to a bassline TB303 :)) Nov 07 13:13:23 it is not much resource/cpu consuming compared to applying effect like chorus/flanger (because of some expensive maths functions) Nov 07 13:14:06 root66, I'm looking forward to read your tutorial Nov 07 13:23:59 hi guys, i have an Application Object, that's being created when the Application starts. I want it to call onTerminate when the main Activity stops/terminates. How can i do this? Nov 07 13:24:16 it is never being calles Nov 07 13:24:19 called Nov 07 13:24:31 yes, that's what the documentation says. It will never be called. Nov 07 13:24:46 well, there's some circumstance with emulator or something where it is, apparently, but not on real device. Nov 07 13:25:07 perhaps you'd be interested in the activity lifecycle methods? Nov 07 13:25:19 should i use onStop? Nov 07 13:25:41 if onStop fits what you are doing, then you should use onStop. Also tautological answer is tautological. Nov 07 13:26:03 true is true, it's a tautology Nov 07 13:26:08 makes sense Nov 07 13:26:10 ^^ Nov 07 13:26:21 but gives no information gain Nov 07 13:26:30 wrong :) Nov 07 13:27:07 thx btw Nov 07 13:28:24 the general sentiment about Activity subclasses is "don't". In general google's engineers would like you to use the lifecycle methods on the android-managed objects such as fragment, activity, and service Nov 07 13:28:51 ok, again. the Application object has nothing to do with Activity lifecycle Nov 07 13:28:56 alankila - awefully broad statement Nov 07 13:29:16 Application dosn't implement onStop, etc. only onTerminate() Nov 07 13:29:48 j4hr0m: indeed. And onTerminate is not called, probably to not allow applications to hold up termination of their processes. So... Nov 07 13:30:44 so how can i tell if the application is closed? Nov 07 13:31:15 there's no such thing on android. The general illusion is that applications are always running, and can be programmed to act as if this were true. Whether the application process is currently in memory shouldn't matter to end user, or even to the programmer in many cases. Nov 07 13:32:04 this is not satisfyinfg. i want to clean up temporary files, where can i do this? Nov 07 13:32:37 Hey. I'm having difficulty creating an intent properly, my http://stackoverflow.com/questions/13260592/android-unable-to-properly-create-intent-to-share-kmlxml-file any thoughts from you folks what I'm doing wrong? Nov 07 13:32:39 j4hr0m, you override "onDestroy", maybe? Nov 07 13:32:43 perhaps you can remove temporary files on the creation of the activity that made them previous time. Nov 07 13:33:02 or at creation as alankila said Nov 07 13:33:06 it all depends on how long the temporary files are useful Nov 07 13:33:35 adq: onDestroy isn't guaranteed to get called.. Nov 07 13:33:41 is there a way to take programmatically screenshots of open gl view that is on native side. I am seeing only black screenshots Nov 07 13:33:42 also there's File#deleteAtExit() or some such method, which may or may not work on android. I imagine it does, but in case the application terminates abruptly you still need a back-up plan Nov 07 13:33:47 appel1, ah thx :/ Nov 07 13:34:06 whats wrong with activity subclasses, or were you alking about a particular very specific cse Nov 07 13:34:07 case Nov 07 13:34:13 ok, i will need an extra Boolean variable, that tells me whether onDestroy is called to move to another Activity in the App or back to Android... this could helpo. thanks Nov 07 13:34:15 ron_frown: application subclasses? Nov 07 13:34:32 wow. facebook's android sdk login flow is absolutely stupid Nov 07 13:34:45 oh Nov 07 13:34:48 aksu, i think you need to draw the opengl buffer in a bitmap :/ Nov 07 13:34:54 "LoginButton" just drop it in! Then it spawns an ugly as hell webview over the current activity that doesn't survive orientation changes. Nov 07 13:34:57 then display and screenshot the bitmap Nov 07 13:35:06 yeah I can see that Nov 07 13:35:34 not much about application subclass is actually all that useful Nov 07 13:35:38 appel1: then what is guaranteed to be called? Nov 07 13:35:45 j4hr0m: onPause Nov 07 13:35:57 ok, thanks Nov 07 13:36:08 I thought onDestroy is guaranteed though Nov 07 13:36:21 see Figure 1 on http://developer.android.com/guide/components/activities.html#Lifecycle Nov 07 13:36:27 if someone kill your pid, ondestroy is probably not called Nov 07 13:36:32 but this should not happen often Nov 07 13:36:33 after onPause the process can get killed at any time Nov 07 13:36:35 I see, it's not Nov 07 13:36:39 of course ;) see this so many times, but still relevant Nov 07 13:37:32 the lifecycle chart is kinda vague but it suggests that after onPause or onStop, there can be death of activity without onDestroy Nov 07 13:37:36 adq: it is enough that memory pressure is high on the device for it to happen, no manuall killing necessary Nov 07 13:37:58 qkzoo1978: looking at your example, i do Intent share = new Intent( Intent.ACTION_SEND); Nov 07 13:38:10 qkzoo1978: other than that, you do much the same Nov 07 13:38:28 kinda OT, but is this the same, where windows 8 is heading? assuming, applications never get killed? :D Nov 07 13:39:00 I kinda thought that there is always onDestroy call if there is onCreate call. This is unsatisfying to me, I kinda hoped they'd form a logical pair. Nov 07 13:39:03 Miha tu, I'll check it out! Nov 07 13:39:05 appel1, yes, totally agreed Nov 07 13:43:21 Miha, that was it! Nov 07 13:43:33 qkzoo1978: cool Nov 07 13:44:17 Why isn't by listed for sharing? Nov 07 13:44:27 Bluetooth Nov 07 13:47:22 qkzoo1978: don't know. i have bluetooth too, but i dont set mail, subject and body, just attach file Nov 07 13:47:39 also dropbox, skype, andftp :) Nov 07 13:48:17 I'll give it a shot, thanks! Nov 07 13:49:28 qkzoo1978: and if you want to attach multiple files, i think http://stackoverflow.com/questions/2264622/android-multiple-email-attachments-using-intent this works Nov 07 14:01:23 Anyone here had the pleasure of working with gridviews that display cached images? Nov 07 14:01:28 from the sdcard that is Nov 07 14:01:31 i.e. a gallery Nov 07 14:03:06 Thanks miha Nov 07 14:04:24 I'm trying to get rid of scrolling performance issues the entire day now, and I can't seem to do it... my adapter is as minimal as can be - this is the getView() function Nov 07 14:04:24 http://pastebin.com/TXdGwrJK Nov 07 14:05:08 The line that causes the performance hiccup seems to be within the PycsellAlbumView class, namely the setImage(String imagepath) method, which just does this.imageView.setImageBitmap(BitmapFactory.decodeFile(imagepath)); Nov 07 14:05:29 so the problem lies within the setting and / or decoding of the bitmap Nov 07 14:05:47 I've tried using the official guide and implement it that way - http://developer.android.com/training/displaying-bitmaps/process-bitmap.html Nov 07 14:06:00 (See Handle Concurrency) Nov 07 14:06:03 image processing is always gonna be expensive... Nov 07 14:06:06 But that frankly just made it worst. Nov 07 14:06:18 worse* Nov 07 14:08:11 hi Nov 07 14:08:26 Tee_Pee, you can try using the ViewHolder pattern too Nov 07 14:08:32 Tee_Pee: what do you mean worst? it shouldnt block? :) Nov 07 14:08:37 hmm the result im getting back from submitting an image to my servlet is the html of the page, anyone know what im doing wrong, should be receiving a jpeg, it works from browser Nov 07 14:08:44 miha - typo, I corrected to worse. Nov 07 14:08:48 Tee_Pee, oh u are, nvm Nov 07 14:08:52 johnsmith - I am already doing that? Nov 07 14:09:22 checking the source code of the gallery now lol Nov 07 14:09:25 to see how it did it Nov 07 14:09:41 adq: getting to the good bits now... but here it is so far: http://johnnystreet.com/synthesizer_tutorial.html Nov 07 14:09:59 I am trying to explain it to you like you are five years old Nov 07 14:10:07 add pictures, if so :) Nov 07 14:10:08 Tee_Pee: i dont know how bad my idea is, but http://developer.android.com/guide/topics/ui/layout/gridview.html you could spawn your bitmap loading task in getView() Nov 07 14:10:13 yeah, definitely Nov 07 14:10:26 let me know what you think so far though Nov 07 14:10:31 since that is most of the nontechnical stuff Nov 07 14:10:48 miha - not sure what you mean? Nov 07 14:10:51 especially let me know if any of the wording seems confusing Nov 07 14:10:52 -? Nov 07 14:11:07 Tee_Pee: in that page, instead of imageView.setImageResource(mThumbIds[position]); Nov 07 14:11:32 you would check if you have bitmap in memory, or start task and set bitmap later? Nov 07 14:12:09 and just return empty imageView Nov 07 14:12:18 I've had a similar setup earlier, didn't make much of a difference... either way, I forgot to mention that, if I replace this.imageView.setImageBitmap(BitmapFactory.decodeFile(imagepath)); with this.imageView.setImageResource(R.drawable.SOME_IMAGE); it works flawlessly. Nov 07 14:12:31 So it seems to be an issue with the decoding of the file. Nov 07 14:14:43 Tee_Pee, I'm no expert here, but maybe decode the file off the UI thread and load the images when they're ready.. ? Nov 07 14:14:47 adq: I am working on images and a header breakdown now Nov 07 14:14:58 Tee_Pee, image processing is always going to be expensive Nov 07 14:15:16 I feel like I should have an actual sine wave and not something crudely bent in photoshop Nov 07 14:15:37 but I am not writing a program just for that so I am stealing something off google Nov 07 14:15:38 johnsmith - it would seem that setImageBitmap works off the UI thread anyway Nov 07 14:15:51 oh wait, wiki commons! Nov 07 14:15:52 root66, there are lot of similar tutorial but it's good you show some altruism. Think of a pedagocial pov in what you explain, what are the basics, what is advanced, etc.. Also to entertain your readers, maybe add some funny anecdote like why a CD was 650MB ( Beethoven's Ninth Symphony on one disc in 16bits PCM fit exactly in it), etc.. Nov 07 14:15:54 Let's see if I can do anything with bitmapoptions... Nov 07 14:16:43 Tee_Pee, this is true, but doing the decoding on the UI thread is what is giving you perf issues Nov 07 14:16:44 s/pedagocial/pedagogical/ Nov 07 14:17:06 sorry, I meant decodeFile doesn't work on the UI thread Nov 07 14:17:17 if you dont mind some delay for the images popping up, decoding them off the UI thread or doing some other less expensive procesing is going to be the option I think... Nov 07 14:18:24 most stuff I do like this is broken down into ONLY the information you need to do it with no distractions. I will take that into consideration, though. Nov 07 14:18:36 root66: it's a pity that wave editors as a rule do not visualize waveforms correctly. The waveform editors usually draw a straight connecting line between the samples in the waveform, but that's not actually what hardware systems generate. They do something more complicated in between those points. Nov 07 14:19:12 you refer to the waveform as a line somewhere, and much confusion about digital audio arises from this misconception when people begin to argue why, for instance, true analog waveforms are better. Nov 07 14:19:27 and invariably, the lines-connecting-points-of-digital-waveform model is there Nov 07 14:19:48 cannot agree more Nov 07 14:20:37 yeah, it is just a series of values going from left to right. the fixed sample rate is the limitation of digital audio Nov 07 14:20:38 however, for low-frequency sounds the lines model is very accurate. Nov 07 14:20:51 Hi Nov 07 14:21:11 i mean, a sine wave of digital audio is not a true sine wave Nov 07 14:21:30 for high frequency sounds, the reconstruction filter comes into play and it's probably a sinc of some type Nov 07 14:21:32 in between the two 1/44100 samples is a tiny amount of missing data Nov 07 14:21:49 only if the source audio violates the nyquist theorem Nov 07 14:21:53 and the data becomes more important as you get into higher freqs Nov 07 14:22:02 if not, then the discrete sampling can reconstruct the original waveform perfectly. Nov 07 14:22:19 but isn't that done by the thing rendering the sound? Nov 07 14:22:24 the data is still missing Nov 07 14:22:36 it is just predicted by the player Nov 07 14:22:47 it's only "missing" if it existed in the first place. Digital waveforms can represent all sound data of frequencies less than the nyquist frequency perfectly. Nov 07 14:22:48 and with such a tiny sample size it is going to be damn close Nov 07 14:22:48 root66: "sampling frequency must be at least 2 times highest signal frequency" :) Nov 07 14:22:58 anything above it is aliased or missing, depending on the hardware's capability Nov 07 14:23:08 miha: I did not know that Nov 07 14:23:11 that makes total sense Nov 07 14:23:15 alankila told you Nov 07 14:23:16 In a idea of performance I would like to know how it is the best practice of using HttpURLConnection Nov 07 14:23:29 nyquist frequencies and all that Nov 07 14:23:38 this is why I love this channel Nov 07 14:23:42 and not so much #math Nov 07 14:23:58 unfortunately I need to get going about now, so I can't continue discussion, but remember the nyquist's theorem. It's no idle talk. A lot of people seem to not understand it. Nov 07 14:24:33 thanks Nov 07 14:24:48 my phone take 154ms on this line : final HttpURLConnection res = (HttpURLConnection) (url.openConnection()); is it normal ? Nov 07 14:25:23 Titi: when you're debugging it's going to go slower Nov 07 14:25:43 oh, ok :) Nov 07 14:25:55 Titi: compared to actually retrieving that data anyway? Nov 07 14:26:04 as in making the connection etc ? Nov 07 14:26:08 pocket change! Nov 07 14:26:20 so am I essentially wrong that a wav is a single line from left to right? Nov 07 14:26:31 should I avoid referring to it as a line?. Nov 07 14:26:42 root66: a wav is a list of amplitudes Nov 07 14:26:46 no just in this new Nov 07 14:27:18 for the connection, and the exchange of data, he took between 350 and 7000ms Nov 07 14:27:27 at every sample point, you have an amplitude, if you plot those amplitudes on a graph, you get a line Nov 07 14:27:55 depending a lot on the connection line : _code = urlConnection.getResponseCode(); Nov 07 14:28:08 Well duh, I just meant in my explanation there, but yeah I am going to change the wording Nov 07 14:30:52 whoo, that actually improved stuff. Nov 07 14:31:00 Moving the decoding into an asynctask Nov 07 14:32:17 Tee_Pee, great success! I was going to encounter this problem in a few days so glad to here its working Nov 07 14:32:54 To tell you the truth, it's still not PERFECTLY smooth Nov 07 14:33:06 compared to a vanilla listview? Nov 07 14:33:16 and considering I'm on a galaxy s3 Nov 07 14:33:24 it should not stutter :p Nov 07 14:33:30 anyway, need to run to the shop, be back in a bit Nov 07 14:33:36 I can show you the entire implementation then. Nov 07 14:33:42 im keen Nov 07 14:39:25 Is that the best way to read a JSON ? final JSONObject obj = (JSONObject) new JSONTokener(data).nextValue(); ? Nov 07 14:43:39 I don't know, is it? Nov 07 14:47:18 the docs recommend using the NotificationCompat.builder, however this does not have setters for all aspects of the notification - for example Notification.flags Nov 07 14:49:27 what is one expected to do? Nov 07 14:53:13 set the flags on the Notification after you build it Nov 07 14:53:59 lov: will that not be circumventing/breaking the compatibility? Nov 07 14:55:25 j0hnsm1th - still here? Nov 07 14:55:36 Tee_Pee, yup Nov 07 14:56:12 no. Nov 07 14:56:25 The NotificationCompat.builder is a convenience class Nov 07 14:56:43 i see Nov 07 14:56:46 ok thanks Nov 07 14:56:57 rofl http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html#setPriority(int) read end of paragraph Nov 07 14:57:16 (make sure you get full URL with parentheses) Nov 07 14:58:24 yeah I love that line Nov 07 14:58:37 i mean wtf Nov 07 14:58:40 http://www.google.com/search?hl=en&safe=off&tbo=d&output=search&sclient=psy-ab&q=site%3Adeveloper.android.com+mumble&btnK= Nov 07 14:59:28 alright, here's the implementation of the gridview... what I have is every view showing an image, a title and an image count on top. So I inflate a custom layout and pass all the relevant parameters Nov 07 15:00:36 http://pastebin.com/x6rhHSut <----That's the adapter getView() method Nov 07 15:01:52 http://pastebin.com/NzVpL4kC and the custom view Nov 07 15:02:04 look for //RELEVANT for the code setting the image Nov 07 15:04:28 when making a custom notification RemoteViews, how do i set the icon for the status bar? the normal NotificationCompat.builder.setSmallIcon() ? or is it something in the layout.xml Nov 07 15:04:40 I am still far from happy with the scrolling performance... but frankly I don't know what else I can do. Nov 07 15:07:56 Ok so.... I've figured out the biggest culprint in my scrolling performance Nov 07 15:08:00 garbage collection... Nov 07 15:08:16 I keep getting messages like GC_CONCURRENT freed 5984K, 57% free 6813K/15555K, paused 6ms+8ms, total 52ms Nov 07 15:08:29 so... back to reducing memory usage again... Nov 07 15:11:08 Tee_Pee: line 14-16 you call albuminfo.get() 3 times on the same value Nov 07 15:11:21 just keep a temporary reference to it. Nov 07 15:11:25 Tee_Pee, try to add android:scrollingCache="false" Nov 07 15:11:25 in xml Nov 07 15:11:39 but i don't know which view you are using, works well on listview & gridview, iirc Nov 07 15:12:05 it made a huggge diff on one of my app Nov 07 15:13:03 alright, let's see.... Nov 07 15:13:08 Tee_Pee: there's some weird crap going on with your asynctask Nov 07 15:13:22 You never cancel the old BackgroundDecode Nov 07 15:14:06 Tee_Pee: also, in your constructors, just call this(context, attrs, 0) and this(context, null, 0) Nov 07 15:14:14 tdingan - you're right, I was going to change that, slipped my mind. Nov 07 15:14:21 adq - gonna try that in a minute Nov 07 15:14:49 evan - not sure what you mean by weird crap really Nov 07 15:15:37 Tee_Pee: well you schedule the task Nov 07 15:16:10 then the view gets recycled and and another decode gets queued. When the first task finishes, you have this bitmap that is never used and just needs to be thrown away Nov 07 15:16:31 you need to cancel the old task Nov 07 15:16:54 and for bonus points, just return null from doInBackground if isCancelled() is true Nov 07 15:17:29 ah Nov 07 15:17:37 right-o, gonna fix that Nov 07 15:17:38 also, what does getCursor() do? Nov 07 15:17:45 that seems extremely suspect Nov 07 15:18:29 it's a built in method of the simple cursor adapter... gets the active cursor... not my method Nov 07 15:18:37 ah okay Nov 07 15:20:35 but yeah, make the decode task a member variable and when setImage(String) is called, cancel the old and create a new one Nov 07 15:23:42 (and get rid of that WeakReference nonsense; totally unnecessary here) Nov 07 15:27:59 when I use myProgressBar.startAnimation(alpha); it sets the foreground transparent but I need background tranparency on the progress bar Nov 07 15:29:04 so that it will dim the background and the paused video behind doesn't cause the viewer to not be able to view progress bar Nov 07 15:31:14 evancharlton - Like this? http://pastebin.com/uP9RJ8gk Nov 07 15:31:23 hello fellow developers Nov 07 15:31:29 also, the weak reference stuff is from the google documentation http://developer.android.com/training/displaying-bitmaps/process-bitmap.html Nov 07 15:36:35 hello, i have read about this little issue i have have with listview custom adapter and asynctask, this is my activity class that packs everything together http://pastebin.com/AHCe2pbL this is my custom adapter http://pastebin.com/axNDJQhE. The problem is that it only shows the first item in the listview all the other items are blank like this: http://img525.imageshack.us/img525/1035/androidimage.png. Nov 07 15:36:48 So Initially, the first item is shown from the data i retrieved from the xml datastore, but all the other items are not showing. But if i change the orientation to landscape the last two rows are not shown immediately in the view, if you scroll down to the last items in the list the values are there and then the two top rows are not shown. When you scroll up, the 2nd row in the list is now shown. Nov 07 15:39:58 Tee_Pee: first, don't use != with strings Nov 07 15:40:12 second, that will NPE the first time through Nov 07 15:40:25 evan - already fixed both of those :P Nov 07 15:40:27 third, why aren't you using generics? Nov 07 15:40:52 probably because I have no idea what you're referring to :( Nov 07 15:41:25 fourth, I'd probably add in something like if (!isCancelled()) { Bitmap b = BitFac.decodeFile(path); return isCancelled() ? null : b; } return null; but I don't know if that will improve things Nov 07 15:41:59 fifth, cancel the task in onDetachedFromWindow as well Nov 07 15:42:03 well, right now I'm about to log stuff to see why I'm not getting any images at all whatsoever Nov 07 15:42:10 gimme a min Nov 07 15:44:58 I tried adapter.notifyDataSetChanged(); , listView.refreshDrawableState(); & listView.requestLayout(); individually and together none of which worked. I have also tried the runOnUiThread function in both doingInbackground and onPostExecute of my asynctask none of which also work. Nov 07 15:45:19 :( Nov 07 15:51:55 Jokr: In your Activity class, remove lines 101 and 102. Next up, you really *should* be using for(Rate y : val) there, because that for loop should show the first two items. Nov 07 15:53:10 Oh i added the "hardcoded value 2" to see what will happen and surprisingly it only show the image of one row Nov 07 15:53:20 Jokr: That is the opposite of suprising. Nov 07 15:53:56 oh =/ how so Nov 07 15:54:49 Jokr: You're inflating the same view twice. Nov 07 15:55:10 Jokr: Plus limiting the number of items will show fewer items. Plus you seem to be treating item 0 of the List special for some reason. Nov 07 15:56:29 how so i am confused :s i have been searching for the answer for days Nov 07 15:57:22 Glad to have helped. Nov 07 15:57:36 wait... im still stuck Nov 07 15:57:38 :( Nov 07 15:57:53 what do u mean i am iflating the same thing twice Nov 07 15:58:11 and im treating the first one in the list differently Nov 07 15:58:28 i had the foreach before and that didn't fix the problem Nov 07 15:58:46 Jokr: If you're handed the same null view twice, you'll inflate the same view twice. Or rather, you won't. Nov 07 15:58:48 evancharlton - thanks for all the help, I think I got the scrolling to as smooth as it can be. Nov 07 15:59:02 Jokr: If you're handed a List of one element, you're treating it as if it were empty. Nov 07 15:59:20 Jokr: And iterating over a dynamically-sized list for a fixed number of iterations is a bad idea. Nov 07 15:59:24 the rest will depend on memory handling while downloading the images initially Nov 07 15:59:28 which I'll have to get to as well Nov 07 16:00:43 Tee_Pee: here's what I just whipped up (pulls from a contentprovider, but the principle is the same): http://pastebin.com/4strwA0s Nov 07 16:02:00 hmmm... the weirdest part is that when i complied the code awhile ago and ran it on my android device it showed 5/6 items. When i complied it again it showed only the first item Nov 07 16:03:52 would you like to see an image of what i am talking about? Nov 07 16:04:15 What is the right way to call methods from a seperate class? http://pastebin.com/EiqRf9SJ Seems to cause a null point exception Nov 07 16:04:37 Jokr: Not particularly. I'd like to see the code differences. Nov 07 16:05:25 docmur: What line does the NPE trigger on? Nov 07 16:05:25 Hey. I'm trying to figure out why my constructor isn't working. I'm kind of confused here. Why isn't it accepting 'searchItems'? There's the 2 lines of code I'm trying to run and below is the constructor. http://pastebin.com/qNdGjXKe Nov 07 16:05:26 i gives the same results unless i could clear some cache that it might have saved. Nov 07 16:05:34 evancharlton - yeah, this is essentially what I got as well now, except I load images from a file on the SD card rather than the gallery, but yeah, same principle. Nov 07 16:05:57 in CVPSearch this line: public class GetURLListData extends AsyncTask Nov 07 16:06:28 docmur: That's not a line of code. Try again. Nov 07 16:06:59 freannrak: What error do you get from the compiler? Nov 07 16:07:09 sorry it's this function, http://pastebin.com/YRmfYw52 Nov 07 16:07:23 kamoricks: The constructor TweetListAdaptor(SearchResultsActivity, int, ArrayList) is undefined Nov 07 16:07:25 docmur: What line? Nov 07 16:07:46 setProgressBarIndeterminateVisibility(true); Nov 07 16:07:48 freannrak: I'll need a more complete code sample. Nov 07 16:08:12 docmur: Post your entire stacktrace. You're guessing. Nov 07 16:09:23 kamoricks: hold on Nov 07 16:09:25 I'm not guess I'm reading the stack trace, CVP line 133: search.doSearch(query , 1); Then CVPSearch line 246: new GetURLListData().execute(query, page.toString()); then CVPSearch: 309 setProgressBarIndeterminateVisibility(true); Nov 07 16:10:03 but here is the trace: http://pastebin.com/32KRWByT Nov 07 16:10:19 if i change the phone's orientation and the last two rows that arent showing after you scroll down to them. They have values. Nov 07 16:10:46 This in term hides the top two rows and after you scroll back up they have values Nov 07 16:11:39 and i tried the to use adapter.notifyDataSetChanged(); , listView.refreshDrawableState(); & listView.requestLayout(); individually and together none of which worked. Nov 07 16:11:43 kamoricks: http://pastebin.com/Sd3nA5Pw and http://pastebin.com/gkcLnp0R Nov 07 16:11:46 to try and refresh the ui Nov 07 16:12:16 docmur: Your target intent for progress bar visibility is null. You'll want to call super.onPreExecute() first. Nov 07 16:13:02 Okay Nov 07 16:13:30 please halp http://codepad.org/W8TX1vD4 Nov 07 16:14:02 docmur: The NPE line in question was Activity.java:3614, by the way. Nov 07 16:14:18 bit clearer http://codepad.org/QnZkoFEQ Nov 07 16:14:31 well yes but my code has to be causing it. Nov 07 16:16:33 docmur, you're calling it before onCreate Nov 07 16:17:21 or it's happening after the activity is no longer visible Nov 07 16:17:24 kamoricks: i've no idea why it isn't accepting searchItems as ArrayList... it should, shouldn't it? Nov 07 16:17:27 clearer yet http://codepad.org/rPf1yZc1 what am i doing wrong Nov 07 16:17:29 regedit: what's your remove view ? Nov 07 16:17:33 freannrak: The error message says it is. Nov 07 16:17:43 oh sorry Nov 07 16:18:04 regedit: you can not use a toggle button in a remote view Nov 07 16:18:08 ... Nov 07 16:18:15 really?... Nov 07 16:18:42 it wouldn't do you much good Nov 07 16:18:45 yeah... read the doc Nov 07 16:18:50 Hi, if I have an horizontalscrollview on a viewpager,; how can I disable Viewpager touchevent on the horizontalscrollview area ? I tried, requestDisallowInterceptTouchEvent but nothing happens Nov 07 16:19:48 Ivru: http://developer.android.com/reference/android/widget/RemoteViews.html searching... Nov 07 16:19:55 kamoricks: interesting that line 30 here works perfectly... http://pastebin.com/0J052MTY Nov 07 16:19:57 I don't want to start the activity I just want to access methods from the CVPSearch Class so I shouldn't have to call onCreate(); Nov 07 16:20:04 regedit: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Nov 07 16:20:21 regedit: if a class doesn't have the @RemoteView annotation, you can't use it in removeviews Nov 07 16:20:21 yeah It's in the appwidget doc Nov 07 16:20:25 remoteviews, too Nov 07 16:20:38 freannrak: Are you sure that's the first error? Nov 07 16:20:41 Is there any way to get access to API Level 17 and a Nexus 10 emulator? Nov 07 16:21:08 how does the WiFi notification have a fancy on/off switch button? i want a switch like that too Nov 07 16:21:21 regedit: redraw the notification with the new state Nov 07 16:21:42 also, I suspect this "wifi notification" you keep talking about is some OEM-provided thing? like Samsung or something? Nov 07 16:21:59 nope, default on my ICS install Nov 07 16:22:19 er Nov 07 16:22:20 same as all on/off switches in Settings etc Nov 07 16:22:29 got a screenshot? Nov 07 16:22:49 http://www.google.com/search?q=android+on+off+switch&sugexp=chrome,mod%3D0&safe=strict&sout=1&um=1&ie=UTF-8&hl=en&tbm=isch&source=og&sa=N&tab=wi&ei=zoqaUN_lFuqO0QHC8IDIDw Nov 07 16:22:54 first images Nov 07 16:23:10 this is a setting Nov 07 16:23:13 not a notification Nov 07 16:23:17 Hi, if I have an horizontalscrollview on a viewpager,; how can I disable Viewpager touchevent on the horizontalscrollview area ? I tried, requestDisallowInterceptTouchEvent but nothing happens ?? Nov 07 16:23:25 kamoricks: don't forget me :( Nov 07 16:23:31 yes but it exists as a notification too Nov 07 16:23:39 regedit: I want to see a screenshot of this notification Nov 07 16:23:41 regedit: I've never seen it Nov 07 16:23:45 because that's definitely not a stock android thing Nov 07 16:23:52 kamoricks: pretty sure. :P Nov 07 16:23:53 oh, hang on Nov 07 16:24:20 regedit: hint - a screenshot from *your phone* would probably be simplest Nov 07 16:24:31 oh ok Nov 07 16:24:35 how do i snap Nov 07 16:24:53 kamoricks: I was using that code to display twitter's timeline in a listview. Now I'm trying to do the same thing for search results and it doesn't accept my ArrayList searchItems and wants to change the constructor in TweetListAdaptor Nov 07 16:24:59 power+voldown - or could be volup Nov 07 16:24:59 regedit, power+voldown Nov 07 16:25:01 regedit: power + voldown Nov 07 16:25:13 k hang on.. Nov 07 16:25:43 freannrak: Is it the same Tweet referred to in both places? Nov 07 16:26:09 freannrak: Change the constructor. See what it changes it to. It looks like you have two classes, both named 'Tweet'. Nov 07 16:26:26 can anyone help with this?: http://stackoverflow.com/questions/13254758/edittext-cursor-overlapping-last-letter Nov 07 16:26:34 hi Nov 07 16:26:41 :( Nov 07 16:26:56 is there a way to call a private void in another class without exposing it directly to external methods? Nov 07 16:27:19 BinaryMan: no Nov 07 16:27:24 BinaryMan: I feel like I'm going to regret telling you this, but you can use reflection Nov 07 16:27:28 kamoricks: Eclipse autochanged it to ArrayList searchItems. Oh well, now I feel stupid. Happy, but stupid. Nov 07 16:27:36 BinaryMan: but don't pretend it's secure Nov 07 16:28:02 evancharlton: is there a better, more secure way? Nov 07 16:28:21 argh as soon as i try screenshot, the notification drawer folds away... Nov 07 16:28:38 kamoricks: Thanks for taking the time to look at my code. Nov 07 16:28:48 regedit: camera or spare phone, take a photo... what phone do you have, anyway? Nov 07 16:30:02 I'm just waiting for regedit to post a screen before leaving Nov 07 16:30:24 k leme try snapping from my iphone or somethin.. Nov 07 16:30:58 I thought he's talking about the feature that was included with ICS that lets quick settings access from notification slide down Nov 07 16:31:06 I can definitely take a screenshot with the notification panel down on my phone Nov 07 16:31:46 same here :) Nov 07 16:32:09 wait Nov 07 16:32:09 maybe different combo of buttonpresses Nov 07 16:32:21 its a touchpad with ICS on it (dont ban me) Nov 07 16:32:21 nevermind, i think i found a public void that'll accomplish what i'm looking for Nov 07 16:32:39 k took iphone snaps, how to upload hmmm... Nov 07 16:33:10 regedit: so when you say 'ICS', you mean a cyanogen port or similar? Nov 07 16:33:18 ye Nov 07 16:33:56 zomg beta release emminent Nov 07 16:34:13 Is ToggleButton even supported in notifications? Nov 07 16:34:20 it is not Nov 07 16:34:27 There you go Nov 07 16:34:33 kamoricks: i know i am using one view to reiterate to form the list, i add the values in the getView function in my custom adapter class Nov 07 16:34:42 imageshack is blocked by my workplace, where else can i post Nov 07 16:34:46 I am trying to debug an app but I get INSTALL_FAILED_MISSING_SHARED_LIBRARY. Any ideas? Nov 07 16:34:55 regedit: so not, actually, stock Android Nov 07 16:35:00 regedit: http://imgur.com/ Nov 07 16:35:03 erasmospunk: install the library? Nov 07 16:35:12 Ivru: also blocked... :( Nov 07 16:35:18 Leeds: any tip? Nov 07 16:35:43 regedit: picasa Nov 07 16:35:45 Leeds: you'll see, it's definitely the stock on off switch Nov 07 16:35:53 on the emulator it works ok Nov 07 16:36:04 regedit: have you actually *used* stock Android? Nov 07 16:36:05 Leeds: no go.. Nov 07 16:36:24 Leeds: not much, bit Nov 07 16:36:32 I have a device with cyanogenmod Nov 07 16:36:44 but regedit like ... Leeds said (or someone else) it must be just a tow states imagebutton) Nov 07 16:36:44 I mean not whatever port you have on your touchpad, actual vanilla AOSP Nexus Android? Nov 07 16:37:06 stock ICS should have that quick settings feature Nov 07 16:37:25 email anyone? Nov 07 16:37:30 I thought it did Nov 07 16:38:10 PM me if you want email snapshot Nov 07 16:38:23 regedit: vmlinuz at gmail, I'll post it Nov 07 16:38:35 ah ok thanks, here goes Nov 07 16:40:08 right... that's the HC/ICS 'tablet-mode' quick settings Nov 07 16:40:10 note that what you are looking at is the notifications drawer open (Settings app in the background) Nov 07 16:40:12 it's not a notification at all Nov 07 16:40:30 oh? Nov 07 16:41:18 i guess you can figure out why i'd confuse those 2... how would i know Nov 07 16:41:36 https://lh4.googleusercontent.com/-0av2bEd3Crs/UJqPGfhg67I/AAAAAAAAHDU/YjcO7N9hYy8/s800/photo.JPG Nov 07 16:42:05 Hi, if I have an horizontalscrollview on a viewpager,; how can I disable Viewpager touchevent on the horizontalscrollview area ? I tried, requestDisallowInterceptTouchEvent but nothing happens ?? :( :( Nov 07 16:42:27 The fact that they are not visible along with the notifications would be the first hint Nov 07 16:42:35 it has a status bar icon and a drawer entry, seemed like that was Notification's turf Nov 07 16:43:02 you speak to me ? Nov 07 16:43:25 who me? no Nov 07 16:43:32 I have a swipe+tabs setup, and its setup to use fragments, which I got working fine, but now I have a listview and so far it seems I have to use a listfragment, is there anything else I have to do to implement it? Nov 07 16:43:34 ok Nov 07 16:43:43 No, Titi.. You should just stop doing what you're doing Nov 07 16:44:46 you don't have to use a listfragment in order to use a listview Nov 07 16:44:52 it's "easier" if you do, is all Nov 07 16:45:12 so if i want a foreground service with 1) a persistent status bar icon 2) a quick settings entry to switch this service of mine on/ff -- similar to the wifi -- do i need to use Notification apis at all? or just quick settings stuff Nov 07 16:48:01 You can't add your own quick settings Nov 07 16:48:34 Supported remoteviews widgets are here: http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout Nov 07 16:48:49 plus, that panel has pretty much gone away in 4.1, and been replaced in 4.2 Nov 07 16:48:54 They should really add API level to that list Nov 07 16:49:58 so what would be the recommended way to offer the user a way to quickly switch an on/off setting of this foreground service? Nov 07 16:50:27 should it perhaps be in a persistent non-cancelable notification? Nov 07 16:50:32 An app widget and not make it foreground Nov 07 16:51:16 maybe it's my activity that is doing something wrong. Can you help kamoricks gave me some information that i am inflating the same menu thats y i am getting these results : http://img525.imageshack.us/img525/1035/androidimage.png Nov 07 16:52:14 SimonVT: not sure i understand. im making a service that will be actively doing stuff in "foreground-land" (i.e. user is to be actively aware of it) so what do you mean not make it foreground Nov 07 16:52:54 here is my activity http://pastebin.com/BgBaFAEE and my adapter http://pastebin.com/BC3fdEuN Nov 07 16:52:57 pfn, in my main class, it has a function for Fragment, getitem, I cant use a listfragment with this can I? I am having trouble getting this switch/case function to call my Files class which is a listview Nov 07 16:53:09 You want it to remain foreground from boot til shutdown.. And basically taking up memory, and priority over other apps Nov 07 16:53:19 Not really recommended to do that Nov 07 16:53:23 SimonVT: i wish to have an icon in the status bar that can be touched to switch on/off Nov 07 16:53:32 similar to wifi Nov 07 16:54:00 SimonVT: I wish for a pony Nov 07 16:54:03 I'd argue that wifi is more important than your app Nov 07 16:54:34 SimonVT: ongoing speech recognition Nov 07 16:54:45 That can be turned off Nov 07 16:54:50 regedit: Here's what you can do. You can have a sticky notification that displays the current state, and when triggered, have it toggle the state. Nov 07 16:55:21 SimonVT: you are asking or stating? Nov 07 16:55:41 kamoricks: ye i guess that was kind of what i was doing up until this point, but the on/off switch is not supported apparently Nov 07 16:55:46 Just stating Nov 07 16:55:50 You're asking for recommendations Nov 07 16:55:57 I'm recommending you don't do that Nov 07 16:56:08 http://on.fb.me/SqxBgG & http://bit.ly/TI8Rnq please take a look at it and give me feedback :( Nov 07 16:56:30 SimonVT: what do you mean, how can it be turned off, and what if the user doesnt want to turn off general speech recognition - just turn off my service of continuous speech recognition Nov 07 16:57:33 SimonVT: this is to be a Voice Actions-like service, where you can command the device by voice to do stuff Nov 07 16:58:50 SimonVT: if the user so chooses, the service would be able to listen continuously Nov 07 16:59:20 in which case i need a status bar icon and quick way of switching it off Nov 07 16:59:28 and on Nov 07 16:59:49 oh well Nov 07 17:00:19 regedit: are you aware of the concept of something which you shouldn't do unless you know why you shouldn't? Nov 07 17:00:56 what are you trying to say, please clarify Nov 07 17:01:31 is it too much to ask to make a service that's kinda like wifi, with status bar icon and a quick way of switching on/off Nov 07 17:01:39 what if i were making a music app Nov 07 17:01:54 Then you'd put up a notification while it's playing music Nov 07 17:02:05 Not when the user stopped the player Nov 07 17:02:07 I'm trying to say that there may be ways to do what you're asking, but you shouldn't be considering them until and unless you're fully aware of why you shouldn't be doing it, and why you're a special case Nov 07 17:02:54 also, have you actually tested speech recognition from a Service yet? Nov 07 17:02:57 does DashPathEffect not work on some devices? Nov 07 17:03:06 SimonVT: fair enough, i'll do that. so, how is the icon & button done Nov 07 17:03:47 On old platforms, just put a button in your layout that says "stop" or whatever Nov 07 17:03:48 Leeds: i told you already yes, you are starting to annoy me with that repeated question Nov 07 17:04:01 pretty sure you didn't tell me yes Nov 07 17:04:02 On jb+ you can expand it, and put the stop button on one of the built in buttons Nov 07 17:04:18 Leeds: yesterday Nov 07 17:04:28 all my troubles seemed so far away! Nov 07 17:04:44 Leeds++ Nov 07 17:05:30 HEY TEACHER! Nov 07 17:05:31 SimonVT: which layout are you referring to, a remoteview in a sticky Notification? Nov 07 17:05:35 LEAVE THE KIDS ALONE! Nov 07 17:05:49 yes Nov 07 17:06:10 SimonVT: is that how like music services do it Nov 07 17:06:27 They probably use imagebutton Nov 07 17:06:39 But yes, those are notifications as well Nov 07 17:07:07 ah then i was on the right track after all, what a releif Nov 07 17:07:26 *relief Nov 07 17:07:35 thanks SimonVT Nov 07 17:07:50 Leeds: but yeah it works like a charm and then some Nov 07 17:08:01 Leeds: even while in other apps Nov 07 17:08:11 Right track, just remember to be a good android citizen Nov 07 17:08:20 Leaving a service foreground forever is not Nov 07 17:08:35 SimonVT: trying my best, worst case don't accept my app :P Nov 07 17:09:35 Worst case you'd link it here some day and I'd give it 1 star.. But if you're going to change your ways :) Nov 07 17:10:10 heh Nov 07 17:10:46 somehow i dont find it impossible to believe that after a user pauses music playing, that the notification/status-icon still lingers Nov 07 17:11:11 pauses or even stops Nov 07 17:11:17 am i wrong? Nov 07 17:11:17 It does after pausing Nov 07 17:11:22 That's just "hold on, just a minute" Nov 07 17:11:29 After stopping it goes away and the service is stopped Nov 07 17:11:47 why is there no damn Nov 07 17:11:49 flow layout Nov 07 17:11:59 i see, and then to make it show up again you need to open the app and start playing again? Nov 07 17:12:07 Reaga: There is. It's called LinearLayout. Nov 07 17:13:21 yes Nov 07 17:14:07 i see now, so yes i was possibly gonna do something evil :D at least now i know Nov 07 17:15:31 "flow layout" ? Nov 07 17:15:55 hello everyone Nov 07 17:16:05 * monsti loves to flow Nov 07 17:16:11 anyone who can help me something with webview Nov 07 17:16:13 ? Nov 07 17:16:38 Amex: see topic "Ask your question, don't ask to ask" Nov 07 17:16:45 ask your question about it and if someone knows they'll respond, most likely. Nov 07 17:16:57 ok, sorry Nov 07 17:17:15 how to prevent webview to reload after orientation change Nov 07 17:18:11 kamoricks: no thats just a grid layout with 1 column or 1 row Nov 07 17:18:20 how the fuck do i get rid of this header Nov 07 17:18:21 on my app Nov 07 17:18:29 Reaga: What "header"? Nov 07 17:18:41 http://developer.android.com/images/ui/sample-linearlayout.png Nov 07 17:18:46 the bit at the top that says relative layout Nov 07 17:19:01 Reaga: You mean the actionbar? Nov 07 17:19:10 Amex: you'll probably have to record the scroll position then re-set it after the orientation Nov 07 17:19:17 kamoricks: yeah? Nov 07 17:19:19 Amex: what the API to do that is, I don't know Nov 07 17:19:20 if thats what its called Nov 07 17:19:29 hey all. for some reason, every now and again when I run my app through the emulator, the emulator decides to reboot itself. not shut down, just restart. any ideas on how I get it to stop doing that? Nov 07 17:19:43 Reaga: .getActionBar().hide() on API 11+. Nov 07 17:20:00 Reaga: Also, if you're developing an application for a platform, it may be helpful to learn what things are called. Nov 07 17:21:00 kamoricks: i know. i just learned what one thing is called Nov 07 17:21:04 Amex: if I don't know the API, privmsg'ing me isn't going to make me suddenly know it. developer.google.com should have a whole page on it Nov 07 17:21:15 er, .android.com Nov 07 17:21:16 dragorn: ok Nov 07 17:22:03 dragorn: thing is that i tried all solutions, and still it's not working, it reloads every time :S Nov 07 17:36:27 i'm designing a Notification layout in eclipse, but it renders everything as if it were a fullblown app (with status bar and app header etc) is there any way to make the GUI preview a specific width/height and eliminate the extras, 'cuz this is for a notification (64dp i think) Nov 07 17:37:19 the WYSIWYG editor Nov 07 17:37:46 dp doesn't change in a notification, just the size Nov 07 17:38:15 i think it does let you view it in different sizes/configurations, but i'm not sure if it lets you do custom ones Nov 07 17:38:25 been a while since i used it >_< Nov 07 17:38:36 i was trying to find a configuration for Notification Nov 07 17:38:54 that's definitely something i'd suggest to the ADT devs Nov 07 17:46:36 regedit, can you not specify exactly what dimensions you want? Nov 07 17:48:06 trying different things, wouldve been nice if there was a ready config for different kinds of layouts - everything seems to be geared for fullblown app Nov 07 17:50:51 guys? Nov 07 17:50:55 my style ISNT WORKING Nov 07 17:51:00 ITS NOT DOING ANYTHING WHEN I CHANGE THE STYLE Nov 07 17:51:12 Reaga: then go down to the store and get some new clothes! Maybe a haircut as well Nov 07 17:51:16 WHOA CALM DOWN Nov 07 17:51:53 all caps is capital offence Nov 07 17:52:02 no pun intended whatsoever Nov 07 17:52:09 regedit: custom notifications is pretty advanced... Nov 07 17:52:53 if you need drag'n'drop handholding... Nov 07 17:53:45 Leeds: how advanced should this be already? cant a guy make a music app around here, or some service which needs some quick setting/config Nov 07 17:54:12 it's. not. quick. setting. Nov 07 17:54:36 wasnt referring to Quick Settings Nov 07 17:54:41 and no, people who've been playing with Android for a few days aren't usually trying to write full-featured music apps Nov 07 17:54:51 well excuse me if i do Nov 07 17:55:05 regedit: sorry if I missed it, but did you ever post a screenshot? Nov 07 17:55:25 evancharlton: https://lh4.googleusercontent.com/-0av2bEd3Crs/UJqPGfhg67I/AAAAAAAAHDU/YjcO7N9hYy8/s800/photo.JPG Nov 07 17:55:27 evancharlton: Leeds posted it for me Nov 07 17:55:36 he was referring to the HC/ICS 'tablet-mode' quick settings Nov 07 17:55:58 oh, yeah, that's not a notification. Nov 07 17:56:10 Leeds: talking of which, link to statement that it's being pulled? Nov 07 17:56:24 nope Nov 07 17:56:27 just trust me Nov 07 17:56:38 i thought you said in 4.2 they're removing it Nov 07 17:56:42 oh Nov 07 17:56:44 but it doesn't matter, because you can't touch it, can't integrate with it, can't make any use of it Nov 07 17:56:46 no way man Nov 07 17:56:57 it is not something which concerns you as an app author Nov 07 17:57:31 also your mention of a concept "tablet-mode" intrigues me, i shall google on that Nov 07 17:57:42 yeah, that? also going away Nov 07 17:57:48 oh Nov 07 17:58:23 Leeds: Are they adding some new quick settings thing? Nov 07 17:58:29 I haven't looked up 4.2 changes at all Nov 07 17:58:52 SimonVT: yeah... it's a two-finger drag down, or a button on the notification panel... it's sort of big toggle buttons, looks a bit like the car mode launchers Nov 07 17:59:13 ah Nov 07 17:59:50 http://androidheadlines.com/wp-content/uploads/2012/11/tablets-pulldown.png on tablets, http://forums.androidcentral.com/attachments/google-nexus-4/43658d1351525210t-android-4-2-quick-settings-settings.jpeg for the phone Nov 07 18:00:48 Also two-finger drag on tablets? Nov 07 18:00:52 I kinda liked that it was just a tap Nov 07 18:01:08 not sure about that - most of the reports have been for the N4, not N10 Nov 07 18:01:25 Alright Nov 07 18:01:35 we will know more next week... Nov 07 18:01:53 yeah Nov 07 18:02:06 been lots of people wondering if there might be any way for apps to integrate with it, now it's AOSP-standard... not heard anything from any Googlers Nov 07 18:06:13 is it possible to use ListFragment with newinstance Nov 07 18:06:46 I don't really see it making 4.2.. It's kind of like they haven't really completely decided on an approach yet Nov 07 18:07:06 Extend ListFragment, make a newInstance method Nov 07 18:09:37 hi, I'm an android beginner. I want to create an app that lets you order food from a restaurant. The restaurant itself has to get notifications about orders somehow (not necessesarily in an android device). What is the prefered android way of doing this app. I'm thinking about sending http requests with JSON to a web server running php and storing data about orders in MySQL on the remote server. Any other ways to think about this? What's common in andro Nov 07 18:10:05 hi Nov 07 18:10:19 trytrytry: that's how i'd build it Nov 07 18:13:01 oh wow you can pull down both notifs and quick settings at the same time? Nov 07 18:13:04 ill pay a small fee if someone can help get a listview working with a fragment Nov 07 18:13:05 * canadiancow learns something new every day Nov 07 18:13:26 canadiancow: me, too Nov 07 18:14:30 http://arstechnica.com/gadgets/2012/11/review-android-4-2-is-a-sweeter-tasting-jelly-bean/ may be of assistance - also, http://www.android.com/whatsnew/ Nov 07 18:14:41 don't you all check android.com for new stuff every morning over breakfast? Nov 07 18:15:11 android.com? not really Nov 07 18:15:14 androidpolice.com maybe Nov 07 18:15:57 bah Nov 07 18:15:59 lightweight :P Nov 07 18:16:21 if i got all my information from android.com i'd never know anything Nov 07 18:16:47 are you trying to say that it's not an info-rich site of knowledge? Nov 07 18:17:02 im trying to say that it's updated a lot less frequently than other places i go for my information Nov 07 18:17:10 aka "yes" :) Nov 07 18:17:14 * Leeds -> to shower Nov 07 18:25:41 im new to android Nov 07 18:25:57 im trying to get this theme working but its not doing anything Nov 07 18:28:13 it's like the inverse of Jeopardy.. your question must be in the form of a question Nov 07 18:29:27 whats the difference between styles and themes Nov 07 18:30:33 http://developer.android.com/guide/topics/ui/themes.html Nov 07 18:30:42 "A style is a collection of properties that specify the look and format for a View or window." Nov 07 18:30:51 "A theme is a style applied to an entire Activity or application, rather than an individual View (as in the example above)." Nov 07 18:32:41 hmmm Nov 07 18:33:01 maybe its because im running cyanogenmod Nov 07 18:33:27 theres only 1 theme under Theme Chooser Nov 07 18:34:21 are you asking a development question? Nov 07 18:34:28 this channel is about writing apps Nov 07 18:34:50 er... yeah... are you trying to theme your app, or the system? Nov 07 18:35:03 i think just choose the theme :) Nov 07 18:35:17 . . . im trying to write an app Nov 07 18:35:25 and im not succesfully changing the theme on it Nov 07 18:35:45 then that has absolutely nothing to do with Cyanogenmod's theme chooser Nov 07 18:36:02 alright Nov 07 18:39:23 anybody know of some sort of hack force a device that reports itself as xlarge to use non xlarge resources? Nov 07 18:39:56 preds: for your app? Nov 07 18:40:07 I have to get this app running nicely on the kindle which reports itself as an xlarge, even though it falls below google's official xlarge recommendations Nov 07 18:40:12 Leeds: yeah Nov 07 18:40:16 is there a way to create custom AVDs that match an *exact* hardware spec? Nov 07 18:40:21 then fix your resources Nov 07 18:40:24 assuming I know the hardware spec before hand Nov 07 18:40:28 sleepster: no Nov 07 18:40:39 sleepster: not without writing the code for qemu to match your exact hardware, anyway Nov 07 18:40:40 cant solve this Nov 07 18:40:42 its too hadrt Nov 07 18:41:02 also, kindle is not considered a 'compatible' device, so it's perfectly normal to have to hack your app to support it Nov 07 18:41:05 I see.. thanks zinx . Do you know if people have done this by modifying qemu? Nov 07 18:41:06 sleepster: you can match things like screen size/density, accelerometer, etc Nov 07 18:41:23 Reaga: start by saying what you are trying to do, without telling us about what you tried. Nov 07 18:41:26 sleepster: but at the hardware level, you can't specify which screen chips are used, which accelerometer chip is used, etc Nov 07 18:41:42 I gotcha.. that makes sense Nov 07 18:42:02 sleepster: i would be very surprised if anyone had modified qemu for that support, it's ridiculously hard to do, and most people don't have the necessary specifications Nov 07 18:42:11 also a fair amount of compatibility issues, for me at least, come from vendor software rather than hardware. so you really need the real device to fully test against it Nov 07 18:42:38 zinx: I see. I am just wondering if given the exact phone and model (e.g. Samsung SGH-959T, etc.), is there a way to test that exact phone model Nov 07 18:42:51 without buying a 300$ phone of course Nov 07 18:42:52 sleepster: yes, get that exact phone and try your software on it Nov 07 18:43:00 hah Nov 07 18:43:01 sleepster: i think you're asking the wrong questions though Nov 07 18:43:20 sleepster: if you're having a problem on specific devices, you're probably not using the standard Android API Nov 07 18:43:42 sleepster: if you /are/ using the standard API, and are still having problems, you should make a test case and submit it so that it can be added to the Compatibility Test Suite Nov 07 18:43:51 I am making some modifications to the android OS, and I was hoping to create a test suite that runs all across the most popular phones and models to ensure that things are not broken Nov 07 18:43:55 sleepster: because it's a bug in the phone Nov 07 18:43:59 ah Nov 07 18:44:07 sleepster: are there any android meetups near you? Nov 07 18:44:15 some of them might have device sharing programs Nov 07 18:44:23 tdignan: im just trying to change the theme of my very basic application but nothing is happeneing Nov 07 18:44:24 tdignan: ah interesting.. Nov 07 18:44:24 like, loaners. Nov 07 18:44:29 sleepster: embedded hardware is nowhere near that simple, and almost all devices have customized versions of Android Nov 07 18:44:33 everyone groups their devices together Nov 07 18:44:50 Reaga: are you setting the theme in the manifest? Nov 07 18:45:00 I see. thanks guys for the input.. much appreciated Nov 07 18:45:01 paste your manifest Nov 07 18:45:49 on to question #2 :) I need a way to secure communication between my Linux service and a set of specific apps that I am loading onto the appliance... is there a simple, fast, secure way to do this? Nov 07 18:46:02 I looked into BSD sockets, but I don't like the idea of having to encrypt/decrypt Nov 07 18:46:05 to secure the channel Nov 07 18:46:30 I also noticed that Android OS supports DBus Nov 07 18:46:53 I was thinking of using DBus since I am familiar with it, but not sure if there is a better solution Nov 07 18:47:30 tdignan: yeah Nov 07 18:48:05 sleepster: whats wrong with intents Nov 07 18:48:35 tdignan: http://pastebin.com/UGCJEggs Nov 07 18:48:39 oh, "Linux service" Nov 07 18:48:44 tdignan: intents are global and I am worried about spoofing possibilities Nov 07 18:48:44 not android service :) Nov 07 18:48:44 i set my theme to apptheme Nov 07 18:48:55 sleepster: I am not sure you are 100% right about that. Nov 07 18:49:05 intents have security facilities, permissions, and all that Nov 07 18:50:00 Reaga: lets see GoalTheme Nov 07 18:50:06 tdignan: do you know if intents can be hijacked? Nov 07 18:50:06 er AppTheme Nov 07 18:50:18 there will be very important information going through this channel Nov 07 18:51:17 on a non-rooted phone, an intent protected by a permission that is signature or system only is safe. on a rooted phone nothing is safe Nov 07 18:51:51 tdignan: whats GoalTheme? Nov 07 18:52:28 you can also use IBinders from linux processes, but things can be awkward because you can't easily get a context to like bind to a service Nov 07 18:52:38 sleepster: read the BroadcastReceiver doc page Nov 07 18:52:51 access control can be imposed on both the send and receive end of a broadcast Nov 07 18:52:59 so yeah, you can supposedly secure it. Nov 07 18:53:00 did you mean AppTheme? Nov 07 18:53:08 Reaga: 13:50 < tdignan> er AppTheme Nov 07 18:53:21 oh right, i dint see that message Nov 07 18:53:25 im not very observant Nov 07 18:53:51 hi everybody... On my app I sometimes get an IllegalStateException, that the contents of a ListView have changed without notifying the ListView that it has changed. Unfortunately I have no idea where this comes from. This only happens sometimes, I think after the app in background has been deleted when there is not enough RAM. Does anybody have an idea, what method exactly is causing the exception? http://pastebin.com/N7mKik8v Nov 07 18:54:04 tdignan: http://pastebin.com/Z67SfDbK Nov 07 18:54:37 evident: you need to call notifyDataSetChanged() when you add or remove items from the data that backs your ListAdapter Nov 07 18:56:21 i fixed it finally Nov 07 18:56:32 such a breath of fresh air Nov 07 18:56:38 tdignan: I know... I do this when I add or delete items of the list every time... Most of the time works fine. As I said this is only sometimes, after the app has been in background for a while... Nov 07 18:56:53 Hello. Can anyone say why this is charshing the app https://gist.github.com/4033611 Its the same as in Documentation. Nov 07 18:57:00 Reaga: looks fine -- so what do you expect that to do? Nov 07 18:57:54 evident: well, what's in the data when it comes back? Nov 07 18:58:10 evident: set a breakpoint and look or run some code from onResume to print it out Nov 07 18:58:23 tdignan: to show a theme other than the default one Nov 07 18:58:39 Reaga: do you know what the default theme is on your device? Nov 07 18:58:47 what device are you using and what is its default Nov 07 18:59:07 i dont know what the default is Nov 07 18:59:11 try Theme.Holo.Light.. That will probably change it for you :) Nov 07 18:59:17 ive just been trying all the different themes and they all look the same Nov 07 18:59:17 I think your default *is* holo. Nov 07 18:59:38 no its still the same Nov 07 19:00:08 should i just give up Nov 07 19:00:09 I think your next step should be to do the research to find out what your default theme is Nov 07 19:00:17 how about on the emulator? Nov 07 19:00:31 tdignan: hmm well I don't know what is in the data. It just crashes the app, when I restart it it works fine again... And the error doesn't happen very often, so it's hard to reconstruct... I guess I will have to put in some debug information and output and hope I will see then where exactly this is caused... Nov 07 19:00:35 o god not the emulator Nov 07 19:00:55 evident: it's probably happening only if your activity is recycled Nov 07 19:01:13 er, no Nov 07 19:01:20 I'm trying to get the current users name, mail and phone number. ContactsContract.Profile provides me with user_display_name how do I get the other requested values? Probably someone has a snippet for this? Nov 07 19:01:25 Just run some code from onResume() Nov 07 19:01:29 to print out the data Nov 07 19:01:43 http://johnnystreet.com/synthesizer/ <-- finished the basics, working on jazzing it up still Nov 07 19:02:15 it's a fun project to play with, so I am just sort of journaling what I learn as a how-to Nov 07 19:02:25 tignan: that's what I am thinking, too... that maybe the data is getting garbage collected somehow... Nov 07 19:03:22 hey guys Nov 07 19:03:32 root66: cool. i think moog has a synth engine for iStuff Nov 07 19:03:41 evident: where does the data come from/ Nov 07 19:03:52 Hey everybody! Go grab the new Android GroupMe Beta! :) Nov 07 19:03:54 http://goo.gl/iW3hw Nov 07 19:04:11 facebook stole our deck idea >_> Nov 07 19:04:24 what happens if you use res/layout-sw600dp/* on a device <3.2, will it just ignore that directory entirely? Nov 07 19:05:43 If I get IllegalStateException do I need to just trycatch it? Nov 07 19:06:18 if you can't prevent it then sure.. Nov 07 19:06:32 "Cool app, would totally use it if I had friends" 5 stars Nov 07 19:06:55 preds I get it when trying to launch new Activity, so I guess. Thanks (: Nov 07 19:07:49 preds, it gets ignored Nov 07 19:07:58 thanks pfn Nov 07 19:08:44 Raimonds, the exception should give you more info as to why it's being thrown though, starting a new activity is unlikely to be a case where you should try/catch it Nov 07 19:10:36 preds, yes, it ignores it Nov 07 19:11:34 Hello, I have a simple settings preference screen that has two checkboxes currently. Whenever I initially open the settings activity, it says I used 4.0KB data, and then when I check one or the other, it increases to 8.0KB. How come this is so high? Nov 07 19:11:51 Two simple booleans shouldn't be 8KB. Nov 07 19:12:27 im going to go out on a limb and say it has something to do with the filesystem Nov 07 19:12:43 and how all files are multiples of 4KB Nov 07 19:12:54 so you open the app, and you get some kind of default file, taking 4K Nov 07 19:13:01 the constant change in orientation crashed my app... i tried to add android:configChanges="orientation|keyboardHidden" in my manifest to stop my application from calling OnCreate again but it still gets called (i added onConfigurationChanged) and its not working. Nov 07 19:13:04 then you change a pref, and it creates the pref XML, which is another 4k Nov 07 19:13:11 and why are you worried about 8k? Nov 07 19:13:11 preds https://gist.github.com/4033611 the thing is, maybe my eclipse is bugging out, I dont get any info from logcat or console it just crashes anyway, but Thread is only place that shows its suspended. http://i.imgur.com/9tNGr.png It just opens the View.java file on crash. Nov 07 19:13:20 brilliant deductions Nov 07 19:13:50 My android internal storage memory is precious, and I can create a XML file that stores preferences in under a KB. It could start to add up easily. Nov 07 19:14:05 upgrade your device Nov 07 19:14:15 this is how filesystems work Nov 07 19:14:31 What do you mean? Nov 07 19:14:39 pretty sure ijust explained it Nov 07 19:15:19 Yeah, but that's not how all filesystems work? I'm not sure where you're going with it. Nov 07 19:15:46 well, if your device is exhibiting that behaviour... Nov 07 19:15:54 perhaps instead of quarreling you should research what filesystem you have and whether this is true of it. Nov 07 19:15:58 i would bet it is Nov 07 19:17:00 Ahh, I understand now. I missed the 'how all files are multiples of 4KB' sentence. It makes sense now. Nov 07 19:17:32 Thanks for your help. Nov 07 19:17:47 regardless, dotn worry about a few KB Nov 07 19:19:05 you can choose smaller block sizes too, but it's always a trade off between file size and fragmentation Nov 07 19:19:14 (which wouldn't matter much on flash memory anyway) Nov 07 19:19:25 unless your filesystem does tail packing (giggity) you're going to be dealing w/ the minimum block size Nov 07 19:19:32 yea... i think most modern filesystems dont make sense for flash memory Nov 07 19:19:41 indeed Nov 07 19:20:01 adding another preference item isn't going to add another 4k unless you make another preference file. Adding another 4.01k of preference options will make it 8k Nov 07 19:20:04 not sure if btrfs has a minimum block size, ext4 has 1024 according to man Nov 07 19:20:32 i remember back in the day setting it to whatever the maximum was on NTFS Nov 07 19:20:37 to try to reduce fragmentation Nov 07 19:20:42 tdignan: i ran it in the emulator, looks same Nov 07 19:25:36 canadiancow: yeah, it was common to tune filsystem block size by workload; for a mail server you would use small blocks Nov 07 19:26:04 this was on my desktop Nov 07 19:26:11 storage space was cheap, speed was expensive Nov 07 19:26:26 * hackkitten waves at g00s o/ Nov 07 19:26:32 hey hackkitten :D Nov 07 19:26:48 :D Nov 07 19:26:54 * hackkitten hi-paws g00s ^--^ Nov 07 19:26:57 how's things? Nov 07 19:27:03 still lovin' the Android? Nov 07 19:27:18 hehe, as loving as i get, heh Nov 07 19:27:34 :) Nov 07 19:27:43 hackkitten: how are the games doing :) Nov 07 19:27:43 * hackkitten is focusing more on cross-platform these days :o Nov 07 19:27:46 doing alright Nov 07 19:27:50 when detecting touch events how do I figure out if the user has touched and moved. I thought it was MotionEvent.ActionMove but the break point never triggers when I swipe on the screen Nov 07 19:27:52 about to release the first Windows game Nov 07 19:27:59 and working on a new cross-platform mobile game Nov 07 19:28:08 WP7 and Android for now Nov 07 19:28:09 hackkitten: use a cross platform game engine, or natice stuff ? Nov 07 19:28:16 former Nov 07 19:28:23 no idea how to get it on iOS, though Nov 07 19:28:26 * hackkitten kicks stupid Apple Nov 07 19:28:55 hackkitten: which engine ? Nov 07 19:30:46 god damnit, the ADT's dependency resolution stuff is such a huge mystery to me. Nov 07 19:30:50 it's such magic. Nov 07 19:31:00 g00s > Cocos2D Nov 07 19:31:04 presto chango your project is broken Nov 07 19:31:04 randomly closing projects and opening them up again seems to actually be a necessary step in a lot of cases Nov 07 19:31:08 * lov waves a wand Nov 07 19:31:53 as well as cleaning projects Nov 07 19:32:00 I clean every time before I run :D Nov 07 19:34:23 i tired to learn more about themes here http://developer.android.com/guide/topics/ui/themes.html#PlatformStyles Nov 07 19:34:30 hackkitten, cocos2d-x? Nov 07 19:34:45 but the link to here is dead http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/values/styles.xml;h=d7b654e49809cb97a35682754b1394af5c8bc88b;hb=HEAD Nov 07 19:35:05 its Android Styles (styles.xml) on the first web pge Nov 07 19:35:08 so now i cant learn Nov 07 19:35:44 stupid thing sucks Nov 07 19:36:07 canadiancow > yup Nov 07 19:36:41 :( Nov 07 19:36:44 when i tried it i hated it Nov 07 19:36:49 why is that? Nov 07 19:36:50 it was the worst Nov 07 19:36:56 if the name of the file is styles.xml, whya re styles referred to with @style rather than @styles Nov 07 19:37:21 Because file names don't matter in values/ Nov 07 19:37:23 "Warn about package private methods in subclasses with the same signatures as package private methods in a different package: Dalvik will treat these as overridden methods." -- whoa, it will? Nov 07 19:37:27 And you defined a