**** BEGIN LOGGING AT Thu Feb 09 02:59:58 2012 Feb 09 03:04:51 what's the best practice for a checkable ListView? Feb 09 03:11:30 etuleu practice? Feb 09 03:11:41 * Jug6ernaut always just makes a custom adapter for everything Feb 09 03:14:32 Does anyone have source code for a basic android game designed in Eclipse? Feb 09 03:14:40 hello Feb 09 03:15:33 kc102, i think replica island is meant to be open, the fella that wrote it said he would at IO a few years back Feb 09 03:16:01 Any link available? Feb 09 03:16:06 Or should I google it? Feb 09 03:17:26 kc102: google it Feb 09 03:17:50 Sexy. Feb 09 03:17:56 google Feb 09 03:19:58 It is Feb 09 03:20:22 http://replicaisland.net/ Feb 09 03:22:19 How do I get one of those touch screeen joy sticks? Feb 09 03:22:28 hey Feb 09 03:23:48 Like, what kind of xml decleration do I use? Feb 09 03:23:56 how do you boot into recovery on a galaxy tab 10.1 Feb 09 03:25:46 i have a few questions about toast notifications Feb 09 03:26:27 can i make them cancel when you touch them? Feb 09 03:26:46 canadiancow|work, B6 Feb 09 03:26:50 you'll need a new maps plugin Feb 09 03:27:11 hi, who knows about 3D game engine in Android ? Feb 09 03:27:37 JakeWharton: ok :) Feb 09 03:27:42 3D game engine including physics engine. Feb 09 03:27:46 and i dont care Feb 09 03:27:48 canadiancow cares Feb 09 03:27:49 but i dont Feb 09 03:27:50 :P Feb 09 03:28:16 o2oo, i heard talk about andengine going 3d Feb 09 03:28:22 but it hasnt happened yet Feb 09 03:28:25 dunivan: don't think so. You might have to make a custom view or something for that Feb 09 03:29:07 canadiancow|work, what physics engine does andengine use? Feb 09 03:29:16 not sure Feb 09 03:29:19 i havent used physics in it Feb 09 03:29:31 physics is so physical Feb 09 03:29:37 if i wanted to use physics, i would have gone into engineering Feb 09 03:29:39 oh wait... Feb 09 03:30:19 barbs, can I make it cancel when a user hits the back button? Feb 09 03:30:33 if you override back i will 1star you Feb 09 03:30:52 i don't want to override it Feb 09 03:31:02 i want to detect it and end the toast Feb 09 03:31:12 yeah I think you can...from memory I think yo ujsut keep a reference to the Toast message that you show, then in the activity you intercept the 'back' keypress and do a .cancel() on the toast if it's showing Feb 09 03:36:16 Is it possible to get more objects in my Android Palette? Feb 09 03:42:01 unz Feb 09 03:42:02 mt Feb 09 03:47:09 How I access static resources from a fragment? Feb 09 03:51:01 Leandros, getResources? Feb 09 03:51:04 Are there any default notification icons you can make use of for testing? Feb 09 03:52:12 vadi2, http://androiddrawableexplorer.appspot.com/ i use this to find suitable test resources Feb 09 03:53:50 does the back button have a native r.id? Feb 09 03:54:24 thanks :) Feb 09 03:54:43 dunivan, onBackPressed() Feb 09 03:55:00 or KeyEvent.KEYCODE_BACK Feb 09 03:56:25 getActivity().getResources() Feb 09 03:56:25 alex_PP: getResources().getString() want an Int. I just want want my static string from it. Feb 09 03:56:45 you have to pass it a constant from R Feb 09 03:56:49 R.string.your_string_name Feb 09 03:56:52 where's your string defined? Feb 09 03:57:16 In the Fragment. Feb 09 03:57:31 as private static String BLAH = "blah" ? Feb 09 03:57:36 yes Feb 09 03:57:39 then Fragment.BLAH Feb 09 03:57:45 Dont work ^^ Feb 09 03:57:59 paste bin your code and i'll have a look Feb 09 03:58:53 so if i want to close a toast when back is hit, it'd be onBackPressed( toast.cancel())? Feb 09 04:00:02 Its just a ActionBar with 2 Tabs and and the Fragments. In the Fragment I defindes the string "public static String BLAH = "blah"; and I want to access the string in the main Activity which contain the ActionBar Tabs and Fragments. Feb 09 04:00:34 anyway. Feb 09 04:00:43 dunivan, check if it's showing first, and call super.onBackPressed if it's not Feb 09 04:01:09 found the mistake. Definde in my main Activity "public static Fragment fragment;" ^^ Feb 09 04:01:17 Thanks. Feb 09 04:02:16 damnit Feb 09 04:02:18 i found a bug already Feb 09 04:02:25 my brain hurts, someone else fix it Feb 09 04:06:53 <3 JakeWharton Feb 09 04:07:08 i'll make your jar though Feb 09 04:07:10 forgot Feb 09 04:07:12 already Feb 09 04:07:14 lawl Feb 09 04:10:38 I should just create a separate repo and make it its own plugin Feb 09 04:19:37 anyone know if Google Analytics each tracker call makes a connection to the internet or does it cache for awhile then upload later? Feb 09 04:19:50 I'm curious about battery usage on phone just based on the amount of data I might want to collect Feb 09 04:21:54 I have an audio loop working with a listener to loop a 1 minute segment for a user specified amount of time. I want to be able to, then, stop playing audio (rest) after this loop for 30 minutes, and then play the audio loop again. Could someone be so kind to point me in the right direction? This is the loop I'm using http://pastebin.com/GXFSU73p Feb 09 04:22:40 QubeZ, i think you set a reporting frequency in the constructior of one of the main objects Feb 09 04:22:42 been a while Feb 09 04:22:57 If I use the intent filter tag of 'android.intent.action.MAIN' in my Intent, will Android know that it's for -my- activity - or should I create a more unique one? Feb 09 04:24:36 alex_PP: thanks, looking at it Feb 09 04:27:13 I'm having a Launch timeout has expired, giving up wake lock! when i try to go from one activity to another.I realise its because of too much processing on the UI thread,but are there any other ways to solve this,besides probably asynctask on android 2.2? Feb 09 04:31:46 has anyone got autofocus to work from code? Feb 09 04:34:12 does anyone know how to get a mime/content-type for a file given a content:// URI? or get the file's extension? Feb 09 04:35:42 i want to upload a file that the user selects to my web server using http post, i need the content-type Feb 09 04:44:30 alex_PP: yup, that was it. Thanks Feb 09 04:45:15 Yuyo, i think content providers have a get type function Feb 09 04:45:46 also, if it's your server, just do all the checking there Feb 09 04:47:44 I'm having a Launch timeout has expired, giving up wake lock! when i try to go from one activity to another.I realise its because of too much processing on the UI thread,but are there any other ways to solve this,besides probably asynctask on android 2.2? Feb 09 04:48:02 compat lib and loaders? Feb 09 04:48:16 what's the too much work you're doing? Feb 09 04:50:05 i'm not sure,i'm actually running a webservice and trying to pass the returned value to another activity Feb 09 04:51:46 before that's login which also requires webservice Feb 09 04:51:57 i was wondering if asynctask on a 2.2 would solve it Feb 09 04:52:44 If I add a new action to the intent-filter of my main activity, Eclipse refuses to install it - apparently it becomes invalid. What is the proper way to go about doing this? Feb 09 04:52:49 yeah, you *must* not do that sort of thing on the UI thread Feb 09 04:53:22 vadi2: the proper way is to do it correctly :) can you pastebin the broken manifest? Feb 09 04:53:26 Leeds : So i should actually use asynctask if i want to run any webservices? Feb 09 04:53:39 Zenix11: asynctask or some other non-blocking method, yes Feb 09 04:53:50 mainly, asynctask - it's pretty easy to use Feb 09 04:54:22 alright,thanks for the help Feb 09 04:54:37 Leeds: certainly, here is the activity bit that is illegal: http://pastebin.com/JuEJ5E1w Feb 09 04:54:44 alex_PP: thanks, i actually ended up using the contentprovider to get the real file path, and that way i can get the file extension/mime in the client Feb 09 04:54:54 It says "No Launcher activity found!" Feb 09 04:55:53 I guess one action overwrites the other, but I need a unique name so I can reference it in an intent via a string Feb 09 04:57:10 no, you can have multiple actions - only one has to match Feb 09 04:57:35 Hm... what's wrong with my intent-filter then? Feb 09 04:57:44 If I remote the org. action, it is fine Feb 09 04:57:47 you have tried cleaning your project, I assume? Feb 09 04:58:09 Can anyone explain to me why I have to find the best resolution for the camera preview on a surfaceview? Feb 09 04:58:38 I have not. I'll try. Feb 09 04:58:48 what happens if you put two separate filters in, one for launching and one for your own action? Feb 09 04:59:10 Same result Feb 09 04:59:17 Sorry, let me try the filters Feb 09 05:00:11 That did it - thank you Feb 09 05:00:25 So filter per action, hm Feb 09 05:01:47 I'm not sure it should actually be necessary... but if it works, I wouldn't worry too much Feb 09 05:02:34 an alert can take the position from an array and return a corresponding one? Feb 09 05:03:00 *can Feb 09 05:10:08 Hi people. Can I cancel an async task from within doInBackground() ? Currently if I call cancel(true), onPostExecute() is executed instead of OnCancelled() Feb 09 05:11:02 the docs say that "After invoking this method, onCancelled(Object), instead of onPostExecute(Object) will be invoked after doInBackground(Object[]) returns." Feb 09 05:12:33 Beket: why are you calling cancel from the doInBackground? Feb 09 05:13:23 If some serious error happens inside doInBackground, such as a connection timeout or so, I'd like the whole task to be cancelled and user to be informed. Feb 09 05:13:40 Why not just return a null and assume an error happen? Feb 09 05:13:55 hi guys! i'm confused about TableLayout columns span. Please look at this dev guide (Common Layout Objects) : http://goo.gl/cBDlw Citation: "A table can leave cells empty, but cells cannot span columns, as they can in HTML.". And then look at the TableLayout's reference: http://goo.gl/wQJLt Citation: "A table can leave cells empty. Cells can span columns, as they can in HTML" hhmmmm? Feb 09 05:14:08 the return of doInBackground is passed to onPostExecute Feb 09 05:14:11 that is what I may end up doing. I was just curious why my method didn't work as per the docs Feb 09 05:14:30 probably because it's editing something it shouldn't be Feb 09 05:14:39 how do you mean ? Feb 09 05:14:39 it';s meant to be called from the UI thread Feb 09 05:14:43 ah Feb 09 05:14:47 ( cancel, that is. ) Feb 09 05:16:49 kinda makes sense, thanks SeligArkin :) Feb 09 05:22:02 Hm, my notification is still staying in the notifications area once I press on it - what's the proper way to go away? I thought passing the FLAG_ONE_SHOT to the PendingIntent would do it Feb 09 05:23:44 vadi2 notification.flags |= Notification.FLAG_AUTO_CANCEL; Feb 09 05:23:58 Ah, thanks Feb 09 05:31:52 If the activity is already launched, it seems to be relaunching instead of reusing - how can I make it reuse if possible? Feb 09 05:39:09 Worked it out with the singleTask launch mode. Feb 09 05:41:52 mmm Feb 09 05:41:56 * pfn uploads a new version of qicr Feb 09 05:43:39 hellooo Feb 09 05:45:16 I need help displayign overlay items Feb 09 05:45:25 .. on a mapview Feb 09 05:45:37 pfn: link? Feb 09 05:45:38 you can just add them as views to MapView Feb 09 05:46:00 then get their LayoutParams, cast it to MapView.LayoutParams and set the location Feb 09 05:47:16 http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapView.LayoutParams.html#point Feb 09 05:49:46 http://pastebin.com/T9MgE5tU and http://pastebin.com/4HV556c7 Feb 09 05:50:02 what am i doing wrong? i cant see the image Feb 09 05:55:34 have you created an itemizedoverlays object? Feb 09 05:56:14 no, i dont think so.. i was trying to follow gogle's tutorial but that didnt work so i kinda hybridized it with another one Feb 09 05:56:53 ive made an overlay object Feb 09 05:56:59 actually, i don't think you need it Feb 09 05:57:05 these apis have changed since i last looked Feb 09 05:57:12 it has an arraylist of overlayitems Feb 09 05:57:50 it's a class that extends overlay, the second link Feb 09 05:57:57 vadi2, https://market.android.com/details?id=com.hanhuy.android.irc.lite Feb 09 05:58:16 ah, thanks Feb 09 06:01:29 sorry Tricknology, i'm out of ideas Feb 09 06:01:32 hey, i have a droid bionic, and i can't get the darn thing to go to debugging mode it seems.... can someone help me out? Feb 09 06:01:39 :( Feb 09 06:02:00 try drawing at 0,0 and see what that does first Feb 09 06:02:21 or is this the wrong place to ask this question Feb 09 06:02:23 and put some loggin into confirm that draw is being called at all Feb 09 06:04:42 it navigates to zero then my location Feb 09 06:08:42 Tricknology, sorry? Feb 09 06:08:54 i mean in onDraw, not lat long 0 0 Feb 09 06:09:04 ooh, ok ill give it a go Feb 09 06:09:17 i have no onDraw though Feb 09 06:09:23 just draw(...) Feb 09 06:09:40 yeah, that one Feb 09 06:09:42 i think its an abstract method of overlay and required Feb 09 06:09:44 ok Feb 09 06:10:03 maybe bitmapfactory isnt the way to go? Feb 09 06:11:29 it should work Feb 09 06:11:40 but you want to cache the result, not load th bitmap everytime you draw Feb 09 06:14:16 can u use @string/xxx when ur declaring intent filters in XML? Feb 09 06:16:07 doesnt look like it... Feb 09 06:58:57 How should I set (l,r,t,b) on a view if I want to translate it? Feb 09 07:08:45 hey guys im trying to make a link clickable in a dialog, the html displays it fine as a link but i cant click on it, ideas? Feb 09 07:45:23 i want to take a picture and send it via email. i also want to send along the current location. Problem is when there's no network connection. I'm thinking i can offer the user the option of sharing a picture from the gallery using my activity, only how can i remember the location? can i place it in some metadata thing with the pic? Feb 09 07:56:02 ive made an app that is 30 meg is there any way to force it to install to the sd card? Feb 09 07:56:47 Gaz`: you can set in your manifest that the preferred install location is the sd card Feb 09 07:56:58 yeh i did that but it doesnt seem to do anything Feb 09 07:57:13 android:installLocation="preferExternal" yeh? Feb 09 07:57:32 xorgate, Exif supports lat and lon Feb 09 07:58:01 Gaz`: what it does depends on the device Feb 09 07:58:22 so it only works on newer devices or something? this is nexus one 2.3.6 Feb 09 07:59:26 Gaz`: it was introduced in 2.2 Feb 09 07:59:53 weird Feb 09 08:00:00 unless it because i installing using adb? Feb 09 08:01:09 Gaz`: don't know Feb 09 08:04:35 thanks mate Feb 09 08:07:40 hi Feb 09 08:07:43 alex_PP cheers good tip Feb 09 08:07:51 hey guys, im looking to use getLocatioNFromName() to find a location btu it isnt returning any results for things I know is there Feb 09 08:08:00 are*.. typos.. you know Feb 09 08:08:20 how to execute setListAdapter(myAdapter) from an outer class ? Feb 09 08:08:44 in an onClickListener Feb 09 08:08:50 like if i try starbucks 93101 shouldnt it return a list of addresses? Feb 09 08:09:12 maxagaz: you can return myAdapter to the outer class Feb 09 08:09:31 err inner class? in your case? Feb 09 08:10:53 myAdapter = new MyCustomAdapter(); Feb 09 08:11:42 Tricknology: I have that already, how do I execute setListAdapter from it ? Feb 09 08:11:56 can u pastebin ur code? Feb 09 08:11:58 pastebin.com Feb 09 08:13:33 Tricknology: my code is a bit long and messy right now... Feb 09 08:13:51 How do I resize children when a parent is resized using http://pastebin.com/5pEsh56p Feb 09 08:15:00 maxgaz: i dont think ive ever done it from an onClickListener to tell you the truth.. what are you trying to do? Feb 09 08:15:03 launch a listview from a button? Feb 09 08:17:19 Tricknology: I'm trying to refresh a tab while it's current used Feb 09 08:17:58 Tricknology: usually, I use wordsAdapter.notifyDataSetChanged(); and setListAdapter(wordsAdapter); to do it Feb 09 08:18:13 what are you using for a layout inflater? Feb 09 08:18:23 Tricknology: but here, I'm trying to execute these two methods from an outer class Feb 09 08:18:31 hmm.. 1 sec Feb 09 08:18:51 switching workspaces for u haha Feb 09 08:19:17 Tricknology: I'm using a ListView Feb 09 08:20:47 http://pastebin.com/SwHawT0L Feb 09 08:20:55 check that out, maybe it will help Feb 09 08:22:19 if (!(x==0)) Feb 09 08:22:25 mine refreshes because of startActivityForResult() Feb 09 08:22:29 http://pastie.org/3346765 none of these work (all cause a crash), what's the right way to use setInt on a RemoteViews? (I know setProgressBar also exists, I do not want it) Feb 09 08:22:47 oops I have a comma in all of them ... Feb 09 08:22:54 which is the right one though? Feb 09 08:23:10 and when the activity finishes, the parent class calls onActivityResult where i have adapter.notifyDataSetChanged(); Feb 09 08:23:42 only thing i can say is try to get a reference to it by putting it higher in your code Feb 09 08:23:47 without seeing it Feb 09 08:23:58 idont care if its messy, if i cant read it i cant read it Feb 09 08:24:28 Tricknology: interesting Feb 09 08:24:57 ill give you the other activity that is called.. MyCommentForm Feb 09 08:25:01 so you can see what it does Feb 09 08:25:12 Tricknology: thanks :) Feb 09 08:25:27 unfortunately there are like a million different ways to do this Feb 09 08:25:47 idk what exactly or how you're trying to implement the tabs, ive never used them myself.. Feb 09 08:26:43 http://pastebin.com/yBT9WcXF Feb 09 08:27:25 not much to that one, but they key is finish() Feb 09 08:27:37 and setResult() Feb 09 08:28:00 it destroys the activity and then sends the result to the calling class Feb 09 08:28:44 in my code, if result is ok it adapter.notifyDataSetChanged() Feb 09 08:28:49 and the list is updated.. Feb 09 08:31:12 maxagaz: yeah.. try using something like lines 38 through 43 in the first link i sent you and call it before you notifyDataSetChanged(); Feb 09 08:31:52 ...chances are you have to repopulate the adapter Feb 09 08:33:09 Tricknology: that would be just fine Feb 09 08:34:32 hello Feb 09 09:03:45 How's it going on this IRC channel? Feb 09 09:04:59 i have a problem with webview. the filled area of the webview is depending on the content of the webview. i've selected it as fill_parent for height but if the content on the webview is small the webview doesnt fills my layout and there will be a black gap. how can i solve it? Layout xml: http://pastebin.com/hAJ9pjx2 Screenshot: http://imageshack.us/photo/my-images/861/screenshot20120209at103.png/ Feb 09 09:08:03 anyone there? Feb 09 09:08:14 musaulker: Kinda quiet. Feb 09 09:08:35 musaulker: I looked at what you sent through. I don't know enough to help you out. Sorry. Feb 09 09:08:46 Hi, can anybody help me with vector permutation using ARM NEON (byte shuffle)? Feb 09 09:08:53 aLearner: thank you.. Feb 09 09:09:00 musaulker: Of course... ;-) Feb 09 09:09:58 duga3: It's quiet in here now. Feb 09 09:10:19 hi Feb 09 09:11:08 i .net you can add a 'Web reference' into your project.. the you will be able to use classes from that WS.. Feb 09 09:11:21 is that possible to do in eclipse?.. Feb 09 09:11:46 hello guys Feb 09 09:11:57 im thiking it wont work since the WS is in C#/.net and android is in Java.. :-S Feb 09 09:12:04 not possible right?... Feb 09 09:12:28 bestKoderEver, i think eclipse has an apache axis plugin that will do that Feb 09 09:12:51 you give it a wsdl file and it gives you java to access it Feb 09 09:13:30 do you guys know of a way to embed a flash file into a view completely? full screen? Feb 09 09:13:43 alex_PP ok but that is for accessing the WS methods.. not creating objects from a WS class right? Feb 09 09:14:24 it creates the object stubs for you to access the service Feb 09 09:15:14 not sure how good android support is Feb 09 09:15:20 worked fine for J2EE though Feb 09 09:15:27 oki.. Feb 09 09:16:11 but that is not what i want.. in C# , you import a WS, and then you can use its classes..create new objects from those.. Feb 09 09:16:28 alex_PP do you have any idea about my question? Feb 09 09:17:13 alex_PP not same thing right.. its to reuse code i guess.. Feb 09 09:19:51 ill get eclipses lol Feb 09 09:20:30 bestKoderEver, it generates everything Feb 09 09:20:42 musaulker, read up on layout weight Feb 09 09:21:47 aLearner, i think so. Feb 09 09:21:51 When is a good time here? Feb 09 09:22:13 alex_PP ok..ill try it.. thanks..! Feb 09 09:22:27 or do you know another channel, with people using NEON? Feb 09 09:24:27 can layouts be used on any api level? Feb 09 09:25:44 optimusM: yes, of course - specific layouts may have been introduced in specific API levels Feb 09 09:26:13 im wanting to use layouts from ics on cm7 Feb 09 09:26:39 since my phone doesnt have a updated kernel to run ics yet Feb 09 09:26:55 you can't Feb 09 09:27:29 not the java coding i know that is different Feb 09 09:27:39 but layout should always be the same Feb 09 09:27:45 don't forget, android's open source Feb 09 09:27:48 Feb 09 09:28:17 i have AOSP for ICS and Cyanogenmod7 opensource Feb 09 09:28:32 open source Feb 09 09:30:08 optimusM, http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/android/widget/ScrollView.java?av=f Feb 09 09:30:16 but i don't see why you'd need it Feb 09 09:30:35 scroll view's an old layout Feb 09 09:30:47 ics is using scrollview lol Feb 09 09:31:15 do you have ics yourself? Feb 09 09:31:23 yep Feb 09 09:31:37 optimusM: what the fsck are you talking about? Feb 09 09:31:40 you see how when you open settings it says wifi on/off Feb 09 09:31:44 "ics is using scrollview lol"? Feb 09 09:31:50 yeah Feb 09 09:31:51 that's not scrollview Feb 09 09:31:57 i wanna add something like that Feb 09 09:32:16 i imagine that's a button with an image for on and a different one for off Feb 09 09:32:17 that's switch, or switchpreference Feb 09 09:32:41 oh, you can drag it. never tried that Feb 09 09:32:43 and that is ICS-only... Feb 09 09:33:03 find it in the ICS source and copy it to your project, with a differnet package name Feb 09 09:37:47 http://stackoverflow.com/questions/9208353/change-children-size-when-parent-size-is-changed Feb 09 09:39:39 Seimawn2, try the l, r, t, b variables in layout not the m variables Feb 09 09:40:02 alex_PP: I try that, thanks! Feb 09 09:41:50 alex_PP: You mean just "child.layout(l, t, r, b);" ? Feb 09 09:41:59 alex_PP: Instead of "child.layout((int) mPosX, (int) mPosY, (int) (mPosX + getWidth()), (int) (mPosY + getHeight()));" Feb 09 09:42:24 well, adjust them so they're in the right place Feb 09 09:42:35 but you get the idea Feb 09 09:42:55 alex_PP: Hmm, okej .. I try to work with them.. thanks Feb 09 09:43:13 alex_PP: webview doesnt have android:layout_weight feature ? Feb 09 09:43:21 not sure why you're storing them anyway, they accessible from getX, Y ... Feb 09 09:43:38 layout weight is a feature of linear layout that is applied to it's children Feb 09 09:45:46 *getLeft Feb 09 09:45:48 ... Feb 09 09:56:05 alex_PP: Have you any idea how it should be implemented, cause I really can't get it to work .. :( Feb 09 09:57:45 call layout() on all your children using the l,r,t, &b valiables as your basis Feb 09 09:57:59 so, if you want the child to fill the parent, use the same values Feb 09 09:58:16 if you want it half the size, use l & t and r / 2 & b / 2 Feb 09 09:58:17 alex_PP: I am that, but they still won't scale when parent is scaled Feb 09 09:58:29 how are you scalling the parent? Feb 09 09:58:39 setMeasuredDimension((int) (widthSize * mScaleFactor), (int) (heightSize * mScaleFactor)); Feb 09 09:58:46 in onMeasure Feb 09 09:59:06 have you called requestlayout on the parent? Feb 09 09:59:30 yes, in onTouchEvent Feb 09 10:00:04 Hi. Could you help me with progress wheel that stop to spin when the MediaPlayer starts to play? http://pastebin.com/9UawLSHk Feb 09 10:00:14 *please:) Feb 09 10:01:40 is scale facotr > or < 1 Feb 09 10:01:58 scale > 1 Feb 09 10:02:25 then the parent's parent will be cropping it to a max of it's width Feb 09 10:03:01 Th parent is a FrameLayout Feb 09 10:03:46 i don't think it will layout children larger than it's self Feb 09 10:04:01 that's a weird sentence Feb 09 10:04:08 the measured width and height a mostly a guide for the parent's layout method Feb 09 10:04:14 :s Feb 09 10:04:48 xvidcap doesnt capture whats inside the emulator window - anyone know a workaround? Feb 09 10:05:09 The Root RelativeLayout which I want to zoom, has three children's .. one ImageView and two RelativeLayouts … the ImageView is resized correct, but the RelativeLayouts are not Feb 09 10:06:30 i'd need to see more of your code before i fixed that Feb 09 10:07:06 sex Feb 09 10:07:08 sec Feb 09 10:07:14 hold on Feb 09 10:07:17 i haven't time Feb 09 10:07:27 i'm writing these inbetween my own overdue builds Feb 09 10:10:15 alex_PP: Okej, understand :( Feb 09 10:11:42 hi Feb 09 10:13:15 currently trying to figure out what the best way of binding to services is. binding always in onCreate() or only binding if really needed (which is true in about 50% of the use cases). any opinions on that? Feb 09 10:15:02 I'm following http://w2davids.wordpress.com/android-3-0-%E2%80%93-photo-gallery-example/ and it's not working, under debug I note that "public View getView(int postion, View view, ViewGroup group) Feb 09 10:15:02 " is never called, anyone have any ideas? Feb 09 10:18:01 is your activity extending baseadapter? Feb 09 10:18:46 when ImageAdapter is called it automatically calls getView, I believe Feb 09 10:19:20 yup, extends Activity implements OnItemClickListener Feb 09 10:19:31 no Feb 09 10:19:38 public class ImageAdapter extends BaseAdapter Feb 09 10:19:53 sorry, wrong class ;).. yes, it is Feb 09 10:20:15 public class PreviewPanel extends BaseAdapter Feb 09 10:20:35 in your parent activity are you calling _imageAdapter = new ImageAdapter(this); Feb 09 10:20:36 ? Feb 09 10:20:42 yup Feb 09 10:20:58 that should call getView Feb 09 10:21:19 _gallery.setAdapter(_imageAdapter); Feb 09 10:21:19 ? Feb 09 10:21:24 yup Feb 09 10:21:38 can you paste your code? Feb 09 10:21:43 its hard to tell from workign code Feb 09 10:21:48 pastebin.com Feb 09 10:21:57 k, 1 sec Feb 09 10:21:59 Hi. Could you please help me with progress wheel that stop to spin when the MediaPlayer starts to play? http://pastebin.com/9UawLSHk Feb 09 10:22:47 pdRing.Disable() Feb 09 10:22:48 ? Feb 09 10:23:12 err Dismiss i think it is Feb 09 10:24:14 oooh, dudko: its because you have it running in a thread Feb 09 10:24:34 it will stay for 1000 (ms?) no matter what Feb 09 10:24:39 http://pastebin.com/z6ePm6e8 Feb 09 10:24:58 you have to set a flag that checks somehow if the mediaplayer is playing Feb 09 10:25:06 or force it to dismiss early Feb 09 10:25:44 Tricknology: hmmm:) Feb 09 10:27:44 gah i need to get my app submitted Feb 09 10:29:44 Rangar: ok... try this: take line 33 and put it in another methodm call that method at the end of your onclick Feb 09 10:30:03 if thatserr lines 32 and 33 Feb 09 10:30:13 haha.. wow.. Feb 09 10:30:22 lines 32 and 33 in a new method Feb 09 10:30:36 call that method twice.. once in onCreate and once in onItemClick Feb 09 10:31:14 that should set a new adapter and repopulate it Feb 09 10:31:34 nope :( Feb 09 10:31:51 bah :( i dont now then.. you pretty much copied it all right? Feb 09 10:32:21 i believe so Feb 09 10:32:43 can you pastebin the stacktrace? Feb 09 10:32:44 only diff. is that my gallery was placed there by eclipse editor, but it seems to comply with what they want in the xml Feb 09 10:32:53 hmmmm Feb 09 10:33:04 put it in your resources folder Feb 09 10:33:17 pastebin the stack trace too Feb 09 10:33:56 Hrmm I can't seem to get my activity's onConfigurationChanged() called when keyboard hidden state changes, despite having the the android:configChanges="orientation|keyboardHidden" flags set in the manifest Feb 09 10:33:56 i'm going to try 1 thing first, 1 min Feb 09 10:35:17 got a strange issue with a countdowntimer, if i set it for secs, mins, hours or days into the future it calls ontick immediately then waits the apppropriate time til next tick - this is what i want, but if i set it for weeks, months, or years that initial ontick doesnt happen.. infact im not so sure why the initial ontick is happening, is there something weird going on like im setting it Feb 09 10:35:17 too far into the future, its supposed to be a security camera app that stays on 24/7 Feb 09 10:37:56 Ah crap it doesn't seem to be sent the soft keyboard Feb 09 10:41:20 Gaz` I'm no expert but how are you getting the time? Feb 09 10:43:55 like how are you calculating millisUntilFinished? Feb 09 10:44:18 are you storing it as int, float, or double? Feb 09 10:44:56 or long? you might be having some truncation issues is my guess Feb 09 10:45:04 I've got a relativelayout in which I want to place two textviews.. The relativelayout should be "divided" horizontally, and the textviews centered in the divided parts. How can I do this? Feb 09 10:45:31 with two relativelayouts each with gravity 1 i believe Feb 09 10:45:32 or .5 Feb 09 10:45:45 2 relativelayotus inside a linearlayout if thats what you want Feb 09 10:46:03 ah, sweet. I'll try that in a moment, thx :) Feb 09 10:46:05 sorry, not gravity.. i think its weight Feb 09 10:46:50 k Feb 09 10:47:36 methinks if theyre the same number it will occupy space equally Feb 09 10:49:01 so, linearlayout with two relativelayouts, where the relativelayouts have weight set to 0.5, and textviews inside relativelayout centered in parent? Feb 09 10:51:50 Sweet, it worked :) Feb 09 10:51:53 i dont even think you have to center them. Feb 09 10:51:56 nice :) Feb 09 10:52:08 wrapping layouts can be very useful ;-) Feb 09 10:52:21 like if you want a button below a listvies for example Feb 09 10:52:26 listview* Feb 09 10:53:12 I've never really needed weight before until now. Useful, it is Feb 09 10:53:29 fpillet: ive had problems like that before.. i just took it out for now lol. let me know if you figure out anything Feb 09 10:53:49 Tricknology: http://stackoverflow.com/questions/2150078/android-is-software-keyboard-shown Feb 09 10:54:32 haha override onMeasure? lol Feb 09 10:54:43 he's right.. way harder than it shoul dbe Feb 09 10:54:50 android is still weird like that.. :( Feb 09 10:54:54 yeah Feb 09 10:54:58 But the first trick works Feb 09 10:55:19 (using ViewTreeObserver.OnGlobalLayoutListener) Feb 09 10:55:21 nice! thanks i was getting some weird npe.. i wanted to hide softkeyboard if hardkeyboard was out Feb 09 10:55:31 I get a callback every time the soft kbd hides or show Feb 09 10:55:36 From there, it's not hard to figure out Feb 09 10:56:07 cool, thanks :) Feb 09 11:01:06 erg Feb 09 11:04:08 When I'm using layout_below="@id/whatevs" , why does it seem like there's extra padding between the two elements? :/ Feb 09 11:04:39 I want it to appear _right_ below the other element.. and not 50px or whatever it looks like Feb 09 11:04:51 what are you using to make this? Feb 09 11:04:54 eclipse? Feb 09 11:04:57 How can I report a typo in Androids docs? Feb 09 11:05:23 lol idk but good catch Feb 09 11:05:32 b.android.com Feb 09 11:06:17 Thanks Feb 09 11:13:59 Hm, whole two pages, a guide and a topic, dedicated to a depreciated method with no hints of depreciation in them... Feb 09 11:17:07 as soon as I install a OrientationEventListener on my activity, it stops working completely Feb 09 11:17:15 anyone seen this befor? Feb 09 11:18:49 yes Feb 09 11:18:56 i added a list Feb 09 11:19:03 and the whole app just broke Feb 09 11:19:04 Tricknology: eclipse Feb 09 11:20:12 dont use elow Feb 09 11:20:17 below* or above Feb 09 11:20:32 the linearlayout should take care of this by the order you see them in the xml Feb 09 11:20:42 maybe that's jacking up your padding? Feb 09 11:20:48 Tricknology: but this is a different part of the layout where I need relativelayout Feb 09 11:21:06 and you have padding where? Feb 09 11:21:38 I don't apply padding myself, I just want one relativelayout to appear right after a textview Feb 09 11:22:09 align the textview to the bottom of the top element Feb 09 11:22:48 err.. align the textview to the bottom of the top relativelayout Feb 09 11:24:18 layout_gravity i think Feb 09 11:26:36 hmm looks like a CountDownTimer has a limit of 24 hrs? Feb 09 11:31:31 guys, if i make a service, and i shutdown my app, will it receive the ondestroy ? Feb 09 11:31:43 sorry, shutdown my phone, not app Feb 09 11:33:19 Tricknology: android:includeFontPadding="false" did the trick, slightly better now. One of the textviews has got fonsize set to 90dp, which generated a lot of padding, padding I don't really need since the text will always be a number, and no fancy symbols/accents Feb 09 11:33:41 should do Motafoca easily tested tho ;) Feb 09 11:34:01 nicely done :) Feb 09 11:34:17 90dp.. dang Feb 09 11:35:13 Gaz`: :) Feb 09 11:36:02 Tricknology: hehe, yup. It's for a parking-system where the 90dp textview displays the time when your parking ticket expires Feb 09 11:36:06 so, it needs to be visible =) Feb 09 11:36:43 very nice! Feb 09 11:43:31 argh, why does my countdowntimer behave weird when its over 24 hrs Feb 09 11:45:07 http://0xc0deba5e.appspot.com/agoweGMwZGViYTVlcgwLEgRDb2RlGNGuAww <- what's wrong with this code? It never reaches "Done" Feb 09 11:45:40 perhaps this is an AVD issue - can't test on my phone right now (forgot cable) Feb 09 11:50:57 hello, I'm having some issues with a custom adapter: when I do listViewVar.setAdapter(myCustomAdapter), nothing is displayed; I did myCustoneAdapter.getCount() which returns the right number of values Feb 09 11:51:20 and the listViewVa functions as I tried it with another adapter Feb 09 11:51:47 but for some reason, getView is not being called on myCustomAdapter when I do setAdapter() Feb 09 11:51:56 Any help would be greatly apprecaited Feb 09 11:52:22 ...just in case someone is around today in the know: porting ICS to a new platform I'm stuck at the glittering logo, looking for hints where to search for problems... Feb 09 11:52:55 akuma. can you paste your code Feb 09 11:52:56 ? Feb 09 11:53:21 pastebin.com Feb 09 11:53:21 1 sec Feb 09 11:53:51 lyakh: logcat showing anything? Feb 09 11:54:01 (logcat starts early in boot process) Feb 09 11:54:11 if not that, connect a serial port Feb 09 11:54:42 p_l: wow, it used to be quiet Feb 09 11:54:52 but now it's exploding with messages :) Feb 09 11:55:00 let me pastebin a few Feb 09 11:55:11 lyakh: I use that stuff when debugging my phone :) Feb 09 11:55:23 http://pastebin.com/NVb9PPrB Feb 09 11:55:26 logcat is boss Feb 09 11:56:16 p_l: http://pastebin.com/aUm0qaaD Feb 09 11:56:43 ok, I know why battery stuff is appearing - I added that "emulation" to init..rc Feb 09 11:57:11 replace "emptyListAdapter()" with "ad" in the code I just pasted Feb 09 11:57:38 as emptiListAdapter is my test function to see if the listView was actually working Feb 09 11:58:36 I suppose this isn't a channel for android support >_>; Feb 09 11:58:45 lyakh: yeah, and your system_server dies :) Feb 09 11:59:04 lyakh: just in case - get yourself a serial console on the device Feb 09 11:59:19 although if logcat works, you can also get a shell Feb 09 11:59:21 itemList.setAdapter(emptyListAdapter()); Feb 09 11:59:32 it's ad Feb 09 11:59:33 are you setting it with an actually empty list adapter? Feb 09 11:59:37 oooh Feb 09 11:59:49 emptyListAdapter was just for test Feb 09 12:00:09 p_l: that's what I'm doing in the shell at the serial console :) Feb 09 12:00:55 are you making an instance of itemList? Feb 09 12:01:17 what is itemList? Feb 09 12:01:25 yea with new and I add it to the main layout; it displays the contents of emptyListAdapter fine Feb 09 12:01:38 in onCreate? Feb 09 12:01:38 p_l: ok, let me remove that battery stuff again Feb 09 12:02:03 yes, itemList is of type ListView defined in onCreate() Feb 09 12:04:32 umm 1 sec Feb 09 12:04:38 k Feb 09 12:07:28 Akuma: check this out Feb 09 12:07:30 http://pastebin.com/X0Jqf4E5 Feb 09 12:07:30 hello Feb 09 12:07:37 http://www.wired.com/gadgetlab/2012/02/chrome-android/ does it work on a arm v6 phone ? i guess that depends on if it supports 4.0 ? [17:35] i assume arm v6 doesn't support ice cream sandwich? Feb 09 12:07:47 can someone confirm? Feb 09 12:07:59 its not exactly what you are doing.. but take a look at lines 37..42 Feb 09 12:08:12 i call that activity oncreate and when i want to update Feb 09 12:08:30 p_l: ok, actually, there were no those battery entries in init.*.rc yet, I've put them in the sources, but didn't copy to the fs yet. now they are there, logcat is quiet... Feb 09 12:08:54 getView is something that gets called by an adapter Feb 09 12:09:00 and usually has to be overridden Feb 09 12:09:12 so you probably arent extending the right class Feb 09 12:09:20 or implementing Feb 09 12:09:31 hmm Feb 09 12:09:39 because otherwise you would need @Override above Feb 09 12:09:43 damn it www.google.co.in/search?q=arm+v6+ice+cream+sandwich says there's no support ! Feb 09 12:09:45 like... Feb 09 12:09:53 p_l: now only in "main" log I'm getting this repeatedly: http://pastebin.com/XeJM7L2f - is it critical for that display stuff? Feb 09 12:10:12 now i can't use chrome on $50 bucks phone with a $5 data plan with android 2.2. :( Feb 09 12:10:23 Tricknology: okay I came up with a decent solution to detect soft keyboard Feb 09 12:10:49 this http://pastebin.com/83hLavXm Feb 09 12:11:00 ooh please share!! Feb 09 12:11:08 hold on, creating a gist Feb 09 12:11:47 I'll have to do som research Feb 09 12:11:52 thanks for the help Feb 09 12:11:58 I'll see what I can come up with Feb 09 12:12:00 np Feb 09 12:12:03 wat i wanna say is tho Feb 09 12:13:03 shit i forgot.. sorry.. but I think getView is an abstract method of a different class that you either extend or implement Feb 09 12:13:06 Tricknology: Feb 09 12:13:07 https://gist.github.com/1779575 Feb 09 12:13:29 Basically, the trick I found that works best is to look at getWindowVisibleDisplayFrame() Feb 09 12:13:47 When the soft keyboard covers the window, it shrinks by a large factor Feb 09 12:13:49 With CursorAdapter you use newView to inflate your view, and bindView to populate with data Feb 09 12:13:52 hmm.. Feb 09 12:13:52 Override those Feb 09 12:14:19 Also, there's no reason to use SimpleCursorAdapter if you're doing your own inflation Feb 09 12:14:30 Don't override getView Feb 09 12:14:43 ^^ Feb 09 12:14:44 so what should be used instead? Feb 09 12:14:57 extend CursorAdapter Feb 09 12:14:59 CursorAdapter Feb 09 12:15:05 Override newView and create your view there Feb 09 12:15:13 Override bindView and fill out data there Feb 09 12:15:13 But then this technique is very very specific to what I'm doing. I don't use dynamic layouts, I ask the OS to just pan the view (not resize) on soft keyboard, so YMMV Feb 09 12:15:16 setText etc Feb 09 12:15:25 In bindView you even get passed the Cursor at the right position Feb 09 12:15:40 Plus the code I show uses a bunch of stuff specific to my app, but you get the idea -- check the window visible rectangle Feb 09 12:15:41 fpillet: thanks for sharing! Feb 09 12:16:08 hey guys, is there way to get the eglContext used by UI thread in native code? Feb 09 12:21:10 SimonVT: it's not calling either newView or bindView Feb 09 12:22:54 Akuma: Are you sure you're adding the listview to the layout? Feb 09 12:23:31 I'm positive; when I do it with my empyListAdapter, which is just a line, it displays fine Feb 09 12:23:48 hi, I'm about to install ADB on Lubuntu 11.10, what kind of Java do I need for this? - https://help.ubuntu.com/community/Java Feb 09 12:24:08 at least, I want to do android update, and it seems to be a Java executable Feb 09 12:24:44 android-sdk-linux/tools/android Feb 09 12:25:45 dbCursor.close(); <- Don't do that Feb 09 12:25:58 freeroute: http://developer.android.com/sdk/requirements.html Feb 09 12:26:04 ^akuma Feb 09 12:27:06 no difference without dbCursor.close(); Feb 09 12:27:47 android close cursors? or should close we example when make a dialog with cursors or change a adapter's cursor? Feb 09 12:28:14 appel1: thanks! Feb 09 12:28:51 hey, two questions Feb 09 12:28:57 1. is it seriously true that there is no api functionality to do drag drop behavior on any api before honeycomb? Feb 09 12:29:02 what is network prefix Feb 09 12:29:10 SimonVT: here's the full code http:pastebin.com/B1p0YWdC Feb 09 12:29:10 2. if this is the case, how can I make a totally transparent popup window or some other type of screen, so I can use touch events to hack drag drop behavior together anyway Feb 09 12:29:12 and there is not subnet mask option Feb 09 12:29:19 http://pastebin.com/B1p0YWdC Feb 09 12:30:42 Having trouble placing a textview.. Took a screenshot of how it looks (in the graphical editor in Eclipse) to illustrate the spacing-problem above the text.. http://imageshack.us/photo/my-images/444/42941873.png/ Feb 09 12:31:31 I want the space above the text to disappear :/ Feb 09 12:32:17 Akuma: And it works when you use the other adapter? Feb 09 12:32:22 yes Feb 09 12:32:56 You're still closing the cursor in that code Feb 09 12:32:56 when I do itemList.setAdapter(emptyListAdapter()); it displays a line saying "No items here" Feb 09 12:33:01 it's commented Feb 09 12:33:05 no Feb 09 12:33:25 shit Feb 09 12:33:31 commented the wrong line Feb 09 12:34:03 well, I got an error, I'd say that's a step forward Feb 09 12:34:20 ^_^ Feb 09 12:34:26 guidocalvano: yes, no drag-drop-api before honeycomb. you could use the onInterceptTouchEvent of your highest-level container to roll your own Feb 09 12:34:45 SimonVT, Thanks a lot, hopefully I'll be able to fix it from here Feb 09 12:34:53 Helpe greatly appreciated Feb 09 12:35:06 np :) Feb 09 12:35:07 Tricknology: thanks for the help as well Feb 09 12:35:26 welcome Feb 09 12:35:32 wtf nox9Re Feb 09 12:36:43 XeruX: maybe TextView.setIncludeFontPadding helps Feb 09 12:37:23 Xperimental: already done that Feb 09 12:37:27 it helps, a little bit Feb 09 12:37:53 but that image was taken with setIncludeFontPadding=false Feb 09 12:37:56 Xperimental: tnx (: Feb 09 12:38:14 yay, it works Feb 09 12:38:24 thanks a lot! Feb 09 12:39:30 Akuma: Now, read up on how to properly use a CursorAdapter :p Feb 09 12:39:42 hahaha, yea, I will Feb 09 12:40:11 how can I make logcat in eclipse display logs from a different device? Feb 09 12:40:49 cool! it's doing something! :-D Feb 09 12:40:51 XeruX: ok. have you tried setting the view height to the same value as the font ascent? Feb 09 12:41:23 btw my OrientationEventListener works fine on my htc, could it be a vm issue? Feb 09 12:41:32 an even more hacky solution would be to create an own view :) Feb 09 12:42:23 Xperimental: the image was taken with layout_height set to 90dp, which is the same as the font-size. What happens (with that set) is that the bottom space is removed, but the space above the text will still be there Feb 09 12:43:57 XeruX: have you tried playing with the gravity to keep the text anchored at the bottom? Feb 09 12:45:59 Xperimental: anchored at bottom? why? Feb 09 12:46:26 because you want the top spacing to be pushed "out of the view" Feb 09 12:46:55 I don't want space around the text at all (bottom or top) Feb 09 12:47:48 there is a parameter you have to set Feb 09 12:47:56 for the text Feb 09 12:48:04 i forget which one though.. do you have eclipse? Feb 09 12:49:13 dang.. i wish i had a chat log.. i just helped someone with that awhile ago Feb 09 12:49:29 . Feb 09 12:49:33 (I have a hilight for dang ...) Feb 09 12:50:56 Tricknology: was it me you were helping? Feb 09 12:51:10 it very well coul dhave been Feb 09 12:51:10 I tried a couple of things, nothing has worked so far. Feb 09 12:51:12 :( Feb 09 12:51:24 with the 2 layouts? Feb 09 12:51:34 anchor_bottom didn't work? Feb 09 12:52:14 can't remember, what was I supposed to do again? Feb 09 12:52:29 XeruX: perhaps negative margin or padding will work? Feb 09 12:52:37 I have two textviews now, the last one has a lot of spacing above it because of its large font Feb 09 12:52:43 Xperimental: tried, font gets cut-off Feb 09 12:53:08 isn't that what you try to achieve? or is the cut-off at the bottom Feb 09 12:53:18 cut-off as in part of the font goes missing Feb 09 12:53:21 iirc Feb 09 12:53:42 I've tried so many things I can't even remember what happened in each case Feb 09 12:53:44 lol Feb 09 12:54:04 maybe use a smaller negative number. Feb 09 12:54:52 * Xperimental just realized that smaller is ambiguous in that context... Feb 09 12:55:13 lol Feb 09 12:55:22 math woes Feb 09 12:56:35 lyakh: ... possible,though you might be able to comment that out from surface flinger Feb 09 12:58:00 p_l: it's working now! :) I was missing power-supply enabled in the kernel Feb 09 12:59:33 ah Feb 09 13:01:23 is anyone likes electonic music and 8-bit then check this otu.. http://soundcloud.com/djcutman/magx Feb 09 13:01:48 listening to it and u2 came up in 8-bit.. haha Feb 09 13:02:08 i like downsampling 44.1kHz audio into 8kHz and converting 16 bit samples into 8-bit u-law sampels if that counts for anything:? Feb 09 13:02:23 haha not in this context Feb 09 13:02:46 why do you do that? Feb 09 13:02:55 voice recognition Feb 09 13:03:00 ooh cool Feb 09 13:03:10 i was gonna listen to that but then i saw skrillex in the track list Feb 09 13:03:17 hahahahaha, skip it Feb 09 13:03:31 :p alright Feb 09 13:03:38 I find it a bit funny that voice recognizion always starts from lo-fi audio Feb 09 13:03:41 there is other dubstep in there though so don't listen if you dont like dubstep Feb 09 13:03:50 :P Feb 09 13:04:06 maybe the guys think that it's somehow easier to solve the problem if you only have to deal with 8 kB/s flow Feb 09 13:04:28 still, in fairness what remains there ought to suffice for the task, so I guess it's just traditional Feb 09 13:04:42 alankila: voice only exists in a small part of the frequency spectrum anyway Feb 09 13:04:54 so it's not really lo-fi at all Feb 09 13:05:07 I expect unvoiced to reach above 4 kHz but there's probably several kHz of noise before that to detect unvoiced with Feb 09 13:05:21 Xperimental, Tricknology : Setting negative margin worked, so I'm happy (for now). I guess it's not the most ideal way to solve such a problem, but if there's no other way of doing it .. Feb 09 13:05:49 that's weird.. the concept of a negative margin.. i wonder what's really going on there Feb 09 13:05:50 the 8-bit still has SNR of 48 dB if you process it optimally, but I do think you'll be needing a reasonable automatic gain control there Feb 09 13:06:01 shrugs, I'm just following industry standards Feb 09 13:06:05 argh.. really noone here who knows anything about OrientationEventListener? Feb 09 13:06:12 (and in most cases just winging it( Feb 09 13:06:13 trivial code actually makes my VM crash Feb 09 13:06:16 well.. hang Feb 09 13:06:20 Tricknology, awesome Feb 09 13:07:03 Tricknology: It's usually not a problem, but since I'm using 90dp for font-size, there's a lot of extra padding (even if I set includeFontPadding=false.. (it does help though, just not enough)) Feb 09 13:08:08 XeruX: I guess it makes sense.. I'll try to remember if i never need to use a huge font heh Feb 09 13:09:55 Found a hack on stackoverflow, but I'd rather use negative margin Feb 09 13:10:00 :p Feb 09 13:40:38 there is no way to capture key events from fragments, right? Feb 09 13:41:18 I need something like onKeyDown for View. Feb 09 13:42:50 time to code!! ill kick some buts if ill get 1 error on the way! Feb 09 13:43:09 (listening to c64 music to hypen me up!) Feb 09 13:44:22 nice set Tricknology thanks for the link Feb 09 13:45:28 If I press a button, a see-through overlay should appear over everything (and I should be able to draw on it) how would one implement this? :s Feb 09 13:46:02 yee :) thanks i found it randomly Feb 09 13:46:41 over everything, or over everything you clicked on XeruX ? Feb 09 13:47:03 (except for the skrillex, I do feel a bit dirty right now) Feb 09 13:47:52 storkme: the whols screen Feb 09 13:47:57 whole* even Feb 09 13:49:16 there is more on the dudes page... many many more mixes Feb 09 13:49:27 also check out sex pixels Feb 09 13:53:43 at what size would you start to consider if an apk is too big to download? Feb 09 13:54:12 at the moment I have an app which is 7MB, but most of that are images specific to languages Feb 09 13:54:29 so if it was just one set of images it would cut it down to 1MB Feb 09 13:55:18 it all depends on your audience Feb 09 13:55:37 yeah I guess Feb 09 13:55:48 that said, i don't think it's ever a bad idea to download static content *after* you've installed the app Feb 09 13:56:14 ^ That's what a lot of large games do now. Feb 09 13:56:14 particularly if these language-pack images are optional Feb 09 13:56:53 they are not optional Feb 09 13:57:03 they go off the phone language Feb 09 13:57:14 its just the text that is different on the images Feb 09 13:57:20 ah Feb 09 13:57:40 I saw that we should overlay text and just have the one set of images but they decided against that Feb 09 13:57:41 is there no way you could build those using xml instead? Feb 09 13:57:46 oh Feb 09 13:57:57 it seems silly Feb 09 13:58:12 maybe I will talk with the boss and the client and see what they want to do Feb 09 14:00:57 morning all. Im creating a widget where actions taken in the app itself need to update where a button in my widget takes them in the app. How ever onUpdate only seems to run when I install the widget. How can I fire the AppWidgetProvider from within my app? Feb 09 14:05:42 sounds like it might save you a lot of space jiduvah Feb 09 14:06:54 it would, I have just been checking on different phones. It would be one of the biggest apps on most of them. I quite regularly run out of space on my desire so I think it would make sense to change it Feb 09 14:12:04 would OpenJDK work also in case I want to update android using android-sdk-linux/tools/android ? Feb 09 14:26:57 guys, when my device shutsdown, my service doesnt get to "ondestroy" Feb 09 14:27:02 shouldnt it? Feb 09 14:28:35 I believe you're only promised to get onpause in activities; i don't know if services are promised anything Feb 09 14:28:40 device shutdown is a bit of a special case, too Feb 09 14:29:40 I've a problem with activities whose launchMode is set to "singleTask" Feb 09 14:30:33 I have one activity which launches using two intent-filters - either as the start activity, or implicitly on certain Feb 09 14:30:58 When it uses the implicit launch, it also gets some extras set, and I will be able to read those in onNewIntent, as my activity is singleTask Feb 09 14:31:32 However, if I then defocus the activity (for example by hitting the home button) and launching it again, I will *again* get the same intent in onNewIntent Feb 09 14:32:07 which makes my application incorrectly parse the extras with the intent and think it's been launched via , when in reality it was launched from the applications menu of the device Feb 09 14:32:11 Any ideas on how to fix this? Feb 09 14:32:18 Any advice would be much appreciated :) Feb 09 14:36:02 I had a similar issue where I was simply too lazy to investigate how to do it properly.. Solved all my problems with putExtra("handled", true) in onNewIntent and checking that before parsing the intent :p Feb 09 14:36:14 anyone used KSOAP? Feb 09 14:39:30 does running ant clean also clean the lib projects? Feb 09 14:46:24 Hello world. Feb 09 14:48:53 How come the following regex doesn't match my link? ([^<]+) \[([^\]]+)\] || http://example.com [ninetwozero.com] ? :( Feb 09 14:49:15 It works when I validate it online (http://www.regextester.com/), but not inapp. Feb 09 14:51:20 SimonVT: interesting approach Feb 09 14:51:22 I might try that Feb 09 14:51:47 I've overrided getView on a ListView and I want to know how I can cancel the run so it won't make a ListItem if a certain condition is met. How can I do this? Feb 09 14:51:51 cyanogen my friend just installed ur rom he says u rock - on phone right now lol Feb 09 14:51:57 I was just about to try having a separate, very tiny activity do the catching of stuff and then switch to my main activity Feb 09 14:52:13 But I'm not quite sure if that would help in any case Feb 09 14:53:56 hey guys Feb 09 14:53:59 Can anyone help me with that? Feb 09 14:54:16 recently bought galaxy S2 Feb 09 14:54:23 but cam has no sound when i rec Feb 09 14:54:36 i mean its really bad sound Feb 09 14:54:43 i tryed different roms Feb 09 14:54:43 This isn't a Samsung helpdesk DeadMou5e Feb 09 14:54:56 yeah but its firmware stuff Feb 09 14:55:05 This is Android Programming Feb 09 14:55:05 with different rom Feb 09 14:55:09 sound was good Feb 09 14:55:24 sry Feb 09 14:55:25 Please use combined sentences instead Feb 09 14:55:54 This channel is much more for app development. android-root might be more useful to you. Feb 09 14:56:06 SimonVT: I'll try your suggestion and see if it'll solve my issue - if it does, it's surely good enough Feb 09 14:56:16 ok sry guys Feb 09 14:56:36 i though best thing is to ask for guys who develop stuff Feb 09 14:56:57 may i ask then tha can i use android 4.0 in my sam phone? Feb 09 14:57:13 Are application preferences not concurrent in widgets? Have some odd things happen. When I enter a part of my app i bookmark it with shared prefs. and update the weidget( the logs in the widget show im sending it the correct id) but then when I launch the app from the widget it always uses the first ID ever passed to it. Feb 09 14:57:23 Please go to the appropriate thread to ask these questions deadmouse Feb 09 14:58:00 People who develop apps don't necessarily develop roms (and most of us do not), so the android-root group would be more likely to know answers. As far as specific roms supporting specific devices, you should ask the people who maintain those roms. I'd bet a lot of people here use the stock roms, since they're targetting for general consumers. Feb 09 14:58:17 “Google Cloud” will take on Apple’s iCloud head-on Feb 09 14:58:21 Can anyone tell me how I can prevent (or remove afterwards) a ListItem from being created during an overrided getView using a ListAdapter? Feb 09 14:58:23 wtf does icloud do that google already doesnt Feb 09 14:59:15 shinier name Feb 09 14:59:20 bigger marketing budget Feb 09 14:59:24 need i go on Feb 09 14:59:45 Mr canadiancow|work Feb 09 14:59:47 general appley-ness Feb 09 15:00:04 canadiancow|work: I really think Google Drive is just an up grade of google docs but they let you upload what ever you want to it as well, with a bunch of other features. I saw a screen shot of it by accident. But im sure their is more to it then what I saw. Feb 09 15:00:27 that doesnt answer my question Feb 09 15:01:17 you didn't ask a question, you stated something. Next time, use a question mark Feb 09 15:02:54 Anyone here able to help me with my regex? :-) Feb 09 15:03:04 It should be working, but it seems like I'm missing to escape something (maybe?). Feb 09 15:03:25 I get a headache just seeing the word "regex" :P Feb 09 15:04:22 Zider: Then this aughta make you feel better: ([^<]+) \[([^\]]+)\] || http://example.com [example.com] Feb 09 15:04:26 :-) Feb 09 15:04:38 n20: *migraine* :P Feb 09 15:05:37 how to getDefaultSharedPreferences from Fragment? Feb 09 15:09:53 Anything but a LT [Anything but a closing square bracket] is what it should be matching, yet it doesn't. Feb 09 15:11:29 Gentlecat: You should get the actual FragmentActivity-context and pass it to PreferenceManager.getDefaultSharedPreferences(Context parentContext); (as far as I know) Feb 09 15:11:41 SimonVT: Calling putExtra("handled", true) on the new incoming event and checking for its existance the next time I enter onNewIntent did not help Feb 09 15:11:57 The intent I'm getting seems to be an entirely new but completely identical intent, without the extra :/ Feb 09 15:12:11 hello Feb 09 15:12:39 Hello The_Fred Feb 09 15:13:03 n20, Hiyer Feb 09 15:13:20 Dragonene: look in new_task flag or somethin Feb 09 15:13:38 maybe Feb 09 15:13:57 mikedg: :D Feb 09 15:13:59 hm - I'm not quite sure what you mean Feb 09 15:14:12 neither am i Feb 09 15:14:21 but the wind blows correctly twice a moon Feb 09 15:14:27 (I'm relatively new to android development, I'm doing it for a Unity plugin for android) Feb 09 15:14:33 Does anyone know why when using BatteryManager in a Broadcast reciever, it makes ./adb logcat halt? Feb 09 15:14:42 aha, okay, eh... :P Feb 09 15:15:05 Im developing for API7 Feb 09 15:16:08 n20: thanks, this works PreferenceManager.getDefaultSharedPreferences(getActivity()) Feb 09 15:16:19 I should probably add that Im running Ubuntu 10.04lts, and eclipse Indigo Service Release 1 Feb 09 15:17:14 Gentlecat: :-) Feb 09 15:17:31 hello.. i have a problem.. i want to use context menu with a listview.. i used registerForContextMenu(myListView); and overwrote onCreateContextMenu.. that works fine, when i click on a listitem the contextmenu pops up.. the problem is that onContextItemSelected doesnt get called when i click on a context menu item.. have i done anything wrong ? Feb 09 15:20:19 MEh - this is soo frustrating - i've not much work left to do, and then its ready for release to the market, bt with logcat dropping out, its really slowing me down Feb 09 15:24:08 lol the error was that i had an onMenuItemSelected method in the activity and it overwrote onContextItemSelected -_- Feb 09 15:26:43 Why does View.GONE still take up layout space when it clearly states it should not? Feb 09 15:27:05 it doesn't Feb 09 15:27:26 It clearly does since it's happening to me, I did some googling and others have asked the same question Feb 09 15:27:28 The_Fred: I feel the same - I just need that regex I posted above to work, and then it's pretty much just... trivial issues left. :-) Feb 09 15:28:16 n20, yup its a thorn in my side at the moment, I'll take abreak and check out your issue - having a breather might help... Feb 09 15:28:56 n20, could you re-post you link to pastbin - its before i logged in here Feb 09 15:29:01 guidocalvano_: hey man Feb 09 15:29:12 The reason I tried View.GONE (setVisibility) was to remove a listview in the overried getView class if a certain condition is met Feb 09 15:29:37 Jobo: then you and them are doing it wrong Feb 09 15:29:56 you have a listview in a listview? Feb 09 15:29:58 ? Feb 09 15:30:02 No, a list item Feb 09 15:30:12 ok dwg Feb 09 15:30:25 Jobo, Id recommend using View.INVISIBLE - I had a problem with NPE because it was GONE - i just needed it hidden Feb 09 15:30:36 list items have a minimum height typically Feb 09 15:30:38 Yes fred I've tried that, but it still takes up layout space Feb 09 15:30:52 and the list items are following a layout of mine Feb 09 15:31:08 hmmm Feb 09 15:31:14 you are trying to hide an element of a list item? or the entire list item? Feb 09 15:31:15 When I set it to invisible, it's just black. And takes up just as much space. Feb 09 15:31:23 Yes exactly mikedg, an element Feb 09 15:31:40 paste your xml somewhere i guess Feb 09 15:31:41 well, the whole list item itself rather, but not the entire list, is what I meant Feb 09 15:32:03 bpast your getview code then Feb 09 15:32:09 am on it already Feb 09 15:32:20 What would be a good way to cancel an ASyncTask if it takes too long? Say if a HTTP request doesn't happen within 30 seconds or something Feb 09 15:32:28 Jobo, why not try changing the .setHeight and .setWidth??? Feb 09 15:32:33 youd need getCount or getItemCount oir whatever it is to return a smaller number then Feb 09 15:33:00 The_Fred it doesn't seem to have a setHeight parameter Feb 09 15:33:02 to do it right, you really need to change the adapter Feb 09 15:33:12 to do it hackily theres ways to modify the height Feb 09 15:33:18 but it screws up dividers Feb 09 15:33:36 Jobo, right - yea, sorry - need coffee ... Feb 09 15:33:59 http://pastebin.com/8RXErxuw Feb 09 15:34:02 Here's my getView class Feb 09 15:34:33 getView is not a class Feb 09 15:34:41 yeah, i was gonna say that too Feb 09 15:34:46 :) Feb 09 15:34:47 you need to modify minHeight Feb 09 15:35:10 i think by default its @android:attr/listPreferredItemHeigh Feb 09 15:35:15 im not actually convinced that code compiles Feb 09 15:35:28 its going to screw up the heights of most of your views probably though Feb 09 15:35:53 So if I change minHeight to 0, will it jump to that height when set to View.GONE? Feb 09 15:36:14 it should Feb 09 15:36:20 I shall try that out Feb 09 15:36:30 i have working code for hiding listview craps somewhere, but i dont feel like looking for it Feb 09 15:36:32 since im at work Feb 09 15:36:49 dont do it this way Feb 09 15:36:54 make a good adapter Feb 09 15:37:02 he's not goign to be able to make a good adapter Feb 09 15:37:11 probably not Feb 09 15:37:15 see Feb 09 15:37:19 or, I will Feb 09 15:37:24 but I won't udnerstand most of it :p Feb 09 15:41:11 The_Fred: ([^<]+) \[([^\]]+)\] || http://example.com [example.com] Feb 09 15:41:28 yikes Feb 09 15:41:43 is it normal to have onClick listener on a text but it doesn't work untill you hit it for the 3rd time... its like its lagging or something. Feb 09 15:41:44 so i assume your web scraping? Feb 09 15:41:46 The_Fred: I never seem to grasp whats differentiates JS-regex from PREG/Java Feb 09 15:42:32 The_Fred: Actually, no, not really. I just need to parse content that's got urls in html-form. :( Feb 09 15:42:42 Or ok, it's scraping but very little. :-) Feb 09 15:43:30 The_Fred: I need to replace html-links + bracketted text (like the example specificed above) with the url it's pointing to Feb 09 15:43:56 n20, so what happens when you use .replace ? Feb 09 15:44:24 I'm using it via Pattern/Matcher, as there might be multiple occurences. :) Feb 09 15:44:31 The_Fred: And nothing happens, it doesn't match it. :( Feb 09 15:44:32 If I use a content adapter for a listview. Is it possible to get one of the field in the onItemClick to add it as extra in an Intent? Feb 09 15:46:14 n20, bear with me - i have a search running - i know i did this before im just not certain if it was java or python Feb 09 15:46:28 Doesn't java regexp support non-greedy matching? Feb 09 15:46:34 like (.+?) Feb 09 15:47:20 the ? make it non-greedy so it will stop at " or < for example Feb 09 15:47:40 that's how perl regexp works at least... Feb 09 15:48:17 Mikellip: I'll have to try that. Hang on . :) The_Fred Feb 09 15:48:44 ah - ok ... i did find this Feb 09 15:48:46 String xxx = (mystring.trim().replace(" ", "%20")); Feb 09 15:50:42 I was wondering if someone could help sort out a small question I had about In-app Billing Feb 09 15:51:00 The_Fred: I'm already doing that one for my userinput for urls... :D Feb 09 15:51:02 Don't ask to ask, just ask :-) Feb 09 15:51:20 * n20 hates In-app billing :( Feb 09 15:52:23 When restoring transactions, does the Market service return all previous transactions, even if it was refunded? Feb 09 15:52:44 n20, I only suggested that because I with a simple nested IF block I was able to replace text in a webview Feb 09 15:52:45 Or will is smart enough to match a purchase with a later refund? Feb 09 15:52:57 Or is it* Feb 09 15:53:43 The documentation in this area leaves something to be desired Feb 09 15:55:47 brimpa, any joy with the android-developers mailing list? I've seen a lot of relevant questions and answers Feb 09 15:57:15 The_Fred: I've searched a few times but I'll take a look again Feb 09 16:00:52 can somone tell me whats best soft for galaxy s2 Feb 09 16:01:21 what? Feb 09 16:10:37 it typically prefers vanilla pudding for its soft. Feb 09 16:10:54 But sometimes you can get by with chocolate, but it will force close from time to time. Feb 09 16:12:56 if i wanted to create android emulator configurations that matched the display options of various physical devices (excluding proprietary UI extensions), what approach is recommended? Feb 09 16:15:32 jhight: many vendors have emulator skins / configs Feb 09 16:15:42 jhight: and or vendor-specific roms for the emulator. Moto does. Feb 09 16:15:46 hey, guys, i'm making experiences with a Spinner, it's possible to create 2 spinners, and the choices of the second it's based on the choise of the first one, it's that possible? Feb 09 16:16:11 dragorn: i've seen motorola's in the android package installer, but where can i find others? Feb 09 16:16:23 jhight: I don't know; probably buried somewhere on the vendor sight Feb 09 16:16:24 wow Feb 09 16:16:27 i'm tired. site. Feb 09 16:16:33 thanks :-) Feb 09 16:16:55 jhight: but if there's a canonical reference for a device, it'd be on the vendor site somewhere, maybe near the driver download for windows? Feb 09 16:17:30 I want to display a notification when my app is not in the foreground, but do something else when it is. How do I tell the difference from my service that dispatches the notification? Feb 09 16:17:54 Also, can a notification activate a blank display? Feb 09 16:18:04 jhight: I see some skins for devices w/ a quick googling, tho someone is saying htc doesn't provide specific setups for the emu Feb 09 16:18:32 dragorn: yeah, i didn't think to search on the manufacturer's sites … i see a few, too Feb 09 16:18:40 manufacturers' even Feb 09 16:19:34 dang`r`us: You could try using a different action for the Intent that you're sending to the Notification Feb 09 16:20:10 dang`r`us: Or are you asking how to determine whether or not the Service is in the foreground? Feb 09 16:20:31 brimpa, I want to determine whether the app is in foreground, yes Feb 09 16:20:41 is this a reasonable solution? http://stackoverflow.com/questions/2314969/how-to-determine-if-one-of-my-activities-is-in-the-foreground Feb 09 16:22:55 when was support for "drawaboe-xhdpi" added? Was it with Eclair? Feb 09 16:23:25 dang`r`us: I remember coming across that thread before but I ended up not needing to use it -- I suppose it's worth trying Feb 09 16:23:35 brimpa, how did you solve it? Feb 09 16:23:53 dang`r`us: Are you using startForeground() to bring bring up the Notification? Feb 09 16:24:22 brimpa, no, I probably missed that. let me try. Feb 09 16:25:28 dang`r`us: I only ask because you could just maintain the state with a member `boolean mIsInForeground = false;` Feb 09 16:26:15 dang`r`us: and toggle it as necessary (before/after you calls to startForeground() and stopForeground()) Feb 09 16:26:21 your* Feb 09 16:27:56 brimpa, hm, not sure if I follow. Feb 09 16:28:35 I don't want to force anything to the foreground, I just want to tell whether the user is currently "in the app" Feb 09 16:33:50 dang`r`us: You could do something like the following to count the number of Activities you have running Feb 09 16:33:53 dang`r`us: https://gist.github.com/1780940 Feb 09 16:34:02 someone know the LunarLander sample of android? Feb 09 16:34:14 brimpa, will have a look, thx Feb 09 16:37:09 souliaq what is with it? Feb 09 16:37:46 I'm new in android, I need understand this line: Feb 09 16:37:54 mLunarView = (LunarView) findViewById(R.id.lunar); Feb 09 16:38:23 // get handles to the LunarView from XML, and its LunarThread Feb 09 16:38:53 obtain handle from XML?, the handle is some in runtime, right? Feb 09 16:43:18 souliaq: basically. it's using the auto-generated references (R.java) to look up the item from your layout and return the instantiation created by the android framework Feb 09 16:51:33 i am trying to upload a change to gerrit with "repo upload" Feb 09 16:52:20 gerrit documentation says i first need to add an ssh key to the "SSH Public Keys" tab in "Settings": https://android-review.googlesource.com/Documentation/user-upload.html Feb 09 16:52:55 but when i click "Settings" in the gerrit web interface, i see no "SSH Public Keys" tab Feb 09 16:53:05 how can i upload my change to gerrit? Feb 09 17:00:32 does anyone have an idea about camera-over-v4l support under Android? Is the http://gitorious.org/unified-camera-hal project indeed _the_ way to go? I.e., the most active and advanced out there? Feb 09 17:18:04 Hi Feb 09 17:18:12 hi Feb 09 17:18:20 I got this error "device/htc/bravo-common/libsensors/sensors.c:112: error: empty scalar initializer" when I execute "make" Feb 09 17:18:24 any idea ? Feb 09 17:22:16 punxos: compiling against a different reference header. http://forum.xda-developers.com/showthread.php?t=863881&page=5 ... This isn't really a rom-dev channel tho, so that's about as far as I bothered to look. android-root might be more useful. Feb 09 17:24:00 dragorn: ok, thx Feb 09 17:29:02 Hi, what kind of tools exist in the SDK for accessing RESTful APIs? Feb 09 17:30:35 hello Feb 09 17:31:02 Which class is used to parse the android manifest file ? Feb 09 17:31:19 hi guys i am building a small app which displays phone contacts and on clicking on it, dials the contact. Feb 09 17:31:41 the app works fine. but on click, instead of dialing the number, the app crashes.. why would this happen ? Feb 09 17:31:44 can anybody help ? Feb 09 17:32:30 arkiver: Could you post your stacktrace? (On a pastebin) Feb 09 17:35:30 eclaesson, sure. just a minute Feb 09 17:38:44 eclaesson, i have posted the logcat just when the application crashes here: http://pastebin.com/pHfsDsWK Feb 09 17:39:55 what are the pros and cons of using andromo instead of using the android sdk for ap development ? Feb 09 17:41:18 is there a way to start a dialog from a broadcastReceiver like I can show a Toast message?? Feb 09 17:43:19 kenalex: "With Andromo, anyone can make a professional Android app" <- that dinged my BS detector Feb 09 17:43:54 arkiver: In you onListItemClick handler, you get a NullPointerException. Are there anything there that aren't initialized? Feb 09 17:44:58 Should I really have to create a DOM just to forking get the data from a link? It seems like a bad idea Feb 09 17:45:18 It's one link damnit, why won't it work? Feb 09 17:45:29 mitchnull:ok :) Feb 09 17:45:31 * n20 wants to ragequit Eclipse until it solves the problem for him. Feb 09 17:46:33 I would like to get access to http://agi.tsn.at/index.php?page=A009 but if you not logged in before you will be directed to the main page. The site works with a cookie. How do I get the cookie and then get data from http://agi.tsn.at/index.php?page=A009? Feb 09 17:46:37 are there any android devices that can't use opengl? Feb 09 17:48:07 evancharlton, can i pm you? Feb 09 17:48:35 is anyone interested in a rudimentary augmented reality engine? Feb 09 17:48:45 i worked on it for a game but then i got bored and haven't touched it in half a year Feb 09 17:48:54 andengine has that already Feb 09 17:49:02 finsdelosmundos: sounds like everything of mine Feb 09 17:49:05 andengine is a piece of crap Feb 09 17:49:14 your mom is a piece of crap! Feb 09 17:49:15 you're a piece of crap Feb 09 17:49:22 * canadiancow|work high fives mikedg Feb 09 17:49:22 andengine is bloated upon bloat Feb 09 17:49:26 how so? Feb 09 17:49:33 my mother is a saint. YOU TAKE THAT BAKC Feb 09 17:49:37 canadiancow|work has graduated to troll level -3 Feb 09 17:50:02 i started going to the dentist again to clean up my teeth Feb 09 17:50:09 and now they are more senesitive than ever :/ Feb 09 17:50:16 after 3 new fillings, wtf Feb 09 17:50:38 mikedg: It'll pass Feb 09 17:50:50 mikedg: I had that once (that it actually felt "worse" afterwards) Feb 09 17:50:51 :D Feb 09 17:51:04 its been like 3 weeks since i last went though Feb 09 17:51:42 mikedg: Swing by my home practice, and I'll give it a look Feb 09 17:51:48 lol Feb 09 17:51:58 * n20 isn't a dentist, but could use the regex help he'll try to get Feb 09 17:52:02 :D Feb 09 17:52:42 wat Feb 09 17:58:40 eclaesson, ill just check . Feb 09 18:00:20 eclaesson, some methods and parts in the code are deprecated. can it be the problem ? Feb 09 18:01:19 eclaesson, This is my java file content: http://pastebin.com/52b0Uuxe Feb 09 18:03:42 arkiver: Line 43 is where the error happends. Are you sure mAdapter isn't null? Feb 09 18:05:33 arkiver: You have a public member mAdapter, and then you have mAdapter in onCreate(). Remove SimpleCursorAdapter from line 29 and it should work better Feb 09 18:05:42 I wonder who the asshat that gave qicr a 1star without saying anything is Feb 09 18:06:50 im going to give it a 2 star Feb 09 18:07:18 do eet Feb 09 18:08:24 ddone Feb 09 18:08:38 mikedg what did you 2star? Feb 09 18:08:45 ** Nice app but...I think he's stilling my passwords and buying Google Wallets with my cards. DTP Don't Trust PFN Feb 09 18:08:48 https://market.android.com/details?id=com.hanhuy.android.irc.lite&hl=en Feb 09 18:09:00 If a Service sets an Alarm in the AlarmManager, and then the service is killed by the system, will that Alarm still fire? Or is it cleared? Feb 09 18:09:15 alarms last until reboot Feb 09 18:09:19 independent of app Feb 09 18:09:32 pfn, you sure about that? Feb 09 18:09:46 of course Feb 09 18:09:50 I was in the Android office hours yesterday, and 1 of the devs said something that seemed to contradict that Feb 09 18:09:50 i am sure Feb 09 18:09:55 but he moved on b4 i could ask him about it Feb 09 18:10:00 he's an idiot Feb 09 18:10:05 lol Feb 09 18:10:12 he's on the Framework team :P Feb 09 18:10:16 why do you think he works for Google and not me? Feb 09 18:10:19 hi there! i have a listfragment which by itself does not know how exactly it is embedded in the host activity. now, on a list item click i'd like the fragment to replace _itself_ with another fragment. is this possible at all? Feb 09 18:10:31 Wavesonics, what did he say exactly Feb 09 18:10:49 he said that if a process is killed by the system, it's alarms are cleared Feb 09 18:10:53 hes an indiot unless hes morril, ctate, evan, or jbq, or anyone who comments on my twitter :) Feb 09 18:11:09 it's possible that changed,but i highly doubt it Feb 09 18:12:15 currently i'm trying to do so using FragmentTransaction ft = ...; ft.replace(getId(), , getTag()).addToBackStack(null).commit(); and as a matter of fact, the "old" fragment disappears, but i don't see the new one :/ Feb 09 18:12:18 i could be wrong too http://stackoverflow.com/questions/6984723/alarm-manager-reliability Feb 09 18:12:37 # adb shell dumpsys alarm Feb 09 18:12:45 In my app I want to send email using existing account on device. But I don't want to use email app to do it, I want to get userName/password associated with the account and use that to send email myself. Can I do that? Feb 09 18:12:49 antianno: Use an interface to call back to the Activity, have that do the transaction Feb 09 18:12:59 xbb: no Feb 09 18:13:41 mikedg, this is all made much more difficult b/c the failure (for me) happens after running for HOURS, and while i'm asleep usually. Feb 09 18:13:49 mikedg, thanks. Is there way I can use existing account to send email without user interaction? Feb 09 18:14:02 SimonVT: hm, that's exactly what i'm trying to avoid because the fragment is used by several activities but should behave exactly the same in each one ... Feb 09 18:14:05 I need to set it up w\ a laptop and dump logcat to a file throughout the night Feb 09 18:14:15 SimonVT: where would be the difference, anyway? Feb 09 18:14:18 Wavesonics: i guess that explains why so many people bitch about 3rd party alarm clocks Feb 09 18:14:19 wooops Feb 09 18:14:35 mikedg, right! Thats what I'm making :P Feb 09 18:14:57 my "AlarmClock" relies on a service. So maybe the solution is making it a foreground service Feb 09 18:15:38 the alarm app i use has an ongoing notification Feb 09 18:15:41 dont know if it's a foreground service Feb 09 18:16:00 eclaesson, i removed the SimpleCursorAdapter like u said and let the public declaration be as is. but the problem persists :( Feb 09 18:16:06 canadiancow|work, yes it is. since 2.0 you HAVE to have a notification in order to be a foreground service Feb 09 18:16:16 anyone know how to dictate the email keyboard through edit text? Feb 09 18:16:16 huh, shouldn't this stream logcat to a file? adb logcat -f C:\Users\xxx\Desktop\logcat.txt Feb 09 18:16:17 thats not what i said Feb 09 18:16:22 basically i was implementing this tutorial : http://l8rs.blogspot.in/2009/03/android-sample-list-contact-book-and.html#!http://l8rs.blogspot.com/2009/03/android-sample-list-contact-book-and.html Feb 09 18:16:25 foreground service implies notification Feb 09 18:16:29 but the reverse is not true Feb 09 18:16:32 antianno: Fragments shouldn't handle navigation like that imo Feb 09 18:16:34 all i see is a notification Feb 09 18:16:45 arkiver: Well, mAdapter seem to be null when your listitm is clicked Feb 09 18:16:47 canadiancow|work, ya, i didnt say they did :P Feb 09 18:16:53 It should only care about its own state Feb 09 18:17:01 And let the Activity handle transactions, etc Feb 09 18:17:35 mikedg, so I would I go about sending email silently when particular even occurs? Feb 09 18:17:49 xbb: you need credentials from the user somehow Feb 09 18:17:50 I don't want to ask for username/password in the app. Feb 09 18:17:56 Hello again, I 've created a custom view that only implements onDraw and draws a rectangle, but the rectangle (or anything else I draw) appears very dark. Do I miss something? Feb 09 18:17:58 or if you dont need it to be sent from the user Feb 09 18:18:10 you can tell a server of yours to send an email Feb 09 18:19:21 obviously I miss something, in another project another custom view works. Feb 09 18:19:25 here it's very dark. Feb 09 18:19:45 mikedg, is that a security measure that I can't query existing accounts? I presume password is hashed somehow? Feb 09 18:20:05 eclaesson, oh yes. i seem to have made an error while declaring mAdapter Feb 09 18:20:12 it is supposed to be a private variable Feb 09 18:20:18 whereas i made it public. Feb 09 18:20:26 i think the problem was there Feb 09 18:21:02 xbb: security measure Feb 09 18:21:24 ok Feb 09 18:21:32 whops Feb 09 18:22:25 eclaesson, it is giving me an exception saying no activity found to handle intent. will i need to create another activity for this intent ? Feb 09 18:23:08 new logcat Feb 09 18:23:09 http://pastebin.com/strk0Jcg Feb 09 18:23:13 SimonVT: hmm okay then, i'll try it with an event interface, thx so far :) Feb 09 18:23:37 does anyone know how to get the keyboard with the @ in it to show up on only 1 edit text box Feb 09 18:24:15 dunivan: say, for email input? Feb 09 18:24:22 arkiver: It can't find the activity you are trying to launch Feb 09 18:25:20 right antianno Feb 09 18:25:27 dunivan: if you declare the edit text in an xml, try "android:inputType='textEmailAddress'" Feb 09 18:25:51 arkiver: Hmm.. does your app has permission to do a phonecall? Feb 09 18:26:20 dunivan: programmatically, editText.setRawInputType(TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_EMAIL_ADDRESS); Feb 09 18:26:26 thats what its at antianno but it does not show up when you select it Feb 09 18:27:47 dunivan: hm, sry, have to catch my bus ... but i'm clueless anyway, if it doesn't work that way Feb 09 18:27:56 bye * Feb 09 18:28:29 Hi guys : ) Feb 09 18:28:30 later Feb 09 18:30:38 every build i send to a client and they install ends up being an old version of the app Feb 09 18:30:46 what could cause that? Feb 09 18:31:05 we've already wiped every copy off their computer and device and reinstalled Feb 09 18:31:44 Is there a way to use Activity#managedQuery but with a GROUP BY statement? If not, What is the preferred way?(API level 8 here) Feb 09 18:31:56 set a higher version in properties and build again Feb 09 18:34:26 how do i specify the current OS theme in my app? Feb 09 18:36:34 jasonmog: AndroidManifest.xml -> Application Nodes -> your node -> theme Feb 09 18:40:17 ok Feb 09 18:52:47 Anyone here do any unit testing around things that extend android classes, for instance WebChromeClient Feb 09 18:53:23 I have added a tab activity to my widget app. Whenever I push the app to the device for testing it always displays this new tabactivity without me even loading the widget and calling the relevant pending intient, why is this? Feb 09 18:53:49 you have it as main launcher intent in manifest.xml Feb 09 18:54:25 hey guys, how do I get the text from an expandablelistvies's parent? Feb 09 18:55:17 thanks mikedg Feb 09 18:55:21 silly of me :D Feb 09 18:55:25 no problem Feb 09 18:55:45 weird, if I use list navigation in actionbar on honeycomb, it dies saying layout_height must be specified, even though I have it set to ?android:attr/listItemPreferredHeightSmall Feb 09 18:55:59 (listItemPreferredHeightSmall has been around forever) Feb 09 18:56:08 what if you just specify something Feb 09 18:56:13 now I have it hard-coded to 48dip in layout-large/ :( Feb 09 18:57:55 and it works? Feb 09 18:57:58 weird Feb 09 18:58:13 yeah Feb 09 18:58:14 I know Feb 09 18:58:37 and ?android:attr/listItemPreferredHeightSmall works just fine on ICS Feb 09 19:04:55 anybody? Feb 09 19:05:15 how to get the text from a parent in an expandablelistview? Feb 09 19:05:21 what's the parent Feb 09 19:05:57 and if nobody answers, it's probably a good idea to look at every single api in expandablelistview to see if there's one that might remotely do what you need Feb 09 19:07:34 how do i change the theme on my device? Feb 09 19:07:41 wtf are you talking about? Feb 09 19:07:47 eclaesson, oh yes.. i have given permissions in the manifest. Feb 09 19:08:04 jasonmog, install a 3rd party rom that has a different theme Feb 09 19:09:19 and about the activity , nothing is mentioned regarding it in tutorial. but i think ill put in a dummy activity and see if it works out. Feb 09 19:09:25 well i can get the text from the child.. no problem.. the text from the parent is anohter story... Feb 09 19:09:31 parent = cars Feb 09 19:09:36 child = lamborghini Feb 09 19:09:41 eclaesson, Thanks for all your help. really appreciate it ! Feb 09 19:12:10 will continue working on it tomorrow. Feb 09 19:13:53 * pfn ponders where to hide the lag-o-meter on his irc client Feb 09 19:14:00 hey can anyone tell me how I can give onTouchEvent an event parameter? Feb 09 19:14:30 it takes a TouchEvent, what are you asking? Feb 09 19:14:33 er, MotionEvent Feb 09 19:14:36 cause I wanted to do if(onTouchEvent()) but where is it getting the event? Feb 09 19:14:56 uh, how would you be able to do that Feb 09 19:15:06 what do you think if (onTouchEvent) will do? Feb 09 19:15:09 surfaceview passes the onTouchEvent a touchEvent parameter, where is it doing that? Feb 09 19:15:17 in the framework Feb 09 19:15:23 how do you expect to call onTouchEvent yourself Feb 09 19:15:33 why do you want to call onTouchEvent yourself? Feb 09 19:15:33 save the MotionEvent in onTouch Feb 09 19:15:42 I want to do if(onTouchEvent(TouchEventFromApplication)) Feb 09 19:15:53 Hey guys! question: I'm trying to call a method wen I click on a button, I setted the onClick property but when I run the app I get this from debugger " E/AndroidRuntime(344): java.lang.IllegalStateException: Could not find a method (View) in the activity" Feb 09 19:15:53 then call if (myDelegateInOnTouch(myLastMotionEvent)) Feb 09 19:16:10 why? Feb 09 19:16:24 pfn what does that line do? Feb 09 19:16:30 ei2matrix, the method you defined for android:onClick is not defined Feb 09 19:16:37 eddi3x3, I recommend you read thinking in java first Feb 09 19:16:45 eddi3x3, then come back after you're done Feb 09 19:17:00 mikedg, if you're gonna say you think I'm stilling your infoz you gotta at least gimme 5* :p Feb 09 19:17:00 eddi3x3: what do you think if (onTouchEvent()) is going to do? Feb 09 19:17:02 pfn but if I write it in a method after onCreate S Feb 09 19:17:23 ei2matrix, you defined android:onClick improperly Feb 09 19:17:31 onTouchEvent() won't work Feb 09 19:17:40 C2DM is android push notification correct? Feb 09 19:17:41 I know that already Feb 09 19:17:48 roger_padactor: yes Feb 09 19:17:52 maybe I was being very stupid with my explanation Feb 09 19:17:55 performClick Feb 09 19:17:56 and for that matter, what is onTouchEvent Feb 09 19:18:02 pfn: changed to five Feb 09 19:18:06 mikedg, thanks Feb 09 19:18:13 but no, now I know what to do, I'll just make an event variable to hold the onTouchEvent Feb 09 19:18:15 no? Feb 09 19:18:27 you can do that... Feb 09 19:18:28 pfn: android:onClick="checkOption" on xml Feb 09 19:18:39 ei2matrix, and you have public boolean checkOption(View view) ? Feb 09 19:18:55 thanks Feb 09 19:19:00 pfn: let me see Feb 09 19:19:16 there are references to themes black, holo, light but how do i enable them at the OS level? Feb 09 19:19:32 jasonmog, they are enabled for apps, not for the OS Feb 09 19:19:33 i bet eddi3x3 is not going to get anything remotely workable Feb 09 19:19:37 ah Feb 09 19:20:14 Hello. I have following "button bar" layout: http://www.pasteall.org/29004 . I want to set its width to 10% of the screen width but not more than 86px but apparently andrioid:maxHeight doesn't seem to work. Any clue how to achieve that? Feb 09 19:20:29 pfn: Now work, I was swtting to private, but why I need public and boolean method? Feb 09 19:20:48 maxWidth? Feb 09 19:20:52 ei2matrix, dunno if boolean is required, but private vs. public is obvious Feb 09 19:21:10 mikedg: maxWidth, sorry :-) Feb 09 19:21:11 ei2matrix, read the definition of what private means Feb 09 19:21:32 pfn: Ok!, thanks Feb 09 19:21:41 you want a horizontal layout not to be more than 10% of the screen width? Feb 09 19:21:58 or you mean the relative layout? Feb 09 19:22:09 mikedg: yes but also not more than 86px Feb 09 19:22:23 86px? why are you not thinking in dip Feb 09 19:22:49 yeah one px is bad :P Feb 09 19:23:02 2, try wrap_content for width with maxWidth = 86dp Feb 09 19:23:07 pfn: because this button bar overlays webwiew which is rendering fancy graphics with fixed that size restrictions Feb 09 19:23:12 which i think is half an inch? Feb 09 19:23:28 Hmm... I have an asynctask that removes the dialog if we found a cache, otherwise it keeps downloading the new data with the dialog up. Feb 09 19:23:31 ok the do 86px, but its gonna suck on high density devices Feb 09 19:23:57 But awesome on ldpi devices! Feb 09 19:23:58 bleh i cant figure this out.. should be easy :( getting text from the parent view in an expandable listview Feb 09 19:24:01 mikedg: yes, I know, I have to live with that Feb 09 19:24:17 The issue is that even if its removed the dialog (and I get readings that I actually have a cache), upon switching to the appropriate tab shows that the input = null. Feb 09 19:24:20 o_o Feb 09 19:24:38 oh eh my sugegstion wont work for the 10%, i dont know :9 Feb 09 19:27:09 n20, the first question is what is input Feb 09 19:27:19 mikedg: ok, thank you anyway, I'll try to force that size in code Feb 09 19:27:20 and what does dialog or asynctask have to do with input Feb 09 19:27:29 oh god.. it was two frickign lines Feb 09 19:28:32 Tricknology, yeah, should probably spend a little bit of time thinking instead of repeating your question :) Feb 09 19:28:52 shooot, i've been thinking since yesterday morning.. Feb 09 19:29:34 Have a question for everyone, I'm trying to make a service that runs in the background that constantly polls a socket connection for incoming messages. I want the activities to be able to also send messages to the socket and then the service that is running in the background will be able to publish messages to the various activities. What type of service do I need? IntentService? I tried the following and instead of using timertask used Feb 09 19:29:49 lazer_man: question rejected. Feb 09 19:30:39 pfn: I understand the difference between private & public, but my method is in the same class, so, why Can't I access from my onCreate method to the private? Feb 09 19:32:07 i am using 2 webviews, in the first i got a session cookie, in the second should the cookie not be used or sent to the remote server, how can i achieve that? Feb 09 19:32:16 If i want a service in the background that constantly polls a socket connection, what type of service should I use? IntentService? Feb 09 19:32:19 ei2matrix: you should never really call your own oncreate Feb 09 19:33:06 ei2matrix, who do you think is actually calling your handler Feb 09 19:33:19 think hard Feb 09 19:33:33 lazer_man, intent service definitely not Feb 09 19:34:21 pfn: Oh, Button class call Feb 09 19:34:31 I tried a regular service, but the thread keeps blocking the ui. It seems like it should be so easy. I just want the activities to be able to push messages to the service which post to the socket, and the thread to publish messages to the activities Feb 09 19:34:46 hello Feb 09 19:34:48 i wonder if i put a 'paypal donate' button in one of my apps someone will actually donate Feb 09 19:34:58 lazer_man, this can be done via a handler Feb 09 19:35:03 ive had people email me offering me doinations before Feb 09 19:35:17 to which i have always replied "if i wanted donations, there would be a very obvious way for you to do it" Feb 09 19:35:30 indeed Feb 09 19:35:30 so if your app is good enough, you will definitely get something Feb 09 19:35:48 my apps get good downloads Feb 09 19:35:53 im thinking about trrying it Feb 09 19:36:20 Just make a paid app ;O Feb 09 19:36:28 oh i have a few of those too Feb 09 19:36:28 is it normal, if the emulator with android 2.2 is booting for more than 20 minutes? (with -no-boot-anim), on an Intel COre i7 2600k Feb 09 19:36:30 lazer_man: IntentService does not run in a separate thread Feb 09 19:36:37 lazer_man: you'll need to do that yourself Feb 09 19:36:42 err Feb 09 19:36:42 Or use in app billing for donations Feb 09 19:36:43 wait Feb 09 19:36:45 intentservice does Feb 09 19:36:49 * MDijkstra slaps self Feb 09 19:37:02 I make 2000 euros / year off donations Feb 09 19:37:04 will look into that simonVT Feb 09 19:37:04 So if I start a thread in a service does that always block the ui? Feb 09 19:37:16 nope Feb 09 19:37:16 aolin: thats great! Feb 09 19:37:21 IntentService should work just fine Feb 09 19:37:25 pays my dev costs (not including work ofcourse) Feb 09 19:37:42 and I don't have donate button in the app, just in the web site Feb 09 19:37:49 works great Feb 09 19:38:27 im thinking bout extending some of my free apps to pro versions Feb 09 19:38:40 adding more functionality where I can Feb 09 19:38:48 Im going to give the intentservice a shot, can I run a separate thread in the service as well (one that will constantly read input from a socket) Feb 09 19:39:03 simon76: thinking about same strategy on my Android version Feb 09 19:39:19 having most functionality for free, and then some special stuff on pro Feb 09 19:39:32 ye thats the idea Feb 09 19:39:36 i think its a good approach Feb 09 19:39:42 is it normal, if the emulator with android 2.2 is booting for more than 20 minutes? (with -no-boot-anim), on an Intel COre i7 2600k? Feb 09 19:40:06 no Donpedro, i would start a new AVD myself Feb 09 19:40:07 lazer_man: well, you'd have to worry about thread safety there Feb 09 19:40:46 simon76: do i need to change anything? Feb 09 19:41:28 hrm...so any suggestions for making something that can constantly poll a socket server, publish messages to activities, and receive messages from activities? Feb 09 19:42:01 i had this problem once Donpedro, i was on widows, the solution was to delete some .cache files Feb 09 19:42:12 from within the workspace directory if i rememebr correctly Feb 09 19:42:25 not sure if this would solve your problem though Feb 09 19:42:28 Donpedro: just kill it and restart Feb 09 19:42:45 sometimes booting emulator takes ages on my computer Feb 09 19:43:44 i just installed the SDK Feb 09 19:44:03 i guess that's why windows doesnt find any .cache files in the sdk folder Feb 09 19:44:21 kill/restart doesn't work neither Feb 09 19:44:48 also tried launching a 4.0 and a 4.0.3, even from the command prompt, same result Feb 09 19:46:24 hmm I dont know then Feb 09 19:46:35 I have had this kind of behaviour with the emulator before though Feb 09 19:46:48 and its damn annoying! Feb 09 19:46:55 idd =) Feb 09 19:47:02 have you tried system restart? Feb 09 19:47:08 i guess my best shot is to restar my computer Feb 09 19:47:15 brb Feb 09 19:49:46 does android SDK come with Ant ? Feb 09 19:50:35 hm i'm having trouble with an expendable list view in a linear layout... the group items are shown correctly, but the child items are cut away Feb 09 19:50:42 ah right it's with eclipse Feb 09 20:01:14 re Feb 09 20:05:09 Donpedro: any luck? Feb 09 20:05:18 not really :/ Feb 09 20:05:28 is it possible that it is stuck @ booting? Feb 09 20:05:39 is it possible that you can adb logcat? Feb 09 20:06:00 the nadroid logo is "shining" for 10-15 seconds, then it stops. disappears, then appears again, and so on... Feb 09 20:06:14 irrelevent Feb 09 20:06:19 hi, does anyone know a way to force a config change? say, for automated tests? Feb 09 20:08:03 Guys question: When I set an onClick prperty to a boolean method, how can I cath the response? Feb 09 20:08:44 pragma_: can i get further help with that? Feb 09 20:09:24 google adb logcat Feb 09 20:09:32 is no hard Feb 09 20:10:01 has anyoen had any ellipsize problems in ICS? Feb 09 20:10:10 im getting strange fucking characters Feb 09 20:10:21 after the ellipses Feb 09 20:11:01 * pfn wonders how andchat fixed their disappearing text in edittext problem Feb 09 20:11:34 http://stackoverflow.com/questions/5988976/edittext-stops-displaying-characters-as-i-type Feb 09 20:11:44 finally found a similar question, hmm Feb 09 20:12:07 pragma_: adb logcat keeps printing stuff constantly Feb 09 20:12:51 http://code.google.com/p/android/issues/detail?id=17508 Feb 09 20:12:54 ah Feb 09 20:12:56 good, read that stuff. Feb 09 20:13:11 gc race condition with weakrefs, interesting Feb 09 20:13:22 boring Feb 09 20:13:30 and completely irrelevent to me Feb 09 20:15:20 pragma_: i dumped it into a file, what shall i look for, specifically? Feb 09 20:16:07 useful stuff Feb 09 20:16:22 like? Feb 09 20:16:27 i can't google that Feb 09 20:16:56 warnings, errors, stacktraces, processes being killed, gibberish like that Feb 09 20:17:43 often the first boot after an install/uprgrade takes a long time, especially if you have a lot of apps installed Feb 09 20:17:55 you'll see a lot of dex/optimizing output Feb 09 20:19:16 has anyone used the Google Docs app to programmatically retrieve a document? it plays nice with sending from itself, but it doesn't have any activities in the manifest that support ACTION_GET_CONTENT though it does have several that support ACTION_PICK. Feb 09 20:19:51 http://stackoverflow.com/questions/8717083/ellipsize-attribute-not-working-on-android-4-0 Feb 09 20:20:00 ellipsize + custom font = failboat on ICS Feb 09 20:20:08 pragma_: stuff like this? -> F/SystemServer( 2330): BOOT FAILURE starting Input Manager Service Feb 09 20:20:10 O.o Feb 09 20:20:22 hello, is there any way to display the query made by SQLiteDatabase.query(...) for debugging purposes? Feb 09 20:20:40 F/SystemServer( 2330): BOOT FAILURE making display ready Feb 09 20:20:52 W/dalvikvm( 2330): threadid=11: thread exiting with uncaught exception (group=0x409961f8) Feb 09 20:21:13 AndroidRuntime( 2330): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread E/AndroidRuntime( 2330): java.lang.NullPointerException E/AndroidRuntime( 2330): at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:3877) E/AndroidRuntime( 2330): at com.android.server.ServerThread.run(SystemServer.java:295) Feb 09 20:21:24 may i upload it to pastebin? Feb 09 20:23:41 'Several individuals questioned Mr. Jobs' honesty stating that Mr. Jobs will twist the truth and distort reality in order to achieve his goals,' Feb 09 20:23:56 (from an fib file) Feb 09 20:24:01 fbi Feb 09 20:24:10 fib lie Feb 09 20:24:10 lol Feb 09 20:24:20 damn lion autocorrect Feb 09 20:25:19 g00s: what was the fbi file on? Feb 09 20:25:25 here is the whole file: Feb 09 20:25:27 http://pastebin.com/F6nfVLVq Feb 09 20:25:32 tophyr: on Jobs Feb 09 20:25:44 so it can not boot, but why? :/ Feb 09 20:25:45 well, clearly lol.. but why did they have a file on him? Feb 09 20:26:05 just interested in the context of the quote Feb 09 20:26:37 tophyr: http://apple.slashdot.org/story/12/02/09/1659208/fbi-file-notes-steve-jobs-reality-distortion-field Feb 09 20:26:52 hmm, "Apple now worth more than Google and Microsoft combined" Feb 09 20:27:05 ah, gotcha Feb 09 20:27:26 ah, so the solution to disappearing text is to use TextKeyListener.clear(edittext.getText()) Feb 09 20:27:29 interesting Feb 09 20:27:58 wow, ipad3 in first week or march maybe … Feb 09 20:28:06 one ever year... Feb 09 20:28:06 ok Feb 09 20:28:32 i didn't buy the 1 or 2, but if the 3 has a retina display i would pick one up Feb 09 20:28:43 * g00s didn't like the displays on those Feb 09 20:28:45 * pfn has an ipad Feb 09 20:28:48 don't care to pick up an ipad3 Feb 09 20:29:25 i'd rather get a galaxy tab :) Feb 09 20:29:25 what badassery will it bring to the table? Feb 09 20:29:29 not only is it thinner and lighter Feb 09 20:29:33 but it's running android! Feb 09 20:29:34 have too many tablets already Feb 09 20:29:36 like galaxy 10.1 Feb 09 20:29:52 asus transformer prime is my current favorite toy Feb 09 20:29:54 I'd rather get the transformer prime tf700 or whatever it is with the 1920x1200 display Feb 09 20:30:19 that's enough for me to not care about retina display Feb 09 20:30:54 How can I catch the onClick method response (onClick defined on the property tab)? (boolean method) Feb 09 20:32:09 return value? you don't Feb 09 20:33:37 pfn: Ok, so I must use void and call another method from it Feb 09 20:33:40 ? Feb 09 20:33:43 yes Feb 09 20:33:50 thanks man Feb 09 20:35:24 I wonder if mirage uses ffmpeg for decoding... I wonder if that would make it gpl as well... Feb 09 20:39:20 ooh, new game added to the humble bundle Feb 09 20:39:21 nice Feb 09 20:41:17 and it force closes.... Feb 09 20:42:34 Date: Tue Apr 12 11:53:13 2011 -0700 Feb 09 20:42:34 Rename ViewRoot to ViewAncestor. Feb 09 20:42:35 ugh Feb 09 20:42:54 and mirage takes an interesting approach to full screen video playback Feb 09 20:42:57 nice hack Feb 09 20:43:20 they use a system dialog to overlay everything, excellent Feb 09 20:44:13 are you gonna get the new transformer pfn? Feb 09 20:44:16 pfn: I think all but one of the Humble Bundle games force closes on my phone. Feb 09 20:53:30 storkme, no, there's no compelling reason for me to upgrade away from the galaxy 10.1 Feb 09 20:53:41 MalRD, really, they all work for me except for toki tori Feb 09 20:54:04 can I assume that getPictureSizes() for the camera returns the lowest resolution in index 0? Galaxy seems not to support 640x480 although the Xoom and Droid do. Feb 09 20:54:07 Well, my phone was born in the stone age, so it wasn't unsuspected. Feb 09 20:54:08 that's pretty disappointing if they all crash Feb 09 20:54:13 I see Feb 09 20:54:15 fair enough Feb 09 20:54:15 which phone Feb 09 20:54:34 storkme, when the next next version of android comes out, and the galaxy 10.1 isn't capable, then I'd consider an upgrade Feb 09 20:54:38 i.e. it'll be a while Feb 09 20:54:45 * pfn got both his ipad and galaxy 10.1 for free... Feb 09 20:55:08 notbad.jpg Feb 09 20:55:27 so it's super hard to justify going out to buy another tablet Feb 09 20:55:40 ipad was a work gift when the ipad first came out Feb 09 20:55:48 and the galaxy 10.1 was an IO gift Feb 09 20:55:56 and no, I didn't pay for IO tickets either :p Feb 09 20:56:13 i don't like you Feb 09 20:56:44 i.e. google paid for my io tickets :) Feb 09 20:56:55 oh yeah for that thing you won Feb 09 20:57:36 pfn: The original Droid. Feb 09 20:57:51 MalRD, yeah, that thing is just about unusable these days, it's so barely capable of running gb Feb 09 20:58:05 Well, it only has to last me a few more hours. Feb 09 20:58:42 until? Feb 09 20:59:10 droid has a poor number_of_pixels:bus_speed Feb 09 20:59:12 ratio Feb 09 20:59:35 how do i use the API analysis plug-in? i have min and target version set yet i get no warnings about functions from latest SDK Feb 09 20:59:36 I don't have a problem with bus speed so much as limited ram Feb 09 20:59:44 512mb would have made the droid1 run sufficiently well Feb 09 21:00:05 Per the Bundle: I bought them because I like the idea of the bundle, not to play on my phone. Feb 09 21:00:12 never used an android phone that ran satisfactorily fast Feb 09 21:00:31 u need a new phone then Feb 09 21:00:36 pfn: The Droid 4, assuming that I still like it when I go to pick it up. Feb 09 21:00:48 i have a nexus one Feb 09 21:00:55 old Feb 09 21:00:58 is there an onTouchEvent equivalent to when u have the finger pressed on the screen? Feb 09 21:00:59 awesome phone in its day hto Feb 09 21:01:03 onTouch Feb 09 21:01:04 my galaxy and transformer prime are also slow Feb 09 21:01:24 slow relative to what, and doing what? Feb 09 21:01:46 as in i can "feel" the lag between operations Feb 09 21:01:54 my biggest complaint of the droid1 was that it had so little ram that stuff kept getting kicked out of memory Feb 09 21:02:01 and taking forever to restart, particularly the launcher Feb 09 21:02:09 they may be fast for android devices. i'm used to the dual A9s in my iphone Feb 09 21:02:36 jasonmog get an iphone Feb 09 21:02:43 * jasonmog has one Feb 09 21:02:50 onTouchEvent is more like "there was a touch on the screen" I need something like "there is a finger on the screen" Feb 09 21:02:53 use it Feb 09 21:02:57 anybody know what I'm talking about? Feb 09 21:02:58 & stop conplaing about android Feb 09 21:02:59 * jasonmog does Feb 09 21:03:02 not complaining Feb 09 21:03:10 commenting on the performance conversation Feb 09 21:03:18 this is a chatroom Feb 09 21:03:38 pfn: but thats great for testing :) Feb 09 21:03:42 I can honestly say I've never had a phone that feels like it is performing properly. Feb 09 21:03:48 neekers : http://www.azcentral.com/offbeat/articles/2012/02/09/20120209los-angeles-naked-man-on-tower.html … is that you ? Feb 09 21:03:52 g00s, yeah, I still have my droid1 for testing pre 3.0 UI Feb 09 21:04:04 is there a way to get an expendable listview inside a scrollview running correcly ? Feb 09 21:04:06 as slow as it is, it's still faster than using the emulator Feb 09 21:04:14 emulator... Feb 09 21:04:18 is...so slow Feb 09 21:04:25 jasonmog, I haven't used a 4S, but I've never really been satisfied by any apple device speed really Feb 09 21:05:00 what would you consider the fastest android phone? Feb 09 21:05:35 wow, imageview doesn't support svg ? :( Feb 09 21:05:59 rather, not not satisfied, but haven't found it spectacular vs android Feb 09 21:17:54 hello everyone Feb 09 21:18:05 is it possible to store datas in an XML Layout? Feb 09 21:19:37 hey anyone know what the hell I'm suppose to be doing with Parcelable.describeContents() Feb 09 21:20:08 do what everybody else does Feb 09 21:20:11 return 0 Feb 09 21:20:39 anyone using proguard here? I don't seem to get it working with Ant ... for some reason Ant does not say anything related to proguard ? Feb 09 21:20:40 g00s, ya i know, whats what i am doing, but ya know... i'd like to know WHY. what is it SUPPOSE to do? Feb 09 21:20:57 http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html I followed this as closely as I could Feb 09 21:21:34 Wavesonics: clearly, the docs for such a heavily used class shed some light ? Feb 09 21:21:55 /end sarcasm Feb 09 21:22:00 g00s, :/ Feb 09 21:22:07 sarcasm ++ Feb 09 21:22:19 android-- Feb 09 21:22:29 So I'm attempting to use JAXB in my android project, which happns to reside in javax.xml. I also have JSR-203, which happens to be in javax.annotations. Android gives me the "--core-library" error message. Is it safe to ignore, despite literally everything in the error message saying I'm doing something wrong by using JSR libraries? Feb 09 21:22:59 well this projet sure has taught me way more about services, processes, and expected life times of things Feb 09 21:23:16 I'm having an issue with my sqlite db. when I launch my app for the first time it says it can't find my sqlite db. but the aplication starts and sometimes works fine. after i restart the app or load it back on it works fine... Feb 09 21:23:17 :) Feb 09 21:24:15 This was originally going to be an Arduino project... I think the code would have been way easier lol. Feb 09 21:24:22 nothing trying to kill off my processes Feb 09 21:24:40 what should I have as ${out.classes.dir} ? Feb 09 21:25:40 ? Feb 09 21:27:04 how do i know if my project is using functions/classes that only SDKs > min have? Feb 09 21:27:56 lolol typo: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable/edit_text_holo_light.xml#L30 Feb 09 21:28:15 jasonmog: try building it with minSdkVersion going down till it breaks :) Feb 09 21:28:29 is there an "isA" function in android? Feb 09 21:28:32 jasonmog, simple, set your target version and build Feb 09 21:28:32 i feel stupid Feb 09 21:28:40 like if object.isa(char) Feb 09 21:28:47 Tricknology, if (foo instanceof Bar) Feb 09 21:28:54 thanks much! Feb 09 21:28:57 and it's not android Feb 09 21:28:58 it's java Feb 09 21:29:03 was trying to get this plug-in working to show compatibility issues as warnings Feb 09 21:29:04 Tricknology, please read thinking in java Feb 09 21:29:05 but that's easier Feb 09 21:29:18 and if you need to use instanceof much, you're doing something wrong (in most cases) Feb 09 21:29:30 mitchnull, that's not true Feb 09 21:29:33 I've taken a whole class on java and gotten an A, but 24+ hours of no sleep will make anyones head goopy Feb 09 21:29:34 is too Feb 09 21:30:34 second question.. if i have an arraylist are the elements all objects as well? or can i use instanceof to determine their types... they will have different types when I am puttin them in to the ArrayList Feb 09 21:30:59 any recommendations for a graphing library? going to start with jfreechart Feb 09 21:31:17 you could maybe use google's chart deal Feb 09 21:31:24 Tricknology: Object instances cannot lose their type. This isn't C++. The reference type will be Object, but the instance type will be whatever you created it as. Feb 09 21:31:33 Tricknology, well, ArrayList is generic, because everything is Object Feb 09 21:31:44 I have a signed app. How to find out what is my app signature? Feb 09 21:31:46 jasonmog, GRAAL Feb 09 21:31:53 smartmx, jarsigner -verify -verbose -certs Feb 09 21:32:18 jasonmog: but that deals with putting in a string to a url and getting a webpage back.. i suppose you could also get the png... Feb 09 21:32:26 pnf: thanks! Feb 09 21:32:27 what i said about google Feb 09 21:32:50 kamoricks: i'm taking c++ now, maybe where the confusion is talking about... Feb 09 21:33:11 pfn: so is what kamoricks said true? Feb 09 21:33:16 yes Feb 09 21:33:21 thanks Feb 09 21:33:34 Tricknology: Think ArrayList, then. Feb 09 21:33:42 Tricknology, of course, Object something = "foo"; something instanceof String => true Feb 09 21:33:54 Tricknology, learn your object hierarchy Feb 09 21:34:29 so object something = "foo"; something instanceof int => false? Feb 09 21:34:54 instanceof int? Feb 09 21:34:55 omg Feb 09 21:35:15 Tricknology, int isn't a reference type Feb 09 21:35:26 Tricknology, go read thinking in java, come back when done Feb 09 21:35:33 oookaay Feb 09 21:36:01 * g00s hopes he never thinks in java Feb 09 21:36:02 or better yet, go read a book about java that doesn't suck so much as TIJ Feb 09 21:36:21 TIJ is about the best you'll get as a primer before doing android Feb 09 21:36:46 * pfn hasn't read it, but the TOC seems appropriate for android development Feb 09 21:37:32 mitchnull, and there are just about no java books that don't suck Feb 09 21:37:51 *shrug*, I certainly haven't read any good ones :) Feb 09 21:37:52 i liked Core Java. some like head first java Feb 09 21:38:06 but TIJ definitely made me angry at time Feb 09 21:38:07 s Feb 09 21:38:20 mitchnull, why, because it made you feel stupid? Feb 09 21:38:24 no Feb 09 21:38:39 becuase it said stupid things (or at least not quite accurate things) Feb 09 21:39:04 (I read it when I had about 4 years of java behind me, not as a primer) Feb 09 21:39:26 tricknology: go look around here: http://docs.oracle.com/javase/tutorial/ Feb 09 21:39:49 doing tutorials is generally pretty crappy, since they all practically encourage copy/pasting and no thinking Feb 09 21:40:24 stuff like ruby koans and the 99 things in haskell are pretty nice Feb 09 21:40:30 but there's nothing similarly good for java Feb 09 21:40:49 isn't there a 'java: the good parts' book ? Feb 09 21:40:55 should be pretty slim Feb 09 21:40:56 javascript Feb 09 21:40:59 no java Feb 09 21:41:04 guys, i know i might not know a lot of basics but i've been writing a pretty intensive program and taken a course in jave.. i'm not a complete noob, but i did just start this whole thing last summer. Feb 09 21:41:05 g00s: :) Feb 09 21:41:06 and the only good parts of java are the jvm Feb 09 21:41:20 Tricknology, yes, so go read thinking in java, report back when done Feb 09 21:41:22 http://www.amazon.com/Java-Good-Parts-Jim-Waldo/dp/0596803737 Feb 09 21:41:26 whoops, got bad reviews Feb 09 21:41:31 g00s: actually, it'd be just about "But look at this HUGE standard library that comes with java!!!" Feb 09 21:41:53 * pfn just says no to java when possible... Feb 09 21:42:02 i just have to make a messaging system and i'm done Feb 09 21:42:05 muhahahaha Feb 09 21:42:23 that could mean "i just have to write Websphere MQ and i'm done Feb 09 21:42:37 hopefully something simpler though :) Feb 09 21:42:53 why websphere though? :) Feb 09 21:43:00 probably the worst of the lot... Feb 09 21:43:09 i was just taking the most complicated one i knew of Feb 09 21:43:16 ah, figures ;) Feb 09 21:43:45 anyway, TIJ seems a bit better than that tutorial link I pasted before, sorry about that Feb 09 21:44:17 * g00s waits for a new compat lib to fix the context menu bug Feb 09 21:44:18 TIJ is considerably better than any of the oracle tutorial trails Feb 09 21:44:38 g00s, didn't I tell you a solution to it? getUserVisibleHint Feb 09 21:44:52 pfn: oh yeah, i just don't feel like rebuilding it :) Feb 09 21:45:00 it's trivial to rebuild Feb 09 21:45:01 JakeWharton has a patch Feb 09 21:45:13 g00s: bundled into ABS? Feb 09 21:45:23 abaratican: probably ... Feb 09 21:45:41 javac -classpath android-support-v13.jar Fragment.java; jar uvf android-support-v13.jar android/support/v4/app/Fragment* Feb 09 21:45:44 or something like that Feb 09 21:45:52 or was it FragmentManager, I forget which Feb 09 21:54:03 can I devel a appl for 2.3 target phones using the last api 4.x version? Feb 09 21:54:16 err Feb 09 21:54:28 you can set targetSdkVersion="15" Feb 09 21:54:33 you can use the 4.0.3 sdk to build Feb 09 21:54:47 but you cannot call a method that was added after 2.3 on a device running 2.3 Feb 09 21:55:41 so, if I make a new project I set the minimum version and that methods stay hidden for that app? Feb 09 21:56:13 does anyone have any example of async sockets? Feb 09 21:56:17 no Feb 09 21:56:29 the minSdkVersion is the lowest version you want to support Feb 09 21:56:37 but i can include, for example, android beam in an app that will run on 2.3 Feb 09 21:56:43 i just cant use that functionality on 2.3 Feb 09 21:56:55 whichever android version you set as your target is what will "stay hidden" in eclipse's autocomplete Feb 09 21:57:06 how you do it however is pure witchcraft Feb 09 21:57:10 so if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { /* do some android beam stuff */ } Feb 09 21:57:19 the build target, yes Feb 09 21:57:28 if my target is android-8, and i try to use an ICS feature, i'll get a compile error Feb 09 21:57:44 yes Feb 09 21:57:48 ok. Feb 09 21:58:13 you have to do what canadiancow|work said, as well as target the highest api you'll use, if you want to safely use features but support your app on phones without them Feb 09 21:59:09 when it gets tricky is when you want to override a function that doesn't exist in lower versions.. haven't figured that one out yet Feb 09 22:00:08 canadiancow|work: don't you have to do some wizardry like move the new functionality to a new class? i thought having imports would break the class loading Feb 09 22:00:27 only in 1.6 Feb 09 22:00:32 as of 2.1, it will spit out a warning Feb 09 22:00:35 ah Feb 09 22:00:37 but it wont error unless you CALL the method Feb 09 22:00:41 imports don't break class loading Feb 09 22:00:43 i still prefer the wizardry though Feb 09 22:00:44 makes sense Feb 09 22:00:53 its just too much to type in irc :P Feb 09 22:00:55 imports are a namespace management feature Feb 09 22:00:57 i was sure i'd encountered that error before Feb 09 22:01:17 * g00s sets minsdk=targetsdk=froyo and forgets about it :D Feb 09 22:01:19 canadiancow|work: call the method in the flow of the code right? Feb 09 22:01:26 * SimonVT slaps g00s Feb 09 22:01:29 * g00s puts on flame proof suit Feb 09 22:01:42 ah, SimonVT got me first Feb 09 22:01:48 Why are there so many LayoutParams types? Feb 09 22:01:53 yea storkme Feb 09 22:01:59 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { /* do some android beam stuff */ } Feb 09 22:02:02 One for each viewgroup, explodes Feb 09 22:02:03 that will run on 2.1+ Feb 09 22:02:07 They all have different params Feb 09 22:02:26 Im trying to run a empty application just to see the emulator (at gentoo) and I get the window 'Android Device Chooser' empty, I need get emulators or something? Feb 09 22:03:06 you need to configure an emulator Feb 09 22:03:47 pfn: can you show me how? Feb 09 22:04:28 im getting the whole 2.3 api after got the 4.0 just because Feb 09 22:04:30 SimonVT: Oh, well how do I find out which kind to use for my ImageView? Feb 09 22:04:54 explodes: It depends on what viewgroup it's in Feb 09 22:04:56 I get class Cast exceptions with LinearLayout.LayoutParams and ViewGroup.LayoutParams... Feb 09 22:05:00 Oh really now Feb 09 22:05:06 I get it. Feb 09 22:05:12 ^_^ Feb 09 22:05:21 any1 with a galaxy note? Feb 09 22:06:07 i'm with a S2 Feb 09 22:07:08 * Jug6ernaut wants an apk from the note Feb 09 22:07:43 is it more expensive to check that a record will violate a uniqueness constraint before inserting it than it is to just try inserting it? Feb 09 22:09:00 SQLiteDatabase.insert() seems to have an annoying side effect where inserts that fail return -1, but also print out a message to the error log that looks like an exception (even though no exception is actually thrown) Feb 09 22:09:20 if i were just to try the insert rather than checking and then inserting, i'd have to deal with the error log getting cluttered up, too :| Feb 09 22:09:24 .execSQL("") Feb 09 22:09:55 is there a common static distance to calculate the pythagorean distance between two points? Feb 09 22:10:05 s/static distance/static function/ Feb 09 22:11:34 tophyr: this is about as close as you get, i think: http://developer.android.com/reference/android/graphics/PointF.html#length%28float,%20float%29 Feb 09 22:11:43 tophyr: Math.sqrt(dx * dx + dy * dy) too much to write? Feb 09 22:11:58 found that one, doesn't give an option between two points instead of origin, point Feb 09 22:12:00 to get the distance between two points, you could call it like PointF.length(a.x-b-x, a.y-b.y) Feb 09 22:12:19 i agree with alankila, for the record Feb 09 22:12:25 alankila: yeah :p wondering if there was a Blah.distance(point1, point2) func before i just wrote my own Feb 09 22:12:36 not worth the time spent looking Feb 09 22:13:12 there might be but trivial shits that I can write myself in a minute need to pop up in complete in eclipse on pretty much the first try or I got and write my own Feb 09 22:13:39 the android-sdk come with a emulator? already Feb 09 22:13:42 on second thought, i can think of a few good reasons for using a library distance function...carmack's function, for instance, is significantly faster than using the built-in sqrt() Feb 09 22:14:04 that is also likely somewhat incorrect. Feb 09 22:14:25 true, but the error is tolerable for the purpose Feb 09 22:14:30 worrying about performance is not the right way to write java. It's a nice language pretty much designed for correctness, not Float.floatFromIntBits hacks Feb 09 22:14:41 you mean the inverse sqrt? Feb 09 22:14:57 Ravenheart: ah, yeah, that's probably what i'm talking about :) Feb 09 22:15:07 lol Feb 09 22:15:07 he didn't invent it Feb 09 22:15:15 for the record, I did use an int approximation for exp() one because of performance reasons... Feb 09 22:15:23 once Feb 09 22:15:26 and its slower than modern cpus integrated isntruction for sqrt :) Feb 09 22:15:50 http://www.fiercedeveloper.com/story/selecting-right-platform-your-app/2012-02-10 Feb 09 22:15:53 but android is running on risc :p Feb 09 22:15:59 i stand corrected :) Feb 09 22:17:02 at one point in history you'd have things like libm which contained functions which were all excruciatingly slow because the underlying cpu instruction would not actually get the right ieee semantics, and the compiler would not even inline them Feb 09 22:17:07 these days things are far better, I guess Feb 09 22:18:51 sse fixed a lot of these problems I think, so a lot of the time you just have to emit one sqrtss to compute a square root and it would even calculate it correctly for weird inputs Feb 09 22:23:43 hi Feb 09 22:23:55 How can I pause GC for the duration of my onCreate() method? Feb 09 22:24:21 Has anyone been able to get a xoom family to boot into the bootloader? Feb 09 22:24:34 does anyone here use mosync ? Feb 09 22:24:38 vadi2: not possible as far as I know. Feb 09 22:24:54 plus asking that question indicates you are doing something Interesting[tm] Feb 09 22:25:28 why would you even think about pausing gc ever... unless you're ina tight game loop Feb 09 22:25:40 Nothing interesting, the GC is just kicking in at the middle of it and I'm not happy with the activity start to render time. I'll see if the delay is elsewhere first, then. Feb 09 22:26:11 One gc cycle is usually less than 100 ms. Feb 09 22:26:17 How long does it take for you, then? Feb 09 22:26:41 i thought they were like 10ms tops Feb 09 22:27:04 from 14.201 to 15.516, and 1.7s for the start till the end of onCreate Feb 09 22:27:05 it depends. Some easy collections seem to be over in 2 ms, some complicated cycles seem to take 100 ms Feb 09 22:27:08 it's terribly variable Feb 09 22:27:22 I'll see about diagnosing this better. Feb 09 22:27:40 fair enough Feb 09 22:28:00 does anyone know a solution similar to mosync that lets you create C/C++ apps for android? Feb 09 22:28:44 why don't you just use mosync? Feb 09 22:29:00 JakeWharton You here? Feb 09 22:29:05 what was the java to show the email keyboard? Feb 09 22:30:45 pfn-I cant get the code onto my phone from mosync, through the cable or bluetooth. I was going to download it via wifi to the mobile phone- but I cant figure out how to make the package complete - i.e cant get the file to send to the phone Feb 09 22:30:58 the tutorials on mosync are lacking Feb 09 22:31:36 seems a great project though, I would love to use it- If only I could figure out how Feb 09 22:31:39 Toneloc, you build into an apk, and use adb install Feb 09 22:31:50 Toneloc, look up mosync docs on how to generate an apk Feb 09 22:36:34 Has anyone been able to get a xoom family to boot into the bootloader? Feb 09 22:43:01 Hooray! I have my very first GitHub repo! :P https://github.com/Wavesonics/libCalendar Feb 09 22:43:45 yay Feb 09 22:44:11 ^_^ Feb 09 22:48:33 Does anyone know how to get the ActionBar to import properly? Feb 09 22:49:40 Eh? Feb 09 22:51:36 I'm trying to export with Export Wizard and it fails Feb 09 22:51:43 anyone know how to get error log ? Feb 09 22:52:05 it only fails when doing proguard but the wizard gives no output at all :( Feb 09 22:52:15 I'm puzzled how to debug this issue Feb 09 22:52:39 I get this Dalvik format 1 error, but none of the solutions found by google work Feb 09 22:53:37 http://pastebin.com/SWX692uU Im getting these errors when I import it. Feb 09 22:55:19 heyas. where might i be able to find the news reader sample for api <= 10? it's not in the samples directory and the only source i find in the sdk at all (in the docs dir) appears to be for api version > 10. Feb 09 22:56:28 JoeTheGuest: So you're talking about importing ActionBarSherlock, not the native ActionBar .. might want to have mentioned that Feb 09 22:56:46 Anyway, seems both libraries defined the same attribute Feb 09 22:56:50 How do I find out the package name of an app in the market? Some other company made the previous version of our app, and I guess it needs to match up... Feb 09 22:57:03 explodes: View its market page :F Feb 09 22:57:15 Sorry about that. SimonVT si there a way around this? Feb 09 22:58:51 JoeTheGuest: Rename one of them, update the classes referencing it Feb 09 22:59:15 lewellyn: Maybe it wasn't added until API10 Feb 09 22:59:35 SimonVT: just found http://developer.android.com/training/multiscreen/index.html which appears to have a download Feb 09 23:00:45 SimonVT: I'm on the market page -__- Feb 09 23:00:51 explodes: Check the URL Feb 09 23:01:04 id=com.podpro.skiutah Feb 09 23:01:07 Lame. Feb 09 23:01:08 There you go Feb 09 23:01:15 I don't want to release this under podpro's account Feb 09 23:01:20 er, packagin Feb 09 23:01:32 There's no way to change it Feb 09 23:02:46 super 'tarded Feb 09 23:03:27 *that it was signed another a 3rd party's company name Feb 09 23:04:29 pfn: more questions. How do you use the RichContext's systemService method? Feb 09 23:04:40 context.systemService[ALARM_MANAGER]? Feb 09 23:04:44 synic, val service = systemService[LayoutInflater] Feb 09 23:04:58 synic, specify the class you want, I don't use alarm manager yet, so I don't have a conversion for it yet Feb 09 23:05:24 oh I see where you defined them Feb 09 23:05:35 val nm = context.systemService[NotificationManager] Feb 09 23:05:40 synic, in object SystemService add impliit val blahblah = SystemService[AlarmManager](Context.ALARM_MANAGER) Feb 09 23:05:53 sweet. Feb 09 23:05:56 then you can get alarm manager from anywhere using context.systemService[AlarmManager] Feb 09 23:07:01 * pfn ponders using operators instead ;-) Feb 09 23:07:22 val nm = <<[AlarmManager] or something, that's ugly... Feb 09 23:07:23 btw I appreciate your following the 80 character limit. Feb 09 23:07:36 yeah, I hate code that runs too long Feb 09 23:09:06 that makes me want to ask what editor you're using. I like the 80 character limit most because of split windows in vim Feb 09 23:09:18 yeah, I use vim exclusively Feb 09 23:09:36 mental Feb 09 23:09:46 does it have nice plugins for scala Feb 09 23:09:51 usually I do :set columns=80*n+n-1 Feb 09 23:09:51 code completion and stuff Feb 09 23:09:55 or are you just not a fan Feb 09 23:09:55 storkme, it does the usually syntax highlighting Feb 09 23:09:59 I'm not a fan of code completion Feb 09 23:10:05 fairs Feb 09 23:10:21 I guess if you really wanted, you could generate ctags/etags and use those completions Feb 09 23:10:23 I dunno, it seems really annoying to code java in vim. A lot less so with Scala Feb 09 23:10:39 is tehre ANY known reason why when using a seekBar, it bugs out as a textview? Feb 09 23:10:43 *there Feb 09 23:10:46 i like vim but i haven't used it enough to fully replace my normal editors Feb 09 23:11:06 * pfn has been a vi-style editor user for nearly 20 years Feb 09 23:11:16 there's no better way to edit Feb 09 23:11:31 emacs is nice with its configurability, but using a bunch of finger contortions is annoying Feb 09 23:12:19 * pfn tries to go back to using emacs + viper-mode or something similar every few years Feb 09 23:12:26 then I ditch it and go back to vim Feb 09 23:12:52 hardcore Feb 09 23:13:25 I kinda like the idea of elisp, then I hack it for a little bit then decide I don't really want to use it Feb 09 23:13:51 nothing really hardcore about vim, imho. The scary learning curve hides all the features that once you know about them, you can't live without them Feb 09 23:14:03 aH- ok, so a simple project clean fixes that bug - nice! Feb 09 23:14:24 pfn- thank you, I was able to get my application to work :) Feb 09 23:15:27 through looking through the docs and just trying out what I thought would work- I was able to make my first app with mosync :): ) Feb 09 23:15:33 what is the best way to send data back and forth from Android to PC JVM....I understand the way Android and JVM serializes their objects differs so that option is ruled out??? Feb 09 23:15:41 although its not 100%, im still happy Feb 09 23:16:00 dlaroche: protobufs, xml, … Feb 09 23:16:17 java object serialization is teh suck Feb 09 23:16:22 and you /could/ use ObjectOutputStream Feb 09 23:16:25 pretty vague though, what kinds of data you have Feb 09 23:16:27 but it doesn't perform well Feb 09 23:16:35 simple mouse commands Feb 09 23:16:47 protobufs are the easy approach Feb 09 23:16:52 I was trying to put them all in an object and send them over, but found out that is a dead end Feb 09 23:17:01 what is protobus?? lol Feb 09 23:17:05 I will look it up Feb 09 23:17:06 protobuf Feb 09 23:17:20 it's a simple/compact serialization library Feb 09 23:18:07 sweet...run it on both ends, and like magic they share the same data protocol Feb 09 23:18:08 nice Feb 09 23:18:49 I kinda wish protobuf messages weren't immutable Feb 09 23:19:28 JoeTheGuest, always Feb 09 23:19:58 abaratican, bundled into ABS and submitted to AOSP Feb 09 23:20:20 I think i kinda remember reading that protobufs are more efficent then using the standard ObjectOutputStream Feb 09 23:21:15 JakeWharton I fixed my issue. I misread the error log. Sorry for the ping. Feb 09 23:21:27 not a problem Feb 09 23:21:37 dlaroche, are you also working on a remote control app? Feb 09 23:21:46 yes Feb 09 23:22:06 android -> pc? Feb 09 23:22:10 yes Feb 09 23:22:12 over wifi Feb 09 23:22:15 oh noes Feb 09 23:22:19 ditto Feb 09 23:22:33 Nice work on the library by the way. I need to build a new dev box because it takes 10 or 15 seconds to build apps when I include ActionBarSherlock. Feb 09 23:22:33 is yours paid? Feb 09 23:22:36 cool....about 80% done with it...just couldn't get them to communicate right Feb 09 23:22:44 I used sockets Feb 09 23:23:14 JoeTheGuest, if you know that you'll only be using one theme exclusively you could go through and delete the resources for the other two Feb 09 23:23:21 that should save you quite a bit of time Feb 09 23:23:26 that's how I originally started out, but things got confusing real quick when decoding and encoding strings Feb 09 23:23:49 so then I tried implementing objectstreams and got hung up Feb 09 23:24:06 stuck for like two weeks banging my head trying to get them to communicate again Feb 09 23:24:17 dlaroche, its always the last 20% that is the grind - i like the speed i get, but its the android side i had probs with: a different view for each function, so I 1 for media , 1 for ffox, etc Feb 09 23:24:21 JakeWharton Then I would loose the excuse to build a new desktop. Feb 09 23:24:50 why sounds like you are coding scaling factors too?? Feb 09 23:24:55 ^wow Feb 09 23:25:32 * pfn wishes girder were still open source Feb 09 23:25:56 man, eclipse does so many dumb things Feb 09 23:26:02 dlaroche, I simply stuck with strings, and it expaned out ol, but the one bug im stuck with is using the android screen as a mouse pad - its making the mouse movements relative to the pc - not the phone Feb 09 23:26:17 lol Feb 09 23:26:18 yes Feb 09 23:26:29 I too have overcome that Feb 09 23:26:33 if my cursor is in the middle of a method like getFooBar(), and I code complete to change it to getFooBaz();, it will insert text like getFooBaz()ooBar(); Feb 09 23:26:38 so stupid Feb 09 23:26:43 I want the whole screen to be a pad Feb 09 23:26:57 pfn: girder? grinder ? Feb 09 23:27:09 dlaroche, the one problem i removed was multi-platform, mine is only for Ubuntu, it saved a whole slew of time - but it was a personal project that seems to have 'legs'... Feb 09 23:27:14 so I just send 1, 0, or -1 for the x and y axis to tell the server to move the mouse a pixel in either direction Feb 09 23:27:18 g00s, no, girder, windows automation software Feb 09 23:27:25 The_Fred Feb 09 23:27:29 dlaroche, yup - you've got it Feb 09 23:27:30 WHY??? Feb 09 23:27:38 no -soory Feb 09 23:27:49 I use the Robot class which works on all OS's Feb 09 23:27:56 for the server side Feb 09 23:27:56 they should rename eclipse autocomplete to autofuckup Feb 09 23:28:27 autodeleteyourfiledataandreplaceitwithwhitespace Feb 09 23:28:27 jasta, that's weird, I rarely ever encounter autocomplete fuckups like that Feb 09 23:28:28 I have tested both on OS X, and Windows Feb 09 23:28:29 oh Feb 09 23:28:31 dlaroche, yea i gave the robot class a try, but what i really wanted for my personal rapid devlopment was all the bells and whistles of xdotool :-0) Feb 09 23:28:41 you mean you moved your cursor to the middle of an already existing call, and auto-completed Feb 09 23:28:42 cool Feb 09 23:28:57 well back to banging my head for a while Feb 09 23:29:38 dlaroche, as the the mousepad issue - i remember that i used some hacky workaround, and kinda gavce up and used orientation to move the mouse... Feb 09 23:30:15 mousepad seems like it's an easy thing to do, you have origin point and deltas to that... Feb 09 23:30:21 the deltas are what you transmit... Feb 09 23:30:26 I will let you know when I get it released so you can give it a look over.....wouldn't mind sharing some snippets of code with you Feb 09 23:30:29 JakeWharton: should same proguard settings work with abs v4.0 as with v3.x ? Feb 09 23:30:34 no Feb 09 23:30:38 com.actionbarsherlock.* Feb 09 23:30:40 save that Feb 09 23:30:40 yes - but its keeping track on both the android and pc side thats tricky Feb 09 23:30:41 pfn: that is how i viewed it Feb 09 23:31:13 well, i have no idea what the proguard settings were for ABS 3.x actually Feb 09 23:31:29 why just check to see on the Android side if the current Y position is greater or less then the last Y position Feb 09 23:31:35 but everything is under com.actionbarsherlock.* now and 99% of those classes are going to be used Feb 09 23:31:51 then if it is greater send 1, if it is less then send -1, or if they are the same send 0 Feb 09 23:32:08 JakeWharton: I'm trying to use the ones you have in FAQ Feb 09 23:32:22 someone contributed those to me Feb 09 23:32:23 on the server side you get the current X position, and then add the value from the Android side Feb 09 23:32:28 i've never used proguard :) Feb 09 23:32:46 dlaroche, 2 reasons 1: it sucks clock cycles a lot on the pc, and secondsly you'll find the mouse constrained to a box unless there is a way of detecting boundries on the pc and either setting limits on the pc or the android side Feb 09 23:32:53 of course you have to check for negative numbers and such, but it has worked perfectly for me except the communication issue Feb 09 23:32:54 they look right though Feb 09 23:33:09 you'd need the android.support.v4.* ones if you were using the support lib plugin Feb 09 23:33:17 JakeWharton: ok. I'll let you know if my issues were caused by abs with proguard ... if they ever get resolved that is Feb 09 23:33:29 dlaroche, damit - we should swap i think :-) it seems we have solutions to each others problems to a certain extent] Feb 09 23:33:35 we may be going after two different functions then Feb 09 23:33:44 true Feb 09 23:33:48 what issues? Feb 09 23:34:07 give me a week and I should have a release Feb 09 23:34:13 JakeWharton, protocol issues Feb 09 23:34:19 just need to learn this protobuf stuff real quick Feb 09 23:34:36 dlaroche, good on you - im always on here even if busy working Feb 09 23:34:37 aolin, what issues? Feb 09 23:34:57 cool Feb 09 23:35:23 JakeWharton: getting "conversion to dalvik format failed error 1" Feb 09 23:35:39 aolin: Did you upgrade the proguard in the sdk? Feb 09 23:35:43 * The_Fred goes off to fix a shred-Prefs problem... Feb 09 23:35:56 SimonVT: yep, no help Feb 09 23:36:10 Alright Feb 09 23:36:32 aolin, pastebin the entire output of your build Feb 09 23:36:37 preferably if you use ant Feb 09 23:36:50 Yeah, do an ant build Feb 09 23:37:11 unfortunately I'm using eclipse Export Wizard and I'm puzzled how to get the output (other than that one liner) Feb 09 23:37:16 I guess I should Feb 09 23:37:27 there's an android command to generate an ant script for you Feb 09 23:37:42 helpfully, i've forgotten it Feb 09 23:37:44 but it exists Feb 09 23:37:53 I tried that ealrier but for some reason I could not get my Ant to run proguard Feb 09 23:38:01 I'll try it again Feb 09 23:38:19 android update project Feb 09 23:38:22 I followed the instructions closely from android official blog :( Feb 09 23:38:50 aolin: Just gotta have that proguard.cfg or whatever line in project.properties, then it'll do proguard Feb 09 23:38:51 and to get it to run proguard, edit ant.properties, and add proguard.config=proguard.cfg Feb 09 23:38:59 i think those instructions are old Feb 09 23:39:04 SimonVT: Ant will ? Feb 09 23:39:05 or in project.properties Feb 09 23:39:09 proguard is baked into the standard build script nowadays.. Feb 09 23:39:12 aolin: Yes Feb 09 23:39:16 oh.... Feb 09 23:39:29 echo "proguard.config=proguard.cfg" >> project.properties Feb 09 23:39:30 ant release Feb 09 23:39:35 wait few mins Feb 09 23:39:37 hacker commands Feb 09 23:39:48 2cool4ide commands Feb 09 23:40:03 you're not a hacker until you actually *code* that way. Feb 09 23:40:20 i write bash scripts to generate my code all the time Feb 09 23:40:31 as long as you name them *Factory it's pretty easy Feb 09 23:40:40 i write bash scripts that generate bash scripts to generate my code all the time Feb 09 23:40:44 vim is actually a code factory factory Feb 09 23:40:50 but you don't write them by echo and redirection, do you? Feb 09 23:40:53 yeah see that's what i use vim for Feb 09 23:40:56 There's an SDL example called android-project. I'm trying to figure out how I can debug this. It exits before GDB can attach. Feb 09 23:41:04 Anyone know? Feb 09 23:43:29 openRawResource can find my text file fine, openRawResourceFd says that it can't open it and that it's probably compressed (it's not)... why? Feb 09 23:44:35 Are we allowed to switch over Strings in Android? Feb 09 23:45:25 what do you mean n20: ? Feb 09 23:45:34 No Feb 09 23:45:42 switch( new String("foo") ) { case "foo": break; } Feb 09 23:45:43 oooh Feb 09 23:45:49 ^^ Feb 09 23:46:07 jre 1.7 supports it, but I'm not quite sure what it corresponds to with android Feb 09 23:46:08 compile with Java 7 Feb 09 23:46:24 they'll just be turned into 'if' statements in the bytecode Feb 09 23:46:28 (i think) Feb 09 23:46:28 if you really want you can make an if statement that returns a number... but that defeats the purpose entirely Feb 09 23:46:53 So there will be no incompability? :) Feb 09 23:47:08 Java 7 only introduced one bytecode-level change Feb 09 23:47:11 and i forget what it is Feb 09 23:47:33 so you can use it with all its fancy syntactic sugar Feb 09 23:48:21 and if you want to save some unexplainably small time (unless you are truly getting over the capabilities of switch), use Ragel ;) Feb 09 23:49:11 the strings have to be constants, so all it does it compute a hashCode and use it for the jump targets Feb 09 23:49:13 switch (FooShit.valueOf(string)) in the meantime... Feb 09 23:49:19 I use enums when I can Feb 09 23:49:20 yeah Feb 09 23:49:39 except FooShit.valueOf(..) will throw IllegalArgumentException for an undefined value Feb 09 23:49:42 I have an horrible IF right now... :( Feb 09 23:49:51 SimonVT, pfn: here's my ant log http://pastebin.com/EuY3TmRX Feb 09 23:49:52 ditch the string altogether Feb 09 23:50:53 I can't do that mrenouf|work, that's what I get from the JSON :( Feb 09 23:51:01 oh, yeah Feb 09 23:51:07 mrenouf|work: Instead of "typeId", I get a String lol Feb 09 23:51:21 the internet is inherently type-unsafe :-) Feb 09 23:51:37 use integers, their smaller ;-) Feb 09 23:51:51 and you can switch on them Feb 09 23:51:53 Not my API :( Feb 09 23:54:01 JakeWharton, that would be my only guess for the bytecode change if any Feb 09 23:54:10 JakeWharton: so we can use java 7 language features as long as we don't use invokedynamic on android? Feb 09 23:54:19 because the only language change is try with resource, numeric literals and switching on strings Feb 09 23:54:40 wasn't there also some exception syntax sugar ? Feb 09 23:54:44 invokedynamic isn't exposed into the language Feb 09 23:54:54 g00s, try-with-resources, and maybe catch grouping Feb 09 23:54:59 oh, ok Feb 09 23:55:02 I don't really care, since java7 was worthless as a language enhancement Feb 09 23:55:12 aolin: Yeah, sorry, no idea Feb 09 23:55:55 aolin, fix all the proguard warnings Feb 09 23:56:36 likely all the Tab, OnNavigationListener, etc. are all being removed by proguard, and dex fails Feb 09 23:57:16 what's the best way to implement a checkable ListView? Feb 09 23:57:23 winguard, makes sure you will fail Feb 09 23:57:30 Use a CheckableTextView Feb 09 23:57:33 etuleu, use checkMode="multi" Feb 09 23:57:35 or whatever Feb 09 23:57:42 and the appropriate resource to arrayadapter Feb 09 23:57:42 mrenouf|work, but I want a custom layout Feb 09 23:57:45 setSelectionMode Feb 09 23:57:53 I think checkedtextview is for only one line of text right? Feb 09 23:57:58 pfn: thanks, I'll try Feb 09 23:58:07 etuleu, then make something that implements Checkable Feb 09 23:58:25 pfn, I enabled checkMode but I don't see any checkboxes, do I have to make my own? Feb 09 23:58:36 etuleu, you need to make your own if you have a custom view Feb 09 23:58:47 mrenouf|work, a layout that implements Checkable? Feb 09 23:59:10 pfn, when you say make your own, does that mean own layout? or own adapter? Feb 09 23:59:45 is there some example somewhere? I searched a bit but found some old examples, and I thought by now android must have some class that does what I want Feb 09 23:59:52 etuleu, if you want to implement Checkable, your own view, if you don't, then your own adapter Feb 10 00:00:15 I found this: http://www.marvinlabs.com/2010/10/custom-listview-ability-check-items/ Feb 10 00:00:16 or manage visible checked state yourself Feb 10 00:00:20 is this still the way to go? Feb 10 00:01:08 Can I pass arguments to aapt using Eclipse? Feb 10 00:01:16 That'll work Feb 10 00:01:43 vadi2, dunno about when using eclipse, but you can with ant Feb 10 00:01:46 Hey there Feb 10 00:01:57 I'd like specifically Eclipse, read an old post that you couldn't Feb 10 00:02:03 I force aapt to not generate non-final constants in my library project's R Feb 10 00:02:12 Are there any good on-board dev tools you'd recommend? for example, I'd like a list of available actions per app. Feb 10 00:02:18 I have to force it not to compress my .lua's Feb 10 00:02:31 vadi2, why? Feb 10 00:02:35 Otherwise openRawResourceFd can't read it. Dealing with file.lua.png for now... Feb 10 00:02:46 vadi2, use assets/ instead Feb 10 00:03:10 They're in res/raw/ right now, should be in res/assets? Feb 10 00:03:19 just assets/ Feb 10 00:03:20 vadi2, they go in assets/ parallel to res/ Feb 10 00:03:26 Ah ok Feb 10 00:03:43 I should start soon android devving. Question, has netbeans gotten more android competent? Feb 10 00:03:57 wouldn't know Feb 10 00:03:59 no idea Feb 10 00:04:04 intellij 11 is quite nice Feb 10 00:04:15 eclipse is the only 'officially' supported one (and it's still kinda shitty, make of that what you will :p) Feb 10 00:04:17 p_1 and expensive :P Feb 10 00:04:51 Except the free version Feb 10 00:05:10 Theres a free version now? Feb 10 00:05:17 Shows how long I've been without touching intellij Feb 10 00:05:19 lars_g: for a long time now Feb 10 00:05:34 and the free version has the same android support as pro Feb 10 00:07:58 I dont see the free versions. I'll keep digging Feb 10 00:08:07 Community Edition Feb 10 00:08:52 Communist Edition Feb 10 00:09:52 you're talking Intellij idea from jetbrains, right? Feb 10 00:10:06 yes Feb 10 00:10:56 you mean this? http://www.jetbrains.com/idea/buy/buy.jsp#openSource Feb 10 00:11:04 lars_g: http://www.jetbrains.com/idea/download/ Feb 10 00:12:37 Anyhow, any set of nice "dev tools" for onboard? Feb 10 00:13:01 Hmmm I should redownload sl4a now that I did the e2sd Feb 10 00:14:26 Btw thanks Simon and p_1, I am about to embark in a project where this free intellij will help a lot Feb 10 00:14:56 ... change your font first, so you won't make an error in code by writing 1 where l should be ;) Feb 10 00:14:57 I tested full intellij LOOOONG ago, and I remember appart from being blazing fast, it had the best refactoring system I've ever seen on java Feb 10 00:15:15 * g00s loves inconsolata Feb 10 00:15:22 dejavusansmono is pretty good Feb 10 00:15:26 Wont do any good, I'm leeching a machine outside of home, over webchat., So. Feb 10 00:15:30 inconsolata is a ripoff of consolas? Feb 10 00:15:41 Meh I used to like verdana. Feb 10 00:15:50 i thought it was before consolas Feb 10 00:15:55 At least it's not comic sans. Yet I'm more a serif type of guy Feb 10 00:16:05 I think it was later, but doesn't infringe on anything Feb 10 00:16:53 I think I'll also get into some lightweight android devving. though no market for me yet, can't afford the dev price (it's still $90?) Feb 10 00:17:18 $25 for market account Feb 10 00:18:53 $25? sweet I might join, once I have one or two working apps Feb 10 00:19:21 thing is, I can only use $400 this year and $125 are already comprised Feb 10 00:19:41 lars_g: use the rest for food and toilet paper Feb 10 00:20:08 ramen noodles and cottage cheese are in your future Feb 10 00:20:09 g00s: Oh I have no limits on what I can spend locally.... well I do have a budget but it's a little more than that :P Feb 10 00:20:16 :) Feb 10 00:20:24 B ut I get only $400 of foreign currency this year Feb 10 00:20:32 >_> Feb 10 00:20:45 China? Feb 10 00:20:49 I even wanted to save to get myself an alienware netbook for work at home :( Feb 10 00:20:58 p_l: Nope. Search wikipedia for "cadivi" Feb 10 00:21:18 lars_g: anyway, it reminded me of communist poland... Feb 10 00:21:19 $400/yr, yow, that's not a whole lot of spending room Feb 10 00:22:14 pfn: for online spenditures. If I travel, I can get up to $2500 on a cc plus $500 cash. I might setup a midyear trip to buy, but I'll have to sort visa problems first Feb 10 00:22:20 And save, like mad Feb 10 00:22:34 personally, I'd look into hightailing from there Feb 10 00:23:22 but that's probably because I barely missed communism, being baptized during first 'free' elections in Poland ;) Feb 10 00:24:08 :) Feb 10 00:24:31 ('free', because they still had a guaranteed part for communist party) Feb 10 00:24:32 I consider myself a left anarchist so... Feb 10 00:24:56 But, we have an expression here that might apply to your case... I'll translate it horribly: Feb 10 00:25:12 He who has been bitten by a snake, jumps when he sees a stick Feb 10 00:26:10 heh. I'm not that much of scaredy cat. But I know myself well enough that at some point I'd end up at some demonstration ;) Feb 10 00:26:23 Hahaha yeah Feb 10 00:26:32 I've been at a few events, nothing big. Feb 10 00:26:53 Used to demonstrate more when I was a kid and stuff was openly right wing Feb 10 00:27:09 lars_g: I'd be jailed for calls to just get in and run the guys out on barrows. Preferrably in sewage Feb 10 00:27:40 (and left and right are just words to me.) Feb 10 00:27:49 Yeah Feb 10 00:28:12 I am more the type to brood silently until the urge to start killing people is too big Feb 10 00:28:44 heheh Feb 10 00:28:52 Anyhow wish me luck with the android devving... I still need a good idea to implement :/ Feb 10 00:28:54 oO Feb 10 00:29:04 I'll eventually find an itch to scratch. Feb 10 00:29:12 p_l: I'm more the guy fawkes type Feb 10 00:29:28 lars_g: i had a dream of a game where i could shoot one animal into another and knock things over Feb 10 00:29:31 maybe explore that? Feb 10 00:29:34 LOL Feb 10 00:30:37 tophyr: Yeah, talk about politically charged topics. Down that road you're gonna earn a rant about Zynga and game producers from me :D Feb 10 00:30:56 hehe Feb 10 00:31:07 i saw a quote the other day that really make me stop for a second Feb 10 00:31:12 dont no one tell canadiancow Feb 10 00:31:12 You should rant to canadiancow about that :p Feb 10 00:31:20 ^_^ Feb 10 00:31:35 "One single cellphone today has more computing power than all of NASA did in 1969. They launched men to the moon. We launch birds into pigs." Feb 10 00:31:48 And we do a damn fine job at that Feb 10 00:32:01 sure do Feb 10 00:32:23 graphics are a fine sight better too. freakin lo-res moon videos, wtf Feb 10 00:32:47 Why to canadiancow? Feb 10 00:32:56 he's a game dev Feb 10 00:33:00 tophyr: I love that quote Feb 10 00:33:34 tophyr: For Zynga? or with a same mindset (copy everybody you can, then sue anybody that is %0.1 similar to you) Feb 10 00:34:14 tophyr: Moon video res is not directly related (completely) to the computing power they had. it's based on other aspects of technology Feb 10 00:34:31 Oh man I'm a moron Feb 10 00:34:34 lars_g: me too. another one was "The SR-71 was designed and built with drafting tables and slide rules. Your eighth-grader has a graphic calculator. Why is he failing algebra?" Feb 10 00:35:05 not sure if he works for zynga. he's definitely not that mindset tho, from what i've seen Feb 10 00:35:13 tophyr: Mother used to tell me of an old sci-fi story she once read (she was a sci fi buff like me) Feb 10 00:35:26 and hahaha, yes, i think you got it but the resolution bit wasn't referring to the comp power ;) Feb 10 00:35:38 Yea, he works at Zynga Feb 10 00:35:58 BURN HIM Feb 10 00:36:04 tophyr: Ship crash lands into planet. They manage to get the engines back running but barely anything else. so since they're computerless they end up building lots of abacci with dry bread crumbs and use them to calculate the escape trajectory/speed from the planet :D Feb 10 00:36:45 hah, can do one better, gimme a min Feb 10 00:40:05 pfn: got rid of the warnings => no help ... but changing optimizationpasses from 5 to 2 fixed it Feb 10 00:40:13 Gordon Cooper, the austronaut in the Mercury flight Faith 7, suffered a capsule power failure during his 19th orbit. In rising CO2 levels and temperatures over 100F, he estimated the correct atmospheric re-entry approach using his knowledge of star patterns, his wrist watch, and a crayon on his capsule window. Feb 10 00:40:20 pfn: I guess my code is obfuscated well enough with that setting too ? Feb 10 00:40:25 http://en.wikipedia.org/wiki/Gordon_Cooper#Mercury_program Feb 10 00:40:41 what a boss Feb 10 00:40:51 that's some doctor who shit right there Feb 10 00:40:55 aolin, optimizationpasses is for removing unneeded code and such, not for improving obfuscation Feb 10 00:41:02 storkme: no joke Feb 10 00:41:31 pfn: that figures. I guess there's still something wrong but somehow it fails on a class that is completely unrelated to anything scary Feb 10 00:42:02 removed all ActionBarSherlock and Maps references but still fails there Feb 10 00:42:07 tophyr: Holy hell Feb 10 00:42:54 lars_g: right!!! not to toot my own horn but i'm a pretty smart mf'er, and i would have died a terrible terrible death up there Feb 10 00:43:20 tophyr: I'm a smart mfer too, and calm on emergencies. I would've crisped down too Feb 10 00:43:25 that shit is chuck-norris-level, but in real life Feb 10 00:45:15 aolin, but you said it works once you reduce optimization passes, just do that then Feb 10 00:46:34 i had problems with optimization passes > 1 Feb 10 00:46:56 but it had to do with malformed byte code apparently Feb 10 00:47:10 * pfn doesn't even bother with optimization in proguard Feb 10 00:47:17 since it fails if I have obfuscation turned off Feb 10 00:47:18 heh Feb 10 00:47:38 proguard? Feb 10 00:47:48 * pfn runs proguard with obfuscation turned off most of the time Feb 10 00:47:53 if only for the code-size reduction Feb 10 00:47:57 so that dx can process it Feb 10 00:47:58 i was using 4.7 also Feb 10 00:48:41 I wonder, how combined is optimization nowadays with jit. I mean, do they complement, or hinder eachother at all? does the opt take the jit in account? Feb 10 00:49:12 OT: FBI release their documents on Steve Jobs: http://vault.fbi.gov/steve-jobs/steve-jobs-part-01-of-01/view for anyone interested :) Feb 10 00:49:46 i have the fbi's document on Rangar sitting here Feb 10 00:50:12 that could take u a while to get through, lemme know if anything interesting lol Feb 10 00:51:17 dyk if there's a channel for archivologists on freenode? :D Feb 10 00:51:36 yay, Eolas fails! Feb 10 00:55:18 oh yum, the canon powershot g1x Feb 10 00:55:27 * g00s loved his powershot g9 Feb 10 00:55:40 too bad canon's software sucks balls so badly on the mac Feb 10 00:55:53 pfn: yep, but would be nice to actually fix it rather than go around it ... but I guess theres not enough time in the world to learn this properly :) Feb 10 00:56:15 aolin, the optimization is too aggressive and causes dex to fail, there isn't a real fix Feb 10 00:56:20 otherthan decreasing optimization Feb 10 00:56:33 it's like in old versions of gcc where setting any amount of optimization resulted in bad code Feb 10 00:56:41 either fix gcc, or turn off optimization Feb 10 00:56:41 http://www.wired.com/threatlevel/2012/02/interactive-web-patent/ Feb 10 00:56:45 now I'm fixing these android:onClick="onClick" issues :) Feb 10 00:56:47 =^____^= Feb 10 00:56:49 much easier Feb 10 00:57:35 this new chrome 17 seems a bit flaky Feb 10 00:57:57 * p_l is on 18 Feb 10 00:58:25 http://labs.teague.com/?p=1451 Feb 10 00:58:27 interesting Feb 10 01:01:13 pfn: i thought you used butterflies Feb 10 01:01:23 ? Feb 10 01:02:27 engleburt is still going? Feb 10 01:02:43 well, this looks like some people that took the concept and implemented it in html Feb 10 01:03:09 oh Feb 10 01:12:42 chorded keyboards sound interesting, if you can ever build up the muscle memory for all of the keys Feb 10 01:12:47 t0mless: have you submitted yet? I'm trying and not having luck! Feb 10 01:23:28 any sql heroes? https://gist.github.com/1785068 (yes also asked in #sql) Feb 10 01:27:28 is there a way to mount my phones root filesystem to a mount point on my local computer? Feb 10 01:28:57 you can use adb shell if you want to have a look at everything Feb 10 01:29:32 right but i want to mount the phones root filesystem on my local computer without it Feb 10 01:30:04 not really possible, unless you feel like porting an NFS or SMB client to your phone. Feb 10 01:30:07 smoak, there is not Feb 10 01:30:16 s/client/server/ Feb 10 01:30:39 not even if my phone is rooted? Feb 10 01:31:05 correct. there's simply no software out there to do it Feb 10 01:31:21 if you wrote an NFS or SMB server for android, you could do that :P Feb 10 01:31:27 adb has some sort of file-browsing api, but you still can't view everything from / unless adb runs as root Feb 10 01:31:56 the reason i ask is the sqlite3 binary on my phone is a lot older than what i want to use Feb 10 01:33:01 adb pull Feb 10 01:33:09 osxorgate: SELECT tbl_property.id, tbl_property.name, COUNT(tbl_toggle.id) FROM tbl_property INNER JOIN tbl_toggle ON tbl_toggle.property_id = tbl_property.id GROUP BY tbl_property.id, tbl_property.name Feb 10 01:33:36 oh, WHERE tbl_toggle.is_selected = TRUE Feb 10 01:33:42 I'm sure you could write something in fuse without too much difficulty on linux Feb 10 01:33:49 didn't run that, but your query will look something like that. Feb 10 01:33:55 tophyr cool let me see if i understand Feb 10 01:34:09 basically the functionality you want is provided by the "group by" clause. Feb 10 01:34:10 hmm it looks like i can use scp...i guess that will work for now Feb 10 01:37:17 tophyr hmm i dont quite get it.. where does the WHERE go? because i also want the properties that have 0 toggles set Feb 10 01:37:59 might need to change that to left join then, might need to make it a subquery, not sure Feb 10 01:38:04 where goes just before group by Feb 10 01:40:56 select count(property_id), name from tbl_property, tbl_toggle where is_selected = true and tbl_property.id = tbl_toggle.property_id group by name Feb 10 01:52:09 Sorry, but I need to plug http://stackoverflow.com/questions/9181796/clickablespan-not-clicking. I really need help with this issue, and rather than just recopy the question to here, I though I would just link to it. I hope that's okay. Feb 10 01:52:47 What's some good Android source to look at? My code is terrible, and I wanna refactor it, but I wanna get inspired and stuff. Feb 10 01:53:53 shurane, look through aosp Feb 10 01:54:01 aosp is pretty good code. Feb 10 01:55:30 actually, I think most of it is overcomplicated, at least browsing it Feb 10 01:55:51 but it's so huge, I wouldn't know where to begin. So any of the stuff in in apps/packages? Feb 10 01:56:30 rather, packages/apps/ Feb 10 01:57:13 pretty much Feb 10 02:00:50 just stay away from frameworks/base/ and libcore/ :) Feb 10 02:01:24 actually libcore has some pretty cool stuff Feb 10 02:01:56 libcore is all the harmony stuff Feb 10 02:02:21 harmony is...? Feb 10 02:02:48 apache licensed java runtime Feb 10 02:02:49 I see the accursed java.json here... Feb 10 02:03:04 ? Feb 10 02:04:08 libcore is all the standard java libraries, isn't it? I see io, awt, math, net, etc... Feb 10 02:04:16 yes, basically Feb 10 02:04:30 Also, I should be using repo instead of git with aosp, right? Feb 10 02:07:27 wow, I see stl here too. is it necessary to use C, C++, Java, and Javascript? I guess because bionic is in c, webkit in c++, user interfaces and whatnot in java/xml, interfacing websites in javascript... Geezlouise... Feb 10 02:10:08 meh sql Feb 10 02:10:48 i need to find a cheap tmobile android phone so i can test with Feb 10 02:10:55 http://swappa.com Feb 10 02:11:00 Syliss, ^^ Feb 10 02:11:06 ill see Feb 10 02:11:12 super poor atm Feb 10 02:12:10 i watch craigslist everyday Feb 10 02:12:24 ok, here's my question: What is the easiest way to verify that an app was bought? Feb 10 02:13:03 havoc74, license service Feb 10 02:13:42 do I need a server for a response, or is it included in Google's Market ? Feb 10 02:13:49 Heh, there's archquery/../Main.java, funky that the scripting is in Java. Feb 10 02:14:18 can i place a select statement inside a count() in sql? Feb 10 02:14:29 no Feb 10 02:14:59 pfn: thank you :) Feb 10 02:15:29 meh, $65 for a crappy 3g mytouch Feb 10 02:15:43 pfn i tried your query but it returns 0 records when no toggles are set Feb 10 02:16:18 xorgate, of course Feb 10 02:16:42 well thats not what i want :) Feb 10 02:17:22 my listview's rows get enabled/disabled (gray or normal) depending on how many set toggles are behind the row Feb 10 02:17:50 then it might just be that you need to process the counts in code Feb 10 02:20:10 when it comes to being just a developer tool, not actually a phone, you can't beat verizon-locked devices on swappa :D Feb 10 02:23:06 why would you put a select inside a count? Feb 10 02:23:09 o_O Feb 10 02:23:15 basically subselects Feb 10 02:23:34 but that would be a subquery elsewhere, not in the count Feb 10 02:23:37 well i dont know.. sql fries my brain Feb 10 02:24:06 relational model is played Feb 10 02:24:19 lol Feb 10 02:27:03 i'm glad no one took that obvious flame bait Feb 10 02:27:09 i need to actually get work done Feb 10 02:27:12 rather than prove you wrong Feb 10 02:28:23 * p_l hopes google will stop deliberating o his CV and send the response, even if it's "sorry, no place for you" Feb 10 02:28:30 maybe it wasnt so obvious :0 Feb 10 02:28:42 lol Feb 10 02:28:54 true, that's why the second one was less subtle Feb 10 02:28:57 hmm... two lols in a row. bad, bad p_l Feb 10 02:29:01 but no one seems to fall for that one either Feb 10 02:29:10 guess I actually will have to do work :( Feb 10 02:29:14 what did I give you before Feb 10 02:29:42 R-E-S-P-E-C-T? Feb 10 02:29:59 select count(property_id), name, is_selected from tbl_property, tbl_toggle where tbl_property.id = tbl.toggle.property_id group by name, is_selected Feb 10 02:30:02 that works Feb 10 02:30:29 man, i've been corrupted with tsql Feb 10 02:30:31 :( Feb 10 02:30:46 JakeWharton: IMHO better T-SQL than MySQL Feb 10 02:30:50 but YMMV Feb 10 02:31:01 t-sql is what, mssql? Feb 10 02:31:06 yeah Feb 10 02:31:12 it's all we use at work Feb 10 02:31:14 I dunno about better than, but ok Feb 10 02:31:17 pfn: MS SQL and Sybase Feb 10 02:31:19 relational model and t-sql Feb 10 02:31:21 kills me Feb 10 02:31:28 (Sybase being the origin) Feb 10 02:31:58 yeah, writing jdbc against mssql/sybase is a bitch because the tsql drivers aren't open... well, they weren't, but I guess some 3rd party RE'd it Feb 10 02:32:34 pfn: afaik it was less RE'd, more "written" Feb 10 02:32:44 it was the quirks that had to be figured out, IIRC Feb 10 02:32:50 well, you can't write to a spec you don't know unless you RE it Feb 10 02:35:47 http://androinica.com/2012/02/where-is-my-google-chrome-for-android-the-wait-continues-for-non-ics/ Feb 10 02:36:06 sounds like it was written by someone that knows almost nothing about Android nor application development Feb 10 02:36:37 JakeWharton: sounds typical for MSM. :P Feb 10 02:36:45 msm? Feb 10 02:36:55 xorgate, what, no thank you? :p Feb 10 02:37:16 pfn thanks for the help even though it's not the right answer :) Feb 10 02:37:23 xorgate, I did give you the right answer Feb 10 02:37:27 18:29 select count(property_id), name, is_selected from tbl_property, tbl_toggle where tbl_property.id = tbl.toggle.property_id group by name, is_selected Feb 10 02:37:36 main stream media! Feb 10 02:37:37 figured it out Feb 10 02:37:58 pfn oh didnt see that one let me try Feb 10 02:38:03 man, JPA spoils me with joins Feb 10 02:38:12 i forgot you have to explicitly specify everything every time Feb 10 02:40:12 jpa is certainly nicer than activerecord... Feb 10 02:40:29 * pfn hasn't written anything with jpa in years Feb 10 02:41:13 hopefully after I leave this job I won't have to do relational crap anymore and worry about things like that Feb 10 02:41:30 .ini files FTW! Feb 10 02:45:20 I wish GitHub let you put a message to people filing out issues Feb 10 02:45:39 pfn the group by name, this is property.name? Feb 10 02:45:55 yes Feb 10 02:46:19 i'm getting the same property twice in my results Feb 10 02:46:47 you get a count of true vs false Feb 10 02:50:16 you will need to coalesce the rest of the results on your own Feb 10 02:51:13 maybe i'm just better off doing another query per property Feb 10 02:57:23 hmm Feb 10 02:57:33 would the behavior of a color state drawable change between GB and ICS? Feb 10 02:57:58 i define a 'selected' color to be the same as the normal text but on GB is still shows the wrong color Feb 10 02:59:14 well problem solved Feb 10 02:59:20 yet not very elegantly **** ENDING LOGGING AT Fri Feb 10 02:59:57 2012