**** BEGIN LOGGING AT Wed Apr 03 02:59:58 2013 Apr 03 03:00:03 sqlite - data, sharedpreferences - nice clean, easy preferences, files - junk that won't go anywhere else Apr 03 03:00:32 "String" with a capital "S" is an object Apr 03 03:02:13 xviv: what's the actual data you're storing ? Apr 03 03:02:14 :) Apr 03 03:02:15 what are u using the hashmap for? Apr 03 03:02:18 ;-) Apr 03 03:04:09 * SeriousMatters has just added enum to his app just for the sake of trying it out, and is ready to be shouted at. =P Apr 03 03:04:58 Sorry for dc'd. But I have read the answer from bankai_ and SeriousMatters. Thank you guys :) Apr 03 03:05:53 SeriousMatters: and ? see any performance hit ? Apr 03 03:06:35 bankai_: It's my very first program with java. I have nothing to compare with XD. Apr 03 03:13:48 I know several companies are making "naked" devices capable of running Android. Apr 03 03:14:18 Things that aren't phones, and aren't exactly tablets but you can basically buy them an run you rown custom version of Android. Can anybody recommend some manufacturers which do that? Apr 03 03:14:25 what's going on with that thing intel/samsung are developing? Apr 03 03:14:33 tizen? Apr 03 03:15:02 svm_invictvs: not really the channel for it -- #android-root or something would be better Apr 03 03:30:38 I have BTDataThread that extends Thread. I started this thread in my main activity. I have a Handler for the activity's UI which I pass into the instance of BTDataThread. In that thread class, I have handler.post(Runnable r). I want to set UI elements based on data in the thread, but I can't seem to figure this out. If I define the Runnable in my main activity, I have access to the UI components but not the data. If I create the Runnable in the B Apr 03 03:30:38 TDataThread class, I can't access the UI. What do I need to do herE? Apr 03 03:30:45 damn, long question... Apr 03 03:32:13 it would be cool to define the ui updater Runnable in my main activity and pass that into the Thread I made; it just seems more elegant. Plus, I don't want to pass the UI Context into a Thread - that would be bad Apr 03 03:32:18 would asynctask be a better approach here ? Apr 03 03:32:33 bankai_, I can't use asynctask because this is an ongoing process Apr 03 03:33:05 I have a service that provides a bluetooth socket, and then this Thread is used to control data flow in the socket. Apr 03 03:33:16 oh i remember you now lol Apr 03 03:33:19 It is meant to update the UI in real time with data values obtained from bluetooth Apr 03 03:33:22 ;D Apr 03 03:37:10 so can anyone point me in the right direction? Apr 03 03:46:35 -------> Apr 03 03:46:41 that direction is to the right Apr 03 03:46:51 * hesperaux looks at pragma- Apr 03 03:47:11 * pragma- fidgets self-consciously. Apr 03 04:06:36 can I have a lock screen widget that allows rudimentary interaction without unlocking the device? Apr 03 04:07:28 such as ? Apr 03 04:08:05 anything? I've only ever given them pending intents to launch real things Apr 03 04:08:20 i want to click on a button and change something in the widget without the user having to enter their passcode Apr 03 04:08:52 JakeWharton: could a pending intent maybe trigger an action in a service, which then alters the remoteview? Apr 03 04:09:22 I just found a calculator lockscreen widget which works without requiring unlock when you click on a button Apr 03 04:09:29 clever: yeah I think that would work Apr 03 04:09:40 i'm not sure how the distinction is made but i'm sure I could find out in 5 min of experimentation Apr 03 04:10:02 ive got code that does similar, *looks* Apr 03 04:10:27 i have a service updating a lockscreen widget - populates a listview. it's not terribly 'interactive' though Apr 03 04:10:34 JakeWharton: wakeSelf = PendingIntent.getService(this,0,i,0); Apr 03 04:10:54 JakeWharton: thats creating a PendingIntent inside my onCreate, for use with the alarm manager Apr 03 04:11:31 i dont think the PI's have any diffence, they all work the same Apr 03 04:11:54 JakeWharton: I think there's a flag you have to set somewhere Apr 03 04:12:02 to allow secure operation Apr 03 04:12:08 when you're making the intent, maybe? Apr 03 04:12:21 yeah there has to be *some* distinction Apr 03 04:12:56 remind me tomorrow and I'll look it up Apr 03 04:15:02 JakeWharton: have a look at PendingIntent.getService in the docs Apr 03 04:15:30 clever: I will. Not actually doing any work right now. Just brainstorming and exploring ideas Apr 03 04:15:54 JakeWharton: if you want each button to do a different action, youll need to make sure the PI's are unique Apr 03 04:16:16 JakeWharton: PendingIntent has a habbit of reusing old PendingIntent's it gave you before, causing them all to trigger one action Apr 03 04:16:29 a side effect of letting you pull out an old one and .cancle() it Apr 03 04:16:55 yep. already used widgets and notifications a ton Apr 03 04:56:28 Can i write to a database while its being read? Apr 03 04:57:02 do0ob, what's the database? Apr 03 04:57:20 Sqlite or mysql Apr 03 04:57:38 hi guys... question: If I use xml-based settings - can I define a "help text"? Apr 03 04:57:59 something like the "Set number of messages to save" in the first picture here: http://developer.android.com/guide/topics/ui/settings.html Apr 03 04:58:07 I just can't find the xml attribute for that. :-/ Apr 03 04:58:25 tinloaf, just a min Apr 03 05:01:09 superlinux-hp: android sqlite Apr 03 05:01:18 Is it safe to obtain static variables from another class? Apr 03 05:01:23 is it a good practice? Apr 03 05:01:40 Or would something like a shared preference be better? Apr 03 05:02:01 do0ob, i am not sure how do you exactly want it. Apr 03 05:02:01 agy2154: normally, if they are declared public, they should be safe to read Apr 03 05:02:20 otherwise, they should be declared non-public. ;-) Apr 03 05:02:47 superlinux-hp: one thread will populate the database, other threads will query the database and update views Apr 03 05:03:08 tinloaf, Thanks. I just wanted to share a couple of doubles between two classes. Apr 03 05:03:21 do0ob, in theory yes. but i am not sure of Sqlite can allow you Apr 03 05:03:33 you have to try it Apr 03 05:04:07 *not sure if.. Apr 03 05:04:14 agy2154: well, if you have full control over them, that's fine. But keep in mind that this is totally not thread safe... Apr 03 05:04:25 (unless you do fancy synchronizing...) Apr 03 05:05:16 tinloaf, Its a sicne app and its all local. What would make it not safe? like for example if another app would try to edit the value? Apr 03 05:09:46 agy2154: if your app spawns a second thread Apr 03 05:10:03 agy2154: or your app is spawned twice, ... Apr 03 05:10:22 tinloaf, Ohh no there will only be one. Android won't let that happen right unless I allow that? Apr 03 05:10:24 superlinux-hp: do you know whether there is a way to add this "help text" via xml? Apr 03 05:10:50 agy2154: as far as I know (and thats not very far), if you only have one activity, this should only run once, yes. Apr 03 05:11:26 tinloaf, Thanks. I understand this a lot better now. Apr 03 05:12:34 tinloaf, the way the guide you sent me, it's something i have not yet done Apr 03 05:13:27 tinloaf, but you can write your own from scratch Apr 03 05:14:30 or are you talking about the strings.xml values? Apr 03 05:17:13 superlinux-hp: nope... OK, then I'll have to do this in code, I guess. :_/ Apr 03 05:17:15 thanks :) Apr 03 05:17:32 welcome Apr 03 05:35:20 it would be cool to define the ui updater Runnable in my main activity and pass that into the Thread I made; it just seems more elegant. Plus, I don't want to pass the UI Context into a Thread - that would be bad Apr 03 05:35:28 oops Apr 03 05:35:31 lol Apr 03 05:35:54 I have BTDataThread that extends Thread. I started this thread in my main activity. I have a Handler for the activity's UI which I pass into the instance of BTDataThread. In that thread class, I have handler.post(Runnable r). I want to set UI elements based on data in the thread, but I can't seem to figure this out. If I define the Runnable in my main activity, I have access to the UI components but not the data. If I create the Runnable in the Apr 03 05:35:54 BTDataThread class, I can't access the UI. What do I need to do here? Apr 03 06:07:24 don't ever extend Thread Apr 03 06:07:26 there's no reason to Apr 03 06:09:02 as for getting the UI to react, post a message into a handler and have your ui react to that Apr 03 06:11:08 pfn, so instead of extending thread, what should I do? I extended thread cuz that's what they do on the developer page for ConnectedThread Apr 03 06:11:24 always implement Runnable Apr 03 06:11:33 okay Apr 03 06:11:46 there is no reason to ever extend Thread, unless you're actually implementing threading as part of a framework (which you aren't) Apr 03 06:12:06 that explains why it felt strange to do so Apr 03 06:12:51 extending thread is the right thing to do in the ConnectedThread example Apr 03 06:12:56 as for the UI - the problem right now is I can't figure out how to get data from the thread into the UI. I have to send a lot of data back to the UI (at least 4 Integers, up to 32) Apr 03 06:13:09 hesperaux, send it via a Handler is quite easy Apr 03 06:13:28 pfn, that's what I'm attempting to do Apr 03 06:13:49 the thing I am having trouble with is getting access to both the data and the UI context in the Runnable I post through the handler Apr 03 06:14:23 the main reason for this is that my thread class is not in the activity scope Apr 03 06:14:31 don't post a runnable then, post a message Apr 03 06:14:50 okay Apr 03 06:15:15 what kind of data can I send back through a message? It seemed like basic "This is something I did, be advised" codes only Apr 03 06:18:12 you can set a bundle on it Apr 03 06:18:22 nice Apr 03 06:19:57 you can also use an arbitrary object argument Apr 03 06:20:01 intra-process Apr 03 06:20:07 pfn, why is new Thread(new Runnable(run(){})); prefferable to new Thread(){run()}; ? Apr 03 06:20:24 alex_PP, has-a vs. an is-a relationship Apr 03 06:20:32 also implementation flexibility Apr 03 06:21:57 ok, stylistic stuff, i was trying to think of a technical reason Apr 03 06:21:59 cheers Apr 03 06:22:06 those are technical reasons Apr 03 06:23:26 extending Thread precludes the use of existing thread pool interfaces Apr 03 06:31:42 hey guys. i'm trying to remotely debug a shared library being loaded on a device. I'm using gdbserver on the device, and gdb on my dev machine. i'm wondering how I might set a breakpoint in a function within the shared library? Apr 03 07:31:21 Could somebody help me with this code: http://pastebin.com/tdtwMjkC Apr 03 07:31:28 when I use it in normal eclipse it works just fine, but when I try the same code (only with Log instead of Syso) it crashes Apr 03 07:31:36 Android gives me a java.lang.RuntimeException Apr 03 07:33:38 hey guys Apr 03 07:34:01 which channel is for ios again? Apr 03 07:34:08 Has anybody else experienced that error? Apr 03 07:34:20 Wuppy21_ line number? Apr 03 07:34:27 8? Apr 03 07:34:29 InputStream io = con.getInputStream(); Apr 03 07:34:43 http://pastebin.com/8ucE2iTC Apr 03 07:34:45 I did change Syso into Log of course Apr 03 07:34:47 weburl is always null Apr 03 07:34:48 hi, i have created a icone theme for 2-3 launcher. how can i protected apk. Users can backup apk and grab my icons Apr 03 07:34:49 an ideas? Apr 03 07:38:34 meetoman it's objective C code... Apr 03 07:39:01 hmm I found a android.os.NetworkOnMainThreadException... Apr 03 07:39:14 hi all Apr 03 07:39:27 Wuppy21_ you can't do network traffic on main UI thread Apr 03 07:39:33 I want to disable FM Transimiter , I think its messing in my kernel Apr 03 07:39:41 where I can find it in make menuconfig? Apr 03 07:39:57 Wuppy21_ this is new in JB (or ICS) ... on Gingerbread it does not happen Apr 03 07:40:29 I´m using APi´s 8-17 Apr 03 07:40:53 target = 17 Apr 03 07:40:58 Wuppy21_ the NetworkOnMainThreadEx happens on which device? Apr 03 07:41:30 where would I be able to find that? LogCat is really useless most of the time Apr 03 07:42:02 ah settings tells me Android version 4.1.1 Apr 03 07:42:20 So it is using Jelly Bean Apr 03 07:42:28 Wuppy21_ ok so it's ok, no network activity on main thread on JB Apr 03 07:42:33 Wuppy21_ use an asynctask Apr 03 07:43:56 thanks Apr 03 07:44:46 I am trying to compile ancor kernel Apr 03 07:45:04 It say messing FM Trans module Apr 03 07:45:11 is there way to disable it? Apr 03 08:13:13 good day Apr 03 09:25:13 hello everybody! Apr 03 09:27:29 my coworker has been trying to get Eclipse up and running for the past 3 hours now but this snippet of code seems to crash on his machine while executing without issues on mine. http://pastebin.com/3XTSzWmt - Any ideas as to why this is happening? He tried copying my entire eclipse directory with no change - The program crashes on KeyGenerator.getInstance("AES") Apr 03 09:35:43 Hey, I'm trying to set up a testing project in Eclipse (as described on http://developer.android.com/tools/testing/testing_eclipse.html), but in the Create Class dialog for creating the test class I can't extend android.test.AndroidTestCase, because the class creation wizard tells me the enclosing type is binary. I seem to be the first one that encountered this problem as I cannot find anything on Google, which is why I ask here. Any ideas Apr 03 09:35:44 how I could fix this problem? Apr 03 09:36:24 he needs to have the java crypto extensions installed, at a guess Apr 03 09:36:41 In addition the class browser for the enclosing type doesn't show anything. Apr 03 09:48:03 How do I install the drivers for an android phone? Apr 03 09:48:12 I tried this: http://developer.android.com/tools/extras/oem-usb.html Apr 03 09:49:03 but when I do step 8 it tells me: No drivers found Apr 03 09:49:09 for this device Apr 03 09:51:46 who came first.. the chip or the programmer? Apr 03 09:51:48 :D Apr 03 09:52:09 nobody knows what I am doing wrong? Apr 03 09:53:10 why the fuck doesn´t it install Apr 03 09:56:02 Wuppy21_: usually you need to get drivers from the phone manufacturer Apr 03 09:56:29 Wuppy21_: let me guess - Windows Apr 03 09:56:50 search on xda developers for universal ADB drivers if you have phones from different manufacturers Apr 03 10:00:26 is there an app that provides a file picker intent, comparable to the imagwe picker? Apr 03 10:00:29 *image Apr 03 10:03:09 Ge0rG: thats a standard chooser action Apr 03 10:03:49 Napalm: so, is there an app that allows to choose and return a file of any (or of a given) type? Apr 03 10:04:00 that would depend on the apps you have installed Apr 03 10:05:15 Napalm: is there an app that provides the specific functionality I have asked for? Apr 03 10:09:57 Ge0rG: the SDK says this: "ACTION_GET_CONTENT with MIME type */* and category CATEGORY_OPENABLE -- Display all pickers for data that can be opened with ContentResolver.openInputStream(), allowing the user to pick one of them and then some data inside of it and returning the resulting URI to the caller. This can be used, for example, in an e-mail application to allow the user to pick some Apr 03 10:09:57 data to include as an attachment." Apr 03 10:10:11 Napalm: thanks :) Apr 03 10:10:16 for example Astro file manager responds to this Apr 03 10:10:53 yeah, ghost commander does so as well. so if I want a file picker, I just startActivityForResult(ACTION_GET_CONTENT)... Apr 03 10:11:03 I got that now :) Apr 03 10:39:17 eurgh, forgot to deal with rotation events. Apr 03 10:52:16 so since designing landscape UIs for this app isn't in spec, what's the easiest way to get my portrait-designed layouts to work in landscape mode? Apr 03 10:57:46 How difficult is it to build an android project the old fashioned way (with Makefiles and such)? Apr 03 11:04:17 stork define 'work' ? if it's not in the specs you just make sure it does not crash and basically does the same thing as portrait Apr 03 11:04:44 well, ensuring all the ui elements are visible is my primary concern Apr 03 11:05:35 your layout should already be designed for differing sizes Apr 03 11:06:15 it's designed to look good in portrait mode, but it doesn't fit vertically in landscape Apr 03 11:06:22 should i just wrap it in a scrollview or something? Apr 03 11:07:05 could work i guess Apr 03 11:12:28 if its not in the specs then surely you can disable landscape rotation in your app? or renegotiate specs Apr 03 11:43:56 hello Apr 03 11:49:52 hello Apr 03 11:50:10 from an inside source at google, Android 6.0, Lollipop, will reportedly give Apple something to suck on Apr 03 11:52:13 I'm having some problems with handling touch events in my custom view class. for now I just want it to behave like SeekBar, which works. The problem is when placed inside fragment, horizontal touch gesture will swipe between fragments instead of giving events to my view class Apr 03 11:52:51 but SeekBar placed in the same fragment will work as expected Apr 03 11:52:58 so what would be the difference? Apr 03 11:53:28 I set-up the onTouch listener and return true to indicate I handled the event Apr 03 11:54:01 so why does even propagate further and gets to fragment manager which applies transition to another fragment? Apr 03 11:54:05 event* Apr 03 11:55:29 mikedg: lol\ Apr 03 11:56:49 badumsh! Apr 03 12:03:55 heh, google updated how they calc the stats for versions Apr 03 12:07:30 hey guys had a really strange problem with my attempted app today hoping someone could explain maybe why Apr 03 12:07:52 I have so far only been developing on virtual device, I'm about to buy a new device but haven't had one the past 3 months Apr 03 12:08:20 I have a layout folder with 5 xmls.. one main and 4 fragments. Apr 03 12:08:29 I have a layout-sw600dp-large folder Apr 03 12:08:47 with the same main.xml .. all the buttons are the same except it has 2 views to store fragments instead of 1 Apr 03 12:09:02 now my mate came by who has a galax 3.. I gave him the APK Apr 03 12:09:14 and portrait worked fine.. when he turned to landscape.. it drew everythign alright Apr 03 12:09:20 but it crashed as soon as he hit any button Apr 03 12:09:33 I tried making sw600dp-large .. to just layout-large Apr 03 12:09:41 and now it works.. Apr 03 12:09:49 but his device has a width higher than that anyways Apr 03 12:09:53 so shouldn't have made sense Apr 03 12:10:43 P3nnyw1se: what's the exception? Apr 03 12:10:54 I dont know.. cause it works fine on my virtual device Apr 03 12:10:57 it didn't on his phone though Apr 03 12:11:00 don't think you can combine size and smallest width qualifiers like that Apr 03 12:11:07 ? Apr 03 12:11:22 I can't? .. .hrmf.. someone in here told me to use that Apr 03 12:11:44 ohh sorry Apr 03 12:11:48 ofc it isn't -large Apr 03 12:11:50 its -land Apr 03 12:12:06 Layout-sw600dp-land Apr 03 12:13:02 by the way I did a if (getConfiguration widthDP yada yada > 600d && getConfiguration yada yada = landscape) toast 'VICTORY' Apr 03 12:13:07 and it did... Apr 03 12:13:10 the buttons still didn't work Apr 03 12:13:17 so it did apply to the sw600dp-land folder Apr 03 12:13:24 but it didn't work untill I removed the sw600dp part Apr 03 12:15:21 whats probably also even more strange is the fact that it created the activity correctly.. appel1 Apr 03 12:15:30 in the sw600dp-land folder Apr 03 12:15:34 its just the buttons that made it crash Apr 03 12:15:40 and they are identical to the layout xml Apr 03 12:15:45 i dont think sw600dp hits on a galxy s3 Apr 03 12:15:50 i could be wrong i guess though Apr 03 12:16:06 what was the crash Apr 03 12:16:22 it went black Apr 03 12:16:29 10-15sec then came back crashed Apr 03 12:16:31 app stopped working Apr 03 12:16:37 crashed or app not responding? Apr 03 12:16:43 crashed Apr 03 12:16:52 mike I have an idea so tell me if this might be true Apr 03 12:16:54 there should be a stack trace in the log Apr 03 12:17:20 i have like literally 2 minutes before i have to go prep for an interview Apr 03 12:17:26 in the Activity I check if it applies to the Swd600dp-land folder.. by asking for orientation and WidthDP.. if it does I use the sw600dp-land Apr 03 12:17:42 if galaxy doesn't support the sw600dp folder.. but clears the check in the activity Apr 03 12:17:50 that might be it? its trying to reach a folder it can't use ? Apr 03 12:18:16 ok.. well thx anyway :) Apr 03 12:19:51 hmm I see other people whining about this exact folder name not working with galaxy devices Apr 03 12:20:24 thats a little annoyning Apr 03 12:22:51 Can i force the Suggestions to show in a SearchView? It aparently only shows when i type the second letter... Apr 03 12:24:26 appel1 .. the galaxy 3 though is 4.1.1 and the sw600dp-land supports to 3.1 Apr 03 12:39:00 hi all Apr 03 13:30:03 Does anyone know why I got "Problems cleaning up history store" Apr 03 13:32:04 you got history problems, I feel bad for you son. I got 99 problems but a log ain't one. Apr 03 13:35:11 lov, shit. Are history problems bad? Problem with eclipse itself? Apr 03 13:38:30 I don't actually know what your problem is because it's incredibly vague Apr 03 13:38:36 I just wanted to channel my inner kanye Apr 03 13:38:52 I'm the voice of my generation. Apr 03 13:38:58 it's important to get it out very once in a while or it will consume you Apr 03 13:39:14 Ah, there we go./ Apr 03 13:39:19 I'm the +voice of my generation. Apr 03 13:39:31 lol Apr 03 13:39:37 Jay Z. Just sayin. Apr 03 13:39:43 Kanye is a punk. Apr 03 13:40:00 no this is true. Apr 03 13:40:04 kanye is really objectively terrible Apr 03 13:40:10 but he does the WACKIEST things! Apr 03 13:40:21 he's like your drunk uncle at a holiday party! Apr 03 13:40:22 He does. Apr 03 13:40:27 Lmao a leather skirt at the relief concert for sandy. Apr 03 13:41:47 lov, ohh yeah and its not my realy in my project. the error came from the ABS library. Apr 03 13:42:06 awkword thoguh. My device was locked when it was generated Apr 03 13:43:15 who runs ChanServ? Apr 03 13:56:08 lol Apr 03 13:57:01 this question has probably been asked a million times: asynctask, progressdialog, handling rotations Apr 03 13:57:54 got an async task, my activity gets rotated, it calls cancel on the task, the onCancel of my asynctask tries to dismiss a progressdialog and gets 'view not attached to window manager' illegalargumentexception Apr 03 13:58:16 Guys, any particular reason my app hangs after sending an intent to open browser? I've tried putting it into asynctask, no use Apr 03 13:58:36 No errors, nothing, just "04-03 17:49:31.343: I/InputDispatcher(248): Dropped event because input dispatch is disabled." occasionally in console Apr 03 13:58:56 App doesn't respond until I rotate screen or otherwise recreate the activity Apr 03 13:59:50 how does dex --incremental work? does it operate on a jar-by-jar basis? Apr 03 14:07:18 Anonyneko: tried breaking in the debugger to see where it's stuck? Apr 03 14:11:38 It wasn't and I was just being an idiot, my own bug, fixed it Apr 03 14:11:50 ok Apr 03 14:18:11 Anonyneko: why are you doin git in an AsyncTask anyways? Apr 03 14:18:15 *doing it Apr 03 14:24:11 question about DB, not android specific: why the need to contruct SQLs using several 'helper' functions/methods, which takes twice as long to write as appending some Strings together? Apr 03 14:24:47 because there's no guarantee that the underlying database will actually use sql, or whatever flavor of sql you expect. Apr 03 14:24:56 using the abstraction layer future proofs your app Apr 03 14:24:59 SeriousMatters: because appending strings together is asking for it even when the DB uses SQL Apr 03 14:25:06 that too. Apr 03 14:25:42 at the *very* least use parametrized queries (with SQL text being template that is filled in by helper functions) Apr 03 14:26:33 i thought there was exec raw SQL? Apr 03 14:26:46 .rawQuery Apr 03 14:26:52 if you insist on writing raw sql Apr 03 14:27:01 yes, there is rawquery(). but that's not my question. Apr 03 14:27:41 I'm trying to figure out the all the helper classes. and it seems to be more complicated than learning sql itself. Apr 03 14:30:19 mikedg: and there's presenting yourself with seasoning to starved carnivores Apr 03 14:30:47 SeriousMatters: seriously? Apr 03 14:30:52 what classes are you looking at Apr 03 14:32:25 stork: use a Loader Apr 03 14:32:34 also, don't use dialogs ;) Apr 03 14:32:53 too late to not use dialogs, the project is riddled with them (and the client likes them :/) Apr 03 14:33:35 don't use dialogs, use notifications Apr 03 14:34:19 in future projects I plan to adapt the Toast system to stack them progressively further up the screen (sorta like dumping lines to a console), I call it the Toaster Apr 03 14:35:27 stork: brilliant Apr 03 14:35:30 please release a library Apr 03 14:35:35 it will blow actionbarsherlock away Apr 03 14:35:41 lol Apr 03 14:35:57 yeah I'll put it on github when it's done Apr 03 14:36:07 Toaster.pop() should show all your toasts at once Apr 03 14:36:08 it's gonna be the Next Big Thing for sure Apr 03 14:37:12 stork: will you port it to other platforms? Apr 03 14:38:09 I think once the code is out there I will try and recruit others to do that, I'm only really a Certified Qualified Professional in android Apr 03 14:38:14 JakeWharton: can you port ABS to iOS? Apr 03 14:38:17 Toaster.setFireToHouseFromNapkinFallingOnTop(); Apr 03 14:38:27 mikedg: ABS is a port of iOS UINavigationController Apr 03 14:38:35 maybe you could integrate it into ABS (: Apr 03 14:38:36 * dreamreal is wrestling with AsyncTask Apr 03 14:38:36 that would have made the best april fools day joke Apr 03 14:38:46 damn! Apr 03 14:38:53 DAMN Apr 03 14:39:01 why didn't we have this sarcastic conversation sooner! Apr 03 14:39:13 I work too much lately Apr 03 14:39:16 captain retrospective to the belated-rescue Apr 03 14:39:16 i dont get on irc enough Apr 03 14:39:26 we can start it for next year Apr 03 14:39:36 or build a time machine to post it on monday Apr 03 14:43:52 anyone might be able to shed some light on a weird error I had with my apk ? Apr 03 14:44:31 hm... some tutorials recomment to is to write a contract class to store all the public final static names; Apr 03 14:44:32 a SQLiteHelper extends SQLiteOpenHelper per table; Apr 03 14:44:32 a class to contain all the insert,update,delete statements; Apr 03 14:44:32 then a third class for the actual object (model) we want to use; Apr 03 14:44:32 and finally the activity or wherever our logic is. Apr 03 14:44:49 tried my half done app on a galaxy 3 device today.. it worked perfectly on a virtual device.. but the galaxy crashed when attempting to use the layout-sw600dp-land folder I made Apr 03 14:45:01 it started out the activity alright but crashed when I tried to use buttons Apr 03 14:45:08 removed the 'sw600dp' part.. and it worked fine Apr 03 14:45:13 P3nnyw1se: what does the stack trace tell you? Apr 03 14:45:22 P3nnyw1se: hey im sort of back Apr 03 14:45:25 back to the stacktrace Apr 03 14:45:43 it works without a flaw on the virtual device Apr 03 14:45:46 as said Apr 03 14:46:54 P3nnyw1se: same api level and screen properties as on the s3? Apr 03 14:47:11 yes.. and my app supports to 3.2 .. the galaxy was 4.1.1 Apr 03 14:47:52 and just to make it clear.. it actually startsup the activity as supposed to.. Apr 03 14:47:53 I mean, really? we want to use 3 classes + 1 per table for something otherwise a 10 liner? Apr 03 14:48:00 but the functionality is gone.. the buttons make it crash Apr 03 14:48:22 P3nnyw1se: so you do something wrong in the code that handles the button press Apr 03 14:48:24 as soon as sd600dp was removed it worked completely as intended with the buttons Apr 03 14:48:29 so I dont think so Apr 03 14:48:30 appel Apr 03 14:48:42 sw600dp even Apr 03 14:48:56 remade the layout into layout-land and had no troubles Apr 03 14:49:14 put back swd600dp .. makes the activity start but any clicks make it crash Apr 03 14:49:35 P3nnyw1se: without a stacktrace or code it's very difficult to guess what goes wrong Apr 03 14:49:53 how can I supply one when it doesn't have an error in the code Apr 03 14:50:15 P3nnyw1se: you get it from the device Apr 03 14:50:22 Hi, beginner here. I cloned https://android.googlesource.com/platform/packages/inputmethods/LatinIME/ (the standard soft keyboard) and tried to run it on an emulated device. it fails with "Failed to install SettingsActivity.apk on device 'emulator-5554!" What am I doing wrong? Apr 03 14:50:40 well It wasn't my device but can send him APKS Apr 03 14:50:46 where is he suppose to pull the stacktrace from then ? Apr 03 14:51:02 P3nnyw1se: adb logcat Apr 03 14:51:09 P3nnyw1se: or build some error reporting into the app :) Apr 03 14:51:40 so in other words I dont get the stacktrace :) Apr 03 14:51:45 Is it possible to load a single view (not viewgroup) from xml resource? Apr 03 14:53:20 appel1 I placed toasts in the MainActivity inside an if(getConfiguration yada yad orientation landscape = true).. and when started in landscape mode they got displayed.. Apr 03 14:53:24 paulovap: yes Apr 03 14:53:52 so it must have reached the sw600dp folder.. but the buttons lost functionality.. which then again worked the minute I removed 'sw600dp Apr 03 14:53:58 thats as narrow as I got Apr 03 14:54:11 mikedg: should i put the xml in the layout folder? Apr 03 14:54:17 yes Apr 03 14:54:48 P3nnyw1se: have you tried to configure an avd with the same api level and screen properties as a s3 to see what happens? Apr 03 14:54:55 yes Apr 03 14:55:01 it works as supposed Apr 03 14:55:11 with the sw600dp Apr 03 14:56:39 removing sw600dp .. made all the code work, was able to hit all buttons and get the reactions expected Apr 03 14:57:00 but I checked the device myself.. its newer than the manifest has as minSDK Apr 03 15:00:20 mikedg: it works, thanks. Apr 03 15:00:55 well on to something else I guess.¨ Apr 03 15:01:22 JakeWharton was just about to mention you Apr 03 15:01:29 mikedg dont know if you ever ran into this Apr 03 15:01:33 P3nnyw1se: as I wrote, without a stacktrace or code all we can do is guess which probably wont help you much Apr 03 15:02:01 well maybe you had some idea where it was going.. connection to the specific device.. known errors with sw600dp or orientation change Apr 03 15:02:03 something Apr 03 15:02:14 problems with duplicate xmls in 2 layout folders Apr 03 15:03:53 I had some issues with the fact that I used 2 different way handling fragments.. in portrait mode I'm simply using a swith statement and using getSupportFragmentManager Apr 03 15:04:07 in landscape I'm using a viewPager that uses an adapter Apr 03 15:04:18 hmm, looks like dx --incremental really is only per-jar Apr 03 15:05:17 the thing is they use each their own fragment.. and I can't seem to find a way to reuse them.. so when in 'basket' and I go from portrait to landscape it doesn't create a new 'basket' on top covering all temporary inputs Apr 03 15:05:31 the only solution I made work was making the fragments static.. and you told me in here that was a horrible idea Apr 03 15:05:55 doesn't = does Apr 03 15:07:11 dont know if any of you ever had to struggle with this .. so each orientation has its own duplicate fragment Apr 03 15:07:18 and I want to avoid that.. JakeWharton mentioned it might be tricky Apr 03 15:07:31 due to the fragmentPageAdapter Apr 03 15:07:52 i would just skip using FragmentPagerAdapter and write your own PagerAdapter that does the transactions yourself Apr 03 15:07:57 this way you can re-use the proper tags Apr 03 15:08:27 oh god... Apr 03 15:08:39 conviva and adobe accessenabler both include gson inside their jar file Apr 03 15:08:52 this makes dex bitch so hard... Apr 03 15:09:15 pfn, if only we had ifndef tags Apr 03 15:09:34 well, no, it's because both adobe and conviva are both idiots Apr 03 15:09:46 they shouldn't be bundling dependencies in their jar Apr 03 15:10:20 pfn, i'm sure a ot of people export their dependencies Apr 03 15:10:31 for libraries, generally, no Apr 03 15:10:36 JakeWharton I'm not sure (I'm) able to do that Apr 03 15:10:38 ah, fair enough Apr 03 15:10:39 but can give it a try Apr 03 15:10:45 * pfn kicks these dumbasses Apr 03 15:10:47 pfn, libs typically require you to provide the deps, sure Apr 03 15:10:51 P3nnyw1se: yeah I'll give it a try sometime today Apr 03 15:11:59 android:configChanges="keyboardHidden|orientation|screenSize" Apr 03 15:12:04 (am i going to hell) Apr 03 15:12:34 yes Apr 03 15:12:50 guess while I don't feel sure I can write my own FragmentPageAdapter I could Apr 03 15:13:00 copy the source code.. from that and try and change Apr 03 15:13:01 the tag input Apr 03 15:13:10 who's coming with me Apr 03 15:13:24 I got my own suite Apr 03 15:13:30 stork: what that really says is, I haven't designed my activity to save state properly so i'm going to try to avoid the common cases. but, in all likelihood, I haven't covered them all so unexpected behavior will occur on more advanced ones. Apr 03 15:14:23 that's basically the gist of it, yeah :( Apr 03 15:15:17 and I don't suppose we changed our minds about this static fragment situation ? :D Apr 03 15:15:27 Good way to spot those is to go to dev options and enable "Don't keep activities" Apr 03 15:15:49 P3nnyw1se: no because that is wrong Apr 03 15:16:16 P3nnyw1se: give me 20-30m and I'll send you code Apr 03 15:17:08 I'd be more than happy to attempt it myself with a push in the right direction.. like a blind man attempting to find a pole on a soccerfield Apr 03 15:19:29 is there any way to have the same activity launch in one instance as a normal style and in another themed as a dialog ? Apr 03 15:19:41 https://twitter.com/johanejohansson/status/319327910295134209 Apr 03 15:20:34 tl;dr - clear is a popular iOS app with no android presence, somebody wrote an android presence and is releasing it for free, and apparently this is a bad thing? Apr 03 15:20:37 StingRay_: two entries in the manifest with different themes, public DialogWhateverActivity extends WhateverActivity {} Apr 03 15:21:26 JakeWharton: was just looking at for manifest, ever used that ? Apr 03 15:21:36 yes, but not for this case Apr 03 15:21:42 that'll probably work too assuming you can give it a theme Apr 03 15:22:35 JakeWharton: in the MenuDrawer library that SimonVT and yourself have created, what determines how wide the side menu is? Apr 03 15:22:38 hmm just wondering how i would call an alias name to start, since I take it they are not imported into android as class names Apr 03 15:22:51 Ankhwatcher: I did almost nothing and SimonVT is here to answer you Apr 03 15:23:27 R.attr.mdMenuSize / MenuDrawer#setMenuSize Apr 03 15:23:47 SimonVT: JakeWharton cool, thanks Apr 03 15:26:30 Jake Wharton is this ture? : Apr 03 15:26:32 "The FragmentPagerAdapter already caches the Fragments for you. Each fragment is assigned a tag, and then the FragmentPagerAdapter tries to call findFragmentByTag. It only calls getItem if the result from findFragmentByTag is null. So you shouldn't have to cache the fragments yourself." Apr 03 15:26:38 true Apr 03 15:26:45 yes Apr 03 15:26:48 hm Apr 03 15:26:49 but that's still not what you want Apr 03 15:27:42 The Fragments supplied by the FragmentPagerAdapter are auto-tagged when they're instantiated. You can retrieve the tag with this method: Apr 03 15:27:42 private static String makeFragmentName(int viewId, int index) { Apr 03 15:27:42 return "android:switcher:" + viewId + ":" + index; Apr 03 15:27:42 } Apr 03 15:27:45 got that off the net Apr 03 15:28:56 yes, or you could have looked at the source code Apr 03 15:29:07 i'm 30% through the code i'm going to send you Apr 03 15:29:44 ok well I wasn't sure what to look at.. dont take it as me being inpatient posting these things, I'm not.. just trying to dish up some easy solution Apr 03 15:29:47 JakeWharton, I got an error once It never happened again. I'm not sure if its a bug in ABS or just me.. "Could not read metadata for 'C:\Projects\.metadata\.plugins\org.eclipse.core.resources\.projects\library\.indexes\history.index'. Unexpected version: 0." Apr 03 15:30:01 that would be an Eclipse problem Apr 03 15:30:09 JakeWharton, Alright thanks. Apr 03 15:41:04 I have a button as app widget and I try to reduce the margins with negative values for both padding and layout_margin, but both of those also remove the border when button is pressed. Why is that? Apr 03 15:41:53 SimonVT: yay! I got it working! Now my menu doesn't take up the whole screen Apr 03 15:42:32 hey JakeWharton I think I found one of those edge cases you were talking about already (: Apr 03 15:43:16 Is there another way I can reduce the margin of the widget and keep the border for when button is pressed? Apr 03 15:43:47 The "edge case" where the framework kills your process cus it needs the memory? Many seem to forget that when they handle config changes Apr 03 15:44:32 :| Apr 03 15:45:11 Maybe the debug tools should include something to restrict the memory on your device Apr 03 15:45:32 Why? oO Apr 03 15:45:51 Ankhwatcher: you can sim a oom action on your app quite easy Apr 03 15:46:30 if thats what you mean Apr 03 15:46:39 THere is a Background process limit option Apr 03 15:46:58 well yeah but you dont want that on all the time Apr 03 15:47:04 or maybe you do :) Apr 03 15:47:04 the app i'm releasing is bad and i feel bad :( Apr 03 15:47:16 stork: why is it bad ? Apr 03 15:47:28 will a user think it's bad ? Apr 03 15:47:40 a user thinking? heresy Apr 03 15:47:57 they probably won't notice, it's basically a website in an app. but a lot of things done aren't really good practice Apr 03 15:48:15 well least it's not a phonegap thing Apr 03 15:48:22 so thats a + Apr 03 15:48:37 unless you just using a webview :) Apr 03 15:48:43 then thats a - Apr 03 15:49:03 JakeWharton: sorry to bug you again but do you have any resources on async events + properly handling config changes? preferably something that covers asynctaskloaders Apr 03 15:49:05 StingRay_: surely that depends on whether or not javascript is turned on Apr 03 15:49:13 can you add code to somebody else's pull request on GitHub? Apr 03 15:51:58 Ankhwatcher: javascript ? Apr 03 15:52:38 StingRay_: you know, the virus installation toolkit Apr 03 15:57:19 I'm confused on how the android sharedpreferences interact with settings I create in a preferenceScreen XML file. I have the XML storing variables in @array/settings_list and then I'm not sure how to access them. From what I can tell the docs say I should use getSharedPreferences, but I don't see how these are connected. Can anyone point me in the right direction? Apr 03 16:00:43 I guess my question is, where are the settings that are selected in XML stored? Apr 03 16:05:54 preferences.xml or something Apr 03 16:06:06 in yourApp/data Apr 03 16:06:07 correct or something Apr 03 16:06:18 prefs.xml ? Apr 03 16:06:46 but you access them by name Apr 03 16:09:32 getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE).getString("prefname") Apr 03 16:09:59 getDefaultSharedPrefs is what you probably want Apr 03 16:10:02 Or the easy way, PreferenceManager.getDefaultSharedPreferences(context) Apr 03 16:10:24 ah, getDefault Apr 03 16:10:49 I think that's what I was looking for Apr 03 16:10:51 thanks Apr 03 16:10:57 getDefault now worky accross lib project though ? Apr 03 16:11:20 ? Apr 03 16:12:06 It does exactly what you wrote Apr 03 16:12:13 Except it appends _preferences to the package name Apr 03 16:12:24 But yeah, wtf did you mean? oO Apr 03 16:12:55 I seem to remember problems when accessing prefs from a lib project…. Apr 03 16:13:09 as in set in main package activity, read in lib Apr 03 16:13:16 maybe remembering wrong Apr 03 16:13:18 Pretty sure you remembered wrong Apr 03 16:13:23 Or you did it wrong Apr 03 16:13:32 maybe even both Apr 03 16:13:56 Either way, lib projects should probably use their own preference file.. And expose methods to set/get those preferences instead Apr 03 16:14:38 To avoid conflicts, etc Apr 03 16:16:08 SimonVT: you know I was attempting to explain the screen flicker thing with your drawer ? Apr 03 16:16:40 Hm? Apr 03 16:16:56 I think it's cause the resting position of the view is moved to the left when hidden, and if the view in front is changed in or around that time, thats when it happens Apr 03 16:17:10 hard to explain, need to do a video or something Apr 03 16:17:13 You'll have to remind me what you're talking about Apr 03 16:17:25 I asked about slide time Apr 03 16:17:38 lets say it works out at 400ms Apr 03 16:17:59 if I close it, and delay a screen update till it's closed Apr 03 16:18:10 sometimes I get a flicker of the drawer come though Apr 03 16:18:14 like just 1 frame Apr 03 16:18:51 I think that occurs at the point of it moving from right, to a rest position on the left Apr 03 16:18:58 while hidden Apr 03 16:19:02 I think Apr 03 16:19:56 Did you set a background color for the content area? Apr 03 16:20:34 well I have a bg color on the main view yes Apr 03 16:21:51 Sounds strange then Apr 03 16:21:56 Create a test case :) Apr 03 16:22:31 can only replicate on 4.2.2 btw Apr 03 16:22:36 but yeah I will Apr 03 16:23:04 Haven't seen it myself Apr 03 16:23:09 And I do all my stuff on 4.2.2 Apr 03 16:41:29 Can a fragment actiivty edit the textviews of a fragment? Apr 03 16:41:52 Yes, but it shouldn't Apr 03 16:42:18 I need to bind "Yes, but it/you shouldn't" to a hotkey Apr 03 16:42:54 SimonVT: why shouldn't it Apr 03 16:42:58 Maybe there's an irc client that can substitute keywords with sentences Apr 03 16:43:14 Can a Service edit the textviews of a fragment? Apr 03 16:43:39 Thanks. Ill just make those variables static and optain and set them in the fragment Apr 03 16:44:32 Call a method on your fragment with the new text Apr 03 16:44:47 Then let your fragment interact with its views Apr 03 16:44:59 mikedg: i would say because you dont want to couple the fragment to the activity Apr 03 16:45:40 f2prateek_ so your basicly saying that a fragment should be independent? Apr 03 16:46:10 agy2154: as much as possible yeah Apr 03 16:46:27 agy2154: that's also where an event bus such as otto comes in handy Apr 03 16:46:35 +1 to that! Apr 03 16:47:55 more wrestlemania tickets are available Apr 03 16:48:10 why isn't there an event train Apr 03 16:48:40 i feel like a train is more reliable than a bus Apr 03 16:49:16 * fredcooke noticed that the trains in China were made in Europe Apr 03 16:49:38 why stop there? airplanes are statistically the most reliable Apr 03 16:49:50 trains are great, unless you're travelling with deutsche bahn, which are always late... Apr 03 16:50:15 How do you apply a colour filter to represent state changes to any button? Apr 03 16:50:41 Do you have to do some by implementing an OnTouchListener for each button? Or can you generalize it? Apr 03 16:51:05 My problem is that i have to fragments that rely on the same math. Thats why I thought that the activity should be sharing the information with both instead of the two fragments doing all the math in their onResume meathods. It was working great except i thought that it might be a bit slower on small devices since it would be calculating when it already did the math before if the user switches back to the activity. And I can't Apr 03 16:51:05 put it in the on create because the math wouldn't be updated if the user returns from the settings where he changed some values. Apr 03 16:51:14 *two Apr 03 16:52:07 So I'm trying to use switch on a String and Eclipse tells me I "Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted" Apr 03 16:52:49 If I let Eclipse change project compliance and jre to 1.7 I get Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties. Apr 03 16:53:11 Android doesn't run on a standard jdk. It doesn't use 1.7 Apr 03 16:53:21 you have to use java code compliant with java 1.6 Apr 03 16:53:26 ok then Apr 03 16:53:28 thanks Apr 03 16:53:33 Hi, just a quick question I couldn't find: If I load resources several times, are they parsed/decoded several times (wouldn't make much sense, else than saving memory)? Should I cache them myself (Animations etc.)? Apr 03 16:54:09 Does android cache things incase the condition is the same? Apr 03 16:55:27 Hm, well thats a point. I'd need to take the configuration into account when caching... Apr 03 16:55:54 flan3002, Oh shit my bad. I was actually asking a similar time. Apr 03 16:56:04 *Actualy im asking the same question. lmao what a coincindence Apr 03 16:56:33 I thought I'd would make sense, because resources can't change in runtime... Apr 03 16:56:44 * it Apr 03 16:58:53 agy2154: Do you know if they are read everytime from disk? Or what AnimationUtils.loadAnimation does? Apr 03 17:03:15 flan3002, not really Apr 03 17:04:11 So if Build.VERSION_CODES for JELLY_BEAN is 4.1 and JELLY_BEAN_MR1 is 4.2, what exactly are 4.1.1 and 4.1.2? Manufacturer Specific? Carrier Specific? Apr 03 17:04:16 IS there anyway I can select a menutab to be the vissible one? Apr 03 17:04:30 capella, 4.1.1 is still jellybean Apr 03 17:04:37 there are like bug fixes and shit Apr 03 17:04:52 agy2154: I guess, due to memory shortage they are not cached by default (At least not the bigger ones). Apr 03 17:05:36 capella: same thing as gingerbread Apr 03 17:05:42 no significant api changes Apr 03 17:07:21 thanks :p Apr 03 17:10:47 when i boot in android recovery mode, everytime i reboot the board it goes into recovery Apr 03 17:11:30 rsv: wrong place Apr 03 17:11:44 #android or #xda-devs or something Apr 03 17:11:47 i thought android-dev is the place Apr 03 17:11:57 this is app development Apr 03 17:11:57 okay, thanks Apr 03 17:12:00 or #android-root ? Apr 03 17:12:15 never understood the "root" bit Apr 03 17:12:37 I know what root is, just there needs to be a channel for rooting ? Apr 03 17:12:38 i think its for ppl who need a root Apr 03 17:13:58 StingRay_, I think that people who come to IRC for help on root'ing tend to lack significantly in the clue department. Apr 03 17:14:36 although, at this point, anyone who can configure an IRC client, likely is more on the clueful side, from a relative point of view. Apr 03 17:14:37 StingRay_: yes, or else you get swarms of people in here how to flash SomeJackassRom 7.28.18.61 [STABLE] [BUGLESS] [NEW RADIO] to their OpenMoko Neo running a kernel built by RMS Apr 03 17:15:02 can imagine it now "I dont know what root or rooting is, I just want it…..now! help, where can I download it?" Apr 03 17:15:20 StingRay_: those are exactly the people that come in here, and why we made #android-root Apr 03 17:15:21 Instead you get people in here "oh, didn't read the topic" Apr 03 17:16:31 which is somehow worse than the hordes of people asking stupid questions without googling them first Apr 03 17:16:40 we don't mind idiots, as long as they are relevant idiots :D Apr 03 17:17:19 The important thing is that we have someplace to send them, with a prompt bit of "help" if they don't get the hint. Apr 03 17:17:19 I think the best questions are those that are not questions, rather statements Apr 03 17:17:43 "I'm not sure how to do x?" Apr 03 17:17:45 how modest Apr 03 17:18:02 I mean, technically this is for any kind of android development, including farmeworks hacking, etc, but the number of winzippers just causes the SNR to get out of whack Apr 03 17:18:19 *frameworks Apr 03 17:18:40 farmeworks are for canadiancows Apr 03 17:18:48 lov: yeah, android platform development is so low-frequency that it really makes sense to send them to more async communications channels (android-platform@ on Groups, for example) Apr 03 17:26:50 root root for the home team Apr 03 17:32:30 So, HttpURLConnection's getHeaderFields method will return a Map> of key/values for responses. But how should we display header values when we have lists of them? Apr 03 17:32:39 Why, we should do a toString of the list and strip off the bookending [ ] of course. Apr 03 17:32:46 I physically shuddered when I figured out what was going on Apr 03 17:34:39 seems legit Apr 03 17:35:15 that's awful Apr 03 17:35:32 what's wrong with it Apr 03 17:35:42 much cleaner code than looping and bringing in other data structures Apr 03 17:36:06 mikedg: yeah, TextUtils.join(..) is far too complicated Apr 03 17:36:23 How can I get the item from a ListView connected with an adapter if the adapter data changes? Apr 03 17:36:35 and then suddenly, list.toString does <1,2,3,4,5> Apr 03 17:36:56 theodor87: get it before the data changes? Apr 03 17:37:19 No I want to get the data after the change Apr 03 17:37:49 You already have the data.. You were the one who told the adapter it changed Apr 03 17:39:07 In the setOnItemClickListener method I cannot use the adapter because it is not defined as final and if i define it as final then I cannot change the adapter Apr 03 17:41:03 Why would you change the adapter.. You just need to change its content when the data changes Apr 03 17:42:21 Anyway I can get the activity that was before thisone? Apr 03 17:42:31 like if a user presses the back button Apr 03 17:43:22 you want the activity instance, or go back to that activity by code? Apr 03 17:43:27 theodor87: Apr 03 17:44:15 so these two flags have the same value - https://developer.android.com/reference/android/content/Intent.html#FLAG_RECEIVER_REGISTERED_ONLY , https://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NO_HISTORY . That would be a bug? Apr 03 17:44:40 f2prateek_: why would it be a bug? a component shouldn't have both of them Apr 03 17:44:46 either it's a receiver or an activity Apr 03 17:44:46 so I set android:resizeMode="vertical" on my widget to make it fully expand on lockscreen, but how can I adjust whats being shown when in the "small" view? Atm it just shrinks the widget view Apr 03 17:46:18 evanc: I wanted to parse the intent flags back and see what flags the intent has. I guess its an exceptional case. Apr 03 17:47:20 evanc: but yeah not not a bug then Apr 03 17:47:43 this is why we should be using enums Apr 03 17:48:30 mikedg: yeah an enum would totally fix this. Except not. Apr 03 17:49:22 patches welcome Apr 03 17:49:53 I asked before how can I get an item from a ListView which is connected to an adapter with the method setAdapter. I cannot use the adapter in the setOnItemClickListener method because it is not defined as final and if I define it as final i will not be able to change the adapter Apr 03 17:50:24 theodor87: can you paste your code somewhere Apr 03 17:51:07 if you are changing the adapter by doing someAdapter = new Adapter(); and not setAdapter(new adapter()) something is funky Apr 03 17:51:18 http://pastebin.com/sLKRqv1r Apr 03 17:51:51 mikedg: if you're changing the adapter at all, something is generally funky Apr 03 17:52:00 I specifically said I used setAdapter Apr 03 17:52:13 yeah, but we said you probably shouldn't be :P Apr 03 17:52:33 evanc: i thought the recommended way was to use a loader and then call setadapter? Apr 03 17:53:13 mikedg: ah yeah I guess if you're using loaders, that probably changes Apr 03 17:54:44 maybe i imagined this, the loaders docs only use cursors as an example and those use swapcursor Apr 03 17:54:45 mikedg : I pasted the link to my code. Can you check it please Apr 03 17:54:55 mikedg: yeah, it looks like they just swap the underlying data store Apr 03 17:54:58 which makes way more sense to me Apr 03 17:55:16 theodor87: i see no reason that that code would complain about your adapter being final Apr 03 17:55:17 Other lock screen widgets show different stuff for small mode and expanded mode. How can I do that? Mine just shrinks and expands the whole thing :P Apr 03 17:55:34 unless it's a local variable in which case, why not just declare it when you set it? Apr 03 17:55:35 Quacked: dashclock is open source, go look how it does it Apr 03 17:55:43 hey guys, I'm writing to the CallLog.Calls.CACHED_NAME column, and I wrote a test to read back what I wrote. So I know I'm updating the rows. Yet, the device's call log doesn't seem to be using CACHED_NAME, and it doesn't appear there... Is it only using the contacts to display the name of the caller in the call log? Apr 03 17:55:50 If I use it as final by definition i will not be able to update the data Apr 03 17:56:01 I'm on a galaxy nexus here Apr 03 17:56:06 I don't know if implementations vary Apr 03 17:56:23 theodor87: what am I supposed to be looking for here? This, at first glance, looks like it should probably work Apr 03 17:56:25 you can update the data you just can't assign that variable to a different object Apr 03 17:56:43 can you paste more code Apr 03 17:56:48 ok Apr 03 17:57:27 JakeWharton: so much to browse through to find what I'm looking for :| Apr 03 17:57:46 Quacked: it's probably in the widget provider Apr 03 17:58:02 look if it is reading its size (options changed broadcast or something) Apr 03 17:58:04 Quacked: like a box of chocolates, like is like that Apr 03 17:58:05 thanks, I'm checkin it Apr 03 17:58:19 do I have to do something to get other apps who are using the CallLog content provider, to receive updates? Apr 03 17:58:52 mikedg : http://pastebin.com/0kNmhhvQ Apr 03 17:58:59 Quacked: yeah, WidgetProvider is overriding onAppWidgetOptionsChanged so that's a promising start Apr 03 17:59:25 line 97 looks like it's probably a big issue Apr 03 18:00:08 no I removed some code that was not relevant Apr 03 18:00:16 i would say, don't make adapter a field Apr 03 18:00:26 oh, maybe I can call notifyChange, with nulls. Apr 03 18:00:27 hmm Apr 03 18:00:41 sorry guys, I need to get a rubber duck. Apr 03 18:00:43 make it final and keep it local to oncreate Apr 03 18:00:54 tdignan: why a rubber duck? Apr 03 18:00:55 evanc: thank you Apr 03 18:01:12 ok i will try Apr 03 18:02:12 mikedg: so I can talk to it :) Apr 03 18:02:41 http://en.wikipedia.org/wiki/Rubber_duck_debugging Apr 03 18:04:02 hi Apr 03 18:04:32 i have some questions about measuring the time a cpu spends in power states Apr 03 18:05:05 i've been trying to measure them using systrace and the data reported by cpuidle in sysfs .... but i'm getting inconsistent results Apr 03 18:05:32 I use the rubber duck method for asking questions.. makes me appear smarter than I am Apr 03 18:07:35 KungFuHamster: i start by asking the dumbest possible questions.. I was reading an article another day about someone reporting a bug "the images don't work!!!!" -- images were turned off in his browser. Apr 03 18:08:25 so in this app I'm writing there are four occasions where I need to query a website for data, I'd like to avoid code re-use as much as possible, what's my best bet? Write a single abstract AsyncTask that takes a String/URL/URI as input and has an abstract process(InputStream) method then just inherit from that? Apr 03 18:09:31 so I'm trying to use getDefaultSharedPreferences() but I get the error "The method getDefaultSharedPreferences(MainActivity) is undefined for the type MainActivity". Apr 03 18:09:44 Does anyone have any ideas why? Apr 03 18:10:01 Because there's no getDefaultSharedPreferences method in Activity Apr 03 18:10:16 right, but I didn't think I had to define it? Apr 03 18:10:22 https://developer.android.com/index.html#q=getDefaultSharedPreferences Apr 03 18:10:25 oh wait. Apr 03 18:11:22 heh, silly mistake. Apr 03 18:11:23 thanks. Apr 03 18:18:49 i should probably just ditch AsyncTasks altogether... Apr 03 18:19:17 you probably don't want to AVOID code re-use. You want to promote it. Apr 03 18:19:27 and yes, you can use an asynctask for that as you stated. Apr 03 18:19:35 alternately, use a service :D Apr 03 18:19:39 ugh, sorry. I didn't mean avoid. Apr 03 18:22:21 am I going to run into issues modifying the ui from AsyncTasks? rotations and stuff killing/recreating my activity Apr 03 18:23:32 Yeah, that's another thing. You're going to reach a point where it makes more sense for you to have an MVC kind of architecture, etc. Apr 03 18:23:42 (Otto solves this issue) Apr 03 18:24:33 will people stop naming their frameworks and projects after people? Apr 03 18:24:37 I use Otto for communication between my service and UIs, but I guess it'd make sense to use it for this case as well. Apr 03 18:24:39 makes this shit IMPOSSIBLE to google. Apr 03 18:25:03 I thought Otto was a good programmer... "Otto solves this issue" well bully for Otto Apr 03 18:25:09 lov not reall ? Apr 03 18:25:12 y Apr 03 18:25:13 http://square.github.com/otto/ Apr 03 18:25:32 StingRay_: I'd like to know the appropriate term with which to google for otto, since I couldn't find it at a glance Apr 03 18:25:35 Just an event bus Apr 03 18:25:37 "name" "context" = google 1st link 99% Apr 03 18:25:47 aside from "oi JakeWharton `o's otto then?" Apr 03 18:25:51 "android event bus"? Apr 03 18:26:06 is it ever possible that otto would push an event to the bus while my activity is being recreated due to a rotation event or whatever? Apr 03 18:26:09 event bus? I rode one of those in Vegas Apr 03 18:26:10 just "otto android" Apr 03 18:26:21 Unless stated otherwise, a library is most likely made by JakeWharton Apr 03 18:26:35 stork, nope Apr 03 18:26:40 is guava included in google drive api ? Apr 03 18:28:17 since Theodor87 left without a word Apr 03 18:28:25 i'm assuming we solved his problem Apr 03 18:28:27 amirite Apr 03 18:29:13 in that case I'd be pretty stupid not to use it. I can just fire off an AsyncTask, register my fragment to the bus in onCreateView, and wait for a result from my task to pop up, right? Apr 03 18:29:50 stork: you using it to pass sizable data ? Apr 03 18:30:13 define 'sizeable' ? Apr 03 18:30:15 rather than just a message system ? Apr 03 18:30:47 If you want to wait until onCreateView to register, you need a producer to ensure the result is delivered Apr 03 18:31:09 alternatively I could register in onCreate and just store the result locally? Apr 03 18:33:06 Not sure when(/how) Fragment#onCreate is called e.g. when restoring fragments Apr 03 18:33:06 it'll be a list with a few kb worth of strings in, nothing severe. Apr 03 18:33:22 i should probably look into thatm Apr 03 18:33:37 Fragment#onResume is posted from Activity#onResume, so events could potentially be posted between those two Apr 03 18:40:55 I wish keepassdroid allowed some sort of plugin api... dunno how it'd work Apr 03 18:41:06 I need to hax0r on keepassdroid some... I hate using it Apr 03 18:41:08 so damn inconvenient Apr 03 18:41:24 keep ass droid? Apr 03 18:44:12 very simple question: I want to referance an object in my xml file using R.id, and it says id is undefined Apr 03 18:45:15 import your.package.R Apr 03 18:45:59 I did that Apr 03 18:46:18 clean your project? Apr 03 18:46:35 it's brand new. i'm just starting :) Apr 03 18:47:16 ari_aaron: clean as in clean the project from eclipse Apr 03 18:48:06 pfn: isn't keepassdroid open source? you caould write that feature :) Apr 03 18:48:13 How do I specify column properties on a tablelayout? Apr 03 18:48:15 yeah, I just don't have time Apr 03 18:48:42 open an issue and maybe someone else will then Apr 03 18:48:50 i tried Apr 03 18:48:52 http://pastebin.com/W7j2eRmw Apr 03 18:49:21 xml? Apr 03 18:50:07 http://pastebin.com/aY6KGqGQ Apr 03 18:51:08 Hi again... Apr 03 18:51:31 Does android send a broadcast or something when an account is removed? Apr 03 18:53:40 There's an action for when a uid is removed, but I'm not sure if it's what I'm looking for... Apr 03 18:58:10 Vanscot: can you be a bit more specific about "when an account is removed" Apr 03 18:58:32 Ok, I have an application that has it's own implementation of AccountManagerAbstract.. Apr 03 18:58:52 That way, the user can add or remove an account from Accounts & Settings.. Apr 03 18:59:30 Other apps may use the stored user data, since I provide an api to use my services. Apr 03 18:59:48 omg omg omg an api Apr 03 18:59:53 i love APIs Apr 03 18:59:58 microsoft also love APIs Apr 03 19:00:00 oh shi Apr 03 19:00:03 But the api, as it runs in singleton mode, stores the user info for as long as the app is running.. Apr 03 19:00:10 they add 1500-2000 new classs per windows release Apr 03 19:00:17 i love it! Apr 03 19:00:17 Vanscot: I don't know, unfortunately. Good luck. Apr 03 19:00:50 The thing is to know, with an intentfilter or hook, when the user has removed the account. Apr 03 19:01:15 And do stuff, ie: tell other apps that the current credentials and data is useless. Apr 03 19:01:26 I see, thanks... Apr 03 19:02:13 f2prateek_: see anything? Apr 03 19:02:23 an acount from the android 4.x users Apr 03 19:02:32 or from a syncprovider? Apr 03 19:02:50 monsti: Not sure what do you mean. Apr 03 19:15:28 <.< Apr 03 19:21:48 stork: yes, Otto could call you at any time Apr 03 19:22:01 stork: we unregister in onPause and re-register in onResume and then use @Produce-rs Apr 03 19:24:04 covering all yo bases. Apr 03 19:24:31 I'm guessing that's with some service that is slightly more persistant than an asynctask? Apr 03 19:27:30 1. AsyncTasks should almost never be used for anything, and 2. it's for things cached in memory only Apr 03 19:28:19 so, AsyncTaskLoader? Apr 03 19:29:02 * g00s pings the play store from his froyo phone ;) Apr 03 19:31:44 Loaders are... interesting. They're probably a bit better than just an AsyncTask, at least Apr 03 19:32:10 AsyncTaskLoader uses an AsyncTask, surprisingly Apr 03 19:32:38 the semantics of a loader abstract away the stupidness of AsyncTask thankfully Apr 03 19:32:50 they should have kep going with it and called it AsyncTaskCursorLoader Apr 03 19:32:51 That's true Apr 03 19:32:56 :D Apr 03 19:32:58 unfortunately loaders have the worst API and are nearly unusable Apr 03 19:33:17 somehow they managed to make an API less-logical and less-clear than fragments Apr 03 19:33:52 JakeWharton, redesign it and submit a patch? :P Apr 03 19:34:00 Loaders 2.0 Apr 03 19:34:08 i remember trying to read the source code for the cluster of classes that implement Loader / LoaderManager / etc; everything reached into everything else via package scope. Apr 03 19:34:21 the entire support library core is like that Apr 03 19:34:47 I have a nooby java question. I come from C++ where I can pass things by reference. From what I understand, things are passed by reference, but are immutable Apr 03 19:34:54 canadiancow: too broken to fix Apr 03 19:35:02 so if I pass in an object, modify it...the calling function won't see those changes, right? Apr 03 19:35:09 So I have to return the modified object, right? Apr 03 19:35:12 ProgramMax: no Apr 03 19:35:15 right ... as god intended Apr 03 19:35:28 I do C++ but I really dont like that feature Apr 03 19:35:41 if you pass an object and modify its state the caller's object will reflect Apr 03 19:35:53 when I tried it with an Integer it didn't work Apr 03 19:36:00 Integer is immutable Apr 03 19:36:04 maybe only some objects are immutable? Apr 03 19:36:05 oh kk Apr 03 19:36:10 alright, thank you :) Apr 03 19:36:12 Function parms should'nt be two way streets Apr 03 19:36:22 shitballs. So what are my options, if loaders are out and asynctasks are rubbish? Apr 03 19:36:35 capella: List names = Arrays.asList("foo", "bar"); Collections.sort(names); Apr 03 19:36:48 Use a Thread? Apr 03 19:36:53 Why asynctask are rubbish? Apr 03 19:37:21 AsyncTask is useful for loading an image off the filesystem once Apr 03 19:37:30 writing your entire networking stack on them? no thanks... Apr 03 19:37:33 same problem though isn't it? I'm still going to have to deal with undetermined UI state when my thread finishes Apr 03 19:38:05 stork: fire an event, cache the value in a field, and have an @Produce CurrentState method registered with the bus Apr 03 19:38:31 yeah but where do I register the producer? Apr 03 19:38:36 I'll ask my question again, the original one, not the one about tasks... Apr 03 19:39:08 Is there an intent/hook that is triggered when an user removes an account from Account & Settings? Apr 03 19:40:10 poor glorious bastard :( Apr 03 19:40:53 stork: we use singletons that register when they're created Apr 03 19:40:57 and live forever Apr 03 19:41:09 they are responsible for keeping last known state and managing all network interaction Apr 03 19:41:10 they never get unregistered o: ? Apr 03 19:41:15 no, why would they need to? Apr 03 19:41:27 I don't know I sorta have OCD Apr 03 19:41:58 they get unregistered at the same time you Application class is freed, when the process is killed! Apr 03 19:42:40 stork: lol@response Apr 03 19:42:45 (if I go down that route do I get to call it the bus station?) Apr 03 19:43:25 live forever? Apr 03 19:43:31 that sounds like carrier IQ kind of stuff to me Apr 03 19:46:59 so I fire off a thread when I need my data, the Thread in turn pushes results to the bus which my Bus Station is registered with, and the station @Subscribes, stores, and @Produces that same value produced by that thread? Apr 03 19:47:00 Is there a good way to detect what thread is hanging up the UI? Apr 03 19:47:53 I have something running on the main UI thread and it's causing the applicationt to freeze but I don't recall having anything do that Apr 03 19:49:16 the main ui thread is likely to be hanging up the ui Apr 03 19:49:19 try attaching the debugger? Apr 03 19:49:22 and yeah, what mikedg said Apr 03 19:49:56 Don't you usually get an ANR dialog and a message in logcat about some log file you can pull? Apr 03 19:52:32 mikedg well said. ;) Apr 03 19:53:11 Now to track what's running there that shouldn't :( Apr 03 19:54:23 SimonVT_: /data/anr/traces.txt Apr 03 19:55:59 would it be perverse if I added an optional Throwable field to the object I'm posting with Otto to handle possible errors? Apr 03 19:56:01 That's the one Apr 03 19:56:43 stork: Otto is an event distribution mechanism, it knows nothing about control, semantics of your app, ordering, etc. Apr 03 19:57:06 was just curious about best practices, this paradigm is all new to me Apr 03 19:57:08 evanc How would I accesss that file? Apr 03 19:57:29 stork Think of otto as a dumb down broker. Apr 03 19:57:34 it was a WWJWD question Apr 03 19:58:00 rburton-: adb pull /data/anr/traces.txt Apr 03 19:58:12 then open it in notepad.exe or whatever your editor of choice is Apr 03 19:58:32 awesome thanks Apr 03 19:58:37 Can't there be more than one file? Like traces-1, -2, etc? Apr 03 20:00:04 SimonVT_: no idea. I've only ever seen the one Apr 03 20:00:13 adb pull /data/anr Apr 03 20:00:13 Pretty sure logcat tells you anyway Apr 03 20:00:34 logCat shows a lot hard to find out what's worth anything in there sometimes Apr 03 20:00:52 rburton-: just let it show what is related to your app? Apr 03 20:02:52 This is interesting to see what traces.txt provides all the threads running Apr 03 20:16:43 JakeWharton: Is the Gist you created to use ABS with Robolectric 2 still up to date and kicking? Wanted to write some testcases today which make use of the Overflow menu etc. Apr 03 20:17:03 Btw, one info I did not come across yet was how to run Robolectric with different API versions Apr 03 20:19:23 I'm blind, just saw it in the Eclipse Setup guide. Apr 03 20:19:24 Tracked it down to the image loader. hmmm Apr 03 20:19:50 They run in the main group I think that maybe the problem Apr 03 20:22:50 does anyone know: does the new method for collecting stats on android versions depend on the user actually buying somethng from the store; or just browsing it ? Apr 03 20:26:09 kakazza: no, see their blog Apr 03 20:26:13 g00s: presumably browsing Apr 03 20:26:23 kakazza: it's down to one class being needed. the final version of v2 will need zero customization Apr 03 20:27:04 Hey folks. I made my first app, but I chose the wrong theme on start up (holo light dark action bar) how do I change that afterwards to Holo light? Apr 03 20:27:20 JakeWharton: I see. I saw the blog post, but your Gist is younger than their fork. "1 month" vs "23 days" Apr 03 20:28:05 So to run Robolectric with 2.3 and 4.2 will you need two different projects or will there be something enabling you to dynamically set that? Apr 03 20:29:49 there's an annotation that lets you change it per test Apr 03 20:30:22 kakazza: https://gist.github.com/xian/5052673 Apr 03 20:30:36 tracked it down. Not sure how, but dagger was throwing exceptions and those were being put in logcat Apr 03 20:30:46 Missing an entry point Apr 03 20:30:52 Thatt's the one I meant, your Gist seems to be younger than xian's. Apr 03 20:31:01 Even if he forked it. Apr 03 20:31:05 rburton-: you should use the compiler because things like that will fail your build Apr 03 20:31:10 the compiler jar, that is Apr 03 20:31:20 For development? Apr 03 20:31:22 Per test? :\ Was kinda hoping to run all tests on 2.3 and 4.2 Apr 03 20:31:30 rburton-: always Apr 03 20:31:30 Right now I just use Intellij to deploy it to the device Apr 03 20:31:42 you can still add it to the classpath as a provided jar Apr 03 20:31:43 WACOMalt: change it in your Manifest Apr 03 20:32:54 Do I just add dagger-compiler to the project? Apr 03 20:32:58 yes Apr 03 20:33:29 Okay let me try that. thanks, I have a pom entry for maven-compiler-plugin and dagger-compiler Apr 03 20:33:41 what version of the compiler plugin? Apr 03 20:33:43 How does dagger compiler work? Apr 03 20:33:50 0.9.1 Apr 03 20:33:53 f2prateek: hmm I cant choose holo light unless it's 11+ ? Apr 03 20:33:58 annotation processing & code generation Apr 03 20:33:59 :/ I'm building with 10 min Apr 03 20:34:03 i meant what version of the maven compiler plugin? Apr 03 20:34:20 2.3.2 Apr 03 20:40:24 so much cool stuff today; R 3.0; AeroFS out of private beta; Jetbrains working on cross-platform c++ IDE... Apr 03 20:40:48 capella: i'm not optimistic about Rust though :| Apr 03 20:41:02 kakazza: https://gist.github.com/JakeWharton/28550fe88e47c7f6c871 Apr 03 20:41:07 what is R Apr 03 20:41:09 g00s: #android-offtopic Apr 03 20:41:20 canadiancow: the statistics program, I assume? Apr 03 20:41:24 yeah Apr 03 20:41:55 a great way to slice & dice analytics from an app if you d/l it Apr 03 20:42:10 It seems like AsyncTask.THREAD_POOL_EXECUTOR runs in the Looper thread Apr 03 20:42:16 group Apr 03 20:44:05 rburton-: which version :| seems like there are different policies per android version Apr 03 20:44:28 i think that changed HC time Apr 03 20:44:31 My S3 seems to run these puppies which causes the main UI to freeze up Apr 03 20:44:48 So I'm going to provide the Universal Image Downloader its own exectuor to see Apr 03 20:45:03 let those puppies run ! Apr 03 20:45:12 or puppy soup! Apr 03 20:46:05 rburton-: are you training them for Puppy Bowl 2014 ? Apr 03 20:46:14 Damn right :0 Apr 03 20:54:25 When dagger says "Unable to create binding for" What exactly does that mean? Apr 03 20:54:44 you are @Injecting something you're not @Providing Apr 03 20:55:18 or something it doesn't know how to construct Apr 03 20:55:41 Okay so I have it in my entry points, it has a dependency itself Apr 03 20:56:07 wtf the dev console does not accept screenshots in 1280x768, the nexus4 resolution ? Apr 03 20:56:17 https://gist.github.com/rburton/5305201 Apr 03 20:56:28 bubbleguuum, yeah... i was disappointed by that Apr 03 20:56:40 that's el stupido... Apr 03 20:57:23 http://pastie.org/7305318 is this a terrible way of using Otto y/n Apr 03 20:58:11 I dunno if the handler is strictly necessary but I can't think of an easier way of posting the result back to the UI thread. Apr 03 20:59:34 I think I see what triggered this whole thing. Apr 03 21:00:53 I modified a dependency to take Context in the constructor Apr 03 21:01:08 Then I needed to define all the other injections via the constructor ;) durf. Apr 03 21:02:57 have nobody in here ever used a viewPager in one orientation and used the same fragments with e.g. buttons on the other orientation ? Apr 03 21:04:43 JakeWharton: Thanks. That's if the tests need a different implementation. But what if I just want to verify the same tests on different platforms? I wouldn't want to change all annotations all the time. Apr 03 21:07:59 Hi, I have an android device (one those google tv boxes) that has an infrared remote controller. Some of the remote control buttons have keycode 183, 185 and 186. In my application I have a webview. The problem I have is that in my webview.onKeyDown method, when one of those buttons is pressed, I get the event and its keycode (Let's say 183). But in the webpage, any onpress event receives the event with a keycode equal to 0. Any clue why the key Apr 03 21:07:59 code is getting lost ? Apr 03 21:08:41 kakazza: no clue, will ask Apr 03 21:08:56 kakazza: pretty sure that's a test-runner config though which requires more infrastructure Apr 03 21:09:06 you can't tell junit to just run something twice Apr 03 21:10:03 JakeWharton is Context injected automatically or would this require a @Provides implementation? Apr 03 21:10:15 Dagger knows nothing about Android Apr 03 21:10:31 pass the application context as a constructor argument to a module and @Provide it Apr 03 21:10:53 Okay totally makes sense since I do create my module via new M(Context) Apr 03 21:11:07 yep. exactly what we do Apr 03 21:11:31 we also use an annotation qualifier so when injecting you *have* to do @Inject @Application Context context; Apr 03 21:12:17 theoretically you could create child graphs per-activity that allowed injection of activity context (which we don't do, and usually isn't needed) so the annotation just drives the point home that it's the application context Apr 03 21:12:32 I like Otto. It's a weird paradigm (to me) but it seems a shitload more reliable than asynctasks and a whole lot incomprehensible than loaders. Apr 03 21:12:35 So you register the context's in ObjectGraph so it can be injected but you define a custom annotation to identify what context Apr 03 21:12:55 My problem really comes down to using Otto vs. sendBroadcast Apr 03 21:13:16 rburton-: right. in practice it's redundant since we don't have multiple contexts. it's just a sanity check so you know you're injecting the application context. and it'll fail your build if you try to just @Inject Context thinking it's the activity Apr 03 21:13:46 How would Otto work with services? Since they may be running or not Apr 03 21:13:58 if they're running, they're on the bus Apr 03 21:14:06 (assuming you registered) Apr 03 21:14:11 if not, they ain't (: Apr 03 21:14:12 They may not be running also right Apr 03 21:14:15 right Apr 03 21:14:17 That's sort of my concern Apr 03 21:14:29 well then an event bus might not be the proper communication channel for you then Apr 03 21:14:30 that's something I haven't quite figured out yet. Apr 03 21:14:35 Because the component is responsible for registering itself in the bus, but that component may not be running Apr 03 21:14:57 JakeWharton That's what I was thinking and I have to use sendBoardcast in this example Apr 03 21:15:04 and let the Android platform manage that Apr 03 21:15:53 At the moment, I have a callback for Retrofit that depends on Context to do the notification Apr 03 21:17:09 Sometimes event driven designs makes a person want to run and hide Apr 03 21:17:55 is an event bus right for your usage ? Apr 03 21:18:01 rather than binding ? Apr 03 21:18:18 I might settle on a combination of the two. Apr 03 21:18:53 Yes. Remember, Otto solves a specific problem, not all problems. We still use listeners and direct dependencies in some cases. Apr 03 21:20:08 you mean it's *not* going to get me laid? Apr 03 21:20:14 where's the downvote button on github Apr 03 21:20:15 One more question. I have my Dagger modules split up (view, callbacks, etc) I initialize ObjectGraph with a main Module. Now I have a case in my CallbackModule that needs reference to Context. I should just dow new CallbackModule in the create(Object... modules) Apr 03 21:21:04 StingRay_ Just trying to avoid allot of mixing. e.g., two ways to do notifications, etc. Apr 03 21:21:39 yeah, I use binds for that Apr 03 21:22:05 otto for things like, "ooo your dinners ready" then binder to do something Apr 03 21:22:35 cause I need to do more with the services than just messeges Apr 03 21:22:55 so i have a method that's building a string using some enums Apr 03 21:23:04 i *was* using binds, but I realised that I had multiple activities/fragments that wanted to be aware of/control the state of my service and didn't want to mess around with multiple binders Apr 03 21:23:07 when i compile the program, that method will always return the same thing Apr 03 21:23:23 StingRay_ In my case that's how I'm using sendBroadcast (bi-directional notification) Apr 03 21:23:44 anyone know of a way to make it so that when the java compiler compiles it it runs the method once then just replaces that method call with the return value? Apr 03 21:23:46 in this case, the string Apr 03 21:23:51 does sendBroadcast have an equivalent of Otto's @Produce ? Apr 03 21:23:58 rburton-: for 2 way comms and data? Apr 03 21:24:04 yup Apr 03 21:24:05 stork: sticky brodcast? Apr 03 21:24:17 basically make an RPC call for data and then return the results Apr 03 21:24:19 besides sticky broadcasts which seem to require their own permissions Apr 03 21:24:29 probably not Apr 03 21:24:55 rburton-: yeah I bind to a service when doing that Apr 03 21:25:34 Hi, I have a problem regarding webview: I have an android device (one those google tv boxes weith android 4.1 ) that has an infrared remote controller. Some of the remote control buttons have keycode 183, 185 and 186. In my application I have a webview. The problem I have is that in my webview.onKeyDown method, when one of those buttons is pressed, I get the event and its keycode (Let's say 183), but in the webpage, any onpress event receives th Apr 03 21:25:34 e event with a keycode equal to 0. Any clue why the keycode is getting lost ? Apr 03 21:29:44 LuigiBairesDev, setDomStorageEnabled(true)? Apr 03 21:31:00 hmm I have it set to false Apr 03 21:32:08 tried it with true? Apr 03 21:34:26 it is set to false... let me try it otherwise Apr 03 21:34:29 can anyone tell me whats the best method to license a app? i got a free app (which shows a nag screen from time to time) and i got a donate app. now i want, if anyone buys the donate app, he get rid of the annoying nag screen in the main app. but how i could do this best? sharedPreference WorldReadable/WorldWriteable? or licensing service? Apr 03 21:34:59 or any other solution? Apr 03 21:36:09 * rburton- is all fixed. Apr 03 21:36:40 I got a slight head cold from having my window open last night. SF weather :( Apr 03 21:38:13 Between Utah and SF, my sinuses are not getting a break. Apr 03 21:38:58 <- germany ... with snow .... brrr Apr 03 21:39:10 <-- england with wind and rain Apr 03 21:39:23 <-- home with a small head cold Apr 03 21:43:20 If I save files to the app data folder through my app. The files wouldn't be deleted unless the user deletes the app, right? Apr 03 21:43:29 <-- memphis, TN with money hoes cars and clothes Apr 03 21:44:37 or unless they clear data, Kake_Fisk Apr 03 21:44:49 Yeah, fair enough. Thanks Apr 03 21:45:09 but yeah generally speaking it remains Apr 03 21:49:12 hello! i have a problem which i due the lack of my java knowledge cant resolve right now: i want to use HoloColorPicker (https://github.com/LarsWerkman/HoloColorPicker) - therefore i've built it and included the jar file in my eclipse project settings - i then created a view which is using it and it compiles without any warnings nor errors - but when i am trying to execute the app it fails with a Apr 03 21:49:14 RuntimeException: android.view.InflatException Binary XML file - Error inflating class / can someone help me understand this or has any hints for me how to solve that? Apr 03 21:49:59 you have the xml name wrong for that view ? Apr 03 21:51:00 btw thats a guess Apr 03 21:51:06 I dont really know :) Apr 03 21:51:14 although I think I may look at that picker Apr 03 21:51:16 looks nice Apr 03 21:51:37 I have the impression that there's a lot of things that may cause that error, from a google search. Apr 03 21:52:11 In my experience, the actual cause is further down the stacktrace. Apr 03 21:52:23 well inflate, is a good indication as to where Apr 03 21:52:24 Like the next or even last "caused by" statement. Apr 03 21:58:56 mlq: Can you post the full stack trace? Apr 03 22:00:11 kakazza: i guess, i found the mistake - it was indeed a corrupted xml and a clean rebuild fixed it apparently Apr 03 22:05:42 doh. http://blog.chromium.org/2013/04/blink-rendering-engine-for-chromium.html Apr 03 22:06:42 is webview on ICS+ using Webkit now? wonder if that will change again Apr 03 22:07:16 g00s: wasn't it always using webkit? Apr 03 22:09:57 I'm making a game and are using SurfaceView. The game runs in it's own thread, but when I want to display dialog boxes I need to run them in the UI thread. Is using activity.runOnUIThread each time I want to display a dialog box a good solution or a dirty workaround? Is there eventually any better ways I can do this? Apr 03 22:12:22 Kake_Fisk: there are other solutions, but they're the same as what runOnUiThread is doing under the hood (post a message to a Handler) Apr 03 22:12:32 so you might as well use runOnUiThread Apr 03 22:13:01 Ah, okay. Thanks Apr 03 22:15:34 okay, apparently that didnt fix a thing: this is the trace: http://pastie.org/private/3wf1hxtndejbbf0oay61w Apr 03 22:19:05 Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1 Apr 03 22:20:54 i am sorry, but i cant do anything with that message Apr 03 22:22:27 you target and test is < 3.2 ? Apr 03 22:22:52 well target and test device is android < 3.2 ? Apr 03 22:23:01 no, min is 14 and target is 17 Apr 03 22:23:09 so > 4 Apr 03 22:23:20 oh that is odd Apr 03 22:24:15 mlq: can you pastebin your source? If you did it, I missed it Apr 03 22:24:16 interesting and related possibly https://github.com/JakeWharton/ActionBarSherlock/issues/446 Apr 03 22:25:05 evanc: http://pastie.org/private/fzeyfxtwfb9sr9ddcoa Apr 03 22:26:10 and in another class i just create an intent and start the activity Apr 03 22:26:12 mlq: try removing the paddingLeft and paddingRight attributes Apr 03 22:26:17 see what happens Apr 03 22:26:37 if that does it, can you paste your dimens file? Apr 03 22:31:03 evanc: ah, okay, that helped, apprently they were missing: http://pastie.org/private/j0rkvsbum8kiaaf31za now i have this - maybe the built colorpicker jar file is corrupted? Apr 03 22:33:49 mlq: yeah, at this point it's a build path error. Is your colorpicker jar in the libs/ folder? Apr 03 22:34:23 evanc: eclipse shows it under referenced libaries Apr 03 22:34:41 mlq: put it in the libs/ folder or else it'll get missed by dex, I think Apr 03 22:34:51 it should be under Android Referenced Libraries or something like that Apr 03 22:35:01 Android Dependencies* Apr 03 22:37:31 evanc: yeah, it is now, after i moved it into libs/ - but unfortunately it didnt change anything Apr 03 22:39:10 this are the res files of the lib: http://pastie.org/private/awykhrimswthespwkd30ra Apr 03 22:41:11 Intellij users. Anyone as well experiencing problems with AIDL files? Getting generated, but somehow intellij expects them in wrong place... simple loop to always copy them during building solves the problem... Apr 03 22:41:39 mlq: oh, it's got res files? shouldn't it be a library? Apr 03 22:42:22 I´m loading xkcd in my webview, which is on match_parent, filling the screen. Still, the webpage is not completely visible on the left (but is on the right) Apr 03 22:42:56 I have no margins or paddings, any ideas? Apr 03 22:43:08 evanc: they are included in the jar file Apr 03 22:43:29 mlq: I didn't think res files worked that way Apr 03 22:43:30 *as compiled classes Apr 03 22:50:52 i'm getting an id not registered error in eclipse. i think i imported R correctly. can anyone look? http://pastebin.com/8RM280ga Apr 03 22:52:02 ari_aaron: pastebin your error, too Apr 03 22:53:12 id cannot be resolved or is not a field HelloActivity.java /Hello/src/test/yidsoftware line 16 Java Problem Apr 03 22:53:34 have you tried cleaning? Apr 03 22:53:49 it sounds like your R.java file isn't being built Apr 03 22:54:35 i tried cleaning... Apr 03 22:55:08 i'm new to android dev, i probably missed something obvoius Apr 03 22:55:50 paste the the xml in which id is made in? Apr 03 22:55:53 ari_aaron: what's your application's package, as listed in your AndroidManifest.xml? Apr 03 22:55:57 also that Apr 03 22:56:16 hey guys, i'm trying to use NotificationManager.notify using the default docs, but it seems the notifications appear int he background and don't really give the user any 'pop up' impression, is there anyway to do that with location notifications? Apr 03 22:58:10 com.yidsoftware.shas but that dosn't contain an R Apr 03 22:59:44 what do you mean it doesn't contain an R? Apr 03 22:59:57 ari_aaron: then you need to import com.yidsoftware.shas.R; Apr 03 23:00:21 I think he meant that he can't import com.yidsoftware.shas.R Apr 03 23:02:00 when i try that it says there is no R Apr 03 23:02:23 Description Resource Path Location Type Apr 03 23:02:24 The import test.yidsoftware.shas cannot be resolved HelloActivity.java /Hello/src/test/yidsoftware line 7 Java Problem Apr 03 23:02:56 you don't need to import R Apr 03 23:05:27 no? Apr 03 23:06:07 otherwise i get R cannot be resolved to a variable Apr 03 23:06:17 birbeck, ping Apr 03 23:07:50 nevermind. i'm editing 2 projects at once :S Apr 03 23:07:55 thaks Apr 03 23:11:50 Can an AlertDialog only contain one view? Apr 03 23:12:27 by default doesnt it have many views ? Apr 03 23:12:38 title, message etc, button Apr 03 23:14:17 Guess he means .setView Apr 03 23:14:20 You have alertdialog.setTitle and setMessage and setView. I'm unable to use setView to add multiple input methods Apr 03 23:14:23 or was ist setContent? Apr 03 23:14:28 setView, yes Apr 03 23:14:33 multiple input methods? Apr 03 23:14:44 Like two EditTexts Apr 03 23:14:55 Create a layouy with two edittexts and add that? Apr 03 23:15:06 setContent(myLayoutContainingTwoEditTexts) Apr 03 23:15:26 All right, I'll try that Apr 03 23:15:41 well viewContainingTwoEditTexts Apr 03 23:16:07 okay, i resolved the problem by using it as a library project Apr 03 23:17:44 If I just want a little dialog box with two EditTexts, would you go for LinearLayout, or? Apr 03 23:18:58 Sure, why not. Apr 03 23:19:42 I haven't really touched layouts very much, so was just wondering :) Apr 03 23:20:36 I use remoteViews.setTextViewTextSize(R.id.widgetButton1, TypedValue.COMPLEX_UNIT_SP, 20); to change text size on my widget on lock screen depending on if its in "small" mode or expanded. Unfortunately this also affects the normal widget since I have set widgetCategory to be both keyguard and home_screen. How can I make sure it only modifies the keyguard widget without creating a separate layout for keyguard? Apr 03 23:24:22 you can check the current widgets category and act accordingly Apr 03 23:25:51 uhm Apr 03 23:27:03 but how will that only affect the keyguard? Apr 03 23:27:10 Any Image manipulation widgets out there to just grab? Apr 03 23:27:40 Do one still use AlertDialog.Builder for dialogs that are created with layouts? Apr 03 23:28:28 Does anyone know of other training guides like the google ones? The official guides are incompatible with my learning style. Apr 03 23:30:23 here is how I update the text: http://pastebin.com/A4puabZf Apr 03 23:31:33 but that affects the widget on home screen as well Apr 03 23:31:46 and I only want it to affect the lock screen widget Apr 03 23:31:51 Kake_Fisk: Sure. The Builder merely helps you create dialogs that look like native ones, instead of fugly ones you did yourself ;p Apr 03 23:32:10 Nothing holds you back from creating your own, of course. Apr 03 23:33:11 I'm just a bit confused on how to do this. I've made my own custom dialog with the layout editor and it's called view_new_map.xml. How would I display this as a dialog in the game? Apr 03 23:33:48 I'm trying to use the Dialog class, but it doesn't seem to want to cooperate Apr 03 23:33:52 If I add an update to google play do my reviews get removed? Apr 03 23:35:26 bankai_: I guess you were talking about AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, but how can I use that in this case? Apr 03 23:36:38 Or did you say it was possible to use my own custom layout from the layout builder with AlertDialog.Builder? Apr 03 23:40:05 alert.setView(a.findViewById(R.layout.view_new_map)); doesn't seem to work Apr 03 23:42:09 I'm just worried about losing all my reviews Apr 03 23:42:42 common sense would say you dont Apr 03 23:43:17 Take away the reviews and apple741 loses his mind. Apr 03 23:43:54 I would have thought you do? Just in case you have a lot bad reviews for bugs etc. Apr 03 23:43:56 apple741: whats the play link to your app again ? Apr 04 00:00:05 I have set marginLeft and marginRight on my widget to -8dp, but how can I prevent the cropping of the border on left and right side of this? http://bildr.no/image/1431141.jpeg Apr 04 00:01:21 depends whats causing the crop Apr 04 00:01:32 here is the layout for the widget: http://pastebin.com/PG3irWhg Apr 04 00:02:07 StingRay_: I set margins to negative values to make the button wider Apr 04 00:02:53 and now your making it too wide ? Apr 04 00:03:04 for the view that it is housed in ? Apr 04 00:03:13 yeah, probably Apr 04 00:04:12 If I increase the margin from -8 to -5 or so, it will show more of the border, but at the same time the button will be more narrow Apr 04 00:04:50 not sure what your attempting to say Apr 04 00:04:54 but yeah Apr 04 00:04:59 it will :) Apr 04 00:05:46 hehe Apr 04 00:06:04 I want to reduce the bloody margins so my buttons can look nice and square Apr 04 00:07:09 and is the widget space that it occupies square ? Apr 04 00:07:56 doesnt look like it :P Apr 04 00:08:25 so unless you do a fixed aspect layout Apr 04 00:08:32 and drawables Apr 04 00:08:53 how do you intend to make the widget space square ? Apr 04 00:09:09 thanks :P Apr 04 00:09:18 makes sense now Apr 04 00:11:01 Any way that I can revert eclipse changes? I screwed my whole project up. Apr 04 00:11:30 As in, config changes? Apr 04 00:11:43 kakazza, Class files. Apr 04 00:11:47 have your things under version control? Apr 04 00:12:12 sonOfRa, Can't really. Changed a load of stuff in one day...its all lost. Apr 04 00:12:31 agy2154: not using a mac ? Apr 04 00:12:34 You can't use version control because you changed lots of stuff, I see. Apr 04 00:12:41 StingRay_, Windows. Apr 04 00:12:51 cause I just go into …… drymatic pause…….. TIME MACHINE!!! Apr 04 00:13:09 or I roll back with mecurial Apr 04 00:13:14 StingRay_: It hurts to see just how little OS X users use Time Machine. Apr 04 00:13:28 timemachine + os level versioning Apr 04 00:13:31 and how much better it would have been with ZFS ;) Apr 04 00:13:31 StingRay_, Are MACs good? Apr 04 00:13:41 agy2154: yes and no Apr 04 00:13:49 bankai_: True. I wonder if ZFS will ever make it to OS X. Apr 04 00:13:56 nope it won't Apr 04 00:14:17 StingRay_, I forgot how I solved my problem two days ago. My onResue isn't being read Apr 04 00:14:30 from a fragment ? Apr 04 00:14:33 in my fragment. Its returning from a preference screen Apr 04 00:14:33 yeah Apr 04 00:14:38 call super Apr 04 00:14:43 on the fragActivity Apr 04 00:15:17 so it filters through Apr 04 00:15:18 StingRay_, Already did Apr 04 00:15:22 " super.onResume(); Apr 04 00:15:22 " Apr 04 00:15:28 oh wait Apr 04 00:15:42 actually, I'm not sure that blocks it Apr 04 00:15:42 agy2154, what if? i have on resume in both Apr 04 00:15:55 irrelevant Apr 04 00:16:13 I know you can block activityResult stuff Apr 04 00:16:21 resume though, not sure Apr 04 00:19:26 StingRay_, I'm soo tempted to get the fragactivtiy to edit the fragviews Apr 04 00:19:35 *frag's views Apr 04 00:20:38 If my application is skipping frams that mean I should rethink its effiencey? Apr 04 00:22:15 well means your doing something quite heavy Apr 04 00:22:24 consider shifting it Apr 04 00:22:37 Yeah, a bit to the left. Apr 04 00:22:42 to a task/thread thats free from ui Apr 04 00:23:00 StingRay_, Can you check my code to see if it is heavy? Apr 04 00:23:12 agy2154: playstore link ? Apr 04 00:23:24 StingRay_, A dump off my code. Apr 04 00:23:32 yeah but playStore link ? Apr 04 00:23:38 no Apr 04 00:23:42 oohh you want it Apr 04 00:23:47 ya Apr 04 00:23:47 it has n't been updated to this verison yet Apr 04 00:23:52 let me update it first then Apr 04 00:24:09 cause most of the time, dunno why or if it's the same for anyone else Apr 04 00:24:29 StingRay_, yeah i understand. Ill finish the revisions and update the app Apr 04 00:24:39 I can run something llike pintrest and it slows everything down Apr 04 00:24:49 enough for me to work out what really is slowing my app down Apr 04 00:24:56 ahh Apr 04 00:24:58 cause it makes it almost slow motion Apr 04 00:24:59 :) Apr 04 00:25:09 attaching debugger makes it x10 slow mo Apr 04 00:25:51 Or you use a profiler Apr 04 00:26:17 most of the time though, I dont need to, which is nifty, was my point Apr 04 00:26:56 Yeah. But you usually get a good idea because of the red flashing border. Apr 04 00:27:27 Is it okay if I do all the math in the fragactivity or would that be bad. See the problem is that both frags would use the same math. Apr 04 00:28:23 Define Math Apr 04 00:28:27 2 + 2? Apr 04 00:28:57 Enable "Strict Mode" in the Developer Options. Your screen will flash when intensive tasks are being done in the background. Apr 04 00:29:48 lmao Apr 04 00:29:49 no Apr 04 00:29:55 not that math Apr 04 00:29:56 more like.... Apr 04 00:30:39 http://paste.ubuntu.com/5675202/ thats like 1/4 my code Apr 04 00:30:49 its all conditional though. So only one will run Apr 04 00:33:20 Weird naming scheme. Anyway, that shouldn't be too bad. But, does the 'preferences' object ever change? As in, is it necessary to always get the values each time? Apr 04 00:33:42 And it doesn't look that bad. I don't see any recursion or loops. But it's hard to tell. Enable Strict Mode and see where your screen flashes. Apr 04 00:33:57 Also, save yourself all these '(double) 0' casts and just write "0.0" Apr 04 00:34:14 "0." might even work. I forget. Apr 04 00:35:34 kakazza, thanks for the tip. and yes . These values do change because the user can change the value of "A" in the preferencescreen. The preference screen works and all that but I can't get the resume tow ork on the fragment however it works on the fragment activity. Another problem is that since I have this in the on resume it would have to do all this over everytime the fragment is selected. Apr 04 00:36:17 Is that Physics? Like throwing objects, falling objects etc? Apr 04 00:36:29 kakazza, yup Apr 04 00:37:02 kakazza, I guess what I can do is make a preference listener and then kill it later on. Apr 04 00:37:38 Before you try to optimize anything, find out if it needs optimizing. Apr 04 00:37:55 First rule of optimizing: Don't optimize. Apr 04 00:37:58 ;p Apr 04 00:38:10 lol. kakazza, well right no the onResume isn't even working in the fragment activity. Apr 04 00:38:28 " Apr 04 00:38:28 @Override Apr 04 00:38:28 public void onResume() { Apr 04 00:38:28 // TODO Auto-generated method stub Apr 04 00:38:28 super.onResume(); Apr 04 00:38:28 showTheDialogs(); Apr 04 00:38:31 checkAndSet(); Apr 04 00:38:37 doTheMajor(); Apr 04 00:38:39 print(); Apr 04 00:38:41 }" Apr 04 00:38:56 Btw, if you make heavy use of the Math.* package, it might be worth to 'import static java.lang.Math.pow;' etc, or *gasp* star-import it. That way you can do pow(foo) instead of Math.pow() all the time. Apr 04 00:40:04 kak Apr 04 00:40:13 kakazza, does that help with speed? Apr 04 00:43:43 No, but it might make your code easier to read. See http://ideone.com/TSHvCR for an example. (below is the output) Apr 04 00:44:05 It's just a side note. Apr 04 00:44:25 kakazza, yeah. So do you think i should still avoid doing the math in my acitivyt? Apr 04 00:44:48 http://www.perlmonks.org/?node_id=962631 Apr 04 00:45:02 See rule 1 and 2 Apr 04 00:45:58 I do not consider what I saw heavy math operations. Apr 04 00:46:07 Do you notice lag? Or are you just worried? Apr 04 00:46:59 worried. Apr 04 00:47:31 Then rule #1 applies. Apr 04 00:47:43 yeah Apr 04 00:47:44 Thanks Apr 04 00:47:55 I have a problem though with that on resume. Its never called Apr 04 00:48:07 https://en.wikipedia.org/wiki/Program_optimization#When_to_optimize Apr 04 00:48:28 How did you verify that it's never called? Apr 04 00:48:36 silly me . It is called but not when it a user returns Apr 04 00:48:46 Returns from? Apr 04 00:48:48 alright so it has to have been called because i know it sets the text Apr 04 00:48:53 returns from the preference screen Apr 04 00:48:55 lol Apr 04 00:49:04 Log.D lmao? Apr 04 00:49:13 Log.d()* Apr 04 00:49:20 Yes Apr 04 00:49:54 Please verify the behaviour, then report back your findings. Log.d() should be the very first statement. Apr 04 00:50:27 Anyway, I'm gone. It's getting late. Apr 04 00:51:07 kakazza, Thanks. And it turns out "jonhy" is called. lol Apr 04 00:51:14 kakazza, Thanks you helped me a lot! Apr 04 02:00:31 hello, any possible to implement layout_alignParentBottom(LinearLayout) by java code Apr 04 02:00:50 ? Apr 04 02:03:36 impossible or difficult? Apr 04 02:10:18 linear layouts dont work like that Apr 04 02:10:24 you would have to use gravity Apr 04 02:10:36 and it works on the opposing orientation Apr 04 02:24:34 Hi all. I was directed here from stackoverflow.com for help on issues with the Low Power Audio Player on the Galaxy S3, and suppressing,or bypassing it somehow programmatically. Can anyone help with this? Apr 04 02:43:17 timusus: do you know any programming languages ? Apr 04 02:47:26 hey Apr 04 02:48:01 is there anything like the ios newsstand for android? if not is there some standard subscription purchase you can use? Apr 04 02:48:18 google magazines ? Apr 04 02:48:24 or play magazines rather Apr 04 02:48:32 and a fair few others Apr 04 02:48:45 search play and you will find Apr 04 02:48:48 :) Apr 04 02:49:00 awesome than you Apr 04 02:49:55 thank you rather Apr 04 02:56:00 I found a glitch. When I switch between fragments REAL REAL fast it crashes becaus eit can no longer find the relative layout Apr 04 02:56:02 StingRay, sorry for the late rply, went to lunch. Just java, and just for Android. Apr 04 02:56:11 Is there any way this can be fixed Apr 04 02:56:45 @agy, can you have your fragment get the layout when it's instantiated instead of passing it to the fragment? Apr 04 02:57:11 agy2154: that should not happen at all Apr 04 02:57:34 when you say cant find the relative layout…whats that mean ? Apr 04 02:57:39 StingRay_, This is the line... public void onGlobalLayout() { Apr 04 02:57:39 // TODO Auto-generated method stub Apr 04 02:57:39 // Sets the image stuff Apr 04 02:57:39 RelativeLayout ImageHolder = (RelativeLayout) getView().findViewById(R.id.layout); Apr 04 02:58:44 hi people. is it possible to emulate a wifi network in the android emulator? the only thing I could find is this: http://stackoverflow.com/questions/7876302/enabling-wifi-on-android-emulator Apr 04 02:58:54 @StringRay_, have you had any experience with the MEdiaPlayer class in Android? Apr 04 02:59:07 timusus: fraid not **** ENDING LOGGING AT Thu Apr 04 02:59:58 2013