**** BEGIN LOGGING AT Wed Feb 08 02:59:57 2012 Feb 08 03:01:08 * TeknoNolan yawns Feb 08 03:02:17 <[azyouthinkeyeiz> i lost the first part after logging out so i forgot who it was who asked about mysql but did you try asking in #mysql? Feb 08 03:06:36 nooby question, but can one add listview item dividers? and how so? can it be an image or just a colored line? Feb 08 03:10:15 a drawable Feb 08 03:10:37 so the answer is: yes Feb 08 03:13:04 hey all Feb 08 03:19:45 is there a way to send an email through an app without using a built in gmail or email app Feb 08 03:22:01 dunivan: http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-android-a looks like. Feb 08 03:22:04 that's one option. Feb 08 03:22:20 since widgets are not serializable, what are the consequence of defining a widget as class member variable? Feb 08 03:22:34 but that still uses gmail Feb 08 03:22:51 im tying to get a feedback form to send without the user putting in their login info Feb 08 03:23:06 jahid: are you serializing the class? Feb 08 03:23:13 <[azyouthinkeyeiz> type anonymous email into the market. there is one i believe Feb 08 03:23:28 romainguy, no. but i dont know if android does for certain situation Feb 08 03:23:33 no Feb 08 03:23:40 jahid, widgets as in home screen widgets or ui components? Feb 08 03:23:40 we never use the standard Java serialization Feb 08 03:23:45 romainguy, also what is good practice? Feb 08 03:23:56 a good practice for what? Feb 08 03:24:00 alex_PP, ui components Feb 08 03:24:07 dunivan: http://code.google.com/p/javamail-android/ that might provide what you need. Feb 08 03:24:34 <[azyouthinkeyeiz> https://market.android.com/details?id=com.felipeloque.anonymousemail&hl=en Feb 08 03:24:38 SimonVT, canadiancow, any reason not to release ABSv4b6? Feb 08 03:24:38 romainguy, by good practice i mean, which one is suggted? always find a view by id? or find once and save on class level? Feb 08 03:24:46 jasta, why did you abandon ABS? Feb 08 03:24:52 also http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android Feb 08 03:24:59 keep references to views you find by id Feb 08 03:25:04 finding them is expensive Feb 08 03:25:15 (those were linked to from that same stackoverflow post) Feb 08 03:25:29 JakeWharton uh...what do you mean "release Feb 08 03:25:32 like another beta? Feb 08 03:25:34 or as the final Feb 08 03:25:34 yeah Feb 08 03:25:42 still far from final Feb 08 03:25:45 another beta is fine Feb 08 03:25:49 fix the damn collapisbles :( Feb 08 03:25:55 romainguy, by "keep reference to views" you mean keeping the reference as class member variable? Feb 08 03:25:59 sure Feb 08 03:26:09 romainguy, thanks Feb 08 03:26:09 as far as I can tell the only thing missing is light/darkactionbar themes and non-crappy spinners on pre-3.0 Feb 08 03:27:18 JakeWharton: aaaaaand collappisbles on ICS :( Feb 08 03:27:34 I can't debug that without a reproducible demo Feb 08 03:27:36 and HC Feb 08 03:27:39 yea :( Feb 08 03:27:41 wait Feb 08 03:27:43 im working on work stuff right now Feb 08 03:27:43 and HC? Feb 08 03:27:46 and HC Feb 08 03:27:54 oh no wait Feb 08 03:27:56 my tablet is ICS Feb 08 03:27:57 HC uses compat action bar, ICS uses native Feb 08 03:28:03 GB is good ICS is bad Feb 08 03:29:07 canadiancow|work, if you replace the action view in the demos sample with the one from mapper does it work? Feb 08 03:29:21 I need an action provider demo too Feb 08 03:29:29 dunno i'll try when i finish what im doing Feb 08 03:29:32 wtf is action provider Feb 08 03:29:47 basically a beefed up version of collapsible action items Feb 08 03:30:11 it's also the entire reason why our MenuItem no longer extends from android.view.MenuItem :( Feb 08 03:31:38 I wonder if it's feasible to support @hide in library projects Feb 08 03:32:32 I guess not.. because @hide shit is just omitted from the android.jar stubs right? Feb 08 03:32:44 I wonder how that'd handled with resources though Feb 08 03:33:23 resources are @hide by default Feb 08 03:33:27 they need to be added to public.xml Feb 08 03:34:54 I was thinking in the context of library projects Feb 08 03:34:54 Can anyone take a look at my onDraw method? I have a View that I'm trying to draw a black rectangle in, but whenever the screen shows it doesn't draw the black rectangle. Feb 08 03:34:59 I've gisted here: https://gist.github.com/ae7ec01472aea1d0f68f Feb 08 03:35:49 paint.setColor(android.R.color.black); Feb 08 03:35:56 that's not going to do what you think it will :)) Feb 08 03:36:05 paint.setColor(0xff000000) will Feb 08 03:36:19 or paint.setColor(getContext().getResources().getColor(android.R.color.black)) Feb 08 03:36:31 you are using the *id* of the color black as a color Feb 08 03:36:36 @romainguy: AHHH I see Feb 08 03:36:58 and that id is 0x01.... Feb 08 03:37:04 so it has an alpha of 1/255 :)) Feb 08 03:37:25 JakeWharton, have you tried it? Feb 08 03:37:33 i think ADT excludes @hide'd stuff Feb 08 03:37:37 canadiancow|work, nope Feb 08 03:37:40 oh Feb 08 03:37:40 just speculating Feb 08 03:37:58 @romainguy: ok that makes perfect sense. Feb 08 03:38:44 man I really need to backport some kind of preference thing Feb 08 03:38:51 pre-3.0 preferences are hideous Feb 08 03:40:27 @romainguy: Thanks again, btw. Feb 08 03:40:46 if you're assigning a value to a textView, there's no point in giving it a string is there? Feb 08 03:40:49 you're welcome Feb 08 03:40:50 Amazon made some odd styling choices with the Kindle Fire Feb 08 03:40:54 it's quite ugly Feb 08 03:41:16 JakeWharton: imo, it's anti-ipad Feb 08 03:41:19 <[azyouthinkeyeiz> no Feb 08 03:41:33 except not anti-ipad, but everything says anti-ipad when you look at it. Feb 08 03:41:57 <[azyouthinkeyeiz> if its defined initially Feb 08 03:42:01 they also have ListView problems Feb 08 03:42:05 at least on their launcher Feb 08 03:44:00 thanks [azyouthinkeyeiz Feb 08 03:45:39 romainguy, does setting the window background to @null effect the entire decor view or just the content view? Feb 08 03:47:18 i was referencing your old ListView blog post recently and discovered that the native action bar seems to be able to draw itself properly when the window BG is set to @null (which would be a descendent of mDecor) but my custom action bar had the ghosting re-draw effect (which is a descendent of mContentParent) Feb 08 03:48:30 and i'm not sure I'm bold enough to try and traverse the view tree and attach my custom impl to the parent view of android.R.id.content Feb 08 03:49:28 romainguy, hwrd_work: or paint.setColor(Color.BLACK) Feb 08 03:50:01 SeligArkin, but then doesn't let me redefine black in my custom ROM as 0xFFFF0000 Feb 08 03:50:14 JakeWharton: good. Feb 08 03:50:17 <\monster\> Leeds: ya here? Feb 08 03:50:20 haha Feb 08 03:50:22 SeligArkin: true true. That does save me from having to redefine a member variable in my class.. Feb 08 03:50:25 \monster\: pong? Feb 08 03:50:42 <\monster\> did you have a chance to test out the bb simulator android runtime? Feb 08 03:50:45 plus the value will be inlined and save a trip to context, resources, and loading resources Feb 08 03:51:20 which is especially useful since he was doing it in onDraw (though you could as easily cache the lookup) Feb 08 03:51:40 <\monster\> I did and this thing is badd unless I'm doing something wrong, it keeps flashing UI elements like mad as if its redrawing everything but can't do it fast enough Feb 08 03:52:12 \monster\: nah, couldn't get it running on my work machine because it's not setup for opengl, and was busy last night - going to the races tonight, planning to get it running on Thursday. If I can't get it running, I'll just sign and submit my app anyway - the conversion tool seems to work, and the worst thing which could happen would be they reject me Feb 08 03:53:05 <\monster\> heh I guess, since my app isn't setup for tablet I'm forcing 400px width hehe ..they may give me the finger Feb 08 03:53:09 this is on Linux boxes, by the way, which aren't officially supported anyway Feb 08 03:54:13 my biggest app is mainly a background polling service, the UI doesn't really matter Feb 08 03:54:27 <\monster\> I guess their simulator has to emulate arm ..no wonder its slowww Feb 08 03:54:39 guess not, if it's running in vmware Feb 08 03:56:06 man, I'd love to be able to deploy Android images as a thinapp on ESXi or something and just have a local thin client for the interactivity Feb 08 03:58:22 they do call it a simulator rather than an emulator Feb 08 04:00:36 ha ha stimulator... okay, time to go do some work Feb 08 04:01:45 who does? Feb 08 04:02:33 RIM Feb 08 04:02:49 (ha ha - no, I'm not drunk, just tired after about 3 hours sleep last night) Feb 08 04:03:42 <\monster\> ok this is unusable Feb 08 04:04:06 <\monster\> ill tell them to send me the playbook so I can actually port it :) Feb 08 04:06:14 yeah, there is a certain catch-22 element :) Feb 08 04:06:47 <\monster\> looks like flickering is common, ppl on their forum are talking about it Feb 08 04:07:29 <\monster\> this is totally pointless unless they can get it working 100% ..they will get flamed if that how it works on real devices Feb 08 04:09:33 anyone use Zubhium? Feb 08 04:21:13 can you edit a PreferenceScreen in code that is originating from xml? Feb 08 04:21:52 (I want to generate a list of BT devices in a PreferenceActivity and be able to pair to it there) Feb 08 04:29:30 good night Feb 08 04:33:44 does anyone know how to get a icons assosiate resourse value? Feb 08 04:47:46 How does one control the label for a sync thingy in 'Sync settings' under 'DATA & SYNCHRONIZATION'? I'm seeing 'Sync ' (where is my app name). I'd like to change this. Feb 08 04:48:39 t0mless: anything yet? Feb 08 04:52:24 if i create a thread in onCreate, a new thread will be created everytime i switch to my app right? Feb 08 04:54:05 or rotate Feb 08 04:54:14 or press the back button to go back to your activity Feb 08 04:54:30 or receive a phone call during your activity Feb 08 04:54:31 or flip out a keyboard Feb 08 04:54:31 etc. Feb 08 04:54:57 Syliss negative Feb 08 04:55:00 and that new app is in a different address space? Feb 08 04:55:06 that explains a lot Feb 08 04:55:18 what's the right way to make a worker thread? Feb 08 04:55:27 ({o_O}) Feb 08 04:55:28 me too Feb 08 04:55:31 ouch Feb 08 04:55:33 my head is inside out Feb 08 04:55:39 {(o_O)} Feb 08 04:57:46 i know the feeling JakeWharton Feb 08 05:03:43 New here. Can't figure out if I'm being ignored or if my messages just aren't getting through. Can someone please confirm whether you see this? Feb 08 05:04:12 See what? Feb 08 05:04:22 Sorry, we can see it Feb 08 05:04:35 It may jusrt be that nobody knows Feb 08 05:04:57 Understood. Thanks. Feb 08 05:05:09 The sync stuff isn't well documented / understood, it seems. Feb 08 05:05:17 You're telling me! Feb 08 05:20:59 I need some help with fragments and a lists showing data taken from the internet Feb 08 05:25:53 grab the data, store variable, access data stored Feb 08 05:28:09 Has anyone seen the new google+ app for android Feb 08 05:28:29 new how Feb 08 05:29:22 well actually this part has been there from the beginning I think - I was trying to see if the tab elements they have at the head of the streams list is built into android Feb 08 05:30:34 Or is it just labels that get swiped left and right Feb 08 05:31:15 there is an okay implementation in the support library Feb 08 05:31:36 i can't even remember what that class is called Feb 08 05:31:42 you could also try http://viewpagerindicator.com Feb 08 05:32:07 PagerTitleStrip is the support lib one Feb 08 05:32:20 oh ok Feb 08 05:32:28 thanks yeah this looks good Feb 08 05:33:28 :D Feb 08 05:33:49 *yawn* Feb 08 05:33:58 mrenouf, Light and Light.DarkActionBar styles implemented :) Feb 08 05:34:08 woo Feb 08 05:34:18 looks pretty good on the Kindle Fire Feb 08 05:34:56 how customizable are they? Feb 08 05:35:02 same as native Feb 08 05:35:27 this is seriously nice Feb 08 05:35:41 cool, i'll spin it up tomorrow and play with it Feb 08 05:35:46 How would I traverse the list of options of a Spinner? Feb 08 05:42:35 I thought I could target a specific device with the resource qualifiers Feb 08 05:49:49 can I use the mcc/mnc to target the kindle fire specifically? Feb 08 05:51:58 nope Feb 08 05:52:01 hmmm Feb 08 05:52:58 balls Feb 08 06:05:03 hello Feb 08 06:07:13 wondering if someone can point me in the right direction to send a contact form (in app) through my php file (on server) Feb 08 06:42:58 hmm, is there a name given to the commonly observed algorithm merging N sorted lists into one? Feb 08 06:43:11 i swear it has one, but i can't for the life of me think of what it is Feb 08 06:45:20 it's quite like merge sort, but i swear it has another name Feb 08 06:45:28 maybe i'm just imagingint hat Feb 08 06:45:38 jasta: "merge". Feb 08 06:46:37 hmm. Feb 08 06:46:47 you're going to disappoint me if i'm just imagining this. Feb 08 06:50:23 I have performed some transformations like scaling, rotation and translation on ImageView.. Now I want to bring it to the original state like how it was in XML file.. Feb 08 06:50:41 jasta: wikipedia seems to differentiate between "classic merge" and "parallel merge", if that makes you feel any less disappointed, but I am pretty certain the algorithm is called "merge". if you use that algorithm to build an efficiently recursive sorting algorithm, you get a "merge sort" ;P Feb 08 06:50:48 ~woopty Feb 08 06:53:36 saurik: i guess i am just thinking of a variation of the classic merge where the N sublists can be merged sequentially. Feb 08 06:53:50 practical optimization avoiding storing the entire lists in memory Feb 08 06:54:06 what's the best way to give an object to a different view? global object in application class? Feb 08 06:55:08 putextra seems to be only great for primitive values Feb 08 06:58:36 stackoverflow down? Feb 08 06:59:09 oh back Feb 08 07:02:08 Well hello. Feb 08 07:02:26 Bored at work and wanna chat with some android devs Feb 08 07:11:25 wondering if someone can point me in the right direction to send a contact form (in app) through my php file (on server) Feb 08 07:12:49 I've set the dividerHeight in my listview to 1dp (also tried 1px), but when scrolling the divider sometimes changes size Feb 08 07:13:06 randomly alternating between 1 and 2 physical pixels (I assume). anyne know how to avoid this? Feb 08 07:18:15 dunivan construct a http POST request to the form - there are enough examples out there Feb 08 07:26:10 iivvoo, what phone's this on? Feb 08 07:30:56 alex_PP in an AVD Feb 08 07:31:01 but also happens on my phone Feb 08 07:31:22 if I make the divider 2px high everything is fine Feb 08 07:31:24 last time i saw it, i think 1px fixed it Feb 08 07:31:33 but also, try adding a support screens tag to your manifest Feb 08 07:31:54 (my phone = htc desire) Feb 08 07:31:57 I have one Feb 08 07:31:59 that will force some things to be scalled differently Feb 08 07:32:12 oh Feb 08 07:32:38 does it matter what the support-screens sections contains? Feb 08 07:33:01 yes Feb 08 07:33:15 anyDensity = true? Feb 08 07:37:23 might be better now but I still have the impression the line changes a bit Feb 08 07:37:31 some sort of anti-aliasing effect Feb 08 07:37:44 I'll stick with 2px for now and see if the customer keeps complaining Feb 08 07:44:58 Does anyone know of an open source android library for showing help/guide/getting started/ popups in a android app, like the ones showing in Chrome Beta when you first start it? Feb 08 07:45:41 Popups associated witha widget typically. Or should I consider developing one myself? :) Feb 08 07:46:33 i dunno what chrome beta shows when i first start it. Feb 08 07:47:59 my chrome is v16... on windows Feb 08 07:49:32 I'm talking about Chrome Beta for Android Feb 08 07:50:39 I'm talking about balloons, containing help text, with a little arrow pointing at a widget (like a TextView). Feb 08 07:56:13 ah, jbq is feeling the 'love' :) https://twitter.com/#!/jbqueru/status/167150189675683840 Feb 08 07:59:15 Leeds: life would be so much easier without those pesky users ;) Feb 08 08:11:04 morning! Feb 08 08:18:11 afternoon~ Feb 08 08:42:25 any idea why overriding onPreferenceClickListener (and returning true) executes my onPreferenceClickListener, but also the supertype's method? Feb 08 08:42:45 pakerfeldt, let me know what you find, I need something similar Feb 08 08:45:28 hello i have a question, in a webview i want disabling the usage of cookies, but how to do that? Feb 08 08:46:27 any hints on how to smoothly develop andoid apps..more then in eclipse? anyone uses maven in some way? Feb 08 08:51:48 jakewharton uses maven Feb 08 08:51:53 though he appears to have disappeared Feb 08 08:52:10 more and more people are using IntelliJ Feb 08 08:53:40 vim <3 :) Feb 08 08:55:02 hmm oki Feb 08 08:55:24 Leeds would agree with you Feb 08 08:55:40 and I've been a lot happier ever since I started building from the command line Feb 08 08:56:07 is there a way to tell if this webservice could be called in another way then soap? http://testws.tdxweb.se/TDXws03/TDXws03.svc?wsdl Feb 08 08:56:28 t0mless why, whats good about the cmd :D ? Feb 08 08:57:00 don't have to tell eclipse to clean 12 fucking times Feb 08 08:57:11 aha Feb 08 08:57:14 or watch intellij lock up when trying to build Feb 08 08:57:22 :-/ Feb 08 08:57:25 linux? Feb 08 08:57:26 and have a nice verbose output Feb 08 08:57:29 win7 Feb 08 08:57:31 ok Feb 08 08:57:34 anyone know how I can turn an unsigned int (in the range 0-255) into a java friendly byte? (yes I'm an idiot) Feb 08 08:57:54 #java ? Feb 08 08:58:15 it's android related too :p Feb 08 08:58:55 do you know if the int is between 0 and 26? Feb 08 08:59:19 storkme: http://www.rgagnon.com/javadetails/java-0026.html Feb 08 08:59:20 ? Feb 08 09:00:01 oh its unsigned byte to int Feb 08 09:00:08 Does anyone know how to add a Switch to the ActionBar like in the Settings app? Feb 08 09:01:44 my settings app has no "Switch" Feb 08 09:01:50 but I don't have a galaxy nexus Feb 08 09:01:53 only a HC tablet Feb 08 09:02:45 Hi, how do I create a QR code for my app? When It'll be scanned I want the Market App to open the app. Feb 08 09:02:47 oh sorry, like in ICS Feb 08 09:03:20 binarious: u just need generate qrcode for a market link Feb 08 09:03:38 u dont know how to make qrcode or dont know link? Feb 08 09:03:42 ixc: so sth like this https://market.android.com/details?id=my.project ? Feb 08 09:04:44 no Feb 08 09:05:00 market://search?q=pname:my.project Feb 08 09:05:26 ixc: thank you Feb 08 09:05:39 np Feb 08 09:08:36 If I want to update more than two UI elements outside of the main thread - should I use a container that's common to them post()'s method, or is using either of the elements post() is ok? Feb 08 09:08:56 either Feb 08 09:09:01 same thread Feb 08 09:09:05 ok Feb 08 09:09:31 hi . this code compiles but when i emulate it it stops working Feb 08 09:09:32 http://android-er.blogspot.in/2011/01/simple-communication-using.html Feb 08 09:10:54 in the log its activity destroyed .. time out Feb 08 09:11:45 u shhouldnt run in UI thread Feb 08 09:12:51 ixu i didnt get you ?? what is a UI thread and how should i do it? Feb 08 09:13:28 Activity run in ui thread, it has limitation, example runing time Feb 08 09:13:49 maybe u socket wait too much for conx and system kill ur activity Feb 08 09:14:08 if u wanna just get/write anything to socket u should use asynctask Feb 08 09:14:08 hmm .. so what should i be looking for?? Feb 08 09:14:15 oh k Feb 08 09:14:37 or if u dont want stop socket, wana keep alive, u should use services Feb 08 09:15:00 thanks .. i chk that out .. do you have a link that has an example ?? Feb 08 09:15:51 on developer.android.com u can found examples Feb 08 09:16:43 what should i search for?? socket esrvices?? Feb 08 09:16:43 u can use currently code, but separate from ui thred :) Feb 08 09:17:22 asynctask or service Feb 08 09:17:24 oh .. how do i do that .. im just a noob in this .. so sorry for the trouble Feb 08 09:17:37 separate from ui thred ?? Feb 08 09:17:38 u should read it and u will know when u need service and when asynctask Feb 08 09:17:58 k Feb 08 09:52:48 hi Feb 08 09:53:01 im trying to send a soap message with ksoap.. Feb 08 09:53:05 but this: AndroidHttpTransport transp = new AndroidHttpTransport(URL); Feb 08 09:54:10 what should the url be? the .net ws i try to call dont have any *.asmx file like in this URL example: String URL = "http://80.169.185.155/TDXws03/SimpleWebService.asmx"; Feb 08 09:54:39 anyone used ksoap? Feb 08 09:55:08 use url where it accept ur data Feb 08 09:55:32 if its mapped to index, dont write asmx file :) Feb 08 10:08:33 If I zoom a RelativeLayout with canvas.scale() … how do I "inform" its children that they are zoomed? Problem is that the touch area of its children gets weird .. Feb 08 10:08:52 ixc how can one know where its mapped to? i do have its wsdl document.. Feb 08 10:12:37 ixc is that the 'service endpoint' ? Feb 08 10:12:38 Hello Feb 08 10:13:35 i think it is Feb 08 10:14:14 What's the proper way to register my activity as an intent handler from the "share via" option in the android gallery. For some reason the ways I'm trying make it so that there are two versions of my app apparently installed, and my app comes up twice in the selection when you click share via. One of the options launches the activity I want, and the other launches the main activity of the app. Feb 08 10:20:43 Besides cutting down on the resolution, how else can I improve emulator performance? Feb 08 10:20:53 get a faster cpu Feb 08 10:21:04 not much else you can do Feb 08 10:21:10 I see Feb 08 10:21:28 even that is unlikely to matter much Feb 08 10:21:34 rufsketch1: have you added the SEND action to the intent-filter for your "main" activity as well by mistake? Feb 08 10:22:01 appel1, No. But, I'm not the only one developing, so let me see if its there Feb 08 10:22:24 appel1, you are a god Feb 08 10:22:26 thank you Feb 08 10:22:28 good call Feb 08 10:22:49 :) Feb 08 10:23:57 hello Feb 08 10:24:36 can I have constants in .aidl ? Trying to declare them as private static final java.lang.Integer STATE_LOAD = 1; but does not compile.. Feb 08 10:25:01 vadi2, you can also use x86 builds of android in virtualbox or some such ... they're quite buggy but hellova useful for testing tablet layouts Feb 08 10:26:08 oh, I have both a phone and a tablet. Was just curious to test out other android versions like ics (because my first-world carrier sucks and can't do android upgrades). Feb 08 10:26:28 thanks for the tip though, I'll keep it in mind :) Feb 08 10:26:58 Ah, that's why all my Android test devices are rooted... otherwise I'd lose my mind until now :) Feb 08 10:35:54 anyone know how I'm supposed to override onPreferenceClick to *actually* override it? 'cos onItemClick still gets run (after returning true for having handled the click) and I can't figure out how to disable it. Feb 08 10:37:12 I have a RelativeLayout with two clickable ImageView inside. When I scale my RelativeLayout using canvas.scale, the touch area of its child (the two ImageViews) is changed so I can't click them anymore … anyone know how to fix this? Feb 08 10:44:48 heho Feb 08 10:44:53 say, is there a way to tell mediaplayer how much to buffer? Feb 08 10:48:17 jgb: Preference.onClick will always be called before OnPreferenceClickListener.onPreferenceClick Feb 08 10:59:29 If I'd like the activity titlebar be different from the app name, do I have to use setTitle()? I'm trying to do it via the manifest xml and am not seeing a way Feb 08 11:06:22 vadi2: it's under Label Feb 08 11:06:27 in the manifest editor Feb 08 11:06:37 ah Feb 08 11:06:52 label of the activity? Feb 08 11:06:57 yes Feb 08 11:07:16 I don't know if you're editing the xml by hand or using eclipse Feb 08 11:07:18 that seems to show up in the task switcher though, right? Feb 08 11:07:23 nope Feb 08 11:07:27 using eclipse. I like it's xml editing Feb 08 11:07:40 use the graphical editor Feb 08 11:07:53 Yeah am. Feb 08 11:08:45 well, set the label for the Activity, not the Application Feb 08 11:09:41 ie, Feb 08 11:09:42 hm. For me, the activity's label, which is different from the apps label, is showing up in the app switcher instead Feb 08 11:10:11 then you're not setting it on the activity, you're setting it on the application Feb 08 11:10:29 or the root activity, I guess Feb 08 11:10:40 I am doing it on the root activity Feb 08 11:11:24 The one with the MAIN & LAUNCHER intents Feb 08 11:13:13 I think the label on the application should override the icon Feb 08 11:13:19 err, the launcher icon text Feb 08 11:13:25 try setting that to something else Feb 08 11:15:51 Well, the Application Label is @string/app_name and main activity's label is @string/activity_title, yet it's @string/activity_title that appears on the home screen shortcut + task switcher. Before I was just using setTitle in the code and it was how I wanted it - @string/app_name on the home+task, but I want to do this via xml so it's set so instantly Feb 08 11:16:13 It seems that if I set @string/activity_title on the main activity, it follows it no matter what though Feb 08 11:17:36 vadi2, em, Application parameters (labels/icons) are inherited to activities Feb 08 11:17:46 but if you set your own on activity it gets overriden of course Feb 08 11:18:00 This seems to be the other way around in this case Feb 08 11:18:37 vadi2, nope, it's correct Feb 08 11:18:48 vadi2, the ACTIVITY shows up in the launcher, not application Feb 08 11:18:56 application is just a set of activities :) Feb 08 11:19:23 You can only link to 1 activity in the launcher then... no? Feb 08 11:19:29 nope Feb 08 11:19:39 each activity with the LAUNCHER intent filter shows up in launcher Feb 08 11:19:43 with its title and icon Feb 08 11:19:54 Alright, so seems the best way was my original way - setTitle Feb 08 11:20:54 appel1: thx, looking at that Feb 08 11:20:59 asjfdasd Feb 08 11:21:23 How can I get an activity to run asynchronously? Feb 08 11:21:34 doingitwrong.jpg Feb 08 11:21:38 I'm using onActivityResult but the rest of the function completes anyway Feb 08 11:22:19 MDijkstra, Mavrik thanks for clearing it up, that helped :) Feb 08 11:23:14 guys is it possible to capture the shutdown event and then make my app do some procedure before shutdown? possibliy, "hold" the shutdown until my procedure is over ?! Feb 08 11:23:30 nope Feb 08 11:23:55 whats the clossest i can get? Feb 08 11:24:01 ondestroy ? Feb 08 11:24:16 Motafoca: well, no Feb 08 11:24:44 Motafoca: onDestroy is called when a specific screen is cleaned up Feb 08 11:24:49 Motafoca: ie, an activity Feb 08 11:25:03 this could be due to you calling finish(), the system needing memory, the user pressing back Feb 08 11:25:06 etc Feb 08 11:25:14 i see Feb 08 11:25:23 so what can i do, any ideas?? Feb 08 11:25:34 Motafoca: it depends on what you are trying to accomplish Feb 08 11:25:51 this kind of 'last chance backup' stuff is usually a bad idea Feb 08 11:26:18 MDijkstra: basically i need to launch a shell script to umount a block device, its a quick procedure, but must be done on shutdown Feb 08 11:26:32 right Feb 08 11:26:52 I'm guessing apps can't mount stuff without root Feb 08 11:26:54 on android Feb 08 11:27:08 the device is rooted Feb 08 11:27:35 if i make a button to umount, works perfect, now i need to capture the shutdown so i can umount Feb 08 11:27:52 basically i would leave a service running and then umount Feb 08 11:28:11 appel1: is there a way to disable Preference.onClick or to negate it creating a new PreferenceScreen? (I need to create a custom gui around the pref. screen, so I'm handling clicks for sub-preferences myself) Feb 08 11:28:39 can anyone help me with this; http://stackoverflow.com/questions/9192424/zoom-content-in-a-relativelayout Feb 08 11:29:29 Seimawn2: you should apply the same transformation matrix to the touch coordinates Feb 08 11:29:36 as you're applying to the canvas Feb 08 11:29:47 how you would go about doing this, no clue Feb 08 11:30:03 MDijkstra: Hmm okej ... Feb 08 11:31:51 Err, where I said asyncrhonous Feb 08 11:31:54 I meant synchronous Feb 08 11:32:11 Is there anyway to get my code to stop while I wait for the result of another activity? Feb 08 11:33:14 a way is to not let the child views manage their own touches, I guess Feb 08 11:33:24 simply keep track of which elements are in the canvas Feb 08 11:33:32 but handle all the touches yourself Feb 08 11:34:29 MDijkstra: I am .. but still same :( .. trying to get a matrix instead of canvas.scale .. and apply to the touches to see if that works Feb 08 11:34:29 rufsketch1: startActivityForResult Feb 08 11:35:07 rufsketch1: that won't 'stop' your first activity, but it won't have focus so it can't accept input Feb 08 11:35:12 which is essentially the same thing Feb 08 11:35:33 MDijkstra, no. I need it to stop. Feb 08 11:35:40 rufsketch1: what do you mean by stop? Feb 08 11:35:59 MDijkstra, not execute a single line of code until the called activity returns Feb 08 11:36:17 rufsketch1: why the hell would you want that? Feb 08 11:36:31 ie, you can stop the main loop Feb 08 11:36:37 but freezing it completely? Feb 08 11:37:11 MDijkstra, the same way one would call a function in a regular program, and not have any other lines outside that function execute until that function returns Feb 08 11:37:22 and, I would want to do it for primarily the same reasons. Feb 08 11:37:24 rufsketch1: yeah, except an activity isn't a function Feb 08 11:37:37 it's an independent component Feb 08 11:37:39 MDijkstra, I get that. I'm asking if there's any way to treat it as one. Feb 08 11:37:44 nope Feb 08 11:37:55 urgh. That's going to make this much harder to refactor. Feb 08 11:38:22 rufsketch1: it'd help if you explained why you need this functionality Feb 08 11:38:36 because I can't really see a use case for it Feb 08 11:39:40 MDijkstra, I have an activity that was originally built to be called with some information passed in an intent right off the bat from another activity. Specifically, a user ID, and a "pet Id". Feb 08 11:40:18 MDijkstra, that activity calling this activity has that information because it can only be called once the user is logged in. Feb 08 11:40:53 However, my employer now wants me to refactor this activity (which is meant to upload images) so that I can call it from the "share via" option in the android gallery Feb 08 11:41:49 but once it's called, the user needs to get prompted to log in if they aren't already logged in, and then to select a pet of which the image is supposed to be. Feb 08 11:42:47 So I figured if there was some way to treat an activity as a function, I can call the login and pet selection activities before continuing the rest of the code in the image upload activity that requires those fields. Feb 08 11:43:38 I have a similar workflow, but I do all communication via a service Feb 08 11:43:41 So that is why I wanted it. But now I will instead make an extra activity to handle these things and then call the image upload activity. Feb 08 11:43:50 which can signal each activity when to display login Feb 08 11:44:05 or pet selection Feb 08 11:44:21 this image activity can't really function without the pet and user id already being specified Feb 08 11:44:26 it isn't built for it. Feb 08 11:44:51 rufsketch1: yeah, just saying you'd normally put global state in a service Feb 08 11:44:57 rufsketch1: so you avoid this issue Feb 08 11:45:28 that'd be a massive amount of refactoring though Feb 08 11:48:36 MDijkstra, yeah Feb 08 11:49:06 gotta love this.. integrating with some guys http service at work, the data it returns is three CDATA tags containing fragments of json encapsulated in the xml: Feb 08 11:49:14 he went one step further from the REST architecture... REST In Pieces Feb 08 11:49:29 tdwtf plz Feb 08 11:49:36 haha, I remember a cool xml api Feb 08 11:49:55 where they had a reply like this: <1><2> Feb 08 11:50:05 that's not well-formed, so we submitted a bug request Feb 08 11:50:28 a week later, we got a reply saying we should add =1 to the request string Feb 08 11:50:34 after which it returned: Feb 08 11:50:54 Feb 08 11:50:57 am I allowed to not set a window for an activity? Feb 08 11:52:19 or, any layout whatsoever Feb 08 11:54:27 does anyone have a nice solution to not-embedding sqlite CREATE TABLE statements in code? Feb 08 11:54:56 storkme: deliver the empty database in assets Feb 08 11:55:01 copy it to internal storage Feb 08 11:55:06 that's what I do Feb 08 11:55:36 (mine has data in it, though, not just the structure) Feb 08 11:56:45 interesting Feb 08 11:56:52 so anyone proficient in IDEA ? I have for example "myVal" but i want "yourVal". So i select "my" and i type "y" and it suggests "yourVal". Now when i hit enter I have "yourValVal". Feb 08 11:57:20 how can i make it discard whatever is attached Feb 08 11:58:44 delete? Feb 08 12:01:42 anyone tried changing the blue divider color in ABS yet? Feb 08 12:16:21 guys, my app, when it loads (oncreate), it kind of runs all the code i have before displaying the background, cant i make the background load before any code is executed, and the first line is the setcontentview Feb 08 12:16:40 set it in the xml Feb 08 12:16:57 doesn't help Feb 08 12:17:06 if onCreate takes a long time, nothing is displayed until onCreate returns Feb 08 12:17:06 its on the xml Feb 08 12:17:29 alankila: will make the code on a separate thread solve this? Feb 08 12:17:41 that sounds like a reasonable thing to consider... Feb 08 12:17:42 alankila, oh, I misunderstood. Feb 08 12:17:55 motafoca_out, yeah, split the actual code off to an async task or something ;) Feb 08 12:18:31 Hi there Feb 08 12:18:31 ok, ill try Feb 08 12:21:34 Hi all...How to access custom conten provider from different app...thank you Feb 08 12:31:14 hi Feb 08 12:35:49 Mavrik: another thread working, still no background load until its finished Feb 08 12:35:50 :/ Feb 08 12:39:23 lol, im coding on my imac Feb 08 12:39:33 and running a server on my macbook air Feb 08 12:39:39 and using dropbox to sync Feb 08 12:45:31 Kindly have a look on this code - http://pastebin.com/JfPNU8kv the method word = generateWordtoPlay(board); at line 396, taking too long to calculate the string, I've tried everything such as threads, handlers and AsyncTask, but nothing is working Feb 08 12:46:03 when I use just the method without any thread etc., it works fine, but shows ANR dialog Feb 08 12:46:23 How can I make sure it runs without showing ANR Feb 08 12:46:27 thats a huge fucking class man Feb 08 12:46:39 hehe, yeah sorry, it's a game Feb 08 12:46:56 what is generateWordtoPlay supposed to do Feb 08 12:47:57 The game is like scramble, so it checks the words with correct spelling and returns the word whioch has largest length Feb 08 12:48:22 the method is taking more than 10 seconds which is triggering ANR Feb 08 12:48:38 is it supposed to take more than 10 seconds? Feb 08 12:48:55 yes Feb 08 12:48:56 a word game that takes 10 seconds to verify a turn sucks Feb 08 12:49:16 well, i just want the ANR dialog to hide Feb 08 12:49:20 whats happening if you put it in a thread? Feb 08 12:49:50 the method is not running in thread, and still the ANR is showing Feb 08 12:50:01 then you aren't putting it in a thread Feb 08 12:50:30 I am weak in implementing threads, so can you check the commented thread code, if it's right Feb 08 12:50:53 the method use the values of UI Feb 08 12:50:58 why is it this hard (impossible) to have a frame around a preferencescreen? Feb 08 12:51:15 are you sure you removed the original line at 396 when you uncommented the thread? Feb 08 12:51:24 yes Feb 08 12:51:46 Abhi347: basically everything after line 386 should be in the thread otherwise it wont wait for word to be populated Feb 08 12:51:57 either a thread or a callback, thread is probaly going to be easier for you Feb 08 12:52:53 you mean all the methods?? Feb 08 12:53:22 anything that logically cares about the value of word or that it was completed Feb 08 12:53:33 my initial guess is up to line 434 Feb 08 12:53:40 414 sorry Feb 08 12:54:34 Are there any better ways of preventing a OnItemSelectedListener of triggering when I programatically set a selected item with setSelection, than say; having a variable that I set at the same time that I check for in my listener? Feb 08 12:54:44 oh, let me try putting the whole pass() method in a thread, that might work Feb 08 12:55:36 if you do anything to the ui youll probably have to handle any not on ui thread exceptions Feb 08 13:04:16 hmmm, android doesn't support animated gifs in imageviews? Feb 08 13:39:56 odd.. I've defined a line drawable, use it in a ListView as divider Feb 08 13:40:07 but the divider turns out transparent, no matter what color I give the line shape Feb 08 13:40:40 could it be related to the cachecolorhint? Feb 08 13:43:59 is there a convention on using handlers for callbacks? like if I have a seperate class which extends AsyncTask and I want to use it from an activity I can pass in a Handler to receive a return result, or even some proprietary Callback interface - which is preferred? Feb 08 13:44:02 using a rectangle shape works better Feb 08 13:46:19 storkme: I usually specialized my objects on the spot with anonymous inner classes and override an abstract method I've defined for the purpose of processing the callback Feb 08 13:46:54 i see Feb 08 13:46:56 so rather than doing, say, new FooTask(new Callback() { something }) I just write new FooTask() { @Override protected void onPostExecute(Void... arg) { }) Feb 08 13:46:57 that is interesting Feb 08 13:47:04 or maybe not onPostExecute, if I want to refine the API a bit first Feb 08 13:47:08 what are the advantages of this? Feb 08 13:47:18 least possible amount of code I need to write imo Feb 08 13:47:26 fair enough Feb 08 13:47:29 makes sense Feb 08 13:47:52 arbitrary single-use callbacks are a pita Feb 08 13:48:07 yes, and in fact completely useless Feb 08 13:48:16 compared to just specializing the asynctask subclass on the spot Feb 08 13:48:18 I usually do the same thing Feb 08 13:48:24 except I do name the private inner class Feb 08 13:48:45 which is kind of a pain, as the logic won't flow with the code anymore Feb 08 13:49:09 but none of these solutions solve the problem of the activity not being valid when the async task finishes though? Feb 08 13:49:15 however, activities should not really be captured into asynctasks... given taht asynctask can outlast the activity Feb 08 13:49:24 storkme: it'll always be valid Feb 08 13:49:29 in the sense that the object'll be there Feb 08 13:49:32 I'd strongly recommend capturing a retained fragment instead, and using its getActivity() Feb 08 13:50:33 usually, my asynctasks are bound to the activity Feb 08 13:50:52 if the activity is post-onDestroy the asynctask is useless Feb 08 13:54:16 Eh! My app is trying to allocate 12MB for nothing, what the horse?! Feb 08 13:54:30 how do you know? Feb 08 13:54:39 02-08 14:51:05.941: E/dalvikvm-heap(12333): Out of memory on a 12845460-byte allocation. Feb 08 13:54:44 lol Feb 08 13:55:03 mikedg, i bet you were expecting a stupid answer :P Feb 08 13:55:08 but that one's pretty good :P Feb 08 13:55:18 I have no idea why actually, it seems to be related to me getting a parcelable from an Intent. o_o Feb 08 13:55:35 * n20 just survived round 1 of "How wants to be an IRC-pioneer". Feb 08 13:55:37 sounds like a well-made parcelable Feb 08 13:55:44 trying to capture a photo from the camera? Feb 08 13:55:56 Ha ha... not even that. :( Feb 08 13:56:04 It shouldn't be more than MAX a few kb Feb 08 13:56:11 interesting Feb 08 13:56:14 So something's going wrong Feb 08 13:56:20 very, VERY wrong Feb 08 13:56:30 Funny part is that it then asks me for root access, to get more memory? Feb 08 13:56:34 :D Feb 08 13:56:34 O_o Feb 08 13:56:45 I've created Frankendroid Feb 08 13:56:47 probably not Feb 08 13:57:04 time to get the memory debugger Feb 08 13:57:18 There actually is one of those? I just thought it was a myth Feb 08 13:57:36 Alright, now i'll try to reproduce it Feb 08 13:57:38 (again) Feb 08 13:58:00 I first thought it was just related to 3G being slow and doing something. Turns out it happens on WLAN too nowadays Feb 08 13:58:27 * alankila wonders what bizarro-universe n20 is coming from Feb 08 13:58:27 hrm, aren't you also doing iOS development? Feb 08 13:58:36 I think I remember you from #iphonedev Feb 08 13:58:39 or am I wrong? Feb 08 13:59:01 you're so wrong. :( Feb 08 13:59:05 :( Feb 08 13:59:23 anyway, there is a memory debugger Feb 08 13:59:28 does this also happen on the sim? Feb 08 14:00:28 guys just give up on android dev Feb 08 14:00:33 html5 is the future https://plus.google.com/116031914637788986927/posts/dSavx8Xzft7 Feb 08 14:03:15 ok Feb 08 14:03:18 I will Feb 08 14:03:53 cool, though Feb 08 14:04:15 reminds me of the megaman clone I made using game maker back in high school Feb 08 14:05:57 hi im trying to see my soap result.. Feb 08 14:06:04 sdfdsf Feb 08 14:06:14 SoapObject response = (SoapObject)envelope.getResponse(); Feb 08 14:06:14 btn.setText(response.getProperty(0).toString()); Feb 08 14:06:29 is Window.FEATURE_INDETERMINATE_PROGRESS deprecated in ics? Feb 08 14:06:30 MDijkstra: Do you play Battlefield 3? Feb 08 14:06:46 but i get the error: unexpected type.. Feb 08 14:07:21 nope, ignore me. Feb 08 14:07:29 always Feb 08 14:07:40 :) Feb 08 14:07:45 :) Feb 08 14:07:56 i keep on getting ideas for nice apps Feb 08 14:08:00 I just never find the time Feb 08 14:08:01 how to make androidx86 detect usb disk ? Feb 08 14:08:58 bnmpe4: how about a hi first Feb 08 14:09:22 waht Feb 08 14:09:26 Hello Snuffel :D Feb 08 14:09:46 devs dont like hi bye Feb 08 14:09:52 this android dev chanel Feb 08 14:10:09 i like hi Feb 08 14:10:16 where's hackkitten Feb 08 14:10:21 they write 20 lines java android xml code for hello world Feb 08 14:10:40 bnmpe4: I can make it all fit on one line. Feb 08 14:10:50 * n20 is a great de-indenter. Feb 08 14:10:59 c++ is simple " cout>>"hi"; Feb 08 14:11:02 java is trash Feb 08 14:11:20 bnmpe4: You forgot to include the headers. :( Feb 08 14:11:22 * hackkitten wobbles on top of Snuffel's head~ Feb 08 14:11:56 bnmpe4 > you mean cout << "hi", right? :D Feb 08 14:12:05 how to make androidx86 detect usb disk ? Feb 08 14:12:26 Hello hackkitten, how are you today? Feb 08 14:12:29 yes Feb 08 14:13:36 hey hackkitten how are you? Feb 08 14:13:58 hi Feb 08 14:13:59 hellO Feb 08 14:14:02 how to make androidx86 detect usb disk ? Feb 08 14:14:07 Hi bnmpe4 Feb 08 14:14:23 bnmpe4: stop repeating yourself Feb 08 14:14:31 he ll o n2 Feb 08 14:18:51 Has anyone created an open source component like facebook's popupwindow yet? http://i.imgur.com/QyEt3.png Feb 08 14:19:00 That thing is pretty baller. Feb 08 14:19:12 does an android device always have "External storage"? And that's the place to put files that need to be shared? Feb 08 14:19:28 iivvoo: htc incredible doesn't Feb 08 14:19:33 well Feb 08 14:19:41 it may not be a removable sd card, I think Feb 08 14:19:54 "Every Android-compatible device supports a shared "external storage" that you can use to save files. " Feb 08 14:19:57 yep, i didn't have aremovable card in mine for the longest time Feb 08 14:20:06 some users don't Feb 08 14:20:12 http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Feb 08 14:20:30 oh wait I should continue reading Feb 08 14:24:13 This is interesting Feb 08 14:24:18 I can get it to crash in the emulator too Feb 08 14:24:22 how to make androidx86-ASSUS 4.x detect usb disk ? Feb 08 14:24:31 drive Feb 08 14:24:33 flash Feb 08 14:26:37 Hello guys, setting Calendar object by parsing a string I receive from a connection and than set to Calendar object, results finally in a big negative number because time is not set (after debugging), when is it set? See link: http://pastebin.com/8X9PFCyz Feb 08 14:28:16 how to make androidx86-ASSUS 4.0 detect usb drive ? Feb 08 14:28:31 it just shows 400MB free internal storage Feb 08 14:28:39 clicking on mountSD does nothign Feb 08 14:30:02 Snuffel, n20 > I'm okay~ Feb 08 14:30:18 * hackkitten is just working on her browser and game projects~ Feb 08 14:31:00 hackkitten: How come I got mentioned last? Your built-in sorting must be going for A-Z and then a-z! Feb 08 14:31:09 :P Feb 08 14:31:10 Browser project? Feb 08 14:31:21 www.mayaposch.com/wildfox.php <<-- that browser Feb 08 14:31:26 older build on that page Feb 08 14:31:29 working on new one Feb 08 14:31:37 will release the source once it's stable as well Feb 08 14:34:06 hi.. In android webkit graphics back end code, I discovered that, SharedTexture can be used to share the textures across threads.. Can someone please let me know how to make use this interface? Feb 08 14:35:08 I am guessing that, SharedTexture needs to be instantiated in consumer thread (in my case UI thread) and initialize it in producer thread.. Is it correct? Feb 08 14:35:11 androidx86-4.0-Asus-Laptop isnt detecting usb Feb 08 14:35:33 androidx86-4.0-Asus-Laptop isnt detecting usb , SDcard is empty Feb 08 14:35:36 how to Feb 08 14:35:40 OASKDokfoksdfkj Feb 08 14:41:54 hi, could anyone give me a pointer on how to getting oauth2 to work with accountmanager? any code examples? thanks Feb 08 14:42:15 Hello guys, does anyone see something strange here? http://pastebin.com/8X9PFCyz Feb 08 14:43:39 Number5: yeah, code is ugly Feb 08 14:44:03 why so many try catch Feb 08 14:44:08 what do you mean? because of all the try-catch? Feb 08 14:44:17 yup Feb 08 14:44:21 ooh, copy-paste from a colleage Feb 08 14:44:54 what is asmess values? Feb 08 14:45:34 but, the strange thing is, when debugging at the end of all the set()'s I get a big negative number (result of getTime()), that's not correct. I also see that the isTimeSet field = false Feb 08 14:46:12 it's a string (sMess --> s: string Mess: Message) Feb 08 14:46:51 if date is less than 1970 it will be negative Feb 08 14:47:31 well, it's not, it's today but just a few hours ago. Feb 08 14:48:07 I have to show the difference of time between current time and a date I receive from a connection Feb 08 14:49:59 rgravener, but besides the many try-catch, the code seeme to look normal, assuming that I parse strings correct? Feb 08 14:50:21 my recommendation is to print everything out. Feb 08 14:50:59 or just use SimpleDateFormat.parse(string) Feb 08 14:51:03 to get a Date object Feb 08 14:51:11 then do Calendar.getInstance.setTime(date) Feb 08 14:52:07 rgravener, thnx for your help Feb 08 14:58:37 is there some way to return to the last activity? if i have a theme:dialog activity and the button starts the old activity is has an animation. if i press the back button it has a smooth transition Feb 08 15:02:22 don't understand ya brah Feb 08 15:03:15 in my main i have an add button that starts a new activity with theme:dialog. can i go back to main, without using startactivity? Feb 08 15:03:50 Does anyone know a way to crop or displace an image in the x/y-axis with XML. I'm trying to create a stripe-bar (rotated rectangle, at 45 degrees). I got it rotated, but how di I displace it so its cropped properly. There's no support for negative padding so I can't use croptoPadding Feb 08 15:04:26 when i press back the dialog fades out, but if i start the old activity theres the usual activity transition animation Feb 08 15:06:29 rgravener, check this link: http://pastebin.com/8X9PFCyz at line 18. Feb 08 15:07:53 well, it's finish(), I'm dumb Feb 08 15:08:58 I haven't set date_val on that line, was wasting hours to see that, oh my God, I think I need some a girl to comfort me so I can clear my mind. Feb 08 15:10:29 should take your question to ##java Feb 08 15:11:35 anyone with accountmanager experience around? Feb 08 15:12:00 anyone used ksoap.. ? :D i cant get any results.. Feb 08 15:18:14 Is there a way to re-use dialogs? I would need the same dialogs in multiple activities.. but they are built with the AlertDialog.Builder right now.. Feb 08 15:18:37 is it somehow possible to activate the display when using notificationManager.notify(...)? Feb 08 15:20:09 is github bokrne? Feb 08 15:20:34 you mean broken? Feb 08 15:21:32 i can reach it.. (github) Feb 08 15:21:36 akirk: i think it's best when you just describe your problem Feb 08 15:21:40 you have to instantiate new dialog Feb 08 15:21:44 unless showing an old one Feb 08 15:22:23 Xperimental: i did earlier :) trying to get oauth2 to work with it and am quite stuck on how to approach it Feb 08 15:22:29 Is it good to make my own dialogs? (extend)? Feb 08 15:22:45 or is that just bad practice Feb 08 15:22:48 why not? Feb 08 15:23:02 just extend I think Feb 08 15:23:09 Anyone skilled in low level socket stuff? In particular, I need to know how to control the OS timeout when a closed socket is stuck in FIN_WAIT2 state. Right now it seems to be set at 3 minutes Feb 08 15:23:09 okido Feb 08 15:23:55 fpillet, I assume you have a root device? Feb 08 15:23:59 nope Feb 08 15:24:13 but adb shell lets me use netstat, that's where I could see the socket state Feb 08 15:25:07 fpillet, well than you can't. You are not suppose to go that low level if you haven't rooted your phone Feb 08 15:25:15 akirk: unfortunately i don't know very much about oauth2 Feb 08 15:25:44 Here's the issue: I establish a connection to a remote machine (works fine), talk for a while then decide to close the connection and immediately reopen it. Apparently the remote machine doesn't send the FIN after ACK packet (TCP) when I request the close. This leaves the local socket in FIN_WAIT2 state Feb 08 15:26:08 Problem is, I need to reopen it immediately, to the same machine/port, FROM the same local port for reasons specific to my application Feb 08 15:26:36 fpillet, I haven't done socket programming for a while, but you can try shutdown gracefully Feb 08 15:26:51 search for close and shutdown gracefully Feb 08 15:26:51 I use socket.close() Feb 08 15:26:57 okay let me dig, thanks Feb 08 15:27:10 no problem Feb 08 15:27:12 fpillet: there's an ioctl to get rid of the stale connection immediately Feb 08 15:27:42 MDijkstra: awesome, can access it from Java or need native code? Feb 08 15:28:01 fpillet: problem is, the other host might still also be holding on the connection Feb 08 15:28:16 MDijkstra, it looks like he tries to punchhole a connection a la Skype. Feb 08 15:28:19 in which case a packet from the same ip/port probably won't get accepted by the state machine of the same host Feb 08 15:28:23 yeah Feb 08 15:28:33 correct, if it doesn't follow the TCP procedure of sending ACK + FIN (I see it sends ACK, not FIN) then I have a stale socket Feb 08 15:28:37 *of the remote host Feb 08 15:28:56 fpillet: I guess you'd need native code Feb 08 15:29:03 let me try to find it Feb 08 15:29:09 Actually what's failing is the local Bind to the same local port Feb 08 15:29:36 But it makes sense, since the socket is stalled Feb 08 15:29:36 yeah Feb 08 15:29:59 netstat gives me this which confirms it: Feb 08 15:30:00 tcp6 0 0 ::ffff:192.168.0.44:8020 ::ffff:192.168.0.200:8020 FIN_WAIT2 Feb 08 15:30:41 ah Feb 08 15:30:43 setsockopt(listener,SOL_SOCKET,SO_REUSEADDR,&yes,sizeof(int)) Feb 08 15:30:47 is what you want to do Feb 08 15:30:54 I do set REUSE_ADDR Feb 08 15:31:13 But let me think … Hrm I create the socket using a factory, but create a connected one Feb 08 15:31:22 I guess I have to setup the socket properly _then_ connect it Feb 08 15:31:58 hii... Feb 08 15:32:35 must one have a *.asmx file to connect to an webservice with KSOAP??? Feb 08 15:32:58 or can one point to a .svc file?? Feb 08 15:33:59 Xperimental: well probably from a flow viewpoint it's just like oauth Feb 08 15:44:10 can i assume every device has an sd card? Feb 08 15:44:19 or at least something where i can dump my files Feb 08 15:44:20 nope Feb 08 15:44:43 but somewhere files go = should be safe Feb 08 15:44:59 like the nexus s has no sd card, but a partition of memory Feb 08 15:45:33 so getExternalStorageDirectory() will return something i can use Feb 08 15:53:02 hello Feb 08 15:53:54 it says the google finance api is deprecated. what is the best way to fetch stock quotes from google finance? for a stock app, like a widgit Feb 08 15:54:16 xorgate: remember that the external storage might be unavailable in some situtations, like for example detached by user or mounted as usb storage. Feb 08 15:56:17 yeh im reading about that now Feb 08 16:01:13 hi there Feb 08 16:02:16 anybody can point me out to a simple way to retrieve the object inside a ListView just thanks to its position ? Feb 08 16:03:10 depends on your adapter Feb 08 16:03:30 or maybe rephrase the question :0 Feb 08 16:03:45 fleur: yes, are you using a simple list adapter? Feb 08 16:03:58 I am using a SimpleAdapter Feb 08 16:04:53 in fact, I have two activities, and when you click on an item in the first one, it brings you to another activity that is a listview Feb 08 16:05:05 fleur, what's the arrayadapter second parameter? Feb 08 16:05:06 fleur: getItem(position)? Feb 08 16:05:25 I just wanted to highlight the choice of the user Feb 08 16:05:27 fleur: http://developer.android.com/reference/android/widget/SimpleAdapter.html#getItem(int) Feb 08 16:06:08 huh yes, getItem does what I asked for ;p Feb 08 16:06:35 I do use ".getItemAtPosition" in fact Feb 08 16:06:45 I explain that badly Feb 08 16:07:45 I want to draw a ListView, and highlight one of its element, let's say to put the background color to white, I only have its position, how can I do that ? Feb 08 16:09:01 MDijkstra, Number5 I seem to have solved my issue by manually configuring, binding then connecting my socket instead of directly using the factory methods. As I suspected, once doing that (in particular, socket.setReuseAddress(true) ), it works fine even with the previous connection stalled in FIN_WAIT2 state Feb 08 16:09:37 Is there an opensource version of this popupwindow? http://i.imgur.com/QyEt3.png Feb 08 16:09:59 hwrd_work, can I just use an adapter without use a resource? I mean, using a Vector and pass data? Feb 08 16:10:11 fpillet, congratulations, nice to hear you succeeded :) Feb 08 16:10:46 waltercool: A Vector is a resource. I'm confused on what you mean. Feb 08 16:11:06 hwrd_work, without giving a parameter like R.id.someclass Feb 08 16:11:22 someactivity* Feb 08 16:11:30 waltercool: For the view or for the backing data? Feb 08 16:12:01 hwrd_work, for the list, I just need use a list of strings Feb 08 16:12:01 Number5: yup it totally makes sense that you need to setsockopt BEFORE trying to bind/connect. The OS takes a bit more time (like a couple seconds) to recover the stalled socket and connect, but I'm fine with this Feb 08 16:12:08 waltercool: ah Feb 08 16:12:08 sigh, had to part to change my nickname and id with ns :p Feb 08 16:12:11 where can i ask if devs are interested in doing my idea? Feb 08 16:12:38 waltercool: use ArrayAdapter Feb 08 16:12:41 http://redd.it/pez2r my reddit thread about it:) Feb 08 16:12:41 there's devs here Feb 08 16:12:43 try here :0 Feb 08 16:12:46 just did! Feb 08 16:13:04 hwrd_work, but the second parameter of ArrayAdapter it's R.id.something, isn't? Feb 08 16:13:24 waltercool: You can use an android provided text view. Feb 08 16:13:27 so im trying to work with 9patch that has a top part that i want to stretch horizontal and the bottom part that can stretch horizontal and vertical. Everything looks fine in my graphical layout. But when I load the app on my device. the text that is supposed to be in the top part gets bumped down into the lower part. I made the 9patch the background of a relative layout.. Feb 08 16:13:42 waltercool: Something like: android.R.id.list_item_soemthingBlahIDntRemember Feb 08 16:14:04 waltercool: That will give you a system-like simple text view inside your list Feb 08 16:14:15 hwrd_work, Thanks! I will find this android provided text view id Feb 08 16:14:55 fpillet, I hope I'll remember this when I find myself in the same situation, otherwise there is always MDijkstra around here :P Feb 08 16:14:56 I just want to double check, so I never want to import android.R, but when would I want to import com.company.R? Feb 08 16:15:09 waltercool: I was lazy before Feb 08 16:15:22 waltercool: It's more like android.R.layout.simple_* Feb 08 16:15:39 waltercool: You'll see a whole bunch of choices for list view. Feb 08 16:16:31 hwrd_work, yeah, I see that, simple_list_item for example Feb 08 16:17:03 fleur: Can you just set the row to selected? Or do you need the background of the view to be white? Feb 08 16:17:39 hwrd_work, works great, thanks! I will use that for simple things like that :) Feb 08 16:17:50 hwrd_work: I tried .setSelection() and .setItemChecked(pos,true) Feb 08 16:18:00 waltercool: np Feb 08 16:18:07 .setSelection(pos) Feb 08 16:18:17 fleur: make sure you set the choice mode to multiple. Feb 08 16:18:25 (if user can select multiple rows) Feb 08 16:18:54 and while .setSelection scroll the list to the element that is supposed to be selected (which is half the way) it doesnt really 'highlight' it Feb 08 16:19:05 I only allow one selection Feb 08 16:19:28 in fact, I dont really allow 'selection' if the user clicks a row, I return to the first activity with the new id Feb 08 16:20:06 Also, this may be sort of a hack, but if the user touhes a row, you can get that row's view through a listview OnItemClickListener. I believe the view is passed "onItemClick". At that point you can just manipulate the view's background to the Color.WHITE Feb 08 16:20:36 why is this WRONG??? : http://pastebin.com/zN8Er6pU Feb 08 16:20:45 its KSOAP.......... Feb 08 16:20:54 but being a web developper, it seems so tempting to do something like myListView.childElements()[position].setStyle etc etc etc Feb 08 16:21:49 hwrd_work: that was what I explained badly too, in fact, I dont want to get the map item I gave to feed the listview, I really want to get the view at position myPosition Feb 08 16:22:08 somewhat off-topic question for the independent developers of the channel: is it common for a client's NDA to cover non-disclosure of your working on an app effectively forever? In other words, is it common for an NDA to prevent you from EVER indicating you worked on their app? Feb 08 16:22:53 jhight: not common, but it happens Feb 08 16:23:08 jhight: depending on the country you live in, this may or may not be an illegal clause Feb 08 16:23:09 I'll try to google that maybe I'll find more things with that words Feb 08 16:23:19 fleur: OnItemClickListener does what you want, no? It gives the view and the position? Feb 08 16:23:19 fpillet: USA here Feb 08 16:23:20 (i.e. restrictions may not exceed X years) Feb 08 16:24:08 jhight: That is illegal in the US. Feb 08 16:24:12 hwrd_work: the problem is that I want to highlight the user choice before they click Feb 08 16:24:29 hwrd_work: really? do you have anything pointing to that? Feb 08 16:25:12 how do you know what to highlight if theres no click yet ? Feb 08 16:25:40 hwrd_work: imagine a 150 songs list, the activity is filled with their title and artist it allows the user to select another song (or the same, or return), so basically, I create a ListView, and I want the current choice to be highlighted just when the list is created Feb 08 16:25:54 jhight: Well, I should say. You can't have an agreement that extends the life of the product. Feb 08 16:26:23 jhight: What's more, you can't have an agreement that extends the life of the sensitive information. Feb 08 16:26:34 fleur in your adapter you can determine this in getView Feb 08 16:26:45 jhight: i.e. You are, for life, forbidden to tell anyone about patent x. Feb 08 16:27:04 ^ illegal becuase patent x will expire. Feb 08 16:27:12 why do there have to be so many different damn screen formats Feb 08 16:27:18 idunno about simpleadapter because i dont use it. i extend BaseAdapter Feb 08 16:27:18 WVGA fuck it Feb 08 16:27:23 xorgate I'll check that thanks Feb 08 16:27:53 EC 106: Business Law ftw Feb 08 16:27:57 *WQVGA Feb 08 16:29:06 perhaps related to my earlier issue (height-changing listview dividers) Feb 08 16:29:15 if I set dividerHeight=0dip I still see a divider Feb 08 16:29:23 With my 9patch in my graphical layout this is what shows up. and is kinda what I want. http://i.imgur.com/YuB3V.png but when loaded onto the tablet. this is what happens http://i.imgur.com/3Qb2a.png . please help :) the 9patch is a background for a relative layout. Feb 08 16:30:09 jhight: Ah. I meant unenforceable, not illegal. http://wiki.lawdepot.com/wiki/Confidentiality/Non-Disclosure_Agreement_FAQ_-_United_States#How_long_should_I_make_the_duties_and_obligations_of_confidentiality_last_following_the_termination_of_the_agreement.3F Feb 08 16:30:22 is there an easy way to make a config file with different values depending on whether i launch the app through us debug or make an apk? Feb 08 16:30:28 how can I get the location of a view on the screen? Feb 08 16:30:30 usb ebug* Feb 08 16:30:34 for api <=8 Feb 08 16:30:35 usb debug* Feb 08 16:30:57 thanks, hwrd_work! Feb 08 16:31:38 Maybe illegal in the sense that it's illegal to make an unenforceable contract clause. :-) Feb 08 16:33:10 fucking pastebin Feb 08 16:33:16 whats a good alternative? Feb 08 16:33:44 xorgate: gist Feb 08 16:35:06 rgravener: http://developer.android.com/reference/android/view/View.html#getLocationOnScreen(int[]) Feb 08 16:35:21 hwrd_work cheers Feb 08 16:35:49 hmm Feb 08 16:36:05 is there any API out there that lets me make ICS-style sections in listviews? or do I have to do them myself? Feb 08 16:42:52 is there any reason not to use configChanges="orientation" ? Feb 08 16:43:29 why do you need an extra permission to send sticky broadcasts? Feb 08 16:44:03 is there an easy/better alternative for in-app usage? Feb 08 16:44:38 abaratican i got some bad feedback here http://stackoverflow.com/a/9027632/867099 but it never said whats wrong Feb 08 16:46:23 i run an http post script, but no messages come through Feb 08 16:46:32 logcat posts only this: GC_EXTERNAL_ALLOC freed 327K, 54% free 2888K/6151K, external 3336K/3658K Feb 08 16:46:36 after hitting send Feb 08 16:46:47 did you get the permission in manifest Feb 08 16:46:52 is there no way to troubleshoot? Feb 08 16:47:58 just Feb 08 16:48:33 ok and its outside but inside ? Feb 08 16:48:57 yup Feb 08 16:49:03 then i dont know :0 Feb 08 16:49:49 why am i getting the non-mobile gmail site in chrome :( Feb 08 16:51:02 why are you viewing gmail in chrome Feb 08 16:54:59 xorgate: did you look at this? http://developer.android.com/guide/topics/resources/runtime-changes.html Feb 08 16:56:17 nullpuppy yes.. did i miss something important? Feb 08 16:57:41 I don't think so. Feb 08 16:58:18 oh, I misread what your question was ;) (on stackoverflow) Feb 08 16:59:11 xorgate: are you familiar with this: http://developer.android.com/images/activity_lifecycle.png ? Feb 08 16:59:43 my issue is more that that guy said i was wrong but not really why or how to do it better Feb 08 17:00:11 yeh i know about the lifecycle Feb 08 17:00:58 oooooh. This is what I get for trying to respond to things when I'm not fully awake yet... Feb 08 17:01:16 [11:42:52] is there any reason not to use configChanges="orientation" ? Feb 08 17:01:22 if you want a different layout in landscape? Feb 08 17:01:25 just realized your post is a reply to the question, and then you were corrected... hmm... Feb 08 17:01:30 or a different [insert resource type] Feb 08 17:02:08 xorgate: think it could be a problem in my code? Feb 08 17:04:41 nullpuppy have some coffee Feb 08 17:04:55 dunivan theres always a chance of that of course :0 Feb 08 17:05:09 dunivan this calls for the old fashioned hunt down the problem Feb 08 17:05:19 find the first thing that does not go as expected Feb 08 17:05:44 well thats the problem Feb 08 17:05:49 the app runs as expected Feb 08 17:08:17 no server logs Feb 08 17:08:20 show an issue Feb 08 17:09:36 How reasonable is it to make a GUI application with Python / are there deployment problems with using the Android Scripting Environment? Feb 08 17:09:55 I hate concept of AIDL, when it takes to interface different functionality to different clients... In Android = impossible, all functinons have to be blobbed into same copy of AIDL over all client connectors.....@_]#@^*@$#]*$ Feb 08 17:17:05 this 9patch crap is driving me insane. any 9patch gurus here? Feb 08 17:18:11 9patch is awesome! the top and left are the areas that you want to be scalable Feb 08 17:18:27 the right and bottom is where you want content to "fit" Feb 08 17:19:37 shlumph: I understand that. But when I apply my 9patch to a backgroudn. the text that is supposed to be fit in the top gets bumped down. Feb 08 17:20:24 shlumph: i posted this earlier. With my 9patch in my graphical layout this is what shows up. and is kinda what I want. http://i.imgur.com/YuB3V.png but when loaded onto the tablet. this is what happens http://i.imgur.com/3Qb2a.png . Feb 08 17:22:15 any http post gurus in here? Feb 08 17:22:35 define "http guru" Feb 08 17:24:01 roger_padactor, does the black line on the right side of your .png go all the way up into the grey area? Feb 08 17:24:22 someone who can see issues with an implementation Feb 08 17:24:33 because logcat and my server are giving me nothing Feb 08 17:24:43 Is it possible to use C2DM with SL4A? Feb 08 17:26:03 shlumph: I don't rember i've tried so many.. But i have tried that. Feb 08 17:27:27 it looks like your content doesn't want to go up into the grey area for some reason. either because the right 1px border in your .png doesn't go up that high, or you have some sort of margin/padding in your textview or layout Feb 08 17:27:33 roger set your margins to 0 Feb 08 17:27:53 argh Feb 08 17:28:09 i made sure all margins where not set.. i can try setting to 0 Feb 08 17:28:16 where are the playlists stored on ICS? Feb 08 17:28:17 dunivan: try to drop extra logging into your code? (also, possibly, drop a sniffer in between) Feb 08 17:29:14 is there an easy way to fix logcat randomly stopped working in eclipse? Feb 08 17:29:33 shlumph: it worked. doing all right side top and bottom. and just the write on the left side seemed to do it... ill check back if it f's up again. thanks shlumph Feb 08 17:29:34 without restarting eclipse and apb Feb 08 17:30:14 roger_padactor, np Feb 08 17:30:31 roger_padactor: right/bottom defines the content area. If an area does not have the black border next to it, it gets set as padding Feb 08 17:32:16 SimonVT: shlumph this is what i currently have http://i.imgur.com/BPvwu.png Feb 08 17:32:43 roger_padactor: That's right :) Feb 08 17:33:04 if the right border was the same as the left border, all the top area would be padding Feb 08 17:33:08 == no views there Feb 08 17:33:20 ok Feb 08 17:34:24 Im trying to have a title in the gray area and lots of text in the white.. its a widget. what kinda of parent layout should I use, Im using Frame right now, I was using relative... Feb 08 17:38:11 anyone else have problems runing a app in eclipse? I keep getting the message "emulator-5554 disconnected! Cancelling " Feb 08 17:38:14 A linearlayout maybe? Feb 08 17:39:09 t432: well is the emulator running? Feb 08 17:39:32 Yes Feb 08 17:40:03 t432: is everything up to date? Feb 08 17:40:32 I should hope so. I installed the sdk a few days back Feb 08 17:40:37 ah Feb 08 17:41:03 You're not being silly and closing the window that pops up, are you? Feb 08 17:41:19 android.com's "Downloading the Source Tree" doc describes how to grab a different branch than master, but it doesn't describe how to find what branches are available. how can i do that? 'repo branches' in my sandbox reports no branches. Feb 08 17:41:27 Nope Feb 08 17:41:38 It worked (only once) then started playing up again Feb 08 17:42:24 weird, no clue, sorry. :s Feb 08 17:42:26 SimonVT: haha now the widget problem loading widget :) it never ends :) Feb 08 17:42:33 Is there supposed to be a device in DBMS View? Feb 08 17:42:37 I dont see it Feb 08 17:43:01 uh, yes? Feb 08 17:43:49 ah i see it Feb 08 17:50:25 is there such thing as a max width Feb 08 17:51:33 roger_padactor: no Feb 08 17:51:34 Got It- FYI "adb server-start" does the trick Feb 08 17:51:46 roger_padactor: not that i've found, at least. Feb 08 17:52:01 adb start-server, rather Feb 08 17:52:42 is it okay to do something like this? I'm doing it anyway, but I'd just like to know: static final String TAG = ImageItem.class.getName().toUpperCase(); Feb 08 17:52:43 I Feb 08 17:52:47 man, my alarm clock app always gets killed by the system by the end of the night, wth Feb 08 17:53:08 am using the camera API with my GalaxyNexus, but mCamera.takepicture is returning a 240x320 jpeg bitmap… anyone know why? Feb 08 17:53:52 shurane: How does it behave if you obfuscate? Feb 08 17:55:51 hwrd_work: is it the front camera? Feb 08 17:55:53 i never really understood the point of the TAG field anyway. anyone care to clue me in? Feb 08 17:56:09 tophyr: For Log calls Feb 08 17:56:21 Then you can filter log calls for a single class Feb 08 17:56:25 SeligArkin: no, it's always the default rear camera Feb 08 17:56:27 hmmm, gotcha Feb 08 17:56:41 SeligArkin: I may try setting the Camera.Parameters…. and see if that works Feb 08 17:56:49 that'd be why i never understood it.. don't do much logging besides debug-level stuff that i remove quickly anyway Feb 08 17:57:54 I use a lot of logging, most of which is removed when building release Feb 08 17:59:39 Getting "android process system is not responding" could this be a code issue? Feb 08 18:01:33 For multi lined text are you supposed to use textview or edittext with edit turned off? Feb 08 18:04:03 textview Feb 08 18:09:05 SimonVT: That's not quite what I wanted : i wanted a more generic line that I could use across classes without having to manually fill it in. Or some sort of nice java template that has all those menial details filled in. Feb 08 18:09:19 SimonVT: my line of code, I mean. I thought it was what I wanted, though. Feb 08 18:10:33 So, you just want the IDE to add fields like TAG? Feb 08 18:18:31 So Im building this widget to work in landscape and portrait orientaion. I can seem to get the this to scale with the orientation. The text all ways stays in one line and wont wrap. Thus pushing the widget out and making some of the parts of the widget to get cliped. How do you make a container rang in width and have the text inside wrap to the width? Feb 08 18:18:41 I built a keyer I use on linux using uinput.h to emulate mouse/keyboard input. I'd like to make it work on Android, I don't mind recoding the project from scratch, I think the only thing I'm not sure about is how to make keypresses and touches happen in android from code. Feb 08 18:21:46 I put my issue in the stack if anyone wants to help: http://stackoverflow.com/questions/9199163/http-post-in-app-works-but-submits-no-data Feb 08 18:21:54 roger_padactor: layout_weight, anything you don't want to scale, don't give a weight. Feb 08 18:22:12 don't think of the textview's width in terms of the content, think of it in terms of how much of its parent it should take up. Feb 08 18:22:19 Can anyone check out why I am getting a NullPointer from the MediaStore class? https://gist.github.com/c805f59f0c4768d4a98b Feb 08 18:22:50 I think it might be becuase my ContentResolver is crap, but I have no way to tell why MediaStore can't create a simple thumbnail Feb 08 18:22:57 tophyr: do I use weight for the textview or the container? Feb 08 18:23:01 tv Feb 08 18:24:47 tophyr: :) well what im doing doesn't work.. ill post some code. Feb 08 18:26:23 http://pastebin.com/N57gqUMg Feb 08 18:28:46 not sure what you're trying to go for with that layout. doesn't really make sense to have a textview as the sole element in a linearlayout, which is sibling with another textview inside a framelayout Feb 08 18:29:19 tophyr: there will be more i was just trying to test it. Feb 08 18:31:05 just need the text to wrap when it reaches a max width... Feb 08 18:32:26 i'm trying to test a simple app but I keep getting the message: " Failed to install HelloWorld.apk on device 'emulator-5554!" Feb 08 18:32:45 i upgraded to 4.0.3 and now my device shows as unknown in the device chooser in eclipse Feb 08 18:32:57 i have sdk 14 and 15 installed Feb 08 18:33:13 im on 4.0.3 and im having all kinds of problem Feb 08 18:33:15 when i add the android library to the build path, it automatically chooses sdk 14. no choice Feb 08 18:33:35 jasonmog: are you able to run the app within the emulator? Feb 08 18:33:50 ill try Feb 08 18:34:20 i'm using android:rotate="180.0" however, the view rotates in eclipse view editor but when i run the activity it does not rotate Feb 08 18:34:22 what gives? Feb 08 18:34:46 rgravener: whet version does the device run? Feb 08 18:36:01 SeligArkin: 2.2 Feb 08 18:36:12 rgravener: that would be why Feb 08 18:36:14 mofo Feb 08 18:36:23 $%#$ Feb 08 18:36:24 thanks Feb 08 18:40:38 I have a library project that is hooked up to two other normal projects. Everything is working fine, however the library has a line that says R.drawable.icon, but this is a unique icon to each project, not the library. how do I get a reference to the projects icon?? Feb 08 18:41:08 roger_padactor: so basically, you want the textview to be the full width of its container (be that the FL or LL) Feb 08 18:41:33 roler: Just have a drawable named icon in your main projects Feb 08 18:41:42 They should overwrite the icon from the library Feb 08 18:41:52 ohhhhhh…. I see Feb 08 18:41:52 roler does your library need the icon? Feb 08 18:42:00 because if not you should just delete it Feb 08 18:42:03 the library does not need the icon Feb 08 18:42:11 but maybe that's the problem, because I did delete it from the library Feb 08 18:42:11 Put a dummy icon.png in the library Feb 08 18:42:16 maybe if I put it back it won't complain Feb 08 18:42:31 can I just do 'touch icon.png' Feb 08 18:42:47 or rebuild R so the R.drawable.icon goes away Feb 08 18:42:52 roler: if it is specified in code, make it just a variable that is passed in Feb 08 18:42:53 Not sure, might have to be a real png Feb 08 18:43:02 and make sure all references to it in xml/activites/manifest are gone Feb 08 18:43:13 nevermind turns out that the poorly designed transformer prime usb port was loose Feb 08 18:43:14 do I have to use a permission other then internet for http post? Feb 08 18:43:21 No Feb 08 18:43:26 the plastic piece separating the pins came loose first day Feb 08 18:43:58 tophyr: correct.. its for a widget.. the width changes depending on which way the user holds the tablet.. Feb 08 18:44:07 damn Feb 08 18:44:22 @roler: why not making a call to init the lib? init(IDtoDrawable) ? Feb 08 18:44:30 roger_padactor: Why not just fill_parent on the textview Feb 08 18:44:34 roger_padactor: just set the TextView to layout_width="fill_parent" Feb 08 18:44:43 if it goes shorter the width of the container should get smaller and the tex should wrap Feb 08 18:44:55 it will. Feb 08 18:44:59 jasonmog: did you manage to start app? Feb 08 18:45:17 y2E0: ;you are going over my head :) I'm an iPhone developer learning Android :) Feb 08 18:45:23 y2E0: but I think I got it Feb 08 18:45:28 yes Feb 08 18:45:30 sry :) Feb 08 18:45:32 bad connector Feb 08 18:46:14 ah Feb 08 18:46:20 tophyr: changed to fill_parent in the tx view. still not working. should the LL be set to wrap_content? i think it is Feb 08 18:46:24 jasonmog: I would sugest talking with asus about that ( That is who made the transformer prime, right? Right? ) Feb 08 18:46:38 roler: what he and I said is that you just pass in an id and within your library, you create a drawable from the passed in id using the Resources object Feb 08 18:46:59 roler: that way your library has no actual dependency on a specific drawable Feb 08 18:47:21 roler: my suggestion is look how Views are constructed Feb 08 18:47:22 * y2E0 nods Feb 08 18:48:02 roler: views have no real notion of what EXACT drawable they are using, but instead are configurable via styles and themes Feb 08 18:49:26 different question: why does my client get NoClassDefFoundError exception on launch? says my Application subclass is not found Feb 08 18:49:31 works fine on my own device Feb 08 18:49:48 any number of reasons Feb 08 18:49:54 need a full stack trace and contextual logcat Feb 08 18:50:07 usually caused by using an api that is not available on an older version Feb 08 18:50:10 ill pastebin Feb 08 18:50:42 http://pastebin.com/bBysApSh Feb 08 18:52:02 app's min version is 11 Feb 08 18:52:07 they have 3.1 Feb 08 18:52:10 sdk 12 Feb 08 18:52:11 Did you obfuscate it away? Feb 08 18:52:35 jasonmog does it happen every time? Feb 08 18:52:51 yes Feb 08 18:52:54 also thats an anonymous inner class of the application Feb 08 18:52:55 no obfuscation techniques employed Feb 08 18:53:49 only anonymous class is what i'm passing to registerActivityLifecycleCallbacks() Feb 08 18:54:35 it just increments/decrements an integer as activities pause/resume Feb 08 18:54:42 herriojr: I get it. Well, the problem is also that this is a class, not based off an Activity. So not sure if it requires the onCreate or not Feb 08 18:55:09 jasonmog: no, you can pass in the Context and resource id into the class constructor Feb 08 18:55:19 ah i see Feb 08 18:55:24 registerActivityLifecycleCallbacks() is not available before sdk 14 Feb 08 18:55:28 jasonmog: that was meant for roler Feb 08 18:56:08 I don't even see registerActivityLifecycleCallbacks in the docs... Feb 08 18:56:44 http://developer.android.com/reference/android/app/Application.html#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks) Feb 08 18:56:46 t0mless: part of the Application class Feb 08 18:56:54 ahh Feb 08 18:57:03 I was looking in fragment and activity Feb 08 18:57:16 t0mless: Application class Feb 08 18:58:09 I guess that can be pretty handy Feb 08 18:58:14 yeah Feb 08 19:01:41 hey all. Anyone good and familiar with drawing to canvas and extending SurfaceView? Feb 08 19:03:18 could use somebody like that to modify zxing to support portrait Feb 08 19:08:06 t0mless: should i switch lines 69-72 to something else? could my exceptions be the issue? http://pastie.org/private/djy53sk1pkfrrssxijxw Feb 08 19:08:20 or anyone Feb 08 19:09:02 you should probably print the exceptions at least Feb 08 19:09:11 ^ Feb 08 19:09:23 What is your issue?? Feb 08 19:09:31 dunivan: The order is correct Feb 08 19:09:40 i have a contact form in my app Feb 08 19:09:46 no errors with the xml Feb 08 19:09:58 dunivan: You want to start at the bottom of the inheritance chain and go up with exceptions or else the IOException will catch all exceptions Feb 08 19:10:19 dunivan: This is because ClientProtocolException extends IOException Feb 08 19:10:28 the file i posted is the java, and that is supposed to send the form data to my server's mobile php mailing script Feb 08 19:10:40 Using RelativeLayout, is there no way to tell two views to share height evenly? Feb 08 19:10:44 and.... it's not working? Feb 08 19:10:54 I'm trying to avoid using a nested LinearLayout :-( Feb 08 19:11:10 http://pastie.org/private/dlhkdxkjtjkp9huzthq Feb 08 19:11:19 right t0mless Feb 08 19:11:29 uses the right permission Feb 08 19:11:30 you should definitely print your exceptions Feb 08 19:11:46 if you're catching something and not doing anything with it would make it hard to debug Feb 08 19:12:21 so print exceptions in the java Feb 08 19:12:44 Yes Feb 08 19:12:47 and VidMas switch io and client protocal? Feb 08 19:12:53 if I say alignParentTop on A and alignTop=A and alignParentBottom on B, then A ends up using minimal space, and B uses all remaining space Feb 08 19:12:57 dunivan: No leave it, it is correct Feb 08 19:13:17 er, I mean layout_Below=A Feb 08 19:13:21 I'm sorry... you want him to just catch exceptions and do nothing? wtf is wrong with you Feb 08 19:13:34 oh Feb 08 19:13:35 shit Feb 08 19:13:39 missed his second question Feb 08 19:13:42 -_- Feb 08 19:13:59 no, I want to send this form through my php script Feb 08 19:14:02 dunivan: Also, what everyone is saying is right, you maybe want to Log.e inside your catch blocks to see the message that is creating an error Feb 08 19:14:49 dunivan ignore that last thing I said, when VidMas said leave it I thought he was taking about something else Feb 08 19:14:59 Log your exceptions and see what isn't working Feb 08 19:15:07 so use this kind of thread: Log.e("MYAPP", "exception", e); Feb 08 19:15:10 replacing my app Feb 08 19:15:14 Yup Feb 08 19:15:15 with myapp Feb 08 19:15:32 and can even replace "exception" with e.getMessage() Feb 08 19:15:48 Log.e("HTTP Client Execute", "Message: " + e.getMessage()); Feb 08 19:15:56 dunivan ^ Feb 08 19:16:01 thanks! Feb 08 19:16:02 Thanks t0mless Feb 08 19:16:12 hmm, i wonder if my http Client could be the issue Feb 08 19:16:25 not sure what passing the exception to the Log.e does excactly, but I think it prints the stacktrace Feb 08 19:16:37 I bet I know what it is Feb 08 19:16:44 you're running excecute on the main thread Feb 08 19:17:01 and android is thowing an IOException saying DON'T DO THAT Feb 08 19:17:07 but you're just catching it and not doing anything Feb 08 19:17:32 when debugable=false in the manifest will the code still produce logs? Feb 08 19:17:41 Yes Feb 08 19:17:42 dunivan: It is the HTTP request because your PHP page has errors in it... just tried to navigate there... :( Feb 08 19:17:48 I think so anyway Feb 08 19:18:02 hmmm 'cause I dont like app names for tags. just messes up logcat filters :C Feb 08 19:18:44 y2E0: Can you create a TAG for each class, or for the function call to narrow down your logs for filters? Feb 08 19:18:54 * pfn ponders writing a android.util.Log convenience wrapper Feb 08 19:18:59 oi Feb 08 19:19:08 i rather create tags on a "verbose level" Feb 08 19:19:08 so I don't have to specify the tag every single time... Feb 08 19:19:17 like tag.communication tag.status Feb 08 19:19:18 I made a util log wrapper Feb 08 19:19:29 say, is there some sick way to force a buffer-size upon MediaPlayer Feb 08 19:19:32 java.util.logging.Logger would be nice Feb 08 19:19:33 that puts MyApp: as the tag Feb 08 19:19:44 so execute should apply outside of where i have it? Feb 08 19:20:02 dunivan not outside where you have it, on another thread Feb 08 19:20:09 but still you have to filter logcat for every app name, don't u? Feb 08 19:20:38 which is not difficult Feb 08 19:20:52 dunivan: did you check your PHP page btw, there seems to be errors which will always cause your HTTP Request to fail Feb 08 19:21:09 php works on web forms Feb 08 19:21:10 it's a post so there wouldn't be any output anyway Feb 08 19:21:18 what do you see vidmas Feb 08 19:21:29 t0mless; true but i don't like logcats filter management so I try to use as less as possible :) e.g. in my eclispe i can't even reorder them <.< Feb 08 19:21:53 t0mless: i thought post was the way to send to a script like this? Feb 08 19:21:55 use intelliJ :p Feb 08 19:22:05 dunivan it is Feb 08 19:22:29 but if you try to browse to a php script relying on a post in a browser, it will fail Feb 08 19:23:02 dunivan and t0mless whether or not it is not supposed to return any text because it is a post, there is a syntax error. So even getting information from a form in an android app will fail Feb 08 19:23:11 ahh Feb 08 19:23:30 whats the syntax error VidMas, in the php script itself? Feb 08 19:23:33 missing quotes Feb 08 19:23:38 line 49 Feb 08 19:23:39 dunivan and t0mless the android app is communicating over HTTP POST which is the exact same port and protocol as your browser Feb 08 19:23:46 t0mless correct Feb 08 19:23:53 dunivan syntax error on line 49 Feb 08 19:24:25 around $emailaddress? Feb 08 19:24:27 that stuff? Feb 08 19:24:40 is the rez/layout folder supposed to have sub dir of layout-land/ ? Feb 08 19:24:41 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/bdunivan/public_html/mailformmobile.php on line 49 Feb 08 19:24:42 Parse error: syntax error, unexpected T_STRING in /home/bdunivan/public_html/mailformmobile.php on line 49 Feb 08 19:24:45 Exact error Feb 08 19:25:26 you added strings inbetween the variables Feb 08 19:25:30 dunivan you may be trying to put a backslash in a string, but backslash is an escape character. I can't see your PHP code of course, so it's hard to pinpoint from here Feb 08 19:26:09 $message\n\nName: $name\nUrl: $website should be $message.'\n\n'.$name.'\nUrl:'.$website Feb 08 19:28:07 you guys were right! Feb 08 19:28:24 thank you thank you thank you! Feb 08 19:28:30 i've been on that issue for 20 hours Feb 08 19:28:35 what device are you testing on? Feb 08 19:28:48 nexus s 4g Feb 08 19:28:50 because newer devices might not let you do httppost call on main thread Feb 08 19:29:56 my gf is about to leave to go to a 5 hour interview -_- Feb 08 19:30:05 she has an itinerary and everything Feb 08 19:30:05 dunivan: t0mless is right, if you have to run it in a separate thread, it would be worthwhile to check out some tutorials on Multithreading and Runnables Feb 08 19:32:34 will do vidmas Feb 08 19:33:43 i should probably bump it to its own thread anyways right? Feb 08 19:34:39 man chrome tab switching ui is really nice Feb 08 19:34:52 it's gives me boners Feb 08 19:34:57 indeed Feb 08 19:34:59 i had to stop using it when i was out of the house Feb 08 19:35:14 i almost got kicked off the train this morning because of the tabs Feb 08 19:35:44 It's disappointing that it's gonna be a gapp and not in aosp Feb 08 19:36:03 is it in the chrome repo though? Feb 08 19:36:14 dunivan: Yes otherwise when you submit the form to POST to the URL, your UI will hang until there is a response Feb 08 19:36:25 I know I asked this earlier .. but really haven't solved this yet. If anyone can help me, please … http://stackoverflow.com/questions/9192424/zoom-content-in-a-relativelayout Feb 08 19:36:26 hopefully it'll be available in chromium Feb 08 19:43:24 Hey guys, anyone knows which widget I should use for an animated GIF? I really don't want to pollute my res-folder with lots of image sequences Feb 08 19:46:08 So, animated GIF's anyone? Feb 08 19:46:24 ricardjorg: in 4 years Feb 08 19:46:35 ricardjorg: http://stackoverflow.com/questions/3660209/android-display-animated-gif Feb 08 19:46:55 ricardjorg: Seems to be a thread on StackOverflow with a good answer Feb 08 19:47:30 They use a custom class Feb 08 19:47:44 Isn't there a default widget that does that? Feb 08 19:49:46 Ok, then, I'll surrender to the dark side and add another class to my app :P Feb 08 19:49:57 hey guys Feb 08 19:50:06 how do I know which Activity I am on? Feb 08 19:50:08 neural networks Feb 08 19:50:15 ! Feb 08 19:50:20 when I am in a fragment, i use this.getActivity() Feb 08 19:50:27 but is there anyway to know which Activity it is? Feb 08 19:50:35 I am pulling the Fragment from several Activities Feb 08 19:50:53 * giant_g2 typed his google search in the chan by accident Feb 08 19:51:17 Meetoman: Why do you need to know? Feb 08 19:51:29 ricardjorg: yea sorry bud Feb 08 19:51:32 Because I need to execute some public functions from those classes Feb 08 19:51:40 Fragment > Activity communication should be done through interfaces Feb 08 19:51:42 SimonVT, i have functions written in parent class Feb 08 19:52:14 Meetoman: If it is a parent class that you are extending, then use super.functionName Feb 08 19:52:20 forgive the dumb question, but what is the difference between private and public voids? Feb 08 19:52:46 And it should be done through interfaces for the exact reason you mentioned. Fragments can be used all over Feb 08 19:52:47 VidMas, how do I know the parent class? Feb 08 19:52:54 dunivan: what's a "void"? Feb 08 19:53:06 this.getActivity() only gets me the Activity, it doesn't get me the "exact" activity Feb 08 19:53:07 dunivan: That is a basic fundamental of Encapsulation in Object Oriented Programming Feb 08 19:53:30 "void" means no value. Feb 08 19:53:39 Meetoman: If your parent class is called Class1 then your new class would say: public class Class2 extends Class1 Feb 08 19:53:54 java has also object version of void which it calls Void. It means only null value ("no object") is acceptable. Feb 08 19:53:59 'void' in front of a function means it doesn't return anything (as opposed to int, Object, etc). unrelated to public/private Feb 08 19:54:01 well a void means nothing comes out of it Feb 08 19:54:11 ohhh, yeah jrr Feb 08 19:54:23 so private void means on the DL? Feb 08 19:54:36 private void means "method only visible to this class which returns no value" Feb 08 19:54:37 like no logging? Feb 08 19:54:47 ohhh Feb 08 19:54:50 * jrr thinks we're being trolled Feb 08 19:54:54 dunivan: public means that you can access the method or variable from outside the class, private means only access from the current class or classes that inherit this class Feb 08 19:55:00 nah, im justa noob jrr Feb 08 19:55:02 nah, someone is just ignorant about basic OO. Feb 08 19:55:22 that would have been helpful 2 days ago ha ha Feb 08 19:55:36 i was trying to call a private method elsewhere Feb 08 19:55:50 all i needed to do was change to public Feb 08 19:56:09 java has 4 levels of visibility: private, protected, default and public. Feb 08 19:56:18 the little squiggly underline should have suggested that Feb 08 19:56:23 I have another doubt: In the res folder, we can have a folder like drawable-xhdpi or drawable-large, or even drawable-large-xhdpi. But that folder is for large AND xhdpi devices.. Can we have a folder for large OR xhdpi devices? Feb 08 19:57:00 I don't use default much, I constrain myself to private, protected and public. Protected is like private except it's visible to subclasses. Default is visible to everyone in the same package Feb 08 19:57:13 no, ricardjorg Feb 08 19:57:22 dunivan: if it is a method, public may be OK but for variables almost never would you want them public Feb 08 19:57:35 google will pay you for your browsing information http://www.google.com/landing/screenwisepanel/ Feb 08 19:58:28 ricardjorg: I don't think so. You can make a drawable-large reference the drawable-xhdpi image though, some xml file should pull that trick Feb 08 19:58:41 Aw.. I wanted to use the xhdpi images for the xlarge screens.. So I'm going to have to place duplicates of all those files? Feb 08 19:58:49 the reason why it must be in this order is that the DPI is presumably more important than the screen size Feb 08 19:59:06 ricardjorg: it's probably wise so you can control icons without scaling Feb 08 19:59:48 Other way around, alankila Feb 08 19:59:48 hum, ok then.. thanks guys :D Feb 08 20:00:11 SimonVT: whatever you may think, I personally think the dpi would be more important :-p Feb 08 20:00:17 Anyone know why the SurfaceView documentation recommends creating an inner class that extends Thread as opposed to creating a new Thread and passing it an external Runnable? Feb 08 20:00:17 Screensize is matched before dpi Feb 08 20:00:20 :p Feb 08 20:00:33 SimonVT: nah, that's not relevant here & not what I meant Feb 08 20:00:41 oh, alright Feb 08 20:00:42 although I did not know that. Feb 08 20:07:30 hi guys . i am a new android dev. I am trying out a sample contact dialer program. but the following methods i used are indicated to be deprecated: Feb 08 20:07:30 i.setData(Uri.withAppendedPath(Phones.CONTENT_URI, phoneId)); Feb 08 20:07:38 what should i replace it with ? Feb 08 20:08:13 the error i am getting is : Feb 08 20:08:14 The method withAppendedPath(Uri, String) in the type Uri is not applicable for the arguments (Uri, long) Feb 08 20:08:26 can anyone help ? Feb 08 20:08:39 you provide a String where android is expecting a long. Feb 08 20:09:19 well other way around xD Feb 08 20:09:30 Hi. Is arm-linux-androideabi-g++.exe part of the NDK Feb 08 20:10:19 y2E0, Oh yes oh yes! such a silly mistake. thanks alot ! Feb 08 20:10:28 got rid of it .. Feb 08 20:10:34 =) Feb 08 20:11:33 any1 with an sgs2 wanna test something for me? Feb 08 20:11:42 hey, anyone knows a good place to get started with android game development? Feb 08 20:11:53 opengl Feb 08 20:11:56 great place to start Feb 08 20:12:51 Mr_cracker: or you can use a open source engine or buys fome some game engine / tools / IDEs Feb 08 20:12:53 all are good Feb 08 20:13:07 OpenGL is the hard low level route of course Feb 08 20:13:22 oh , ok. Feb 08 20:13:31 is it profitable to develop an app? Feb 08 20:14:01 Mr_cracker a lot of factors go into "profitable" Feb 08 20:14:02 not really Feb 08 20:14:09 you prob won't get rich Feb 08 20:14:21 you prob won't break even Feb 08 20:14:21 probably wont no Feb 08 20:14:43 nixmaniack, are u there ? Feb 08 20:14:52 hmmmmm, what is the best way to stop a Service? A call to stopService() in every onPause() method for every Activity that uses it? :S Feb 08 20:15:05 oh ok, so i guess if i decide to go ahead it would be mainly to have fun Feb 08 20:15:15 more money on iphone right now Feb 08 20:15:15 and profit would come second Feb 08 20:15:22 ad revenue is better on android Feb 08 20:15:48 yeah i think iOS users are more willing to spend some money on the appstore Feb 08 20:16:37 http://images.dailymobile.se/wp-content/uploads/2011/02/550x-updateyourOS.jpg Feb 08 20:16:51 theres also a higher cost to develop on iOS too though Feb 08 20:17:18 need a mac and a $100/yr developer sub Feb 08 20:17:24 and to learn obj-c =] Feb 08 20:17:50 i guess both have pros and cons Feb 08 20:18:58 is there a way to get the name of the user of the phone? Feb 08 20:20:01 Mr_cracker: is it profitable ? mostly no… Feb 08 20:20:07 unless you do contracting Feb 08 20:20:15 i make about $100 mo from my app Feb 08 20:20:29 YMMV some genres are worse then others… games are hard lots of competition Feb 08 20:20:32 rgravener: app? Feb 08 20:20:38 rgravener, yeah, I make roughly the same :( need to do better Feb 08 20:21:02 I make maybe 100 off of 12 apps / games... Feb 08 20:21:03 jrr: com.njtransit.rail Feb 08 20:21:07 ios / mac Feb 08 20:21:26 but I turned off paid advertising this month so I'll make no money. Feb 08 20:21:30 I make 6figuress off a day job ;) Feb 08 20:21:41 i'm a php mysql guy and i am thinking of learning other languages but i'm not sure about mobile development Feb 08 20:21:51 mobile is fun. Feb 08 20:21:57 lots of cobtracting Feb 08 20:22:01 I want to create an app that periodically checks battery status. Is IntentService something I would use for this? Feb 08 20:22:11 heck its just damn cool to see your code run on a hand held. Feb 08 20:22:26 it is! Feb 08 20:22:29 i came in this room and someone recognized my app Feb 08 20:22:36 thought that was funny Feb 08 20:22:37 hehehe, yeah i think that would be cool Feb 08 20:22:40 Mr_cracker: http://www.anscamobile.com/corona/ Feb 08 20:22:48 you might be more at home with a tool like this Feb 08 20:23:53 TheBunny: looks nice , thanks Feb 08 20:24:27 http://img198.imageshack.us/img198/5846/upshotuvrpokla.png Feb 08 20:24:30 some sales.. Feb 08 20:24:33 ios / mas Feb 08 20:24:37 have not ported to android yet Feb 08 20:24:59 it is like playing the lottery Feb 08 20:25:04 but the more you do it the better you get ;) Feb 08 20:25:44 TheBunny: you wrote all those apps? Feb 08 20:25:50 yes Feb 08 20:26:08 they all work off the same multi platform game engine I wrote Feb 08 20:26:36 luckly you can use a 3rd party engine for this ;) Feb 08 20:26:39 TheBunny: nice, I'm going to download them Feb 08 20:26:56 their just small puzzle games Feb 08 20:27:01 MOuse house was the test bed Feb 08 20:27:19 the real goal was to make a modern SNES engine that would be good for RPGs. Feb 08 20:27:22 hey which is the best way to figure out what methods to use to replace with deprecated ones ? Feb 08 20:27:26 we just have yet to ship an RPG Feb 08 20:27:52 that would be cool Feb 08 20:28:05 TheBunny: is house of mice the same as mouse house? Feb 08 20:28:12 no Feb 08 20:28:32 does text scale like images do? Feb 08 20:28:34 TheBunny: i'm trying to find mouse house on the appstore Feb 08 20:28:57 is there an easy way to root my galaxy s2 from a mac? Feb 08 20:29:13 found several blogs on how to do this, but all of them require windows Feb 08 20:29:36 ejpbruel: you'll have more luck on #android-root; this is much more an app-dev channel Feb 08 20:29:40 Mr_cracker: http://plaidworld.com/ Feb 08 20:29:43 shoudl have links Feb 08 20:29:48 thanks Feb 08 20:29:51 dragorn: thanks! wasnt aware of that channel Feb 08 20:38:44 what exactly am i supposed ot add to my manifest so I can open an activity from a widget? Feb 08 20:38:59 do users really not like forcing landscape view in an app? Feb 08 20:39:18 dunivan: depends on the app Feb 08 20:39:32 like a business card app? Feb 08 20:39:55 explain Feb 08 20:40:06 roger_padactor: can't you just context.startActivity(new Intent(context, FooActivity.class)) ? Feb 08 20:40:16 i had to scale up text for tablets, so Im wondering if I should just lock in landscape view for the app on phones Feb 08 20:40:27 A client gave me a background art to use for the home screen, the artwork is the background imagery as well as buttons for navigation, all as a single image file … is it possible to position invisible Button components on top of the artwork at exactly the right locations, and have it work for ALL display configurations? Feb 08 20:40:34 or if I'll have to fragment the app and have a phone version/tab version Feb 08 20:41:19 dunivan: you can have phone vs tablet specific behavior conditional at runtime, instead of distributing two apps Feb 08 20:41:26 In other words, is it possible to configure a view to have a background image and overlaid buttons that are always in sync, regardless of the display configuration? Feb 08 20:41:48 alankila: no idea I thought I had to use the setOnClickPendingIntent Feb 08 20:41:50 jhight: are you wanting android to look at your image, find the fake buttons, and put real ones on top of them? Feb 08 20:41:56 to specify tab text size and phone test size? Feb 08 20:42:32 roger_padactor: that might also work but I imagine as widget you can capture user clicks on buttons or any other UI elements, and respond however you wish Feb 08 20:42:41 jrr: that would be nice :-) but no i'm wondering if there's any way to center/scale proportionally for all possible devices Feb 08 20:42:45 but still, even if you do have to use PendingIntent, that is not so much different Feb 08 20:42:55 alankila: its not a button... Feb 08 20:43:18 roger_padactor: yes, well, I've never actually made a widget so I'm ignorant of how they work Feb 08 20:43:33 :) Feb 08 20:44:51 How would you implement an intro screen full of text? Feb 08 20:45:00 02-08 21:41:14.759: E/dalvikvm(25361): Extra info: Footprint=26531KB, Allowed Footprint=31779KB, Trimmed=2024KB :( Feb 08 20:45:18 jrr: perhaps i'm going about it the wrong way … what approach would you recommend? Feb 08 20:45:37 I'd do seperate background image Feb 08 20:45:41 and then style the buttons Feb 08 20:45:45 roger_padactor: What exactly is the issue? Feb 08 20:45:53 then it is easier to handle landscape/horizontal etc Feb 08 20:46:16 I might be doing something really wrong MDijkstra Feb 08 20:46:35 jhight: what if you try to clip the buttons off from the background image? Feb 08 20:47:20 Is TextView the right way to store a page of text? Feb 08 20:47:32 vavirta: yeah, i could go back to the customer and ask for a layered image and work with that, but then I'd still have the problem of scaling the buttons and making sure they sync up with the background image Feb 08 20:47:42 or is it for just short messages? Feb 08 20:47:59 SimonVT: Im trying to launch my main activity or another one when the user presses the "bookmark" LL when I touch it i get the unable to start service Intent { ....HOTActivty... } : not found. Feb 08 20:47:59 that's true Feb 08 20:48:39 roger_padactor: Pastebin the code Feb 08 20:48:46 Don't know how to help with the syncing thing etc... sorry :/ Feb 08 20:49:13 vavirta: yeah, supporting the myriad of display configurations is kinda sucky Feb 08 20:50:06 SimonVT: take it easy on me. :) http://pastebin.com/m9bmXPEq Feb 08 20:50:22 roger_padactor: PendingIntent.getService Feb 08 20:50:27 Might want to use getActivity :p Feb 08 20:50:54 hahaha Feb 08 20:50:56 oops Feb 08 20:51:30 ill see what new error I get now. Feb 08 20:51:53 ah it worked! haha Feb 08 20:52:50 I've figured out a method to allow arbitrary server port specification for Exchange server setup. There are minimal code changes required which makes me wonder if it is a concious decision leave this feature out intentionally. Feb 08 20:53:44 I can code it up and submit to AOSP but does it have a snowball's chance of getting merged? Feb 08 20:54:09 SimonVT: Is there a proper way to handle a landscape and portrait widget? I kinda want it to adjust on its own but its looking like ill need two layouts and change them when the device changes orientation. Feb 08 20:55:11 roger_padactor: What's the issue? Feb 08 20:55:55 can I convert R.layout.main to a "View" object so I can set its setOnClickListener() ? (I need to get clicks all over the layout, except where there're buttons or such) Feb 08 20:57:40 SimonVT: My widget needs to adjust to the width of device and thes text containers seem to only stay the same width... So my solution was to just make two differnt layouts or change the width of the LL that aren't adjusting when the device changes orientation. Feb 08 20:58:27 So just fillparent? :F Feb 08 21:00:49 I've tried that. it covers the other parts of the layout. the layout is such that the its a 3 column layout where the 1 and 3 colum do not change in size but the middle one has a min and max size... Feb 08 21:01:11 if I do fill on the middle one it over laps the 3rd one. Feb 08 21:01:28 pushes it out of the way I guess. Feb 08 21:01:29 Then use weight to fill Feb 08 21:02:57 * pfn ponders where to squeeze in a lag indicator on his irc client Feb 08 21:03:16 How can I add scale and position to a MotionEvent? Feb 08 21:03:29 im sure ill figure it out... SimonVT thanks for the suggestions. Feb 08 21:04:00 Why would I not be able to import android.support to my app? Feb 08 21:04:27 you neglected to include the jar in your project, maybe Feb 08 21:04:33 add it to build path Feb 08 21:04:57 AbstractClass, you need to include android-support-v4.jar Feb 08 21:05:01 hi there! short question, is safe to assume that immediately after calling startService(...) (given that it returned with a non-null Component) binding to this service will definitely succeed? (something like 'if (startService(...) != null) bindService(...);') Feb 08 21:05:33 alankila pfn thanks, i'll try and figure out where that is in eclipse lol still transitioning from vs Feb 08 21:05:43 right now i try to bind in a while-loop until it succeeds, not sure if this is necessary ... Feb 08 21:05:54 antianno, yes Feb 08 21:05:55 antianno: see bindService, Context's AUTO_CREATE flag Feb 08 21:06:18 nah, don't want AUTO_CREATE Feb 08 21:06:21 pfn: thx Feb 08 21:06:31 antianno: you are misunderstanding many things about android. The while loop in particular is crazy idea Feb 08 21:06:57 antianno: because android will not even try starting the service until you return from that method Feb 08 21:07:49 SimonVT: yeah! it worked,,, Feb 08 21:07:57 alankila: because both calls are executed on the main thread, i figured this, i just wanted to make sure ;) Feb 08 21:08:27 alankila: so no need to imply i'm misunderstanding _many_ things about android ;) Feb 08 21:08:29 antianno: I personally have a large antipathy towards service becasue bindService is not synchronous Feb 08 21:10:35 and, um, fair point. I'm sorry, I'm afraid I'm getting so drunk that words feel like slippery stones that are difficult to marshal into orderly lines that would impress the Bird of Meaning. if you don't get what I mean. Feb 08 21:10:37 it is pretty annoying to have to code around that fact Feb 08 21:12:12 when i press the back button will that destroy the currect activity? or it will just call destory? Feb 08 21:12:14 antianno, also, if it does fail, trying again won't likely change the result Feb 08 21:12:22 jahid, it'll call destroy Feb 08 21:13:10 pfn, so the onstart will be invoked if i to some other activity from current activity only? and there is no other usecase where onstart will be invoked? Feb 08 21:13:26 *if i navigate to some other activity Feb 08 21:13:30 jahid, huh? Feb 08 21:13:41 isn't it sort of implementation detail whatever happens with back button? I'm personally surprised if it always results in activity's proper death which onDestroy implies Feb 08 21:14:04 the activity always gets destroyed unless you override the back button behavior Feb 08 21:14:05 By default pressing the backbutton calls finish() Feb 08 21:14:09 pfn, so the onstart will be invoked if i navigate to some other activity (which means current activity is on backstack) from current activity only? and there is no other usecase where onstart will be invoked? Feb 08 21:14:19 SimonVT: okay. Feb 08 21:14:29 jahid, repeating yourself doesn't make your sentence make any more sense Feb 08 21:14:43 I just thought android manipulates the activity stack and if it happens it needs memory then it kills the activity too Feb 08 21:14:43 :/ Feb 08 21:14:46 if your activity is on backstack, if you press back, it's no longer on backstack Feb 08 21:15:09 alankila, if it needs the memory, it'll kill your process Feb 08 21:15:11 alankila: Naw, it actually calls finish() completely removes it from the stack Feb 08 21:15:43 pfn, ok if i understand what you said "the activity is always gets destoryed unless you override the back button behaviour" is not true if i navigate to some other activity from current activity, right? Feb 08 21:15:55 pfn: yeah, i simply was somewhat paranoid, i figured, maybe startService simply checks 'hmm, is there a service for this intent', if so, enqueueing some task for the service starting and return immediately, leaving it to the internals of the main thread task queue whether the starting task or the binding task is executed next ... Feb 08 21:16:01 jahid, navigating to some other activity from current activity != pressing back Feb 08 21:17:13 pfn, yes, but now my question is, if i navigate away, then it will call onstop, right? and when i navigate back, it will invoke onstart, right? Feb 08 21:17:26 jahid, yes Feb 08 21:17:31 pfn, thanks Feb 08 21:19:11 jakew Feb 08 21:19:12 grr Feb 08 21:19:14 where is he Feb 08 21:19:15 ~_~ Feb 08 21:19:17 lulz Feb 08 21:19:34 canadiancow|work: probs having sex with your wife Feb 08 21:19:40 ... Feb 08 21:19:49 mikedg, is that you? Feb 08 21:19:59 Sorry, that slipped through my filters before I could stop it. <.<; Feb 08 21:20:38 if i was an op, that would be a kickban :) Feb 08 21:20:42 Is it possible to get the emulator to play sound on os x? Feb 08 21:25:38 SimonVT: If i wanted my widget to update when something happens in the application, I have to create a service that refreshes the widget or runs onUpdate? Feb 08 21:25:52 how can I draw stuff on a layout view? Feb 08 21:25:53 There's an intent you can fire Feb 08 21:25:54 hmhm Feb 08 21:27:39 Can't remember it.. But there's definitely an intent :p Feb 08 21:27:53 That you can sendBroadcast Feb 08 21:28:08 ok thanks Feb 08 21:32:50 is there a way to tell either SQLiteDatabase or SQLiteQueryBuilder to log SQL statements its executing? Feb 08 21:34:07 If I have a service that sets Alarms in the AlarmManager, and the service gets killed, will those alarms stay? Feb 08 21:34:19 yes Feb 08 21:34:26 yes Feb 08 21:34:31 Alarms in AlarmManager are handled by the framework Feb 08 21:34:43 They're only cleared when Android is rebooted Feb 08 21:35:06 SimonVT, ok... but. If I programatically registered handlers for those broacast intents (the ones the Alarm Manager will broadcast when the alarm goes off). Then I won't receive them... hhmm... Feb 08 21:35:47 I've got a much better understanding of my lifetime w\ this service. But my big question is still WHY is it being killed. Feb 08 21:35:59 The service is running in the same process as a forground activity Feb 08 21:36:14 and the process is being killed at some time in the night Feb 08 21:36:26 (it runs for probably 6+ hours, but is killed some time after) Feb 08 21:36:33 Why not use a BroadcastReceiver then Feb 08 21:37:16 SimonVT, ya, I need to break my receivers out into their own classes, and have them start up the service Feb 08 21:37:33 no way to have an inner class be registered as a receiver in XML huh Feb 08 21:38:26 I'm looking @ this page: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html Feb 08 21:38:47 and from everything I can tell, my Service & Activity should be in the highest category Feb 08 21:38:54 so its odd to me that they are getting killed Feb 08 21:39:15 You should always account for the possibility Feb 08 21:39:16 huh? Feb 08 21:39:27 it's not the foreground activity anymore if the screen is off Feb 08 21:39:39 is there a way to get a view to size itself? Feb 08 21:39:45 without rendering Feb 08 21:39:52 is there any correct way to implement onMeasure on a childview? Feb 08 21:39:53 or without displaying Feb 08 21:40:05 pfn, it's onscreen. the Activity is flagged FLAG_KEEP_ON_SCREEN Feb 08 21:40:11 I launch it and leave it Feb 08 21:40:23 so it just disappears from the screen overnight? Feb 08 21:40:32 logcat :p Feb 08 21:40:50 sounds like it's crashing Feb 08 21:42:06 hi, is there a way to access the phone filesystem (through a PC) when the phone can only be connected as charge only? Feb 08 21:42:13 no Feb 08 21:42:26 well, add usb debugging and you can Feb 08 21:42:37 charge only is an htc setting... Feb 08 21:43:02 pfn: I have it on my Moto Defy too (it's called None in that case) Feb 08 21:43:38 pfn, right dissapears fromt he screen in the night, but no crash dialog Feb 08 21:43:55 Wavesonics, logcat is what you need, then Feb 08 21:44:12 I'm not sure whether usb debugging is enabled on that phone, is it possible to check when having no access to the phone? Feb 08 21:44:23 (unless through a computer) ? Feb 08 21:44:26 pfn, ya :/ bug how long b4 logcat rolls over, aka: would I miss it b/c it will be logging for hours AFTER the crash Feb 08 21:44:36 SimonVT: since you have been my knight and shinning armor today. with video view are you supposed to set the size of those or do they know how big to make themselves based on the content? Feb 08 21:44:50 Wavesonics, if you're dumping it to a file it doesn't roll over Feb 08 21:45:04 freeroute, plug it in and see if adb sees it Feb 08 21:45:25 roger_padactor: Never used videoview :F Feb 08 21:46:13 thanks anyways. Feb 08 21:47:27 tablet loves to try to goto this domain a lot in the background. http://wvdrm.asus.com/ Feb 08 21:47:59 pfn, hhmmm good idea Feb 08 21:58:54 "/home/johnny/Android/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/../lib/gcc/arm-eabi/4.3.1/../../../../arm-eabi/bin/ld: cannot find -lc" trying a simple compile using agcc, any ideas Feb 08 22:00:12 t0mless: you around? Feb 08 22:00:18 Yo Feb 08 22:00:39 mine got accepted Feb 08 22:00:46 and no id required Feb 08 22:00:46 I got mine this morning Feb 08 22:00:55 lol Feb 08 22:01:07 did you reg as individual or business? Feb 08 22:01:14 idividual Feb 08 22:01:15 I have to make that promotion image shit Feb 08 22:07:59 where is android test generation tool located? Feb 08 22:08:17 Syliss did you sign up with an account to receive payments? Feb 08 22:08:24 nope Feb 08 22:08:32 that's probably why they wanted ID from me Feb 08 22:08:37 my apps are free Feb 08 22:08:42 for now Feb 08 22:13:40 when I query the Contacts provider how can I specify I want only entries that have an email address? Feb 08 22:15:09 Should I be storing my adapter data in my activity too, or just send it into the adapter and see if there is anything via myListView.getAdapter().getCount()? Feb 08 22:15:20 I reckon that might be hogging memory, am I corrcet? Feb 08 22:15:44 probably makes no difference given how the objects end up being shared Feb 08 22:16:16 for instance, ArrayList will certainly have a bunch of Foo instances on it, but another ArrayList that is copy of that only shares the memory overhead of the pointers to the same instances Feb 08 22:16:18 I was thinking if it becomes data*2 or just data*1 Feb 08 22:16:23 Oh Feb 08 22:16:32 So if I have ArrayList Feb 08 22:16:37 and send it into my adapter Feb 08 22:16:45 so now to get my app submitted Feb 08 22:16:48 will it copy it, or just refer to it? Feb 08 22:16:52 it will not copy the MyClass instances. Feb 08 22:16:59 another questions Feb 08 22:17:02 it might have a list of its own, or not, but its memory usage is like trivial Feb 08 22:17:06 where do I get Google Maps on ICS? Feb 08 22:17:17 Then I have no idea why my app is eating memory like it's free candy Feb 08 22:17:19 count something like 4 or 8 bytes per element, no real idea how much they cost Feb 08 22:17:30 I can actually cause it to exhaust its boundrie Feb 08 22:17:31 s Feb 08 22:17:32 :D Feb 08 22:17:35 does anyone ever use a static class for string/int/etc constants? Feb 08 22:17:43 holde: I do. Feb 08 22:17:48 holde: I call it... Constants. Feb 08 22:17:54 I call mine R Feb 08 22:17:55 weird name Feb 08 22:17:57 dont get it Feb 08 22:18:05 android makes it for me :-p Feb 08 22:18:05 hi, trying to port ICS to a new device, netd gets SIGKILL and is restarted repeatedly every couple of seconds. Any idea? Feb 08 22:18:14 mh Feb 08 22:18:22 so i can use r? Feb 08 22:18:31 Anyone here playing Battlefield 3? Feb 08 22:18:31 anyone? Feb 08 22:18:36 lyakh try #android-root Feb 08 22:18:36 how do I load com.google.android.maps.MapView on ICS? Feb 08 22:18:38 lyakh: trace the system? Feb 08 22:18:45 'cause you need a Battlefield-account to actually login to the app :( Feb 08 22:18:47 holde: in some sense if what R provides fits what you need Feb 08 22:18:51 if someone feels like helping me out Feb 08 22:19:02 Does Google Maps not work with ICS? Feb 08 22:19:04 p_l|backup: you mean strace netd? tried - just shows SIGKILLs... Feb 08 22:19:19 Meetoman, same as on any previous version of android? Feb 08 22:19:21 alankila, how can i add something to R and then use it in java? Feb 08 22:19:21 t0mless: thanks, will try Feb 08 22:19:27 lyakh: no, trace from where the SIGKILL comes Feb 08 22:19:40 holde: add something under res and let android generate the relevant stuff Feb 08 22:19:44 p_l|backup: how do I do that? Feb 08 22:19:47 run a systrace kernel or use OProfile Feb 08 22:19:53 your xml resources are parsed into R.java holde Feb 08 22:19:58 p_l|backup: ooh... Feb 08 22:20:02 pfn, ICS doesn't have Google API Addons Feb 08 22:20:02 so strings in strings.xml, etc Feb 08 22:20:30 anyway, my brain is in "imminent shutdown" mode, so... Feb 08 22:20:37 ok, how do is use strings i have in strings.xml in java? Feb 08 22:20:37 do you mean how can you get an AVD with google maps? Feb 08 22:20:40 Meetoman: doenload the google API addons from the sdk? Feb 08 22:20:49 How do I actually memory debug my app? Feb 08 22:20:51 how do is use strings... Feb 08 22:21:07 n20, take a heap dump, then use hprof-conv, then load it up in jhat Feb 08 22:21:15 R.string.bla? Feb 08 22:21:18 when i try to generate my test using android tool using this command - "android create test-project -m ../sticky -n sticky_test -p sticky/test". I get this message "Error: Main project's directory does not exist: ../sticky" any suggestion? Feb 08 22:21:20 ok, done =D Feb 08 22:21:26 if you have This is a string you can then do in your activity getResources().getString(R.string.mystring); Feb 08 22:21:28 Meetoman, id: 20 or "Google Inc.:Google APIs:15" Feb 08 22:21:30 I just got a report from user Feb 08 22:21:43 Meetoman, I dunno about you, but I have google apis for api15 Feb 08 22:21:43 that's helping me diagnose it Feb 08 22:21:51 It was up in 24MB Feb 08 22:21:53 lol Feb 08 22:21:59 That's a lot of RAM right there Feb 08 22:22:09 holde a lot of the android APIs can take the string ID in leiu of a string Feb 08 22:22:17 like TextView.setText() Feb 08 22:22:27 n20, if your user is capable, have them take a heapdump using ddms and email it to you Feb 08 22:22:27 so you don't have to do getResources... blahblah Feb 08 22:22:33 n20, then you use hprof-conv and jhat Feb 08 22:22:36 just textview.setText(R.string.mystring); Feb 08 22:22:37 or you can load it in eclipse maybe Feb 08 22:22:39 dunno how Feb 08 22:22:40 * pfn shrugs Feb 08 22:23:02 mh ok thanks, t0mless Feb 08 22:23:21 pfn: Hopefully. Something must be seriously wrong Feb 08 22:23:30 i mainly thought about stuff like if (action == DELETE) where delete is an int ans such Feb 08 22:23:53 cause ok, it's got a few listviews loaded (five) probably (with all the activities stacked) but that surely doesn't account to 24MB? Feb 08 22:24:11 and wondered what an easy way was to reuse such constants in other activites Feb 08 22:26:14 so I just watched a google io talk where the dude was using Application as a singleton class.. opinions? Feb 08 22:27:37 I think my app is uploaded to pkg: /data/local/tmp/Main-debug.apk . I use DDMS to view the 'data' directory on device but this folder wouldn't expand. Is this a folder I can't view its contents? Feb 08 22:27:44 pfn: JHat seems nice Feb 08 22:28:10 panda81 that's just where adb install uploads it to the device to install Feb 08 22:28:16 n20, it's ok... I don't like it much personally Feb 08 22:28:46 but also you can't view /data on a device with ddms because of permissions Feb 08 22:28:47 pfn: Not too sure what to do here though Feb 08 22:28:54 :D Feb 08 22:29:05 n20, also enable strictmode vmpolicy Feb 08 22:29:09 panda81 if the device is rooted you can view the contents in a adb shell Feb 08 22:29:26 panda81 but your apps info is stored in /data/data/your.package.name/ Feb 08 22:29:49 panda81 and I think the actual .apk gets put into /data/app Feb 08 22:29:51 t0mless: oh I see. Can I find where my apk is installed to? I wish to upload a few binary files to where it resides. The app reads those binary files Feb 08 22:29:53 but don't remember Feb 08 22:30:17 you should include the files in your assets folder Feb 08 22:30:31 so that they are included in your app Feb 08 22:30:31 pfn: Ok, so my most used CustomDataClass accounts to... 2.4KB Feb 08 22:30:44 unless you're going to somehow download the assets at a later date on end user's devices Feb 08 22:31:20 n20, look at the histogram Feb 08 22:31:33 n20, alternatively, open up the port that it listens have someone connect and look Feb 08 22:32:02 pfn: Are you that someone? Feb 08 22:32:12 maybe, if it's not a pain in the ass Feb 08 22:32:16 I got the hprof from it being 7mb Feb 08 22:32:17 :D Feb 08 22:32:30 well, if it's only 7mb that's not useful Feb 08 22:32:35 I can reproduce the exhaust though... hang on Feb 08 22:34:10 pfn I might've gotten it Feb 08 22:35:08 that was fast Feb 08 22:35:17 Haha... I got it to crash ;) Feb 08 22:35:48 Hey, the debug perspective jumped on the wagon Feb 08 22:36:14 It exhausts itself on Bundle.unParcel Feb 08 22:36:16 More specifically... Feb 08 22:36:45 when it gets an object via the intent. I don't see why it should be causing trouble. :( Feb 08 22:37:09 what intent is it, who makes it Feb 08 22:37:38 Hm.. Committed and switch branch to do something.. just can't remember what :| Feb 08 22:37:46 It's my intent, where I add a FeedItem to be sent to the SinglePostView (ie display it on another page and load up its comments) Feb 08 22:38:10 alankila: ^ Feb 08 22:38:18 alankila: Shouldn't be more than a few bytes in it Feb 08 22:38:26 okay. Well, it sounds to me that you've somehow screwed it up Feb 08 22:38:38 hot tip: if you deal with Parcelable, you can just replace those with Bundle and skip doing all that CREATOR shit Feb 08 22:38:53 alankila: Probably in my Parcelable-implementation Feb 08 22:38:55 Bundle b = new Bundle(); b.putShit(x, y); return b; Feb 08 22:39:07 no need to even know/care Parcelable even exists, Bundle implements that API Feb 08 22:39:55 alankila: How'd I implement it? Extend/implement? Feb 08 22:40:05 It's been workin sofar, but this is plain stupid Feb 08 22:40:05 :D Feb 08 22:40:16 that's precisely it, you just use Bundle and forget Parcelable even exists. Feb 08 22:40:21 It also prompts SU to give me more space, ha. Feb 08 22:42:42 The funny thing is Feb 08 22:42:45 I can reproduce the bug Feb 08 22:42:48 EVERY single time Feb 08 22:44:16 if I had to guess you are serializing fields in different order or amount compared to unserializing them. Feb 08 22:44:30 so android reads some wrong field binary data and causes giant memory allocation inadvertently Feb 08 22:45:24 Parcelable is the most shitty way anybody could implement any IPC facility, or close enough. Bundle at least has the human decency to take care of all the details for you. Feb 08 22:45:35 i'm blanking on a stupid-easy problem. best way to transfer Bitmaps between activities in the same app? Feb 08 22:46:23 putting it in the returned data intent causes a binder transaction failure Feb 08 22:46:31 stupid-easy? that's like, my god, activities need to pass some objects in. Which is more or less impossible. Feb 08 22:46:46 I'm joking, but just mildly Feb 08 22:48:18 tophyr, same app, same memory, use a singleton object Feb 08 22:48:25 Is it possible to debug an apk given to me without source code Feb 08 22:48:38 There's two ways it could go: you could implement a weak reference cache and pass key to that cache, along with serializable instructions on how to generate a new copy of that bitmap if it's generable Feb 08 22:48:47 yuck. really the best? Feb 08 22:49:19 or you could just hack it by some static reference, as pfn suggests, although in many cases it might be prudent to take measures which result in eventual destruction of such static reference to avoid a potential memory leak (depending on size, might not matter) Feb 08 22:51:05 alankila: 02-08 23:49:52.448: I/dalvikvm(30257): at com.ninetwozero.battlelog.datatypes.ProfileData$1.newArray(ProfileData.java:~130) Feb 08 22:51:31 That's the first row of the green exception Feb 08 22:51:33 :D Feb 08 22:52:08 so now you know you are constructing a giant array and that causes your oom? Feb 08 22:52:14 Probably Feb 08 22:52:26 alankila: this.profileData = in.createTypedArray( ProfileData.CREATOR ); Feb 08 22:52:31 Isn't that the way to do it? :( Feb 08 22:52:43 It's bound to be a ProfileData[] Feb 08 22:52:54 atleast 1 field, max 2 Feb 08 22:52:54 * alankila is only going to shrug Feb 08 22:53:12 * n20 says Juice. Feb 08 22:53:31 panda81, not really Feb 08 22:53:51 tophyr, if you don't want to use a singleton, then store the data to disk Feb 08 22:56:33 Singleton is the name of my superhero Feb 08 22:57:00 Atta boy Feb 08 22:57:03 It works now Feb 08 22:57:06 Stupid Parcelable Feb 08 22:57:14 mine's factoryman Feb 08 22:57:16 If I didn't need you, I would GC your behind Feb 08 22:57:43 making parcelables are such a pita Feb 08 22:58:07 why didn't they just use protobuf or something? those are nice Feb 08 22:58:17 protobufs aren't mutable in java Feb 08 22:58:19 so annoying Feb 08 22:58:21 which is why I keep on using Bundle as far as possible... it takes care of the serializing crap, you just use it like hashmap. Feb 08 22:58:23 Can someone please look into? Dont get it, need help. :) http://stackoverflow.com/questions/9185468/actionbar-tabs-with-fragments-on-rotate Thanks! Feb 08 22:59:05 and java.io.Serializable is just fine for my own objects. :-/ it's not like I give a fuck if it's a bit inefficient, a little price to pay to avoid sight of Parcelable is fine in my books Feb 08 22:59:19 Leandros, don't re-create the fragments, use the fragmentmanager and findByTag Feb 08 22:59:48 pfn, recreate on rotate or on select tab?` Feb 08 23:00:06 Leandros, i.e. AFragment = fragmentManager.findFragmentByTag("my tag"); if (AFragment == null) AFragment = new AFragment() Feb 08 23:00:14 Leandros, do that instead of always creating Feb 08 23:01:15 pfn: Ok, thanks. Will try it. Feb 08 23:02:46 * alankila moves on to working out how to use ipsec to generate secure tunnel to his home server... first I need to set up the psk as I've no love for RSA & then work out how to identify clients Feb 08 23:04:03 why doesnt g+ sync in the background Feb 08 23:04:08 id like to be able to pull it out on the subway and read shit Feb 08 23:04:15 instead, i pull it out, and think "why doesn't g+ sync in the background" Feb 08 23:08:20 hey guys, if I have 2 linear layouts nested in 1 linear layout, how can i make one dock to the bottom ? Feb 08 23:08:44 wth a relativelayout Feb 08 23:08:46 hue hue hue Feb 08 23:09:05 canadiancow|work: at least it now can keep what it synced recently... Feb 08 23:09:35 "Note that you cannot have a circular dependency between the size of the RelativeLayout and the position of its children. For example, you cannot have a RelativeLayout whose height is set to WRAP_CONTENT and a child set to ALIGN_PARENT_BOTTOM." Feb 08 23:09:55 wtf Feb 08 23:11:09 why is that wtf Feb 08 23:11:28 xiqxiq, match_parent then Feb 08 23:11:29 nevermind, I didn't read that sentence correctly Feb 08 23:12:39 coincidentally, alignParentBottom did the trick Feb 08 23:12:39 xiqxiq, as for 2 linearlayouts, make one or both weight=1 Feb 08 23:12:51 and then make the contents of the linearlayout wrap_content Feb 08 23:12:57 alternatively, a relative layout and align botto Feb 08 23:12:58 m Feb 08 23:13:28 pfn, where can I read some stuff about weight? it's seems to bee a weird concept, instead of just making a concept of docking in 4 directions Feb 08 23:14:16 gravity, layoutGravity, weight... as if it was about physics :o Feb 08 23:15:01 the concept of docking is handled by relative layout Feb 08 23:15:31 xiqxiq, and gravity, weight, etc. are common layout terms Feb 08 23:15:50 can I assign depth to a layout? Feb 08 23:16:15 z order, it's declaration order if it's relativelayout or framelayout, I think Feb 08 23:19:46 I renamed my app package name - everywhere that I see, and it all works fine. Eclipse however is spawning ghost instances of the old activity+service somehow - what's the proper way to go about this? I even restarted it and all Feb 08 23:20:03 pfn, you're a god among men. Feb 08 23:20:06 vadi2: have you tried a clean build? Feb 08 23:20:34 what is "spawning ghost instances" Feb 08 23:20:41 vadi2, project -> clean Feb 08 23:20:45 Thanks Feb 08 23:23:52 Also, my ddms perspective is not showing the debug/run buttons anymore, but debug and java are. How can I fix this screwup? Feb 08 23:24:11 (the debug/java run+debug buttons work fine too) Feb 08 23:25:49 boo, why won't it let me cast my CustomFragment extending ListFragment Feb 08 23:25:53 Oh, my 'ghost' issue was because I didn't uninstall the app with the old name from the phone. Derp. Feb 08 23:26:00 in findFragmentById() Feb 08 23:26:05 question: is it possible to include a drawable directly into a layout xml file ? Feb 08 23:26:07 vadi2: oops Feb 08 23:26:39 i have a dotted line in a xml placed in folder drawable.. when i want to include it i get an exception Feb 08 23:26:40 oh dur Feb 08 23:26:52 because I was using getFragmentManager instead of getSupportFragmentManager Feb 08 23:31:29 hello all Feb 08 23:32:19 I implemented OAuth according to a sample I saw related to Google Tasks syncing. However, that implementation brings up a warning type of message like when Applicaitons are asking for permissions to install. I want to redirect to a URL for the user to login, are there any differences? Feb 08 23:32:31 I'd prefer the URL based one because I think users are expecting that in most cases. Feb 08 23:41:00 QubeZ, the difference is that you can't use the accounts api Feb 08 23:41:40 pfn: thats fine, I'd prefer to have less permissions even Feb 08 23:41:51 I hate that "uses account information" permission, scary to new users Feb 08 23:42:00 most users ignore it Feb 08 23:42:01 * pfn shrugs Feb 08 23:42:19 so if you had to implement one over the other, you'd go for the AccountManager? Feb 08 23:42:37 yes, just because it gives a streamlined api Feb 08 23:42:46 instead of having to go hacky with a webview and forcing the user to log in through a web form Feb 08 23:42:54 and I don't know my google password off hand Feb 08 23:42:57 problem is AccountManager route is I'm trying to make a video of how it looks the first time a user allows it but I can't find where to clear my accepted one Feb 08 23:42:59 which I hate having to lookup Feb 08 23:43:03 does accountmanager provide a ui, or just api calls? Feb 08 23:43:08 assuming the account you want to use is stored in the accounts api Feb 08 23:43:11 it's a system UI Feb 08 23:43:14 JakeWharton: cool, well as long as you two agree thats a good route then I'll stick to it Feb 08 23:43:19 storkme, it has api calls and a single UI for allow/deny ops Feb 08 23:43:23 cool Feb 08 23:43:25 but I'm not sure how to clear my accepted status so I can re-initiate the process Feb 08 23:43:32 I want to do this so I can capture it in a tutorial video Feb 08 23:43:39 storkme, basically any time you use a google app and it asks you for access, that's the accounts api UI Feb 08 23:44:11 QubeZ, look through your app's data and see if it's stored anywhere Feb 08 23:44:26 I'm not completely familira with the api, but there's undoubtedly some way to clear it Feb 08 23:45:14 QubeZ: did you try logging in the accounts servise on google? It should let you revolk there Feb 08 23:45:19 pfn: like the c2dm demo? Feb 08 23:45:38 SeligArkin: no, how do I do that? Feb 08 23:45:43 pfn: nothing in my shared_prefs Feb 08 23:45:51 QubeZ, maybe setAuthToken Feb 08 23:46:18 * pfn shrugs Feb 08 23:47:23 SeligArkin: whats the site to access what you're talking about? Feb 08 23:47:37 and yeah, what SeligArkin said Feb 08 23:47:40 I've told you that several times Feb 08 23:47:44 but you haven't bothered doing it Feb 08 23:48:03 pfn: ya, setAuthToken, but where is that? Feb 08 23:48:13 setAuthToken is in the accountmanager Feb 08 23:48:17 i have nothing under my /data/data/ related to that Feb 08 23:48:25 ok let me check... is that in settings of my phone? Feb 08 23:48:28 otherwise, go to google.com/settings Feb 08 23:48:32 sorry, very new to this api Feb 08 23:48:34 no, it's an api call Feb 08 23:48:44 and go to authorizing applications & sites Feb 08 23:48:48 and clear your authorization there Feb 08 23:51:47 cleared out all in there besides astrid and catch.com. but my AlarmManager is still running with my preferences set to my google account and sync interval Feb 08 23:51:57 weird, normally when I enable an account, it should ask for auth Feb 08 23:56:03 I have a Motorola Xoom and and a HTC Inspire I Installed the drivers for the Xoom first and that device worked just fine however when I installed the HTC drivers the Xoom is no longer recognized by adb what could be causing this? Feb 08 23:57:25 if it's windows, look in device manager Feb 08 23:57:31 then update the drivers for the unrecognized device Feb 08 23:57:35 otherwise, reboot computer and xoom Feb 08 23:58:05 if I have a bootreceiver, can I call the onReceive manually? Feb 08 23:58:18 or rather, how can I initiate the call to that class manaully Feb 08 23:58:35 Is there a way to progamatically move the menu button in ICS from the action bar to the black bar (where the home button is etc). The reason I want to be able to do this is the setting to hide the action bar (to increase screen space), but then the menu is unavailable. Feb 08 23:59:08 chip2n, set your api target to <14 Feb 08 23:59:15 dunno about programmatically Feb 08 23:59:17 but that's all I got Feb 08 23:59:39 pfn: I do want the action bar visible on tablets etc, the action bar should be shown by default in ICS devices :/ Feb 08 23:59:53 chip2n, right, so set your api target to honeycomb Feb 08 23:59:56 Can anyone help with an Ant questions? Feb 09 00:00:06 I've heard that targetting honeycomb reveals the menu button Feb 09 00:00:14 Does Android XML layout have a spacer widget Feb 09 00:00:16 so if you hide the actionbar, your menu is still accessible Feb 09 00:00:21 factor, a Feb 09 00:00:30 nwmotogeek, not if you don't ask Feb 09 00:00:32 Although I kinda want the menu in the action bar when it's visible :> Feb 09 00:00:38 pfn: when I update driver using windows update it finds nothing when i try updating through existing drivers on my machine i select "Motorola usb driver" that SEEMS to work however it is still does not show up in ADB Feb 09 00:00:43 chip2n, right, that's why you target *honeycomb* Feb 09 00:00:44 pfn looking Feb 09 00:00:49 chip2n, oh, you mean when it's visible on ics Feb 09 00:00:52 * pfn shrugs Feb 09 00:01:02 pfn: Indeed. I cant believe google hasn't thought of this Feb 09 00:01:04 actually, it is visible in the actionbar Feb 09 00:01:13 Oh, really? Feb 09 00:01:15 you get both Feb 09 00:01:23 you have the menu button on the bottom and in the actionbar, I think Feb 09 00:01:40 I get two drivers trying to install one is under the folder "portable" and the other is under "Other devices" as an unknown device Feb 09 00:01:44 That should work then. There's no important ICS-only features that ill miss? Probably not. Feb 09 00:01:54 pfn, Good point :). when I export my app to an APK through Eclipse it installs and runs just fine but when I use Ant then it installs just find but it fails when I run it. There is an error in logcat indicating that my Activity could not be found Feb 09 00:01:56 the one under portable just says "XOOM" Feb 09 00:02:14 Gsingh, then update the driver for the unknown device with the google usb driver inf Feb 09 00:02:42 nwmotogeek, how are you using ant? is it signed properly, etc. Feb 09 00:03:08 nwmotogeek, and always provide complete logcat context Feb 09 00:03:24 Is there a nice SurfaceView and/or Canvas tutorial somewhere? Feb 09 00:03:25 and if your activity couldn't be found... well... that sounds right Feb 09 00:03:34 nwmotogeek, check the contents of the apk to see that it is correct Feb 09 00:03:34 I am running ant with the 'debug' flag so it builds with the SDK debug keystore. Getting the logcat output now Feb 09 00:03:55 pfn, I have never done that.... **** ENDING LOGGING AT Thu Feb 09 00:04:03 2012 **** BEGIN LOGGING AT Thu Feb 09 00:12:17 2012 Feb 09 00:14:16 pfn: I fixed the driver i had to go to http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver_64/ Feb 09 00:14:32 indeed Feb 09 00:14:45 For some reason the MotoHelp tool did not correctly install drivers Feb 09 00:14:46 * pfn usually just updates the .inf with vendor/product id manually Feb 09 00:15:09 i don't know why but anyways i selected repair and it worked Feb 09 00:15:27 I spent 2 hours trying to figure this out I am so happy Feb 09 00:20:42 so... http post in android? brainfart here, results return apache.httpclient Feb 09 00:20:52 should I use default versus httpclient? or... Feb 09 00:22:14 shurane: default works for me Feb 09 00:24:18 hi Feb 09 00:24:29 hi Feb 09 00:24:55 can someone tell me how to get a specific git hub project running in netbeans? Feb 09 00:25:00 so i can change some small stuff Feb 09 00:25:16 You need a git plugin. Feb 09 00:25:30 i've a question on nfc app development (with eclipse in the specific case) Feb 09 00:25:39 well i saw one in it...and i downloaded the zip of the project Feb 09 00:25:41 shurane, supposedly improvements are made to HttpURLConnection starting in gb Feb 09 00:25:45 but i dont see how to import it Feb 09 00:26:14 i was wondering if it is possible to use an external dongle to emulate the nfc chip of a phone Feb 09 00:26:20 oneadvent: File -> import -> Existing Project into Workspace -> Select Archive File Feb 09 00:26:27 https://github.com/john-tornblom/TVHGuide Feb 09 00:26:29 that is the git Feb 09 00:26:30 instead of using the pure emulator Feb 09 00:26:35 lemme try that leandros Feb 09 00:27:23 pachinja84, use a device with nfc, saves a lot of headache :p Feb 09 00:27:25 SimonVT, why did you let me butcher the themes? Feb 09 00:28:07 pen, do u mean to connect directly an android phone with nfc? Feb 09 00:30:29 pfn, u there? Feb 09 00:30:43 SimonVT, nvm, i'm an idiot, as usual :) Feb 09 00:30:56 Leandros: still trying but it doesnt say import Existing Project into Workspace Feb 09 00:32:01 hi, is android 4.0 available now to use in samsung galaxy as the OS ? Feb 09 00:32:16 JakeWharton if ur an idiot then there is no hope for us normal ppl lol Feb 09 00:32:17 oneadvent: Click on File, then Click on "import". And then a dialog opens, in the folder general is the point "Existing Project into workspace". Feb 09 00:33:05 pachinja84, maybe Feb 09 00:34:19 oneadvent: You have to extract the zip from github (eg. to desktop) and then point to the folder you extracted in the same dialog. Feb 09 00:35:00 Leandros: I am on 7.1 and it just says File->import project -> eclipse project and resync elcipse projects, but i'm using netbeans Feb 09 00:35:11 I did extract it Feb 09 00:35:14 i have one nexus s Feb 09 00:35:21 pnf: Got it working. thanks. Feb 09 00:35:27 pachinja84, so develop against that Feb 09 00:35:27 and one usb dongle Feb 09 00:35:29 Leandros, yay Feb 09 00:35:31 do i need to create a project first? Feb 09 00:36:11 pfn: I simple replaced ft.add() in my TabListener with ft.replace() :) Feb 09 00:36:53 Leandros, I see Feb 09 00:38:54 i can read a guide if you have a guide. Feb 09 00:39:21 i think it requires ndk too, and i'm not sure how to install that either Feb 09 00:39:48 oneadvent: In Eclipse (use it with ADT for Android Development) choose instead of Existing Project, "Filesystem" Feb 09 00:40:22 oneadvent: With filesytem it works for me. Feb 09 00:40:26 oh...i'm on a school computer currently. I have that installed at home, and can try it when I get there. Feb 09 00:40:29 did you try that project? Feb 09 00:40:33 yes Feb 09 00:40:41 dang i couldn't get it to work there either Feb 09 00:40:52 thx Feb 09 00:41:07 anyway you can package it as an eclipse project and link me? I think I can import it like that Feb 09 00:41:20 it built wihtout error? I was getting variable R not defined.... Feb 09 00:41:36 variable R must be generated from eclipse. Feb 09 00:42:03 i don't mean card emulation with the SE, just like if it's a passive tag Feb 09 00:42:35 yea i can import it if you can package it in a zip and serve it for me Feb 09 00:42:37 if not that is cool Feb 09 00:42:45 pachinja84, so you want to have 2 devices to talk to each other but one of them being the emulator... that doesn't sound doable... easily Feb 09 00:43:55 yes, but the emulator should emulate simply a tag Feb 09 00:44:15 i mean, my idea is to write a fuzzier app Feb 09 00:44:24 for android phones Feb 09 00:44:37 you mean a fuzzer Feb 09 00:44:47 yes, sorry for the typo Feb 09 00:44:48 so get a writable tag Feb 09 00:44:55 and write garbage to it, and read it back in Feb 09 00:46:14 my idea was that, if the phone can act as tag, it could generate a sequence of garbage tags Feb 09 00:46:42 and "represent" them, one after the other Feb 09 00:46:57 without having all the time first write it to a tag and then read it back Feb 09 00:47:10 i hope my description was not to messy :) Feb 09 00:54:55 how would can i have a button in the row layout of a listview and make it clickable as well as have the row itself be clickable? Feb 09 00:55:52 add a button, set its on click, also set the listviews onitemclick listener Feb 09 00:56:02 or context menu listener for listview Feb 09 00:56:30 pfn, RobinB: httpurlconnection looks too raw. Can't I just ask something to make a POST request on a Map ? Feb 09 00:56:38 along with a set of headers or whatont. Feb 09 00:56:40 whatnot, even. Feb 09 00:56:46 shurane, httpclient is the easier way, I suppose Feb 09 00:57:29 pfn: while we're on the subject: a good list of third party libraries to use with Android? Basically anything Java, or.... ? The stackoverflow question on the topic is closed :( Feb 09 00:57:42 shurane, what third party libraries do you want Feb 09 00:57:51 there's all sorts Feb 09 00:58:01 game engines, dependency injection, crypto, etc. Feb 09 00:58:08 just about any java library is usable on android Feb 09 00:58:19 t0mless: you submit app(s) yet? **** ENDING LOGGING AT Thu Feb 09 00:58:30 2012 **** BEGIN LOGGING AT Thu Feb 09 01:10:18 2012 Feb 09 01:10:44 pfn: do you work for the department of redundency department too!? Feb 09 01:11:51 https://www.google.com/search?rlz=1C1CHFX_enUS446US446&sourceid=chrome&ie=UTF-8&q=recursion Feb 09 01:13:25 i'd be fine not using Maven if the Android build system would just use central repos Feb 09 01:14:41 I wonder if Android doesn't use Google's internal build system Feb 09 01:15:25 if it does, from what I know, Maven really doesn't fit for them ;) Feb 09 01:17:30 for them, no Feb 09 01:17:47 but central dependency management fits for every app developer Feb 09 01:18:48 I'm having trouble getting started with setting up a viewpager to swipe through listviews since my listviews aren't taking up the entire screen Feb 09 01:19:03 I wouldn't mind if there was simply a copy of their buildspecs in repo, then you could get dependencies from that, and just choose which repo is serves what Feb 09 01:19:06 All the examples I've seen have the viewpager as the top element of the view Feb 09 01:19:52 * p_l would love a better way to fall asleep than staring at laptop Feb 09 01:20:23 it shouldn't be any different Feb 09 01:20:31 ViewPager is just another View and so are its children Feb 09 01:20:46 I can add it through xml? Feb 09 01:20:52 JakeWharton Feb 09 01:20:55 the pager or the children? Feb 09 01:21:01 the pager Feb 09 01:21:04 yes Feb 09 01:21:17 Feb 09 01:21:30 How can I set the android.widget.ShareActioProvider programmaticaly? .setActionProvider(android.widget.ShareActionProvider) dont work ... Feb 09 01:21:53 are you sure you initialized it properly Feb 09 01:21:59 the API demo is pretty straighforward Feb 09 01:22:06 and should be trivial to convert from using menu XMLs Feb 09 01:22:18 JakeWharton thanks, I'll try it Feb 09 01:22:45 AbstractClass, start with a FrameLayout and set the background to bright red to get the positioning right first, then switch to the ViewPager Feb 09 01:22:52 that way you can iron out layout problems before you deal with the paging Feb 09 01:23:31 JakeWharton I already set up my layouts with one list view, now I'm going back and adding the pager to switch through the lists Feb 09 01:23:46 ah Feb 09 01:24:04 Leandros, those three lines were directed at you Feb 09 01:24:42 menu XML inflation uses only the public APIs on Menu and MenuItem Feb 09 01:24:49 you should have no problem instantiating programmatically Feb 09 01:25:19 JakeWharton, ah. Ok. I don't want to use menu XML. I know how I do it if I use a Menu XML (Dev Guide). But not if I use menu.add().setActionProvider() Feb 09 01:27:34 JakeWharton, my menuitem in OnCreateOptionsMenu(): menu.add(0, 3, 0, R.string.menu_share).setIcon(android.R.drawable.ic_menu_share).setTitle(R.string.menu_share).setActionProvider().setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); Feb 09 01:29:27 that's basically what the platform does Feb 09 01:29:52 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/MenuInflater.java#L383 Feb 09 01:32:03 JakeWharton is the right way to do this with listviews go here Feb 09 01:34:17 nothing goes inside Feb 09 01:34:21 you have to provide an adapter Feb 09 01:34:24 in the code Feb 09 01:34:32 do i need to ask the system for folder-seperator or can i just use "/" ? Feb 09 01:34:41 ask please Feb 09 01:34:50 it's the right thing to do... Feb 09 01:35:12 JakeWharton you so wise.. good think youre here Feb 09 01:35:14 JakeWharton oh ok Feb 09 01:35:27 xorgate, because someday Android will use NTFS! Feb 09 01:35:36 Feb 09 01:35:41 ^^ Feb 09 01:36:28 so i found File.separator Feb 09 01:37:00 sounds about right to me Feb 09 01:37:40 separatorChar = System.getProperty("file.separator", "/").charAt(0); Feb 09 01:37:40 separator = String.valueOf(separatorChar); Feb 09 01:38:16 yeh i was just wondering cause this sounds like it's predefined and would ignore if a system has another char Feb 09 01:38:33 then again Build also seems to use a method like that Feb 09 01:40:39 why would you grab the first char and then make it a string agian? Feb 09 01:40:59 because if some idiot put two chars in they would differ Feb 09 01:41:04 if you did it the other way Feb 09 01:41:11 the string would be "AB" and the char would be 'A' Feb 09 01:41:59 some idiot meaning the guy who made the rom? Feb 09 01:42:31 i mean why not just grab the system's property and be done with it Feb 09 01:42:54 yep, that idiot Feb 09 01:47:00 SimonVT, canadiancow|work ? Feb 09 01:48:52 hi Feb 09 01:49:18 any blockers for ABSv4b6? Feb 09 01:49:21 that you can prove Feb 09 01:51:03 whats the difference between clicked and selected in an AdapterView? Feb 09 01:51:09 yea my collapisbles dont wokr Feb 09 01:51:10 :P Feb 09 01:52:27 that you can prove Feb 09 01:52:34 :) Feb 09 01:52:51 I enabled 56dp action bar on the Kindle Fire Feb 09 01:52:54 i saw Feb 09 01:52:57 i'm so used to the 48dp one Feb 09 01:53:01 i don't know if i like it haha Feb 09 01:53:16 maybe i'll do 48dp in landscape Feb 09 01:53:21 56 in portrait Feb 09 01:55:47 but what about the naturally landscape ones Feb 09 01:55:58 anyone have an Archos 101 or O.G. Galaxy Tab? Feb 09 01:56:04 a pre-Honeycomb "tablet" Feb 09 01:56:10 what's O.G. Feb 09 01:56:16 original gangsta Feb 09 01:56:19 oh Feb 09 01:56:19 c'mon now Feb 09 01:56:19 ok Feb 09 01:56:22 we have them at work Feb 09 01:56:27 its portrait though Feb 09 01:56:32 what do you mean "naturally landscape" Feb 09 01:56:51 i don't know Feb 09 01:56:56 i need sleep Feb 09 01:57:02 no u need to fix ma bug :( Feb 09 01:57:13 it's all in your head Feb 09 01:57:29 is the GTab 'large'? Feb 09 01:57:46 ugh Feb 09 01:57:51 it advertises itself as large hdpi Feb 09 01:57:55 but it's actually mdpi Feb 09 01:57:57 ~_~ Feb 09 01:58:06 like it pulls resources from -hdpi Feb 09 01:58:10 but it's ~160 Feb 09 01:58:13 ah yeah Feb 09 01:58:17 i remember that scandal Feb 09 01:59:18 a regular large-hdpi device would be smaller right? Feb 09 01:59:26 higher density = smaller screen Feb 09 02:00:39 oh hey Feb 09 02:00:43 new-new-new twitter Feb 09 02:00:45 finally Feb 09 02:01:10 ... Feb 09 02:01:13 why is the content on the right? Feb 09 02:01:35 new twitter.com? Feb 09 02:01:54 from a few weeks ago Feb 09 02:02:26 all they need to do is integrate HTML5 notifications Feb 09 02:02:33 and I can drop stupid tweetdeck chrome app Feb 09 02:03:10 Use Seesmic ^^ Feb 09 02:03:51 I don't see a difference, following the conversations on there is as confusing as ever. (I don't use it much, but when I do, I fail) Feb 09 02:04:04 Single tweets are ok, replies are a mess Feb 09 02:04:37 you're using the wrong app then Feb 09 02:04:43 any good app would thread things like that Feb 09 02:04:59 Leandros, their screenshots are ultra-low resolution but i'll give it a try Feb 09 02:05:33 I tried the pure webapp a year or so ago Feb 09 02:05:34 didn't lik eit Feb 09 02:06:45 The only problem on seesmic is Silverlight, but Seesmic is the best Desktop App Imho (because Tweetdeck got bought by twitter and totaly shit) Feb 09 02:06:46 ^^ Feb 09 02:08:10 https://chrome.google.com/webstore/detail/pkfckoaeaiccpacjdngfkcgkfbcpikbf Feb 09 02:08:12 perfect! Feb 09 02:08:24 Alsoo.... is there anything sort of like XPath/cssselectors for JSON? Also something like that available in Java? Feb 09 02:09:05 jsonpath Feb 09 02:09:08 and jsonselect Feb 09 02:09:12 JakeWharton: I could never use chrome, thats the problem. I use firefox and have about 250 Tabs open. On chrome I cant manage so much. Feb 09 02:09:13 respectively Feb 09 02:09:36 jsonselect is available as javascript, but as a Java library? Feb 09 02:09:43 250 tabs on Firefox? Feb 09 02:09:50 yes. Feb 09 02:10:06 that's a shitload of tabs. Feb 09 02:10:07 Hm, Chrome eats 1gb+ with 10 for me, and I only have 4... Feb 09 02:10:15 lol Feb 09 02:10:27 I actually had to make a new profile in Chrome for a different task when I'm using it. Feb 09 02:10:28 Firefox eat 1gb Feb 09 02:10:34 you could wrap the GSON streaming API in something like CSS really easily Feb 09 02:11:15 or Jackson Feb 09 02:11:19 to save yourself some jarjar headaches Feb 09 02:13:51 When does Eclipse determine that my service needs to be restarted when relaunching the app from it? Feb 09 02:15:51 JakeWharton: wait up, what? wrapping GSON streaming API meaning: write something on top of it to give it css-style properties? Feb 09 02:16:09 It would be cool if you could reword that. Feb 09 02:17:11 I was saying to write your own CSS-esque selector engine built on top of the GSON/Jackson streaming API Feb 09 02:18:12 matches would be done left-to-right and not right-to-left like CSS, but that wouldn't matter Feb 09 02:19:45 what's a large-hdpi phone? Feb 09 02:19:58 droid1? Feb 09 02:20:03 large-hdpi? wtf is that lol Feb 09 02:20:04 no Feb 09 02:20:20 large is... 4" to 7" and hdpi would be like 210dpi or something Feb 09 02:20:38 JakeWharton maybe something like the dell streak? Feb 09 02:21:00 why isn't there a database of this shit? Feb 09 02:21:06 lol... Feb 09 02:21:08 good question Feb 09 02:21:16 i'm shipping ABSv4b6 and then whipping one up Feb 09 02:21:22 galaxy note probably is Feb 09 02:21:52 maybe Feb 09 02:21:58 but its pretty high density Feb 09 02:22:13 yeah but xhdpi is >300 iirc Feb 09 02:24:43 yeah, it's not xhdpi Feb 09 02:25:08 galaxy note isn't xhdpi? Feb 09 02:26:26 xhdpi is "~320dpi", galaxy note is 285 Feb 09 02:27:14 and it fits in the large category 640dp x 480dp Feb 09 02:28:42 close but no cigar, heh Feb 09 02:29:02 hmm maybe not Feb 09 02:29:22 large is 640x480dp, which is 1140x855 @ 285dpi Feb 09 02:34:02 Is this IRC for android app creation, development, and help? Feb 09 02:34:16 Oh, there's the motd... Feb 09 02:34:17 yes Feb 09 02:34:22 Cool. Feb 09 02:34:57 Is there a GUI for creating an interface? Feb 09 02:35:00 I'm using Eclipse. Feb 09 02:35:13 ADT plugin comes with one Feb 09 02:35:14 yeh just doubleclick your xml Feb 09 02:35:23 and select the tab Feb 09 02:35:26 I believe xml Feb 09 02:35:56 Where's the xml? Feb 09 02:36:02 you create it Feb 09 02:36:03 I have src, gen, assets, bin and res folders. Feb 09 02:36:04 Ah. Feb 09 02:36:09 It isn't auto generated? Feb 09 02:36:12 res/layout Feb 09 02:36:14 main.xml prolly Feb 09 02:36:33 I clicked, am waiting. Feb 09 02:36:38 Aesome! Feb 09 02:36:39 awesome* Feb 09 02:43:28 Anyone know a method to get eclipse to simulate the android phone faster? Feb 09 02:43:50 kc102: Feb 09 02:43:53 sorry, yes :) Feb 09 02:43:53 there is none Feb 09 02:43:58 pfn: sure there is! Feb 09 02:44:06 ? Feb 09 02:44:16 buy a faster PC or use a lower-specced AVD Feb 09 02:44:35 While both are possible, I think I'll go with the latter. Feb 09 02:46:03 By lower specced, do you mean not Android 4.0.3? Feb 09 02:46:42 Leeds? Feb 09 02:47:14 the biggest drag is screen size, AFAIK - assuming you're not assigning enough RAM that your machine swaps Feb 09 02:47:31 but yes, 4.0 is heavier than 2.x, I think Feb 09 02:47:43 Okay, designing in 2.2 from now on. >> Feb 09 02:50:55 Can I leave my android device running and keep testing new code? Feb 09 02:51:03 Or do I need to restart it each time? Feb 09 02:51:15 4.0.3 HVGA works great Feb 09 02:51:18 leave it running Feb 09 02:51:24 kk Feb 09 02:51:25 restart it Feb 09 02:51:30 each time Feb 09 02:51:37 it's more fun that way Feb 09 02:51:42 lol... Feb 09 02:51:49 Do I just hit F11 each time I want to test? Or do I save the files and load the app? Feb 09 02:52:03 ctrl+f11 Feb 09 02:52:27 debugging is for the birds Feb 09 02:52:30 Why not just F11? And I'm speaking in terms of leaving the sim up. Feb 09 02:52:57 use snapshots too Feb 09 02:54:09 What do snapshots provide? Feb 09 02:55:35 faster startup[ Feb 09 02:55:36 u can start it almost instantly Feb 09 02:55:48 Oh shit, need to add that. Feb 09 02:56:04 doesn't go thru boot process Feb 09 02:56:49 does anyone know how to get a mime/content-type for a file given a content:// URI? Feb 09 02:57:16 or get the file's "extension" **** ENDING LOGGING AT Thu Feb 09 02:59:57 2012