**** BEGIN LOGGING AT Fri Feb 17 02:59:57 2012 Feb 17 03:00:55 The method putExtra(String, boolean) in the type Intent is not applicable for the arguments (Editable, Editable) Feb 17 03:01:15 you dont pass an Editable, you pass the text value Feb 17 03:01:34 I'm using editText.getText() to get the text Feb 17 03:01:43 oh Feb 17 03:01:44 derp Feb 17 03:01:48 I made it a string Feb 17 03:01:51 :-) Feb 17 03:02:20 it's still giving me the same error Feb 17 03:03:20 I think i fixed it Feb 17 03:03:23 * cr5315 tests Feb 17 03:03:43 Bacck Feb 17 03:03:49 Editable, Editable? crazy Feb 17 03:04:05 Still didn't work Feb 17 03:04:45 cr5315: pastebin the code Feb 17 03:05:26 JakeWharton: I where do I get ABS 4 and support-lib Feb 17 03:05:33 beta.abs.io Feb 17 03:05:56 http://pastebin.com/wpQSxZnD Feb 17 03:06:18 call .toString() Feb 17 03:06:30 you can't pass Editable Feb 17 03:06:31 that just adds more fragmentation to android platform Feb 17 03:06:37 ... Feb 17 03:06:38 ok Feb 17 03:06:44 how horrible Feb 17 03:07:01 i should be put down Feb 17 03:07:19 JakeWharton: did you invent this solution? it seems ok Feb 17 03:07:41 i programmed it if that's what you're referring to Feb 17 03:07:50 I see. Feb 17 03:07:52 hehehe Feb 17 03:07:57 nice one!!1 Feb 17 03:08:18 it still needs a lot of work Feb 17 03:08:25 which is making my head hurt Feb 17 03:08:33 So if I'm using editText.getText().toString(); what is the string it goes to called? Feb 17 03:08:52 you have to getExtras() and yank it out in the second activity Feb 17 03:08:52 cr5315: rephrase that in english please Feb 17 03:09:08 JakeWharton: In my main class, do I need to extend "FragmentActivity" instead of just "Activity" to be able to use the API? Feb 17 03:09:15 whoever invented kindlefire should be shot in the knee caps and arms and left for dead on a deserted island full of vultures, and ferocious meat eaters!!! Feb 17 03:09:37 Detergentizer: is there anything that you like? Feb 17 03:09:56 QubeZ: I take pleasure in the fact that life is not eternal Feb 17 03:10:00 you dont like ABS, KindleFire and apparently optimism. Feb 17 03:10:11 Detergentizer: hehe Feb 17 03:10:17 I think ABS is nice Feb 17 03:10:25 I'm using "editText.getText().toString();" to pass the text from and EditText to a string, which I then intend to .putExtra in an Intent. What is the string created in the .toString() called? Feb 17 03:10:28 it is very innovative and creative Feb 17 03:10:28 Happy QubeZ? Feb 17 03:10:33 I am having trouble using ABS :( Feb 17 03:10:39 whaddya mean what is it called Feb 17 03:10:40 a string Feb 17 03:10:55 What do I call in the .putExtra to pass it to the new activity? Feb 17 03:10:57 cr5315: its called whatever the contents contain Feb 17 03:11:01 oh, sorry, t0mless, had to go afk for a bit... Feb 17 03:11:04 JakeWharton: can I help you develop it ? Feb 17 03:11:10 go for it Feb 17 03:11:12 and now I have to log. bbl :( Feb 17 03:11:15 there's tons to do Feb 17 03:11:20 haha, I actually left for dinner Feb 17 03:11:29 coolies Feb 17 03:11:39 Someone should help me with even getting ABS to work :) Feb 17 03:11:47 what's not working? Feb 17 03:11:52 Snwspeckle, look at the sample Feb 17 03:12:02 JakeWharton: are you delegating tasks ? Feb 17 03:12:02 I've got stats stored in globals, and I just want to display the stat name, the value, and the draw a bargraph... right now I'm thinking of using drawRect calls, which makes me thinks I need a surfaceview Feb 17 03:12:03 You can open an .APK? Feb 17 03:12:10 cr5315, you call it whatever you want to call it Feb 17 03:12:22 Detergentizer, http://abs.io/4 Feb 17 03:12:38 Hiraghm you just need a Canvas, you could make your own view to draw on Feb 17 03:13:10 could I just use a textview, then? I didn't think I could call drawRect in a textview... Feb 17 03:13:15 cr5315: let's see your revised code again on pastebin Feb 17 03:13:16 JakeWharton, if I download the .APK, how can I view its direct code though? Feb 17 03:13:30 Hiraghm if you overrode the onDraw you technically could Feb 17 03:13:39 Snwspeckle, http://abs.io/b/4.0-wip Feb 17 03:13:57 hm. thanks t0mless Feb 17 03:13:57 JakeWharton: do I just dowsnload source and sub changes to you directly? Feb 17 03:14:00 Ah thank you, sorry for such idiotic questions from me.. Feb 17 03:14:02 I gotta run now :( Feb 17 03:14:20 github pull request ftw? Feb 17 03:14:24 ^^^ Feb 17 03:15:59 http://pastebin.com/KesBRHCX Feb 17 03:17:33 cr5315: ok looks good, so you're wondering how to pull the data back out on the other end? Feb 17 03:17:39 Yeah Feb 17 03:17:52 I want to set a TextView to show that text Feb 17 03:19:14 http://pastebin.com/eFsJS60k Feb 17 03:19:53 reference your textview to some R.id like you did for editText (EditText) Feb 17 03:19:59 then use it by setText() Feb 17 03:20:34 Where is SampleList.THEME being called from? Feb 17 03:20:44 ignore that Feb 17 03:20:51 it's for theme switching in the demo Feb 17 03:21:05 you should be setting the theme in the manifest Feb 17 03:21:08 QubeZ, like this? TextView notifyText = (TextView) findViewById(R.id.notifyText); Feb 17 03:21:08 notifyText.setText(persistantText); Feb 17 03:21:10 like the styled sample Feb 17 03:21:43 cr5315: as long as your String in that new activity is also called persistantText... i called mine test for test purposes of course Feb 17 03:21:52 by the way, I'm not sure if that is correct spelling of persistent Feb 17 03:21:53 Oh ok, so by extending the Activity, we are creating the ActionBar which then needs themed? Feb 17 03:24:42 Has there been any word on .jar based Android libraries (with resources)? Feb 17 03:24:54 nope Feb 17 03:25:10 i'm on it like a hawk Feb 17 03:25:15 was hoping it'd be out before 4.0 final Feb 17 03:25:20 doubtful now Feb 17 03:25:22 btw, I looked at the maven setup and I'm jealous of the .apklib, that's a great feature Feb 17 03:25:43 it's been around for a long time too Feb 17 03:25:49 i can't believe they haven't added something to ADT Feb 17 03:25:49 They're getting rid of the minSdkVersion warning?!?!?!?! Feb 17 03:25:53 yes Feb 17 03:25:59 so I need the res linked as a lib project so aapt can pull it in, right? Feb 17 03:26:21 but java can be pre-compiled (provided resource ids aren't final ints, right?) Feb 17 03:26:30 (oops, had this thing scrolled way back) Feb 17 03:26:32 yes Feb 17 03:26:45 ok, messy but I can make it work Feb 17 03:26:58 QubeZ, it's still not working Feb 17 03:27:00 if you're doing the res in a library project why not just do the whole thing? Feb 17 03:27:14 it's set up using standard android folder layout Feb 17 03:27:17 JakeWharton, will just extending the activity of an activity display an ActionBar, or does more need to be done? Feb 17 03:27:20 cr5315: in your other activity, you are pulling the Bundle get extras? Feb 17 03:27:24 show me code from both activities Feb 17 03:27:35 I am definetly not pulling any bundles Feb 17 03:27:40 So that's probably the answer Feb 17 03:27:49 Snwspeckle, extend SherlockActivity, specify Theme.Sherlock in the manifest Feb 17 03:28:12 long story, this has some special needs re: internal builds Feb 17 03:28:19 i figured as much... Feb 17 03:28:27 what you said will work though Feb 17 03:28:42 cr5315: i gave you the code verbatim, wtf aren't you using it? Feb 17 03:28:59 the inflexibility of eclipse with ADT around layout is seriously annoying Feb 17 03:29:13 you'd lol at this symlink farm I need to make everything play nice Feb 17 03:29:23 I never saw that pastepin you posted QubeZ, i'm looking at it now Feb 17 03:29:32 cr5315: ahh ok Feb 17 03:30:01 oh, one other question, Abs targets android-15, but it compiles ok against 14. Will it work ok? Feb 17 03:30:08 yeah Feb 17 03:30:11 target isn't used for anything really Feb 17 03:30:13 sweet Feb 17 03:30:21 > 11 you get action bar, > 14 you get hardware accel Feb 17 03:30:27 you can have it as low as 11 though Feb 17 03:30:30 just need to compile with 14 Feb 17 03:30:32 >14 or >=14? Feb 17 03:30:41 for hw accell? Feb 17 03:30:43 >=, for both Feb 17 03:30:53 coolness Feb 17 03:31:06 yeah hardware acceleration is turned on by default for 14+, for 11+ you had to enable it in the manifest Feb 17 03:31:16 for canvas drawing or whatever Feb 17 03:32:13 hey, anyone ever have issues setting up the android dev tools in eclipse? Feb 17 03:32:29 nausium: more specific? Feb 17 03:32:35 it's hanging on "Calculating requirements and dependencies" Feb 17 03:32:43 and has been for 10 minutes Feb 17 03:33:40 you may want to cancel and retry Feb 17 03:33:49 im using the guide here http://hackaday.com/2010/07/12/android-development-101-%E2%80%93-a-tutorial-series/ Feb 17 03:33:57 and by cancel I mean kill eclipse cause you really can't cancel anything in eclipse Feb 17 03:34:02 yeah Feb 17 03:34:04 i tried that Feb 17 03:34:13 tried run as admin to see if it was juts being weird Feb 17 03:34:16 just* Feb 17 03:34:35 its all like, "preparing to cancel" Feb 17 03:34:43 Well it works now, but if I try to re-set the string with different text, it still shows the text from the first time. Feb 17 03:34:43 and I'm like, don't prepare, DO IT! Feb 17 03:35:19 now it just looks like the download is hanging, i dont have the patience for a network issue :( Feb 17 03:40:19 I fail, just crashed my ABS app when trying to add a collapsible action item :( Feb 17 03:42:58 omfg Feb 17 03:42:59 finally home Feb 17 03:43:01 fire is out Feb 17 03:43:37 Snwspeckle, are you using the one in com.actionbarsherlock.view? Feb 17 03:43:53 Fixed it using Logcat :) Feb 17 03:44:07 Wow this library is amazing! Feb 17 03:44:10 Perfect for what I need Feb 17 03:46:07 canadiancow: didn't know you fought fires Feb 17 03:46:30 he works for Zynga, they create the fire... and make money off it Feb 17 03:46:40 :( Feb 17 03:46:41 Is there an example of adding multiple Action Items? Feb 17 03:46:45 QubeZ: that was a joke :) Feb 17 03:46:52 michaelnovakjr, hows it going? Feb 17 03:46:59 it goes, how about you? Feb 17 03:47:01 finish the WP7 client? :P Feb 17 03:47:08 lol I don't work there anymore Feb 17 03:47:09 michaelnovakjr: oh. i ... did... not...get....that =) Feb 17 03:47:21 really? Feb 17 03:47:24 where now? Feb 17 03:47:31 working on my own stuff now Feb 17 03:47:37 i wish i could do that :) Feb 17 03:47:39 How do you add to an integer? Feb 17 03:47:40 I want to use adb to view installed files with: adb shell ls Feb 17 03:47:41 my "own" stuff gets an hour or two a week Feb 17 03:47:53 but I don't know where the files are put when they are insetall Feb 17 03:48:01 zynga gets more time than i'd like to admit Feb 17 03:48:09 but only because i choose to :( Feb 17 03:48:12 canadiancow: that sounds about right Feb 17 03:48:15 I have an int test which is equal to 1. How would i add to it to make it 2? Feb 17 03:48:27 cr5315 are you serious? Feb 17 03:48:28 cr5315: Google adding 1+1 in code Feb 17 03:48:30 gtfo Feb 17 03:48:48 JakeWharton, How would you add in a dashboard if your setting the view to a specific layout? Feb 17 03:49:02 just call setContentView Feb 17 03:49:03 Detergentizer: are you trying this on a device? Feb 17 03:49:06 the library will take care of it Feb 17 03:49:25 to emu Feb 17 03:49:29 not device Feb 17 03:49:32 actually both Feb 17 03:49:50 Detergentizer: if you run adb shell … you'll be at the emu cmd prompt Feb 17 03:50:06 In your one tutorial you set it to (R.Layout.text) but what if the dashboard requires a different layout to have the activity set to? Feb 17 03:50:06 I know that much, but where are the apps installed? Feb 17 03:50:06 you can't view all directories on a device without root Feb 17 03:50:13 oh Feb 17 03:50:15 Detergentizer: /data/data/app Feb 17 03:50:32 ok. Feb 17 03:50:33 hehe Feb 17 03:50:42 the app name is weird that is why it didn't show up Feb 17 03:50:53 Detergentizer: the dir is based on package name Feb 17 03:51:02 ok... Feb 17 03:51:06 canadiancow: yea my own work was long night hours for a long time Feb 17 03:51:12 that is why I was looking for app name self Feb 17 03:51:17 heh Feb 17 03:51:25 canadiancow: several years in fact :) Feb 17 03:51:32 lol Feb 17 03:52:19 some days i just get in the groove, and lose track of time Feb 17 03:52:52 truth Feb 17 03:53:02 which is why I'll be here until like 9pm Feb 17 03:53:11 evancharlton i still cant log in to wallet/checkout Feb 17 03:53:13 just 400 all over the place Feb 17 03:53:22 and im getting tons of errors trying to make an IAP (on the market page) Feb 17 03:53:49 canadiancow: http://support.google.com/wallet/?hl=en Feb 17 03:53:55 I started around 4 am this morning, 10:53 pm and I'm just about spent Feb 17 03:54:01 holy hell Feb 17 03:54:04 4am ~_~ Feb 17 03:54:36 gearing up for a big release at the end of the month Feb 17 03:55:09 i dont understand this new google patent Feb 17 03:55:22 its a lockscreen where you can unlock by interacting normally as if it were the launcher Feb 17 03:55:31 so...why bother with the lockscreen Feb 17 03:55:39 I have a ViewPager inside a Fragment; I need a way to know when the ViewPager has initialized its views Feb 17 03:55:59 I tried to access a view during onResume of the Fragment and it wasn't there yet Feb 17 03:56:20 i hope you're only paging views... Feb 17 03:57:01 yes only views Feb 17 03:57:03 :) Feb 17 03:57:22 at some point I was gonna page Fragments but realized I was in a Fragment already Feb 17 03:57:51 so I am trying to handle some args passed in to the fragment Feb 17 03:58:01 what would be the right time to do that? I need my pager to be ready Feb 17 04:00:06 How can get selected text from WebView in 3.2+? Feb 17 04:00:17 use javascript Feb 17 04:01:35 pfn: thanks..I'm guessing there isn't a way use the long click listener and get the text there Feb 17 04:02:35 I'm trying to create a context menu for the selected text on the WebView. Feb 17 04:03:05 hi, a question, does android use the same kernel with common linux distro Feb 17 04:03:32 "same" in what way? Feb 17 04:04:15 like if i can use android's kernel to build an common distro? Feb 17 04:08:20 at android.view.LayoutInflater.createViewFromTag ----- Any ideas? Feb 17 04:08:40 evancharlton: can you answer my question? Feb 17 04:10:05 Unable to start activity ComponentInfo --- Any Ideas on this error? Feb 17 04:11:48 paste bin plz Feb 17 04:12:04 i cannot decipher a stack trace from that Feb 17 04:13:04 View#onConfigurationChanged Feb 17 04:13:07 what is that called for Feb 17 04:13:15 orientation doesn't seem to trigger it Feb 17 04:13:52 Out of order class? Feb 17 04:14:34 JakeWharton, whenever you have configChanges set in manifest Feb 17 04:14:41 * canadiancow eagerly checks if his tax return has been processed Feb 17 04:14:52 JakeWharton, e.g. configChanges="orientation" and onConfigurationChanged will get called on orientation change Feb 17 04:15:02 I need my w2s before I can do that canadiancow -_- Feb 17 04:15:04 for the entire view tree? Feb 17 04:15:08 because I have that Feb 17 04:15:14 JakeWharton, hmm, dunno about for View though Feb 17 04:15:17 * pfn shrugs Feb 17 04:15:24 i think a w2s is like a t4 Feb 17 04:15:29 and i submitted mine without one of my t4's Feb 17 04:15:38 I need to do my taxes, maybe this weekend Feb 17 04:16:01 I have my last paystub from my teaching job, but nothing from my current one that I could use to estimate the right amounts Feb 17 04:16:17 come to think of it, I'm not getting a w2 from that one, just a 1099 Feb 17 04:16:36 and supposedly google gives 1099s for market sales, but I'm sure there is a min amount you have to make Feb 17 04:16:41 t0mless what apps have you written again? Feb 17 04:17:04 https://market.android.com/developer?pub=Sleepybear+Apps#?t=W251bGwsbnVsbCxudWxsLDEsInVzLnNsZWVweWJlYXIuYW5kcm9pZC5tcGdjYWxjcHJvIl0. Feb 17 04:17:11 t0mless, something like over $2500/yr or something Feb 17 04:17:12 oh yea Feb 17 04:17:34 why does vpn have to lag something awful the one night I'm feeling extra productive?! Feb 17 04:17:42 I'm currently redoing the layout to move away from the dashboard design and use action bar + quick actions Feb 17 04:17:44 lol @ review t0mless Feb 17 04:17:46 "No imperial measurement. Us only" Feb 17 04:18:00 canadiancow: must be one of those metric americans Feb 17 04:18:01 yea, including that in the update too Feb 17 04:18:09 though I though US measurements were imperial.... Feb 17 04:18:12 they are Feb 17 04:18:13 thought* Feb 17 04:18:14 that's why it's funny Feb 17 04:18:15 oxymoron Feb 17 04:18:20 or just a plain moron Feb 17 04:18:24 center the ad as well Feb 17 04:18:26 looks weird on my gnex Feb 17 04:18:36 good call Feb 17 04:18:39 I hate debugging :( Feb 17 04:18:40 I want to roll my Admob money back into ads, but my ads have been pending approval for days... Feb 17 04:19:05 probably going to remove the full screen ad because right now I am only doing that through greystripe Feb 17 04:19:14 and it doesn't make crap and they have a $100 min payout Feb 17 04:19:25 lol Feb 17 04:19:53 though I'm sure it bugs users to maybe pay 99c to get ad-free version... Feb 17 04:19:55 so I dunno Feb 17 04:20:54 alright, 3.0 definitely dispatches config changes to the View tree Feb 17 04:21:00 http://pastebin.com/jwJnhYmB ----- Any ideas? Feb 17 04:21:28 you left out the best part! Feb 17 04:21:29 yes Feb 17 04:21:34 stop playing terraria and go outside! Feb 17 04:21:38 on wait, there it is Feb 17 04:21:45 what's on line 29 of your activity Feb 17 04:21:49 Its terraria just as an aspect Feb 17 04:21:50 stupid pastebin Feb 17 04:22:05 29 is a } Feb 17 04:22:14 Closing the onCreate void Feb 17 04:22:37 post your onCreate Feb 17 04:22:43 mmm pastabin Feb 17 04:22:55 http://pastebin.com/kBsDST22 Feb 17 04:23:32 I am adding in my dashboard UI, that's why half this stuff has awkward strings etc.. Feb 17 04:24:21 seems one of your views may be null? do a clean build as a NPE shouldn't be thrown on a } Feb 17 04:24:44 so you might have changed something since that last build and moved the lines Feb 17 04:26:17 ugh Feb 17 04:26:18 Cleaned it, crashed again Feb 17 04:26:24 why don't the emulators rotate Feb 17 04:26:31 stuck in landscape every time Feb 17 04:26:32 Because it runs ARM Feb 17 04:26:36 :P Feb 17 04:26:49 doesn't ctrl+f11/f12 rotate it? Feb 17 04:26:50 defeats the whole purpose of testing config changes Feb 17 04:26:51 'ARM Feb 17 04:27:02 t0mless, on pre-3.0 it'll work into landscape but not out Feb 17 04:27:03 left ctrl only seems to work for me, not right ctrl Feb 17 04:27:05 same Feb 17 04:27:13 i dont think i got paid enough Feb 17 04:27:20 have to go back to home to fix portrait Feb 17 04:27:20 * canadiancow needs his paystub Feb 17 04:27:28 canadiancow, that's because it's all monopoly money Feb 17 04:27:33 gnight Feb 17 04:27:34 *sigh* Feb 17 04:27:41 goodnight FishFPG!! Feb 17 04:27:49 :) Feb 17 04:30:32 i swear that the emulator is not honoring my config changes Feb 17 04:31:07 omg samsung makes the shittiest software Feb 17 04:31:14 "to update this application, the old version must be uninstalled" Feb 17 04:31:15 are there any good simply singleton tutorials Feb 17 04:31:15 ok. Feb 17 04:31:20 IT KILLED ALL MY SETTINGS Feb 17 04:31:27 * michaelnovakjr is surprised canadiancow is just figuring this out now... Feb 17 04:31:39 fucking elacont weather app did that like 2 updates ago Feb 17 04:31:59 I still haven't updated my tablet because I don't want to redo all the widgets/settings Feb 17 04:32:32 michaelnovakjr, im bitching about it because i just experienced it again Feb 17 04:32:37 i didnt "just figure it out" :P Feb 17 04:32:41 lol Feb 17 04:32:50 or if theres a way using media player to only have one instance? Feb 17 04:33:41 people should use the backups API more Feb 17 04:33:57 I was just thinking about that actually Feb 17 04:34:27 could I use the backup api's to sync data between devices? Feb 17 04:34:37 because that would be awesome Feb 17 04:35:03 I think it't kind of exactly what its for Feb 17 04:35:18 but it might only activate on installation Feb 17 04:35:24 my understanding anyway Feb 17 04:35:25 that's what I was wondering Feb 17 04:35:31 if it was only on install/uninstall Feb 17 04:35:53 well periodic backups, + restore on install Feb 17 04:35:55 or if it kept a sync service Feb 17 04:36:11 http://developer.android.com/guide/topics/data/backup.html Feb 17 04:36:17 is there a way to use a google account as a sync service without using app engine+c2dm? Feb 17 04:36:31 "Note: The backup service is not designed for synchronizing application data with other clients or saving data that you'd like to access during the normal application lifecycle. " Feb 17 04:38:11 But games should really be using this... (I'm looking at you world of goo!) Feb 17 04:38:19 Stupid OpenFeint Feb 17 04:38:24 i want a game where i can play a level on my phone Feb 17 04:38:26 Agreed Feb 17 04:38:28 then play the NEXT elvel on my tab Feb 17 04:38:36 agree Feb 17 04:38:40 I do that all the time Feb 17 04:38:57 well, I start to until I realize its out of sync Feb 17 04:38:59 I replayed cut the rope in its entirety because of that Feb 17 04:39:06 I think you'd have to use an account with some sync server and c2dm to accomplish that Feb 17 04:39:07 adb backup ! Feb 17 04:39:21 I've played various bits of Angry Birds at least three times Feb 17 04:39:35 I stopped playing games on my phone because of that Feb 17 04:39:39 mostly just play on my tablet Feb 17 04:40:55 alright. my config changes aren't working. I have android:configChanges="orientation|screenSize" in the manifest. Logcat shows a full recreate happening on the emu Feb 17 04:41:06 do I need something else for emu? Feb 17 04:41:12 I will definitely have to incorporate the backupmanager into my v2.0 Feb 17 04:41:19 when i call a media player instance, can I stop all other ones before starting the next clip? Feb 17 04:41:58 JakeWharton, remind me... whats in your support lib plugin for 4.0 that I'd be missing from the standard support-v4? Feb 17 04:42:33 hooks into menu callbacks Feb 17 04:42:47 t0mless: I mostly play things on my phone which don't have state - puzzles, crosswords, etc Feb 17 04:42:59 and changing android.view.Menu[Item] to com.actionbarsherlock.view.Menu[Item] in FragmentManagerImpl and Fragment Feb 17 04:43:05 could that be done with my own FragmentActivity subclass? Feb 17 04:43:17 the former, not the latter Feb 17 04:43:45 you'd have to find a way to dispatch menu callbacks to all the fragments that it was relevant to Feb 17 04:43:58 oh ... does not sound like fun Feb 17 04:44:05 oh yea, that reminds me Feb 17 04:44:18 you need access to things that are package, protected, and private scoped Feb 17 04:44:24 which sucks Feb 17 04:44:36 if I add a menu item in a fragments onCreateOptionsMenu can I handle it inside the activities onMenuItemSelected? Feb 17 04:44:38 I should patch the support lib in Gerrit to somehow support ABS hooking in Feb 17 04:44:48 t0mless, yes, different imports Feb 17 04:44:54 that would be nice] Feb 17 04:45:01 all the android.view.Menu[Item] callbacks are final in the base activity so you cannot override the wrong ones Feb 17 04:45:26 i wonder who I should talk to about that Feb 17 04:45:47 android-contributors maybe Feb 17 04:45:47 Dianne Hackborn? Feb 17 04:46:01 I think she did some of the support lib stuff right? Feb 17 04:46:10 yeah i think she's the main steward of the support lib Feb 17 04:46:25 Comment 12 by project member tnor...@google.com, Jan 12, 2012 Feb 17 04:46:25 FYI: We've just updated ADT 17 to bundle Proguard 4.7 which fixes a lot of similar issues. Feb 17 04:46:27 OMFG OMFG OMFG Feb 17 04:46:29 OMFG Feb 17 04:46:43 whoa, happy cowq Feb 17 04:46:48 happy cow Feb 17 04:47:06 is ADT 17 released yet? Feb 17 04:47:08 no Feb 17 04:47:10 but fucking finally Feb 17 04:47:13 :-) Feb 17 04:47:18 its had proguard version really.fucking.old for so long Feb 17 04:48:02 what sorts of issues? keeping the right stuff and not breaking apps? Feb 17 04:48:02 can someone help me create only one media player instance at a time? Feb 17 04:48:03 http://pastie.org/private/ndtycwdq3ew4jdjchaamyw Feb 17 04:48:40 $ git shortlog -s -n Feb 17 04:48:40 45 Dianne Hackborn Feb 17 04:48:40 39 The Android Automerger Feb 17 04:48:40 34 Adam Powell Feb 17 04:48:50 nice Feb 17 04:49:04 dunivan, dont contruct multiple instances Feb 17 04:49:07 *construct Feb 17 04:50:06 dunivan, create field in your Activity, not an new instance within each click handler Feb 17 04:50:17 I use ....setOnClickListener(new OnClickListener() {.... and some people use ....setOnClickListener(new View.onClickListener() {.... What is the difference between them? Which is more suitable? Feb 17 04:50:34 napster, zero Feb 17 04:51:27 napster, purely aesthetic. if you import View.OnClickListener then you can reference OnClickListener, otherwise you need to qualify it (View.OnClickListener) Feb 17 04:52:09 mrenouf: Thats it? see its onClickListener() not OnClickListener() Feb 17 04:52:49 oh Feb 17 04:53:09 ok my mistake Feb 17 04:53:14 mrenouf: ty Feb 17 04:53:31 i can't even fathom a proper way to modify the support lib to allow what Ineed Feb 17 04:53:44 at least, not one they'll accept Feb 17 04:54:04 I don't think "rip out all shitty callbacks and use an event bus" will go over well" Feb 17 04:54:09 it clearly needs an SPI layer ;-) Feb 17 04:54:27 mrenouf: would I be creating a new .java for each onclick then? Feb 17 04:54:59 dunivan, NO no... just add a single instance of MediaPlayer as a field in your View Feb 17 04:55:30 dunivan, when you want to switch media, check it's state, stop if necessary, set the new content and start it Feb 17 04:56:00 do context menus show up as action modes on 3.0+? Feb 17 04:56:06 think about it like a TV, to change the channel, you don't make a new TV set to channel 4. you just change it's state Feb 17 04:57:39 right Feb 17 04:57:47 now its figuring out how to do it ha ha Feb 17 04:58:13 JakeWharton, ok, now i'm confused. in plugins/support-lib/libs you have android-support-v4.jar, I though the plugin contained all that? Feb 17 04:58:50 oh, n/m. only three source files Feb 17 04:58:53 mrenouf, maven explodes that .jar and replaces 3 files in it Feb 17 04:59:32 what rev are you using? Feb 17 04:59:42 6 Feb 17 04:59:44 i need to bundle it together with the source Feb 17 04:59:45 k Feb 17 05:01:02 would it still be onclick to build the initial mp (line 27-29) Feb 17 05:01:04 http://pastie.org/private/ndtycwdq3ew4jdjchaamyw Feb 17 05:01:34 dunivan, no, just create an instance in onCreate() Feb 17 05:01:56 you dont want a new mediaplayer getting made every time someone touches the screen Feb 17 05:02:04 I think I'm going to open source my Android Microsoft Access reader Feb 17 05:03:02 Ologn, dont expect too many patches Feb 17 05:03:05 :-) Feb 17 05:03:16 mrenouf: That's OK... Feb 17 05:03:27 Wow MS Access Feb 17 05:03:44 mrenouf: Hey, lots of people love my app, they need it... Feb 17 05:03:59 thats great! Feb 17 05:04:26 I figure every terrible old deprecated obsolete peice of software out there still has at least a few users Feb 17 05:04:33 mp = MediaPlayer.create(TrackPreview.this); in oncreate? Feb 17 05:04:43 the "long tail" Feb 17 05:04:47 My college has Microsoft Access on it's PCs in the computer center Feb 17 05:04:52 dunivan, yep Feb 17 05:04:54 its rather Feb 17 05:05:17 dunivan, you can simplify that to just MediaPlayer.create(this) Feb 17 05:08:35 supportSetUiOptions(..), setSupportUiOptions(..), setUiOptions(..), or getSupportWindow().setUiOptions(..) in the Sherlock activities? Feb 17 05:15:15 mrenouf: I get this error The method create(Context, Uri) in the type MediaPlayer is not applicable for the arguments (AlbumPreview) Feb 17 05:17:34 should there be a (this,[something to signify file]) Feb 17 05:18:54 http://pastie.org/private/ndtycwdq3ew4jdjchaamyw Feb 17 05:26:27 anyone have any ideas? im trying to have a user select a word to hear a soundclip, but only want to play one at a time Feb 17 05:34:35 JakeWharton: any ideas? Feb 17 05:35:52 dunivan the error seems to be implying that you need a context AND a Uri for the create() method in MediaPlayer Feb 17 05:36:00 right Feb 17 05:36:08 and you're lacking the Uri Feb 17 05:36:15 but I am trying to have one media player for 7 sound files Feb 17 05:36:20 so that they don't overlap Feb 17 05:36:31 findby id doesn't work Feb 17 05:36:33 so load a small default one, or pass null? Feb 17 05:36:54 why would you use find by id when it wants a Uri? Feb 17 05:37:00 you might be able to pass null Feb 17 05:37:03 ahh, didnt think to pass null Feb 17 05:37:06 that did work Feb 17 05:37:11 look at the docs Feb 17 05:37:17 see if it's allowed Feb 17 05:37:23 and won't make it explode Feb 17 05:39:18 you could also just give it the id of one of your soundbytes Feb 17 05:39:28 or a default one or something Feb 17 05:39:47 but not sure if passing it null will result in a null Mediaplayoer being returned Feb 17 05:41:53 the sound wont play unless i give start(); right Feb 17 05:43:24 now, t0mless, how do I tell this instance of mediaplayer what to play Feb 17 05:43:51 the clip names are in textview's, so can I just do an onclick listener with mp.start(); Feb 17 05:44:46 you will have to parse the text and then figure out what to play based on that Feb 17 05:45:00 probably by creating a Uri and then using setDataSource on media player Feb 17 05:45:10 or whatever the method is, I think it's setDataSource Feb 17 05:48:20 guys, how can i know am i in UI thread or not? I need to know it because if i am in UI thread, then i can access my views, otherwise i need to call post(Runnable) Feb 17 05:53:03 hey, so this is stupid, but i closed the graphical view of my res/layout/mail.xml and i cant figure out how to get it back Feb 17 05:53:05 im using eclipse Feb 17 05:53:21 t0mless: so i create the mediaplayer, then do a try mp.setDataSource(soundUrl); how do I set the uri based on what the user selects Feb 17 05:53:46 well... is the user just typing in random words? Feb 17 05:55:07 no, its 7 different clips Feb 17 05:55:26 they click the clip name (which is a textview) and i want to play the clip Feb 17 05:55:31 but only one at a time Feb 17 05:55:38 since my current set up overlaps them Feb 17 05:55:58 oh, that's easy Feb 17 05:56:08 switch on the clicked view's id Feb 17 05:56:20 then load the correct sound clip Feb 17 05:56:29 using setdatasource? Feb 17 05:56:36 yea Feb 17 05:56:58 you don't have to use a Uri I don't think, if your media is already in your resources Feb 17 05:57:16 die spinners Feb 17 05:57:16 you can use the resource identifier for the clip Feb 17 05:58:17 the r.raw.clipname Feb 17 05:58:19 ? Feb 17 05:59:33 who's going to a local android devcamp today!? Feb 17 06:02:39 t0mless would i set the variable through an onclick listener? Feb 17 06:02:58 eh? Feb 17 06:03:10 why don't you just hire me to make your app Feb 17 06:03:12 :p Feb 17 06:03:32 im trying to learn ha ha Feb 17 06:05:56 what variable are you even setting?> Feb 17 06:06:40 im setting mp.setDataSource(soundPath); based on what is clicked Feb 17 06:06:52 with an onclicklistener Feb 17 06:07:11 so button 1 will equal soundPath = R.raw.clip1 Feb 17 06:07:21 ( dunivan ) t0mless would i set the variable through an onclick listener? <-- What variable?? Feb 17 06:07:44 the id variable to then say what the url is Feb 17 06:08:03 uri* Feb 17 06:08:24 but if you can just use the R.raw id of the sound clip Feb 17 06:08:30 you don't need to build a uri Feb 17 06:08:43 but yea Feb 17 06:08:44 that works Feb 17 06:08:49 right, the mp3's will be packaged with the app Feb 17 06:08:58 so no need for a uri Feb 17 06:09:02 just location Feb 17 06:12:12 thanks for all the help t0mless Feb 17 06:16:59 Ok I think thats enough for tonight Feb 17 06:17:07 starting out always hurts my head Feb 17 06:18:17 t0mless: dumb question, but I set the variable in java, it doesnt have to be part of the xml too right? Feb 17 06:18:30 JakeWharton do you have any padding on it? Feb 17 06:18:33 For that bug? Feb 17 06:18:55 dunivan uhh... wtf? Your id's are in xml Feb 17 06:19:01 right Feb 17 06:19:29 but i want to use soundPath Feb 17 06:19:45 No, don't put that in xml Feb 17 06:19:50 http://pastie.org/3399444 Feb 17 06:20:50 ok, that would work... but were did you define soundPath? Feb 17 06:21:10 you should also format your code better Feb 17 06:22:13 also, that try block is useless Feb 17 06:22:50 since the line DIRECTLY before it you're creating the MP with the soundPath, so setting it's data source to the exact same thing right after is... redundant Feb 17 06:23:01 ahhh Feb 17 06:23:19 but is having soundPath in the create MP going to cause it to overlap? Feb 17 06:23:47 I have no idea what you're even trying to describe Feb 17 06:24:17 the create call tries to create a media player with the given source Feb 17 06:24:25 so then why set the same source right after it? Feb 17 06:24:37 hi Feb 17 06:24:44 right Feb 17 06:24:50 who knows about iPhone development? Feb 17 06:24:59 #iphone-dev? Feb 17 06:25:02 i get that, its redundant Feb 17 06:25:04 #ios-dev? Feb 17 06:25:24 since i am using only the one media player instance, it can only play one file at a time right? Feb 17 06:25:32 Right Feb 17 06:25:40 t0mless, yes Feb 17 06:25:57 and I thought I defined soundPath on line 38 Feb 17 06:25:59 is there any iPhone development channel ? Feb 17 06:26:17 but that isn't defined on line 17 or 19 Feb 17 06:26:28 o2oo somewhere, yea Feb 17 06:27:19 anyone knows? Feb 17 06:28:49 channel list did Feb 17 06:28:52 #iphonedev Feb 17 06:29:23 t0mless, thanks ! Feb 17 06:29:24 dunivan do you know how onclick listener's work? Feb 17 06:29:35 i think so Feb 17 06:29:41 I disagree Feb 17 06:29:56 you are probably right, I am pretty new to this Feb 17 06:30:06 where do you even declare soundPath? Feb 17 06:30:21 I thought I was doing that through the onClick Feb 17 06:30:33 is eclipse not flipping out on you then? Feb 17 06:30:48 because as far as I can tell, you never defined what type soundPath is Feb 17 06:31:01 the only error I have is soundPath cannot be resolved to a variable Feb 17 06:31:20 which (i think) is because i haven't defined it Feb 17 06:31:33 Indeed. Feb 17 06:32:05 and I am also gathering its basic java knowledge Feb 17 06:32:21 but this: http://docs.oracle.com/javase/tutorial/java/javaOO/variables.html didn't explain it well Feb 17 06:32:28 so I am still looking at how to Feb 17 06:32:49 Yikes. Feb 17 06:32:59 Go through a few java tutorials then come back to android Feb 17 06:37:42 am I making this more difficult then it needs to be? Feb 17 06:42:01 t0mless: looking at the code, if I define it, will it work as written? Feb 17 06:42:10 Hell no Feb 17 06:42:30 though it turns out that I was wrong about setDataSource taking a resource id Feb 17 06:42:44 looks like you have to get the file descriptor Feb 17 06:43:00 t0mless: you should also format your code better <- what did you mean by this? Feb 17 06:43:11 damn Feb 17 06:43:59 im going to have to go back to the old code and put some kind of warning to only let one thing play Feb 17 06:44:00 http://pastie.org/private/quirh0gbyswwvygcqmb8mq Feb 17 06:46:24 http://pastie.org/3399556 Feb 17 06:46:26 try that Feb 17 06:47:05 ha ha Im a Noob Feb 17 06:47:52 and as long as I didn't typo, that should work Feb 17 06:48:01 for at least your first textview Feb 17 06:50:38 tag cannot be resolved to a variable Feb 17 06:52:44 ... did you forget the ImANoob line? Feb 17 06:54:16 thats in there Feb 17 06:54:32 did you change anything? Feb 17 06:54:54 i repasted and it worked Feb 17 06:55:25 except for an unhandled exception type IOE Feb 17 06:55:44 where Feb 17 06:56:05 afd.close(); Feb 17 06:56:10 bah Feb 17 06:56:32 put the whole bloody thing in the try/catch then Feb 17 06:56:37 actually Feb 17 06:56:39 no Feb 17 06:56:45 put a new try/catch around it Feb 17 06:57:00 hi all! why new Date().getYear() returned 112? Feb 17 06:57:21 because it's 2012? Feb 17 06:58:09 l2use docs Feb 17 06:58:10 http://developer.android.com/reference/java/util/Date.html#getYear() Feb 17 06:58:53 http://pastie.org/private/wgss9yfstdgoabdqgufuew Feb 17 06:59:24 thanks! Feb 17 06:59:27 you only need the IO exception on the second try block there Feb 17 07:00:22 but that should work too Feb 17 07:04:54 awesome! thanks Feb 17 07:06:54 you know of any great noob resources? Feb 17 07:07:16 as little as I know, i do want to get good at this Feb 17 07:09:52 do some solid java tutorials Feb 17 07:10:02 then read the dev guide on d.android.com Feb 17 07:10:11 there are a few good android books out there Feb 17 07:34:05 how set place holder on http://developer.android.com/reference/android/widget/AutoCompleteTextView.html? Feb 17 08:50:39 Every time i get a Cursor from a DB, i have to close() it right? Feb 17 08:51:15 it's a good idea to Feb 17 08:51:28 lets say yes Feb 17 09:13:22 Are there any methods or code snippits for dealing with a warp-around homescreen and onOffsetsChanged on a live wallpaper? Going in reverse from home screen 1 straight to 5 means the offset goes from 0 to 1 instantly which means no smooth movement Feb 17 10:06:15 hey, what's the best way to use fragments ? do i need to create an activity for each fragment or 1 activity with 2 fragments in it ? Feb 17 10:06:43 Haha nice stuff in logcat Feb 17 10:06:48 INFO/DEBUG(20333): debuggerd committing suicide to free the zombie! Feb 17 10:06:57 Cinetik: there's a nice guide on the android developer site Feb 17 10:07:12 Cinetik: in short, it depends on the configuration Feb 17 10:07:27 Kindle Fire debug connection not very stable. But I'm banging it hard :-) Feb 17 10:07:39 Cinetik: on a phone you might have 1 fragment per activity Feb 17 10:07:46 on a tablet you might have 2 or 3 per activity Feb 17 10:08:23 fragments are like modular pieces of your UI you can mix and match depending on whether you're targeting tablets or phones, or devices in landscape or portrait Feb 17 10:09:20 Just looking at 'main.xml' in /res/layout/ in Eclipse. Is there a tab called 'Properties' somewhere? If so, I don't see it. :-/ Feb 17 10:12:52 MDijkstra: ok i'm on a tablet so right now i'm not wrong having 2 fragments in an activity, now i have a lot of trouble making them communicating, i don't understand well how callbacks work Feb 17 10:13:42 Cinetik: you should make your own callback interface Feb 17 10:13:54 Cinetik: to communicate events back to the activity that contains the fragment Feb 17 10:14:17 Cinetik: http://developer.android.com/guide/topics/fundamentals/fragments.html#EventCallbacks Feb 17 10:14:21 Cinetik: in general, the fragment should make as little assumptions as possible about in which configuration it is running Feb 17 10:14:33 Gotta start reading Feb 17 10:22:19 thanks everyone ! Feb 17 11:06:45 How can I detect when an ActionBar search is closed? I have found "setOnActionExpandListener" but that seems to be API 14. Is there perhaps a compatibility version of this? Feb 17 11:12:15 hgelLOO Feb 17 11:12:21 teach me android Feb 17 11:12:25 no Feb 17 11:12:26 bye Feb 17 11:12:47 im object oriented Feb 17 11:13:50 iurtoao: ? Feb 17 11:14:56 Lesson 1: Robots are not to be trusted. Feb 17 11:15:14 tliebeck: I thought as much, but wasn't sure if it was a bot. Feb 17 11:15:25 tliebeck: Why would somone send a bot in here? Feb 17 11:15:39 tliebeck: And is there any way to kick it out? Feb 17 11:16:04 u got no such right Feb 17 11:16:13 let police handle Feb 17 11:16:21 u got right to stf Feb 17 11:17:10 i want to make something in android and dont want to study every feature and only related points (object oriented) Feb 17 11:17:31 but only required topics Feb 17 11:17:34 How do you kick a bot out? :-) Feb 17 11:17:48 wat bot ?/>? Feb 17 11:17:53 I dont think hes a bot, but I do think he has been drinking the special sauce Feb 17 11:18:11 u r a Learner not aTeacher Feb 17 11:18:11 Knossos-w: Too funny. Feb 17 11:18:13 u cant kik Feb 17 11:18:30 Knossos-w: Got a sense of humor too. :-) Feb 17 11:18:40 sit in corner face th wall Feb 17 11:18:41 i think he's just stupid Feb 17 11:18:57 Hi all, i am a newbie, and am following (source.android.com/source/downloading.html) to set up REPO... but i get stuck at the 7th command of this guide, which is repo init https....../manifest. Feb 17 11:19:16 u no newbie Feb 17 11:19:21 ,... Feb 17 11:19:22 liar Feb 17 11:19:28 msalmans: Welcome to IRC. Feb 17 11:19:43 msalmans: Let me have a look at what you're trying to do. Feb 17 11:19:45 standard high school kid with an inflated sense of entitlement Feb 17 11:20:16 storkme: Do we get a lot of those around here? Feb 17 11:20:17 welcome to internet Feb 17 11:20:42 What is manifest? which url am I supposed to put there? because, i get an error after i execute the 7th command plus same with 8th Feb 17 11:20:43 storkme: This is my first time witnessing this on #android-dev. Feb 17 11:20:59 AnDroiD Feb 17 11:22:04 msalmans: I looked at what you sent through. I don't know the answer to your question. I know that there is file named 'AndroidManifest.xml' - perhaps that could be it? Feb 17 11:22:43 aLearner: not often at all. It's fairly common for people to ask for spoon feeding, but most have a bit more humility about it. Feb 17 11:23:20 storkme: I beg your pardon? I'm not sure I understand what you're saying. Feb 17 11:23:28 storkme: Sorry. Feb 17 11:24:01 Zz Feb 17 11:24:02 z Feb 17 11:24:39 msalmans: What do you mean? That page is fairly self explanatory. Feb 17 11:25:16 You will need to tell us the exact point you are at and what error you are getting Feb 17 11:25:48 was just replying to your question; no we don't get a lot of people like that in here Feb 17 11:26:25 storkme: Right. But the gent or lady doesn't seem to be asking for help. His / Her behavior is rather erratic - right? Feb 17 11:26:32 Ok guys, i think I found where my problem is... Do i need to have git, iin order to install repo? Feb 17 11:26:34 yeah, I'd say so Feb 17 11:26:42 we just call them 'trolls' Feb 17 11:26:52 storkme: Oh. Most interesting. I Feb 17 11:27:20 storkme: I'd heard of trolls on the internet forums scene - didn't know they existed on IRC too. Feb 17 11:27:31 storkme: Thanks for the explanation. Feb 17 11:27:45 aLearner: they are everywhere Feb 17 11:28:13 p_l: Most interesting. These are actual people just causing disruption? Sorry. Am kinda new to the IRC scene. Feb 17 11:28:20 lack of face2face or at least voice contact and ease of delivery (compared with sending even a printed letter etc.) break down barriers that stop them otherwise Feb 17 11:28:28 hey Feb 17 11:28:33 hgdhj Feb 17 11:28:56 p_l: Right. That makes sense. But it seems like an idle waste of their lives - right? Feb 17 11:28:59 aLearner: a feeling of anonymity, especially among those who aren't really anonymous Feb 17 11:29:35 aLearner: so is mindless watching TV. It provides utility to them in some way Feb 17 11:29:44 p_l: The first part of your sentence is clear - the second part not so much. What do you mean by "aren't really anonymous"? Feb 17 11:30:06 p_l: 10 - 4 on the TV thing. :-) Feb 17 11:30:46 they're quite interesting Feb 17 11:31:10 aLearner: they "feel" anonymous, but aren't really among those who took care of being anonymous properly Feb 17 11:31:26 Well. On the internet, you can't be punched in the face for being insulting. Feb 17 11:31:46 p_l: OK. That makes sense. I had a hunch that you meant it that way. ;-) Feb 17 11:31:48 p_l: forgot if I mentioned it, but thanks for your suggestions yesterday...wound up alleviating the problem by dropping the priority of the background thread which seems to solve it and is probably a good idea in any case. Think it's an HC bug,or at least installing ICS on one of the tablets fully cured it as well. Feb 17 11:32:02 Knossos-w: Right. That makes sense. Feb 17 11:32:07 tliebeck: good to know Feb 17 11:32:29 BTW - Nice to meet you p_l, storkme and Knossos-w :-) Feb 17 11:32:38 definitely one of the most bizarre issues I've seen. Feb 17 11:32:40 Don't think I've met you folks before. Feb 17 11:33:09 likewise aLearner Feb 17 11:33:13 aLearner: it's also related to how it's easy to kill a person if you're doing it by hitting a button and not seeing the results close up, while killing someone in close combat is *hard* Feb 17 11:33:30 (mentally, that is) Feb 17 11:33:52 p_l: That's a very powerful statement - and one that's very scary. I really hadn't thought about it that way. But you are right. Feb 17 11:34:02 storkme: A pleasure. Feb 17 11:34:32 aLearner: it's part of our emotional feedback loop, which stops us from attacking other people in the "social group" Feb 17 11:34:48 * p_l did 2 years of psychology at uni. It shows. Feb 17 11:35:06 p_l: What do you mean by 'other people in the "social group"'. Sorry. That part ain't clear. Feb 17 11:35:10 though *that* part I actually learned in AI course Feb 17 11:35:31 aLearner: the group you identify with - originally the tribe you lived in Feb 17 11:35:49 and identify on the base level, that is. Feb 17 11:36:00 p_l: Cool. Thanks for the explanation. Feb 17 11:38:22 a proper research could explain it better, though. Feb 17 11:38:43 I can only base on what a non-psych. student for whom psych. was just a required course can do :) Feb 17 11:40:02 p_l: Haha. OK. Feb 17 11:41:12 So I'm actually going through a book (Android Application Development) and the following question is asked ---> http://collabedit.com/v2ppj. I've also put down what I have so far. But I'm kinda stuck on what to do next. Could someone nudge me in the right direction, please? Feb 17 11:43:51 I'm not sure what to put on the line that states "android:textColor" :-/ Feb 17 11:44:59 aLearner: http://developer.android.com/guide/topics/resources/more-resources.html :) Feb 17 11:45:10 resource type color Feb 17 11:45:18 p_l: Thank you so much for your help. I'm looking. Feb 17 11:46:30 p_l: Wow! That's very cool. This does NOT depend on the filename - right? I Could have called my file 'blah.xml' and things would still work - correct? Feb 17 11:47:07 check in the resources topic on d.android.com, it has full description Feb 17 11:48:09 p_l: Will do that. I'm still new - and quite raw. Feb 17 11:59:32 Ok so I've been reading up on the tutorials and I think I have a reasonable grasp of the APIs Feb 17 11:59:48 What's something cool to make so I can learn more? Feb 17 12:00:54 I want to push a notification to my android from a linux script. Android and linux box on same network. I hope this is not wrong channel to ask. Feb 17 12:01:36 look into c2dm Feb 17 12:03:52 Bacta: Do you feel confident in your abilities to make something? Feb 17 12:04:03 Bacta: Did you try the NoteaPad tutorial? Feb 17 12:04:20 No I haven't Feb 17 12:04:22 Is it worth it? Feb 17 12:04:52 Bacta: Here you go ---> http://developer.android.com/resources/tutorials/notepad/index.html Feb 17 12:05:15 Bacta: If you feel confident - try building this application without looking at the tutorial. Feb 17 12:05:36 Bacta: I learned a bunch of stuff from doing it piece-meal. I really like how it progressively gets harder. Feb 17 12:06:19 storkme, thanks looks interesting in general, but was hoping for something simpler and more direct, no need to go outside my own network Feb 17 12:06:49 the alternative is to have the phone always connected to wifi, always maintaining a connection to some server Feb 17 12:06:52 eats the battery Feb 17 12:07:54 storkme, sure, but while at home my phone is always on wifi Feb 17 12:08:43 yeah but the wifi radio will switch off when it isn't in use Feb 17 12:08:52 'wifi enabled' != 'wifi in use' Feb 17 12:10:35 storkme, it seems to wake up though when pinged ? Feb 17 12:11:04 oh Feb 17 12:11:07 maybe I'm wrong then Feb 17 12:11:46 maybe the router sends a wakeup to it or something Feb 17 12:12:06 try it and see i guess Feb 17 12:12:44 storkme, no idea, just tried and your're right, first few pings were unreachable and then started to respond. subsequent attmepts were instant replies Feb 17 12:13:36 storkme, but what would you suggest I use to post a notification .. I could my script to even try login into the phone over ssh, but that's probably overkill Feb 17 12:13:49 how close to real time do yo uwant? Feb 17 12:14:39 storkem, not important Feb 17 12:14:51 so you could just have the phone poll Feb 17 12:15:26 (c2dm is better though, it's almost real time, ultra lower power usage, and will work anywhere) Feb 17 12:16:42 storkme, phone doesn't really know who to talk to, could be one of n machines on the network that may want to post somehting Feb 17 12:17:04 storkme, timing sufficient a bit like sms, but there is a cost involved Feb 17 12:18:12 c2dm is free as far as I know.. Feb 17 12:18:22 agree c2dm looks good, but then data could be sensitive, would prefer keep local, and then still need something running on teh phone to do something with the received c2dm data Feb 17 12:19:05 was kind of hoping there was something already onboard to do that Feb 17 12:19:07 c2dm isn't design for sending data, it's designed for telling the phone that there is new data available Feb 17 12:19:26 so c2dm message would be like "hi phone, there's some data available, go check " Feb 17 12:19:34 then the phone wakes up, checks the uri, and gets the data Feb 17 12:19:57 yup read that bit... I just want to send short message ... e.g. "voip registration failed" Feb 17 12:19:58 i think c2dm only supports sending strings of max 1000 characters Feb 17 12:20:09 what's sensitive about that? Feb 17 12:20:22 as long as there are no planitext authentication details or anything you should be fine Feb 17 12:20:26 Hey there! Feb 17 12:20:43 Anyone know how I can make an imagebutton match the size of the image it contains? Feb 17 12:21:22 What I want is a pixel perfect rendering of the graphic, not the blurry one I got now because the image button size isn't quite right. Feb 17 12:22:15 storkme, understand and probably fine for most things ... but e.g. when my router reports losing ADSL connection, I'm stuffed... no net connection, no c2dm Feb 17 12:23:22 i guess so Feb 17 12:23:52 almost sounds like it may be easier to have the phone watch a local mailbox and have stuff going via sendmail Feb 17 12:24:21 anyway, will think through things more and look into c2dm too. thanks for your ear. Feb 17 12:28:03 is it possible to find out if a given SGS2 has NFC or not? is there a difference in the model number or something? Feb 17 12:30:35 hipitihop: special SMS? (with port addressing in it or some other special flag) Feb 17 12:41:21 I have a method public void showme(View v){...}, my question, why do we have View v as argument for this method,thanksthis Feb 17 12:44:12 is there a simple way to get zoom and drag functionality for an image i want to display? Feb 17 12:50:53 I would like to have an advice from you guys. I want to create an activity as a start screen of my app and show a grid of images/buttons. I could do that with tablelayout, or gridlayout and use buttons or imageviews as items. What do you think is the best solution? Feb 17 12:53:13 Number5: I had to implement exactly the same thing for this app Feb 17 12:53:39 MDijkstra, ok, so what solution did you chose? Feb 17 12:53:46 GridLayout Feb 17 12:53:53 is great for this Feb 17 12:53:54 MDijkstra, why? Feb 17 12:53:57 ok Feb 17 12:54:05 because it's easy to reflow on orientation change Feb 17 12:54:06 do you have a link of a screenshot or something? Feb 17 12:54:21 SportclubApp, app is in dutch though Feb 17 12:54:23 MDijkstra, aah that's a nice one Feb 17 12:54:35 Ik ben ook Nederlands :P Feb 17 12:54:40 great then :p Feb 17 12:55:16 you should be able to find it on the market then Feb 17 12:56:06 MDijkstra, that looks cool :) Feb 17 12:56:44 thanks Feb 17 12:56:49 if you also want text below the icons Feb 17 12:56:55 don't use a UIButton Feb 17 12:56:57 that's a pain Feb 17 12:57:21 use a linearlayout with an image and a textview below that Feb 17 12:57:28 MDijkstra, that's a good point too, so you use imageview for that I assume? Feb 17 12:57:37 I'm actually using a UIButton Feb 17 12:57:56 but it's an ugly hack to display text and an image at the same time Feb 17 12:58:02 and doesn't work well in landscape Feb 17 12:58:06 so avoid that Feb 17 12:58:17 Hahahaa, well thnx for the warning Feb 17 12:58:32 Is it too much work to change that for you? Feb 17 12:58:54 nah Feb 17 12:59:06 btw, the logos you use are really great Feb 17 12:59:16 did you designed it yourself? Feb 17 12:59:21 just hit the deadline and don't have any more hours allocated for 1.0 Feb 17 12:59:27 no, we have a great graphics designer Feb 17 13:00:07 I think the iOS version looks even nicer Feb 17 13:00:14 well he's good, I only don't understand the sponsor logo Feb 17 13:00:21 why is that? Feb 17 13:00:33 because we only have to target 2 devices Feb 17 13:00:52 so making it look consistent is less of an issue Feb 17 13:01:32 http://itunes.apple.com/kz/app/sportclubapp/id499629432?mt=8 Feb 17 13:02:01 ok Feb 17 13:02:57 see no differences, except the back button of iOS is different Feb 17 13:03:26 but I guess it's a matter of taste :) Feb 17 13:04:44 MDiijkstra, you programmed it for iOS too? Feb 17 13:04:53 yep Feb 17 13:05:33 cool Feb 17 13:06:22 wow, the emulator is sooo slow Feb 17 13:06:57 scale the size down a bit, helps me :-P Feb 17 13:23:09 guys i want to change te android:drawable="@drawable/background1" to for example @drawable/background2 while doing onclick Feb 17 13:23:16 cant seem to find the correct way Feb 17 13:25:11 ugh, I just realized RoboGuice and the v4-support lib dont play nice together Feb 17 13:25:27 FragmentActivity, vs. RoboActivity. Feb 17 13:25:32 I Feb 17 13:25:55 I guess I have to make a RoboFragmentActivity for a base class Feb 17 13:26:00 Motafoca: use a statelistdrawable Feb 17 13:26:20 Motafoca: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Feb 17 13:26:43 Motafoca, on click, or on press? Feb 17 13:28:07 mrenouf: no click Feb 17 13:28:26 so you want it to toggle between two states Feb 17 13:28:34 more states, but yeah Feb 17 13:28:47 like if i click once, the background is 1 Feb 17 13:28:50 twice, 2 Feb 17 13:28:52 etc... Feb 17 13:29:01 use a level list drawable, and add a click handler to set the level Feb 17 13:29:12 08:26:06 < lov> Motafoca: use a statelistdrawable Feb 17 13:29:12 08:26:26 < lov> Motafoca: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Feb 17 13:29:19 oh wait Feb 17 13:29:22 you want it to actually toggle? Feb 17 13:29:26 http://developer.android.com/guide/topics/resources/drawable-resource.html#LevelList Feb 17 13:29:30 then yeah just change the actual background value when you click. Feb 17 13:29:35 and yeah a level list might even be simplest. Feb 17 13:29:40 :-) Feb 17 13:29:41 lov: thats the idea Feb 17 13:29:50 lov: just want to change statelistdrawable Feb 17 13:29:52 ops Feb 17 13:30:04 just want to change the @drawable/background1 to bacgrkound2 Feb 17 13:30:06 nothing more Feb 17 13:30:58 if there's just two, then just set the background drawable in a clickhandler, otherwise I recommend the level list drawable Feb 17 13:31:04 ^^ Feb 17 13:31:20 for what you're doing, you should set an onClick listener, and have it change the background of the view. Feb 17 13:31:34 especially if you want some sort of arbitrary behavior (one click, two clicks, etc) Feb 17 13:32:27 lov: but how to change the background onclick? Feb 17 13:35:43 call setBackgroundDrawable Feb 17 13:35:53 cmon seriously take 5 seconds and read the docs. Feb 17 13:36:02 HELP ME INTERNET, HOW DO I COMPUTER? Feb 17 13:36:08 found a way Feb 17 13:36:09 :0 Feb 17 13:36:10 :) Feb 17 13:36:12 SPOON FEED ME THE SOLUTION PLEASE EMAIL ME THE CODES Feb 17 13:36:15 change.setBackgroundResource(R.drawable.background1); Feb 17 13:47:50 lov, relax man... he's at least being polite Feb 17 13:50:31 hi Feb 17 13:51:43 Good time of day. Can anyone tell me how to eval the static R members? I'm breaking inside onCreate, yet R isn't available. Feb 17 13:53:47 soulseekah: try adding a local ref to it in your onCreate? (just a stupid guess, I done almost 0 actual android development :) Feb 17 13:54:53 It appears locally, just one line above where I break, there's setContentView(R.layout.main); Feb 17 13:55:10 next line I break, so R should be available, no? Feb 17 13:55:46 well, what I meant was: add it as a local var, like r = R; Feb 17 13:56:29 for easier inspection (it should show up in the local vars) Feb 17 14:01:09 yeh, R appeared, but looks like I have to dig even deeper Feb 17 14:02:24 r = instance of com.sample.R(id=830007832960) Feb 17 14:02:24 r.string.app_name - ParseException, No instance field or method with the name string in ... Feb 17 14:02:49 What's the correct way to debug R? Feb 17 14:03:23 http://pastebin.com/TiM6VXjp Feb 17 14:03:40 can anyone help me see why 802.1x PEAP fail please? Feb 17 14:03:52 WPA: Failed to get master session key from EAPOL state machines Feb 17 14:03:57 WPA: Key handshake aborted Feb 17 14:04:19 i saw this error Feb 17 14:04:22 sounds like the wpa eap server failed to give your phone a security key Feb 17 14:04:52 try connecting a new device other than your phone and see if that works Feb 17 14:05:05 hi Feb 17 14:05:48 soulseekah: O_O Feb 17 14:05:56 soulseekah: clean and rebuild your project. Something is messed up. Feb 17 14:06:03 does anyone know how to load 9-patch images from the assets folder ? I haven't been able to find a solution. It seems the 9-patch needs to be previously compiled... Feb 17 14:06:08 Here's another log with successful PEAP ocnnection: http://pastebin.com/Ccv76fpj Feb 17 14:06:08 lov, the project works Feb 17 14:06:15 EAP-MSCHAPV2: Authentication succeeded Feb 17 14:06:18 soulseekah: your autogenerated R file is in a strange state Feb 17 14:06:22 CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully Feb 17 14:06:29 lov, it's the DEFAULT project Feb 17 14:06:31 This is shown in the log of the Galaxy Tab that is successfully connected Feb 17 14:06:35 just the same. Feb 17 14:06:49 lov, R works from inside the code, but the debugger is not seeing it Feb 17 14:06:55 er, hold on. Feb 17 14:07:13 what exactly are you trying to do, and/or is anything broken? Feb 17 14:07:40 good afternoon Feb 17 14:07:48 the R.foo.bar values are supposed to be public static final, so they might be just getting inlined Feb 17 14:08:32 lov, thanks for asking. I have a project that is broken, it's not able to find the necessary resource id, so I figured I'd go in and debug, but I can't see R, I clean rebuilt a couple of times, yet no luck, so I created a new blank project to see if I could even get to R with the debugger Feb 17 14:08:35 so any idea guys? Feb 17 14:08:55 lov, so it ultimately just becomes a question of how to see inside of R from the debugger Feb 17 14:09:39 got myself searching arround the web for the answer, but couldn't find it. Maybe some of you do. Feb 17 14:09:46 soulseekah: you can probably run baksmali or something on the final version and see what the bytecode outcome actually is Feb 17 14:09:51 so any idea guys? Feb 17 14:10:05 How to create a listviewrow like the ics people-app Feb 17 14:10:11 soulseekah: your initial problem of not being able to find the necessary resource id might be related to you having your resources layed out wrong Feb 17 14:10:30 i.e. you're trying to use a drawable that exists in drawable-xhdpi but no where else and the runtime isn't smart enough to handle it if it isn't xhdpi Feb 17 14:12:17 lov, bounced, did you say anything after I said R is being regenerated after I delete? Feb 17 14:12:39 The project compiles fine, but throws an exception when launched Feb 17 14:12:44 so any idea guys? Feb 17 14:16:26 anyone got a solution to my question? Feb 17 14:17:06 e = "android.content.res.Resources$NotFoundException: File abug from xml type xml resource ID #0x7f040000" Feb 17 14:17:27 Exception occurred: java.lang.RuntimeException (uncaught)"thread=<1> main", android.app.ActivityThread.performLaunchActivity(), line=1,647 bci=651 Feb 17 14:18:02 @soulseekah are you maybe referring to the system resources instead of application? Feb 17 14:18:58 Not sure, the exception is thrown deep inside somewhere, so I have to trace, but 0x7f04000 is R.string.app_name Feb 17 14:19:36 that could be... where do you make the call to it? Feb 17 14:19:42 try a full clean Feb 17 14:20:29 mrenouf, did clean 100 times while testing Feb 17 14:20:46 farmer-duck, call to R.string.app_name? trying to find out Feb 17 14:20:58 kk Feb 17 14:21:30 it doesn't appear to even enter my Activity Feb 17 14:21:42 soulseekah: yeah, try running baksmali. Feb 17 14:22:03 see what the compiled output actually looks like Feb 17 14:22:15 you can use aapt dump to look at what the resources are actually supposed to be Feb 17 14:22:26 it's possible that your dev environment itself is messed up Feb 17 14:22:55 http://pastebin.com/raw.php?i=aeCjevV1 Feb 17 14:23:24 so any idea guys? Feb 17 14:23:33 o_O Feb 17 14:23:38 pastebin your code and your layout, please. Feb 17 14:23:47 well Feb 17 14:24:02 you said that you just created a brand new android project using the default autocreated content and tried running it? Feb 17 14:24:09 if so, your development environment itself might be messed up. Feb 17 14:24:23 no lov, this is from the original problem Feb 17 14:24:30 default projects run fine Feb 17 14:25:34 ah. hmm. Feb 17 14:25:37 interesting. Feb 17 14:25:44 anyone got experience using emulators for opengles? Feb 17 14:26:11 they are so damned slow and useless Feb 17 14:26:31 mesger: that's because everything is being handled in software. Feb 17 14:26:43 one of the goals for the SDK team is to have them actually run using your computer's graphics card. Feb 17 14:27:00 no alternatives except for buying a device? Feb 17 14:27:21 basically. Feb 17 14:27:26 for ES2, definitely Feb 17 14:27:37 (as the emulator doesn't do GLES2) Feb 17 14:27:41 workarounds are to use QVGA emulators to minimize the amount of rendering you need to do Feb 17 14:27:45 its 1 Feb 17 14:27:46 yeah, that too. Feb 17 14:28:06 soulseekah: run apt dump resources on your APK, see if that id even shows up. Then look at the R.java file for the projec,t double check the values. Feb 17 14:28:14 actually, emulator is getting GLES2, it's just... wonky Feb 17 14:28:20 latest one, that is Feb 17 14:28:28 lov, values are surely there, will check apt dump Feb 17 14:28:54 still booting for the lov of god ... Feb 17 14:28:59 :D Feb 17 14:29:12 i think its stuck Feb 17 14:29:43 mesger, loads slow the first time, use shots Feb 17 14:30:26 soulseekah, it's just to crappy to actually use I'm afraid Feb 17 14:30:44 mesger: bear in mind that you don't have to kill the emu every time you run the app./ Feb 17 14:30:53 the emu will also start up slowly the very first time you run the AVD Feb 17 14:30:59 (it has to go through and do odexing Feb 17 14:31:00 ) Feb 17 14:31:22 lov, I know but it's wonky everywhere even when booted Feb 17 14:31:53 I just want my graphical guy to have a method to test Feb 17 14:32:06 guess he'll have to buy a dvice Feb 17 14:32:50 or you could use/write a dual-mode lib (like libgdx) Feb 17 14:33:08 so that you can test the graphics as a desktop app Feb 17 14:33:58 I'm using gles everywhere, does this mean i have to port it to opengl? Feb 17 14:34:28 er Feb 17 14:34:51 libgdx is a compatability layer as well, which is pretty neat, so you wouldn't need to do that (or shouldn't need to do that) Feb 17 14:34:59 that said, you really SHOULD have a device to test with if you're doing anything with graphics Feb 17 14:35:06 the emu is just going to be too slow Feb 17 14:35:25 I have a device, it's just my poor graphical designer doesn't :D Feb 17 14:35:25 for android you should have a real device anyway. :P Feb 17 14:35:29 lov, spec resource 0x7f040000 com.phonegap.abug:string/app_name: flags=0x00000000 it's certainly there Feb 17 14:35:32 Hello, I am trying to detect gestures in my game, which uses a SurfaceView. What I did was to implement OnGesturePerformedListener, is this correct? Feb 17 14:35:45 ... hmm. Feb 17 14:35:54 soulseekah: pastebin your strings.xml file and your androidmanifest please Feb 17 14:36:03 franzks: probably. Feb 17 14:37:02 But I am following http://www.vogella.de/articles/AndroidGestures/article.html and the interface is implemented by an Activity. Feb 17 14:37:59 franzks: as long as your surfaceview can handle touch events, you can pass them into your gesture listener. Feb 17 14:38:32 lov: Ok, I'm just trying to avoid bad practices. I'll test it out Feb 17 14:38:47 franzks: are you trying to use the gestureoverlayview, or do you just want to handle gestures? Feb 17 14:39:19 lov, http://pastebin.com/raw.php?i=Fp3m0qV8, Manifest, strings, R.java and aapt dump Feb 17 14:39:22 lov: Well I made some gestures using gesture builder and all I want is to detect them in my SurfaceView Feb 17 14:40:12 franzks: http://developer.android.com/reference/android/view/GestureDetector.html Feb 17 14:40:29 have your surfaceview's onTouchEvent call your GestureDetector's onTouchEvent. Feb 17 14:41:26 soulseekah: this all looks correct. Sorry, I don't know what to suggest. Feb 17 14:41:36 lov: Thanks!!! I was having a hard time forcing gesture detection in SurfaceView. That's actually a very nice idea. I'll try it out, thanks! Feb 17 14:42:11 lov, looks like it's gonna be a night of tracing :D thanks for your time, buddy Feb 17 14:42:47 franzks: look through http://developer.android.com/reference/android/gesture/package-summary.html . GestureDetector is only going to find those simple gestures in the callback. If you want custom gestures, look at some of the stuff here. Feb 17 14:43:22 lov: Ok, thanks! Feb 17 14:44:19 wtf ever happened to frinkz Feb 17 14:44:28 he took his fucking drop blocks game off the market Feb 17 14:46:28 does anyone know how to load 9-patch images from the assets folder ? I haven't been able to find a solution. It seems the 9-patch needs to be previously compiled... Feb 17 14:46:33 he probably went to school or something Feb 17 14:46:38 xroberx: use the draw9patch tool Feb 17 14:46:46 xroberx: is the image actually a 9patch? Feb 17 14:47:05 did you name it .9.png Feb 17 14:47:06 lov: I need compiled 9-patch files Feb 17 14:47:06 also, why are you loading from /assets? Feb 17 14:47:16 oh god Feb 17 14:47:17 xroberx: when you say "compiled" what do you mean Feb 17 14:47:23 dont put a 9 patch in assetss Feb 17 14:47:24 9patches are just pngs drawn in a special way Feb 17 14:47:33 also, yeah, don't put it in /assets Feb 17 14:47:33 lov: i think they are compiled with metadata and shit Feb 17 14:47:37 when they are put in drawable dir Feb 17 14:47:38 put it in /res/drawable-mdpi or whatever Feb 17 14:47:42 mikedg: uh Feb 17 14:47:45 mikedg: are you sure? Feb 17 14:47:51 im pretty sure Feb 17 14:48:00 go bust open an apk Feb 17 14:48:02 mikedg: I'm pretty sure that a 9patch is just a regular png with a special outline drawn and filename. Feb 17 14:48:03 9-patches are drawable pngs with fancy markings in them Feb 17 14:48:12 aapt "compiles" or something Feb 17 14:48:14 hmm, maybe you're right Feb 17 14:48:16 but yeah Feb 17 14:48:28 i cant find documentation Feb 17 14:48:33 and im not sure i actually every checked Feb 17 14:48:36 xroberx: try putting them in /res/drawable, not /asset. use them as regular drawables. Feb 17 14:48:36 but im fairly sure Feb 17 14:48:38 actually, the aapt tool compiles .9.png files when you build your project Feb 17 14:48:56 ok then Feb 17 14:49:07 the result is a .png file with an added chunk Feb 17 14:49:07 so seriously, why are you putting them into /assets and not /res/drawable-.... somewhere? Feb 17 14:49:48 http://developer.android.com/guide/topics/resources/drawable-resource.html#NinePatch Feb 17 14:49:52 lov: that's not the point, imagine I would like to load them from the network... Feb 17 14:49:59 My phone connected in USB debugging mode gets detected, but it's details (serial number, etc) do not get detected. And the 'OK' button in the 'Select the device' wizard is disabled. It used to get detected till about 2 days ago but I don't know what suddenly has happened. Also, my honeycomb tablet gets completely detected. Please help. Feb 17 14:50:17 having to load 9-patches from the resource folder is pretty limited in my opinion Feb 17 14:51:31 why? it's a drawable resource .P Feb 17 14:52:02 xroberx: ok, figure out how aapt is doing it. aapt documents itself. Feb 17 14:52:27 ContraMundum: windows or lunix? Feb 17 14:52:44 lov: Linux (Kubuntu 11.10) Feb 17 14:53:02 ContraMundum: lsusb when the device is plugged in,. Feb 17 14:53:07 make sure that it's actually being seen Feb 17 14:53:13 then adb devices, see what shows up Feb 17 14:53:27 if its ???????????????????? then try sudo adb kill-server; sudo adb devices Feb 17 14:53:28 did you disable usb debugging? :P Feb 17 14:53:37 and yeah, if you disabled usb debugging for some reason that could do it Feb 17 14:54:09 lov: lsusb gives me this : Feb 17 14:54:12 Bus 002 Device 009: ID 18d1:4e22 Google Inc. Nexus S (debug) Feb 17 14:54:12 Bus 002 Device 008: ID 0b05:4e1f ASUSTek Computer, Inc. Feb 17 14:54:25 so its detecting both my devices Feb 17 14:55:36 what does adb devices show Feb 17 14:55:51 lov: adb devices result : Feb 17 14:55:52 33c20844160a0d7 device Feb 17 14:55:52 ???????????? no permissions Feb 17 14:56:22 usb debugging is enabled on my nexus s Feb 17 14:56:36 You have set up the udev rules to properly set up the permissions? Feb 17 14:57:24 ls -al /dev/bus/usb/002/009 Feb 17 14:58:03 ndim: crw-rw-r-- 1 root root 189, 136 2012-02-17 20:21 /dev/bus/usb/002/009 Feb 17 14:58:55 lov, just so you know, it was a phonegap library mismatch thing, application did launch successfully once I updated the library Feb 17 14:59:03 It used to run/detect fine before. The only thing I did was change/re-install my linux distro Feb 17 14:59:34 lov, so thanks a lot again +5 Feb 17 14:59:49 soulseekah: you're welcome Feb 17 14:59:54 .... Feb 17 15:00:03 ContraMundum: you need to set up your udev rules. Feb 17 15:00:26 ContraMundum: for now, do this: sudo adb kill-server; sudo adb devices Feb 17 15:00:42 "The only thing I did was reinstall my distro" Feb 17 15:00:44 cmon man. Feb 17 15:00:53 it's only a tiny fucking detail. Feb 17 15:00:56 just your OS. Feb 17 15:01:59 alright alright. I know I'm a dumb newbie Feb 17 15:02:03 All-Night Basketball in the Hood Feb 17 15:02:29 lov: sudo adb devices worked. thanks a lot Feb 17 15:05:40 http://developer.android.com/guide/developing/device.html contains less explicit udev rule info than http://source.android.com/source/initializing.html does. Feb 17 15:07:03 hii Feb 17 15:07:31 what do u guys use for consuming WebServices? REST... Feb 17 15:07:46 guys....please read what i typed previously and see if u guys can help please Feb 17 15:07:46 guys....please read what i typed previously and see if u guys can help please Feb 17 15:08:34 ReGiStRaS: that's not really a dev question Feb 17 15:08:36 try #android-root Feb 17 15:08:39 or #android Feb 17 15:08:54 also, try using a nick that doesn't make you look like a 14 year old Feb 17 15:09:57 ReGiStRaS: pics? Feb 17 15:09:59 lols! Feb 17 15:13:40 what do u guys use for consuming WebServices? REST... :D Feb 17 15:14:09 ive read about RestLess..lib.. not so much info about it.. Feb 17 15:21:47 oki i give up on the fancy libs.. Feb 17 15:24:48 is there a way to set datasource based on the id of a text view? Feb 17 15:42:43 is there some way to autogenerate classes from a rest ws? Feb 17 15:42:58 so i can use them in android.. Feb 17 15:44:08 bestKoderEver: http://axis.apache.org/axis2/java/core/tools/eclipse/wsdl2java-plugin.html Feb 17 15:45:18 but I just found that googling Feb 17 15:45:39 worstGooglerEver :-) Feb 17 15:45:53 my app crashes just by adding one line : ListView lv = (ListView)findViewById(R.id.listView1); Feb 17 15:45:53 it works fine without it. Anybody have any idea why? Feb 17 15:46:15 ContraMundum: what does the stack trace say? Feb 17 15:46:23 lov, you there buddy? Feb 17 15:46:41 fpillet: I'm an absolute newbie. how do I view the stack trace? Feb 17 15:46:56 Run with debugger, seems to be the best for you Feb 17 15:48:24 fpillet: it says "Source not found" Feb 17 15:48:43 But what does the exeption say in the console? Feb 17 15:48:46 looked at logcat? Feb 17 15:50:56 lov, just wanted to let you know that you were right, R in dalvik bytecode is inlined [const/high16 v14, 0x7f02] before getting used, so apparently no way to eval ones way to R Feb 17 15:54:23 soulseekah: all static final primitives (+Strings) are inlined during compilation Feb 17 15:55:37 where can I learn how to debug? (newbie) Feb 17 15:56:30 evancharlton, that's what I found out now, pity you weren't around earlier, I had a question of how would one go about doing an eval on R while debugging Feb 17 15:56:57 soulseekah: sorry :) Feb 17 15:57:20 evancharlton, question remains open, how would one get to R in a debug session? Feb 17 15:57:25 :) Feb 17 15:57:30 what do you mean? Feb 17 15:57:56 I mean "eval R.string.app_name" for example, which doesn't work obviously, since they're inlined Feb 17 15:59:45 evancharlton, If I instantiate new R() in my code, I get a local instance, but I have to go further and instantiate all its classes to get to the values Feb 17 16:00:02 so defeats the purpose, easer to Log() Feb 17 16:01:21 <_pusher_> trying to md5 a string with a byte in it.. i get wrong md5 sum :( Feb 17 16:01:35 evancharlton, looked into getResources() etc. but never got as far as getting the actual values during runtime Feb 17 16:01:46 <_pusher_> newstr="_pusher_"+b.byteValue(); but get wrong md5sum Feb 17 16:02:00 _pusher_, check encoding Feb 17 16:02:23 soulseekah: they're not going to change; just look at R.java Feb 17 16:02:26 _pusher_, if it's a humanly-recognizable string Feb 17 16:03:21 evancharlton, apparently not, but had the strangest exception in the world where an ActivityLaunch couldn't get an R value during runtime Feb 17 16:03:35 <_pusher_> soulseekah its not its 0D byte Feb 17 16:04:02 _pusher_, how do you check the expected sum? Feb 17 16:04:06 <_pusher_> trying to combine 01 02 03 with a string Feb 17 16:04:18 soulseekah: sounds like you had a value defined specific to a configuration Feb 17 16:04:22 <_pusher_> with my delphi coded app :) Feb 17 16:04:48 evancharlton, http://pastebin.com/raw.php?i=aeCjevV1 this is the debug session Feb 17 16:04:54 <_pusher_> 80A922D9278F09707B34954CA1E5C6A0 = _pusher_ 0x0D Feb 17 16:05:08 evancharlton, http://pastebin.com/raw.php?i=Fp3m0qV8, Manifest, strings, R.java and aapt dump Feb 17 16:05:10 soulseekah: and what/where is abug Feb 17 16:05:26 that second pastebin 404s Feb 17 16:05:38 already? guess an hour passed Feb 17 16:06:01 Hi. I have created an app that has it's ahredUserId set to system in the manifest file. if place the file manualy in /system/app on the phone, it works fine. But adb install return INSTALL_FAILED_INVALID_INSTALL_LOCATION. So what 'im wandering is: Is it posible to make adb to install system aps? Feb 17 16:06:28 maybe telling it where to place the apk or something Feb 17 16:08:03 evancharlton, abug is the package and the main activity; coming up with the dumps Feb 17 16:08:49 As4xk: no Feb 17 16:09:59 evancharlton, http://pastebin.com/raw.php?i=3bQfnQ4U R.java, aapt dump, strings, Manifest Feb 17 16:10:49 soulseekah: ^ that makes no sense Feb 17 16:10:58 why not? Feb 17 16:11:12 you want nope Feb 17 16:11:33 oh? Feb 17 16:11:36 android:label= Feb 17 16:11:44 android:name is the main class Feb 17 16:11:47 oh right, derp Feb 17 16:11:49 sorry Feb 17 16:11:51 np Feb 17 16:11:54 you want ... Feb 17 16:11:56 * evancharlton alt-tabs Feb 17 16:12:15 .WhateverYourMainActivityClassIsCalled Feb 17 16:12:22 .abug Feb 17 16:12:25 uh Feb 17 16:12:27 it's all correct, it compiles Feb 17 16:12:36 your activity is com.phonegap.abug.abug.java? Feb 17 16:12:41 yep Feb 17 16:12:48 wut Feb 17 16:13:19 evancharlton, this code compiles and works ultimately Feb 17 16:13:37 can you pastebin me an ls -lR of your src folder? Feb 17 16:13:44 sure Feb 17 16:14:20 evancharlton: Ok. Do you know how to start the apk file from my computer after i have pushed it to the system/app dir? (i.e. not by taping the apk file in OI File Manager) Feb 17 16:14:33 evancharlton, http://pastebin.com/raw.php?i=Z1WxDVCt Feb 17 16:15:09 As4xk, adb -d shell "am start -a android.intent.action.MAIN -n com.package.main.Activity" Feb 17 16:15:09 soulseekah: ha, that's bizarre Feb 17 16:15:19 soulseekah: let me make a test case locally Feb 17 16:15:21 evancharlton, what's wrong? :D Feb 17 16:15:26 I'll file a bug if I can reproduce it Feb 17 16:15:39 soulseekah: Great. Thanks :D Feb 17 16:15:40 soulseekah: try doing android:name="com.phonegap.abug.abug" Feb 17 16:17:10 soulseekah: I just made a test case and I'm no longer able to reproduce it Feb 17 16:17:16 s/no longer/not/ Feb 17 16:17:26 clean built, compiled and launched, what's the problem, that appears to be fine, name has to either be full path to class or relative to package Feb 17 16:18:57 well yeah Feb 17 16:19:33 soulseekah: so what was the bug? from your previous-posted stack trace, something was trying to load the resource @xml/plugin -- who was that? Feb 17 16:19:43 <_pusher_> finally .. changed the byte to a char Feb 17 16:19:46 <_pusher_> and it worked ;x Feb 17 16:20:33 soulseekah, I didn't find out, I solved the problem by replacing the phonegap library, and error went away, so I've no idea why it happened and it's still tormenting me Feb 17 16:20:34 soulseekah: no problem Feb 17 16:20:38 hi guys Feb 17 16:20:46 s/soulseekah/evancharlton, Feb 17 16:21:00 ContraMundum: http://developer.android.com/guide/developing/debugging/index.html Feb 17 16:21:24 ContraMundum: look at the Eclipse subtab on the left if you use eclipse, etc. Feb 17 16:21:27 soulseekah: it seems like maybe the resources didn't get rebuilt. Sometimes eclipse (no idea if you use it or not) won't notice that it should rebuild resources and they get out of sync Feb 17 16:21:29 ContraMundum: otherwise, look for "eclipse debugging" tutorials Feb 17 16:21:31 I've had that happen before Feb 17 16:21:36 evancharlton, I don't use eclipse Feb 17 16:21:40 is this the official Android IRC channel? Feb 17 16:21:46 evancharlton: that shit is maddening with the SDK r14 changes Feb 17 16:21:56 KelvinYap: for certain definitions of official yes Feb 17 16:22:05 ahh ok haha Feb 17 16:22:07 evancharlton, + I removed R manually etc, it was def. rebuilt, and aapt contained the resources Feb 17 16:22:19 KelvinYap: technically yes but I don't think d.android.com mentions it anymore Feb 17 16:22:36 anyway, i was hoping to get some opinions on a new android phone i may be getting in july Feb 17 16:22:39 im in Australia, btw Feb 17 16:22:53 would it be a good idea to wait for MWC? Feb 17 16:23:14 or just look at something now (SGS2 looks great) and get it by then? Feb 17 16:23:15 evancharlton, aapt dump i.e., you will see a mismatch in numbers because I had rebuild and they shifted, the first paste - they all matched, the error 0x7... matched exactly the 0x7 of the aapt dump Feb 17 16:23:47 evancharlton, it's a complete mystery; but what else is now bugging me is the fact that you saw something wrong with my structure :D Feb 17 16:23:49 actually, i think im asking in the wrong area, is there a channel like this but more focused on the devices itself? Feb 17 16:23:54 KelvinYap: this is the official Android *development* IRC channel Feb 17 16:23:59 KelvinYap, #android Feb 17 16:23:59 KelvinYap: I think you want #android Feb 17 16:24:04 thanks guy :) Feb 17 16:24:10 guys* haha Feb 17 16:24:13 have a good night all! Feb 17 16:24:19 soulseekah: uh, well, don't name your class "abug" Feb 17 16:24:22 soulseekah: :) Feb 17 16:24:34 You mean literally the name "abug" Feb 17 16:24:37 is it reserved? Feb 17 16:24:49 soulseekah: no, but it goes against Java conventions Feb 17 16:25:04 ABugActivity would be better you mean? Feb 17 16:25:11 soulseekah: yeah Feb 17 16:25:48 evancharlton, I try to always do that, but this time source wasn't mine, but I'll be working on it so will definitely change it, thanks for the heads up Feb 17 16:26:51 evancharlton, thanks for your time and insight Feb 17 16:30:22 oh wow, they totally sped up the android 4.0 emulator somehow Feb 17 16:30:27 well, i mean, at least compared to honeycomb Feb 17 16:30:32 when did that happen? Feb 17 16:30:42 has anyone noticed the USB idProduct changes when connecting to android devices in linux? Feb 17 16:31:03 walden: no Feb 17 16:31:25 it usually means i have to go into 51-android.rules and enter the new values from lsusb again Feb 17 16:31:28 walden: can't say I have. Feb 17 16:31:44 walden: consider using adb_usb.ini in some cases Feb 17 16:31:46 odd, this has happened to me twice so far with different phones from different carriers Feb 17 16:32:27 lov: thanks, i check it out Feb 17 16:33:01 it's not that this makes it impossible to connect, but i can't understand why idProduct changes on me Feb 17 16:33:04 walden: I thought android.rules had the idVendor value, but I'm probably wrong Feb 17 16:34:16 you can supply just iVendor Feb 17 16:34:29 or both Feb 17 16:35:59 synic: i've noticed that sometimes i need to use sudo adb start-server if i only provide idVendor Feb 17 16:36:13 while adb works without sudo if i add idProduct Feb 17 16:36:23 it's an odd quirk Feb 17 16:37:05 well, you still need to pass MODE Feb 17 16:37:18 hello, Trying to get a simple http going and can't seem to break out of this error caused by android.os.NetworkOnMainThreadException.. i added the INTERNET permissions... need some help... code --> http://pastebin.com/DRHvkTpd 1st line in the try is giving the error I believe... Feb 17 16:37:45 roger_padactor: your problem is exactly what the exception says Feb 17 16:37:56 you are trying do network operations on the main thread Feb 17 16:39:13 roger_padactor: what synic said, with the addition of, you're not supposed to do anything on your ui thread that can cause delays. Network IO is definitely something that can cause delays. Delays on the UI thread lead to "app not responding" Feb 17 16:39:35 finally found a situation where firefox beats chrome - chrome can't apply plugins to file:// uris, so it doesn't do pretty formatting of json/xml Feb 17 16:40:11 I was just following a tutorial.... So I should use AsyncTask .. thanks Feb 17 16:40:30 roger_padactor: yeah asynctask is an excellent choice, since presumably you want the network io to supply data to something in the UI Feb 17 16:41:02 roger_padactor: In older android versions you were allowed to do it, it was just bad. Now they raise exceptions to try to force app authors to do the right thing. I suspect it's a move to make the platform appear more mature - eliminate ways apps can look broken. Feb 17 16:41:12 dragorn: actually there is no interaction with the UI, is there something else to use other then async task? its the only one I know of. Feb 17 16:41:41 roger_padactor: pretty much anything that runs it in another thread. If it's a single run-and-done w/ no interaction to the UI you can just make it a java Thread object Feb 17 16:42:08 roger_padactor: asynctask wraps threads w/ a begin and end clause for you, since nothing but the UI thread can touch the UI. Most times, that's what you want, since you're outputting to the UI somehow Feb 17 16:42:43 its going to check to see if there is some content update and if so creates a notification... Feb 17 16:42:49 roger_padactor: there's also android-centric stuff like looper which is meant for long-running threads communicating with the main thread through message bundles. Feb 17 16:43:09 roger_padactor: while I'm not 100% sure, I think making a notification is considered UI work. You want an asynctask. Feb 17 16:43:26 dragorn: thanks for all the information... Feb 17 16:43:59 roger_padactor: and create your notification in the postExecute section Feb 17 16:44:28 roger_padactor: I tend to do a lot of heavy back-end stuff with minimal UIs so I'm not 100% positive you can't make a notification in a thread... but to be safe, do it with asynctask. Feb 17 16:44:31 I used a FrameLayout and added both a SurfaceView and a GestureOverlayView, the app can detect gestures but the SurfaceHolder's onTouchEvent never gets called anymore. Is this impossible to fix? Feb 17 16:45:46 roger_padactor: just use a fucking async task jeez Feb 17 16:45:58 lov: he wasn't really arguing :P Feb 17 16:46:29 GAWD Feb 17 16:50:23 *flips desk and storms out. Feb 17 16:51:23 * lov drops the mic and leaves the channel Feb 17 16:53:55 hey, I need to sync the sdk emulator with my google account to test sth Feb 17 16:54:04 I can add the account under settings/account and sync Feb 17 16:54:16 but the "data and synchronization" part is empty Feb 17 16:54:23 there's no "sync contacts" to check Feb 17 16:54:24 help? Feb 17 16:55:43 mots, have you installed Google API? Feb 17 16:56:09 soulseekah, yeah Feb 17 16:56:23 as I said, I can add the account, but there are no sync options available Feb 17 16:56:35 weird that I have to manually set the bounds on a drawable extracted from an imageView based on an image resource, and all of the imageView.getRight() etc. methods return 0 ... Feb 17 16:56:49 http://i.imgur.com/tOWJ9.png Feb 17 16:57:08 synic: MODE? Feb 17 16:58:32 SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" Feb 17 17:04:14 hm. Feb 17 17:04:46 Is it possible to read/write shared preferences from a place that isn't an activity? Feb 17 17:06:05 yes, of course Feb 17 17:06:23 UnbertKant: Remember, Services, Content providers, etc are Contexts Feb 17 17:06:33 BroadcastReceivers get a Context reference to operate on Feb 17 17:13:16 Okay, so handling shared preferences in a separate class might not be best practice? Feb 17 17:13:55 Well, this preference manager only gets called from one particular service, so I guess I just hand the service over in the constructor?/ Feb 17 17:16:16 is it against guidelines to add some UI component to the status bar? Feb 17 17:16:32 for example, in my mapping app.. i have a small blue/red dot based on whether my app knows the user's location Feb 17 17:17:07 i want to put that into the status bar when app is running then remove it when they leave... its not really fitting well into my app UI and I dont want to distract the user so I was thinking to put it into the status bar next to the time or something Feb 17 17:17:54 you can put it on the left with other application status stuff, yes. Probably be nice to give the user an opportunity to turn it off, however. Feb 17 17:18:09 http://pastie.org/private/psy2nnys8i0ajz4i8qfw Feb 17 17:18:13 dragorn: ok Feb 17 17:18:21 if anyone cares to help with my media player issue Feb 17 17:18:34 t0mless: helped out much last night, but I can't get it to work Feb 17 17:18:39 so im back to square one Feb 17 17:19:07 im trying to play sounds using media player, but can't figure out how to have a single media player and give uri based on id clicked Feb 17 17:19:18 dragorn: so I can set preferences for that to allow user to enable/disable it... then I can create it onCreate/onResume and remove it in onDestroy Feb 17 17:25:57 also, with the current code, can I make a dialog pop up whenthey select what they want to play and give mp.stop() through there? Feb 17 17:44:07 HP CEO Says Google-Motorola Deal Could Close-Source Android Feb 17 17:44:08 lol Feb 17 17:45:05 canadiancow|work: he means propietary code Feb 17 17:46:04 canadiancow|work: "could" in a headline is the biggest cop-out ever Feb 17 17:46:06 so he says closed source code will remain closed source? Feb 17 17:46:36 "our competitor could fuck you all, so come use our software" - that's what i read Feb 17 17:46:37 I should start sending tips to the NYT that the earth *could* fall out of the sky Feb 17 17:46:40 note: it won't Feb 17 17:46:42 but it could Feb 17 17:46:53 wait Feb 17 17:46:57 how would the earth fall out of the sky Feb 17 17:47:09 this ^ Feb 17 17:47:29 not as in "no way that would happen" but as in "this isn't lexically possible" Feb 17 17:47:41 do you mean that the earth COULD break out of its orbit? Feb 17 17:47:43 lov: ... *physically*, but not lexically Feb 17 17:47:57 one word: "Laputa" ;) Feb 17 17:48:02 lov: rapture Feb 17 17:48:11 lov: god can make anything happen, heretic Feb 17 17:48:18 cats and dogs living together Feb 17 17:48:19 w/e Feb 17 17:48:21 I'm having lunch Feb 17 17:48:23 it's happening Feb 17 17:48:27 no could's or maybes. Feb 17 17:48:33 cats and dogs living together is old news Feb 17 17:48:40 lov: you could barf it up at any second Feb 17 17:48:40 or coulds. Feb 17 17:48:47 you'd better go eat at $competitor's Feb 17 17:48:51 evancharlton: it "Could" be delicious. Feb 17 17:48:55 it's unlikely but it COULD happen Feb 17 17:48:57 lov: but it's not? Feb 17 17:48:58 hah Feb 17 17:49:04 * lov grumbles about our vendor Feb 17 17:49:05 also, last time I checked, physics allowed for some pretty random shit Feb 17 17:49:23 the ultimate "magic" is to play with probabilities involved ;) Feb 17 18:00:07 back Feb 17 18:02:34 any leads? Feb 17 18:03:14 wow, it's amazing how much better ICS and the included apps are Feb 17 18:05:39 what's the weakest phone, ics can run on? Feb 17 18:06:32 it runs on the nexus 1 via roms Feb 17 18:07:18 UnbertKant: Droid 1? Feb 17 18:07:59 technically it runs on my spica as well, but the 3D drivers are unfinished and there's no support for camera and such Feb 17 18:08:50 hi guys, i'm start now playing with fragments and action bar sherlock 4. I want to create an activity with tab navigation. I wrote this code (some like that) http://pastebin.com/pi6TuTrT and it works but i don't like to replace fragments because every time the fragments are recreated. any advice on how to refactor it? Feb 17 18:10:27 I threw the same issue on stack overflow if anyone wants to help there: http://stackoverflow.com/questions/9331178/trying-to-play-only-one-audio-file-at-a-time-using-mediaplayer-and-if-else Feb 17 18:10:39 but the ifelse doesn't work Feb 17 18:15:51 would it be tacky to say only select one file at a time in my app? Feb 17 18:17:03 it might be annoying if they need to select a lot of files Feb 17 18:18:01 i have 7 song titles Feb 17 18:18:08 dunivan: not really sure exactly what your asking, and the code is crazy confusing Feb 17 18:18:08 each one when clicked will play a 30s clip Feb 17 18:18:19 dunivan: but the mp will never be playing immediately after you create it Feb 17 18:18:30 so that ifelse will never work Feb 17 18:18:47 so it won't detect an already playing mp? Feb 17 18:18:53 no Feb 17 18:18:59 ahhh Feb 17 18:19:07 so that explains why the if doesnt work Feb 17 18:19:39 do you have an idea how to then use only one mp, but pass the R.raw.clip_name based on which song is clicked? Feb 17 18:20:27 dunivan: move the mp to a member of your AlbumPreview Feb 17 18:20:33 construct it with MediaPlayer() Feb 17 18:20:59 and use the answer in your stackoverflow to set the sample being played Feb 17 18:22:17 so move MediaPlayer mp = MediaPlayer.create(AlbumPreview.this, Feb 17 18:22:17 R.raw.primordial_clip); to the oncreate? Feb 17 18:22:38 no Feb 17 18:26:56 hi Feb 17 18:27:58 ok I am confused Feb 17 18:29:58 theres nothing to add mp to, one is a textview onclick listener Feb 17 18:31:44 but I think i get the setdatasource, that will be the action of each onclicklistener right? Feb 17 18:31:51 so it sets the datasource based on what's clicked Feb 17 18:32:58 right? Feb 17 18:36:04 I'm getting the following errors on manifest file: http://pastebin.com/ATqgTMKA any idea? Feb 17 18:37:09 what build target are you using? Feb 17 18:37:25 that looks like you're building against something that doesnt have "smallestScreenSize" or whatever Feb 17 18:38:03 api level 8, froyo Feb 17 18:38:07 >_< Feb 17 18:38:16 dkz: set your build TARGET to the highest thing available. Feb 17 18:38:18 soooo.... Feb 17 18:38:26 set the minSdk to the lowest level you plan to support Feb 17 18:38:32 or make targetSdkVersion == build target Feb 17 18:38:35 your targetSdkVersion is 14 Feb 17 18:38:36 set the targetSdk to the highest level you plan to test Feb 17 18:38:43 Feb 17 18:38:53 .... Feb 17 18:38:57 dkz: reread what we both said. Feb 17 18:39:04 download the damn ICS apis and use them as the target. Feb 17 18:39:51 the only reason your build target should be < the highest you have is if you have some sort of strange legacy build concern. Feb 17 18:42:26 ok synic http://pastie.org/private/7siytifgray4k3ujctncag Feb 17 18:43:04 lov: I'm getting the same error targetting ICS Feb 17 18:43:30 should mp.setDataSource() replace the R.raw on line 18? Feb 17 18:43:41 or should I make it a try statement? Feb 17 18:43:46 dunivan: what is up with your formatting? Feb 17 18:44:23 dunno? Feb 17 18:44:35 should it be "cleaner" Feb 17 18:44:37 hackkitten doesnt shut up on google plus Feb 17 18:44:52 mikedg: haha Feb 17 18:44:58 mikedg: makes my stream lively Feb 17 18:45:00 dunivan: there is no consistency whatsoever, makes it hard to read your code Feb 17 18:45:01 i added her yesterday and he has to have had more posts than my entire 1000 people Feb 17 18:45:13 mikedg: you can control how much you see from certain circles Feb 17 18:45:21 set her into the "spammy internet randos" group and set the slider to near-zero Feb 17 18:45:29 got too much shit from pages that I end up muting but need to keep them in, hackkitten is nice so far ;) Feb 17 18:45:46 Is the only way to get the contents of from a content Uri to use managedQuery? I'd like to use a GROUP BY statement Feb 17 18:45:51 dkz: remove the lines, try rebuilding, verify that you can build. Add that tag in, start adding elements. Feb 17 18:45:53 lov: cant you just increase your relevant posts? Feb 17 18:46:07 mikedg: by which you mean "cat pictures" or what Feb 17 18:46:14 because yes I can post cat pictures Feb 17 18:46:14 cat pictures! Feb 17 18:46:18 please tag me in them Feb 17 18:46:21 haha Feb 17 18:46:24 as the cat Feb 17 18:46:24 i'll try to clean it up synic Feb 17 18:46:51 Hey guys, should I refrain from using a dashboard to navigate content? Feb 17 18:47:02 why? Feb 17 18:47:26 Doesn't the guidelines agree not to? Wouldn't tabs with sliding pages be more efficient? Feb 17 18:48:02 * hackkitten stares at mikedg Feb 17 18:48:12 lov: that's the problem, this manifest file isn't generated by me (and I can't modify manually). Since it's generated by a new program version I assume it's a bug, but I don't found what is causing this error if I target ICS Feb 17 18:48:43 synic: http://pastie.org/private/7siytifgray4k3ujctncag Feb 17 18:48:46 better? Feb 17 18:48:53 * hackkitten waves at mikedg ^-^/ Feb 17 18:49:08 dkz: contact unity then. Feb 17 18:49:23 hi Feb 17 18:49:51 glad you enjoy the posts, mikedg :D Feb 17 18:50:01 dunivan: nope! Been programming long? Feb 17 18:50:08 no Feb 17 18:50:11 not at all Feb 17 18:50:13 3 weeks Feb 17 18:50:32 that explains some things Feb 17 18:50:57 dunivan: for $1000 I will mentor you psychically for 1 week Feb 17 18:51:07 don't have a grand mikedg Feb 17 18:51:11 im a broke law student Feb 17 18:51:15 I take credit cards Feb 17 18:51:50 dunivan: do you know java? Feb 17 18:51:57 well, I guess I know the answer to that question Feb 17 18:51:58 not really synic Feb 17 18:52:03 i've picked up some basics Feb 17 18:52:07 this is my second app Feb 17 18:52:11 I think it would be way better for you to first learn java, then take on Android Feb 17 18:52:25 Android is like the Bride of Frankenstein Feb 17 18:52:30 and Java is Frankensteins monster Feb 17 18:52:38 since Android is a relatively complicated Java SDK Feb 17 18:52:44 are Javascript is Ham Feb 17 18:53:33 mikedg: Large Ham, with side of CHEESE Feb 17 18:53:51 It ain't easy being cheesey. Feb 17 18:53:53 dunivan: play this game http://impact.mikedg.com/qbe/index.htm Feb 17 18:54:01 it will teach you everything you need to know by the time you beat it Feb 17 18:56:18 can you at least tell me if I am close to being able to do what i want to do? Feb 17 18:58:34 has anyone here made a Calendar Sync Adapter for the new ICS calendar provider? Feb 17 19:00:54 dunivan: sorta :) But, that's IF I'm understanding what you want to do Feb 17 19:02:14 all i want is to have a user click on 1 of 7 song titles, have that song title play a 30s clip, and not have any other songs play over it if they hit another one of the song titles - i want the original to stop, and then the one they clicked to start Feb 17 19:02:41 if I can figure it out with one, i can apply it to the other 6 Feb 17 19:02:52 but i feel like im missing something easy Feb 17 19:02:55 yeah, so you need a reference to the mediaplayer in all your handlers Feb 17 19:03:11 the *same* mediaplayer Feb 17 19:03:25 right, mp Feb 17 19:03:45 because of MediaPlayer mp = MediaPlayer.creat(this,uri) Feb 17 19:05:21 right? Feb 17 19:05:32 I don't understand your question Feb 17 19:05:57 the mp on line 15 is the one mediaplayer Feb 17 19:06:32 uh huh Feb 17 19:07:52 cool, the end of angry birds Feb 17 19:07:53 http://space.angrybirds.com/teaser1/mobile.jsp Feb 17 19:07:57 because everything in space sucks Feb 17 19:08:35 and i set the mp.datalocation on line 28 Feb 17 19:08:57 dunivan: tias Feb 17 19:08:58 so i need a way to tell the mp on line 15 to grab that location on line 28 right? Feb 17 19:09:09 dunivan: try it and see. Feb 17 19:09:19 cant wait for the end of angry birds Feb 17 19:09:46 dunivan: now that you're not creating the mediaplayer in every onClick handler, you can, in your onClick handlers, check to see if it's already playing, and if it's not, assign a new datasource and start it Feb 17 19:10:35 so the if/else can be integrated, and the else would be set data source? Feb 17 19:10:39 then start? Feb 17 19:10:54 sure Feb 17 19:13:27 do I have to set mediaplayer on line 15 to final? Feb 17 19:13:49 prolly Feb 17 19:14:26 if it can be final, it should be Feb 17 19:14:33 if it can't be, you should reevaluate how you're using it Feb 17 19:15:38 it's the only one, so final is fine Feb 17 19:15:41 item #37 that scala does better Feb 17 19:21:46 now to find out what IOE exception i didnt do Feb 17 19:21:48 thanks synic Feb 17 19:21:51 ill be back i bet Feb 17 19:35:27 synic, how do I know what error to catch? Feb 17 19:37:02 Ok, so i'm trying to use ICS's new Content Provider for Calendars, and I want to create a Calendar, which can only be done via a Sync provider, so this is what I have: http://pastebin.com/J6wVxK8Y Feb 17 19:37:23 it seems to return successfully, but the calendar doesnt exist after... Feb 17 19:38:09 Wavesonics: I'm only guessing, but is it possible that it's there, but just not shown? Feb 17 19:38:41 dont think so, 1) I'm creating it as VISIBLE, and 2, i've checked every which way, doesnt exist anywhere Feb 17 19:39:08 I'm fresh out of ideas Feb 17 19:39:17 :/ Feb 17 19:39:35 Google really has not provided a lot of info in this area Feb 17 19:40:01 HA!!! Feb 17 19:40:07 I crashed Calendar!!! Feb 17 19:40:24 nice work Feb 17 19:40:26 it just crashed in the background! Feb 17 19:41:04 whatever dude Feb 17 19:41:12 guess i'm doing... something :P Feb 17 19:41:17 let me know when you crash google wave Feb 17 19:41:23 lol Feb 17 19:42:25 oh Feb 17 19:42:28 hhmm Feb 17 19:42:33 think i found the problem Feb 17 19:44:11 * pfn almost never flags variables as final in java because it's such a pita to type out the full keyword Feb 17 19:44:25 val FTW! Feb 17 19:46:00 pfn, well... maybe you should get a non-sucky editor :P Feb 17 19:46:15 Mavrik, that doesn't fix the problem Feb 17 19:46:39 ok synic http://pastie.org/private/osxca11fpjumxcfkgzmjvq -> got it down to one last error Feb 17 19:46:54 The method setDataSource(String) in the type MediaPlayer is not applicable for the arguments (int) Feb 17 19:46:57 Mavrik, it's just a little cork in a damn waiting to overflow Feb 17 19:47:01 you still have the horrible formatting error Feb 17 19:47:22 right, until I see what good formatting is I'm kind of screwed on that one Feb 17 19:47:41 well, learning java will probably help you out with that Feb 17 19:47:53 thats true Feb 17 19:48:29 but I know i'm close Feb 17 19:52:59 hi guys, i'm start now playing with fragments and action bar sherlock 4. I want to create an activity with tab navigation. I wrote this code (some like that) http://pastebin.com/pi6TuTrT and it works but i don't like to replace fragments because every time the fragments are recreated. any advice on how to refactor it? Feb 17 19:53:09 crap... didn't fix the problem Feb 17 19:54:45 i know the issue is on line 37, but what else goes there Feb 17 19:58:52 dunivan: what is the error Feb 17 19:59:06 The method setDataSource(String) in the type MediaPlayer is not applicable for the arguments (int) Feb 17 19:59:37 yeah... Feb 17 19:59:43 player.setDataSource( getResources().openRawResourceFd(R.raw.clip1).getFileDescriptor()); Feb 17 20:00:05 ahh, then I have to log the IOE exceptions from that right? Feb 17 20:00:19 you don't have to log it Feb 17 20:00:31 Java simply knows it's a possibility, so it wants you to plan for it Feb 17 20:00:40 (annoying) Feb 17 20:01:01 how would I plan for it - to log it? Feb 17 20:01:33 by catching the exception Feb 17 20:01:53 sweet eclipse auto fixed it Feb 17 20:02:42 http://pastie.org/private/2m8urnnljhomhd3qnobw Feb 17 20:02:46 no errors! Feb 17 20:02:49 well, eclipse stubbed out an exception handler. It's definitely not "fixed" and isn't really a solution for android. You need to figure out what your application will do if IO fails. Feb 17 20:03:23 well if IO fails, it just won't play sound? Feb 17 20:03:37 well, that's up for you to figure out Feb 17 20:03:59 good point Feb 17 20:04:20 any good tutorials either of you can recommend to learn java? Feb 17 20:04:25 especially formatting synic Feb 17 20:04:57 http://www.cwu.edu/~gellenbe/javastyle/indentation.html Feb 17 20:05:43 dunivan: out of curiosity, how are you deciding how to indent now? Feb 17 20:06:00 cus there's definitely some sort of indentation in your code, but no real pattern to it Feb 17 20:06:07 (that I can see) Feb 17 20:06:23 tutorials are always a poor way of learning things Feb 17 20:06:28 tutorials lead to cargo cult-ism Feb 17 20:06:31 if the text is purple - it lines up Feb 17 20:06:53 as for how to format, there is a java coding convention Feb 17 20:06:54 indentation by color eh Feb 17 20:06:57 and each different piece starts lined up Feb 17 20:07:09 so an onclick listener will line up with another Feb 17 20:07:11 dunivan, http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html Feb 17 20:11:10 thanks synic and pfn Feb 17 20:11:42 as for learning java the language Feb 17 20:11:54 reading thinking in java, and java concurrency in practice will help you a lot with android development Feb 17 20:13:06 i have to try the code tonight Feb 17 20:13:13 i hope it works! Feb 17 20:29:27 Could someone help check if there is something wrong with my code for sending file from an android app to a python web server? Thanks in advance! Feb 17 20:29:44 The link is here: http://stackoverflow.com/questions/9283695/how-can-i-receive-file-uploaded-from-android-client-on-python-flask-server-side Feb 17 20:30:00 am i missing something, why would an independent developer want to point ads to his free version w/ ads instead of his paid version Feb 17 20:30:27 because ads to free version are free? Feb 17 20:30:44 really? Feb 17 20:30:51 that makes no sense Feb 17 20:30:52 I don't know, grasping at straws Feb 17 20:31:06 o Feb 17 20:31:17 mikedg: Because the free version has a lower barrier to entry. Feb 17 20:31:35 and yeah, conversion is much better if you get users to go to a free version Feb 17 20:31:46 if it goes to a pay version, most people will not get the app Feb 17 20:31:52 i guess if you are paying per impression and not per click it's better Feb 17 20:31:55 shrug Feb 17 20:45:02 Can I use a sync adapter from within an activity? Without creating a seperate service for it? Feb 17 20:46:00 Is there a way for adb to spit out a packages list of permissions? Feb 17 20:47:07 Running into an issue here trying to add a couple of external .jar files. The project occasionally runs, but most of the time it drives Eclipse crazy, and takes several minutes to deploy the app if it doesn't run out of memory/heap space. Anyone have any ideas? Feb 17 20:47:49 be more specific Feb 17 20:48:22 have you tried changing eclipse's .ini file to add more max heap space? Feb 17 20:48:41 heap sauce you mean? Feb 17 20:48:51 Change the -Xmx value to something larger than what it is Feb 17 20:48:57 I'd recommend setting it to 512m as a minimum Feb 17 20:49:02 yes. but Eclipse is clearly doing way more work than it needs to Feb 17 20:49:08 yes. Feb 17 20:49:15 Eclipse is bloated and crappy in many ways. Feb 17 20:49:32 Until such time as eclipse.org figures out how to slim the crap out of it, the only way to deal with this is to increase the max heap size. Feb 17 20:49:51 an IDE is complex business Feb 17 20:49:57 especially as you add in xml crap Feb 17 20:49:57 serious business, no less. Feb 17 20:50:01 it goes from deploying in < 5 seconds to 2+ minutes/failure just by including 2 small-sized .jars. and standalone projects that use these .jar files individually have no trouble Feb 17 20:50:07 well, that's strange. Feb 17 20:50:13 what's "failure" in this case? Feb 17 20:50:18 does the phone not take the apk? Feb 17 20:50:24 does it just give an out of memory exception building? Feb 17 20:50:29 is there an error at the command line? Feb 17 20:50:34 what happens if you do an ant build of your project? Feb 17 20:50:52 best case is it takes 2 minutes and runs. worst case is Eclipse hangs for 2 minutes and then comes back with an out of memory or out of heap message Feb 17 20:51:02 just toss 2gb of heap at eclipse Feb 17 20:51:06 right, so, for now, up the heap space. Feb 17 20:51:09 it's really all you can do. Feb 17 20:51:16 if it's the default, it's set at 256MB Feb 17 20:51:21 which is actually really, really, really low. Feb 17 20:52:16 My current settings are: Feb 17 20:52:16 XX:MaxPermSize=512m Feb 17 20:52:16 -Xms128m Feb 17 20:52:16 -Xmx1536m Feb 17 20:52:25 then again, my android project is pretty monstrous Feb 17 20:52:27 I think we've tried throwing a gig at it with no luck. but in a more general sense, why is it doing so much work? there shouldn't be that much class complexity being added to the project so it seems like it's caught in a loop doing something stupid Feb 17 20:52:31 512mb is a lot for permgen Feb 17 20:52:39 pfn: I'm not fucking around. Feb 17 20:52:47 I'm taking my IDE TO THE MAX. Feb 17 20:53:08 PeteS: Does your project have any android library projects? Feb 17 20:53:13 if so, how many? Feb 17 20:53:22 how many external jars are you referencing? Feb 17 20:53:28 do you have a lot of resources under res? Feb 17 20:53:37 when you compile, run top; see who is doing what. Feb 17 20:53:52 The ADT plugin delegates a lot of work to aapt, etc. Feb 17 20:53:54 jconsole is a pretty great tool to use Feb 17 20:54:11 delegating to tools won't cause OOME Feb 17 20:54:16 Honestly, I can't do anything for you if all you can do is say "well it seems like it should be ok, idk, why does eclipse suck?" Feb 17 20:54:27 the answer is "it just does, try these things" Feb 17 20:55:13 * lov shrugs Feb 17 20:55:41 Could always build your android project with maven. Feb 17 20:55:45 referencing a couple of Apache Commons libraries, a few device-specific libraries. Eclipse maxes out CPU in top. Does it matter exactly where the .jars are stored? I think right now they're just in the project root dir, if that matters Feb 17 20:56:17 and you're referencing them in the app? They should live in /lib Feb 17 20:56:33 the idea is that you can just drop the jars in there and not have to explicitly reference them in your project. Feb 17 20:56:50 just remember that you're building an app for mobile devices which are resource constrainted, so don't go too crazy. Feb 17 20:57:09 ah. is that a folder I have to create, but that it will look for? Feb 17 20:57:45 yeah, we're trying to keep it down but these devices use special radio hardware that pretty much requires us to use these libraries provided by the vendor Feb 17 20:58:12 nng.... Feb 17 20:58:20 device specific crap is the worst. Feb 17 20:58:59 anyway, yeah Feb 17 20:59:05 if the libs folder doesn't exist, create it Feb 17 20:59:08 and put your jars there Feb 17 20:59:11 your project SHOULD reference it. Feb 17 20:59:19 cool, will give that a shot. thanks! Feb 17 20:59:35 double check the project properties -> java build path -> libraries tab Feb 17 21:12:42 boy this is frustrating Feb 17 21:12:54 outwardly everything appears to go off w\o a hitch Feb 17 21:13:02 but my calendar is never created Feb 17 21:13:51 hehe I crashed Calendar again ;) Feb 17 21:30:23 Looking at Android source and docs, quite confused by Drawable mutability / reuse design. Feb 17 21:30:51 mutate() seems to consistent return this pointer. Feb 17 21:31:24 And then looking at constructor for LayerDrawable (which I'm using), I see it's calling setCallback() on all its child drawables. Feb 17 21:31:44 What happens when two LayerDrawables are created referencing the same underlying drawable? Feb 17 21:32:03 hey everyone Feb 17 21:32:19 what's the best for migrating to a new phone taking programs etc? Feb 17 21:33:11 I use app backup & restore Feb 17 21:34:32 is it free? and does it take my data? Feb 17 21:35:30 does the status bar scale up images? I am showing an icon that was 24x24 then i changed to 18x18 yet it still shows the same Feb 17 21:35:32 there is no official way to move your data to a new device Feb 17 21:35:49 it won't take your data, just the apps Feb 17 21:36:02 what's the best way to take my data? Feb 17 21:36:13 if your apps support the google backup methods they may bring some data. If your apps store on removable storage and you bring the sd card to the new phone, you'll have your data. any data stored local to the app will have to be recreated. There is no way to back up and restore it on unrooted devices. Feb 17 21:36:47 its a rooted device Feb 17 21:37:06 and I mean like handcent sms I backed up my windows mobile device and switched it to android Feb 17 21:37:09 if anyone is interested: http://stackoverflow.com/questions/9335747/creating-a-calendar-with-android-4-0s-ics-content-provider Feb 17 21:37:13 ask in #android-root; the new device would also have to be rooted, and I don't know if tools can move data correctly even then Feb 17 21:39:03 what's the easiest way to interact with RESTful web services from an android app? i've been cobbling requests together with org.apache.http, but this seems unnecessarily painful :| Feb 17 21:39:55 aren't there plenty of examples on blogs Feb 17 21:40:04 basically just wrap an http request with a method... Feb 17 21:41:58 sorry if I missed it, does status bar scale the images? i can't seem to put smaller image in the bar Feb 17 21:43:20 Know any good places for in game music? Feb 17 21:43:30 Paid or open-source? Feb 17 21:44:09 I'm trying to use a ComposeShader to combine two LinearGradients into a 2D gradiant, however no matter which Feb 17 21:44:17 disregard that ^ Feb 17 21:44:30 Escherial: Pulled an example used in my app: http://pastebin.com/TJsqy7Du Feb 17 21:45:10 Anyone in here using ActionBarSherlock? Feb 17 21:45:38 My main project delcares a static final boolean that one of its lib projects needs to know about. is there a way to pass that to the lib project in a static final manner, so that proguard can strip out a bunch of code? Feb 17 21:45:41 ChainsDD: me Feb 17 21:46:58 Quick question, when you imported the library in Eclipse, did you get errors about the classes that implement MenuItem not inheriting some methods? Feb 17 21:47:38 rather not implementing them Feb 17 21:47:45 skfax: thanks, seems to make sense...org.apache.http it is :) Feb 17 21:47:58 no ChainsDD Feb 17 21:48:04 what version of ABS? Feb 17 21:48:53 hmm... 3.5.1 Feb 17 21:49:00 oh Feb 17 21:49:02 ive only used 4 Feb 17 21:49:27 I was considering using 4, but not quite sure if it's ready for a production app Feb 17 21:50:37 its so much better than 3 Feb 17 21:51:02 and I see it's in RC status already Feb 17 21:51:20 hadn't looked too far into it after I saw the beta announcement Feb 17 21:53:28 this article on ASLR in ICS is pretty fascinating stuff, hats off to the guys who figure this out http://blog.duosecurity.com/2012/02/a-look-at-aslr-in-android-ice-cream-sandwich-4-0/ Feb 17 21:54:33 Gambit-: you mike like that one ^^^ Feb 17 21:59:45 what's that library you can use to write ios/android applications that essentially does everything with webviews.. i forgot the name Feb 17 22:00:05 Ok, canadiancow, you sold me on 4.0 :-) Feb 17 22:01:00 phonegap, nvm Feb 17 22:01:48 abaratican, phonegap, yeah Feb 17 22:01:58 hard to do a platform-specific look with that, though Feb 17 22:02:00 which is kind of a bummer Feb 17 22:06:27 Ok, problem with importing 4.0 as a library project as well, except this time there's loads more errors... Feb 17 22:14:55 is wireless adb possible without root? Feb 17 22:18:38 i believe so, but I don't know how. Feb 17 22:19:07 * wraithguard01 backspaces over "I can't imagine so, but I don't know." Feb 17 22:19:39 Backspaced over it, then typed it again...what a strange man. Feb 17 22:19:51 He didn't eat his wheaties. Feb 17 22:20:00 I read online somewhere that if you use an api in your target version you should get warnings / errors if the api doesn't exist in the minsdkversion's api Feb 17 22:20:17 and that you'd have to mark a class using these APIs with @something Feb 17 22:20:27 any idea what that is, and how i enable these warnings? Feb 17 22:26:49 Fixed it, set the build target to 4.0.3, cleaned and rebuit the project. No more errors Feb 17 22:31:26 I'm trying to combine two LinearGradients using ComposeShader, code: http://pastebin.com/fYdjKGki Each shader works fine by itself, but when I combine them I only get the "src" shader shown Feb 17 22:35:25 RobinB: no, afaik Feb 17 22:38:30 ChainsDD, PM or email if you have any other questions Feb 17 22:38:37 actually email, i'll be away from IRC all weekend Feb 17 22:38:50 there's a mailing list which is probably best Feb 17 22:39:30 I'm just having trouble getting the different library projects imported, probably need to do some more digging Feb 17 22:40:12 From what I'm gathering, to use a FragmentActivity, I need to import the compatibility library plugin with the ABS library? Feb 17 22:40:25 are you on 4 or 3? Feb 17 22:40:43 4 Feb 17 22:41:03 for 4 there's a support-lib plugin (that's a jar) which replaces the Google provided support-lib .jar Feb 17 22:41:17 basically it just swaps out the native menu stuff for the ABS menu stuff Feb 17 22:41:28 still FragmentActivity, still Fragment, same package, just ABS-enabled Feb 17 22:42:40 anyone know how to mark a class to be ignored by the api analysis plugin? Feb 17 22:42:45 Ok, so take the support lib from beta.abs.io, and reference that the same way the google support lib is referenced, and import the ABS library project also Feb 17 22:42:50 I know I read an article on this Feb 17 22:43:02 just can't recall the details Feb 17 22:43:29 ChainsDD, correct. samples that use the support-lib are coming (hopefully next RC). there's just so much to do I haven't gotten to them yet Feb 17 22:44:13 I know how you feel, never enough hours in the day Feb 17 22:44:51 as Feb 17 22:45:00 ah, screw it, I'm using reflection Feb 17 22:46:27 trembul, you mean lint? Feb 17 22:47:20 JakeWharton: I think so yeah, the warnings like:- API Level 7 compatibily problem (CalendarContract cannot be resolved to a variable) Feb 17 22:47:41 trembul: is this what you're looking for? Feb 17 22:47:43 I read that you can mark a class with @SomethingHereToSayTargetsSDK11 Feb 17 22:47:43 https://plus.google.com/108967384991768947849/posts/NdV2EumqXhP Feb 17 22:48:27 http://tools.android.com/recent/ignoringlintwarnings Feb 17 22:48:36 er yeah Feb 17 22:48:37 same thing Feb 17 22:48:40 Yup, that one ;-) Feb 17 22:49:03 ChainsDD: yes, on the screenshot it shows what I was after Feb 17 22:49:10 @TargetApi(14) Feb 17 22:49:21 hmm, guys, how do you get Maps to work within a Fragment? Feb 17 22:49:25 thanls a lot :) Feb 17 22:49:35 Except I don't think ADT 17 is quite out yet Feb 17 22:49:42 oh Feb 17 22:49:45 it complains that it wants to be hosted within a "MapActivity" which kinda doesn't make sense with my app design, any workaround? :) Feb 17 22:49:46 dang Feb 17 22:50:11 Mavrik, there's no (good) solution yet Feb 17 22:50:25 ah, figured Feb 17 22:50:36 Reto Meier alluded to the fact that the maps team *may* be working on a solution Feb 17 22:50:39 so basically I need a MapActivity (or SherlockMapActivity for ABS) on top even on tablets Feb 17 22:50:51 yes Feb 17 22:50:58 but be aware that ABS v4 no longer gives you fragments+maps Feb 17 22:51:24 hmm... annoying that :) Feb 17 22:51:40 ok thanks, that's what I wanted to find out before I lose hours with that :) Feb 17 22:55:27 it took me a while to remember what you made ChainsDD! Superuser, I've gotta ask... why the "that was cool, do it again button"? Feb 17 22:55:37 lol Feb 17 22:56:08 Because when I finally got that scrolling console like ListView working, that's exactly what I said to myself Feb 17 22:56:27 I figured other people might say the same thing Feb 17 22:56:31 lol, fair enough Feb 17 22:57:23 any idea on when the new adt 17 is coming out Feb 17 22:57:25 ? Feb 17 22:57:33 Soon, I hope Feb 17 22:57:43 the new features in lint look pretty handy Feb 17 22:57:46 Need resources in .jars already Feb 17 22:58:07 Was supposed to be in 15 then 16 now 17 (which there's been no mention of it) Feb 17 22:58:19 Is there a way to convert an int to a string? Feb 17 22:58:27 String.valueOf() Feb 17 22:58:31 Integer.toString() Feb 17 22:58:33 myint.toString? Feb 17 22:58:35 "" + theInt Feb 17 22:58:36 i wouldn't mind so much if android projects weren't just awful Feb 17 22:58:41 you mean resources in library tyoe .jars? Feb 17 22:58:44 when I set my status bar icon notification, regardless of its 18x18 or 24x24... it keeps scaling. Is there a way to prevent that? Feb 17 22:58:52 ChainsDD, yep Feb 17 22:58:55 new StringBuilder().append(myInt).toString() Feb 17 22:58:59 That would be nice Feb 17 22:59:19 * Mavrik is waiting for a reflection-based way to convert int to string. Feb 17 22:59:19 handy for projects like ABS especially Feb 17 22:59:33 exactly Feb 17 23:00:20 class myClass = Class.forName( Feb 17 23:00:31 I got bored halfway though Feb 17 23:00:38 SEE IT THROUGH FAGGOT. Feb 17 23:00:43 lol Feb 17 23:00:53 drop and give me 20 disappointing frowns Feb 17 23:01:29 :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( : ( : ( Feb 17 23:01:44 good work soldier now fall in line Feb 17 23:01:45 i'm off Feb 17 23:01:47 might be back later Feb 17 23:01:58 (I strruggled with the last 2) Feb 17 23:01:59 Have a good one Feb 17 23:04:11 if i have my android device connected via usb to a computer, anyone have a preferred/easy way to get a file from the computer to the device? Feb 17 23:04:29 adb pull /path/to/file Feb 17 23:04:52 storkme and from a user perspective? oh guess i'm in the wrong channel for that. ;\ Feb 17 23:05:47 ?? Feb 17 23:05:48 i'm not really much of an android user but i'm wondering how to get my "non-market" app onto their device, let's say I emailed the .apk to them. Feb 17 23:06:17 seems legit Feb 17 23:06:24 and want to include instructions to install it... Feb 17 23:06:37 copy it onto the sd card, use some program like astro file manager to install it from the sd card Feb 17 23:07:08 but how do you copy it to the sd card, guess you could just use the email on the device... Feb 17 23:07:19 but lets say they dont' have email setup on the device, just a usb cable. Feb 17 23:07:41 does the sdcard appear in windows explorer for example? probably depends... Feb 17 23:08:06 usually Feb 17 23:08:13 if not you just select 'enable usb storage' Feb 17 23:08:49 on the device Feb 17 23:09:09 ok this helps, thanks Feb 17 23:09:29 http://www.fiercedeveloper.com/special-reports/developers-flock-html5-over-1b-compatible-handsets-are-expected-sell-2013 Feb 17 23:13:02 lol at 'html is not a pipe dream' Feb 17 23:13:12 you had me until then Feb 17 23:15:28 been in develpment for like ten years, still no formal spec Feb 17 23:15:36 seems legit Feb 17 23:19:18 what's cool with html5 is that in 10 years you will be able to do in your browser what you did in your Amiga 25years ago Feb 17 23:20:47 lol Feb 17 23:22:23 <[deXter]> lol, bubbleguuum Feb 17 23:22:24 the technology is moving forward at an alarming rate! Feb 17 23:22:54 technology is sometimes moving backward Feb 17 23:23:27 and sideward Feb 17 23:26:40 How does one initilize this pragmatically? Feb 17 23:26:45 class ClassName extends SurfaceView implements SurfaceHolder.Callback Feb 17 23:27:29 I'm planning tech talk on android development with commandline tools. I'm looking for the minimum install for getting access to the dab command line tool. Feb 17 23:27:29 It would take the entire length of my time to do: tools/android update --no-ui Feb 17 23:27:46 s/dab/adb/ Feb 17 23:28:41 ClassName c = new ClassName(); keeps giving me the error of no constructor defined when there actually is Feb 17 23:29:34 Tried using some other name for the class? Like foo or something? Feb 17 23:31:11 farmer-duck: Yeah, sorry that was just for demo purposes Feb 17 23:32:44 Np! Just thought might the problem... Feb 17 23:33:05 You're also sure the constructor is accesible? Feb 17 23:34:03 farmer-duck: public { } right? Feb 17 23:34:41 Yeah public should be accessible enough Feb 17 23:35:16 Although I assume you also added () to the constructor Feb 17 23:35:41 farmer-duck: Ah, sorry, I was giving it the wrong datatype as a param Feb 17 23:35:54 I have a notification and I'm trying to launch an activity that launches a dialog box in it's onCreate but the notification just calls the main activity rather than the dialog activity. Does anyone know why this is happening? Feb 17 23:36:02 And the constuctor for them params was undefined, sorry! Feb 17 23:36:05 The dialog activity is in my manifest Feb 17 23:36:29 Np... good luck Renegade001 Feb 17 23:36:51 farmer-duck: Thanks! Feb 17 23:37:57 Cr5315: did you set the proper additional attributes in manifest too? Feb 17 23:38:18 Additional attributes? Feb 17 23:40:20 Action Feb 17 23:40:28 Category Feb 17 23:40:59 Cr5315: action and category attributes Feb 17 23:41:13 Would I need one of those if it just launches an AlertDialog? Feb 17 23:42:06 If your main activity fires on boot instead of a dialogactivity, which is just another activity... then yes Feb 17 23:42:24 The main activity works fine Feb 17 23:42:58 I'm trying to get it so that when the user clicks the notification, i launches the dialogactivity Feb 17 23:43:11 Sorry didn't understand the question right... Feb 17 23:43:45 I have a notification created in Activity1. When the user selects the notification, it launches Activity2. Feb 17 23:43:46 The notification a ? Feb 17 23:43:58 Activity2 is coded to launch a dialog box Feb 17 23:44:02 and that's all it does Feb 17 23:44:08 Yeah... my fault... didn't read well Feb 17 23:44:31 I'm trying to teach people how to install only the android tools for the device they have. Any pointers would be appreciated. Feb 17 23:45:04 Richardbronosky: sorry, can't help you with that :( Feb 17 23:45:13 if you know you have a Samsung running 2.3.5, you don't need to download all that junk. Feb 17 23:46:13 Richardbronosky: you can select which api-levels to download in the SDK manager Feb 17 23:46:44 I'm trying to combine two LinearGradients using ComposeShader, code: http://pastebin.com/fYdjKGki Each shader works fine by itself, but when I combine them I only get the "src" shader shown. Any hints on how to fix this? Feb 17 23:47:04 farmer-duck how do those translate? Feb 17 23:47:22 skfax: are you using hardware acceleration? Feb 17 23:47:29 Gah, is it possible to convert a resource (/R.id.relativeLayoutObject) to the DataType Context? Feb 17 23:47:49 romainguy: yes, it's activated in my developer options Feb 17 23:47:53 skfax: that's why Feb 17 23:47:57 romainguy: testing without now Feb 17 23:47:57 http://developer.android.com/sdk/android-2.3.4.html is level 10? Feb 17 23:48:09 skfax: the hardware renderer does not support 2 shaders of the same type inside a ComposeShader Feb 17 23:48:19 Cr5315: can't figure out a solution Feb 17 23:48:45 romainguy: Thank you <3 Been fiddling with this thing for a couple of hours now. I can finally sleep ^.^ Feb 17 23:49:05 Richardbronosky: yes api 10 is 2.3.3 Feb 17 23:49:37 From there on, android only received fixes, no additions, only minor Feb 17 23:49:39 romainguy: Is there an easy solution to make it work with GPU rendering? Feb 17 23:50:05 you can use a software layer on the view in which you draw this Feb 17 23:50:09 you could also render your gradient in a bitmap Feb 17 23:50:51 so as long as i just draw to a temporary bitmap first, then draw that to the system canvas, it will work fine? Feb 17 23:51:46 now if I can just get the options to send to "tools/android update --no-ui" to limit it to just that. Feb 17 23:51:56 skfax: correct Feb 17 23:52:09 farmer-duck, Well, now it just launches a blank activity, but still no dialog Feb 17 23:52:37 Does adb have a push options that is verbose for upload of a file Feb 17 23:52:47 option^ Feb 17 23:53:09 cr5315: try calling it from a other point in the lifecycle Feb 17 23:53:48 Not the oncreate but Feb 17 23:54:07 oh i feel smart Feb 17 23:54:15 i never called .show() Feb 17 23:54:26 Mmm Feb 17 23:54:43 That's also a smart call ;) Feb 17 23:58:34 hate to ask an off-topic question, but the github irc is rather... non-active. Anyone here use github? Feb 17 23:58:49 zerkz, yes Feb 17 23:59:50 RichardBronosky, if i was to subscribe for the Micro plan, it says theres one private collaborator.. does this mean that there are two users able to access the private repositories? Feb 18 00:00:04 One being myself, and the other being the private "collaborator"? Feb 18 00:00:28 zerkz correct Feb 18 00:00:38 ok, thanks :) Feb 18 00:01:22 zerkz, however, it is my religious obligation to discourage you from keeping code private. Feb 18 00:01:52 Actually I am going to be putting my last project up on open-sourced Feb 18 00:01:57 er open-source* on github. Feb 18 00:03:57 So... it's a little quiet now, let me ask my question... what's the solution to build a listview like the people-app from ics... meaning nicely arranged text and image Feb 18 00:04:27 Its not much... I was making an app that basically operated sentence completion exercises like the ones found here. http://www.nathanielbranden.com/psy/psy02.html . I had contacted the offer of these exercises and he gave me permission to see what i could come up with. Recently, they told me to work with their webmaster who released a related app to "match brands and have an integrated Feb 18 00:04:27 look". I did so, but last Tuesday they sent me an email telling me to desist and that their "branding firm" would not accept my app (even though they never had a release of it/ saw it) Feb 18 00:06:45 farmer-duck, the solution to build a listview with multiple views in each item? Feb 18 00:07:39 Yeah did that... only do the two views not get the same height... Feb 18 00:08:01 And I want that to be done dynamically from xml ;) Feb 18 00:08:31 Hmm, Isn't there "weight" in layouts that will sort of "priotize" space? Feb 18 00:08:59 so if you give the views the same weight (and assuming they are "fill parent", because wrap_content will often be different) Feb 18 00:09:44 Correct on the fill parent... weight, did not use it before... Feb 18 00:10:19 ive assigned it through Eclipse's visual layout maker, but hold on Feb 18 00:11:08 android:layout_weight="number" Feb 18 00:11:16 number being a double/float Feb 18 00:11:28 in your listview's xml Feb 18 00:12:19 (assuming your views are in a linearlayout/ other layout), which they should be Feb 18 00:12:23 farmer-duck Feb 18 00:12:24 Hi there, I'm getting the following error in the console and I have no idea what it means http://pastebin.com/Wqr2rTU9 Feb 18 00:13:33 Zerkz: yeah they are ;) but I did not now the wysiwyg editor was still in eclipse ;) it does never show on my screen ;) rofl Feb 18 00:14:18 Thnx for the advice... I'll look into to it tomorrow, not it's time to sleep ;) Feb 18 00:14:30 Not -t Feb 18 00:14:33 you can just add the weight to the xml, farmer-duck, your not forced to Feb 18 00:14:38 use the editor Feb 18 00:15:02 I know, was going to write the attribute indeed, Feb 18 00:15:26 But for now, good night ya all! Feb 18 00:16:53 Hi there, I'm getting the following error in the console and I have no idea what it means http://pastebin.com/Wqr2rTU9 Feb 18 00:17:18 i have an xml drawable that's a , but is getting loaded as a GradientDrawable. wtf? Feb 18 00:26:40 hey - if I am stopping media player in the if part, it has to contain the else part as well to carry out the intent right? Feb 18 00:26:47 in an if part Feb 18 00:26:52 not the Feb 18 00:33:53 how long should it take to download the source ? Feb 18 00:34:29 what source? Feb 18 00:34:54 android Feb 18 00:35:08 repo sync is about 6gb or so, I think Feb 18 00:35:14 so however long it takes you to download 6gb Feb 18 00:35:55 Anyone knows if it is possible to use/call device drivers from terminal? Feb 18 00:37:57 ok becuase when i did the " curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo " it finished instantly so I now something is wrong hehe Feb 18 00:39:18 shouldnt that be "git sync somethingsomething"? Feb 18 00:39:47 I was following this http://source.android.com/source/downloading.html Feb 18 00:39:48 lwizardl: that part is supposed to be quick Feb 18 00:39:53 that's not "the source" :X Feb 18 00:40:01 ah ok Feb 18 00:40:07 repo is the script that gets you the source Feb 18 00:40:14 so is that just a folder tree setup or such Feb 18 00:40:37 repo downloads the source for you Feb 18 00:40:52 okay and its like 6gb ? Feb 18 00:40:54 it's a friendlier wrapper around git for synchronizing many git repositories at once Feb 18 00:41:44 repo is the tool you use to download the sources Feb 18 00:41:59 downloading repo is step 1 Feb 18 00:42:07 then you need to repo init and repo sync Feb 18 00:42:14 repo sync => 6gb download Feb 18 00:42:19 it's a lot bigger than 6gb, too. ICS sources are almost 14gb Feb 18 00:43:06 untrue Feb 18 00:43:09 so how much space will i need to make sure to have free for when i run the script to grab all the source Feb 18 00:43:55 lwizardl, have 15gb free is good Feb 18 00:44:23 ok Feb 18 00:44:25 tophyr, you can see how big the download is by doing a du -s .repo Feb 18 00:44:36 just wanted to make sure it was some like 60gb or something Feb 18 00:45:07 tophyr, it's a little bit less than that due to compression during download Feb 18 00:45:23 pfn: oh, i see what you mean Feb 18 00:45:37 [pfnguyen@galactica0 src]$ du -s .repo Feb 18 00:45:37 6693595 .repo Feb 18 00:45:42 6.7gb roughly Feb 18 00:45:52 would mp.prepare(); cause a raw file that is not mentioned at all in the code to play? Feb 18 00:48:16 not familiar enough with git/repo to know.. why would .repo represent the size of the data downloaded, instead of "total - .repo" Feb 18 00:49:17 total project size is ~13.5gb on my disk as reported by Finder, 12.9gb as reported by du Feb 18 00:50:52 hi Feb 18 00:53:43 tophyr, because .repo contains all of the assorted .git repositories Feb 18 00:53:53 tophyr, the .git repositories are what you download Feb 18 00:54:03 tophyr, everything else left over is the working copy/checkout Feb 18 00:54:12 [pfnguyen@galactica0 src]$ du -s Feb 18 00:54:12 10650975 . Feb 18 00:54:31 so ~10.6gb - 6.7gb is how big the working copy is Feb 18 00:54:37 i need some help/advise. Feb 18 00:55:21 I'm taking a course, where we're supposed to work with android. Now, rather than making just an app, I was wondering whether I could work with the android platform itself? Feb 18 00:56:12 I'm not sure if that even makes sense. But since you guys are the devs, I though it would be the best place to ask about it. Feb 18 00:56:45 does Android's GLES2.0 implementation have any 3x3 matrix calculation libs? I need to calculate the "Normal Matrix" . Feb 18 00:57:07 do I HAVE to call http://developer.android.com/images/mediaplayer_state_diagram.gif all the parts? Feb 18 01:18:24 pfn: you around? Feb 18 01:18:30 what Feb 18 01:18:53 wonder if i can pick your brain on mediaplayer states Feb 18 01:19:00 I have no idea about mediaplayer states Feb 18 01:19:13 damn Feb 18 01:19:33 i keep getting crazy state #'s, when there aren't many on the diagram in the docs Feb 18 01:20:20 What is the android equivalent of mdb/mdw (display memory byte/word)? Feb 18 01:20:33 dunivan: Maybe they are using bitwise ops? Feb 18 01:21:41 JohnnyonFlame: i'll look for that Feb 18 01:21:46 it doesnt say so though Feb 18 01:22:22 Are the states going in a geometric scale? (2, 4, 8, 16...) Feb 18 01:23:33 yeah, all the way to 128 Feb 18 01:23:46 They're probably bitwise ops Feb 18 01:24:11 so your states are most likely 2 || 4 = state 1 and state 2 on at once Feb 18 01:24:29 why won't they document that when your trying to debug then? Feb 18 01:24:49 would love to know so. Feb 18 01:58:53 woohoo! I found it! tools/android update sdk --no-ui --filter platform-tool Feb 18 02:05:50 in a ListFragment which lifecycle method is the best place to initialize the list adapter? Feb 18 02:07:27 depends Feb 18 02:07:33 onCreate or anywhere thereafter is fine Feb 18 02:08:17 it's a Fragment Feb 18 02:08:29 so I think it has to be after onCreateView Feb 18 02:08:39 otherwise I won't be able to find the ListView in the hierarchy Feb 18 02:09:04 also I want to mention it's a dynamic list which changes quite a lot (list of open chats) Feb 18 02:10:30 no, you can create your adapter in onCreate just fine Feb 18 02:10:37 setListAdapter anytime after onCreate is ok Feb 18 02:10:52 as for changing very often, that's what the adapter is meant to handle Feb 18 02:11:07 just adapter.notifyDataSetChanged Feb 18 02:11:33 is it possible to use pulltorefreshview using a LinearLayout with a scrollview? Does anyone have experience with it? Thanks Feb 18 02:12:04 I'm trying to implement it but no action seems to trigger it Feb 18 02:12:25 pfn, setListAdapter after onCreate Feb 18 02:12:30 ok I see; thanks! Feb 18 02:13:03 pfn, also do I have to setListAdapter(null) somewhere in onDestroyView maybe? Feb 18 02:13:09 and set adapter to null also? Feb 18 02:13:20 could there be any leaks? Feb 18 02:13:33 depends on what you're doing Feb 18 02:19:59 but in general you don't have to? Feb 18 02:23:40 can I disable the back button only if theres an alert up Feb 18 02:55:23 dunivan: Dialog#setDismissable(boolean) **** ENDING LOGGING AT Sat Feb 18 02:59:58 2012