**** 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?