**** BEGIN LOGGING AT Mon Sep 24 02:59:59 2012 Sep 24 03:01:57 Random question, is there a maximum length to logcat messages with Log? Sep 24 03:02:02 I felt like I was getting some text cut off Sep 24 03:02:06 but I didn't experiment too much Sep 24 03:04:20 Ah yes, it looks like the maximum log buffer length is 4kb.. Sep 24 03:40:27 hi all Sep 24 03:40:56 http://pastebin.com/WrVmVuSw can anyone point out what wrong with this manifes file Sep 24 03:41:03 Does anyone use jUint in their dev cycle? Sep 24 03:41:22 getting [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] Sep 24 03:46:13 anybody there? Sep 24 04:00:38 wurde, sometimes Sep 24 04:00:43 with robolectric Sep 24 04:01:17 Loonacy, try cleaning your project and reastarting eclipse, sometimes helpes Sep 24 04:01:43 or add some new stuff to your manifest, it's a weird error to get rid of Sep 24 04:02:09 so there is nothing wrong with the semantics/ syntax of the file ? ? Sep 24 04:15:15 Looney: generally not.. Sep 24 04:15:55 can you have a look at the pastie Sep 24 04:16:23 I mean, eclipse does not even give a warning (yellow) sign anywhere on the whole file Sep 24 04:16:33 hey guys, so I have a custom view that recycles items in its layout. seemingly works fine Sep 24 04:16:34 build also works fine Sep 24 04:16:49 only the install on emulator/ device fails Sep 24 04:16:50 problem is that when I scroll, it's somewhat janky. logcat shows a bunch of garbage collection items Sep 24 04:18:38 is there a way to delay GC? Sep 24 04:19:10 yes, don't consume memory which will take time to collect Sep 24 04:19:12 @alex_PP great link, thanks. Sep 24 04:21:18 Hi all, new to android dev here. I have a SQLitedatabase that I'm inserting rows into via an AsyncTask when the user clicks on a log in button. While this asynctask is running in the background, my app starts a new activity which queries the database for rows that were inserted and displays these rows using a listview backed by a SimpleCursorAdapter. However, I'm noticing that the first time the list Sep 24 04:21:18 view is displayed (when the db is empty), it is empty even though the cursor.getCount() is non-zero. Does anyone know how I can update my listview? I tried calling notifyDataSetChanged() on my cursorAdapter, but it doesn't appear to update the listview. Sep 24 04:22:05 Any help appreciated it Sep 24 04:22:08 Thanks! Sep 24 04:23:35 Lee Sep 24 04:24:56 Hello. Sep 24 04:25:00 Is it possible to develop for android using Python? Sep 24 04:25:33 Leeds: I'm trying to figure out what I can avoid consuming... not seeing it :( Sep 24 04:25:48 Shazer[2]: yes, but mainly no Sep 24 04:26:22 you can build simple scripts which hook into Android with sl4a, but you can't build full first-class apps Sep 24 04:26:42 I'm using actionbar sherlock. I use this code to populate list navigation : https://gist.github.com/3774181 But instead of using the actionbar context, I tried using the activity context and it works fine. Can someone tell me why the actionbar context is used in abs examples? Sep 24 04:26:42 Shazer[2]: sl4a also has many limitations (last time I checked) Sep 24 04:26:53 Aww :( Sep 24 04:29:31 * napster thinks it is rather an abs specific question Sep 24 04:29:43 anyone? Sep 24 04:31:12 seanjean718: I have no idea as I am a noob but I'd be curious if you'd have the same result on a pre-ICS device. Have you tried? Sep 24 04:33:16 oops, I meant napster Sep 24 04:33:46 mrjeff: ok, Let me try on pre ICS device Sep 24 04:39:27 mrjeff: Yes I tried on android-10 device. It works fine except the fact that I get one E in the logcat which says : E/ResourceType(327): Style contains key with bad entry: 0x01000000 Sep 24 04:41:30 napster: ok that is good to know. I wish I could help you further. Sep 24 04:41:46 np Sep 24 04:50:42 mrjeff, no I haven't Sep 24 04:51:00 oh ? Sep 24 04:51:02 :S Sep 24 04:56:18 hey has anyone here played around with the mercury framework for android? Sep 24 05:04:59 Hey I'm trying to create a listview containing a checklist linked to a db within an androidsherlock fragment. Would like guidance if anyone is available. Sep 24 05:37:23 so supppper annoying, but logcat -d *curtails* part of the log Sep 24 05:37:30 Does anyone know how to avert this? Sep 24 05:37:44 I have tried with a -t option, without success Sep 24 05:38:14 I'll make the use case concrete: I do automated testing, where I pipe some values to the logcat and then do postprocessing on them, with a curtailed log, this is impossible. Sep 24 05:39:01 how is it curtailed? Sep 24 05:40:28 When I watch the logcat in another term, I see tons of stuff fly by. When I do a "logcat -d" at a terminal next to it, I see only the most recent n lines (I don't know n exactly but could find out..) Sep 24 05:41:15 I've never experienced this Sep 24 05:41:59 Damn. Before doing this, I typically do a logcat -c to clear the log, I'm wondering if it could somehow have a sort of ... delayed effect (as a long shot..)... but wait a while still doesn't produce different results.. Sep 24 05:46:54 Hm,.... interesting. Sep 24 05:47:05 well, I'll try to figure it out, sorry for complaining.. Sep 24 05:51:57 Is there anything of which I should be particularly careful if I have an app writing a large amount of data to the log? Sep 24 05:52:17 I've found that the log comes in 4k chunks, so I need to split up text for this to work, but I wonder if that could somehow contribute to this problem Sep 24 05:53:33 sounds to me like you're... just doing wrong things Sep 24 05:54:07 Leeds: for an app, yeah, but this is for a hacky research project. Sep 24 05:54:29 I'd suggest making it less hacky :) Sep 24 05:57:17 Leeds: well to be completely honest, that's good advice, and in the real world I would deliver this to a web service with a good background service on an alarm manager and feeding the output through a JSON base. But at the same time, developing that would take more time than I have, and I would appreciate being able to debug my logcat woes without having to spend the extra few days having to write that up. Sep 24 05:57:48 just dump your data to a file or something Sep 24 05:58:48 Leeds: doing that now, but I had hoped someone would have a quick fix for this, i.e., a switch for logcat not to do this. Sep 24 05:59:07 meh Sep 24 06:00:09 I can apprecite the aversion to doing things the cheap way, but when it saves you a bunch of time, I don't feel so bad about it.. Sep 24 06:02:32 I vaguely member having logcat issue similar Sep 24 06:02:49 Fixed it with a setting found within Eclipse and its been a while sense Sep 24 06:02:53 since Sep 24 06:03:29 Hm.. this is over command line... Sep 24 06:03:39 Let me check to see if Eclipse has any magic hidden away... Sep 24 06:16:24 no discussions ? :D Sep 24 06:17:12 nah, it's lunchtime Sep 24 06:18:28 for me its class time :D Sep 24 06:19:30 then perhaps.., paying attention in class.....? Sep 24 06:19:38 heh... Sep 24 06:20:05 network programming and hes talking about TDM and FDM, been there done that Sep 24 06:24:07 http://pastebin.com/CcChz3wP <- I tried this but eventhough server doesn't respond(it's down) I don't get any error message shown. How I should correctly determine if httprequest fails due to server not responding? Sep 24 06:26:39 many sites list having an always-on service as an anti-pattern. but my service is subscribes to locationmanager for location updates, that are sent to a server. how would I do that without having the service always-on? Sep 24 06:26:54 my service subscribes* Sep 24 06:29:19 I'm using actionbar sherlock. I use this code to populate list navigation : https://gist.github.com/3774181 But instead of using the actionbar context, I tried using the activity context and it works fine. Can someone tell me why the actionbar context is used in abs examples? Sep 24 06:48:42 Lets say you use the Light.DarkActionBar theme.. A textview inflated with the activity context will have black text, but one inflated with the action bar context will have white text Sep 24 06:49:58 Black text on a dark background isn't very readable Sep 24 06:52:39 Which is why I tend to set the text color in TextViews manually all the time! Sep 24 06:53:05 that sounds like fun Sep 24 06:53:34 Sure is! Sep 24 06:54:08 anybody can help with the httprequest question? Seems the onPostExecute function gets called with empty string but despite that the alert dialog which should pop up on empty string response also fails to get called. Sep 24 07:02:37 tneva82: pastebin your code Sep 24 07:10:12 can i hide these "has joined android dev" messages Sep 24 07:10:27 depends on your IRC client Sep 24 07:10:42 web irc :D Sep 24 07:26:31 Leeds: I was being whiney.. writing a file ended up being just fine and was probably just what I should have done to begin with. Sep 24 07:26:56 good that you've solved it :) Sep 24 07:27:41 it was more of a preplexed "this has never happened before. Why is this doing this? The logcat code doesn't seem to indicate that this should be happening" moment :-) Sep 24 07:28:21 I guess you were just pushing it more than it expects Sep 24 07:29:17 I've dumped small downloads there before, but not multi-Kb ones Sep 24 07:30:05 hey i am new to android-ndk . I was trying learn ndk through the blog http://marakana.com/forums/android/examples/49.html . i have done everything suggested but now i m getting the error Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. About more here is the logcat http://stackoverflow.com/questions/12560538/problems-in-ndk-build-command . please guys anyone having ndk knowledge can help me? Sep 24 07:30:40 Yeah, well it's a pretty gross hack, we do binary instrumentation on apps (already pretty hacky), and then do a type of systematic testing to compare differences in rewritten apps, using some fancy instrumentation to compare results, so I was printing results to the log.. Sep 24 07:31:05 I figured I'd dig into the logger sources tomorrow to see if this was just me being absurdly dumb (assumedly so), or really a subtle bug. Sep 24 07:31:16 but I definitely agree that what I was doing was quite wrong... :-) Sep 24 07:31:21 ivru: [09:24] http://pastebin.com/CcChz3wP Sep 24 07:31:33 s/wrong/perverse. Sep 24 07:35:21 hi Sep 24 07:37:29 high Sep 24 07:42:47 #android-ndk Sep 24 07:43:59 #ndk Sep 24 07:49:02 is it possible to style the actionbar for the entire application at once? Sep 24 07:49:15 instead of applying theme on every activity Sep 24 07:49:38 i think so Sep 24 07:49:52 on the application tag Sep 24 07:49:56 inside the manifest Sep 24 07:50:13 KBZoiD: Yes, but the problem is with tileMode Sep 24 07:51:54 KBZoiD: It does not work on pre ICS Sep 24 07:52:38 KBZoiD: Well even if I extend the application class to do that, it seems impossible to set the background drawable for the actionbar from the application class Sep 24 07:53:17 tileMode was only broken in 1 or 2 HC versions Sep 24 07:53:22 for pre ICS use ActionBarSherlock Sep 24 07:53:26 And fixed pretty quickly Sep 24 07:53:41 KBZoiD: I'm already using actionbarsherlock Sep 24 07:54:33 SimonVT: well, I have applied the styling inside the application tag. and on running, tilemod does not work on API-10 emulator. Sep 24 07:54:52 I don't have pre ICS device to test :( Sep 24 07:55:14 Works fine for me Sep 24 07:55:22 * napster accidentally updated his phones to ICS and JB ;) Sep 24 07:55:41 SimonVT: on emulator? Sep 24 07:56:14 yes Sep 24 07:56:18 besides, it works perfectly on the galaxy nexus Sep 24 07:56:38 SimonVT: ok, then perhaps I might have done something wrong. Let me check once again Sep 24 08:01:53 SimonVT: ok, it works if I style it in the tag and do the PRE_ICS hack for tilemod-repeat in every activity Sep 24 08:02:15 on API-10 emulator Sep 24 08:03:48 hey! if i download and apk file through program, would this setting be correct: setRequestProperty("content-type", "multipart/form-data") ? Sep 24 08:04:51 SimonVT: I think the issue does exists on all pre honeycomb versions : http://code.google.com/p/android/issues/detail?id=22541 Sep 24 08:06:41 aah it was just my logic error. Dialog popped up just fine but it got hidden by the SECOND dialog that was popped. So first comes dialog that shows the error message and right after that the login screen dialog came and hid the first dialog. *oops* Sep 24 08:07:47 lol Sep 24 08:10:16 I have a startActivity in my onCreate, I want to this call synchronous Sep 24 08:10:43 I have seen from the Interwebz that this call is asynchronous Sep 24 08:11:31 startActivityForResult is not putting in the required charm Sep 24 08:19:46 * napster is using the pre-ics hack for tilemodRepeat the actionbar background, and using the styling in the application tag for now. :( Sep 24 08:20:48 how do you access the main_activity layout.. to add a view to it? Sep 24 08:21:48 or.. how else do I add things to the activity ...? Sep 24 08:22:14 I can add them in the .xml ... what would I add, though, were I to want to add a dynamic list of times Sep 24 08:23:41 ((ViewGroup) findViewById(R.id.yourViewGroup).addView(yourView); .. or, you know, use a listview Sep 24 08:32:06 hi SimonVT, nice to see you. Thanks. Sep 24 08:32:44 yeah I'm trying to add a listview right now.. something empty. Is it okay to use a table (I'm going to have some aligned buttons on the right side) Sep 24 08:33:28 hh1:mm1 X (<-- button to remove this time.. another button to edit it) Sep 24 08:34:33 or I could use a list and add the times, justified or in some other fixed-width type thing.. I'd prefer not to use a fixed-width though.. I'm new to android and the xml layouts, but well-acquainted with html and C ... Sep 24 08:39:04 I tried giving an id (@+id/main) to but eclipse warned that 'main' in R.id.main was not a field Sep 24 08:44:49 learning Java/ Android is a steep hill drive for people like us jaggz Sep 24 08:45:38 yes indeed Sep 24 08:45:39 that I can attest to Sep 24 08:45:43 Java has made me want to cry many times Sep 24 08:45:56 probably less crying than blender though Sep 24 08:46:09 is it possible to use pathclassloader to load an apk which can write some stuff to sdcard Sep 24 08:49:40 Hello all, my GSM Galaxy Nexus is not taking a system flash through fastboot, any ideas? Sep 24 08:50:19 #android-root Sep 24 08:50:48 I saw that in the title, should I still go there if it's just a stock image straight from google? Sep 24 08:51:10 yeah, this channel is for app developers Sep 24 08:51:22 ah, I see. Thank you for pointing me in the right direction Sep 24 08:51:33 no problem, good luck with your problem Sep 24 08:51:40 thanks Sep 24 08:52:18 Looney: If you have permission to write to external storage, you can load a dex file that writes there Sep 24 08:52:54 What if you want something like: "Current time: hh:mm"? made of a string (translatable) and a time? Sep 24 08:53:02 I'm doing it in code right now, but "Current time:" is hard coded Sep 24 08:53:32 hmm.. maybe I do a normal string, from resource strings, and the time as a text field aligned to its right? Sep 24 08:56:41 but I need those both centered.. hm Sep 24 08:58:54 this is the logic that I am applying SimonVT Sep 24 08:59:00 but its not working Sep 24 08:59:13 no exception and no file written to sdcard Sep 24 08:59:52 btw, I load a class Sep 24 09:00:05 from installed apk Sep 24 09:02:21 not even a class, only invoking a method which does the stint Sep 24 09:05:03 yeah seriously, how do you include things side-by-side? Sep 24 09:05:14 @string/current_time hh:mm Sep 24 09:05:23 and still be centered Sep 24 09:06:07 in HTML I might use a centered div and two 's in it Sep 24 09:09:41 I guess just a linear layout and the two items in it... works fer me :) Sep 24 09:18:42 can't find ctrl-pgup / pgdn for eclipse's next/previous tab bindings Sep 24 09:18:52 I'm trying to find how to switch between the layout's graphical and .xml view Sep 24 09:19:25 What processors do Android run on most? ARM? Sep 24 09:19:51 Ahoi. Can I register a Google Play developer account in the name of my company, pay for it with my personal Checkout/Wallet account, but from there on have no (immediately apparent) connection between my personal account and the company? Sep 24 09:20:26 i.e. don't have mybogusgmail@gmail.com show up anywhere that matters? Sep 24 09:20:54 *not have Sep 24 09:21:41 that's a good question.. Sep 24 09:22:05 one way to find out====== TRY Sep 24 09:24:24 KNERD: arm, mips, x86 Sep 24 09:27:56 but mostly arm Sep 24 09:28:33 i wonder how that new intel moto phone will do Sep 24 09:29:00 yeah, mips … haven't heard much there in a while Sep 24 09:37:24 I can't get my horizontal layout centered.. Current time: hh:mm .. it's expanded to fit the entire width of the android screen so "Current Time:" is left-justified Sep 24 09:40:12 jaggz, post your layout.xml please Sep 24 09:42:04 http://pastebin.com/AYBJSgn9 Sep 24 09:42:45 oh dear lord! Sep 24 09:42:52 wait, I should look before saying that... Sep 24 09:44:43 jaggz, dunno for sure, but why do you use gravity there? Sep 24 09:48:48 I'm trying to get the left and right to be joined.. it won't be needed if I get the two to shrink up Sep 24 09:49:54 lol leeds Sep 24 09:50:02 epg, posted Sep 24 09:55:59 g00s: did you get my messages? i got d/c Sep 24 09:56:17 no Sep 24 09:57:25 ok Sep 24 09:57:39 .I am trying to import a library with the NDK and it defaults to ARM unless I specifiy Sep 24 09:58:13 I think this would be a problem if the app is used in a device which is not arm Sep 24 09:58:40 oh, i'm not familiar with the ndk. sorry Sep 24 09:58:53 ok Sep 24 09:58:58 thanks Sep 24 09:59:37 jaggz: why are you even using a relativelayout, anyway? Sep 24 09:59:53 default that I started with Sep 24 10:00:05 first app sort of.. Sep 24 10:00:28 OMFG! Sep 24 10:00:39 ;-) Sep 24 10:02:15 oh, I thought this inserted ":ems" setting was some font thing automatically entered.. that's a width.. ugh Sep 24 10:09:32 got it.. finally Sep 24 10:10:10 and the answer was? Sep 24 10:10:52 42 Sep 24 10:17:19 happy monday Sep 24 10:18:14 is it? Sep 24 10:18:23 ever? Sep 24 10:19:13 i've got my starbucks and my drumnbass music Sep 24 10:19:18 ready to code up a storm Sep 24 10:19:21 i've got a headache Sep 24 10:19:32 the perfect storm? Sep 24 10:19:32 stayed up late to watch the game? Sep 24 10:19:38 what game? Sep 24 10:19:49 NFL? Sep 24 10:20:00 not really Sep 24 10:20:02 Ravens and Pats Sep 24 10:20:07 never heard of em Sep 24 10:20:08 amazing ending right there Sep 24 10:20:18 no way? Sep 24 10:20:25 America is not the center of the universe? Sep 24 10:20:32 i was about to say Sep 24 10:21:33 well for sports standards it was a right palm sweater Sep 24 10:21:46 oh well cool Sep 24 10:21:52 i am more of a baseball fan Sep 24 10:21:55 not that I watch that Sep 24 10:22:00 since it's in the middle of the night for me Sep 24 10:22:01 no way? yankees or redsox? Sep 24 10:22:05 and I have a toddler Sep 24 10:22:06 Cubs Sep 24 10:22:24 yowza.. good on you for appreciating the great american pasttime Sep 24 10:22:31 hehe Sep 24 10:22:57 America is the center of the multi-verses,,,get it right Sep 24 10:23:24 it sure is, MERICA! Sep 24 10:24:08 i like america Sep 24 10:24:11 except right now, gangnam style is the centre of the multiverses Sep 24 10:24:12 been there a couple of times Sep 24 10:24:23 oh yeah? which parts? Sep 24 10:24:37 most of the east in a mobile home :) Sep 24 10:24:39 whats an america Sep 24 10:24:44 between NYC and Miami Sep 24 10:24:48 Gangnam Gu? Sep 24 10:24:51 and Las Vegas twice Sep 24 10:24:55 Los Angeles, SF Sep 24 10:25:10 it was fun Sep 24 10:25:19 i love Denny's :) Sep 24 10:25:22 America - you know, the place where Google Play works Sep 24 10:25:23 gross Sep 24 10:25:29 oh gosh Sep 24 10:25:42 Denny's, where the avg customer weight is 400 kg Sep 24 10:26:07 google play doesn't work over there? Sep 24 10:26:08 yeag...fatty reconstituted frozen crap Sep 24 10:26:19 sdaq: only for apps here Sep 24 10:26:44 oh Sep 24 10:26:54 Hmm.. 5.1 in the developer agreement. Does this effectively null your copyright? Sep 24 10:27:10 sdaq: average weight is 400 Kg, :-o Sep 24 10:27:37 Looney: almost as bad as walmart customers Sep 24 10:28:08 and I thought that I am fat Sep 24 10:28:17 I am not even 90 Kg Sep 24 10:28:23 peopleofwalmart.com Sep 24 10:28:27 nobody is 400kg Sep 24 10:28:32 400lb, maybe... Sep 24 10:28:42 oh yeah?> lok at that site and see Sep 24 10:28:46 sorry I was tying to speak european Sep 24 10:28:48 there are plenty of people who are 400 Sep 24 10:28:51 kg Sep 24 10:29:26 European ? ? Sep 24 10:29:34 "Was ist das?" Sep 24 10:30:10 hey, its almost like when americans try to speak spanish to latinos Sep 24 10:30:40 aka - English Sep 24 10:30:51 "take out the garbage... you know... garbagio" Sep 24 10:31:03 :-D Sep 24 10:31:04 Have anyone faced this message in the error log : Failed to find style 'buttonStyle' in current theme I don't see any other associated issue and the app compiles fine. Sep 24 10:31:37 Why would someone speak Spanish to Latinos? Sep 24 10:31:37 this message appears in the error log and in the xml graphical layout editor Sep 24 10:32:15 KNERD: because not all latinos speak english Sep 24 10:32:22 napster: are you using a style called 'buttonStyle'? are you using any external layouts? do you *have* a style called buttonStyle? Sep 24 10:32:26 I thought Latinos speak Latin Sep 24 10:32:41 Leeds: I don't have such a style at all! Sep 24 10:32:45 KNERD: you're thinking of Catholics Sep 24 10:32:59 KNERD: its a vulgar type of latin Sep 24 10:33:01 no,,,the people from Latinus Sep 24 10:33:15 Central Italy Sep 24 10:34:21 napster: you don't have such a style, which is why it can't find it... but are you trying to *use* it, or using something else which could be trying to use it? Sep 24 10:34:32 so here is my issue with america. why is the drumnbass scene so tiny? Sep 24 10:34:57 There are also some "Romanized" who speak a type of Latin in Eastern Europe Sep 24 10:34:58 Leeds: well, let me search in the entire project for 'buttonStyle' reference Sep 24 10:35:06 drum** what?? Sep 24 10:35:11 sdaq: and I think we can call that the end of that conversation Sep 24 10:35:16 actually I didn't do anything special at all Sep 24 10:35:27 haha Sep 24 10:35:45 napster: but are you using any imported stuff, libraries, layouts you've copied from elsewhere? Sep 24 10:35:52 Leeds: we all have our wierd things I guess Sep 24 10:35:59 *weird Sep 24 10:36:05 Leeds: I use actionbar sherlock, nothing else Sep 24 10:36:12 sdaq: i like to dip my bananas into tea for example Sep 24 10:36:20 Guten Morgeb Nurnburg, hier ist Radio Gong Sep 24 10:36:21 hello everyone. im looking for a help regarding tabs on ActionBar. can anyone help me? Sep 24 10:36:25 funktronic: that is grotesque Sep 24 10:36:37 giwrgos: don't ask to ask, just ask Sep 24 10:36:53 sdaq: don't judge man Sep 24 10:37:05 how i can load an activity when a tab is clicked? Sep 24 10:37:06 funktronic: earl gray? or chamomile? Sep 24 10:37:13 napster: I think that's probably it Sep 24 10:37:15 sdaq: earl gray Sep 24 10:37:21 it's an English thing. Shortage of crumpets Sep 24 10:37:26 funktronic: stay classy my friend Sep 24 10:37:29 sdaq: english (or irish) breakfast for breakfast, then early gray Sep 24 10:37:45 funktronic: that sounds marvellous Sep 24 10:38:22 Earl Gray, hot! Sep 24 10:38:47 my hair is early grey :( Sep 24 10:39:21 hokkaido: from age or from being a hipster? Sep 24 10:39:35 age :( Sep 24 10:39:53 hokkaido: at least its just one then Sep 24 10:39:55 I drink oolong, green tea, and apparently guava tea... the gf makes it for me, dunno exactly what it is :) Sep 24 10:40:05 dagnap us young whipper snappers Sep 24 10:40:32 Leeds: Strange! I just restarted eclipse and it works fine now! Sep 24 10:40:42 that's Eclipse for you! Sep 24 10:40:46 napster: yay, problem solved! Sep 24 10:40:54 thanks Leeds :) Sep 24 10:41:00 Leeds: I am a fan of the herbal infusions... I have a black tea with some mint leaves from the garden Sep 24 10:41:18 Engrish Breakfast Sep 24 10:41:20 sdaq: I *do* live in China, it's sort of expected here :) Sep 24 10:41:51 Leeds: people don't appreciate tea in the US. have you ever had lipton?! Sep 24 10:42:10 I drink Green tea almost daily Sep 24 10:42:24 KNERD: i do sometimes at lunch. it's disgusting Sep 24 10:42:25 I also need me a Chinese gal Sep 24 10:42:30 standard Japanese green tea is often powdered Sep 24 10:42:42 KNERD: I do too... it is good for suppressing hunger Sep 24 10:42:44 I think it is smoother than black tea Sep 24 10:43:05 I drink almost 3 liters a day Sep 24 10:43:32 KNERD: dayum, thats a camelbak full of hot tea Sep 24 10:44:11 i drink it cold and with sweetner Sep 24 10:44:50 I drink tea cold and unsweetened Sep 24 10:44:56 green tea doesn't need sweetening Sep 24 10:44:59 its safer to drink it cold; thermal injury / inflammation from hot beverages is suspected to play a role in throat cancer Sep 24 10:45:07 i drink it whatever temperature it is and unsweetened Sep 24 10:45:15 and preferrably decafeinated Sep 24 10:45:37 g00s: rubbish! i will need some urlage for that Sep 24 10:45:38 good ol saccrane Sep 24 10:45:44 anyway... #android-tea Sep 24 10:46:08 yummy Sep 24 10:46:16 i like kusmi tea Sep 24 10:46:22 sdaq: http://www.reuters.com/article/2009/03/27/us-cancer-tea-idUSTRE52Q01620090327 Sep 24 10:46:42 Leeds: have your gf find me a nice 40kg cue china doll Sep 24 10:46:50 *cute Sep 24 10:46:56 iranian researchers :P Sep 24 10:46:57 "Iranian researchers" Sep 24 10:47:10 bwhaahahaa Sep 24 10:47:24 change that to "researchers" Sep 24 10:47:42 all their computers now play AC/DC Sep 24 10:48:19 their research made it to BMJ, so i dont care if it came from iran Sep 24 10:48:41 http://www.businessweek.com/news/2012-07-25/iran-nuclear-plants-hit-by-virus-playing-ac-dc-report Sep 24 10:52:03 how i can load an activity when a tab is clicked? Sep 24 11:04:59 is it possible to send arbitrary data to and from my Android phone over a USB connection? Sep 24 11:05:16 I don't mind how, as long as my C++ server can send the data with minimal overhead as fast as possible Sep 24 11:05:28 Philpax: not sure, have you seen the ioio ? Sep 24 11:07:12 Philpax: with a usb-ethwrnet connect ion, sure Sep 24 11:07:33 g00s, while the ioio is interesting, I'm not looking for a hardware solution Sep 24 11:07:51 SpeedEvil, that sounds like a good idea; I'm already sending my data over a UDP connection, but there's far too much packet drop/latency for usability Sep 24 11:07:58 any suggestions on how to implement a usb/ethernet connection? Sep 24 11:08:49 it depends if your device supports it. Sep 24 11:09:02 there is an open source app with name something like SwiFTP Sep 24 11:09:13 I have a Nexus S Sep 24 11:09:16 it may require anything up to and including rooting and new kernel modules. Sep 24 11:09:35 this app is for me only, so I have no qualms about having to do device-specific configuration Sep 24 11:10:51 WiFi is too slow? Sep 24 11:11:31 yes Sep 24 11:12:13 I'm sending what is essentially MJPEG video at 30 FPS (easiest solution, alternative compression methods are complicated to implement) Sep 24 11:30:36 Hey people. Sep 24 11:31:54 The customer wants that the app name is something different from the app name *cry*. For example, imagine that the actual app name is "Cosmo Pack", but it should show up as "Star" Sep 24 11:32:22 I mean that the icon and advertisement will show "Cosmo Pack", while the little text below the icon in the launcher will say "Star". Sep 24 11:32:35 Can you give me any good arguments against this? Sep 24 11:33:02 That it is confusing for the users perhaps? Sep 24 11:33:12 So far I found "Alphabetical ordering in app list will be wrong, since you will find Cosmo Pack under S" Sep 24 11:33:53 Will the app even show up as Cosmo Pack in Google Play? Or will it be called "Star" there then? Sep 24 11:34:08 I mean, it's not possible to ONLY change the name the app has in the launcher, right? Sep 24 11:34:40 The name in play store is the name you enter in the dev console Sep 24 11:34:50 Has nothing to do with the title of your launcher icons Sep 24 11:34:51 The idea of the customer is that there will be two versions of the app "Cosmo Pack Star" and "Cosmo Pack Asteroid", and he wants to have "Cosmo Pack" in the icon and "Star" or "Asteroid" as a subtitle. Sep 24 11:35:37 Ah, that's good news. I didn't know that you could set the launcher title separately. Sep 24 11:36:07 So the app could still be called "Cosmo Pack" but show up as "Star" in the launcher? Sep 24 11:36:12 UnbertKant: http://developer.android.com/guide/topics/manifest/activity-element.html#label Sep 24 11:36:12 Yes Sep 24 11:36:19 ^ Sep 24 11:36:35 The launcher title is the activity label tag Sep 24 11:36:44 If it doesn't have one, it inherits from the application tag Sep 24 11:36:59 Wow, that's just perfect! Thanks! Sep 24 11:44:14 Is it possible to add submenus to the actionbar using xml? This is the xml I tried with : https://gist.github.com/3774181 It does add the toplevel menu to the actionbar, but clicking on it does not populate the submenu Sep 24 11:46:59 http://developer.android.com/guide/topics/ui/menus.html#xml Sep 24 11:47:18 Second example Sep 24 11:48:51 SimonVT: ok, I missed adding items to the tag! :) stupid me! Sep 24 11:48:56 thank you Sep 24 12:18:31 ok Sep 24 12:18:51 I am trying to compile pcre from the android git repo as a shared library instead of a static host lib Sep 24 12:19:37 is there anything I need to do special in the Android.mk besides changing BUILD_STATIC_HOST_LIBRARY to BUILD_SHARED_LIBRARY? Sep 24 12:41:52 5.1 in the developer agreement. Does it effectively null your copyright? Sep 24 12:41:59 " 5.1 You grant to Google a nonexclusive, worldwide, and royalty-free license to: copy, perform, display, and use the Products for administrative and demonstration purposes in connection with the operation and marketing of the Market and to use the Products to make improvements to the Android platform. " Sep 24 12:44:04 frode: no Sep 24 12:44:13 it's distribution agreement Sep 24 12:46:42 Hmm, it sounds to me like they can take whatever I make and use it if they feel it would be an improvement to the Android platform. Sep 24 12:47:36 it would be an honour! Sep 24 12:48:17 frode: blame bulshitty copyright laws that make for too much CYA in agreements Sep 24 12:50:34 how can i detect when a PagerAdapter switches which item it is showing? Sep 24 12:50:53 hello@all Sep 24 12:50:57 maybe you can help me: i'm searching for an implementation of the "sending behavior" of wlan management frames. i want to know, how does a wlan-adapter send probe requests...sorry about my bad english. Sep 24 12:53:46 is it possible to have a P2P video streaming app in Android Sep 24 12:54:37 you mean like... skype, or gtalk? Sep 24 12:54:58 or streaming a video file? Sep 24 13:00:21 video file Leeds Sep 24 13:00:37 so you want a dlna or http server? plenty of them around Sep 24 13:01:17 Looney: why not? just stream from server ;) Sep 24 13:01:47 it does seem a logical idea to me but no idea if client likes it Sep 24 13:02:05 I also thought of a situation of a broadcast Sep 24 13:02:24 where receiver can tune in to get the content of the choice Sep 24 13:03:01 it has nothing to do with streaming Sep 24 13:03:13 I mean choosing the program / channel to stream Sep 24 13:03:43 As android applications run on a custom java interpretor (dalvik), what technical reasons are there for android applications not to run on linux/windows? (ignoring lack of hardware support, faking GPS and the such would be possible i 'spose) Sep 24 13:03:49 p_l: Ok, thanks. It's not really a concern, just something I need to convince management of. Sep 24 13:04:35 Jak_o_Shadows: lack of API ? Sep 24 13:05:15 someone would need to write 'wine' for Linux/windows Sep 24 13:05:49 gorudonu: Do you mean in reference to all the custom stuff like rotation, GPS, acceleramotor, buttons, touch screen, camera/mic? Sep 24 13:06:02 Jak_o_Shadows: yes, all the classes from android Sep 24 13:06:04 which would be a JVM, combined with the right APIs, and software to pretend to be a phone Sep 24 13:06:09 and bind them to something Sep 24 13:07:09 yeah, pretty much. Not completely emulating android, but running through a layer, or modifying some of the API's to pretend to be a phone. Sep 24 13:07:19 I guess the main reason it doesn't exist is because nobodies bothered? Sep 24 13:10:16 for windows there is a commercial application that can run apks Sep 24 13:10:28 i still see no need for that :) Sep 24 13:17:07 my line of thinking is that other mobile phone OS's (ignoring iOS) are a lot closer to desktop linux, which means that individual apps could be run better Sep 24 13:17:54 don't think :) Sep 24 13:18:04 lot closer to linux? Sep 24 13:18:07 the only thing I have against Android is, Y u no C/C++ Sep 24 13:18:19 the IPC of android is different from unix/linux Sep 24 13:19:51 Looney : Java is not that bad. Sep 24 13:20:16 https://wiki.ubuntu.com/Specs/AndroidExecutionEnvironment Sep 24 13:20:32 hmmm he left Sep 24 13:20:44 WindowsNT: not too good either Sep 24 13:20:49 yeah trolls need sleep Sep 24 13:20:58 Looney : well it's better than the crappy ios objj Sep 24 13:20:59 Looney, what's wrong with Java? Sep 24 13:21:00 objc Sep 24 13:21:16 but anyway - the unified execution enviorment is now called windows 8 :) Sep 24 13:21:21 everything is better that what apple came up with Sep 24 13:21:25 I saw a view for some from that line something I while ago I think Sep 24 13:21:36 *for that link Sep 24 13:21:44 I don't want to be the troll here Sep 24 13:21:53 only sharing my feelings for JAVA Sep 24 13:22:19 had android apps running naively on ubuntu, from memory Sep 24 13:22:24 you're not the only one who isn't a fan of java Sep 24 13:22:57 I don't have a problem with java since I can create C++ code for android when I need so. Sep 24 13:23:13 Looney: but you can code in C++ with android Sep 24 13:23:30 but through JNI Sep 24 13:24:17 java? in 1996 i was been told "soon everybody has 133MHz and 32mb ram - then java will be fast" Sep 24 13:24:30 now i have 4x 3.7 GHz and 16gb ram - why isn't java fast? Sep 24 13:25:13 java is slower by definition Sep 24 13:25:19 oh good. Sep 24 13:25:23 lets have a holy war. Sep 24 13:25:27 cause it ain't no C monsti Sep 24 13:25:39 every day is a good day for a holy war Sep 24 13:25:42 *especially* over Java Sep 24 13:25:43 lov : we don't need to because there is nothing to argue about Sep 24 13:25:54 You're right. There's nothing to argue about. Sep 24 13:26:00 So please stop post haste Sep 24 13:26:16 WindowsNT: so true, nothing to argue Sep 24 13:26:23 ok new blame topic - iOS 6.0 or 10.8.2 Sep 24 13:28:24 more like iNoS Sep 24 13:28:26 AMIRITE? Sep 24 13:28:31 seriously less flaming more devving Sep 24 13:29:38 that's true, but developing doesn't prevent us to blame ios Sep 24 13:29:47 Does anyone know when this functionality will be available to the common dev? : http://goo.gl/o3EsT Sep 24 13:29:51 although I must admit i 'm going well with it the last 3 days I 've been trying. Sep 24 13:30:24 Guest26830 there is no official date Sep 24 13:30:25 Guest26830: yes, but I'm not going to tell Sep 24 13:30:27 Guest26830: yeah I want that so bad Sep 24 13:30:30 neener neener boo boo Sep 24 13:30:45 (no I do not know, no one here knows, and if they can they can't tell) Sep 24 13:30:54 all of us want that so bad Sep 24 13:31:01 s/they can/they know/ Sep 24 13:31:18 so we can swear on stupid users which put 1/5 stars Sep 24 13:31:26 anybody around here with a google 7" tab? Sep 24 13:31:33 or help them out Sep 24 13:32:07 LukePH : i don't help after feedback Sep 24 13:32:26 requesting help is ok as long as the user doesn't rate 1/5 first. Sep 24 13:32:46 Sometimes if you help them though, they change their rating. So in the long run, it is better for you. Sep 24 13:32:51 monsti: a what now? Sep 24 13:32:54 you mean a nexus 7? Sep 24 13:33:04 lov: yes the 4.1 device Sep 24 13:33:07 Knossos : this is an exception, not the rule Sep 24 13:33:10 Well true, but sometimes they just miss a simple thing, they aren't asking for help directly Sep 24 13:33:30 I've had a few people, change 1 stars to 5 stars when I could help them Sep 24 13:33:42 besides, will they actually look the feedback reply? or will the reply be enough? it may be limited to 32 chars Sep 24 13:33:48 mooky: yes Sep 24 13:33:48 monsti: just say "nexus 7" since that's the actual name of the device. People will think you're talking about some weird samsung device if you say "7" tab" Sep 24 13:34:04 "YOU ARE AN AS" , sorry, you 've exceeded feedback reply length Sep 24 13:34:10 since samsung actually has a "Galaxy Tab" which is a 7" device Sep 24 13:34:20 plus some people seem to think you an reply.. Sep 24 13:34:22 lov: yeah - so you have the nexus 7? Sep 24 13:34:27 no. Sep 24 13:34:28 *can Sep 24 13:34:51 monsti: are you doing a survey on the ownership of Nexus 7s amongst IRC-using Android developers? Sep 24 13:35:55 Leeds: it depends if you have one Sep 24 13:36:17 are you trying to steal our megahurtz Sep 24 13:36:21 monsti: no, it doesn't... are you here to find out how many people have them, or do you have an actual question? Sep 24 13:36:21 my gibson! D: Sep 24 13:36:22 That's a pretty bad survey if you only include people who have one Sep 24 13:36:46 100% adoption! Sep 24 13:36:53 Leeds: my question is - if you have one & are a developer - if you suggest using this hardware for development Sep 24 13:37:42 oh jesus christ. Sep 24 13:37:52 monsti: there is no "one true developer device" Sep 24 13:37:56 I swear we need to put that in the topic Sep 24 13:38:13 nexus devices are going to have the least amount of OEM fuckery, but any device is pretty much fine for development Sep 24 13:38:17 lov: yes that's why am asking about a specific one to one that has that specific device Sep 24 13:38:28 monsti: yes, it's a fine development device. Go get one. Sep 24 13:38:32 Just bear in mind that there's no telephony. Sep 24 13:39:14 a tablet, like the nexus 7, a $70 gingerbread tablet, and a couple of phones would be a good starting point Sep 24 13:40:09 lov: i thought they had an advanced eddition with 3G :( Sep 24 13:40:25 gah, is there no way to forward UDP packets over USB using adb? Sep 24 13:40:31 looks like it's tcp-only :/ Sep 24 13:51:24 hey hey hey Sep 24 13:55:19 hai2u mr Ankhwatcher Sep 24 14:02:35 I have been asked to do an app that submits a form and displays a table with information from a server according to the form submitted. My question is, are there any cons to just doing a webapp instead of an actual android app? Sep 24 14:03:03 I have noticed a lot of apps lately where the app seems to be just a simple webpage Sep 24 14:03:18 your users will hate you Sep 24 14:04:38 aside from the fact that the users could just go to the site, not really Sep 24 14:04:44 though it's really an "it depends" question Sep 24 14:04:59 if you do the processing of the server response yourself, you can display a native look & feel for the results Sep 24 14:05:13 that's obviously possible through theming on the server but that's kind of a larger job involving upkeep Sep 24 14:05:26 ah, good point, lov ... the native look stuff... perception... very important Sep 24 14:05:33 if you don't give a shit about L&F however, just use a webview like you suggested. Sep 24 14:05:57 *cough every banking app with an iOS style cough* Sep 24 14:06:27 don't forget a 'back' arrow on the titlebar Sep 24 14:06:31 It can be very quick to build a native App in that system, without a WebView Sep 24 14:06:33 yeah, just trying to figure out where to put my eggs... since I'd have to do an android app and an iOS app... and this whole thing about sccreen sizes scares the crap out of me Sep 24 14:07:41 Leeds: yes, exactly Sep 24 14:07:54 Knossos-: yeah, but you also have to worry about cross-platform compatibility Sep 24 14:07:57 DammitJim, yeah, I know. iOS has 3 different ones now (:-P) Sep 24 14:08:05 right Sep 24 14:08:05 if you just do a webapp, you don't have to worry about multiple codebases Sep 24 14:08:10 Sure Sep 24 14:08:26 lov: in theory (and in small projects) yes Sep 24 14:08:32 I want to question the person at Apple who thought 1136x640 was a good resolution Sep 24 14:08:41 mrenouf|work: FRAGMENTATION! Sep 24 14:08:51 If I was doing more client side stuff that I would need to save and stuff, I could probably see a full app dev, but that's why I'm trying to understand if I'm making the right decision Sep 24 14:08:57 Philpax: it's a good resolution because fuck you that's why' Sep 24 14:09:21 DammitJim: who is the customer? Have they put the theming in as a requirement? Will they be doing this on multiple platforms? Sep 24 14:09:25 but practice has shown atleast to me that when project is big enough, there will be so much hacks etc. that you have atleast 1,5 codebases Sep 24 14:09:31 lov, do you have a good read about adapting to screen resolutions in android? besides the doc from android dev Sep 24 14:09:58 besides that, no Sep 24 14:10:13 the best advice I can give is to not try to make everything pixelperfect Sep 24 14:10:17 down that path lies torment and pain Sep 24 14:10:25 use relative layouts and percentages and dp Sep 24 14:10:38 yeah... that last 10% of the project turns into 90% of the work Sep 24 14:10:39 LOL Sep 24 14:10:43 thanks for the advice guys Sep 24 14:10:48 you are always very helpful Sep 24 14:11:26 px: There be dragons. Sep 24 14:11:31 not always Sep 24 14:11:37 To the helpful comment Sep 24 14:12:14 +1, SimonVT LOL... but I was being nice ;) Sep 24 14:28:29 Can you only use a numeric value in the versionName? Since I was going to publish it in an Alpha state I wanted to append A to denote that the app was in alpha, B for beta and so forth? Sep 24 14:28:55 Poesghost-I like that idea Sep 24 14:29:14 There's two in the manifest, versioncode and version name Sep 24 14:29:27 one of them has to be an integer, and probably a simple incrememnted1,2,3,etc Sep 24 14:29:35 the other can be whatever, i'd been using 1.01 etc Sep 24 14:29:36 version name is a string Sep 24 14:29:37 afaik Sep 24 14:29:41 ymmv :) Sep 24 14:29:45 jk Sep 24 14:29:51 Yes even though it does denote that it allows a string I just wanted to get everyone elses input. Sep 24 14:29:51 glhf (OK, so now i'm beingsilly) Sep 24 14:30:57 Te thing I find worth considering is how that probably the number has to go up (the nonstring one) in order to get the market to say "You have an update" Sep 24 14:31:18 thanks, rgvneil, I think pushing it out in early alpha phase will have its benefits, since it will also allow me to get early feedback and make changes, early in development, from the community base. Sep 24 14:31:31 You cant upload a new one, unless the version code is higher than the previous one. Sep 24 14:31:55 The version code is the machine way of comparing. The version name is a user friendly way of comparing. Sep 24 14:32:12 So basically you can do whatever you want to the version name Sep 24 14:32:17 Thanks Knossos and everyone else! Sep 24 14:32:40 @Poesghost--rero=the right way to go. (iterative) Sep 24 14:32:57 rero? Sep 24 14:33:36 never mind lol I google'd it Sep 24 14:33:50 Am I invoking bitmap.SetConfig correctly - http://pastie.org/private/9m6v3pdogewcofy8q1ggw Sep 24 14:34:24 thanks rgvneil. Sep 24 14:34:28 Back to work. Sep 24 14:34:42 yep-have a good one Sep 24 14:34:48 you too ^^ Sep 24 14:36:23 Hello all, Does anyone know if there's a way to know when the ime is going to be opened ? My problem is the following: I've an relativelayout with a form and an overlay view which is layout:alighParentBottom="true" . When the user clicks on an edittext the ime opens and the overlay goes over the selected edittext Sep 24 14:37:49 hello all, could you point me in the direction of the Nexus 7 source code native bits? (not jelly bean) Sep 24 14:38:04 vekexasia: you have to set the resizeMode or something on your ... layout? I don't remember; let me poke around the docs for you Sep 24 14:38:08 professorpasta: source.android.com Sep 24 14:38:57 evancharlton: just to be clear. I want the overlay to be there. But i'd like to catch the "IMEOpened" event so that i can call scrollView.scrollTo method accordingly Sep 24 14:39:11 Unfortunately no, vekexasia. I personally detect large changes using OnGlobalLayoutListener Sep 24 14:39:46 that's a shame. Sep 24 14:39:50 vekexasia: http://developer.android.com/guide/topics/manifest/activity-element.html -- you will want to set android:windowSoftInputMode to adjustPan, I believe Sep 24 14:39:53 http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android Sep 24 14:40:00 Hmm Sep 24 14:40:18 Knossos-: that seems like the wrong way to go about doing it Sep 24 14:40:35 It is a horrible way of going about doing it. :( Sep 24 14:40:53 lol Sep 24 14:40:58 interesting Sep 24 14:41:06 I am not aware of a better way though Sep 24 14:41:37 Knossos-: I just linked you--adjustPan should do it, no? Sep 24 14:42:57 Hmm, may be. I didn't have layout issues though. I needed a boolean, is the ime open or not. Sep 24 14:43:31 adjustPan will likely not place my android:layoutAlignParentBottom=true Sep 24 14:43:34 over the keyboard Sep 24 14:43:57 er, you don't want it placed over the keyboard... Sep 24 14:44:04 plus knossos that solution posted on SO won't work with adjustpan Sep 24 14:44:13 I do evancharlton Sep 24 14:44:15 oh, sorry, I thought you meant "over" as in z-index over Sep 24 14:44:20 like, on top of Sep 24 14:44:24 I've my "GO" button over there with a notice Sep 24 14:44:31 sorry Sep 24 14:44:38 haha, no worries Sep 24 14:44:41 above the keyboard Sep 24 14:44:48 evancharlton: thank you, is there a browsable copy somewhere? the entire repo is overkill for my needs :) Sep 24 14:44:53 it's still early for me; brain is still booting up :) Sep 24 14:45:04 ahha where the hell are you ? Sep 24 14:45:14 professorpasta: you can git clone just the projects you need if you don't want to repo sync the whole thing. Sep 24 14:45:33 vekexasia: PST Sep 24 14:45:44 professorpasta: https://android.googlesource.com/ Sep 24 14:45:45 :) Sep 24 14:46:27 vekexasia: yeah, adjustPan might not scroll the whole window up (may only make sure that the EditText is visible; not sure) Sep 24 14:46:32 I'd give it a shot and see what happens though Sep 24 14:46:45 i'm right now Sep 24 14:47:10 I have found that placing a text view and button in the same horizontal linear layout puts the whole layout above the ime, if that helps. Sep 24 14:47:40 Knossos-: well, yes, that would logically happen :) Sep 24 14:47:41 knossos Sep 24 14:47:45 i think i already achieved that Sep 24 14:48:03 I think I have lost the plot :P Sep 24 14:48:51 evancharlton: thanks, i think that's what i'm looking for. Sep 24 14:49:12 professorpasta: no problem; good luck! Sep 24 14:54:48 evancharlton: tryed adjustpan Sep 24 14:54:58 does what I suppoused Sep 24 14:55:34 Indeed the layoutAlignParentBottom doesn't go on top of the ime. Sep 24 14:56:19 hmm maybe i've the solution for my case but i'll need to know if there s a way to know if a view was moved or resized Sep 24 14:56:23 not sure it can be donw Sep 24 14:59:27 where's the factory image for mysid 4.1 :-/ Sep 24 14:59:57 vekexasia: view.getViewTreeObserver().addOnGlobalLayoutListener(...) Sep 24 15:00:13 When the view is changed, it should fire that event Sep 24 15:00:27 ok i'm actually trying that as we chat Sep 24 15:02:06 How would I get a devices resolution before WINDOW_SERVICE is loaded? Sep 24 15:02:10 Or is this impossible? Sep 24 15:03:21 Indeed Knossos- it does get called Sep 24 15:03:29 but it's a pain in the ass Sep 24 15:04:05 Since now i've to check if that didn't trigger because the phone changed orientation Sep 24 15:04:41 or because other things now i don't know Sep 24 15:04:58 and then if this fucking euristic i'm going to build tells me that probably the ime is there Sep 24 15:05:06 I can to a fucking one line of code :P Sep 24 15:05:14 s/to/do/ Sep 24 15:06:27 No way to pull the res from surface flinger? Sep 24 15:08:06 er? Sep 24 15:08:11 Necrosan: what exactly are you trying to do? Sep 24 15:09:07 Something apparently impossible - get device resolution before window_service is up Sep 24 15:11:57 Necrosan: correct Sep 24 15:12:18 thanks, not what I wanted to hear but I can work with that. Sep 24 15:12:51 I meant more of "why do you need to do this" Sep 24 15:18:58 I am working on making a thread that will read a list that is timestamped with data. It will then send data back to the UI with thead.sleep delays controlled by the timestamp..... Sep 24 15:19:34 Finally I will have contorl over this thread with a popup on the ui for slow, speedup, etc, so I need the ability to pass input to this thread after it starts Sep 24 15:19:45 I thought about an Async task, but the last requirement kills that ability Sep 24 15:20:03 should I just make a regular thread with handlers, or anyone have any other idea?? Sep 24 15:22:43 uh Sep 24 15:22:50 I'm not sure why the last requirement precludes an AsyncTask. Sep 24 15:23:03 You can absolutely have a subclass of AsyncTask that has additional methods that let you control it in whatever form Sep 24 15:23:12 you don't HAVE to make anonymous inner classes. Sep 24 15:25:06 lov: I would definitely rather not. Guess I was not able to see how to use the AsyncTask for this then. I thought about using publishProgress for sending the values back, but was unsure of how to send a control in after execute Sep 24 15:26:26 Anyone have any clues about what "prepareAsync called in state 1" means after calling MediaPlayer.prepare()? Sep 24 15:28:00 PeteS: look at the state machine diagram on MediaPlayer Sep 24 15:28:15 warning: MediaPlayer has an absolutely terrible API :-/ Sep 24 15:28:16 does someone have the android repo on their local ? i'd like to have the output of a grep Sep 24 15:28:25 vekexasia: what's up? Sep 24 15:28:35 and I don't have enough connectivity to get the code in less than 1hour or so :P Sep 24 15:28:37 evancharlton: it looks like State 1 is Initialized, and that prepare() is the next step, no? Sep 24 15:28:43 grep -R R.id.content . Sep 24 15:28:57 vekexasia: which project? Sep 24 15:29:05 ohh unless there was an error in setDataSource. that must be it. thanks! Sep 24 15:29:10 framework_base i think Sep 24 15:29:20 platform_framework_base Sep 24 15:30:46 lov: How would you pass something back in after execute is called Sep 24 15:30:56 epsilonorion: I'm not really sure what you mean by "pass something back" Sep 24 15:31:02 epsilonorion: create a concrete subclass of AsyncTask Sep 24 15:31:05 give it some extra methods Sep 24 15:31:09 have those methods do things Sep 24 15:31:13 call those methods as appropriate Sep 24 15:31:38 you might want to quickly compare how multithreading is supposed to work Sep 24 15:31:45 s/compare/review/ Sep 24 15:31:55 consider using volatile variables, synchronization, etc as appropriate Sep 24 15:32:15 evancharlton: did your cpu/hard-drive explode yet? :P Sep 24 15:32:27 vekexasia: cloning now Sep 24 15:32:39 epsilonorion: AsyncTask is just a convenience class that has a Handler. Sep 24 15:32:42 Lol :P do you've fiber ? Sep 24 15:32:58 lov: MainActivity will have a call to execute the AsyncTask. AsyncTask will process data passed in, sending message back through publishProgress. MainActivity will have ability to speed up or slow down process of data being sent. This is done by user input that directly multiplies or divides the sleep time. Sep 24 15:33:05 I've got a pretty fast connection, yeah :) Sep 24 15:33:12 epsilonorion: .... right. Sep 24 15:33:23 so let this AsyncTask be a member variable of your Activity Sep 24 15:33:45 and in your speedUp()/slowDown() calls in MainActivity, call myTask.speedUp(); Sep 24 15:33:48 etc Sep 24 15:34:00 just make sure to handle the lifecycle when your activity is finished, null checks, etc. Sep 24 15:34:11 epsilonorion: again, there is nothing magical about AsyncTask. Sep 24 15:34:30 It's just a convenience class for a Thread (well a threadpool but we won't get into it) that has a Handler reference so it can do UI thread callbacks Sep 24 15:34:41 lov: I follow you. Just thought there would be issues with thread safety. Will do that though Sep 24 15:34:47 well, there may well be. Sep 24 15:34:54 You have to follow the same rules for multithreading that you would anyway. Sep 24 15:34:54 evancharlton just curious. How much fast ? Sep 24 15:35:01 no problem there then Sep 24 15:37:45 if I want to make a blinking colon : in a clock.. through what methods can I implement this? Sep 24 15:38:45 jaggz: colon.postDelayed(new Runnable() { ... }, 1000); or so Sep 24 15:38:52 thanks Sep 24 15:38:58 that is, generate a callback that fires once per second that blinks it Sep 24 15:39:08 howdy Sep 24 15:39:16 if you are really advanced, calculate the callback delay such that it fires on the next second beginning Sep 24 15:39:20 sounds good. also I just realized, I have to update the clock anyway Sep 24 15:39:32 something like 1000 - (System.currentTimeMillis() % 1000) as the delay Sep 24 15:40:08 so for instance if you are 850 milliseconds since the start of second, the expression calculates to 150 and it should fire on the start of next second Sep 24 15:40:23 only if clock is visible, of course Sep 24 15:40:23 lov: yep, works. Now just to separate my task from being an inner class Sep 24 15:40:24 I could do hourStr + (min % 2 ? ":" : " ") + minStr ... except the variable width of the : and space .. darn Sep 24 15:40:40 yes, the postDelayed's best stop on onPause and continue in onResume Sep 24 15:40:52 jagebage: courier! Sep 24 15:41:02 jaggz: Sep 24 15:41:54 how to make a simple AR project using android ? Sep 24 15:41:57 yeah.. I thought of fixed width but there's little reason for that limit except colon-hiding convenience Sep 24 15:42:30 amoxibos, camera input -> distort -> display? Sep 24 15:42:45 jaggz: you can just make the : a separate textview and then blink it with tie view.visible / view.hidden Sep 24 15:42:56 cameara input Sep 24 15:43:27 i was thinking that too.. so use a horizontal layout with 3 textviews curTimeHour curTimeSeparator curTimeMin ? Sep 24 15:43:52 jaggz: it's a possibility. Sep 24 15:44:59 I think I like that way Sep 24 15:45:36 I wonder if I should keep clock visibility as an internal variable, or refer to the UI element's visibility state as storage for its visibility. Sep 24 15:46:53 jaggz: you should remember that the : and space character may have different lengths when being drawn. Sep 24 15:46:54 I have another question: You know when you do a default eclipse activity, with the icon and app name at the top? Where does that layout come from? Sep 24 15:47:12 I would strongly recommend that you make a custom view that has 4 views of fixed size containing your values Sep 24 15:47:49 noticing when hidden, and not firing your clock update former at all is best Sep 24 15:48:29 there appears to be no way to cancel a particular postDelayed Sep 24 15:48:37 There is Sep 24 15:48:41 oh? Sep 24 15:48:44 Handler.removeCallbacks(Runnable) Sep 24 15:48:55 Oh I see... Sep 24 15:49:03 it's an alarm app, keeping a series of alarms Sep 24 15:49:04 that would simplify the code slightly. Sep 24 15:50:03 right now it's my first app.. so while learning all these little UI elements and stuff, everything's still in onCreate() :} Sep 24 15:50:21 ._. Sep 24 15:50:32 Make the runnable a member var, have it call a method that updates the ui and postDelayed the same runnable Sep 24 15:50:39 jaggz: just remember, onCreate runs on the same thread that handles your drawing and your inputs. Sep 24 15:50:44 you want to finish onCreate as soon as possible Sep 24 15:50:52 right, I read about that Sep 24 15:51:00 So to do that, just put everything in onResume Sep 24 15:51:12 I need to make sure my app stays running -- or will run at the time of the next alarm.. Sep 24 15:51:26 jaggz: no, you don't, and you shouldn't Sep 24 15:51:28 it would be nice if it didn't have to stay running Sep 24 15:51:29 You should use AlarmManager Sep 24 15:51:52 lov: wait, AlarmManager once/second? Sep 24 15:52:04 excelent.. thank :) Sep 24 15:52:27 * lov glares Sep 24 15:52:28 evan, noo.. that's just for a flashing colon.. for while the activity is displayed .. to bring attention to the "current time" Sep 24 15:52:44 use AlarmManager to handle your alarms, not the flashing colon. Sep 24 15:53:28 in a page with times and number selectors, it would be a familiar way of saying, "here's the current time".. "intuitive", though not necessarily genetically intuitive Sep 24 15:55:01 this is a safety alarm. would be interesting to wake the phone, alarm, and go back to sleep :) Sep 24 15:55:52 or, just make sure the status bar is visible.. Free clock! Sep 24 15:56:07 good point :) Sep 24 15:56:44 but if I have the space for it, it would be good to have a brighter bigger more obvious clock in this case Sep 24 15:57:29 for sleepy-person to get more neural stimulus when trying to manage a series of alarms Sep 24 15:58:35 I asked this earlier but I don't know if I got a response: Sep 24 15:59:01 What's the philosophy on keeping multiple .xml's and activities vs. a single activity which dynamically generates everything? Sep 24 15:59:21 please use multiple Activities. Sep 24 15:59:34 An Activity describes a discreet task Sep 24 15:59:51 it's possible but extremely unusually to call setView more than once in an activity Sep 24 15:59:57 also, fragments, etc. Sep 24 16:02:24 oh.. and where they layout of the (ICON) AppName comes from in this default eclipse android app .. Sep 24 16:02:50 android:icon and :label in your manifest Sep 24 16:03:45 And the reason for not generating your layout in code is that you will most likely have several different layouts depending on screen size, orientation, platform version, etc Sep 24 16:03:47 It'd be a mess Sep 24 16:04:59 thank you.. thank you all. Sep 24 16:10:51 simon.. I see the is it the AppTheme which creates this layout though? Sep 24 16:11:37 nevermind.. searching for "android theme" wasn't working.. just needed to search for apptheme Sep 24 16:25:21 This is offtopic and doesn't pertain to anything Android development related however I just wanted to ask anyone in here if there is a good place to create web based forums? Sep 24 16:35:01 Poesghost: google groups? Sep 24 16:35:20 google has a service like that? Sep 24 16:35:26 I'll look into that!!!! Sep 24 16:35:28 yes Sep 24 16:35:51 I'm researching several others and I didn't realize that picking the right one can be this hard. Sep 24 16:38:31 Hi, maybe dumb question Sep 24 16:38:58 but why it's not possible to compile J2SE codes for dalvik, it's fully written in java Sep 24 16:39:14 Except Swing. Sep 24 16:40:24 Night-hacks, the "java" of android is only a subset of "java".. the UI components are not part of that Sep 24 16:41:03 Quick question: how can I get continuous output from a file via adb shell Sep 24 16:41:14 there is a log that is constantly being written to, and I want to mirror it on my console Sep 24 16:41:15 Night-hacks, I myself am not terribly interested in it, but I believe there are numeous projects that attempt to transalte swing to android Sep 24 16:42:26 gutano: I just want to know what's the real difference which makes android compiler unable to compile Oracle Java. Sep 24 16:42:40 Night-hacks: what? Sep 24 16:42:55 For some reason, when I pass List of an ArrayList to an AsyncTask, it will not let me use the get method. Any ideas?? Sep 24 16:43:02 Night-hacks: android is compiled using Oracle's JDK... Sep 24 16:43:33 gutano: Oracle JDK ?! Sep 24 16:43:40 gutano: or oracle compiler ? Sep 24 16:43:40 .get method of the list that is Sep 24 16:43:41 Night-hacks "android" can compile "oracle java", but not all of the core java library is included in the android core library Sep 24 16:43:44 wrong person Sep 24 16:43:48 sorry Sep 24 16:43:49 I've given you my answer Sep 24 16:43:59 gutano: ;) Sep 24 16:44:34 Night-hacks: yes, it takes the .java files and throws them through bog-standard javac, and then runs the class files through dx to make dalvikvm bytecode Sep 24 16:45:09 So, Android's Java is exactly like Oracle Java (The lang itself) Sep 24 16:45:15 yes Sep 24 16:45:27 let me rephrase my question: "adb shell tail" isn't valid, is there anything else that will give me the same functionality? Sep 24 16:45:35 i.e. keep the file handle open and show me appended niformation Sep 24 16:45:37 information* Sep 24 16:45:41 epsilonorion: because doInBackground gets an array of List Sep 24 16:46:00 epsilonorion: do params[0].get(..) or whatever your parameter is named Sep 24 16:46:04 InanTop: you can install busybox... you can also install "better terminal emulator pro" and kluge it into your path to get tail over adb Sep 24 16:46:13 The "dx" is the part which can't translate the full JDK to Dalvik right ? Sep 24 16:46:17 dragorn: is installing busybox fairly painless? Sep 24 16:46:45 evancharlton: I wondered if it had something to do with the template. Thanks, works perfectly Sep 24 16:46:52 InanTop: Probably? I usually do it into xbin as part of rooting but you should be able to get it installed in something like /data/local/tmp/ (needs to be a *nix filesystem not the sdcard so you can set +x on things) Sep 24 16:47:10 dragorn: I'll chase that lead, thanks Sep 24 16:47:20 Night-hacks: I still have no idea what you're asking. Android doesn't have e.g. swing, but valid java will be compiled Sep 24 16:47:23 they just 'rewrote' (i think) most of the core library for android, b/c of licensing. so if you reference a class not included, for instance something in java.util...., you will get an error. i think that's the case, shrug Sep 24 16:47:27 hi all Sep 24 16:47:47 InanTop: your quickest route may be to just google for one of the step-by-step rooting guides, and ignore the root part - grab busybox out of the root instructions, put it in /data/local/tmp, and run the install to /data/local/tmp ... busybox install just makes symlinks for all the commands Sep 24 16:47:52 evancharlton: what you mean by valid java ? Sep 24 16:48:01 Night-hacks: syntax Sep 24 16:48:09 InanTop: it wont be in your path, so you'll have to do adb /data/local/tmp/tail ... It's a bit janky, but it's probably not too much pain Sep 24 16:48:20 Night-hacks syntactically correct java is the same in android as sun jdk Sep 24 16:48:22 evancharlton: Swing is fully in java Sep 24 16:48:25 dragorn: I'm running on an emulator, is that relevant information? Sep 24 16:48:26 InanTop: definitely should be no need to actually root to get basic userspace functionality like that Sep 24 16:48:57 Night-hacks swing is a library, not the language Sep 24 16:48:59 InanTop: should be doable either way - if you dont have /data/local/tmp find some other directory you can write to which you can chmod in (ie not vfat). Maybe /tmp; i forget how the emulator is set up Sep 24 16:49:05 Night-hacks: what speakingcode-wor said Sep 24 16:49:16 dragorn: thanks a lot, that should be more than enough to get me started Sep 24 16:50:14 need to create rounded rect shape with gradient fill and colored stroke Sep 24 16:50:16 all from java Sep 24 16:50:33 Got it, So Java Lang Spec is fully supported by android. Sep 24 16:51:04 Night-hacks: yeah, in fact wasn't that the topic of the Oracle/Google lawsuit? Sep 24 16:51:17 I think there are stipulations to even that statement Sep 24 16:51:43 google could tell you =D Sep 24 16:51:44 i think i need ShapeDrawable so I can use getPaint()? Sep 24 16:51:49 (the search, not the guys) Sep 24 16:52:09 InanTop: yes, Oracle said they've fragmented java.. Sep 24 16:52:15 InanTop yup i think so. oracle claimed they have rights to the language API Sep 24 16:53:09 hey cool, people are talking about the oracle lawsuit! http://d2tq98mqfjyz2l.cloudfront.net/image_cache/1308420951682448.gif Sep 24 16:53:12 :) Sep 24 16:53:34 haha Sep 24 16:53:40 nice Sep 24 16:53:41 what is that from Sep 24 16:54:18 * evancharlton shrugs Sep 24 16:54:20 the internet? Sep 24 16:54:47 Thanks for help Sep 24 16:54:57 basically, should i use ShapeDrawable and fill it with a gradient? Sep 24 16:54:58 Or use GradientDrawable and try to round the corners and add stroke? Sep 24 17:03:48 If I have a "public static class myActivity extends Activity" inside "public class Hello", how would I refer to that in the AndroidManifest? android:name=".Hello.myActivity"? Sep 24 17:04:50 .Hello$myActivity Sep 24 17:05:28 evancharlton: Many thanks Sep 24 17:05:42 xarxer: Please don't have inner classes extend Activity, however. Sep 24 17:05:50 * gutano is curious if there are any object/class lifecycle issues with that Sep 24 17:05:56 doubtful Sep 24 17:06:02 gutano: it's static so no Sep 24 17:06:03 it's just really grody lexically Sep 24 17:06:23 the only possible reason I'd see you wanting to do that is private static outer class variables Sep 24 17:06:29 but I mean really just make it package private or something yuck Sep 24 17:07:29 lov: Yeah I'll clean it up later on, just following a tutorial at the moment Sep 24 17:10:40 evancharlton, interesting.. and lov, tkx for anwering the q I wasn't clever enough to ask (why would you do this) Sep 24 17:19:49 evancharlton: From what you were helping me with earlier, I am passing the List to the asyncTask and it is warning me that "Type safety: A generic array of List is created for a varags parameter". It also asks for me to suppressWarning of 'unchecked' Sep 24 17:22:30 epsilonorion, you should use Arrays.asList(...) and pass that Sep 24 17:23:30 you're trying to pass a list of arrays. generics can't contain array types Sep 24 17:24:30 the SparseIntArray worked yesterday for doing a "hashmap" of int int Sep 24 17:24:48 but now I want the usual Key/Value pair inside a HashMap, isn't this the way to do it? Hashmap myMap = new Hashmap (); Sep 24 17:25:12 no Sep 24 17:25:14 you have to use Integer Sep 24 17:25:23 which will cause boxing and therefore GCs Sep 24 17:25:26 mrenouf|work: I understand what you are saying, however, I am not familiar enough with Arrays to see how do do this. I have List list = ArrayList. I would I do this instead and pass it Sep 24 17:25:29 you can use a SparseArray instead Sep 24 17:25:32 but I am not giving an Integer object, I just want to give 1,2,3,etc.. Sep 24 17:25:41 ah, SparseArray, not SparseIntArray Sep 24 17:25:42 Sicp: with HashMap you have to Sep 24 17:25:53 Sicp: Integer.valueOf(int) will give you a big-I Integer from an int Sep 24 17:26:03 but yeah, as romainguy said, use SparseArray Sep 24 17:26:17 that's..true, sorry, totally forgot about that function. But it does seem like a hassle to do that since I want over 15 colors to be mapped Sep 24 17:26:25 it's a text colorizer, does every character Sep 24 17:26:53 If I have a SensorEventListener as a private variable inside my class as such: private SensorEventListener listener = new SensorEventListener() { /* Methods */ }, I cannot access the class' private variables, right? Sep 24 17:28:03 I also get "Dimensions expected after this token" when doing "SparseArray myColors = new SparseArray ();" Sep 24 17:28:10 same issue as when doing that with a HashMap Sep 24 17:28:24 It's SparseArray Sep 24 17:28:42 sorry didn't look it up Sep 24 17:35:17 Activity A updates GPS location every X mins. If user clicks button data is displayed on activity B. What is best way of refreshing B when data from A updates? Intent Filter? Sep 24 17:41:00 Any suggestions? Sep 24 17:42:23 ahm Sep 24 17:42:34 consider using a service Sep 24 17:42:47 yeah you can use broadcast intents Sep 24 17:43:07 but you might want to just have activity B poll some variable to see if there's new data whenever onResume is called Sep 24 17:43:14 considering that you can't run A and B simultaneously Sep 24 17:43:31 I'd really recommend that your GPS update stuff happens in a service though. Sep 24 17:44:11 I have it running in a thread right now, not recommends? Sep 24 17:45:02 Surely you're stopping your threads when the activity is paused Sep 24 17:45:05 Well, using a handler I mean. Sep 24 17:45:57 ...I did not... Sep 24 17:46:05 yeah. Sep 24 17:46:10 You should make sure to clean up your threads. Sep 24 17:46:27 Ok Sep 24 17:47:34 handler.removeCallbacksAndMessages(null); sufficient for that? Sep 24 17:48:40 Plus a line that disable GPS listener Sep 24 17:50:05 uh Sep 24 17:50:08 probably not? Sep 24 17:50:15 you need to cancel your listener thread, whatever it is Sep 24 17:50:20 or at least set a "finished" condition Sep 24 17:50:33 you want/need to unregister location update callbacks Sep 24 17:51:51 Will the sensor delay difference between minimum and maximum make a big difference in battery time when using proximity- and acceleration sensors? Sep 24 17:51:56 Ok, I did setup a mechanism for unregistering location in "onPause" plus te removecallbacks... Sep 24 17:54:09 So, if I want it to continue updating location in background I should use service. Sep 24 17:57:04 you really ought to use a service for your location listener anyway. Sep 24 17:57:19 basically, if the information is going to persist past one activity, use a service or a singleton or something Sep 24 17:59:27 Ok. Right now I have the data I se between activities in static variables. Sep 24 18:00:17 not sure if this is where I should b, but trying to use google now on a 4.0 phone and I'm receiving a network error. Sep 24 18:00:44 sorry to interrupt Sep 24 18:01:33 Primarily a developer's chat I believe. Try #android? Sep 24 18:02:16 k thx Sep 24 18:04:48 Lots of people in here, but relay quiet? Are there robots in here or something? Sep 24 18:13:06 Is there a way to make a child activity full screen if it's parent activity isn't? Sep 24 18:13:42 ...witthout giving absolute dimensions? Sep 24 18:14:51 I don't believe there is any such relationship (launching activity does not influence launched activity dimensions) Sep 24 18:15:14 * gutano waits for the guru's to dispell the statement Sep 24 18:15:33 "child activity" <- #1 sign of doing it wrong Sep 24 18:16:15 Fill_parent and match_parent seem to restrict children activity layouts to that of their parent. Sep 24 18:16:34 I think you have your terminology wrong... activities don't have parents Sep 24 18:16:54 they exist in a position within the backstack Sep 24 18:17:15 You can put activities in activities.. But you shouldn't Sep 24 18:17:25 That was for before we got fragments Sep 24 18:18:28 I have read little on fragments perhaps I should red some more, tough I thought they were geared more towards tablets Sep 24 18:19:26 it sounds like Activities are what you want, but I don't think you want to use them in a "parent/child" relationship Sep 24 18:20:11 anyone here with Android TV app experience Sep 24 18:20:48 can one test it on normal android emulator or there is some special emulator for the app Sep 24 18:21:23 Does it just use internet data? Sep 24 18:22:50 Thank you for your help folks. Sep 24 18:38:14 ...the Droid X creates a ScrollView in a layout file that does not contain one... Sep 24 18:38:17 great job Motorola. Sep 24 18:40:44 What'd they mess up now? Sep 24 18:41:01 i have no idea, but i have a relativelayout that contains an imageview (and some other stuff) Sep 24 18:41:08 and it gets turned into a scrollable container on the Droid X Sep 24 18:41:45 i _think_ it's because the image scaleType creates content outside the window Sep 24 18:41:47 but have no real idea Sep 24 18:42:09 actually, hold Sep 24 18:42:13 well Sep 24 18:42:14 hm Sep 24 18:48:33 alright, im no java expert, but i learn as i go :P (dont worry about it:P) i have some questions. can an application control android's mouse pointer? specifically, an input method. and can it be forced to show everywhere? home screen, places without a text box, etc. Sep 24 18:48:43 frankdrey-pc: uh Sep 24 18:48:46 there's no mouse pointer? Sep 24 18:49:04 there is... Sep 24 18:49:10 I mean yeah technically there is but I've never seen a device that actually uses is Sep 24 18:49:13 *it Sep 24 18:49:19 for bluetooth mice, and those trackpad kb docks Sep 24 18:49:21 transformer Sep 24 18:49:24 uses it :P Sep 24 18:49:32 but my idea is an on screen trackpad :P Sep 24 18:49:32 I would assume that it's all just controlled by the firmware Sep 24 18:49:45 hmm Sep 24 18:49:57 I'm not sure that there's anything you can do to force the pointer to appear. Sep 24 18:50:13 You can force the on-screen keyboard to come up on devices where there's no hardware keyboard Sep 24 18:50:25 (or where the device isn't in a state where the keyboard is exposed) Sep 24 18:50:43 I'm not really sure what you mean by on-screen trackpad Sep 24 18:50:57 You could probably create a transparent window overlay or something Sep 24 18:50:58 bottom third of the screen controls the mouse, like a trackpad Sep 24 18:50:58 * lov shrugs Sep 24 18:51:02 yeah Sep 24 18:51:15 use WindowManager to display an invisible window that captures input events Sep 24 18:52:31 alright :P Sep 24 18:52:41 * frankdrey-pc puts on his long lists of projects Sep 24 18:52:52 you might see the finished product in a year or so xD Sep 24 19:02:49 work has me ordering a Nikon Coolpix S800c... I'm wondering if ADB drivers even exist for this thing yet Sep 24 19:07:49 Nikon Coolpix S800c also is only Android 2.3.3, lame Sep 24 19:08:03 it's a goddamned camera Sep 24 19:08:05 what do you want? Sep 24 19:09:02 lov: Some details on developing for it, really. Sep 24 19:09:40 what exactly do you plan on developing? Sep 24 19:09:53 I know it's fashionable to not give a shit when taxpayer dollars are paying for it (which in this case they are) but I figured I may as well devote some diligence. Sep 24 19:10:17 I didn't know that there's any public funding for it (or why?!) but I really don't care about it because it's a camera. Sep 24 19:10:32 install youtube app, upload your video from camera to youtube, etc. Sep 24 19:11:05 lov: Funding for a phase 1 SBIR will be covering the camera and some development on it; I didn't mean the camera itself was developed under any public funding. Sep 24 19:16:37 what ever happened to google's actionbar library? its way past "very soon" Sep 24 19:16:54 well ABS exists so.... Sep 24 19:17:21 google io app was written with ABS Sep 24 19:17:26 so i don't expect a lib to come out Sep 24 19:17:59 howdy hackkitten and tigerlily Sep 24 19:18:05 hackkitten: hiya Sep 24 19:18:08 It's coming, eventually Sep 24 19:18:19 hi Hodapp, p_l :) Sep 24 19:18:27 actionbar is overrated Sep 24 19:18:35 hi hackkitten :) Sep 24 19:19:10 But yeah, abs.. Why wait for subset of an api when you can have it all Sep 24 19:19:31 * Hodapp pets hackkitten Sep 24 19:21:05 SimonVT: were they planning on just doing a subset ? Sep 24 19:21:19 Well, they said no actionmodes Sep 24 19:21:28 I'm guessing that wont be the only thing missing Sep 24 19:21:34 interesting Sep 24 19:22:00 canadiancow: life is good, eh? http://www.reuters.com/article/2012/09/23/us-usa-cattle-candy-idUSBRE88M05N20120923 Sep 24 19:31:45 I am using sherlock action bar and upon app startup I am getting the error java.lang.NoClassDefFoundError: com.actionbarsherlock.R$styleable http://pastebin.com/fSYwjzKk Sep 24 19:32:02 my program works on a newer phone and emulator (>4.1) but on like 2.3.3 it fails. Sep 24 19:33:04 any ideas? Sep 24 19:34:38 I need some help, i'm trying to pre-load an application. It's currently living in /data/app and i'm trying to move it to /system/app…I've tried doing a "adb remount" and the partition shows as rw. Though, all the files in /data/app are owned by system:system and all the files in /data/app are owned by root:root. Not sure how to get my apk into the /system/app… can anyone help a newb out? Sep 24 19:35:13 MIG- : http://stackoverflow.com/questions/11443262/actionbarsherlock-java-lang-noclassdeffounderror-com-actionbarsherlock-rstyle Sep 24 19:35:15 sorry, all the files in /system/app are owned by root:root Sep 24 19:36:15 mobilejustin: I am having that same problem, however, the two solutions provided did not work for me. Sep 24 19:37:13 MIG-: Hmmm. Not sure right off then. Sep 24 19:37:27 th3sp00n: go to #android-root Sep 24 19:42:29 ok Sep 24 19:42:29 thanks Sep 24 19:44:54 hello if i write an openGL app using NDK, and it works on say a motorola droid 1, 2.3 Sep 24 19:44:54 how likely is it there wil be many other devices where for some reason it doesn't work ? Sep 24 19:47:19 technically it should work just fine on all compatible devices Sep 24 19:47:30 realisticly you might end up with a device or two with a bogus gl driver or something Sep 24 19:49:47 MIG-: your R file isn't being generated Sep 24 19:52:56 k0nichiwa: a fellow droid-1 owner :) Sep 24 19:53:07 droid-1 & froyo ftw ! Sep 24 19:56:15 Hi all, does anyone else have an issue with app stats in the dev console? None of my apps has updated stats since the 22nd of Sept Sep 24 19:57:01 Hey all Sep 24 19:57:20 I'm trying to modify the android settings app in jb Sep 24 19:57:40 any idea how to add an option to the main settings menu? Sep 24 20:00:21 benjamingwynn: open the layout, add it Sep 24 20:00:43 evancharlton, do you know what layout it is in? Sep 24 20:01:00 evancharlton, I'm talking about the main menu, with wifi, data usage, etc. Sep 24 20:02:26 benjamingwynn: no, but look for where they inflate the preferences from XML Sep 24 20:02:59 evancharlton, hm, I have little to no idea on what that means :P Sep 24 20:03:41 evancharlton, I basically want to start a certain activity from inside settings Sep 24 20:04:30 whats froyo? Sep 24 20:04:41 oh nevermind Sep 24 20:05:51 Ah okay Sep 24 20:05:57 It seems to be in a header Sep 24 20:06:20 Yay I have it :) Sep 24 20:15:18 hm, thats weird. just looked at MS project Austin; it appears to be heavily skeuomorphic. but Windows 8 metro is definitely not that way. seems like that other article i read was right, MS does not have any top-level person responsible for consistent design, like a VP of design. Ballmer is such an idiot, they survived so far despite him, not because of him Sep 24 20:16:10 ballmer is so smart Sep 24 20:16:38 g00s: actually, it might just be that they were testing different approaches Sep 24 20:17:04 p_l: maybe they should test approaches not involving skeoumorphism :) Sep 24 20:17:07 after all, someone did compare Apple's skeumorphism fetish to leading towards a certain well-hated MS project... Sep 24 20:17:27 g00s: they did, quite a lot, iirc Sep 24 20:17:45 * sophistry my favorite ballmer video: Sep 24 20:17:46 http://www.youtube.com/watch?v=wvsboPUjrGc Sep 24 20:18:02 its also interesting to note there is a schism within apple about the use of skeuomorphs, i guess johnny ives is against it Sep 24 20:18:17 although jobs was for it Sep 24 20:19:39 everyone in this channel is so smart Sep 24 20:19:46 do you guys all make six figures? Sep 24 20:19:56 i'm homeless actually Sep 24 20:20:08 im sorry to hear, are you out of work? Sep 24 20:20:19 sophistry: I barely missed getting a job that offered six figures as base (well, six figures in USD) Sep 24 20:20:32 trying again in March for the same position, though Sep 24 20:21:26 What is the MediaStore URI? Sep 24 20:21:32 (job at [8~Google, actually) Sep 24 20:22:20 ActionBar behavior: setting the homeAsUpIndicator to an image that has transparent left padding in turn pads the logo when the homeAsUpIndicator is _not_ displayed Sep 24 20:22:25 kind of weird? Sep 24 20:23:59 all the best p_l! Sep 24 20:24:08 What is MEDIASTORE URI? Sep 24 20:24:09 do you have a graduate degree? Sep 24 20:24:47 whats [8~ ? Sep 24 20:26:22 sophistry: [8~ is effect of terminal desyncing a bit, so the key sequence got mangled and sent to IRC client instead of being interpreted by terminal Sep 24 20:26:31 danixn: have you checked d.android.com Sep 24 20:26:31 ? Sep 24 20:29:04 p_l: yes i am just starting learning about content providers, i know that with the contacts provider the URI is stored in Contacts.People.CONTENT_URI, but i cannot find something similar for the MediaStore Sep 24 20:29:51 danixn: I believe media store uses media:// as general intent URI, and uses helper methods returning specific content:// uris Sep 24 20:30:15 p_l what?! Sep 24 20:31:00 p_l: thanks but i still don't get it, how would i query the table for all the songs name available on the phone? Sep 24 20:31:20 sophistry: I use IRC from text mode client (Irssi) running under Screen, to which I connect over SSH, which itself runs in rxvt-unicode. It gives plenty of places for keystrokes to get mishandled :) Sep 24 20:32:03 Rockmaninoff: No, that's expected behavior. The space for the up indicator is always allocated Sep 24 20:32:24 danixn: http://developer.android.com/reference/android/provider/MediaStore.Audio.Media.html <--- this has the content:// URIs for that Sep 24 20:32:24 SimonVT: but the space is _less_ than the up indicator's width Sep 24 20:32:35 my up indicator was 14px, i made it 20px with 6px of transparent padding on the left Sep 24 20:32:44 that works to accomplish the effect of having padding on the up indicator Sep 24 20:32:51 p_l why do you use that Sep 24 20:32:52 but then adds 6px of padding to views that don't have the up indicator Sep 24 20:32:58 shouldn't it add 20px? Sep 24 20:33:01 or 0px? Sep 24 20:33:53 Try toggling visibility of the up indicator, the icon/title shouldn't move Sep 24 20:33:55 sophistry: because the irc client runs on another machine, which runs 24/7, and on better network connection (I used to use a server with 1.1Gbit/s internet link... those were the times :D) Sep 24 20:34:12 Does android use a weird webpage caching thing when you do a HttpURLConnection? Sep 24 20:34:30 Because I changed the file on the server and it connects fine but it still gets the contents from it like they were before I changed it. Sep 24 20:34:32 It's a text file. Sep 24 20:34:55 RazielZ: does the server support ETags? Sep 24 20:35:03 ...no idea Sep 24 20:35:08 What's that? <.< Sep 24 20:35:21 p_l: great thanks, i see that they have 2 different URI for the internal storage and external. Should i make 2 different queries or is it a better way to do it? Sep 24 20:35:30 SimonVT: yeah i have setDisplayHomeAsUp false... Sep 24 20:35:31 hmph Sep 24 20:35:45 RazielZ: it's a "signature" of sorts to check if the data you have in cache is the same as on the server (if the ETags match, it's the same file) Sep 24 20:35:54 Hmm Sep 24 20:35:57 How do I find out? Sep 24 20:36:05 RazielZ: you can also try adding ? to the file to force download Sep 24 20:36:11 And is there a command for connection do just consider it new or something Sep 24 20:36:14 further question: with Dialogs, Gingerbread allows me to have no margins on the left and right, but it seems with ICS/JB there is an inherent left/right margin Sep 24 20:36:15 uuuh Sep 24 20:36:25 Even if the up indicator isn't visible, the icon/title is still moved to make space for it in case it is made visible Sep 24 20:36:27 (of course always a different number) Sep 24 20:36:28 any ideas to have a Dialog with width fill Sep 24 20:36:46 SimonVT: yeah that makes sense, what doesn't make sense is that the space allocated isn't the size of my homeAsUp drawalbe Sep 24 20:36:47 drawable* Sep 24 20:38:09 http://www.server.com/file.txt?2 Sep 24 20:38:12 Like that? <.> Sep 24 20:38:16 * RazielZ is new at this Sep 24 20:38:40 So it doesn't fit in the space when you make it visible? Or does the icon move? Sep 24 20:39:20 SimonVT: let me add something to check that actually Sep 24 20:39:50 fwiw i'm using useLogo instead of useWhateverElse (icon?) Sep 24 20:39:55 i don't think that makes a difference Sep 24 20:40:50 SimonVT: Android is doing something under the covers with that transparent padding Sep 24 20:41:11 it looks like it's detecting the first non-transparent pixel Sep 24 20:41:15 (in the up indicator) Sep 24 20:41:30 What is the difference between the autority and the Content URI? Sep 24 20:41:54 danixn: I'd probably query twice, though I'm unsure as for which storage it considers "internal" Sep 24 20:42:06 danixn: authority is the first part of the URI Sep 24 20:42:25 Thing about the file is there's usually only small changes done to it Sep 24 20:42:32 Like, the one it wouldn't read was just adding two more characters Sep 24 20:42:43 Which are really important since the program parses it to know what to update Sep 24 20:42:58 p_l: so it is content://authority/path right? whit authority being the name of the provider and path the specific table you want to query? Sep 24 20:43:02 http://google.com/something.html?blargh <--- authority: http; domain: google.com; path: /something.html; arguments: blargh="" Sep 24 20:43:23 I see Sep 24 20:43:34 content uris have "content" as their authority Sep 24 20:43:42 So if I want to make sure it always re-downloads it should I just add something off a rand() after ? Sep 24 20:45:48 How does one set the title of a DialogFragment? (custom, not AlertDialog) Sep 24 20:46:11 Anyone have an idea as to why this code isn't running in my Android emulator? http://pastebin.com/FXPJw6GH Sep 24 20:46:29 Also, I have another problem with it downloading images. It makes their quality crap. Like, really bad. Problem is, I didn't change anything in the image download code and the quality was fine like 3 days ago. Sep 24 20:47:46 what career do you guys believe employ ppl with on average the highest IQs? Sep 24 20:48:04 oh... getDialog().setTitle() ? Sep 24 20:48:32 sophistry, theoretical physics Sep 24 20:48:46 sophistry: suicides. There's a correlation between high intelligence and depression. Sep 24 20:48:52 is it possible to programmatically set homeAsUpIndicator? Sep 24 20:48:55 Which is why I pretend to have a lower IQ than I actually do! Sep 24 20:49:07 Rockmaninoff, yes. getActionBar().setHomeAsUpEnabled(); Sep 24 20:49:14 but in reality, you get intelligent people everywhere Sep 24 20:49:25 IQ isn't good measure, IMHO Sep 24 20:49:29 mrenouf|work: i meant the Drawable Sep 24 20:49:32 p_l, any idea on why the saved images are crappy? cPortrait.compress(Bitmap.CompressFormat.PNG, 100, out); < using that to save them Sep 24 20:49:37 programmatically set the homeAsUpIndicator Drawable Sep 24 20:49:40 Along with loadImageFromNetwork Sep 24 20:50:31 have you declared b1..b4 ? dj_corncob Sep 24 20:50:31 RazielZ: nope. What is the input source? Sep 24 20:50:51 String portraitLink = "http://www.heroesofnewerth.com/images/heroes/" Sep 24 20:50:51 + heroID + "/ability4_128.jpg"; Sep 24 20:51:20 Well, that's one of them Sep 24 20:51:23 There's several like that Sep 24 20:51:44 hmm... I'd suspect shitty input file, then (or something got borked in decoding) Sep 24 21:04:32 Is there a good static analysis tool that will find the minimal set of permissions my app needs to function correctly? Sep 24 21:06:58 Anyway, stuff's workin now, except for the stuff I didn't actually make work yet. So thanks p_l :D Sep 24 21:07:26 which protocol does ddms use? Sep 24 21:09:05 JDWP for debugger, adb in general Sep 24 21:09:34 is there a native android vector image format we can use instead of multiple bitmap images? Sep 24 21:09:47 http://code.google.com/p/svg-android/wiki/Tutorial Sep 24 21:15:35 p_l, i am invoking dalvikvm from command line to run an app ... its memory allocation appears as disabled in DDMS ... do i need special arguments to enable it? Sep 24 21:18:55 I don't know, check its help message? Sep 24 21:20:22 haven't used DVM directly Sep 24 21:20:32 at that level, I only used statically-compiled binaries Sep 24 21:30:19 umm... whats the underlying difference when "debuggable=true" is set in manifest file? Sep 24 21:32:28 "release" APKs can't be connected to with debugger on non-rooted device, iirc Sep 24 21:43:26 the documentation says "DDMS connects via a custom wire protocol" which protocl is this? is it documented? Sep 24 21:43:35 can somebody give me a brief explanation as to what "Struts 2" is? Sep 24 21:43:38 in android source Sep 24 21:43:45 panegyric: probably a java framework Sep 24 21:43:49 panegyric: er, that's a java web framework Sep 24 21:44:04 what exactly is a framework Sep 24 21:44:09 im gettin scattered answers Sep 24 21:44:14 sorry im a novice student Sep 24 21:44:20 I am building an mp3 player for my galaxy s3 but i am only able to get the internal memory when i use get the external directory? is there a way to get the external directory without having to manually input the path? Sep 24 21:44:31 panegyric: http://lmgtfy.com/?q=define%3Aframework Sep 24 21:44:51 danixn: Environment.getExternalStorageDirectory() or whatever Sep 24 21:44:55 HAHHA Sep 24 21:45:18 omg i loved that Sep 24 21:45:21 a little too much Sep 24 21:45:28 evencharlton: i used that, but it only gives me the internal memory on my galaxy s3 Sep 24 21:46:21 this definitoin of framework makes no sense to me though Sep 24 21:46:24 i saw it Sep 24 21:46:32 danixn: the external storage is a bit... undefined Sep 24 21:46:59 how is framework different froma library? Sep 24 21:47:16 panegyric: inversion of control; it calls you, rather than you calling it Sep 24 21:47:24 danixn: on older devices, you could count on sd card showing up as external_sd folder or similar Sep 24 21:47:37 g00s: that's also not the definition Sep 24 21:47:43 panegyric: also, it's not something you'd use on Android. Sep 24 21:47:46 why would u want it calling you? Sep 24 21:47:56 ryanm you can use it on a webserver correct? Sep 24 21:47:56 p_l: its good enough ;) Sep 24 21:47:59 for an android app Sep 24 21:48:10 but what about the new phones? i read that the new samsungs have a sd-card partion and ext-sd-card Sep 24 21:48:23 i guess that i will have to put the path manually Sep 24 21:48:30 panegyric: a framework, is just that, a frame you'd use as "skeleton". In programming it can be implemented in form of library, but the key part is that it provides you a "framework", that is, a skeleton to do various things Sep 24 21:49:08 panegyric: yes, you could have a WebView pointed at a Struts application. But then it would be a webapp that you're accessing from an Android app, rather than just being an Android app Sep 24 21:49:08 danixn: in CM10 on SGS2 i had /storage/sdcard0 and /storage/sdcard1 Sep 24 21:49:32 well, you could also have a Struts-built webservice... dunno, haven't used Struts Sep 24 21:49:45 panegyric: http://en.wikipedia.org/wiki/Software_framework Sep 24 21:49:47 so in a "struts 2" framework, because of the inversion of control, i will be able to prompt android clients as soon as a change on the mysql database (on a webserver) occurs Sep 24 21:49:55 p_l: true. Sep 24 21:50:06 (I haven't used it either, I'm just reading wikipedia) Sep 24 21:50:22 p_l: what you get with Environment.getExternalStorageDirectory() ? Sep 24 21:50:52 danixn: no device to test at the moment Sep 24 21:50:58 the SGS2 wasn't mine Sep 24 21:50:59 I need a way to ignore this ping timeout spam >_< Sep 24 21:51:05 ah k thanks Sep 24 21:51:29 ryanm: if you use irssi, you can ignore specific kinds of messages Sep 24 21:51:33 probably similar in other clients Sep 24 21:52:02 yeah, I do use Irssi, but I'm picky and want to see some (like, say, for anyone who's talked in the last 5 minutes) Sep 24 21:52:11 panegyric: If you're looking for a way to notify Android devices, look at Google Cloud Messsaging Sep 24 21:52:20 ryanm: there were some scripts for that, I believe Sep 24 21:52:40 but I haven't used any, I just add an '/ignore -except nick' for the people I want to know about Sep 24 21:53:09 I'll have to look into that Sep 24 21:53:36 found this answer http://stackoverflow.com/questions/5694933/find-an-external-sd-card-location Sep 24 21:53:56 i guess that the external storage is anything the manufacture decided to be, in the galaxy s3 case is the flash memory Sep 24 21:54:16 I...failed at trying to create the search query for Googling, so I am going to ask here Sep 24 21:54:23 ryanm the google cloud messaging is so hard to understand for me Sep 24 21:54:33 is there anyway to access (listen in on) how long the phone has been ringing for? Sep 24 21:54:52 I don't think so Sep 24 21:54:54 say I have this RingListener service that's always running by virtue of having my app installed.. Sep 24 21:55:38 and a call comes in, can this service bring me back the time that the phone kept ringing for..? Sep 24 21:57:02 what is /proc/mount? Sep 24 21:57:03 sure Sep 24 21:57:13 have you tried that evan? Sep 24 21:57:16 no Sep 24 21:57:35 you're assuming that since I have access to call logs, I would have access to that Sep 24 21:57:44 same assumption here (pre-research of course) Sep 24 21:57:45 store the timestamp when TelephonyManager#getCellState() reports RINGING and take when it goes OFF_HOOK Sep 24 21:57:46 danixn: /proc/mount is a file which contains all mounts in current namespace Sep 24 21:57:48 can somebody hold my hand through GCM? Sep 24 21:57:52 well, shows them Sep 24 21:58:05 I don't know if there's a better way, but that's one way Sep 24 21:58:08 sounds logical enough evancharlton Sep 24 21:59:05 Is anyone familiar with the AdMob android sdk?  I am getting a NullPointerException on:  layout.addView(adView); Sep 24 22:00:01 cbarrett1: sounds like layout is null Sep 24 22:00:42 Howdy! Sep 24 22:00:53 evancharlton: hmmm I'll check for that. Here's the whole stacktrace: http://pastie.org/4793806 Sep 24 22:01:56 i'm not sure what that actually points to, but I'll check to see if layout is null or not Sep 24 22:02:16 My app is installing a shortcut to the homescreen. However, if there is already one there, the result is the home screen having two. I've found no good solution for removing a shortcut from my Google searching. What's a good way? Or what's a site that explains this? Sep 24 22:03:39 so when i have "debuggable=True" in my android app's manifest, does it launch in a different manner than otherwise? Sep 24 22:04:20 yeah it does reenignEesreveR Sep 24 22:04:47 i think (heh) when true, Log.d() statements spit out and maybe it's necessary for it to run with a debug key? not sure Sep 24 22:04:50 but there is a diff Sep 24 22:04:54 speakingcode, how can i find out the exact different parameters sent to dalvik in case it is in debuggable mode? Sep 24 22:05:03 ohkie Sep 24 22:05:43 im having this problem actually: launching a dalvikvm via commandline ... DDMS connects to it and won't let me track allocations, i'm trying to figure out how to do that Sep 24 22:06:03 all your getResources() belong to me Sep 24 22:09:44 Is it best to create a running thread for a splash screen or a second Activity? Sep 24 22:13:21 epsilonorion: boo on splash screens Sep 24 22:13:28 are you loading data? Sep 24 22:13:36 or just showing your company logo Sep 24 22:14:03 will be a company logo, however it is also to allow fragments and maps to load in the main view Sep 24 22:14:40 I normally just use a view to fill parent Sep 24 22:14:45 then hide it when stuff is ready Sep 24 22:15:01 do you do that using a thread?? Sep 24 22:15:48 http://www.droidnova.com/how-to-create-a-splash-screen,561.html is an example I was looking at Sep 24 22:15:54 how do you multi-thread UI stuff - when everything has to be on the UI thread? lol Sep 24 22:16:45 that was the method for creating a new activity Sep 24 22:16:48 cbarrett1 not *everything* has to be in the UI Sep 24 22:17:23 cbarrett1 you can do the 'background' work in another thread then run the actual 'drawing' on the ui thread, probably makes then more complicated than necessary tho Sep 24 22:17:49 bleh i can't type. probably makes things* more complicated than... Sep 24 22:18:41 hehe Sep 24 22:19:31 for instance i could instantiate a view object, populate it and set its fields etc in another thread, then attach it and draw it in in the ui thread Sep 24 22:19:39 ah Sep 24 22:20:01 i think. don't take my word for it, i'm not sure about anything today ;-) Sep 24 22:20:09 speakingcode: I ask just because I'm trying to work with the admob sdk and the first error I ran into was when I tried to create a new AdView outside of the UI thread Sep 24 22:20:18 speakingcode-wor: rather Sep 24 22:20:43 ah Sep 24 22:21:08 in java what does string.split("\\s") do? Sep 24 22:21:33 one way to find out...try it Sep 24 22:21:54 well Sep 24 22:22:00 \ is a special character Sep 24 22:22:03 it split white spaces right> Sep 24 22:22:03 ? Sep 24 22:22:05 \\ escapes \ Sep 24 22:22:28 ok but why i need to \\s instead of \s like \n Sep 24 22:22:32 so probably it looks for literal "\s" in the string and splits upon it Sep 24 22:24:16 so "this\sstring\shere" would yield {"this","string","here"} but i'm probably wrong Sep 24 22:24:40 I haven't tried this before, but can I have an app that is made up of just a broadcast receiver? Sep 24 22:24:52 Can anyone suggest a good restkit-equivalent technology? I've not found anything quite as mature for Android. Sep 24 22:24:52 I ..don't have any use for anything besides that, no activities no nothing.. Sep 24 22:28:24 snooplsm: How do you usually handle the splash. setContentView at the beginning, let things happen, then call another setContentView. Sep 24 22:31:10 no, i just put it in my main view Sep 24 22:31:14 or you can add it via code Sep 24 22:32:19 how would you store several times in permanent storage? Sep 24 22:34:51 times? like timestamp? you could just use a textfile with multiple lines for that... Sep 24 22:42:02 hey guise Sep 24 22:42:18 I have a little problem involving quaterions Sep 24 22:42:35 *watches channel clear* Sep 24 22:42:44 /kick AndruByrne Sep 24 22:42:50 no, no. I get the math, and lll Sep 24 22:43:32 but I'm only getting 3 values from event values Sep 24 22:43:43 why raymon? Sep 24 22:47:09 if I have a sensor of type ROTATION_VECTOR, I create a float that has 4 elements Sep 24 22:47:24 and then make that equal to event.values Sep 24 22:47:41 when I look at the variables in my debugger, the float has onyl 3 componenets Sep 24 22:48:08 I understand the 4th is optional Sep 24 22:48:22 ok, having issues. I am trying to create a splash screen, but it doesn't seem to work. My app takes a while to get its views setup (fragments, map, etc.) I want to put a splash screen up so this stuff can run in the background Sep 24 22:48:40 but how do I access the scalar component Sep 24 22:49:04 I dont know of the best way to do this. Doing the way I see with examples of activities, this seems to just be a splash screen and doesnt solve the black screen issue while things load Sep 24 22:49:24 epsilon.. you can see me? Sep 24 22:49:25 I tried putting the view on my main view and just making it visibilly gone, but that didn't work Sep 24 22:49:42 AndruByrne: yes, but I am sorry, I can't solve your issue Sep 24 22:49:48 no, is cool Sep 24 22:50:08 re you using a service to load your files? Sep 24 22:50:41 I am not loading files, but I would if I were. It seems to be taking a while to do the fragment transactions and grabbing the mapview, etc when first creating the view Sep 24 22:50:49 you can have your initial activity be that splash sceen, and run a service to do that manipulation Sep 24 22:51:20 You mean have a service do the fragment transactions and setup. Sep 24 22:51:39 the reason I asked was some jackass tried to kick me when I started talking about quaternions Sep 24 22:51:52 I saw that, not sure what that was about Sep 24 22:51:57 yeah Sep 24 22:52:14 happy it wasn't a mod =] Sep 24 22:52:55 but yes, I think that seperating the splash screen activity and the setup might be cleaner Sep 24 22:53:24 true that Sep 24 22:53:51 I have my view split up into different containers (layouts). Would you suggest simply making a new layout with just the imageview, set that on startup of mainactivity in onCreateView. Then start a service to setup a new content view with the fragment transactions?? Sep 24 22:54:46 epsilonorion http://www.lmgtfy.com/?q=fragment+transactions Sep 24 22:55:23 panegyric: I don't need help with fragments or transactions. I have that down Sep 24 22:55:46 panegyric: my issue is makign a splash screen to cover the view while transactions and mapsetup is being performed Sep 24 22:55:51 *making Sep 24 22:56:17 so no need for hte lmgtfy Sep 24 22:56:28 *the, urg Sep 24 22:58:27 I don't know (b/c I haven't needed to) if services can handle fragment transactions, though I'd be surprised otherwise Sep 24 22:59:05 but just speaking about general design philosophy, I try to keep my activities limited to the stuff the user will be playing with Sep 24 23:10:04 alright! no result! but at least it didn't crash! Sep 24 23:16:50 re-post: how do I get the optional 4th element from event.values coming from a sensor TYPE_ORIENTATION_VECTOR? Sep 24 23:31:51 can you call a Java Server Page from an Android application? Sep 24 23:32:43 panegyric: the same way you call any other HTTP destination? Sep 24 23:41:01 ha stupid me Sep 24 23:42:17 i want to have a sql database (on a web server) and each time an android client submits a message, i want it to post it into the database Sep 24 23:42:30 any idea what's scripting language would be ideal for me? Sep 24 23:43:36 yes, whichever one you already know Sep 24 23:43:41 i havent purchaased a web server Sep 24 23:43:48 which would be simplest Sep 24 23:43:57 or require the least code Sep 24 23:44:23 easiest and least code isn't going to happen. Sep 24 23:44:39 ? Sep 24 23:44:47 what do you mena Sep 24 23:45:53 i mean can this be done in PHP Sep 24 23:45:58 or should I stick to JSP Sep 24 23:46:01 yes, of course it can be done in PHP Sep 24 23:46:03 or in JSP Sep 24 23:46:04 or Python Sep 24 23:46:07 or Ruby Sep 24 23:46:14 or - lord help us - Perl Sep 24 23:46:16 accept diff request from different android clients right Sep 24 23:46:20 or probably Tcl or bash, if that's what you know Sep 24 23:46:26 whats wrong with perl Sep 24 23:47:24 what's the "lord help us" part about? Sep 24 23:47:30 Did I miss something? Sep 24 23:47:32 approximately everything, but that's irrelevant Sep 24 23:48:16 is JSP a scripting language Sep 24 23:48:17 point is, it doesn't matter... and it *certainly* doesn't matter to Android Sep 24 23:48:54 does anyone use JSPs for new projects these days ? Sep 24 23:48:54 and why exactly do you need a compatible web server to deploy & run JSPs? Sep 24 23:49:07 why, what's wrong with JSPs? Sep 24 23:49:18 I would like to use something that you guys recommend Sep 24 23:49:23 Because you guys are current Sep 24 23:49:38 seriously, we recommend whatever you know how to use... *it doesn't matter* Sep 24 23:49:58 g00s why dont pepople use JSPs? Sep 24 23:50:44 i need dynamically generated pages Sep 24 23:50:49 can i really use php for that Sep 24 23:51:11 no, unfortunately you can't use php - you have to use jsp Sep 24 23:51:18 is that what you need someone to tell you? Sep 24 23:51:58 because Android apps are written with the Java language, you need to use stuff written with the same language on your server Sep 24 23:52:11 if those were the alternatives given to me, my common sense would tingle itself out of a job Sep 24 23:52:24 also, you need to turn the server off for 30 minutes every wednesday to let it sleep, or it'll get bored and start giving wrong answers Sep 24 23:52:31 and paint it green - it'll work better Sep 24 23:52:44 yellow stripes = speed. Sep 24 23:52:44 ... or Red, for faster, but possible cranky solution Sep 24 23:52:51 Red is fastest Sep 24 23:52:57 bu least stable Sep 24 23:53:02 panegyric: do you know php? Sep 24 23:53:06 no Sep 24 23:53:09 never did any scripting Sep 24 23:53:12 (this is a good thing) Sep 24 23:53:24 patronizing me? Sep 24 23:53:29 nice.. Sep 24 23:53:32 no, seriously, stay away from php Sep 24 23:53:43 yeah Sep 24 23:53:43 yes, of course I'm patronising you Sep 24 23:53:45 you already know JSP and it can handle the job, why wouldn't you want to use it Sep 24 23:53:46 do you know jsp? Sep 24 23:53:53 no Sep 24 23:53:54 what *do* you know? Sep 24 23:54:01 ..im learning Sep 24 23:54:03 lol Sep 24 23:54:08 i think JSF kinda replaced JSP … history is rusty Sep 24 23:54:10 php isnt THAT bad Sep 24 23:54:14 what are you learning? Sep 24 23:54:16 Jug6ernaut: it really is Sep 24 23:54:20 Jug6ernaut: it isn't that good, either. Sep 24 23:54:25 true Sep 24 23:54:26 lol Sep 24 23:54:44 Jug6ernaut: I wouldn't give a newbie the job of keeping away from bad parts of PHP Sep 24 23:54:48 do you like being supercillious Sep 24 23:55:23 http://jeena.net/images/2012/php-the-good-parts.jpeg Sep 24 23:55:59 heh Sep 24 23:56:02 man you guys are really hurtful Sep 24 23:56:09 panegyric: no, but you sound like someone in need of CS101, not #android-dev Sep 24 23:56:09 im just starting Sep 24 23:56:18 sometimes people need direction Sep 24 23:56:27 panegyric: and at least I would freely admit that I'm bad at such cases Sep 24 23:56:40 bad at what cases? Sep 24 23:56:42 im bad Sep 24 23:56:44 im novice Sep 24 23:56:51 panegyric: you're just starting *what*? Sep 24 23:56:52 i didnt say i wasnt Sep 24 23:56:52 google is your friend Sep 24 23:57:05 just starting to learn these concepts Sep 24 23:57:08 if u have a question chances are 10k of your closest google friends have asked it also Sep 24 23:57:09 panegyric: you should be googling your questions, not asking them Sep 24 23:57:10 panegyric: if you do not care about getting hurt in the process (but getting good at programming probably will cause that), look up Structure and Interpretation of Computer Programs, aka SICP, aka 6.001 Sep 24 23:57:34 eventually for slightly nicer introduction, "How to Design Programs" Sep 24 23:57:50 then google every missing bit along the way to get the environment running etc. Sep 24 23:57:59 thanks p_l Sep 24 23:58:07 i really dont care about getting hurt btw Sep 24 23:58:26 later, I suggest getting a hold of "The Algorithm Design Manual", which is *great* book on algorithms, with real-world use cases Sep 24 23:58:29 just dont see why youd have a field day about me not knowing better about these things that are trivial to you Sep 24 23:59:06 panegyric: because on IRC, we can never know if you're just misguided, drunk, a honest newbie, a troll, or a bot with good database and markov chain Sep 24 23:59:12 panegyric: what p_l is recommending is a complete foundation in computer science... since you're apparently incapable of telling us what you already know - if anything - and what you're currently learning - if anything - he's correct, but it's starting from the very bottom Sep 24 23:59:22 So… I cannot for the life of me get progressBar.setProgress() to do anything. It's set at whatever the initial value is from XML, and that's it. I've read the bug reports, and I've tried doing setProgress(0) setProgress(realProgress) and nothing. It just ignores it. Has anyone else encountered this? This is Android 2.3. Sep 25 00:00:01 Bot Reporting Sep 25 00:00:57 nota bene - I had a case where for weeks we couldn't figure whether a certain nick was a markov chain or a drunk troll (eventually someone with really bad grasp on english) Sep 25 00:01:19 I know c++ java Sep 25 00:01:33 but have only done bare minimum, which includes assignments in school Sep 25 00:01:44 that does not qualify as "knowing" Sep 25 00:01:45 panegyric: I'd still recommend the books I gave you Sep 25 00:01:57 im an honest newbie btw Sep 25 00:02:04 i dont think i need it p_l Sep 25 00:02:05 they give good theoretical and practical grounding, which will help you immensely Sep 25 00:02:08 was looking at it right now Sep 25 00:02:21 panegyric: HtDP might be less useful, but SICP would be still good Sep 25 00:02:39 Algorithm Design Manual was a welcome change after algorithms course at uni Sep 25 00:02:42 * Jug6ernaut hates books Sep 25 00:02:57 i know basics of c++ Sep 25 00:03:11 int x = 3; Sep 25 00:03:14 woho Sep 25 00:03:17 aka the wizard book Sep 25 00:03:44 i know more than that Sep 25 00:03:50 i think i know ins and outs of sicp Sep 25 00:03:54 I will go cry now because of sheer inferiority Sep 25 00:03:57 Sicp: aka "you should pick up scheme after the second lecture, because third will be serious stuff" Sep 25 00:04:00 night Sep 25 00:04:28 im thinking i have a lot of ground to cover Sep 25 00:04:35 but my grades are actually pretty good Sep 25 00:04:40 i graduate in december Sep 25 00:04:51 but i guess more experience is the only thing that will help Sep 25 00:05:01 panegyric what are you asking exactly? Sep 25 00:05:14 who said i was asking something right now Sep 25 00:05:18 i was answering Sep 25 00:05:33 what is a markov chain Sep 25 00:05:38 p_l has been throwing information at you for some question you asked Sep 25 00:05:41 what did you ask Sep 25 00:05:47 http://www.lmgtfy.com/?q=markov+chain Sep 25 00:06:28 What is Google? Sep 25 00:06:45 panegyric: maybe some online courses http://code.google.com/edu/courses.html Sep 25 00:06:54 >_< Sep 25 00:07:10 standord has some awesome online free courses(for credit!) Sep 25 00:07:44 Jug6ernaut: he asked about direction... I really had trouble gauging his level due to how he phrased his earlier questions/statements, so I went from what I'd consider *good* base to make rest of the world easier to grok Sep 25 00:07:44 I have an NDK question, but it will have to wait until afte rmy visit with Michio Kaku san Sep 25 00:07:46 this conversation is less entertaining than big brother and only barely more educational Sep 25 00:07:54 really Jug6ernaut? Sep 25 00:07:57 thats pretty cool Sep 25 00:08:24 yea they have one in cryptology i wanna take Sep 25 00:08:32 whelp, seems no-one plays the rotation vector game, but I found the solution to my problem Sep 25 00:08:33 bc who doesnt wanna learn about cryptology? Sep 25 00:09:07 i know im not on your level but im actually really greatful i found this room Sep 25 00:09:16 i never use irc at all Sep 25 00:09:27 but you guys could be really helpful Sep 25 00:09:38 using getQuaternionFromVector(quat, rotvec) was the answer Sep 25 00:09:40 irc is awesome resource IF you know how to ask your questions ;) Sep 25 00:09:55 *you guys are Sep 25 00:09:58 helpful Sep 25 00:10:08 ....still seems wring as rotation_vector should be a quaternion Sep 25 00:10:09 this of course not based on your recent book recommendations Sep 25 00:10:30 honestly we've never done any scripting whatsoever Sep 25 00:10:34 in my curriculum Sep 25 00:10:36 panegyric: I had to shoot in the dark Sep 25 00:10:43 no required networking classes Sep 25 00:10:52 networking sucks Sep 25 00:10:54 And 'scripting' is very bad description of anything Sep 25 00:10:56 if u mean protocol level Sep 25 00:10:58 just some analysis and design Sep 25 00:11:21 but where are you supposed to learn the purpose of scripting etc Sep 25 00:11:55 protocol level yes Sep 25 00:12:05 i think im not sure what you mean by that Sep 25 00:12:12 if you've actually been taught computer science properly, you should be able to pick up pretty much any scripting language in a couple of hours Sep 25 00:12:27 i think i will Sep 25 00:12:28 purpose of scripting Sep 25 00:12:31 anyone here from NY? Sep 25 00:12:32 purpose of scripting.... Sep 25 00:12:37 does scripting have a purpose? Sep 25 00:12:41 * Jug6ernaut hates scripting Sep 25 00:12:47 what can scripting be used for Sep 25 00:12:56 why is scripting used Sep 25 00:13:01 Jug6ernaut: most actors aren't good enough at ad-libbing Sep 25 00:13:11 Leeds: LOL Sep 25 00:13:20 +1 Sep 25 00:13:25 you have to be a protean actor Sep 25 00:15:12 honestly Sep 25 00:15:15 why is scripting used Sep 25 00:15:38 I would guess that it has something to do with ease of use over compiled languages Sep 25 00:15:47 you can edit live code without uploading assemblies and stuff Sep 25 00:15:55 not ease of use, ease of change Sep 25 00:16:00 ^ that Sep 25 00:16:08 also... scripting is hard to define Sep 25 00:16:24 but usually, if it's a "small thing to automate other programs" it would fit Sep 25 00:16:38 p_l: not really Sep 25 00:16:49 Leeds: yes, really. Sep 25 00:17:16 though I guess being a computer polyglot makes me see it differently from "majority" Sep 25 00:17:16 "scripting" is famously hard to define. Sep 25 00:17:19 no... things like php/ruby/python for web work aren't that sort of scripting Sep 25 00:17:48 Leeds: and with exception of php, they aren't scripts. PHP ... I think is category by itself Sep 25 00:17:54 it's more about the relatively simple and unstructured language, interpreted (or run-time compiled, which amounts to the same thing) Sep 25 00:17:54 honestly, im not a stupid kid, i have an aptitude to learn but Jug6ernaut and mobilejustin youre just dicks Sep 25 00:18:00 i would say scripting languages but ctate would attach me Sep 25 00:18:50 Jug6ernaut: neither Python nor Ruby are scripting languages, IMHO. You can make scripts in them, but that doesn't mean they are scripting languages (though Ruby actually comes from scripting, as a saner replacement for Perl) Sep 25 00:18:51 * mobilejustin is just trying to help Sep 25 00:19:07 is anyone here from Ny? Sep 25 00:19:13 panegyric: Are you still confused on the purpose of 'scripting'? Sep 25 00:19:14 it's still a fully-featured language, which even managed to get a basic compiler in 1.9 Sep 25 00:19:22 python does get compiled does it? Sep 25 00:19:26 Hodapp no not confused Sep 25 00:19:28 i wasnt Sep 25 00:19:30 or "pre-compiled" Sep 25 00:19:43 Jug6ernaut: minimal compilation to bytecode, just like Ruby MRI 1.9 Sep 25 00:19:49 Jug6ernaut: Yes, compiled to bytecode which is then interpreted, in the case of CPython Sep 25 00:20:10 PyPy has an incremental compiler, though Sep 25 00:20:12 In the case of other Python implementations such as Jython, IronPython, or PyPy, I don't know. Sep 25 00:20:18 * Jug6ernaut is going to stop as he doesnt really have an arguement Sep 25 00:20:20 the point is that the compilation step is 'invisible' to the coder Sep 25 00:20:27 oh, yes, PyPy has JIT that's... interesting Sep 25 00:21:01 panegyric: a good coder is marked by their persistence, not knowledge base. Keep learning and growing, and let those who have more experience have their ego trips without comment. Many top-tier programmers have aspegergers, anyway, so your comments on civility will get you no-where anyway =] Sep 25 00:21:11 best Sep 25 00:21:20 +1 Sep 25 00:21:29 thanks AndruByrne Sep 25 00:21:33 =] Sep 25 00:21:59 * p_l finds the asperger comment to be misplaced... just because it was popular among some whiners to blame it, it doesn't mean that it's that easy to categorize Sep 25 00:22:21 AndyBotwin im not sure i would agree with that Sep 25 00:23:24 persistence is good, dont get me wrong, but i have seen a lot of very persistant programmers that are down right horrible lol Sep 25 00:24:02 Jug6ernaut: I think I can see where he is coming from though. No one ever STOPPED being horrible without persistence haha Sep 25 00:24:21 Yes, but some people persisted their way into worse horribleness. Sep 25 00:24:27 lol Sep 25 00:24:30 haha Sep 25 00:28:15 so i have this really good idea for a reality competition tv show.. its basically dancing with the stars, only the judges are bitter cripples who can never dance. Sep 25 00:28:40 svchost: find ones with good jabs Sep 25 00:29:14 i hate reality tv Sep 25 00:29:23 bc, its a contridiction Sep 25 00:29:27 It's pretty much the worst thing ever Sep 25 00:29:30 yah Sep 25 00:29:48 what else is TV but propaganda and advertisements? Sep 25 00:29:56 Netflix and Hulu have spoiled me into watching watching shows in bulk Sep 25 00:30:04 haha Sep 25 00:30:06 pick a series, finish it in a weekend, move on Sep 25 00:30:06 maraz: well, there's still BBC with the Doctor Sep 25 00:30:20 BBC isn't really the prime counterexample to use here Sep 25 00:30:40 i have amazon prime, i watched first three seasons of fringe and then 4th season is like"pay $48 dollars" OMG Sep 25 00:30:50 maraz: well, I haven't encountered (personally) anything better that was still a TV Sep 25 00:30:58 haha Sep 25 00:31:10 they aren't as good as they could be, but still damn better than most other stuff Sep 25 00:31:10 I've been addicted to Breaking Bad for a while Sep 25 00:31:25 my friends keep telling me i need to watch that Sep 25 00:31:28 havent yet tho Sep 25 00:31:35 Man, it's hard to stop once you start Sep 25 00:31:45 haha Sep 25 00:31:49 I've been trying to get a "friend" to watch it for months Sep 25 00:32:00 she spent the night Friday and showed her the pilot Sep 25 00:32:05 hmm... last US series I have seen at all... BSG 1st season? Sep 25 00:32:07 and now she's one season two Sep 25 00:32:08 haha Sep 25 00:32:10 or maybe Firefly Sep 25 00:32:17 on season** Sep 25 00:32:20 don't remember when I watched which Sep 25 00:32:33 firefly is also on amazon Sep 25 00:32:34 good? Sep 25 00:32:44 yes Sep 25 00:32:45 http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dinstant-video&field-keywords=breaking+bad Sep 25 00:32:46 firefly Sep 25 00:32:47 good Sep 25 00:32:50 Jug6ernaut: great. Just watch it in order Sep 25 00:32:51 Heard good things Sep 25 00:33:02 cool Sep 25 00:33:09 * Jug6ernaut JUST got internet Sep 25 00:33:16 the broadcast really fucked it over Sep 25 00:33:18 WATCH ALL THE THINGS Sep 25 00:33:22 skipped on "real" tv service, didnt want to pay for it lol Sep 25 00:33:32 not worth it, nowadays Sep 25 00:33:40 stupid expensive Sep 25 00:33:44 exactly Sep 25 00:33:56 we got rid of TV hmm... ~8 years ago Sep 25 00:34:12 damn Sep 25 00:34:14 never missed it Sep 25 00:34:14 props lol Sep 25 00:34:20 I moved out of my parents house...3 years ago, and haven't had it since Sep 25 00:34:24 lol Sep 25 00:34:29 haha Sep 25 00:35:52 I moved out of my parents' house... a lot more than 3 years ago Sep 25 00:36:25 haha and you're probably a lot more than 20 Sep 25 00:36:47 that too Sep 25 00:37:31 * p_l actually moved back from dorm back to parents house for a year... cheapest accomodation possible for the placement Sep 25 00:37:51 I lived at home for my first year of uni Sep 25 00:37:51 I also live about 6000 miles away from my parents... Sep 25 00:38:06 haha I'm somewhere around ~110 Sep 25 00:38:13 mobilejustin: I go to uni that is few countries away so... ;) Sep 25 00:38:29 p_l: ah, haha. That would make sense Sep 25 00:39:20 and as it happened, I didn't manage to land a job elsewhere but a place close to family home (for a year-long placement) Sep 25 00:40:07 I ended up leaving uni (and my parents) for a job offer Sep 25 00:40:19 moved back to where my family was originally fromt Sep 25 00:40:21 from* Sep 25 00:40:42 well, if my interviews in march go well, I'll move out to my own place, finally Sep 25 00:41:07 Nice! Sep 25 00:42:20 There's nothing like it, really Sep 25 00:42:35 Come and go as you please, cook (or don't cook) whatever you want Sep 25 00:42:59 * Jug6ernaut lived with his parents 3 years during school Sep 25 00:43:05 dont reget it for a second Sep 25 00:43:18 mobilejustin: well, I had that in dorms already :) Sep 25 00:43:28 the difference is "have the whole flat for yourself" Sep 25 00:43:57 Very true. I was never in a dorm, so I can't really compare. But between home and my own place, this totally wins haha Sep 25 00:44:13 doorms...bla Sep 25 00:44:31 That Sep 25 00:44:38 that's been what I've heard** Sep 25 00:44:44 Never "Dorm life kicked ass!" Sep 25 00:45:24 my fav. comment about dorm life was "flatmate kept me up with his loud gf" Sep 25 00:45:59 haha Sep 25 00:46:24 I had a roommate in my first place right out of the gate, and that sucked. Only lasted about six months and I went solo Sep 25 00:46:30 nothing like that happening in any dorm I lived in, though. Well, those specific dorm flats Sep 25 00:46:50 mobilejustin: at my uni, there were only 1 person per room Sep 25 00:47:27 p_l: You're lucky haha. I've heard horror stories about getting stuck with bizarre people. Sep 25 00:47:33 Or like you said, Sep 25 00:47:36 the loud gf lol Sep 25 00:47:46 p_l really? Sep 25 00:48:33 Jug6ernaut: really. We had flats, but each person would have their own room with lock Sep 25 00:49:35 wow Sep 25 00:50:00 that's like a vacation compared to what I've heard Sep 25 00:50:04 i never had to live in dorms, but i also have heard the many stories lol Sep 25 00:50:14 well, that's how it is in my uni. The first dorm I lived in... was when I was 2yo Sep 25 00:50:34 what uni? Sep 25 00:51:07 currently University of Aberdeen, UK Sep 25 00:51:51 nice Sep 25 00:54:28 what's a good sample project for seeing how multiple activities are made? Sep 25 00:54:40 (in the samples/ I mean) Sep 25 00:55:39 oh I can just grep maybe Sep 25 00:55:41 what do mean "made" Sep 25 00:56:00 I have a single activity with a single .xml and a single .java file Sep 25 00:56:09 not sure how to expand this so I can have another activity Sep 25 00:56:39 honestly, a million different ways :) Sep 25 00:57:37 I need a separate .java file per activity don't I? Sep 25 00:57:45 http://stackoverflow.com/questions/4186021/how-to-start-a-new-activity-when-click-on-button Sep 25 00:58:29 you dont "have to" but generally it is what you want want, depends on what these activites are doing Sep 25 00:59:26 I think in java, the public class (ex: MainActivity) must match the .java Sep 25 00:59:42 (MainActivity.java) Sep 25 01:01:37 public class names must match there respective file names yes... Sep 25 01:04:11 ./android-16/ApiDemos/src/com/example/android/apis/app/RemoteService.java: public static class Controller extends Activity { Sep 25 01:04:11 ./android-16/ApiDemos/src/com/example/android/apis/app/RemoteService.java: public static class Binding extends Activity { Sep 25 01:04:12 ./android-16/ApiDemos/src/com/example/android/apis/app/RemoteService.java: public static class BindingOptions extends Activity { Sep 25 01:04:34 pardon the long paste.. :/ Sep 25 01:06:11 those are all within public class RmeoteService extends Service {} though Sep 25 01:06:17 static clases Sep 25 01:06:59 right.. hmm.. so how do I make multiple activities from within a single .java? Sep 25 01:07:18 that's why I'm looking for samples.. Sep 25 01:07:33 u dont Sep 25 01:07:35 want to do that Sep 25 01:07:45 best to stay in separate files you mean? Sep 25 01:08:10 by typing that I realized a suitable earch by the way.. "how to create multiple activities android" Sep 25 01:09:03 just have different java classes for your activites Sep 25 01:09:36 when you say "xml's" i assume your referrign to layout resources in which case, if you want a different layout create a new layout resource Sep 25 01:09:54 obviously add these to your manifest so that they will be able to be launched Sep 25 01:10:23 bueno? Sep 25 01:11:18 I'm making an alarm clock app which lets you setup a series of alarms.. when you first enter it'll say the time and "no alarms set". Then you click to set some new alarms and that'll be one "screen" .. which I guess is a layout of its own Sep 25 01:11:58 once you have alarms set, the main screen will appear different -- that is, it will show the list of alarms with an edit button Sep 25 01:12:54 Then wouldn't it make more since to make two activities, one for handling no alarms and one for the list and edit button? Sep 25 01:12:57 well Sep 25 01:13:02 for the latter i would use a dialog Sep 25 01:13:04 sense*** Sep 25 01:13:06 no need for a full activity Sep 25 01:13:20 so.. I'm thinking I need a plain "no alarms set" activity and .xml. Then I need another activity.. and when entering the app it will start the "no alarms" activity.. otherwise it will send out an Intent to start the "set new alarms" activity .. Sep 25 01:13:44 jaggz no, waste of code, just make ur first activity smart in knowing if there are any alarms set or not Sep 25 01:13:48 dynamic is the name of the game Sep 25 01:14:12 the edit screen will have a different appearance from the summary screen, and it will let you click to pick a column of minutes, for example ... so you can increase all of the alarms' minutes or hours Sep 25 01:14:52 again, use a custom dialog Sep 25 01:15:01 (this is for caregivers, who need to take care of a patient. Specifically this one is for sleeping -- to address pneumonia, or in hospitals for pneumonia, bedsores, etc., you turn a patient every 2.5 hours) Sep 25 01:15:02 i mean u can do it in an activity, i wouldnt Sep 25 01:15:46 yeah I was thinking of just one activity and doing the stuff dynamically in code.. including gone/visible items, where convenient, already in the .xml Sep 25 01:16:10 I'm thinking I'll have a table layout (or vertical layout), empty, but sitting there in the .xml Sep 25 01:16:14 then I can add rows or entries to it Sep 25 01:16:27 listview would make more sense Sep 25 01:16:35 right.. Sep 25 01:16:48 looking up dialogs :) Sep 25 01:17:51 any opinions on pushing ppl to fragments right out of the gate? Sep 25 01:19:46 I'm thinking of not using a dialog because I want the display real estate Sep 25 01:20:46 morning all Sep 25 01:27:30 morning alex_PP Sep 25 02:20:05 * g00s makes his 4th attempt to understand git Sep 25 02:20:11 :( Sep 25 02:23:54 anyone know why eclipse 4.2 is asking me to sign into google Sep 25 02:24:03 g00s lol Sep 25 02:25:59 g00s, forget anything svn ever told you Sep 25 02:26:11 Jug6ernaut, got the app engine plugin installed? Sep 25 02:26:16 * Jug6ernaut is learning svn wor work :S Sep 25 02:26:29 alex_PP yea friend just told me that ;), thats what it is Sep 25 02:27:25 hi, I'm trying to parse a Json response with ksoap2 but i keep getting this error exception Sep 25 02:27:31 java.lang.classcastexception org.ksoap2.serialization.soapobject Sep 25 02:32:06 someone can help? when trying to parse a json response with ksoap2 i keep getting this error exception: "java.lang.classcastexception: org.ksoap2.serialization.soapobject" ... i want to use gson then to deserialize it into an object Sep 25 02:36:51 never used ksoap, tried GSON? or jackson? Sep 25 02:37:08 spring android's getForObject has halfed my dev times Sep 25 02:39:06 alex_PP: sorry, i'm trying to acces a webservice using ksoap2, and I'm getting that error Sep 25 02:39:57 my point is, you could try any of those instead Sep 25 02:43:05 ok, ksoap looks more complex than i imagined Sep 25 02:43:22 no idea then, never used it Sep 25 02:44:21 yes! ksoap is complex as fock Sep 25 02:44:37 mmm Sep 25 02:44:53 Ksoap worked perfect for my other methods! hahaha Sep 25 02:44:54 :( Sep 25 02:49:23 Nothing appears in google if I search for that exception :( Sep 25 02:50:25 u should be happy, its hard to do that Sep 25 02:57:25 but it doesn't fix my problem, so i'm not happy :( **** ENDING LOGGING AT Tue Sep 25 02:59:58 2012