**** BEGIN LOGGING AT Mon Jul 23 02:59:58 2012 Jul 23 03:00:14 yesterday my DNS wouldn't resolve Google Jul 23 03:00:17 I had to bing something Jul 23 03:00:31 I've got my Activity creating a class that needs to go back and change some ViewText on the Activity. What's the typical way to do this? Jul 23 03:00:44 (if ever) Jul 23 03:01:44 canadiancow|work: gsmarena has a pretty good phone finder feature, you should be able to narrow it donw there Jul 23 03:02:09 *down Jul 23 03:05:09 TextView* Jul 23 03:05:19 right :) Jul 23 03:05:31 ((TextView) findViewById(R.id.myTextView)).setText("canadiancow is awesome"); Jul 23 03:10:23 Sorry I mean I need to modify it from a different class than the Activity Jul 23 03:23:12 BlehTM you might want to reconsider how your app is structured Jul 23 03:23:41 I expect you're right! Jul 23 04:00:11 hmm Jul 23 04:00:16 make sdk is a lot slower than i remember ;) Jul 23 04:22:14 Hey guys, I noticed in the latest Google IO app that it automatically flips between tabbed navigation mode to list navigation mode on landscape, but I don't see any code that's doing this... am I missing something? Jul 23 04:26:46 Anybody? Jul 23 04:32:31 Chronax: havent looked at it, but probably has a xml file for the ladnsacpe layout that takes over automatically when orientaion is changed Jul 23 04:32:41 look in layout-land under res Jul 23 04:33:32 Yeah, I did. Jul 23 04:33:47 Only thing that's different about the landscape layout is that it's root element is a . Jul 23 04:33:54 But nowhere in the Java is there a reference to list navigation for ABS. Jul 23 04:40:31 Chronax: tab navigation collapses to list when space is at a premium Jul 23 04:40:56 http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Jul 23 04:41:01 "Note: In some cases, the Android system will show your action bar tabs as a drop-down list in order to ensure the best fit in the action bar." Jul 23 05:10:05 so onSaveInstanceState and onRestoreInstanceState work as expected when pressing the back button Jul 23 05:10:23 however it doesn't work when I press the in-app back button at the top left, why is this so? Jul 23 05:10:38 is there another method I should be over riding? Jul 23 05:14:21 I'm guessing this is what happend "One example of when onPause() and onStop() is called and not this method is when a user navigates back from activity B to activity A: there is no need to callonSaveInstanceState(Bundle)" http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Jul 23 05:16:11 ah, so I'm just dense, thanks :) Jul 23 05:41:06 ladies. Jul 23 06:15:47 anybody could have any theory as to why my service actually restarts when I close the program(and services onDestroy gets called) and even when I kill the program that uses it with task killer. Still the services onCreate gets called. Jul 23 06:16:20 Very annoying. Guess it's good that it now stays on as intended but bad that I can't get it shutdown when I want it to shut down :-( Jul 23 06:27:19 uhh Jul 23 06:27:24 task killers arent reliable Jul 23 06:43:26 My app's UI still relies on successfully determining if the device is phone of a tablet Jul 23 06:44:02 is that a design choice that's gonna bit me 4.1+ Jul 23 06:44:05 ? Jul 23 06:44:47 I current render differently by defining different layouts and styles in -large, -xlarge Jul 23 06:45:06 yes Jul 23 06:45:17 you cannot rely on -large and -xlarge to determine whether something is a phone or a tablet Jul 23 06:45:29 also, there really isn't the notion of phones and tablets in the Android world Jul 23 06:46:07 what is a device with a 7 inch screen, a cell radio and voice service? a phone or a tablet? Jul 23 06:46:16 your app should adapt to the available screen size based on the -w and -sw qualifiers and display what is appropriate for that configuration Jul 23 06:46:19 what is a device with a 4 inch screen and no cell radio? Jul 23 06:46:21 it helps if you think like a web developer Jul 23 06:46:56 helps if you don't think like an iOS developer... Jul 23 06:47:07 you don't know what size the browser will be on the client, you just have to write your websites in a way that they adapt to the amount of space available and display information accordingly Jul 23 06:48:32 well when I started writing it I was relying on SCREENLAYOUT_SIZE_LARGE and SCREENLAYOUT_SIZE_MASK to figure whether I would be able to show a two panel or a single panel activity Jul 23 06:49:46 I took reference from iosched which if I remembered correctly was doing something similar Jul 23 06:51:05 any sample app I could refer which is doing it right? Jul 23 06:51:46 the new iosched? Jul 23 06:52:22 hmm.. f2prateek It might be old Jul 23 06:53:10 new iosched f'sho Jul 23 06:53:15 hemanshu: yeah i meant look at the new one, generally it has the best practices to fllo Jul 23 06:53:21 *foloow Jul 23 06:53:27 *follow Jul 23 06:53:54 ok I'll have a look at it f2prateek JakeWharton thanks Jul 23 07:17:54 hi Jul 23 07:21:36 i'm trying to pass info to a specific fragment from my ABS submenu, which has tabs and loads 3 different fragments, what's the best way? ideally i'd like to call a fragments method from there: http://pastebin.com/GNBLm64e Jul 23 07:22:23 i'm using onMenuItemClick, which runs a toast, on line 50 and i load the rags on line 70 Jul 23 07:33:31 JakeWharton: what's the recommended way to update abs, I'll be using it in my project and would like to keep updating it for all the new fixes that get committed to it Jul 23 07:33:57 I'm not sure what you mean Jul 23 07:34:06 When there's a new version, download and replace the one you have Jul 23 07:34:26 Or use a build system that interfaces with Maven central dependencies and just change the version number in your configuration file Jul 23 07:34:36 I meant if there was a git or svn repo for it Jul 23 07:34:45 it's on GitHub Jul 23 07:35:10 ok Jul 23 07:37:32 I currently build with eclipse, would moving to Maven be recommended ? Any major advantage that Maven has over simple eclipse build system? Jul 23 07:41:27 I can list a lot of advantages but I'm not sure they're worth your time Jul 23 07:41:59 All I can say is that my projects have many modules and many dependencies and I think it's a complete farce that people manage things like that themselves through ant Jul 23 07:42:22 I hear that the Android build system is broken... Jul 23 07:44:52 I may or may not be a bit riled up on that subject tonight :) Jul 23 07:45:15 JakeWharton, can you advise me on the best way to interact from the ABS with my fragments (loaded via tabs ) ? Jul 23 07:45:39 is there anything specific abotu abs for that? Jul 23 07:45:41 fragments get menu callbacks dispatched through the normal system Jul 23 07:45:52 I just learnes i can define my menus from the fragment itself, is there any example of this ? Jul 23 07:45:57 so long as you use athe appropriate activities Jul 23 07:46:03 seems like fragment interaction is business as usual Jul 23 07:46:09 JakeWharton: you may or may not have a blog which looks like graph paper... Jul 23 07:47:00 Leeds: Haha yeah I haven't blogged in a few months and that struck me as odd when I saw it. I need to clean up the look a bit. The background makes the text harder to read than it should be. Jul 23 07:47:21 ddreamer0: there are examples in the API Demos that ship with the Android samples Jul 23 07:47:35 all you have to do to adapt them to ABS is use the correct imports (com.actionbarsherlock.view.* rather than android.view.*) Jul 23 07:53:13 yay, full-on typhoon coming! Jul 23 07:54:16 good Typhoon or bad Typhoon? Jul 23 07:55:49 not particularly serious, I think - but they've said they'll put up the full alert at or before 6pm, which means Hong Kong closes early today Jul 23 07:57:25 but it's a real storm, and it's really coming close enough to have a serious effect - I popped out to stock up on essentials (i.e. Coke and Pringles) half an hour ago, and I almost lost my umbrella in a gust - and it's a solid substantial umbrella, and I'm a solid substantial bloke Jul 23 07:57:29 time to watch my admob Jul 23 07:57:40 bad typhoon then Jul 23 07:57:56 this is a good typhoon: http://www.ukairshows.info/2004/airshows/farnborough/photographs/raf_typhoon_0.jpg Jul 23 07:58:22 oh, right... yes, typhoon as in hurricane Jul 23 07:58:43 one of these? http://www.flightglobal.com/airspace/media/berniec/images/22526/raf-hurricane.jpg Jul 23 07:59:11 sorry :/ I'm being annoying today and it's not even 9am here yet Jul 23 07:59:13 >_< Jul 23 08:00:04 no, one of these: http://www.ssd.noaa.gov/PS/TROP/floaters/09W/imagery/avn0-lalo.jpg Jul 23 08:04:06 <_Auron_> Leeds: be safe Jul 23 08:04:18 thanks, staying home until it passes :) Jul 23 08:04:30 <_Auron_> natural disasters suck Jul 23 08:04:42 JakeWharton: thanks i hadn't seen the fragment samples! they're great! Jul 23 08:05:18 they rarely cause any real issues here - more of an annoyance than anything else... HK has pretty solid buildings, and the entire reason for its existence is that the harbour is well-protected from typhoons by the hills around it Jul 23 08:05:35 JakeWharton: i see the sample uses: public void onCreateOptionsMenu(Menu menu, MenuInflater inflater), must this return something or call a super ? doesn't look like it but it surprised me Jul 23 08:58:17 Do I actually have to download the preferences-icon to use it ? Jul 23 08:58:27 doesn't it ship with android..? Jul 23 08:59:27 http://developer.android.com/reference/android/R.drawable.html Jul 23 09:00:33 Hey anyone worked on bluetooth a2dp? Jul 23 09:02:34 ixc: looking for the one with three squares in a vertical line, but can't seem to find it.. ic_menu_preferneces is just a wrench or something Jul 23 09:04:55 if icon not on the list, you need deliver it Jul 23 09:10:24 * tophyr scratch head Jul 23 09:10:30 (lldb) po self Jul 23 09:10:30 error: use of undeclared identifier 'self' Jul 23 09:12:47 hi guys,i m building a calculator app any idea on how to perform the calculations like i am able to append numbers n signs on screen but how to add or multiply or perform the operations? Jul 23 09:13:37 like i have the first number n memory but after pressing the say + sigh how to get the second number for operation? Jul 23 09:14:20 hey jug6ernaut Jul 23 09:14:42 what is (lldb) ? Jul 23 09:14:48 @ tophyr Jul 23 09:15:01 (lldb) bumm Jul 23 09:15:18 spobat: ios debugger. posted in wrong chan Jul 23 09:15:27 okay~ Jul 23 09:15:37 llvm-based debugger, I guess Jul 23 09:15:44 ll? Jul 23 09:15:49 low level? *g* Jul 23 09:15:57 spobat: yes Jul 23 09:15:58 I'd like the overflow-icon to always appear in the actionbar ( even if the phone has got the menu-button).. is it possible? Jul 23 09:16:02 omfg im awesome :> Jul 23 09:16:06 p_l|home: yeah, ios runs on llvm Jul 23 09:16:30 hi guys,i m building a calculator app any idea on how to perform the calculations like i am able to append numbers n signs on screen but how to add or multiply or perform the operations? any ideas? Jul 23 09:16:34 XeruX: pre ICS its possible Jul 23 09:16:43 like i have the first number n memory but after pressing the say + sign how to get the second number for operation? Jul 23 09:16:49 if you're using ActionBarSherlock, Jul 23 09:17:18 hemanshu: Not using ActionBarSherlock Jul 23 09:17:54 but still, ICS Jul 23 09:18:19 so it's not possible for me to have the overflow icon shown if the phone has got a button for the menu? Jul 23 09:19:08 naa last I look up he won't show it if a physical option button is present Jul 23 09:19:35 adicool123: are you really asking how to perform mathematical operations? Jul 23 09:19:45 not actually Jul 23 09:20:03 why does this dialog look this "ugly"? Jul 23 09:20:03 https://dl.dropbox.com/u/6559846/hasdhas.PNG Jul 23 09:20:04 say user types 9 Jul 23 09:20:08 What went wrong here? Jul 23 09:20:19 then presses+ Jul 23 09:20:34 then how to do get the next number? Jul 23 09:24:30 hi Jul 23 09:27:19 I have a image.png in my assets folder, and when I change some thing in tat image.png file and recompile project in the emulator app show still the old content of image.png - how I may fix it ? I work on eclipse and clean project and clean source doesn't help ;-( Jul 23 09:29:32 *that Jul 23 09:31:27 kselos: tried to re-ading the image after modification?? Jul 23 09:35:28 hmm, where on the sdcard does an app specific DB linger around? Jul 23 09:36:34 Where on the sd did you put it? Jul 23 09:37:14 adicool123: yes - I delete file from assets project in eclipse, and adding the new one Jul 23 09:38:20 still the same error? Jul 23 09:39:28 yes Jul 23 09:42:41 I want to use a persistent flag for my app (even if app uninstalled and reinstalled), so I can't use preferences. Is there another solution? Jul 23 09:43:14 I have a custom view that extends ImageView. It sets the image using setImageResource(R.drawable.knob). After it has loaded the proper image how do I get the width and height of the image that was loaded?? Jul 23 09:49:28 woohoo, typhoon :) Jul 23 09:49:35 which color is this blue line of the dialog title-content separator @ android 4+? Jul 23 09:50:55 So much work last night Jul 23 09:51:00 and still failed to build pcre.. Jul 23 09:51:17 pcre builds fine for windows without a single warnings which is amazing Jul 23 09:51:41 Hopefully next time I can build it Jul 23 09:52:10 it is #ff33b5e5 Jul 23 09:58:47 good morning everyone Jul 23 10:02:10 any reason why people can't use linux kernel 3.5 out of the box for android? Jul 23 10:02:24 diki: I don't think they've finished merging yet. Jul 23 10:02:42 how hard can it be? it's just code Jul 23 10:02:45 merging what? Jul 23 10:03:00 I've looked at some arm assembly and it appears to be old but still working Jul 23 10:03:08 you know, initialize cpu registers etc Jul 23 10:03:14 load kernel etc Jul 23 10:03:26 what Jul 23 10:03:29 are there some changes to the kernel which would not allow it to work? Jul 23 10:03:31 Hello all... I need to combine horizontal Fling with vertical Scroll... Help! Jul 23 10:03:36 diki: yes.. Jul 23 10:03:49 sounds...stupid Jul 23 10:03:56 diki: yes, the kernel additions the android team has made Jul 23 10:04:02 diki: well please do enlighten us Jul 23 10:04:21 funktronic:you enlightened yourself, so why? Jul 23 10:04:35 though I am unaware of what changes they made Jul 23 10:04:51 lol Jul 23 10:04:59 http://en.wikipedia.org/wiki/Android_(operating_system)#Linux Jul 23 10:05:28 <---- Sucks when you have to search through 12 terabytes of disk space to find a damn PSD file Jul 23 10:05:38 diki: you think android is just vanilla linux with a pretty skin on top> Jul 23 10:06:02 funktronic:expected it at first Jul 23 10:06:18 did you read the Wikipedia section? Jul 23 10:06:23 just did Jul 23 10:06:29 It appears all is not as I imagined Jul 23 10:06:40 dlaroche: not as much as debugging an issue which could potentially be any one of a few million lines of C and C++ Jul 23 10:06:46 diki: yeah it's more complicated Jul 23 10:06:49 I thought it would be piece of cake to compile libraries for android, but after my unsuccessfull attempts.. Jul 23 10:06:53 i mean, they have their own vm Jul 23 10:07:08 diki: it should work fine, you may have to twiddle with paths and such Jul 23 10:07:12 well most things Jul 23 10:07:17 it's possible to compile things like nodejs and python to arm Jul 23 10:07:20 and have it run in android. Jul 23 10:07:23 funktronic: isn't that what a debugger is for?? :) Jul 23 10:07:41 I set paths to correct linkers,compilers and used the proper compiler(arm-linux-androideabi) Jul 23 10:07:47 however... Jul 23 10:07:49 dlaroche: yeah and where do you set the BP? Jul 23 10:08:02 dlaroche: it was virtualization stuff Jul 23 10:08:03 my android.mk file was lacking, and compilation sort of failed Jul 23 10:08:07 sounds like a logic error to me Jul 23 10:08:47 diki: what are you working one? Jul 23 10:08:48 dlaroche: it was a threading bug in boost Jul 23 10:09:11 dlaroche:compiling pcre, for a much bigger C port Jul 23 10:09:56 diki: what are you porting? Jul 23 10:09:59 the steps I took were to create a config.h file using cygwin Jul 23 10:10:00 lol Jul 23 10:10:07 it's still all posix so it should all compile Jul 23 10:10:17 why port such a thing? Most languages have built in regex Jul 23 10:10:18 ?? Jul 23 10:10:19 but with appropriate configure options and compiler options Jul 23 10:10:22 i'd really run a linux vm for this stuff Jul 23 10:10:31 dlaroche:because my project highly depends on it Jul 23 10:10:38 what project? Jul 23 10:10:41 im lost Jul 23 10:10:45 he mentioned node Jul 23 10:10:47 porting a C app Jul 23 10:11:03 i assume he's writing a node-based qt replacement Jul 23 10:11:09 you assume wrong Jul 23 10:11:10 with sprinkles Jul 23 10:11:20 titty sprinkles? Jul 23 10:11:39 that got Narcissus attention! Jul 23 10:12:08 After I was done with this, I had planned to study the broadcom bcm4330 chip Jul 23 10:12:29 and TRY to write drivers for it, which include monitor mode support(IF the chip supports it) Jul 23 10:13:05 but this is an all in one chip, radio,bluetooth,wifi and so on Jul 23 10:13:06 diki: why in particular the bcm4330 Jul 23 10:13:14 dlaroche:my sgs2 uses it Jul 23 10:13:19 gotcha Jul 23 10:13:55 then you would have to port the Aircrack suite :) Jul 23 10:14:19 I wouldn't bother, people would just build on top of my work Jul 23 10:16:15 Does any one have pointers as to how to combine horizontal Fling detection with vertical scrolling of the List in the Activity. Jul 23 10:16:45 Lachezar: sounds pretty backwards to me Jul 23 10:16:55 diki: The things you're trying to achieve... Seem very low-level. Jul 23 10:17:07 diki: You'll probably fail miserably on common phones. Jul 23 10:17:16 Lachezar:I recently became interested in the low-level stuff Jul 23 10:17:32 I studied the linux kernel a bit to figure out how it works Jul 23 10:17:34 diki: Try asking the same questions in the Custom/Rooted phones channel: #android-root Jul 23 10:17:51 Lachezar:so far, I have not asked any question Jul 23 10:18:26 diki: The guys there do recompile Linux Kernels on daily base. Jul 23 10:18:47 dlaroche: I have a scrollable view, that represents the detailed view of an item in a BIG list. Jul 23 10:19:06 dlaroche: I want to allow my users to swipe left-right to navigate in the list. Jul 23 10:19:14 Lachezar:bg? Jul 23 10:19:31 diki: Meaning if I am Bulgarian? Then yes. Jul 23 10:19:37 same here then Jul 23 10:19:41 ;) Jul 23 10:20:09 Lachezar: http://developer.android.com/reference/android/support/v4/view/ViewPager.html Jul 23 10:20:42 funktronic: DOH! I hate that support library, and Fragments scare the Sh*t out of me :( Jul 23 10:20:53 it works well Jul 23 10:20:58 it's a little choppy but gets the job done Jul 23 10:21:34 funktronic: The weird thing is: I have an application where that works... But I make the same things in my other application, and it does not work :( Jul 23 10:21:56 Lachezar: sounds like the answer is simple -- make it work Jul 23 10:22:28 funktronic:Make it work? Jul 23 10:22:42 Sounds like the time I compiled the PAMP stack for 2 weeks trying to figure out why it didn't work. Jul 23 10:23:12 for symbian Jul 23 10:23:15 well that's what i thought we all get paid to do Jul 23 10:23:18 oh god symbian Jul 23 10:23:30 Hehe, sound familiar? Jul 23 10:23:55 funktronic: Yeah... I was wondering if others have had «experience» with making both work, and possibly some caveats... Jul 23 10:25:59 Lachezar: best to find an example and start from it Jul 23 10:26:01 it's not that horrible Jul 23 10:26:34 funktronic:Examples are a tricky thing. A few months ago I needed a DAWG implementation in C, trust me, I didn't find one. Jul 23 10:27:01 diki: this is a little more common :) Jul 23 10:27:28 funktronic: I would suppose it was common, yet Googling it yield ziltch! Jul 23 10:27:40 Well, if you ever find a C implementation of a directed acyclic word graph, give me a call. It would work nicely with my bitcoin address generator Jul 23 10:27:45 Lachezar: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html Jul 23 10:27:45 funktronic: But you are right: That's what I get paid for :-/ Jul 23 10:27:52 i got that as a second result Jul 23 10:28:05 diki: what's a DAG of words? Jul 23 10:28:26 funktronic: still does not allow scrolling inside the view pager views... Jul 23 10:28:29 diki: isn't it better to use the GPU for bitcoin? Jul 23 10:28:38 Lachezar: throw a listview in there Jul 23 10:28:41 It's for generating addresses Jul 23 10:28:54 funktronic: I did! It stopped detecting flings. Jul 23 10:29:08 funktronic: Or it stopped scrolling. Jul 23 10:29:25 plus, gpus are pretty much a thing of the past for Bitcoin. FPGAs are more common today, and soon the first ASICs are coming out. Jul 23 10:29:36 I no longer mine, already had my share of fun and disaster :) Jul 23 10:29:38 Lachezar: i'd extract our implementation but it's too much work Jul 23 10:29:53 diki: i have an extremely low opinion of bitcoin Jul 23 10:29:59 any idea where this space comes from? https://dl.dropbox.com/u/6559846/spac.PNG Jul 23 10:30:04 funktronic:got me money, so I wouldnt worry Jul 23 10:30:06 seems like a waste of power Jul 23 10:30:09 xml: http://ideone.com/CAQRW Jul 23 10:30:13 $2000 in a week. Jul 23 10:30:35 well, perhaps a bit less Jul 23 10:31:01 Well, I am in a hurry. Gotta go. Jul 23 10:31:48 that's not bad Jul 23 10:32:21 anyone else have problem with galaxy s2 restarting itself Jul 23 10:32:27 its being a massve pain in the arse Jul 23 10:34:47 CallumTaylor: let me guess, you have it rooted with a custom rom on it?? Jul 23 10:34:53 no Jul 23 10:35:09 its annoying ,ever time my app crashes it restarts itself x_x Jul 23 10:35:33 then make your app so it doesn't crash :) Jul 23 10:35:47 it doesn't help :l Jul 23 10:36:04 neither does not posting a Logcat too Jul 23 10:36:24 its not the app crashing that's the problem, its the fact my phone keeps restarting itself in the middle of testing Jul 23 10:36:44 i had a phone that constantly restarted and it turned out to be the SIM card Jul 23 10:37:12 put a new one in and cell reception was restored, and no more crashes Jul 23 10:37:30 hm Jul 23 10:37:56 glad I discovered it because I was about to toss the phone in the garbage Jul 23 10:38:16 yeah I'm losing my patience with this phone atm Jul 23 10:38:24 CallumTaylor: you still may catch something in Logcat regarding why it is restarting Jul 23 10:38:29 the only other phones i have to test with are shitty HTCs Jul 23 10:38:45 hey now. thats the one I fixed :0 Jul 23 10:38:59 ugh htcs are such shit phones Jul 23 10:39:08 i have a wildfire and wildfire s Jul 23 10:39:12 how are they allowed to make such crap Jul 23 10:39:28 I have the Aria, and its been pretty good Jul 23 10:40:02 even took it six feet underwater with me one time for about 2 minutes, and it's still kickin Jul 23 10:40:40 ill keep a look out for the stack trace Jul 23 10:46:13 What's the name of the item/style I need to use to change the divider in the split actionbar? Jul 23 10:46:28 need some sort of a gradient divider between the top actionbar and the tabs Jul 23 11:04:09 The "divider" is just the actionbars background Jul 23 11:04:43 or do you mean divider between action items? Jul 23 11:12:26 Hey guys Jul 23 11:12:41 How to extract file after downloading using phonegap? Jul 23 11:12:44 Zip file Jul 23 11:13:00 use java Jul 23 11:13:22 Great advice! o.O Jul 23 11:15:49 Xtreme: not too many people using phonegap here, unfortunately... do they have their own channel or support forums? Jul 23 11:19:01 Nope. Dont have :( Jul 23 11:19:15 phonegap is html + javascript Jul 23 11:19:26 you won't be able to do anything like unzipping an archive Jul 23 11:21:37 So any way around it? Jul 23 11:22:22 bop Jul 23 11:22:22 bop Jul 23 11:24:15 Hello, could you please help me? Im working on a soundboard app, I´m using MediaPlayer in onListItemClick, problem is that when some sound is already playing and I start another sound, the first one keeps playing until its finished, so it gets messy. Jul 23 11:24:31 woohoo, a soundboard! Jul 23 11:24:41 :D Jul 23 11:24:47 we need more soundboards Jul 23 11:24:51 i don't think theres enough Jul 23 11:25:09 I bet there aren't many with actionbars and fragments! Jul 23 11:25:15 ok, looks like this is not the right place to ask for help Jul 23 11:25:22 MetalGuru: don't you need to keep a reference to the playing sound so you can cancel it? Jul 23 11:25:26 :D Jul 23 11:26:13 or is that too obvious to mention? Jul 23 11:26:28 just reuse the media player Jul 23 11:27:39 Leeds - ok, thanks. No need to get upset :) Jul 23 11:27:54 isPlaying() == true then mp.stop(); Jul 23 11:27:58 leeds y u so mad? Jul 23 11:28:11 Leeds is always mad Jul 23 11:28:20 just seems like a silly question Jul 23 11:28:26 idd it is Jul 23 11:28:52 "I'm playing a sound, then I play another sound and the first sound doesn't stop" - er, then stop the first sound yourself? Jul 23 11:29:01 lol Jul 23 11:29:02 right Jul 23 11:29:06 well, thats the problem Jul 23 11:29:09 that i dont know how Jul 23 11:29:13 mp.stop() Jul 23 11:29:18 lol Jul 23 11:29:21 not too hard Jul 23 11:29:25 documentation is your friend Jul 23 11:29:29 hard to explain, wait Jul 23 11:29:36 gonna post the code Jul 23 11:29:42 you do that Jul 23 11:29:48 http://developer.android.com/reference/android/media/MediaPlayer.html#stop() Jul 23 11:30:51 http://pastebin.com/ZTknAQNE Jul 23 11:30:55 CallumTaylor: doesn't seem like rocket science to me Jul 23 11:30:59 I want to create an alert dialog. I need it to look like the ics popup dialog. Should I a.) create a alertdialog and attempt to theme it using styles, b.) create an activity thats themed as a dialog, c.) create a popupwindow that looks like the dialog I want Jul 23 11:30:59 i cant use mp.stop() Jul 23 11:31:31 MetalGuru: then keep a reference to the bloody media player object until you're done with it! Jul 23 11:31:40 MetalGuru: make your MediaPlayer a field Jul 23 11:32:12 meh Jul 23 11:32:14 initialize it in your onResume() and then release it in your onPause() Jul 23 11:32:39 then you can access it anywhere within your activity Jul 23 11:32:45 ok, thanks, gonna try it :) Jul 23 11:33:37 use a global variable... Jul 23 11:33:40 seriously Jul 23 11:33:51 reuse one media player object Jul 23 11:34:15 Callum: that's what I just told him Jul 23 11:35:39 he will be back though :) Jul 23 11:35:56 :D Jul 23 11:36:23 MetalGuru: i take it that resolved your problem? Jul 23 11:36:56 no, I haven´t tried it yet, but thanks :) Gonna try it now. Jul 23 11:38:13 guys you must be so happy helping someone with creating another annoying soundboard app :D Jul 23 11:45:38 MetalGuru: ecstatic :P Jul 23 12:03:45 SimonVT: say you have a split actionbar ( Top part of actionbar = app icon + app title + overflow-menu, second part = tabs for navigation). I want a divider between these two parts Jul 23 12:04:04 so, you're saying I need to use a background to get some sort of a divider? Jul 23 12:04:26 could you not insert a dud entry into the menu that has a divider graphic/ Jul 23 12:04:34 or is that no possible? Jul 23 12:04:59 I need a vertical divider. A line with shadow that stretches across the screen to seperate the navigation tabs from the app icon and app title Jul 23 12:06:10 anyone know how to handle fragments rotation? Jul 23 12:08:29 fragment rotation or screen rotation? Jul 23 12:08:44 screen rotation Jul 23 12:09:01 now im using a combo onsaveinstancestate Jul 23 12:09:04 onpause Jul 23 12:09:10 and recreating some fragments after rotate Jul 23 12:09:14 that is a mess Jul 23 12:09:18 and takes too long Jul 23 12:09:44 o_O Jul 23 12:09:54 netsplit yay! Jul 23 12:14:36 hi Jul 23 12:15:51 how can i make the vpn connection through android coding? Jul 23 12:17:32 a good question you ask Jul 23 12:17:44 intrigued by the answer, I am Jul 23 12:17:47 impelment the RDP protocol Jul 23 12:17:52 done Jul 23 12:18:15 er Jul 23 12:18:17 im on crack Jul 23 12:18:24 remote desktop != vpn Jul 23 12:18:37 correct you are Jul 23 12:18:42 i have a feeling today is going to be a long day Jul 23 12:18:55 long days mondays are Jul 23 12:19:00 sorry but i can't get answer Jul 23 12:19:16 did you wastch star wars this weekend? Jul 23 12:19:39 no Jul 23 12:42:45 Why does my app run faster when I touch the screen? Jul 23 12:50:43 I don't know, why does it? Jul 23 12:52:55 is it a game? Jul 23 12:53:06 is it a bird? Jul 23 12:53:28 every time you interact with the screen it invalidates itself Jul 23 12:53:45 Waynes: perhaps your application gets prioritized cpu time when user touches screen? Jul 23 12:54:04 might be Jul 23 12:55:03 anyway, it would be nice if I could force that behavior without having the user to press his hands on the screen all the time :) Jul 23 12:56:31 and drain the battery!?!? ;) Jul 23 12:58:02 I have 100% cpu usage anyway, so it doesn't matter Jul 23 12:59:30 o_O Jul 23 12:59:53 if you're pegging the CPU at 100%, you either have an old cruddy phone or you really need to work on your optimization. Jul 23 13:00:08 Touching the screen might send touch events, which depending on how you handle them may force invalidation Jul 23 13:00:23 but I have no idea what your app does, or how it's "running faster", so best of luck with that. Jul 23 13:00:57 sustained 100% cpu usage would be very unusual unless you have a bug Jul 23 13:01:23 I have a lot of sprites flying around and it's a pain in the ass to get android to draw stuff with opengl es from the java side Jul 23 13:01:55 do you limit the framerate? Jul 23 13:02:03 also the calculation of texture and vertex coordinates are quite costly Jul 23 13:02:12 you're wasting frames then Jul 23 13:02:16 jrr: No, is it at 60 Hz on default? Jul 23 13:02:26 it goes as fast as it can Jul 23 13:02:37 you need to limit the frame rate Jul 23 13:02:46 are you sure? o_O Jul 23 13:02:50 yes Jul 23 13:03:01 I have to check that Jul 23 13:06:45 57 fps, even without any drawing code Jul 23 13:08:10 CallumTaylor: a lot of android devices are frame limited to 30fps, no matter how fast you draw. Jul 23 13:08:18 er Jul 23 13:08:20 Waynes: ^^ Jul 23 13:08:24 :P Jul 23 13:08:53 I'll insert some code to limit my frames, just in case Jul 23 13:09:01 your game doesn't need to be that fast, unless you'll be having particles and explosions and shit Jul 23 13:09:11 I have :) Jul 23 13:09:14 consider also only invalidating the dirty areas. Jul 23 13:09:16 (soon) Jul 23 13:09:21 then limit it where you'll use them Jul 23 13:09:26 the whole screen is dirty Jul 23 13:11:17 hi Jul 23 13:12:40 gross Jul 23 13:13:27 Anyway, consider using something like libgdx if you're concerned about performance and you're not sure if you can write it best yourself. Jul 23 13:13:37 Alternately, if you're a wizard at C/C++, just use the NDK. Jul 23 13:16:25 I need help please. I got a ccompound component, and when I had it the my layout (in the UI builder) I got an error saying that "the following classes could not be instantiated". The name of the package containing the compound component is "com.xxx.xxx.components". that's the log http://pastebin.com/veR3VdEw . Thanks in advance :) Jul 23 13:21:11 Error generating final archive: java.io.FileNotFoundException: *****\bin\classes.dex does not exist Jul 23 13:21:17 what the... Jul 23 13:21:57 MetalGuru: sounds like you have a compile error Jul 23 13:22:25 hmmm, is there a way of fixing it? Jul 23 13:22:47 delete bin Jul 23 13:22:49 I don't really get why this Exception "java.lang.ClassNotFoundException: org.json.JSONException" from an inflating operation :( Jul 23 13:22:54 are you asking if there is a way of fixing a compile error? Jul 23 13:23:42 Callum - no i won´t :) Jul 23 13:24:07 its automatically generated Jul 23 13:24:10 firstdeveloper: are you using some 3rd party library? is the .jar in the 'libs' folder? Jul 23 13:24:12 its a way of cleaning your project Jul 23 13:24:39 wongk: yes Jul 23 13:24:47 wongk: is it bad ? Jul 23 13:25:07 you're sure it's in the 'libs' folder? not 'lib'? Jul 23 13:25:13 json library comes with android Jul 23 13:25:22 you shouldn't need to include a 3rd party library Jul 23 13:25:25 oh Jul 23 13:25:43 callum: and what about the manifest and drawables inside? Jul 23 13:25:45 well that's just weird, then Jul 23 13:26:00 what? they're in res... Jul 23 13:26:24 wongk: In my Libs directory I have "support library for android" and "DiskruCache library" Jul 23 13:26:28 Just that Jul 23 13:26:35 wait, you wrote "delete bin" Jul 23 13:26:51 yes, delete your bin folder Jul 23 13:27:21 ? Jul 23 13:27:23 oh ok, i see Jul 23 13:27:41 didnt realize it looks kinda like res folder inside...sry Jul 23 13:28:41 anyways, it didnt help, damn Jul 23 13:28:53 MetalGuru: are talking about my problem ? :) Jul 23 13:29:09 nope :) Jul 23 13:29:24 oh, this is an eclipse error, not a runtime error in your app Jul 23 13:29:30 MetalGuru: Ok I was a little confused :p Jul 23 13:29:55 i have no idea how this retarded error occured... Jul 23 13:30:02 wongk: ha ok thanks. Then I can just continue coding though ? Jul 23 13:30:28 i don't know, i've never run into it Jul 23 13:31:19 wongk : ok fine. thanks anyway :-). But do you any recommendations ? Jul 23 13:31:36 looks like my whole eclipse just gone mad Jul 23 13:33:14 Still getting this - Error generating final archive: java.io.FileNotFoundException: *****\bin\classes.dex does not exist Android Packaging Problem Jul 23 13:33:37 even after deleting bin, restarting eclipse, project cleaning, refreshing... Jul 23 13:33:49 MetalGuru: what's on your problems tab? Jul 23 13:34:19 well, this thing that i wrote is on problems tab Jul 23 13:34:40 anything else Jul 23 13:35:03 2 errors but in another project Jul 23 13:35:30 what about external jars Jul 23 13:35:36 do you reference any Jul 23 13:35:43 yes i do Jul 23 13:35:48 thats probably what caused it Jul 23 13:36:01 i was installing leadbolt sdk Jul 23 13:36:09 make sure the ones that need to be are checked to export with apk Jul 23 13:36:17 ugh leadbolt Jul 23 13:36:22 it's possible it chokes converting the .jar to dex bytecode Jul 23 13:36:23 i keep getting spammed by them Jul 23 13:36:41 you dont use it? Jul 23 13:36:46 i am trying everything... Jul 23 13:36:55 last one was pontiflex :D Jul 23 13:37:21 i don't use ads Jul 23 13:37:22 MetalGuru: incidentally, how did you make the sounds for your app? Jul 23 13:37:24 in my apps Jul 23 13:37:49 Leeds -why? Jul 23 13:38:05 why u wanna know? Jul 23 13:38:08 well, most soundboards just use sounds ripped off from a TV show or a game or something Jul 23 13:38:36 yes, well, something similar Jul 23 13:38:59 yes, you're just ripping off sounds? Jul 23 13:39:16 yes Jul 23 13:39:43 that's a bad thing Jul 23 13:39:49 hm Jul 23 13:40:09 anyways, this problem has nothing to do with soundboard app Jul 23 13:40:11 the sort of bad thing which gets your app kicked out of the market for copyright infringement Jul 23 13:40:38 ^^ Jul 23 13:40:45 who said i´m gonna post it on market? :) just having fun creating soundboard Jul 23 13:40:46 Enjoy your DMCA takedown and loss of developer account. Jul 23 13:40:51 we all like a bit of copyright infrindgement Jul 23 13:40:52 Leeds: things get kicked out for copyright infringement? Jul 23 13:40:52 i have other kinds of apps on market Jul 23 13:41:01 OK, as long as you don't do something stupid :P Jul 23 13:41:06 jrr: yes, definitely Jul 23 13:41:06 sometimes, yes Jul 23 13:41:20 you'd never know it, browsing through new releases Jul 23 13:41:47 I have viewFlipper. How I can reload everything in the given view when I flip on that view? Which is the handler. Obviously is not onCreate Jul 23 13:41:48 * Jug6ernaut 's app got taken off Jul 23 13:41:53 i like how everyone is still into that soundboard app :D Jul 23 13:42:09 even when im not talking about it right now Jul 23 13:42:29 frankly, someone at Google should be looking at any app uploaded which contains the string "soundboard", because they are almost universally ripoffs Jul 23 13:42:50 and its a soundboard app for my friend, youtuber :) but keep on crying about copyright and stuff Jul 23 13:42:51 lol Jul 23 13:42:59 Leeds: why? Google's not the one getting infringed. Jul 23 13:43:05 It's up to the copyright holders to send takedown notices Jul 23 13:43:11 it'd also be a good idea to look for substring matches with titles of popular games Jul 23 13:43:12 Leeds i wish google had forced app standards :\ Jul 23 13:43:27 If they start doing that, then there's a reasonable expectation that they police ALL of their content Jul 23 13:43:34 which is Bad News for future lawsuits Jul 23 13:43:43 lov: a clean market is a good market... and Google are almost certainly within their rights to refuse any app they want, under the market terms Jul 23 13:43:57 Leeds: that's fair, but think of it from the policy side. Jul 23 13:43:57 Leeds yes but it puts liability on google Jul 23 13:44:34 https://play.google.com/store/search?q=soundboard&c=apps Jul 23 13:44:54 https://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=113474&ctx=cb&src=cb&cbid=-1nn9uxett6h3f Jul 23 13:44:56 "We can't possibly police all of our content" is what keeps services like google from being FORCED to police all of their content at the whims of the entertainment industry Jul 23 13:45:03 you wanna tell me that "two and a half men" and stuff are legal soundboards? :D Jul 23 13:45:38 why do ppl download sound boards... Jul 23 13:45:41 ah, the good old "other people are breaking the law, so why shouldn't I" argument... aka broken windows Jul 23 13:46:15 http://1saleaday.com/wireless/ Jul 23 13:46:34 did you read what i wrote few lines ago? I´m working on a soundboard app for my friend, who has his own youtube channel with gameplays. Jul 23 13:46:45 there will be some of his quotes Jul 23 13:46:56 but keep on whining about copyright and stuff, like i care... Jul 23 13:47:06 jesus fucking christ Jul 23 13:47:11 everyone just shut up about soundboards and copyright Jul 23 13:47:13 more dev talk Jul 23 13:47:36 What is everyone's faviourate x86 register? Jul 23 13:47:43 I quite like eax myself Jul 23 13:48:07 hcf Jul 23 13:48:08 why do i still get that retarded error...WHY Jul 23 13:48:18 MetalGuru: try making an ant build and see what happens. Jul 23 13:48:33 I'm setting drawableLeft for a button.. How can I have the text + leftDrawable centered inside the button? Jul 23 13:49:56 btw anyone using pontiflex here? Jul 23 13:51:51 hi Jul 23 13:52:25 what the hell...does anyone have classes.dex in his bin folder? Jul 23 13:52:47 yes Jul 23 13:52:52 this is expected. Jul 23 13:53:41 I have a home screen app that sometimes takes too long to respond. Then the "Force Close/Wait" message pops up. Jul 23 13:53:49 MetalGuru, this is because of Delvik afaik Jul 23 13:54:02 Dalvik* Jul 23 13:54:10 It looks like this always happens when a different process is running, and the CPU takes too long to run my function. Jul 23 13:54:30 Jonathan_Eyre: time to move stuff off your UI thread Jul 23 13:54:41 There's a spam of GC_CONCURRENT freed messages... Jul 23 13:54:58 when I render text via a webview, how do I know at which character I ran out of screen space? I am building a ebook reader kind of app and would like to support "turning to the next page" Jul 23 13:55:24 okay...not being able to reply to people on the market when they comment on your software...tahts lame Jul 23 13:56:18 i´ve heard something about new developers console, which will alow this commenting for developers Jul 23 13:56:24 but its only in BETA now Jul 23 13:56:29 What leeds said. Also, be more careful with your objects in preventing allocation of new objects when you can reuse them. Jul 23 13:56:40 I cannot tell what is running that is taking so long. I do have a timer running, but I thought that timers were not on a same thread by definition. Jul 23 13:57:23 at the moment, only favoured developers can reply... presumably it'll roll out more widely once they're happy they have things like spam controls in place - possibly/probably a phased roll-out, or a delay for new developers Jul 23 13:57:44 Isn't a TimerTask a different thread? Jul 23 13:58:22 hmmm well that would be better Jul 23 13:59:13 so if my app force closes on a persons device is there some way i can get usefull info to debug that? Jul 23 13:59:19 so apparently my credit card is vulnerable to simple nfc read attacks Jul 23 13:59:22 but not all cards are Jul 23 13:59:22 :( Jul 23 13:59:28 and mine's brand new :( Jul 23 14:01:18 when will I see the "contentdescripton" of images? Jul 23 14:01:29 I am trying to override the text color in a custom style for actionbarsherlock. I've tried the following without success: http://pastie.org/4306297 Does anyone have any suggestions? Jul 23 14:15:09 ok so the error is caused by that leadboltcontroller.jar file Jul 23 14:17:21 as soon as i copy it into libs folder, it starts causing this problem Jul 23 14:23:25 If I wanted to do work off of the main thread without spawning a new process window, how should I do that? Is there a way to open a different app without opening a window. Should I use a service? I see that you can open a in the manifest. Jul 23 14:23:49 So should a create a service in a separate app, and then allow my home to fire it? Jul 23 14:24:36 Technically, my timer is already a separate thread, but I suspect that it bogs down the system so that my home does not respond quickly enough. Jul 23 14:26:58 Is a service the best way to always have a poll running? Jul 23 14:27:10 Any tips would be appreciated. Jul 23 14:27:13 Jonathan_Eyre: what sort of things do you want to do? Jul 23 14:27:46 ie what's wrong with an AsyncTask? Jul 23 14:28:22 Isn't a new TimerTask the EXACT same thing as an AsyncTask, only set to run in the near future??? Jul 23 14:29:14 afaik TimerTask is in main ui thread Jul 23 14:29:24 or wherever you have a handler I suppose Jul 23 14:29:34 Well, that's a good tip. Jul 23 14:30:04 hmm well ... let's look at this. TimerTasks need a Timer Jul 23 14:30:20 A TimerTask is just a thin wrapper around Runnable. Timer has its own thread and runs a TimerTask. Jul 23 14:31:02 anyway it's part of android legacy that people shouldn't use anymore Jul 23 14:31:17 What? Jul 23 14:31:30 "Use ScheduledThreadPoolExecutor for new code" in Timer docs Jul 23 14:32:07 http://lsd.luminis.eu/scheduledthreadpoolexecutor-horribly-broken/ Jul 23 14:32:08 android's case of NIH is slowly beign repaired Jul 23 14:33:12 I would REALLY like a little notice whenever there is a function built into android that using it is no longer a good idea. Jul 23 14:33:31 that's just a bug. Jul 23 14:35:09 Anything on d.android resembling a deprecated notice would be infinitely useful. I don't have any expert programmers looking over my shoulder. It's just me, this chat channel, d.android and stackoverflow. It's kind of hard to design apps correctly when there is only "You're doing it wrong." to guide me. Jul 23 14:35:21 as far as NIH goes you have to wonder why ICS AsyncTask use a custom SerialExecutor while Executors.newSingleThreadExecutor() exists(). Jul 23 14:35:34 exists even :p Jul 23 14:35:37 *shrug* there's no right or wrong when it comes to android. There's only works, or doesn't work. Jul 23 14:35:50 there's some correlation between these two categorical classifications though. Jul 23 14:35:58 Hey guys Jul 23 14:36:29 hm, WebView.getContentHeight() always returns 0 Jul 23 14:36:34 bubbleguuum: does it matter? they could just replace it any time I guess Jul 23 14:36:47 the cool APIs of today are the LOL depercated APIs of tomorrow... Jul 23 14:36:57 Im trying to have PHP write out some text into an HTML page, problem is that the text has a bunch of wacky characters, I can get around most of them with either json_encode, htmlentiteis, etc Jul 23 14:37:40 But I have trouble with strings containing ' or " -- as I am actually using that in the PHP -- is there some way I can escape all the " and ' so that PHP can write the string out properly? Jul 23 14:37:42 Cpudan80: it sounds like you are not handling text encoding correctly. Jul 23 14:37:51 oh. Jul 23 14:37:55 Cpudan80, var_export($var, true) Jul 23 14:37:55 alankila: it doesn't matter much but using Executors.newSingleThreadExecutor() instead is compatible before GB (I've backported ISC AsyncTasl) Jul 23 14:38:17 it's surprising how many PHP devs don't know about that function Jul 23 14:38:35 It's surprising it's needed :P Jul 23 14:38:44 TheTrash, haha Jul 23 14:38:47 it's surprising you aren't using json encoding/decoding libraries :-p Jul 23 14:38:52 I hate PHP, mopre of a Ruby guy :3 Jul 23 14:39:06 I want to add an EditText programmatically but the setID function takes an int. In the XML they're strings. I'm confused? Jul 23 14:39:33 deadmund: the xml is preprocessed to integer stuff at the apk build time. The R.id.foo is generated from it Jul 23 14:39:52 deadmund: you can leave the ID out -- just don't set it -- and retain a reference to the EditText somewhere you can manipulate it Jul 23 14:39:56 alankila: So if I programmatically set and ID how do I know I'm setting one that does not collide with another? Jul 23 14:40:03 deadmund: just don't set an id. Jul 23 14:40:05 alankila: Ok. I'll retain a reference Jul 23 14:40:07 alankila: thanks Jul 23 14:41:05 lukecarrier: looks promising, thanks Jul 23 14:42:28 Does anyone have any experience getting around this issue: http://stackoverflow.com/questions/11614638/receiving-android-gcm-notifications-when-application-is-in-stopped-state ? Jul 23 14:43:56 lukecarrier: didn't really work.. Jul 23 14:44:18 Hello guys, i have a question... if i have a broadcast receiver that reacts to 2 different intents which maybe occur at the same time.. is it possible that 2 instances of the broadcast receiver run at the same time?? or ar the intents queued? Jul 23 14:44:21 M0pper interesting Jul 23 14:44:25 Why is this one thing so difficult? All I want to do is write the variable out into HTML inside a set of " " Jul 23 14:45:21 Yeah Jul 23 14:45:32 Also very annoying :p Jul 23 14:45:39 i just notified someone about it Jul 23 14:45:43 maybe it will get fixed Jul 23 14:47:16 I'm afraid they have some sort of 'catch-all' intent processor, and that this thing sets the flag on all broadcast intents Jul 23 14:47:35 which would mean that it can't be solved with a simple update to the GCM client side code Jul 23 14:47:35 Cpudan80: it is difficult because you do not really understand what you are doing. If you did understand, you would immediately know all the things that need to be done :-p Jul 23 14:47:57 that being said, use of PHP which is not properly abstracting many issues it could compounds any problems you might have Jul 23 14:48:15 i think its more that if the sender of the intent does not explicitly set one of those two flags, it adds the exclude Jul 23 14:48:53 I hope so, that would be relatively easy to fix with a small update to GCM Jul 23 14:50:30 I was surprised this hasn't really come up earlier Jul 23 14:50:44 Couldn't find any references here https://code.google.com/p/android/issues/list?can=2&q=GCM either Jul 23 14:58:36 what would be the best way to store cache? Jul 23 15:00:44 I created an issue report for it: https://code.google.com/p/android/issues/detail?id=35385 Jul 23 15:01:23 what controls are used for the ICS list view, like in the g+ app? Jul 23 15:02:02 CallumTaylor: load up an engineering build device and use hierarchyviewer Jul 23 15:02:07 the listview is a custom view Jul 23 15:02:09 ogelami: depends on the lifetime of your cache and the type of data, I usually use sharedpreferences. Jul 23 15:02:14 i forget what everything else is Jul 23 15:02:15 i can't use hierarchyviewer on my phone Jul 23 15:02:30 you can use it on the emulator... Jul 23 15:02:41 and risk a kernel panic? no thanks Jul 23 15:03:05 get a non-buggy OS to run it on? Jul 23 15:03:22 well, the application makes to many server requests and we want to cut down on that so cache would be the best solution, what i did was that i made filestreams of objects stored in a ListArray Jul 23 15:03:30 or how about google make a better emulator Jul 23 15:03:56 a kernel panic is always, under every situation, the result of a kernel bug Jul 23 15:03:57 is this a good or a bad way to do it? Jul 23 15:04:32 ill go tell steve jobs then Jul 23 15:04:33 brb Jul 23 15:04:48 you go do that Jul 23 15:05:17 ogelami: filestreams? Where do you store them? Jul 23 15:05:32 well i havn't decided yet Jul 23 15:06:01 TheTrash i was thinking to store it locally on the phone in a file, Jul 23 15:06:11 ogelami: well anyway, it depends on the kind of data. I tend to prefer storing high-level objects, so I usually map to json and store in sharedpreferences. But that only works for smaller lists. Another place is an sqlite database. Jul 23 15:06:35 Files are quite tedious to work with, but it may make sense if your cached objects are very large. Jul 23 15:06:35 hi guys, i have a question. I've just published my first android app, do yo know how long it takes to appear in public, for publishing the download link ? Jul 23 15:06:53 asmfoot: couple of hours, last time I published something. Jul 23 15:07:07 Which was last week or so Jul 23 15:07:16 ok :) Jul 23 15:07:17 tanks Jul 23 15:07:17 hm, well they are probably less than 10mb at its greatest Jul 23 15:07:19 thanks* Jul 23 15:07:31 ogelami: that's... quite large, though :) Jul 23 15:07:42 What are these files, anyway? And how do you plan to access them? Jul 23 15:08:08 well, its driving routes it's a log Jul 23 15:08:39 gtg, thanks for all the help guys laters ;) Jul 23 15:10:21 M0pper: I'm pretty sure that this is intentional, not accidental. Jul 23 15:10:36 M0pper: the idea is that you can force-kill a malicious app, and it doesn't relaunch itself by listening to common broadcasts Jul 23 15:11:12 The solution is to tell your idiot users to not fucking use task managers Jul 23 15:11:22 ^ Jul 23 15:19:37 @lov : the taskmanager i'm talking about is the one that is by default present in 3.0+ Jul 23 15:19:54 the 'taskswitcher' thing also allows you to kill apps Jul 23 15:21:45 i wonder where ORMLite put the SQLite db file D: Jul 23 15:21:46 :D Jul 23 15:22:53 hey guys, whats the diff between drawable-hppi and drawable-xhdpi? Jul 23 15:23:01 hdpi* Jul 23 15:23:04 If i have a libery how do i from inside the libery load R..... what is best aprotch to load resources from the master applications from inside the lib ? the lib has more than one master Jul 23 15:25:11 what? Jul 23 15:25:20 Naish: about 80dpi? Jul 23 15:25:23 Can someone explain me why I get exception trying to set the text of TextView. It is there and I am getting it as every other object but only on it I got exception. I already checked id and everything is fine( otherwise it would not build) Jul 23 15:26:04 oh ok.. it gets created in the internal storage which i can's look at with DDMS Jul 23 15:26:07 hmm Jul 23 15:26:09 F1rstAid: what is the exception? Jul 23 15:26:24 stack trace or gtfo, as the saying goes Jul 23 15:26:58 M0pper: doesn't matter; they're using the same interface. Jul 23 15:27:16 M0pper: point is, when you're force killing apps, you're preventing them from doing ANYTHING until the user intentionally launches one of their activities. Jul 23 15:28:00 for a better example, lets say that you've got a poorly written app that listens to a common broadcast, but force closes in a service. So, every 10 seconds or so, you see "Sorry, ShitApp has stopped" Jul 23 15:28:13 lol Jul 23 15:28:16 07-23 16:17:13.906: E/AndroidRuntime(2779): android.content.res.Resources$NotFoundException: String resource ID #0x607 Jul 23 15:28:22 Leeds that was for you Jul 23 15:28:23 :) Jul 23 15:28:25 if you prevent it from receiving notifications, you're not stuck watching it crash over and over again Jul 23 15:28:38 F1rstAid: and do you know what that means? Jul 23 15:28:47 nope Jul 23 15:28:48 for a market app, you can just uninstall it, but lets say that it's some shitty OEM preload. Jul 23 15:29:24 F1rstAid: what's the line of code which is generating that exception? Jul 23 15:29:45 wattTxt.setText(results.get(0).getWattHours()); Jul 23 15:29:58 yeah. Jul 23 15:30:03 you're passing an int. Jul 23 15:30:06 you want to pass a string. Jul 23 15:30:16 wattTxt.setText("" + results.get(0).getWattHours()); Jul 23 15:30:59 wtf .. I was expecting to not hav eproblem with the int. And yea because I tested with some "" before it converted it automatically Jul 23 15:31:20 I will check.. if it is that I will kill myself Jul 23 15:31:29 pics Jul 23 15:31:32 or it didnt happen Jul 23 15:31:43 F1rstAid: it's definitely that. Jul 23 15:31:58 that's annoying... Jul 23 15:32:35 serious, full-on typhoon, warning level which is only seen a couple of times per decade... and the government weather office website has melted down, so my app can't see it! Jul 23 15:32:49 ha Jul 23 15:32:58 canadiancow|work .. thanks, i assume this is the one the nexus 7 would use? Jul 23 15:33:15 yep it is that. I expected to not have problems with autoconverting int to String. I am converting all other types but not int.. ..swearing.. Jul 23 15:33:20 Leeds: have your server pull info from the government site every 15 minutes and replicate it to S3. Jul 23 15:33:20 why would you assume that Jul 23 15:33:28 I don't know, because it has high res? Jul 23 15:33:31 F1rstAid: it's not auto converting it, that's the problem. Jul 23 15:33:32 nexus 7 uses tvdpi, which you are not supposed to create any assets for Jul 23 15:33:39 F1rstAid: you're passing an int to a method that expects an int. Jul 23 15:33:40 resolution != density Jul 23 15:33:50 F1rstAid: it's assuming that you're passing it R.string.something_or_other; Jul 23 15:33:52 Ah right Jul 23 15:33:53 lov: doesn't help if my server can't see the website either... I'm thinking about writing a GCM version of the app anyway Jul 23 15:34:09 lov oh shit.. I totally forgot about that :D Jul 23 15:34:11 Leeds: point is, you need to pull the data before the server melts, and then put it on something more robust :) Jul 23 15:34:19 im not creating an asset, im creating a icon in the res folder .. Jul 23 15:34:26 sorry, i am a beginner Jul 23 15:34:50 or alternatively, it's a bug in my app, which has never had to deal with a level 9 warning before ;( Jul 23 15:35:24 lov: you're right. Apparently there is a difference between force killing an app from the settings menu, and removing it from the recent tasks / killing it with a task killer app Jul 23 15:35:27 Leeds: move inland and live like a king in some shitty chinese backwater. problem solved. Jul 23 15:35:51 lov: the first will prevent the app from receiving any broadcast intents, while the latter 2 won't Jul 23 15:35:55 M0pper: task killer apps should be taking the same route as going to settings. If they're not, they're not very good. Jul 23 15:36:13 lov: China's not so cheap any more Jul 23 15:36:26 Removing something from recent tasks just does that. It doesn't actually affect the app's lifecycle. Jul 23 15:36:37 Leeds: then head south and west Jul 23 15:36:39 hello Jul 23 15:36:39 lov: I don't know, I never use those taskkillers Jul 23 15:36:44 M0pper: neither do I Jul 23 15:36:45 o/ Jul 23 15:36:49 lov: what, to Vietnam? Jul 23 15:36:58 * lov shrugs Jul 23 15:37:22 I don't know. Become the mobile development version of Colonel Kurtz Jul 23 15:37:32 Go up the Big River and promote your apps on Amazon Jul 23 15:38:01 I'm gonna just stop, because I can't think of funny things to say. Jul 23 15:38:09 I think I need to pass a runnable to another activity. Is it ok to put the reference in a bundle so that putExtra shuts up? Jul 23 15:38:22 no. Jul 23 15:38:26 Runnables are not parcelables. Jul 23 15:38:31 What should I do? Jul 23 15:38:39 redesign Jul 23 15:38:42 You can use a service? Jul 23 15:38:46 You can use static variables? Jul 23 15:38:58 You can provide the arguments to run your new thread as part of your intent? Jul 23 15:39:04 (went to Vietnam a couple of weeks ago - Android everywhere, particularly Samsung, but there was a very nice HTC shop we walked past a couple of times) Jul 23 15:39:34 lov: apparently ordinary (non-root-access) taskkillers cannot do the force stop thingy like going to settings would Jul 23 15:39:56 M0pper: that's interesting. I suppose the permission is too high, so you would need root. Jul 23 15:40:01 oh well. Jul 23 15:40:21 lov: havchr I am creating an xmpp connection (in a runnable). I need the xmpp connection to be running as soon as the app runs and, on an arbitrary activity, I need the xmpp connection to send a message. I need it constantly listening for connections. I suppose this is a service. Jul 23 15:40:29 lov: at least, that's what i gather from CommonsWare answer here http://stackoverflow.com/a/11615217/439311 Jul 23 15:40:42 deadmund: I VERY strongly recommend that you use a service for your connection. Jul 23 15:40:53 lov: thanks Jul 23 15:40:55 Is it possible to create an App with Java as normal. However, then to have one fragment that uses AIR? I need Flash functionality in one of my fragments, but Flash support is being removed in Jelly Bean. Jul 23 15:40:58 * deadmund looks up services Jul 23 15:40:58 bind to your service, register callbacks, etc. Jul 23 15:41:13 David: I have no idea, sorry. I assume that with AIR it's all or nothing. Jul 23 15:41:20 But, please feel free to investigate! Jul 23 15:41:33 I think that AIR brings its own flash runtime as well, but I could be wrong. Jul 23 15:41:38 Yeah, I think it is too, but I really don't want to have to port to AIR :( Jul 23 15:41:50 lov: Thanks for the advice. So I don't get confused. If this is a service it should not be a runnable anymore right? Jul 23 15:42:21 The only other way I can do what I want is to fire an Intent to a dedicated AIR App, but that would completely break the flow of the App Jul 23 15:42:23 deadmund: possibly. Jul 23 15:42:34 deadmund: you may wish to have your network connection live inside of a thread Jul 23 15:42:39 lov: Well, it still does networking which is CPU intensive and a service is on the main thread right? Jul 23 15:42:42 yeah Jul 23 15:42:43 ok Jul 23 15:42:43 thanks Jul 23 15:42:49 e.g. have a thread that pushes/polls Jul 23 15:42:58 well Jul 23 15:43:05 the service itself isn't on the main thread Jul 23 15:43:15 onCreate, onDestroy, onBind, etc, run on the main thread. Jul 23 15:43:18 lov: the thread pushes / polls to / from the service? Jul 23 15:43:23 I see Jul 23 15:43:25 So you can spin off a thread in your service, which will be on its own thread. Jul 23 15:43:34 and that thread can do whatever background things you want. Jul 23 15:43:58 Alternately, you can just use an AsyncTask to make the network binding, set your connection to some service member variable, and do everything in short lived background threads from that variable Jul 23 15:44:26 lov: I see Jul 23 15:44:32 lov: Thank you for all the advice Jul 23 15:44:53 deadmund: without knowing what your app actually DOES, I can't make a suggestion for you, aside from strongly recommending that anything like long lived network connections live in a service, not an activity Jul 23 15:52:14 hmm, ok, it seems i need to override the getReadableDatabase and getWritableDatabase calls Jul 23 15:52:24 but how to create the factory? Jul 23 15:54:00 is there anyway to check to see if the android native phone application is available on a device? I have tried TelephonyManager's getLine1Number and getPhoneType but these values can be altered by other applications on the device Jul 23 15:54:02 tapas: I'm afraid to ask. Jul 23 15:54:15 ekura: huh? Jul 23 15:54:26 argh, killed by a comma Jul 23 15:54:30 look at intents Jul 23 15:59:12 lov: I guess I am just looking for a way to figure out if making a call with Intent.ACTION_CALL is supported by the device Jul 23 15:59:40 see how long it takes for my update to propagate... and time to thank the lord for no manual approval of updates! Jul 23 16:00:01 ekura: http://developer.android.com/reference/android/telephony/TelephonyManager.html#getPhoneType() Jul 23 16:00:23 Leeds, which app did you develop? Jul 23 16:00:37 Hong Kong weather alert, amongst others Jul 23 16:00:39 Has anyone had any success using the ShareCompat library to share videos to youtube/facebook? Jul 23 16:01:16 I would like to be able to specify the text that shows up when sharing the video, but the facebook/youtube apps seem to ignore everything in intents Jul 23 16:08:21 someone went through all my code and called http://developer.android.com/reference/java/lang/String.html#isEmpty() everywhere :( Jul 23 16:08:37 lol canadiancow|work Jul 23 16:08:58 :( Jul 23 16:09:02 but seriously, why is that method only api 11... Jul 23 16:09:05 should have been in api 1 Jul 23 16:09:54 api 9* Jul 23 16:10:00 9* Jul 23 16:10:01 there's always been TextUtils.isEmpty(String) Jul 23 16:10:05 which, tbh, is better Jul 23 16:10:07 wasn't it added in a Java release? Jul 23 16:10:08 because it counts null as empty Jul 23 16:10:20 what the Jul 23 16:10:23 theres a textutils?? Jul 23 16:10:32 omg this is life changing Jul 23 16:10:45 I have one problem with the Interface Builder (Android). When I try to position a relative layout using 'below', in another relative layout, it doesn't work Jul 23 16:10:51 canadiancow|work: hm does that do nulls? Jul 23 16:10:54 * alankila is surprised at the number of people who need to know things like if string is empty Jul 23 16:10:55 yea Jul 23 16:11:00 Oh neat Jul 23 16:11:03 omg, this is amazing Jul 23 16:11:12 s/x == null || x.length() == 0/TextUtils.isEmpty(x)/ :) Jul 23 16:11:17 alankila: you'll be surprised... Jul 23 16:11:35 alankila: pretty much... each form field that's mandatory. Jul 23 16:11:56 well typically your scheme generates either null or "something", or "" and never null Jul 23 16:11:59 home at last Jul 23 16:12:01 why do you need to test both "" and null? Jul 23 16:12:15 canadiancow|work, where in canada are you again? Jul 23 16:12:18 toronto Jul 23 16:12:21 * pfn was up in vancouver for the last week Jul 23 16:12:25 because of NPE Jul 23 16:12:32 vancouver is about as far away as san francisco Jul 23 16:12:35 also json objects can return null or "" Jul 23 16:12:36 indeed Jul 23 16:12:37 for strings Jul 23 16:12:49 hm. Ugly. Jul 23 16:12:50 alankila: because other code tends to randomly return one or the other. Jul 23 16:12:54 alankila: not necessarily, plenty of things like key lookup would do null, or a string (which could be "") Jul 23 16:13:08 The trick is to test it once which happens and then only use that form :-p Jul 23 16:13:09 well, whatever Jul 23 16:13:12 java doesn't have mutiple value return last i checked Jul 23 16:13:33 alankila: not always a choice if you're working with external libs and such. Jul 23 16:14:06 "Converts a CharSequence of the comma-separated form "Andy, Bob, Charles, David" that is too wide to fit into the specified width into one like "Andy, Bob, 2 more"." Jul 23 16:14:07 fun Jul 23 16:14:23 really? Jul 23 16:14:24 lol wut Jul 23 16:14:27 I have one problem with the Interface Builder (Android). When I try to position a relative layout using 'below', in another relative layout, it doesn't work Jul 23 16:14:37 TheTrash: sounds like design of fail to me Jul 23 16:15:03 wow TheTrash that's a cool method Jul 23 16:15:06 didnt know it was there :) Jul 23 16:15:07 alankila: sure. It is, however, the reality of our lives as developers. Jul 23 16:15:29 is there anyway to change the margin of the title text in ABS? Jul 23 16:15:40 canadiancow|work: me neither. Evidently, it's been there since API level 1 :O Jul 23 16:15:48 also people who use CharSequence have a special place in hell reserved for them. :-p Jul 23 16:15:52 I have one problem with the Interface Builder (Android). When I try to position a relative layout using 'below', in another relative layout, it doesn't work Jul 23 16:15:57 alankila: why Jul 23 16:16:03 String extends CharSequence, does it not? Jul 23 16:16:20 nah, just being difficult here Jul 23 16:16:57 never mind. It's probably one of those days. But I've personally have had the awesome feeling of passing in a String in one method and then having to call toString() on it later because it comes back as CharSequence. Most of the time it just adds extra noise to simple programs. Jul 23 16:17:22 it's java Jul 23 16:17:25 sometimes, I guess, you do want to allow passing in StringBuilders too Jul 23 16:17:27 this is what you signed up for Jul 23 16:17:50 you think this is bad Jul 23 16:17:55 go play with C with strings Jul 23 16:17:57 java doesn't have to suck. It's just people who have bad taste... :-p Jul 23 16:18:16 it actually does Jul 23 16:21:33 hi sorry for the multi posting , i had a problem with my IRc client Jul 23 16:21:37 I have one problem with the Interface Builder (Android). When I try to position a relative layout using 'below', in another relative layout, it doesn't work Jul 23 16:21:42 thanks in advance Jul 23 16:21:52 JakeWharton: Any suggestions why I wouldn't be able to change the text color in actionbarsherlock? I've tried this simple style setup and it does not apply: http://pastie.org/4307015 Jul 23 16:23:18 is there anyway to change the margin of the title text in ABS? Jul 23 16:23:39 i am editing an old app. since i started editing, i started to get some db related error messages "trying to requery an already closed cursor". I get this message when I press back button from an activity. i have no idea where to look because the stacktrace doesnt say much on my code Jul 23 16:24:45 http://pastebin.com/pPxq1HFD my phone keeps restarting itself... Jul 23 16:24:48 any suggestion how to debug deep into these issue? Jul 23 16:25:59 jahid: oohh here comes the spaghetti. Well, usually, this signifies bad cursor handling, so.. look for cursors. Jul 23 16:26:05 jahid: have you tried looking at the activity throwing the exception? Lookk at where the cursor is used as it appears to be closed. Jul 23 16:27:18 TheTrash, developernotes well i tried. the guy who created the code made lotz of cursor and didnt close. also about the stacktrace, gives system stacktrace Jul 23 16:27:25 not specific line in my code Jul 23 16:28:08 jahid: are you able to reproduce the error locally? Jul 23 16:28:40 yes Jul 23 16:29:12 Sounds like you might just need to set some breakpoints and step through it then. Jul 23 16:29:59 since requery() is deprecated, chances are something should be rewritten ... Jul 23 16:46:46 developernotes, sorry i was away Jul 23 16:46:51 developernotes, here is the error Jul 23 16:46:53 http://pastebin.com/Ycx5fks6 Jul 23 16:47:19 there are managed cursors by list views Jul 23 16:47:47 i am sure one of those are messing up, but the problem is, i dont know which one it is, neither the stacktrace tells me which one it is Jul 23 16:48:44 jahid: are you able to set a break point within the listviews, where the cursors are being operated on? Jul 23 16:50:47 developernotes, in the code, it gets the cursor, then calls "startManagingCursor", and then just initializes the adapter. later on passes that adapter to list view Jul 23 16:51:00 so i am not sure where to set the break point Jul 23 16:51:17 and its not happening when its populating, its happening when we coming back to that activity Jul 23 16:51:51 jahid: maybe in the adapter then. Jul 23 16:52:07 OK so not a newb to development but never worked linux/android before ..... sorry M$ .net and some JAVA :) any opinions on best IDE for android dev? Jul 23 16:52:15 developernotes, its a SimpleCursorAdapter, you want me to set breakpoint on the source code? Jul 23 16:52:27 yanivc: Just start with Eclipse for now. Jul 23 16:52:27 Ive tried eclipse and after using VS for years... eclipse leaves a lot to be desired Jul 23 16:52:41 yanivc: What are some examples of what you are missing that you want? Jul 23 16:52:51 um.... real intellisense Jul 23 16:53:00 I'm having difficulties getting custom xmlns to work. R.java: http://pastebin.com/xZbhVX9f, Layout XML: http://pastebin.com/nAkaA6k4 -- any ideas? Jul 23 16:53:22 yanivc: Example? (I don't use either IDE) Jul 23 16:53:25 rking: just seems to be a really "heavy" IDE Jul 23 16:53:35 these managed cursors are really boring Jul 23 16:53:45 jahid: try checking isClosed() on the cursor before it is handed off to the adapter. Jul 23 16:53:51 rking: just seems to take a while to dev in eclipse Jul 23 16:53:53 clunky Jul 23 16:54:16 anyone here try intelliJ? Jul 23 16:54:34 i use intellij Jul 23 16:54:54 yanivc: i love intellij Jul 23 16:54:57 yanivc: Well, I assume that's because you're not used to it, but I don't use IDEs in general, anyway. In the app I was working on last week, it only needed a small Java portion, the rest was CoffeScript, so I continued to happily use my Unix tools (vim, etc.) Jul 23 16:55:31 am I doing anything wrong? Jul 23 16:55:35 ya lol unfortunately Ive developed windows all my life... Jul 23 16:55:49 CodeFriar: is the intellisense fast on it? Jul 23 16:55:53 What does intelij do that eclipse doesn't? Jul 23 16:55:54 yanivc: The reason I was recommending starting with Eclipse is because it's the strong default. The Google tutorials themselves are Eclipse-based, etc. If you're starting out it's easier to go with that flow. Jul 23 16:55:55 yes. Jul 23 16:56:21 yanivc: I'd be really interested to hear your explanation of the differences between the completion in Eclipse and IntelliSense. Jul 23 16:56:58 rking: .... thanks I appreciate the help. Been doing C# for years and did JAVA long ago so Im not afraid of the dev part.... want tools to make it go faster :) Jul 23 16:57:23 yanivc: Believe me. I'm all about sharpening the saw. Jul 23 16:57:37 rking: well.... object. and theres like anywhere between 4 and 10 second delay Jul 23 16:57:49 eclipse is a massive pile of shit Jul 23 16:58:08 yanivc: But keep in mind that with tools as complex as editing environments, you won't hit max productivity (ever), and you won't hit enough productivity to make a decent comparison until a number of serious sessions and tutorials. Jul 23 16:58:17 even back in the day when I first worked with JAVA we had an IDE (cant remember name now) but it was WAYYY faster than eclipse was Jul 23 16:58:29 OK, speed I can sympathize with, sure. Jul 23 16:58:38 rking: .... M$ seems to have been able to do it with VS Jul 23 16:58:43 i have 12gb of ram and eclipse is still uber slow Jul 23 16:58:53 rking: exactly.... its the speed I need lol Jul 23 16:59:12 CallumTaylor: Ive got 8GB on a core i7 and its slow as mollasses Jul 23 16:59:35 I dumped it within 2 days of installing it.... now thinking to try intelliJ Jul 23 16:59:51 I'm too far gone to switch now Jul 23 17:00:00 CallumTaylor: lol sorry Jul 23 17:00:04 too many projects in eclipse, i can't afford the time to spend to move everything over x_x Jul 23 17:00:19 now all I need to do is learn me some linux too :D Jul 23 17:00:51 anyone looking into my question? Jul 23 17:01:41 joel135: Was your question about IDEs? Jul 23 17:01:57 CallumTaylor: how difficult is it moving projects over? Or are you referring to git and all that? Jul 23 17:02:07 Jonathan_Eyre: It was "I'm having difficulties getting custom xmlns to work. R.java: http://pastebin.com/xZbhVX9f, Layout XML: http://pastebin.com/nAkaA6k4 -- any ideas?" Jul 23 17:02:23 well i have library projects and stuff Jul 23 17:02:32 ahhh ok Jul 23 17:02:37 so lots of work then Jul 23 17:02:39 :) Jul 23 17:02:43 so id have to learn how they work in intellij, then import them all, reconfigure each project Jul 23 17:02:47 ya Jul 23 17:03:01 meh... fun sunday afternoon of hair pulling and screen cussing Jul 23 17:03:21 and time for another app update, since they've now put up the most serious weather warning they have (possibly apart from a tsunami warning) and my bloody app doesn't work :) Jul 23 17:03:39 lol Jul 23 17:03:42 always the way Jul 23 17:03:43 i actually need to start learning linux first..... would love to contribute to roms Jul 23 17:04:11 its amazing to me that ive been developing for 10 years and never got around to linux Jul 23 17:04:26 if there's anyone here willing to post their R.java and layout xml using custom xmlns I'd be grateful Jul 23 17:04:37 i wish i had the motivation to finish some of my projects Jul 23 17:05:18 CallumTaylor: I hear ya.... I actually have 4 WP7 projects in the works simultaneously just to keep me interested Jul 23 17:05:28 man i have so much Jul 23 17:05:31 and I dont even own a WP7 :) Jul 23 17:06:10 i need to finish my portfolio in Rails, finish my web game, finish writing my game engine in c, finish my 'instagram' type WP7 app Jul 23 17:06:27 yanivc: The best way to learn Linux is to install Cygwin. Then, piece by piece, you find interesting command-line ways to do things, until you slowly don't need your OS outside of Cygwin except for web browsing. Jul 23 17:06:33 CallumTaylor: lol.... you need to watch the movie multiplicity is what you need Jul 23 17:06:46 Leeds: woa people dying because of your app :P Jul 23 17:06:48 (Well, except for programs you can run on Linux, I should say: Firefox, whatever Android tools, etc.) Jul 23 17:07:09 fuck Jul 23 17:07:12 if i could clone myself Jul 23 17:07:31 rking: this looks cool Jul 23 17:07:45 CallumTaylor: .... I got a wallet!! Jul 23 17:07:57 CallumTaylor: Seriously man. I'm not even greedy: Though a pack of 1,000 of me would be cool, I'd settle for only one. =~( Jul 23 17:08:00 TheTrash: the weird thing is that I once pushed out an update with some test code left in it, which notified a pair of alerts which I thought were very unlikely to really happen, so good test data - Typhoon alert 10 and thunderstorm alert... which happen to be the alerts out now Jul 23 17:08:20 rking: me too, id create a startup, we'd be the best company ever Jul 23 17:08:35 i don't really like working with other people, especially when they code with braces on same line Jul 23 17:08:40 rking: how different is cygwin from actually using linux? Jul 23 17:08:51 Leeds: uh oh.. so people dying AND people cancelling day trips for no reason :P Jul 23 17:08:58 eyah Jul 23 17:10:02 home time, cya Jul 23 17:10:08 Hi, anyone have experience with compiling android kernels? I followed https://wiki.archlinux.org/index.php/Android#Building_Android, but it seems like the kernel needs to be built separately. Is that correct? Jul 23 17:10:25 gkwhc: you may get more help in #android-root Jul 23 17:11:02 yanivc: It's the same stuff, but to a lesser degree, is all. For example, I can't run my incredibly powerful Window Manager (Xmonad) in Windows, and otherwise all the complexity and problems 'of Windows are present. Jul 23 17:11:22 lov: yes i have asked there, awaiting for response Jul 23 17:11:55 app published, back to bed Jul 23 17:11:55 rking: thanks gonna DL it & start playing around. Jul 23 17:12:16 By this time tomorrow I should have my first custom rom done!! ;) Jul 23 17:14:19 I'm noticing that the title of my actionbar gets truncated even when there is enough space available on action bar on phone Jul 23 17:14:27 I just have couple of menu icons on the bar Jul 23 17:15:49 yo ... got a strange issue, wondring if anyone could help me out ... I have a layout to which i add buttons at runtime ... everything works fine, but when i press a button, the wrong button reacts (changes background) Jul 23 17:16:00 anyone got a clue what could be wrong Jul 23 17:16:10 Does anyone know how to make buttons like the ones at the bottom of this screenshot? http://goo.gl/j9N1q Jul 23 17:16:18 come on! there has to be someone here with a working custom xmlns layout! Jul 23 17:16:43 cr5315: what can't you do? Jul 23 17:17:14 I want to have buttons like the cancel and OK in my app, but I can't think of how to make them like that screenshot Jul 23 17:18:25 I need to associate a certain file type (*.cpdef) with my app, so I added this intent filter (http://pastebin.com/3DSNTEBM). It works in some cases, but it does not work when the user attempt to open a file just received via bluetooth. If I change the mime type and pattern on the intent-filter to "image/jpg" and ".*\\.jpg", it work perfectly for *.jpg files, so I guess it's related to mime Jul 23 17:18:25 type. What should I use? */* doesn work, and with other options line ""(empty) or "*" the app don't even install. Leaving no "mimeType" attribute doesn't work either Jul 23 17:20:29 freakolowsky: you're probably reusing listeners, or you're reusing buttons. Strongly consider not adding content at runtime; use a listview or something else instead. Jul 23 17:22:06 lov ... listviews won't play for my case ... is true, i am reusing onClick listener, but the correct action is performed ... just the highlighht is wrong Jul 23 17:23:53 JakeWharton: you there? Jul 23 17:24:01 partially Jul 23 17:24:12 i'm still recovering from the statement that cygwin and linux are almost the same thing Jul 23 17:24:47 anyone in NOVA looking for an android developer job? (clearance required) Jul 23 17:26:34 porten: please don't troll for jobs here. Jul 23 17:27:02 lov: sorry Jul 23 17:27:04 * lov points to the topic Jul 23 17:27:14 oops, sorry Jul 23 17:27:19 np Jul 23 17:27:32 JakeWharton: I'm facing a weird issue with actionbar I've posted it on abs group too, btw it only occurs on honeycomb Jul 23 17:27:34 https://groups.google.com/forum/?fromgroups#!topic/actionbarsherlock/YRk2O3Rckyw Jul 23 17:27:56 If I write an xmpp service that listens for new xmpp connections I need to (in onCreate() in the service) connect to some xmpp service. This is networking and should be done in a thread. However, if I start the connection in a thread how do I get a reference to the connection out of the thread's run. I need the connection reference to create listeners like onRosterChange and onMessageReceive Jul 23 17:28:08 the issue is R.styleable.SherlockMenuItem_android_actionProviderClass is resolving it res/drawable-mdpi/ic_go_search_api_holo_light.png Jul 23 17:29:05 Maybe I should use async task? Jul 23 17:31:07 So I have a service which handles background constant stuff (interfacing to BT, writing to database, etc). I've got a bunch of front-end stuff that needs to trigger things (like wiping the log from prefs). Is the best practice just to let the prefs activity bind to the service too and issue it a command? Jul 23 17:31:38 alright everyone.... Im about to admit something HORRIBLE........ Jul 23 17:31:51 and it hurts SOOOOOOOOOO much to admit this........... Jul 23 17:32:09 .Net devs are much meaner than other dev types lol Jul 23 17:32:34 cept for linux..... most linux folks I know are real pricks to newbs :P Jul 23 17:35:25 yanivc: we should really try to bring those two communities together in monodroid Jul 23 17:35:50 alankila: that would be sweet Jul 23 17:35:56 deadmund: store it in a variable in your service? Jul 23 17:36:00 but linux fanaticism doesn't mix with .net hostility. If you don't write everything in C, you're a nobody. Jul 23 17:36:05 alankila: have you played much with monodroid? Jul 23 17:36:27 alankila: ya unfortunately have not worked much with c Jul 23 17:36:33 lov: The connection is made in the thread. How do I get a reference to it in the service. The thread is inside the service and doesn't return Jul 23 17:36:48 dragorn: depending on what you're doing, that can be totally fine. You could also issue broadcasts. Jul 23 17:36:49 asynctask does return Jul 23 17:36:53 Wait, wasn't .net the one that said, "Ehh, we're too good for Java. Let's reinvent it as a Microsoft thing." ? Jul 23 17:37:05 ( dragorn: and for sanity/security's sake, you can always set permissions on them ) Jul 23 17:37:13 lov: I was thinking about broadcasts, I'd definitely have to set permissions Jul 23 17:37:20 .NET is actually good though Jul 23 17:37:31 lov: "why sure, that broadcast will make me wipe my database, no need to ask who you are..." :P Jul 23 17:37:33 yanivc: nah, haven't even touched the thing actually Jul 23 17:37:51 I do not like the idea that we'd end up with multiple development environments/stacks, even if it's inevitable Jul 23 17:38:13 deadmund: you're going to want to do all your IO in the thread, too. Anything which can block has to be outside of the UI thread. Jul 23 17:38:30 dragorn: Ahh, so those listeners should be in the thread too. Jul 23 17:38:54 deadmund: yeah; you don't want anything but UI in UI really. And dispatch. Jul 23 17:39:12 deadmund: Also you'll probably want your connection objects to be in a service otherwise rotating the screen can cause issues Jul 23 17:39:55 dragorn: But, if I want to send a message. I need to do that depending on when the user does something in the activity (clicks a button). But how does the button get a reference to the connection that's buried in a thread in a service? The thread can't return the connection reference to the service. Jul 23 17:40:31 deadmund: If you have a service you can send a message to it (look at the service example code) that says "do something on your connection" Jul 23 17:40:56 deadmund: if you have multiple connections, then when the service makes a connection it could send the UI code "connection id 123 is to abcd" or whatever identifier you use Jul 23 17:41:18 deadmund: then your message from the button to the service would be, say, a bundle, with an attribute of the connection id that part of your ui is associated to Jul 23 17:42:44 dragorn: I'm referring to the xmpp connection when I say 'connection' The activity has a reference to the service. That's clear (it's a class). But how does the service have access to the xmpp network connection that was created in a thread? Jul 23 17:43:00 because i need to run conn.sendXMPPMessage("some message") Jul 23 17:43:40 deadmund: you're starting a thread on the service, right? Jul 23 17:43:49 deadmund: presumably the xmpp is owned by the service. A thread running in the service (to establish a connection w/out blocking the service) would have access to the globals of the service its inside of Jul 23 17:43:50 have your service contain a member variable for the connection Jul 23 17:43:51 lov: The service starts the thread. that's right. Jul 23 17:43:55 and then have your thread set that variable Jul 23 17:44:01 then reference that variable. Jul 23 17:44:17 If the thread is an inner class, it can reference members of its parent Jul 23 17:44:18 dragorn: Ahh! Didn't know that the thread and the service could share member variables in that way. Jul 23 17:44:21 yeah Jul 23 17:44:22 I see now Jul 23 17:44:32 lov: dragorn Thanks Jul 23 17:44:34 that's just a simple solution Jul 23 17:44:51 you might want to engineer this harder; make some sort of XMPPConnections class that the service will have an array of Jul 23 17:44:56 etc Jul 23 17:45:21 lov: Yes. I'll get this working first. Thanks for the help. Jul 23 18:00:15 Im using an Android MultiChoiceMode CAB on my grid view and I wanted to remove an option from my action bar when multiple items are selected, so its only visible if a single one does. Cause that operation is impossible to do in batch. how would I go about this? Jul 23 18:07:00 Lexi: override prepare options or whatever it is and hide or show depending on selected count. Then when you select an item you need to invalidate the action bar Jul 23 18:08:23 ahh, thanks. Also how do I go about showing a selector around my grid view object when selected? like the ICS gallery style behavior Jul 23 18:09:29 I dont THINK most list views support this. I had to do it by hand myself. Jul 23 18:09:44 but I'm using actionbarsherlock Jul 23 18:09:56 :| Jul 23 18:10:25 theres the navigation section Jul 23 18:10:39 ActionBarWharlock you mean Jul 23 18:11:08 mikedg: Did you ever get a Google TV in that long line at IO? Jul 23 18:13:19 Lexi: oh! if you're just supporting ICS or up you use ListView.CHOICE_MODE_MULTIPLE_MODAL but its not in the compat lib so I had to do it by hand for compatibility Jul 23 18:13:43 I am using that, its working great, but I can't get my selector to respond to it Jul 23 18:13:52 as in I want a frame around the selected item when in the mode Jul 23 18:14:24 the items get selected and all in code, but it doesn't apply my selector Jul 23 18:14:25 Lexi….doh totally misread. Jul 23 18:14:35 lol Jul 23 18:15:13 Lexi, are you setting the drawable and maybe not setting draw on top? Jul 23 18:16:12 I am, it shows on focus, and press, but not when I'm checking them in the multiple choice mode Jul 23 18:17:36 hmmm I forget if this is the right way, but one way is to add it to the list item, and then set visibility if the item is checked Jul 23 18:17:47 keep in mind that selection and checked are totally different Jul 23 18:18:00 ~_~ Jul 23 18:18:21 should I check for selected or checked, or activated, in my selector Jul 23 18:18:45 checked for older devices. Jul 23 18:19:00 and for newer? o.o Jul 23 18:19:05 I'm testing on a Galaxy Nexus Jul 23 18:19:21 if you're targeting something new, I think you can just add an activated state to your items drawable selector and it does it automagically Jul 23 18:19:31 hmmm Jul 23 18:19:39 Im targetting Android 4.0.3 Jul 23 18:20:30 try it with the drawable state first, so you dont have to muck with your adapter Jul 23 18:20:50 trying Jul 23 18:21:03 Eclipse and is being as delightfully fast as usual Jul 23 18:21:08 and adb* Jul 23 18:21:23 still not showing it :/ Jul 23 18:22:36 =/ Jul 23 18:24:27 could it be the order of my selector items Jul 23 18:24:42 possibly Jul 23 18:24:50 put it at the top Jul 23 18:29:10 nope.. Jul 23 18:36:35 https://play.google.com/store/apps/details?id=com.engrave.the_bro_code Jul 23 18:37:45 Interesting app... Jul 23 18:38:38 I need to associate a certain file type (*.cpdef) with my app, so I added this intent filter (http://pastebin.com/3DSNTEBM). It works in some cases, but it does not work when the user attempt to open a file just received via bluetooth. If I change the mime type and pattern on the intent-filter to "image/jpg" and ".*\\.jpg", it work perfectly for *.jpg files, so I guess it's related to mime Jul 23 18:38:39 type. What should I use? */* doesn work, and with other options line ""(empty) or "*" the app don't even install. Leaving no "mimeType" attribute doesn't work either Jul 23 18:39:05 halt Jul 23 18:43:46 I'm not sure why you have .\\. in your path; that's windows notation, while android uses linux. Jul 23 18:46:02 BlackYue: try setting the mimeType to * Jul 23 18:46:06 rather than */* Jul 23 18:46:44 lov: that's a regular expression. .*\.jpg is the regex equivalent of *.jpg Jul 23 18:46:50 ah, whoops Jul 23 18:47:33 missed the .*; that should have tipped me off Jul 23 18:48:10 screw it jayd16 ill just put a drawable on my view and toggle it in my listviewadapter -_- Jul 23 18:49:08 Hello :) Jul 23 18:51:35 ryanm: This way, the app don't even install =( Jul 23 18:52:35 ryanm: Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Jul 23 18:52:59 oh, sorry, you're right. Jul 23 18:53:02 I misread the docs Jul 23 18:53:32 http://developer.android.com/guide/topics/manifest/data-element.html might indicate that you can't set the mimeType to a wildcard, only the subtype Jul 23 18:53:36 though I'm not sure Jul 23 18:54:49 I'm trying to create a 2 fragment activity, with a listview on the left, and a tableview on the right, for some reason the listview which is created first, takes over both sides, and then when i click on one of the items to create the table on the left, the table is placed over it. I want the listview to be 350dp wide. even if i put that in the .xml file, it still uses the whole screen. what else should i try? Jul 23 18:55:10 yeah, I read this Jul 23 18:55:43 though "*/*" does work in other cases. For exemple, if I download an *.cpdef file from the internet browser, it does open my activity Jul 23 18:55:52 eppo: in the activity layout define a linearlayout containing two framelayouts Jul 23 18:55:54 eppo: pastebin your XML Jul 23 18:56:16 or yeah, pastebin Jul 23 18:56:39 hmm why dont my opengl textures work on nexus 7 Jul 23 18:56:45 totally fine on galaxy nexus Jul 23 18:56:56 not all textures, just some textures Jul 23 18:58:09 http://pastebin.com/xTqHTRQi Jul 23 18:58:30 this skybox as a cubemap just comes out all grey, as 2d texture it actually crashes or rather silently exits Jul 23 18:58:37 exact same apk is fine on galaxy nexus Jul 23 18:58:57 both cubemap and 2d tex work fine on phone that is Jul 23 18:59:30 OccultPaparazzi, wrong texture compression algorithm? Jul 23 18:59:30 I found that sometimes when I'm trying to launch one of my activities, it will instead try to go to Settings, or the last app I had open. Has anyone else had this problem? Jul 23 18:59:43 OccultPaparazzi, Nexus has a nVidia GPU, Galaxy Nexus has a PowerVR Jul 23 19:00:36 not using texture compression Jul 23 19:00:43 well i plan to upgrade to it eventually Jul 23 19:00:46 but first the basics Jul 23 19:03:47 hmm actually reflections of the cubemap are working, just not the skybox Jul 23 19:03:50 interesting, that gives me a lead Jul 23 19:08:28 google is really bad at selling stuff Jul 23 19:08:32 i cancelled an order for a nexus 7 last week Jul 23 19:08:36 i just got charged for it Jul 23 19:08:59 or maybe _really good_ at ... Jul 23 19:09:00 ;) Jul 23 19:09:33 canadiancow|work: why did you cancel ? Jul 23 19:09:39 * oGMo wants a sgs3 :| Jul 23 19:09:47 because i got one in a local store Jul 23 19:09:55 and google hadnt shipped my preordered 16GB yet Jul 23 19:09:58 oh cool they were all sold out locally here Jul 23 19:10:05 yea i had to drive further than id like Jul 23 19:10:09 i'm impressed they were in stores at all Jul 23 19:10:10 but the gas cost less than shipping from play Jul 23 19:10:11 so... Jul 23 19:10:26 canadiancow|work: maybe you didn't cancel within the 15 minute window Jul 23 19:10:27 * oGMo runs Jul 23 19:10:34 lol Jul 23 19:10:45 i'm gonna wait a little while longer to see whats up with those screen issues Jul 23 19:11:36 mine's fine Jul 23 19:11:47 but one guy at work has a really bad one Jul 23 19:11:59 canadiancow|work: does part of it go unresponsive ? Jul 23 19:12:07 ? Jul 23 19:12:13 no it just pops up Jul 23 19:12:17 it isn't glued down well enough Jul 23 19:12:29 http://www.geek.com/articles/gadgets/video-nexus-7-touchscreen-defect-20120720/ Jul 23 19:15:11 oh wow Jul 23 19:15:24 that sucks Jul 23 19:19:51 my surfaceview drawing has lots of tracers, or afterimages of bitmaps drawn before. What can cause this? Jul 23 19:24:27 i havent noticed any touchscreen problems Jul 23 19:24:42 only nexus7 problem i have is that my apks that work on other android devices have weird bugs Jul 23 19:24:55 also works on iphone, windows, osx, linux Jul 23 19:25:00 basically everything but nexus7 Jul 23 19:28:11 themirror: incorrect invalidating? Jul 23 19:28:51 if i dont fix this week i think gonna be forced to drop android support Jul 23 19:29:17 i need to get back to focusing on actual game development Jul 23 19:30:11 p_l|home: I'm using SurfaceView's lockCanvas and unlock after each frame. Jul 23 19:30:14 OccultPaparazzi: is it installing the app to the right place? someone reported their app being installed the SD card by default on 4.1.1 Jul 23 19:30:58 hmm will check that wongk thanks Jul 23 19:31:01 anyone know of a reusable SlidingDrawer (subclass or completely custom) view that will slide from left to right? Jul 23 19:31:11 themirror: does the flashy pink rectangle dev tool work for you? Jul 23 19:31:11 Would rather not write my own if one's out there on github or something. Jul 23 19:33:09 jrr: I'm not familiar with it? Is it under /opt/android-sdk/tools? Jul 23 19:33:20 wongk yea it's all installed to external storage on JB Jul 23 19:33:27 themirror: I mean the "show screen updates" option Jul 23 19:33:29 if it's paid Jul 23 19:33:43 my actual sleep times between frames arent horrible, so it's not slowdown Jul 23 19:33:46 really handy for partial invalidation of surfaceview Jul 23 19:33:52 ..at least under 2.3, when last I saw it work Jul 23 19:34:11 hmm i am running on 2.1 Jul 23 19:34:11 ill look into it hold on Jul 23 19:34:17 canadiancow|work: that's a rather large issue Jul 23 19:34:28 why? Jul 23 19:34:37 because it breaks a lot of things Jul 23 19:34:41 why would an app care where it is? Jul 23 19:34:41 like what? Jul 23 19:35:01 boot broadcast, home screen widgets Jul 23 19:35:33 dont listen for boot Jul 23 19:35:37 or Jul 23 19:35:40 probably other stuff that i am not aware of Jul 23 19:35:43 ALSO lsiten for "external mounted" Jul 23 19:36:05 jrr: is this only available on the emulator? The emulator is way too slow for my game Jul 23 19:36:34 themirror: no, definitely should be there on hardware Jul 23 19:36:37 maybe not back in 2.1, dunno Jul 23 19:38:50 not sure, under Applications and Development i just see USB debugging, stay awake and allow mock locations Jul 23 19:39:09 apps on SD can't do some things... or rather, widgets, homescreens etc. might not work properly Jul 23 19:40:07 not to mention internal storage if often signficantly faster Jul 23 19:40:08 jrr: okay there's apparently some stuff i need to build for it to work. thanks for the pointer ill look into it Jul 23 19:43:04 whats the recommended way to store android preferences Jul 23 19:43:10 for your app Jul 23 19:45:06 ben1066: http://developer.android.com/guide/topics/data/data-storage.html#pref Jul 23 19:45:17 thanks :) Jul 23 19:47:07 ben1066: i use a sqlite database Jul 23 19:49:31 monsti: I dont have a a huge amount of data Jul 23 19:49:59 Where do Activities' Base Contexts come from? I'm talking about the ones accessible through getBaseContext() Jul 23 19:53:16 ben1066: afaik android's prefs also creates a sqlie db Jul 23 19:53:32 Maybe a more suitable question is "What_ are they?" Are they hosting Activities or what? Jul 23 19:53:40 monsti: Its also, though not as clean, but easier to implement :P Jul 23 19:54:08 android preference are stored in XML Jul 23 19:54:10 joel135: they're from the context wrapper class I believe, if thats what you asked for Jul 23 19:55:38 SharedPreferences are stored in ApplicationInfo.dataDir/shared_prefs, in XML files Jul 23 19:57:48 canadiancow|work: http://developer.android.com/guide/topics/data/install-location.html#ShouldNot Jul 23 20:02:31 Is there a way to get more information about the state of an android process other than running "ps" on the android? Jul 23 20:03:51 I'm in a situation where I'm trying to kill a service (that I wrote) using "adb shell kill my.app.name", but the linux process won't die. Jul 23 20:04:00 is there something I need to do to force it to die? Jul 23 20:05:41 doh. I need a pid instead of a process name. nice of ps to return an error to that effect... Jul 23 20:06:09 killall uses the name Jul 23 20:06:28 if android has killall Jul 23 20:06:29 on linux Jul 23 20:06:39 and android doesn't always have killall, iirc Jul 23 20:07:01 Can anyone help me with my make error? Jul 23 20:07:17 CM does Jul 23 20:07:26 but im sure its rom specific Jul 23 20:07:28 draciel882: post in a pastebin, link here Jul 23 20:07:39 http://pastebin.com/iVJxmdp7 Jul 23 20:08:03 Hi, anyone have experience with compiling android kernels? I followed https://wiki.archlinux.org/index.php/Android#Building_Android, but it seems like the kernel needs to be built separately. Is that correct? Jul 23 20:10:05 gkwhc, draciel882: have you tried #android-root? I think they should know this the best Jul 23 20:10:26 I haven't tried them but I will head over there, thanks Jul 23 20:13:18 Why wouldn't the Android Compatibility Package showup in the SDK Manager? Jul 23 20:16:17 lasserix: Eclipse -> Right click on project -> Android Tools -> Add Support Library... -- that's what I did Jul 23 20:18:33 romainguy_: surprised to find the GPU emulation in the emulator is still really unstable with jelly bean Jul 23 20:18:43 romainguy_: is this project maintained? Jul 23 20:22:09 gkwhc: youll need your devices cross compile toolchain, thats it Jul 23 20:22:28 Im fairly sure there is a guide on source.android.com Jul 23 20:25:13 fixed the cubemap problem! Jul 23 20:25:20 normalize() saves the day Jul 23 20:26:46 ok next problem is the texture looks like crap Jul 23 20:26:55 like really grainy, far more than input Jul 23 20:27:05 i already tried renaming my pngs to mp3s but it wasnt that ;) Jul 23 20:29:09 are a lot of free android apps open source on github? Im looking for some cool examples Jul 23 20:29:27 i wouldn't say "a lot" Jul 23 20:29:28 I am writing a service to parse RSS and need to use a Content Resolver but how can I access a content resolver from a Handler in a Service. Jul 23 20:29:33 i'd say some Jul 23 20:30:06 ben1066: where do i get the device's toolchain? the guides are hard to follow.. Jul 23 20:30:16 Lord_Zero: http://en.wikipedia.org/wiki/List_of_open_source_Android_applications Jul 23 20:30:29 http://source.android.com/source/building-kernels.html Jul 23 20:30:33 explains it all gkwhc Jul 23 20:31:45 joel135: ty Jul 23 20:36:17 Also, every app ive seen so far has had settings in a seperate activity Jul 23 20:36:46 How can I then access the data from the main activity? Jul 23 20:37:17 imma try 2nd activity for purpose of theme splash screen Jul 23 20:37:19 wish me LUCK Jul 23 20:38:07 ben1066: .getSharedPreferences Jul 23 20:38:19 is there a standard way to stop an android application? Jul 23 20:38:33 joel135: I have to start the activity to do it then? alright Jul 23 20:38:38 well, instantiate Jul 23 20:38:56 for example, what exactly does stopService(intent) do? How is that intent constructed, and what method handles it? Jul 23 20:39:00 armenb: I think there was_ a standard way, but that it now requires root. not sure though Jul 23 20:40:20 ben1066: or you could read .dataDir/shared_prefs/ directly (discouraged) Jul 23 20:40:49 joel135: Since they are both the same application can I not read it from teh main activity? Jul 23 20:41:19 armenb: sorry, I first thought you meant you wanted to stop someone else's app Jul 23 20:41:46 ben1066: yes. that's the best Jul 23 20:42:56 joel135: ah good Jul 23 20:54:09 joel135: well, I want to stop my own app, but from the command line. so that could effectively be someone else's app. Jul 23 20:54:53 it seems that one way I could do this is to use a startService() intent with an extra that tells the service to stop itself. Jul 23 20:55:11 on certain devices, the call to to ConnectivityManager.getActiveNetworkInfo() always returns null. This is also apparently a filed bug See http://code.google.com/p/android/issues/detail?id=11866 and http://code.google.com/p/android/issues/detail?id=11891 for example. Is there any way around this? Jul 23 20:55:33 this has the downside in the case of the service not running: the service starts up only to notice that it's been commanded to stop itself. Jul 23 20:56:00 another is through a broadcast intent Jul 23 20:59:18 Sorry if this is a dumb question, but I'm trying to pass a value from one activity to another. I'm using the method in the second answer from here http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android But I seem to get an error from initiating the Bundle in my second activity. The only thing I can think of is that I'm using alarm-manager to control the deployment of the s Jul 23 21:00:19 armenb: that doesn't seem like a huge downside. since it terminates instantly, there shouldn't be an issue Jul 23 21:01:01 abel, how are you grabbing the bundle? paste your code Jul 23 21:01:26 abel: stack trace or gtfo Jul 23 21:02:26 luxurymode:I assume you mean Bundle extras = getIntent().getExtras(); I have that in the class definition, not the onCreate() Jul 23 21:02:42 in the class definition?! Jul 23 21:02:52 paste your damn code! Jul 23 21:03:16 activities receiving intents has absolutely zero to do with class definitions Jul 23 21:03:22 anyone using actiionbarsherlock and using it to create menu? Jul 23 21:03:30 i want to create non-modal menus Jul 23 21:07:27 I'm gonna assume the code's too bad to put up here, I managed to get rid of the error, thank you though Jul 23 21:07:59 Is there a way to put a variable in place of the resource name when doing: getResources().getString(variable here); I'm trying to create the resource names from converted array-string's. Jul 23 21:08:13 are there still a lot of devices on 1.6? Jul 23 21:09:04 noone relevant Jul 23 21:09:22 lucasoman, yes when i used my G1 regularly i was on 1.6 Jul 23 21:09:47 1.6 works too nice on the g1 to go higher :3 Jul 23 21:09:57 yeah, but it's a g1 Jul 23 21:10:05 key word was "used" Jul 23 21:10:19 Man, people still use 1.6? Jul 23 21:10:20 yes, since approx an hour ago :p Jul 23 21:10:24 oh Jul 23 21:10:25 lol Jul 23 21:10:25 for *used* Jul 23 21:10:52 i might go back to it, but right now i need a different phone for certain purposes Jul 23 21:10:52 welp you cant play my app, upgrade to 2.2 slacker Jul 23 21:11:01 2.2. laaagggsss Jul 23 21:11:02 hah Jul 23 21:11:10 Cm7 isn't too bad, though, actually Jul 23 21:13:01 i have no idea how im gonna gracefull degrade game performance Jul 23 21:13:09 seems the first time it runs i need to do an fps test Jul 23 21:13:17 and if the fs is crap turn everything off Jul 23 21:13:25 including go from gles2.0 to 1.1 Jul 23 21:13:33 im sure that is going to be a joy to implement and test Jul 23 21:13:43 hey all, so I have an app that posts some data to a server, it posts the value of a string for example (name.toString()) but when the data shows up on the server, the value of the string is: [Ljava.lang.String;@40548370 Jul 23 21:13:47 any ideas? Jul 23 21:14:02 OccultPaparazzi: don't bother degrading for 1.6 Jul 23 21:14:05 http://developer.android.com/about/dashboards/index.html Jul 23 21:14:09 but other strings work fine, such as Build.Version.Release which are strings Jul 23 21:14:25 0.7% are on 1.6 or lower Jul 23 21:14:42 nice Jul 23 21:14:43 and i bet that 0.7% are not interested in graphic-intense games, anyway Jul 23 21:15:19 lucasoman Jul 23 21:15:25 explain how they got 1.5/1.6 data Jul 23 21:15:31 if there is no google play :p Jul 23 21:15:34 currently my games gets 2.5fps on galaxy nexus (unplayable), 10 fps on iphone4 (playable), and 30 fps on nexus7 Jul 23 21:15:45 how does 1.6 not have google play? Jul 23 21:15:53 old market :P Jul 23 21:16:16 i wonder if "Google Play" in this explanation covers that Jul 23 21:16:27 but pretty sure it will get playable fps using gles1.0 on galaxy nexus Jul 23 21:16:27 seems like that would be a huge oversight Jul 23 21:16:33 and would make these data useless Jul 23 21:17:01 except 1.6 can't access play at all Jul 23 21:17:24 can it access the old app store? Jul 23 21:17:32 I would think so Jul 23 21:17:44 okay, just looking for an explanation at this point. i accomplished my transparency requirements with c.drawColor(0, PorterDuff.Mode.CLEAR); on my SurfaceView and now the afterimages are gone. can anyone clue me into why this fixed my tracers problem?? Jul 23 21:18:15 OccultPaparazzi: last section on that page addresses gles usage Jul 23 21:18:17 interesting Jul 23 21:18:47 danharibo: what i'm wondering if access to the old app store is implied in this data Jul 23 21:18:59 omitting data from that store would make this data useless Jul 23 21:18:59 lucasoman: ... Jul 23 21:19:01 It is Jul 23 21:19:01 probably is :p Jul 23 21:19:06 the old app store is still play Jul 23 21:19:14 exactly Jul 23 21:19:18 which means this data is accurate Jul 23 21:19:26 shrug Jul 23 21:19:31 * frankdreypc loves his g1 Jul 23 21:19:34 <3 Jul 23 21:19:44 whether they're using the old app store, or the new google play, it's still being counted, and still amounts to 0.5% Jul 23 21:19:48 hehe Jul 23 21:20:12 its probably counting something other than app store use Jul 23 21:20:15 and that's fine... all I was saying is that it may not be worth hours of coding to get his game to work on 1.6 Jul 23 21:20:23 because im sure most phones rarely visit store Jul 23 21:20:27 when, realistically, he may not get a single download from that version Jul 23 21:20:54 OccultPaparazzi: "The following pie chart and table is based on the number of Android devices that have accessed Google Play within a 14-day period" Jul 23 21:21:05 oic Jul 23 21:22:13 and actually, as an app developer, all that matters to you use google play access :) Jul 23 21:22:16 since that's where your game is :P Jul 23 21:22:23 there could be a lot more old phones out there but at least their users have the decency not to trouble developers trying to install ours apps on their ancient hardware Jul 23 21:22:29 tl;dr, it's ok to not support 1.6 Jul 23 21:22:32 whether people are using 1.6 or not doesn't matter... it's whether those people are looking for things to download from the store Jul 23 21:23:03 :P Jul 23 21:23:07 OccultPaparazzi, but we do love you if you do give us support :P Jul 23 21:23:14 hehe Jul 23 21:23:17 whatevs Jul 23 21:23:25 * frankdreypc is getting an lg g2x Jul 23 21:24:16 is there a way I can tell what activities/services are running within an android application? Jul 23 21:24:46 or a guy is giving me a toshiba windows phone prototype that can get android on it Jul 23 21:25:57 frankdreypc: that sounds like it'd have plenty of community support Jul 23 21:26:12 Does stock android have any number selector? Jul 23 21:26:18 like the one used in the clock Jul 23 21:26:33 4.x does Jul 23 21:26:44 As a preference object? Jul 23 21:26:47 class8 Jul 23 21:26:49 class* Jul 23 21:27:09 I'm making a practice IRC bot! I was going to base it on PircBot so one class, the IRC Connection, would extend PircBot. A second class would extend Server. This would interact with the third class, the Activity, to display statuses on a TextView. Any quick tips on the structure before I delve into this? Jul 23 21:27:26 ben1066: don't think so Jul 23 21:27:31 damn Jul 23 21:29:26 The server I was thinking would be the object that handles all of the logic that the bot follows (it's not very complex) Jul 23 21:30:04 BlehTM, do it in Perl :D with SL4A :D Jul 23 21:32:05 When an application dies, how do I programmatically click through the "Unfortunately, Foo Bar has stopped" dialog? Jul 23 21:32:17 https://gist.github.com/959884 Jul 23 21:32:19 yay :D Jul 23 21:32:28 haha frankreypc looks interesting but I'm sticking to Java stuff for now for simplicity! Jul 23 21:32:43 BlehTM, Perl is actually a lot simpler, but okay :P Jul 23 21:32:52 not if you've never used it :P Jul 23 21:33:43 lol, i jumped into an irc bot with it without even learning it. had something nice in an hour :P Jul 23 21:33:49 but, okay use Java if you want :P Jul 23 21:34:54 we used perl in some introduction to programming day at university Jul 23 21:35:19 after an hour and a half I'd reduced my hangman game down to ~27 bytes Jul 23 21:35:53 27 bytes? Jul 23 21:35:58 ... Jul 23 21:36:17 I had moved most of my code into a module Jul 23 21:36:28 those where the bytes needed to import it and call a function Jul 23 21:38:39 is there a tutorial somewhere that shows you how to implement pro key unlockers and stuff, similar to how titanium backup pro key unlocker works? Jul 23 21:39:04 Question, what's the best way to connect to a database server? Jul 23 21:39:14 ninjai: Why not use in app purchases Jul 23 21:39:51 SimonVT, as in an in-app unlock? I don't see how this is the same Jul 23 21:39:59 Is it possible to connect to a database server? Jul 23 21:41:04 ninjai: Why not? Jul 23 21:41:25 hmm. My app contains the word 'shit'.. Would that pass play store 's terms & conditions? Jul 23 21:41:28 SimonVT, how would the purchase of a pro version be tracked within an in app purchase? Jul 23 21:41:48 because they would have purchased it Jul 23 21:41:53 +1 Jul 23 21:41:59 [17:41:28] SimonVT, how would the purchase of a pro version be tracked within an in app purchase? Jul 23 21:41:59 [17:41:48] because they would have purchased it Jul 23 21:42:03 best Q/A i've seen in a while Jul 23 21:42:29 thats not what I'm asking though Jul 23 21:42:40 how can I get a different app, to unlock another Jul 23 21:42:49 like the exact way titanium backup does it Jul 23 21:42:51 Why would you ever want that Jul 23 21:42:52 why would you do that Jul 23 21:42:55 It's a horrible solution Jul 23 21:43:00 Only necessary cus there was no IAP Jul 23 21:43:04 then I don't have to maintain 2 apps Jul 23 21:43:05 +1 Jul 23 21:43:08 ???????????????? Jul 23 21:43:18 .. what? Jul 23 21:43:19 how do you even computer Jul 23 21:43:42 yeah yeah, lets all poke fun at the new guy cause he doesn't know as much as you, back to google i guess. Jul 23 21:43:45 ninjai: http://developer.android.com/guide/google/play/billing/index.html Jul 23 21:43:55 You do know that's what I'm talking about, right? Jul 23 21:44:49 ninjai, just asking, but do you have the app you want unlocked made? Jul 23 21:45:21 I have an app that I want to essentially just disable ads if it was purchased. Jul 23 21:45:38 so add an option to disable ads through in-app billing Jul 23 21:45:41 I don't want to have duplicate apps, one with and one without ads. So I'm trying to find the best solution for that Jul 23 21:45:57 The best solution for that is in app billing Jul 23 21:46:12 is in-app billing permanent? I thought it wasn't. What I mean is, if someone purchases within the app, then if they uninstall the app do they have to pay for ti again? Jul 23 21:46:13 The worst solution is seperate "key app" Jul 23 21:46:20 In the middle there's seperate versions Jul 23 21:46:30 no they do not Jul 23 21:46:57 okay, canadiancow|work, that's where I was confused. In app makes sense now Jul 23 21:47:56 http://developer.android.com/guide/google/play/billing/billing_admin.html#billing-purchase-type Jul 23 21:48:35 thx Jul 23 21:48:39 has that solution beed adopted widely? Jul 23 21:48:51 i should add an option in my ad-free app to remove ads for $1 Jul 23 21:48:54 and see if anyone buys it Jul 23 21:48:57 I've never personally seen it in any apps I've downloaded. Jul 23 21:49:00 i was thinking of doing it myself Jul 23 21:49:51 go download Hanging With Friends Jul 23 21:49:51 then replacing the button with a donate button Jul 23 21:49:54 there's an option to disable ads Jul 23 22:14:59 I've heard that you should not do much in broadcast receivers. Would reading an alarm data object from a database, and writing to the datebase + starting a service, and activities, be too much ? Jul 23 22:19:13 man Jul 23 22:19:31 I built AOSP yesterday, and when I finished it added "emulator" to my path Jul 23 22:20:06 I've since rebooted, and now I can't figure out where to point "emulator" so I can run it with the avd Jul 23 22:20:29 anyone know where I can point it? Jul 23 22:21:30 (/what command line args I can give to "emulator") Jul 23 22:23:13 holas Jul 23 22:25:31 hey Jul 23 22:26:02 I know this isn't the place, but anyone here done a custom kernel before? Jul 23 22:26:57 i'm kind of working on one now Jul 23 22:27:10 why? what's up? Jul 23 22:27:39 Curious as to how to get started Jul 23 22:27:51 not just building/compiling and putting it on a device, mind, Jul 23 22:27:56 but altering the programming of the kernel Jul 23 22:28:02 cyanogen &c have a bunch of docs on it Jul 23 22:28:08 have you built aosp yet? Jul 23 22:28:17 yeah, I got AOSP mods working fine Jul 23 22:28:27 but looks like I might need kernel alterations too Jul 23 22:29:11 what kind? Jul 23 22:29:15 on a separate note Jul 23 22:29:19 i just built aosp yesterday Jul 23 22:29:28 and you know how it adds "emulator" to your path? Jul 23 22:29:35 huh, why would madfinger make dead trigger free because of "piracy" Jul 23 22:29:37 and you just run "emulator" and it boots an avd? Jul 23 22:29:38 that doesn't make sense... Jul 23 22:30:01 how do i recreate that now?? where is the avd/what cl arguments do i provide to emulator to run the avd again? Jul 23 22:30:03 yes @ morzcz' Jul 23 22:30:18 pfn:do they have ads in it? Jul 23 22:30:19 the emulator was tricky for me too Jul 23 22:30:28 havchr, I don't think so Jul 23 22:30:29 I got it shown on the screen, but not able to run the mod on it Jul 23 22:30:40 so I always just have to flash it on the physical device =/ Jul 23 22:31:23 this is so frustrating Jul 23 22:31:33 pfn:maybe they saw the PR possiblity as more important than whatever they were projecting to earn on the android version :) Jul 23 22:31:35 it autogenerated everything yesterday and worked fine in the emulator Jul 23 22:31:49 now i can't reproduce and idk where the avd is Jul 23 22:32:01 that's my issue right now, any help appreciated Jul 23 22:32:09 but anyway why do you need to mod your kernel? Jul 23 22:32:17 i'm having a devil of a time with that too Jul 23 22:32:29 i built the panda kernel fine but goldfish isn't working out for me Jul 23 22:32:45 Think I need to go after Tiamat, for the Xoom Jul 23 22:32:50 pfn: could be a publicity stunt. btw, haven't seen you around in a while, how are things going ? Jul 23 22:32:59 I don't even know much about the lang, anyway Jul 23 22:33:02 c or assembly? Jul 23 22:33:37 g00s, was on vacation, seattle -> alaska -> vancouver -> home Jul 23 22:33:51 oh man, that sounds like a great vacation Jul 23 22:34:24 it's all in c except for some choice parts Jul 23 22:35:07 altering the kernel is pretty advanced stuff Jul 23 22:35:17 all very low level, idk what your background is Jul 23 22:35:38 Third year CS student Jul 23 22:35:46 so....yeah XD Jul 23 22:35:52 im officially declaring my previous complaints regading android as invalid Jul 23 22:36:23 wahts the best way to get eclipse to play nice with github? Jul 23 22:36:26 Because they are rectified, or because there is a worse one? Jul 23 22:36:55 rectified. take heart those struggling w bugs. keep at it and it will be fixed. Jul 23 22:37:14 g00s, it was totally great, went on a cruise seattle -> alaska; first time ever... don't want to go on vacation any other way now Jul 23 22:37:31 i was claiming that iphone was more streamlined and easier but actually i think i spend nearly equal time fighting w iphone as android Jul 23 22:37:37 pfn: take your camera? get any good pics ? Jul 23 22:37:51 I take all my pix with my phone these days Jul 23 22:38:29 i had a powershot s95 until sat, when i got caught in a monsoon and my fing backpack filled with water. my camera was literally submerged in water Jul 23 22:38:43 monsoon? where Jul 23 22:38:46 az Jul 23 22:38:51 weird Jul 23 22:38:55 flash flood? Jul 23 22:39:02 yeah, actually Jul 23 22:39:05 @CurlyBrace I'm unfamiliar with the Xoom or tiamat. Cyanogen seems to have great documentation Jul 23 22:39:13 that's how you get wet in arizona.. Jul 23 22:39:17 I fear I'm being silly Jul 23 22:39:21 yeah, thanks, I will continue with their stuff Jul 23 22:39:26 But I've not used Eclipse with Android for a while... Jul 23 22:39:36 Just looking for input on the modification of it Jul 23 22:39:40 How do I alter the project title and have it reflected in the title bar of the app? Jul 23 22:39:52 back to gedit and googling c basics I guess Jul 23 22:39:55 CurlyBrace: i was in spur cross , a fracking sinkhole opened up on the trail i was on; was laying low waiting for the lightning to pass, but then that spot started to flood and i had to move to higher ground Jul 23 22:40:07 at least you are okay Jul 23 22:40:22 don't live in az myself, but from visitng grandparents I have heard about the flash floods Jul 23 22:40:25 i have to admit, i was scared as shit. i never smelled burned air before Jul 23 22:40:30 0.0 Jul 23 22:40:54 i had my hands over my ears, the lightning was ver close. i saw smoke about a few hundred feet off Jul 23 22:41:04 not just mist? Jul 23 22:41:21 nah, everything was fucking drenched Jul 23 22:41:34 oh, and then i got mud dumped on me because the dust storm arrived Jul 23 22:41:43 and the rain drops + dust storm = falling mud pellets Jul 23 22:41:52 awesome Jul 23 22:41:53 would do it again :) Jul 23 22:42:07 but have my camera in a waterproof bag Jul 23 22:43:10 cruises are awesome, though, dunno why I never went on one before Jul 23 22:43:20 packed on some weight because the food was so good :-/ Jul 23 22:43:31 :) Jul 23 22:43:49 gained like 5lbs over the last 2 weeks, ouch Jul 23 22:44:55 dead trigger looks like a good game, but too uncomfortable to play on a xoom Jul 23 22:46:04 shadowgun was awesome Jul 23 22:46:09 I expect deadtrigger to be of the same calibur Jul 23 22:47:38 oooh another random question guys Jul 23 22:47:48 the wifi only xoom doesn't have nfc, does it? Jul 23 22:47:51 no Jul 23 22:48:07 great, thanks Jul 23 22:48:24 i just did double dpads myself and suprisd w how well they work Jul 23 22:48:27 xoom doesn't have nfc period Jul 23 22:48:40 the first tablet with nfc is like the nexus 7 isn't it Jul 23 22:49:33 ah Jul 23 22:50:14 How do you guys do versioning and backups and whatnot with your custom source builds? Its taking over my HDD Jul 23 22:50:26 git? Jul 23 22:50:31 I don't build my own roms, don't care to Jul 23 22:50:41 speaking of which, is there a 4.1.1 rom for the vzw gn yet Jul 23 22:51:20 pfn: is that toro? Jul 23 22:51:25 yes Jul 23 22:51:32 pfn: there's a aokp preview Jul 23 22:51:34 there's this vicious rom, I guess I'll pick it up Jul 23 22:51:49 hmm. is there an easy way to send unicast intents from the command line? Jul 23 22:51:57 I have this: public class ItemListFragment extends ListFragment implements OnScrollListener Jul 23 22:52:11 but my breakpoint never gets hit on onScroll or onScrollStateChanged, when I scroll Jul 23 22:53:11 armenb, yes Jul 23 22:53:17 armenb, use am Jul 23 22:54:40 I think it requires getListView().setOnScrollListener(this); Jul 23 22:55:34 nope Jul 23 22:55:41 that crashed hmm Jul 23 22:57:44 pfn: how? Jul 23 22:57:59 pfn: I see how to send broadcast intents, as well as startservice intents. Jul 23 22:58:18 what do you mean by unicast Jul 23 22:58:32 armenb: just target a specific component Jul 23 22:58:38 * joikus wait let me add in onActivityCreated Jul 23 22:58:42 -n com.whatever.foo/.bar Jul 23 22:58:51 and what evancharlton said Jul 23 22:59:32 ok, so sending a broadcast intent with -n com.foo.bar/.blah will make it unicast? Jul 23 23:00:32 I applied for a job...they want to see an Android code samples...all my code is junk though Jul 23 23:00:48 armenb, what exactly are you trying to send the intent to Jul 23 23:01:00 I've been cleaning up one project since Saturday...I'll probably be too long for these people, I'll be good for the next one though Jul 23 23:01:04 and that's about the closest to unicast you'll get Jul 23 23:01:12 yep that was it Jul 23 23:01:17 Ologn, always have good pieces of code ready to show Jul 23 23:01:30 so I've created an android application that is to be managed entirely from the command line. I want to be able to start it and stop it. Jul 23 23:02:09 starting it works using am startservice. but am curiously leaves out a "stopservice" argument. Jul 23 23:02:26 someone earlier hinted that it's due to things that changed in android's security model Jul 23 23:02:27 I fixed an ANR people were having, so that's good Jul 23 23:03:02 pfn: Yaa. I was a Unix admin from 1996 on, I've never really programmed professionally Jul 23 23:03:21 So I am sometimes clueless as to what is expected Jul 23 23:12:24 this is my onPostExecute: http://pastebin.com/603DjPYg I append more items to my ListAdapter, it works but on the UI it scrolls me back at the top Jul 23 23:12:57 how can I keep the scroll position where it was as I fetch more data and rebind the ListAdapter Jul 23 23:17:25 don't rebind the list adapter Jul 23 23:17:32 update the data in the adapter Jul 23 23:17:42 and have the adapter notify that its data has changed Jul 23 23:17:52 got it Jul 23 23:18:01 I was calling ItemAdapter itemAdapter = new () .. everytime Jul 23 23:18:29 it worked Jul 23 23:18:31 thanks :] Jul 23 23:21:07 is there a way to rollback jelly bean to ics without losing everthing on my phone? jb broke at least two apps i want to use and didn't provide anything worth the trouble Jul 23 23:21:41 no Jul 23 23:21:49 restore a nandroid backup Jul 23 23:21:53 otherwise wipe and re-flash Jul 23 23:22:02 and jb is totally worthwhile Jul 23 23:22:05 google now > * Jul 23 23:22:08 and butter > * Jul 23 23:22:50 if my apps don't work, i couldn't care less about new features. Jul 23 23:23:34 Fix your apps then Jul 23 23:23:48 what apps, out of curiosity? Jul 23 23:24:10 bank of america, skype, onenote Jul 23 23:24:35 list probably goes on, but those are the one's i tried to use recently Jul 23 23:27:08 a quick test of Skype and BofA works for me, though I can't speak for onenote as I don't use it. you may want to try clearing the data of affected apps and making sure they're completely up to date. Jul 23 23:27:54 jnewt: did you wipe from ics to jb? Jul 23 23:31:19 jnewt, skype works on JB for me Jul 23 23:31:30 although i havent actually called anyone with it :) Jul 23 23:31:40 i dont understand how BOA coudl be broken... Jul 23 23:32:12 [19:22:08] and butter > * Jul 23 23:32:13 but yea Jul 23 23:32:13 that Jul 23 23:32:29 google now... it's decent. i use it daily, but i could live without it. im sure it will get better Jul 23 23:32:40 but butter? i cant use anything less than 4.1 anymore Jul 23 23:33:36 yeah, butter is a requirement Jul 23 23:33:50 I also like the camera improvements Jul 23 23:33:52 those are > * Jul 23 23:34:08 I used it constantly these last 2 weeks Jul 23 23:49:08 canadiancow: it crashes when i press "sign in" Jul 23 23:49:49 ryanm: did you actually log into BofA Jul 23 23:50:59 oh yeah, forwarding voicemail to my google voice isn't working either Jul 23 23:52:44 skype not working? i'll buy that. BOA? seems strange, but maybe... my bank's app isn't great. Google Voice? that sounds fishy Jul 23 23:52:55 it's not like google teams haven't had months to test on JB Jul 23 23:53:22 canadiancow: erm... you say that like you expect one team within Google to talk to another... Jul 23 23:54:53 i dumped my blackberry because apps weren't available after a os update. now i'm in the same f'ing boat Jul 23 23:55:37 ok, uninstalled BofA and Skype. cleared data. do i need to reboot prior to re-install? Jul 23 23:58:48 jnewt: incidentally, you're talking about a stock OTA JB, right? Jul 24 00:00:29 Leeds: yeah, stock ota, on a fresh out of the box nexus S Jul 24 00:00:37 jnewt: I did Jul 24 00:00:49 rather, I did log in, yes Jul 24 00:01:06 well, crap, what's wrong with my phone then? Jul 24 00:01:29 what is the ic_ menu item called, the one with the 3 vertical dots Jul 24 00:02:07 is there "tcpdump for intents" on android? Jul 24 00:02:32 I'd really like to know what my activity is doing when it's constructing broadcast intents that I am not able to emulate on the command line with the activity manager. Jul 24 00:03:40 any idea how to access my emulator's SDCard? Jul 24 00:03:58 results don't show much at all Jul 24 00:03:59 joikus: ic_menu_moreoverflow_normal_holo_light Jul 24 00:04:03 i found that one in the sdk Jul 24 00:05:48 nice thx Jul 24 00:07:14 ok, skype works now after a re-install, BofA still broken Jul 24 00:08:35 onenote still broken too Jul 24 00:09:40 armenb: I believe they often end up in logcat Jul 24 00:12:25 p_l|home: I don't think they do... Jul 24 00:12:57 armenb: hmm... I often see intents in logcat, but my phone isn't normal Jul 24 00:13:50 Sicp: you could use adb shell Jul 24 00:15:56 p_l|home: can I ask what they look like? Jul 24 00:16:06 not right now Jul 24 00:16:31 but usuall something like "starting activity for intent ..." Jul 24 00:22:08 you know how they announced that you will now only download the portion of the APK that changed? That's not open source, is it? I know other things that do that. Is there a library for it? Jul 24 00:24:08 jab416171|Cloud: it can just use rsync-style algorithm Jul 24 00:24:36 or have an archive of old apks and check the version provided by device, or just keep patches Jul 24 00:26:36 what is a clean way to implement onContextItemSelected so that multiple Activities have this Jul 24 00:26:46 right now I have duplicate on all 3 of my activities Jul 24 00:28:17 base activity? Jul 24 00:29:04 hmmm Jul 24 00:29:29 I can't some extend FragmentActivity and others Activity Jul 24 00:29:39 wait doesn't java allow multiple inher Jul 24 00:29:44 no Jul 24 00:29:49 implement mulitple Jul 24 00:29:52 but extend only one Jul 24 00:29:58 as far as i know Jul 24 00:30:55 ok not sure how to use BaseACtivity then Jul 24 00:31:47 joikus: if you cant have base activity, have a static method you can call into from your activities that does whatever action you need Jul 24 00:32:49 makes sense Jul 24 00:33:14 not sure what to call thise class Jul 24 00:38:31 ActivityHelper.java Jul 24 00:38:34 cheezy Jul 24 00:39:29 does it help your activities? Jul 24 00:39:58 java = kingdom of the nouns Jul 24 00:41:17 then the ios devs come and fuck your app Jul 24 00:41:23 with methods like productName() Jul 24 00:41:39 String product(int) Jul 24 00:41:43 return ActivityHelper.createOptionsMenu(this, menu); Jul 24 00:59:37 why doesn't replacing the adapter of a view pager seem to do anything? Jul 24 01:08:10 i have a frame layout inside a linear layout, but the frame layout doesn't show up. any suggestion? Jul 24 01:08:49 Let me see your xml Jul 24 01:09:29 T-Dub, http://pastebin.com/mJ4gx1HV Jul 24 01:09:47 The frame layout is not visible Jul 24 01:10:33 have you tried deleteing everything inside the frame and putting like a simple textview Jul 24 01:10:37 just to see if the frame shows up Jul 24 01:11:54 T-Dub, tried that, its not showing the text view either Jul 24 01:11:59 Hmm Jul 24 01:11:59 ok Jul 24 01:12:21 What api are you coding for? Jul 24 01:12:34 running on 2.2 on emulator. but does that matter? Jul 24 01:12:51 Maybe framelayout was introduced later? Jul 24 01:12:57 Or do you use a framelayout else were Jul 24 01:14:29 Maybe you can't nest a framelayout inside a linearlayout? Jul 24 01:14:35 I'm not sure, I've never used a framelayout Jul 24 01:14:41 It looks good on my end though Jul 24 01:14:58 it says framelayout is is there since api level 1 Jul 24 01:15:06 Oh lol Jul 24 01:15:09 Well that rules that out Jul 24 01:15:18 T-Dub, it shows on IDE, but when I run it, it does whow up Jul 24 01:15:20 *show Jul 24 01:15:28 Try running it on your device? Jul 24 01:15:34 jahid: try setting a fixed width like 100dp for the framelayout, maybe the warp_content is messing it up a bit Jul 24 01:15:42 *wrap_content Jul 24 01:16:05 If that doesn't work try making a 100% new layout with JUST framelayout Jul 24 01:16:11 and go one by one adding your other views in Jul 24 01:16:15 until it doesn't work to narrow it down. Jul 24 01:16:31 How does one alter the title bar from a default intent? Jul 24 01:16:41 it's title Jul 24 01:16:42 sec Jul 24 01:16:57 Ideally without altering it after the intent appears. Jul 24 01:17:15 Been ages since I've coded for Android. Jul 24 01:17:28 requestWindowFeature(Window.FEATURE_NO_TITLE); that will remove it Jul 24 01:17:50 f2prateek, took of wrap_content and made it fill parent. but still same Jul 24 01:18:03 T-Dub: I'm not trying to get rid of it Jul 24 01:18:07 I want to change the text Jul 24 01:18:10 I'm trying to find it Jul 24 01:18:15 I can't remember where the code is. Jul 24 01:18:17 Ah, okay Jul 24 01:18:30 I know you can use setTitle() to do it from within the intent. Jul 24 01:18:34 But that's not what I'm looking for. Jul 24 01:18:50 Orbixx: getActionBar.setTitle(); is that you need? Jul 24 01:19:01 even if i replace framelayout with linearlayout, it is still same Jul 24 01:19:03 As it briefly shows up with the default titlebar name Jul 24 01:19:04 jahid: gonna have to remake the whole thing and do what T-Dub said Jul 24 01:19:23 f2prateek: No, I want the titlebar name to be set to a value before the intent even appears Jul 24 01:19:31 That would probably be something in the manifest then Orbixx Jul 24 01:19:33 f2prateek: This is the main intent Jul 24 01:19:46 ok Jul 24 01:19:48 I'm not sure what it is though, if possible ORbixx Jul 24 01:19:53 Orbixx: can you elaborate? i'm not sure what you need exactly Jul 24 01:20:34 Try android:label="" Orbixx, from inside the manifest in the activity tag Jul 24 01:21:05 Ah, bingo Jul 24 01:21:10 I see where it's referenced Jul 24 01:21:12 I was being blind Jul 24 01:21:14 Thanks T-Dub. Jul 24 01:21:19 Np Jul 24 01:30:23 does this make sense, I have an menu item, No that doesn't make sense Jul 24 01:34:25 ok I see what's going on Jul 24 01:34:32 the IDs are the same Jul 24 01:34:46 but this never gets called switch (itemId) { Jul 24 01:34:46 case R.id.addItem: return false; Jul 24 01:35:04 I added a dummy int z = 2; before return false; Jul 24 01:35:13 and it entered, maybe this is a java thing I don't know about Jul 24 01:39:40 is it possible to launch a "SELECT_PICTURE" dialog inside onOptionsItemSelected Jul 24 01:46:18 case R.id.addItem: Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); activity.startActivityForResult(intent, SELECT_PICTURE); return true; Jul 24 01:46:23 I think this works Jul 24 01:54:17 of course it does Jul 24 01:54:21 android is awesome Jul 24 01:54:28 I think I'm going to quit C# Jul 24 01:54:56 Playing around with ScrollView and LinearLayouts. The app starts, displays all that it can, but I'm unable to scroll.. Any suggestions? http://pastebin.com/1GXBagM8 Jul 24 01:56:16 Wow adding images via java. Jul 24 01:56:19 Hmm Jul 24 01:56:23 It looks like it should Jul 24 01:56:29 are you sure there is enough needing to be scrolled? Jul 24 01:56:34 T-Dub: I *have* to. Its a dynamic program. Jul 24 01:56:44 C# is an overdesigned java that only works properly in Windows :/ Jul 24 01:56:44 Ah Jul 24 01:56:47 yes, T-Dub It only gets to the 5th image Jul 24 01:57:05 now Jul 24 01:57:10 This i a guess Jul 24 01:57:19 So maybe do some research before making it the answer Jul 24 01:57:20 But Jul 24 01:57:37 I'm going to assume the scrollview gets all the content it holds and that is how it calculates if it needs to scroll or not Jul 24 01:57:46 so in your example, you set the content to the xml Jul 24 01:57:52 and the scrollview checks the linearlayout Jul 24 01:57:55 and sees it doesn't need to scroll Jul 24 01:58:13 because i filled? Jul 24 01:58:21 so when you add the images, it just puts it in the layout and the scrollview doesn't realize it needs to update Jul 24 01:58:34 So you need to just refresh the scrollview Jul 24 01:58:36 is my guess Jul 24 01:58:38 zinx: yep Jul 24 01:58:55 zinx, been using C# forever, they stole so many java ideas Jul 24 01:59:01 it doesn't relize you filled it, it just wraps all the content it has to hold when initialized Jul 24 01:59:28 so set the width to the actual width of the screen? Jul 24 01:59:31 when it is initialized, it holds nothing but a linearlayout, which has no views in it therefore the scrollview is basically null (theoretically speaking) Jul 24 01:59:33 no Jul 24 01:59:35 but the more importantly, most devices around you use java not C#, so it's time to move on Jul 24 01:59:37 just refresh the scrollview Jul 24 01:59:53 make the scrollview an id Jul 24 01:59:58 and see if there is a refresh method Jul 24 02:00:02 there shouldn't be a need for this Jul 24 02:00:14 if there is, call the refresh method at the end Jul 24 02:00:15 if you call addView() on ScrollView's child, it should work Jul 24 02:00:23 that is my guess, i could be completely wrong Jul 24 02:00:32 ah k scratch what I said Jul 24 02:00:34 I tried Jul 24 02:00:40 No idea man Jul 24 02:00:52 My scrollviews have always worked :P Jul 24 02:00:52 romainguy: so the code as it is, except at the end add scrollview.addview? Jul 24 02:00:54 (containers) Jul 24 02:00:59 no Jul 24 02:01:31 I just read your code Jul 24 02:01:41 part of the problem is that your linearlayout has a fixed height Jul 24 02:01:59 height should be fixed, the width should be dynamic. or should it not? Jul 24 02:01:59 ScrollView scrolls vertically only Jul 24 02:02:07 darn it Jul 24 02:02:12 you want HorizontalScrollView Jul 24 02:02:26 also, don't use RelativeLayout.LayoutParams Jul 24 02:02:35 also, why are you setting the margins?? Jul 24 02:02:44 the whole point of LinearLayout is to lay its children side by side Jul 24 02:02:53 you are increasing the spacing between the children here Jul 24 02:03:01 (which might be what you want but it's weird) Jul 24 02:03:13 romainguy: I think I love you. Jul 24 02:03:34 romainguy: So you're saying that I do not need to increase the spacing? Jul 24 02:03:40 nope Jul 24 02:03:47 LinearLayout will do the right thing Jul 24 02:08:25 sorry.. Comcast apparently feels I shouldn't talk to you guys. Jul 24 02:08:39 It was the server, not your internet Jul 24 02:10:46 oh Jul 24 02:11:01 i assumed me because my netflix is lagging too Jul 24 02:11:38 what is the difference between passing "this" or passing getApplicationContext()"? Jul 24 02:11:48 i mean, in an activity Jul 24 02:11:58 if you implement something Jul 24 02:12:03 this will pass the implimentation Jul 24 02:12:08 <52AAAA0I2> jahid: they are two different contexts Jul 24 02:12:14 <52AAAA0I2> jahid: you should pass "this" Jul 24 02:12:27 52AAAA0I2, ok, on that case how do i know which one use? Jul 24 02:12:27 specifically pass ClassName.this Jul 24 02:12:38 jahid: don't use getapplicationcontext :) Jul 24 02:12:49 T-Dub: this is necessary only from inner classe Jul 24 02:12:51 +s Jul 24 02:13:08 T-Dub, the main purpose is to ask this question is, which context to use, this or getApplicationContext. Jul 24 02:13:13 Well I'm specifically just referring to like when implementings an onclicklistener Jul 24 02:13:31 when you said use this, may i know why? or is there any purpose of keeping two confusing things with same type? Jul 24 02:13:58 jahid: because "this" will have the theme you applied to your activity as well as other properties Jul 24 02:14:09 the application context is a generic context that may not contain the information you need Jul 24 02:14:18 what about when youre using fragments Jul 24 02:14:39 romainguy_, ok, on that case when passing a context to intent, which one i should use? Jul 24 02:14:44 use the Context object you're given Jul 24 02:14:49 jahid: same thing Jul 24 02:14:57 you mean. this? Jul 24 02:15:02 try to not use the application context Jul 24 02:15:08 ok Jul 24 02:15:20 thanks both of you Jul 24 02:16:42 Hey romainguy. I just tried this again with a single image, there's a bunch of back before and after on the horizontal scroll. Any ideas why? Jul 24 02:16:54 "back"? Jul 24 02:17:58 black Jul 24 02:18:01 no image Jul 24 02:18:19 I don't understand what you're talking about Jul 24 02:18:57 see pm Jul 24 02:19:31 when the app starts, its a black screen, i have to scroll over before i see my image. Jul 24 02:19:51 show your code Jul 24 02:20:15 JakeWharton: Yesterday you told me that tab navigation would collapse to a list when space is at a premium. Is there any way to force this behavior? Jul 24 02:20:16 stand by Jul 24 02:20:24 nope Jul 24 02:22:00 romainguy: http://pastebin.com/D2rndchZ Jul 24 02:22:01 Is there any way to force the tabs to remain on their own line, instead of moving up into the top-level action bar on a larger device (or in landscape, in some cases)? Jul 24 02:22:33 romainguy: the actual image dims are 3942x400. Jul 24 02:24:31 are you running with hardware acceleration on? Jul 24 02:26:07 let mesee Jul 24 02:26:33 where would that be? Jul 24 02:32:23 QbY: what's your targetSdk? Jul 24 02:32:53 interesting romainguy_ . If I'm in vertical orientation it doesn't do it (either side) but in horizontal it does. Jul 24 02:33:14 look at the logs Jul 24 02:33:23 nothing interesting Jul 24 02:35:07 Hey everybody: In an action bar implementation, is there any way to force the tabs to remain on their own line, instead of moving up into the top-level action bar on a larger device (or in landscape, in some cases)? Jul 24 02:35:35 Chronax: it's automatic Jul 24 02:37:42 Thanks, romainguy_. Is there any way to turn that automatic feature off? ;) Jul 24 02:37:47 no Jul 24 02:40:07 hey romainguy_ do you have any references for images on top of one another? Jul 24 02:42:37 could you override onconfigchange, and everytime its in landscape, explicitly set the navigation mode again? or would the default behaviour take over there as well? Jul 24 02:46:10 can I use PhoneStateListener from an Appwidgetprovider?i cant see how this might fit together :s Jul 24 02:49:31 I am having a hard time setting an image to ImageView from this path="/picasa/item/5700317762880285214" Jul 24 02:49:34 Hello! Jul 24 02:49:46 Bitmap bm = BitmapFactory.decodeFile(filemanagerstring); // bm is null Jul 24 02:49:51 do you use a GUI builder in Netbeans/Eclipse? Jul 24 02:50:06 I was trying to learn Codename One but its gui builder is not that good Jul 24 02:57:56 i think i should be using AlarmTimer instead for this Jul 24 02:58:20 why is this null: Bitmap bm = BitmapFactory.decodeFile("/picasa/item/5700317762880285214"); Jul 24 02:58:59 use getExternalStorage() imo Jul 24 02:59:11 joikus, no such file Jul 24 02:59:26 but it's a file I selected from the select file dialog Jul 24 02:59:30 from picasa Jul 24 02:59:57 trying to set it to my ImageView **** ENDING LOGGING AT Tue Jul 24 02:59:58 2012