**** BEGIN LOGGING AT Sun Sep 02 02:59:59 2012 Sep 02 03:50:42 hi guys. this is my first time building android and im getting this error. can you explain what it means. i dont want to randomly comment out the offending statement.. Sep 02 03:51:16 overlay/packages/apps/Settings/res/values/config.txt:19: error: Resource at has_led_flash appears in overlay but not in the base package; use to add. Sep 02 03:56:45 anyone here?? Sep 02 04:23:09 hello - I'm trying to set up the SDK platform tools on Debian squeeze, but adb keeps telling me there are no devices detected Sep 02 04:23:12 what should I do? Sep 02 04:29:34 Hi all. I'm returning a List of objects from a sqlite query, where one int property might be null. The constructor for that object wants an int, and parseInt on null causes an exception. What's the usual way to deal with this? Sep 02 04:30:18 jyc: try doing adb kill-server then adb start-server Sep 02 04:30:34 jyc: and then adb devices Sep 02 04:30:45 ologn, did that, seems to work now. thanks! Sep 02 04:32:51 I considered using the empty one and doing an if not null for each field in the sql results, but wondering if that's the best way. Sep 02 04:50:03 Anyone around? Sep 02 05:37:20 DaveD0101: try { parseInt() } catch(NumberFormatException e) { ; } ... Sep 02 05:47:13 i'm working with the headset button and i have a Toast display when pressed, but it fires 5 times with one press Sep 02 05:47:20 anyone know what's up with that? Sep 02 05:52:12 anyone know why my broadcastreceiver onreceive is firing multiple times per button click? Sep 02 05:54:11 had android:priority="10000" set for intent-filter Sep 02 05:54:30 deleted that, not it only fires twice? why would that happen? Sep 02 06:00:44 seriously, wake up people Sep 02 06:18:24 ElefantPhace: are the received intents identical? Sep 02 06:18:51 how would i check? Sep 02 06:24:58 yes they are, could it be possible that it's firing once for keydown and once again for keyup? Sep 02 06:27:30 ElefantPhace: yes almost certainly actually Sep 02 06:29:03 hmm ok that makes sense Sep 02 06:30:19 you can check for the keyevent and only handle one Sep 02 06:36:15 && ke.getAction() == KeyEvent.ACTION_UP works perfect now Sep 02 06:36:24 thanks, just needed talking it out Sep 02 06:44:58 hello Sep 02 06:46:01 I want to make a streaming video app Sep 02 06:46:29 where users can build lists of channels themselves Sep 02 06:47:34 LOL http://www.youtube.com/watch?v=zPP5Bvtr2Dg Sep 02 08:35:44 Hey! Sep 02 08:36:53 Probably this is the most common question. Sep 02 08:43:30 I know a little programming, I mean JS and PHP. And defintely know basics of programming. And I search for good book, or tutorial into Java android programming. Sep 02 08:49:20 Could you reccomend me something ? Sep 02 08:52:00 is possible tu use a CursorLoader without a content provider? Sep 02 08:53:35 No, that's the whole purpose of CursorLoader Sep 02 08:56:39 SimonVT, so if i want to do the same but for a simple SQLiteOpenHelper class what you suggest? Sep 02 08:56:53 Create your own Loader Sep 02 08:58:24 ok Sep 02 09:08:50 Could you recommend me something? Sep 02 09:10:18 ? Sep 02 09:11:24 if i use NDK on android, can i write a completely operative application, and display something on the screen? or NDK is just for low level libraries? Sep 02 09:16:53 rendar: you can write an app Sep 02 09:17:12 aolin: an entire app in NDK ? Sep 02 09:18:28 rendar: http://developer.android.com/reference/android/app/NativeActivity.html check this out Sep 02 09:18:57 aolin: thanks man Sep 02 09:19:45 aolin: it says Since: API Level 9 -- so its since android 3.x ? Sep 02 09:20:11 that is 2.3 Sep 02 09:20:17 oh i see, thanks Sep 02 09:20:32 it's little bit more cumbersome if you want to include 2.2 Sep 02 09:20:43 aolin: ok Sep 02 09:21:04 2.3+ covers 90% of the current install base anyways Sep 02 09:21:07 lets just not and hope it goes away. Sep 02 09:21:32 and the 2.2 owners arent probably big on buying apps anymore Sep 02 09:23:21 SimonVT: yeah, I have other keys in that keystore that I don't want to share. Sep 02 09:24:20 mr6: I had a look in Keytool, but all i could see was ExportCert Sep 02 09:26:27 I might have found something: http://security.stackexchange.com/questions/3779/how-can-i-export-my-private-key-from-a-java-keytool-keystore Sep 02 09:34:09 Hello Sep 02 09:34:15 Hello, i want my buttons to be able to change language (the text on the buttons should change on click on a 'control' button), any idea how to implement that? i guess it could be done programmicly, setText() but is there a better way? Sep 02 09:35:38 i am new to programming i would like to know what software do i need to download to start programming android apps Sep 02 09:35:55 you need eclipse Sep 02 09:37:51 Eclipse for Mobile Developers << this one Sep 02 09:38:14 Rootx10: have you considered automatically detecting/loading the language and not allowing to change it? Sep 02 09:38:23 regular eclipse would be fine to, just add the android adt Sep 02 09:38:47 like having multiple values directories: values-fr/strings.xml, values-es/strings.xml, etc Sep 02 09:39:29 it this case it's just xml, no code at all Sep 02 09:39:58 SuD: i dont want it to be control by the machine locale, i want to set the language on init, and then a click on a button would change the language. would that work like that? Sep 02 09:40:30 no. there should be a non-too-complicated way of doing what you want, but i'm not sure Sep 02 09:40:53 how do i make a LinearLayout stretch to the height of a TextView and ImageView inside it? Sep 02 09:41:06 my text is set to 20sp but it seems to cut my text off in height Sep 02 09:43:44 Rootx10: http://developer.android.com/sdk/installing/index.html Sep 02 09:54:11 Ankhwatcher, i used apt-get intsall eclipse eclipse-jdt eclipse-pde eclipse-platform eclipse-rcp Sep 02 09:54:38 SuD, what do you mean by automatically detecting/loading the language Sep 02 09:56:15 i meant the default mechanism for doing it, having different resource directories which the android system loads "values-en" "values-fr" and so on Sep 02 09:56:36 but it won't allow to manually select or change the language Sep 02 09:57:04 that socket question not mine xP Sep 02 09:59:57 i am still trying to install eclipse and android sdk to start learning how to develop android apps for the first time (if you have any good tutorials for me that you recommend that would be great ) Sep 02 10:00:38 Rootx10: okay, so fire up eclipse and install adt Sep 02 10:02:13 Downloading HTC OpenSense SDK, Android API 15, revision 2 (Download finished with wrong size. Expected 27230698 bytes, got 77 bytes.) Sep 02 10:02:34 it asked me to enter a user name and password some thing like that Sep 02 10:02:50 Rootx10: to install adt in eclipse? Sep 02 10:03:02 maybe you can omit that htc module? Sep 02 10:03:05 Hi, I want to draw a png as a background of a textview. Can I make that autoscale to fit the text? Sep 02 10:03:10 no to download stuff from android sdk manger Sep 02 10:03:33 yeah i'll sure do that SuD : Sep 02 10:05:01 I can get it to draw a circle which does scale with the textview itself, but I want to use something a little nicer than just a circle. nine-patch won't work either. Sep 02 10:05:34 my goal is to develop an gps tracker the runs as a service on any andorid with gps builtin when u send an sms to it, it will send the coordination back to you (just for fun) Sep 02 10:11:33 has anyone had any experience with google maps Sep 02 10:11:34 ? Sep 02 10:12:52 ToggleButton is androidn 4+ only? Sep 02 10:16:00 hmm Ankhwatcher it downloaded Eclipse SDK Version: 3.5.2, when i try to install the adt it gives me this error (Cannot complete the install because one or more required items could not be found. Sep 02 10:16:00 Software being installed: Android Hierarchy Viewer 20.0.3.v201208082019-427395 (com.android.ide.eclipse.hierarchyviewer.feature.group 20.0.3.v201208082019-427395) Sep 02 10:16:00 Missing requirement: Android Hierarchy Viewer 20.0.3.v201208082019-427395 (com.android.ide.eclipse.hierarchyviewer.feature.group 20.0.3.v201208082019-427395) requires 'org.eclipse.ui 3.6.2' but it could not be found) i googled and found out that i cant install it on tis version of eclipse i need 3.6.2 or higher) but when i try to update it says no update available Sep 02 10:16:33 socket: I think it' been there for a while Sep 02 10:16:46 switch are 4+ Sep 02 10:16:56 but they have a backport Sep 02 10:18:23 I know a little programming, I mean JS and PHP. And defintely know basics of programming. And I search for good book, or tutorial into Java android programming. Sep 02 10:18:46 Could you recommend me something ? Sep 02 10:20:43 bluesm: Just do the Android tutorials. They're a good start. Sep 02 10:20:58 1min Sep 02 10:21:12 http://developer.android.com/training/basics/firstapp/index.html ← Like this Sep 02 10:21:13 rking: Could you link me this ? Sep 02 10:21:16 :) Sep 02 10:21:21 hi - what's the best way to overcome the problem of the android emulator running impossibly slow on linux?\ Sep 02 10:22:03 rking: Ok. Thank you very very much! Sep 02 10:22:27 aum: What are the system specs? Sep 02 10:23:14 rking, i've tried 3.2, 4.1 and 2.1 Sep 02 10:23:41 no matter what android version, the emulator takes up to 30 minutes to start up, and is so slow that it's unusable Sep 02 10:24:11 running the emulator on 32 bit debian linux on 2.4GHz x86 system Sep 02 10:25:04 aum: is that a laptop? Sep 02 10:25:26 hrnt, desktop Sep 02 10:26:11 aum: Shouldn't be that slow. Sep 02 10:26:32 rking, no kidding Sep 02 10:26:52 aum: I'd try strace, personally. Sep 02 10:26:59 It's doing something pathological. Sep 02 10:27:25 i'm trying the 4.0.3 version with intel atom x86 Sep 02 10:28:09 i've googled the issue, pages and pages of other people reporting the problem, pretty much no solution Sep 02 10:28:33 i think you can't install HAX on linux though :( Sep 02 10:28:46 HAX? Sep 02 10:29:13 http://software.intel.com/en-us/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows/ Sep 02 10:30:12 so it depends on using hardware GPU capability, just to run at an acceptable pace? Sep 02 10:30:25 hrnt: Good tip (and it would be funny to use a VM to load that in Windows in Linux), but I don't think a 30minute startup is due to some microoptimizations like that. Sep 02 10:30:45 aum: No, it doesn't. That's what I'm saying by "it shouldn't be that slow" Sep 02 10:31:05 looks like you can do something on linux too: http://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator Sep 02 10:31:08 it's not encouraging for linux users Sep 02 10:31:15 godmorgon Sep 02 10:40:32 A content provider class is initialized via the manifest? Sep 02 10:41:11 my android version is 4.0.4 but i cant find that in the sdk manger what should i do ? Sep 02 10:41:54 look for your android's API version, not OS version. Sep 02 10:42:23 oh okay Sep 02 10:42:48 SimonVT: I found a work-around, I created a keystore just for sharing and imported the key into that from my keystore. Now I can give my friend that keystore. Sep 02 10:43:15 mr6: I found a work-around, I created a keystore just for sharing and imported the key into that from my keystore. Now I can give my friend that keystore. Sep 02 10:47:02 ok guys this Q isnt about developing, i'v got samsung s3 every time it asks me to update i only have to choses later or update when i press later it ask me to chose remind me in 1 2 3 hours or So Sep 02 10:47:31 when i update it gives me Failed to verify whole-file signature Sep 02 10:48:00 in clockworkMod recovery v5.8.4.5 Sep 02 10:48:07 my phone is rooted Sep 02 11:01:17 Rootx10: beats me, have you tried updating in Keys? Sep 02 11:01:24 sorry Kies Sep 02 11:06:29 Nope Sep 02 11:07:04 is there a linux kies Sep 02 11:07:40 i searched didnt find any Sep 02 11:20:17 http://a6.sphotos.ak.fbcdn.net/hphotos-ak-ash3/561057_10151048065097393_1705658618_n.jpg << WTF?! Sep 02 11:20:27 hello Sep 02 11:20:29 i'm having issues including a normal JAR into an eclipse android project. i've already added the jar to my libs dir, changed the JRE compliance level... ClassNotFound all the time Sep 02 11:20:40 i'm getting out of ideas... if someone has any suggestion, i'll be thankful Sep 02 11:44:31 Ankhwatcher, i just remembered when i try to use kies with my s3 it just keep loading nothing happens Sep 02 11:45:07 i am trying it right now Sep 02 11:47:32 question when using relative layouts is there a way to specify that all of them should have 15dp for margintop, or can that only be done with a linear layout whose orientation is vertical Sep 02 12:15:46 how do i get a string saved in R.string.s ? how do i get it from inside a function ? Sep 02 12:16:22 goddamnit, Why can't ETC1Util.compressTexture support 4 bytes per pixel formats. ;-( Sep 02 12:20:24 I realize it doesn't encode alpha but bitmaps work with int[] so you naturally get potential texture data like that also Sep 02 12:27:09 alankila: maybe this would be helpful? http://www.malideveloper.com/developer-resources/sample-code/index.php Sep 02 12:27:33 the first item on that page is called: ETCv1 Texture Compression and Alpha Channels - 24 September 2010 (its a pdf with sample code) Sep 02 12:32:36 sounds like probably not. Sep 02 12:32:52 what I really just need is a version of the native ETC1 compression method that allows 4 bytes per pixel input Sep 02 12:33:16 it only supports 2 or 3 bytes, presumably equivalent of GL_RGB with unsigned byte or GL_RGB with unsigned short 5_6_5 Sep 02 12:34:40 I just bit the bullet and resorted to converting from native-int ARGB to byte buffer RGB Sep 02 12:49:47 if in my view i have an image in the top left, and on the topright i have some buttons, how can i get the buttons to be vertically aligned in the center with the image? Sep 02 12:50:01 or do i need to group them in a layout Sep 02 12:52:28 thatll work Sep 02 13:15:47 Is it possible to copy a system class from one android OS and use it in a app on other devices so the app is consistent over all devices ? Sep 02 13:17:25 guys, have anyone here faced a problem in which tabs would jam on orientation change? Sep 02 13:26:31 durp: I've renamed some android classes which were isolated from the rest of the framework so that I could use their features Sep 02 13:26:42 some base64 encoding on android 2.1 and stuff like that Sep 02 13:27:14 hey, when i first installed the android adt i installed it for android 4 api. i'd like to add support for the 2.0 api, how can i add that? Sep 02 13:28:13 socket: just launch the program called 'android' in the SDK tools directory Sep 02 13:28:38 also today you might do best if you limited to android 2.2 and above Sep 02 13:29:17 why 2.2 ? Sep 02 13:29:20 and thanks Sep 02 13:29:36 well, 2.1's market share is quite low, and 2.2 is a lot better than 2.1 already Sep 02 13:30:23 2.1 is probably 3.x % now Sep 02 13:30:26 guys, have anyone here faced a problem in which tabs would jam on orientation change? Sep 02 13:31:22 it'll probably take until this year's end before 2.2 can be ignored Sep 02 13:31:57 and that may be optimistic. Sep 02 13:35:25 alankila: in the sdk manager i've got API13,11,10,8 any idea which one should i install? it does not specify the android version Sep 02 13:36:41 8. Sep 02 13:36:51 thanks Sep 02 13:36:55 (API2.2) Sep 02 13:39:19 How can I save scripts on my phone without them being erased on reboot? Sep 02 13:54:34 alankila: mmh I need the mediaplayer Sep 02 13:54:43 the native code runs different on other devices Sep 02 13:54:55 I wanted to try to copy the working version of a device and use it on others Sep 02 14:27:42 Hi, is anybody familiar with the Notification.Builder class from ICS? I'm having problems with it. Sep 02 14:30:52 Hello guys Sep 02 14:31:57 I was wondering how to have a second ad network show up if the first one doesn't have ads? Sep 02 14:32:04 at the moment Sep 02 14:33:04 HELLO Sep 02 14:33:31 * Rabbit_ Rapes Everyone Like A Rabbit * Sep 02 14:50:55 when compling an android apk file, are there more than one type of executable? debug packaging/ clean packaging... like in c/c++ ? Sep 02 15:06:16 I am having trouble using glSurfaceView, I think it has to do with extra swap buffers if that is possible. On a tablet with a higher frame rate camera it happens less often. I have timestamps of all my frames and I print them to logcat in the render method called from onDrawFrame. They are in order. But what I see is old frames played over agin before new frame. Sep 02 15:07:44 For example a car drives down the road and is at positon a then b then c then d. I see a->b->c->a->b->d.... Almost like it is replaying what is in the backbuffers because I am not done updateing them??? Any ideas Sep 02 15:09:23 Hi all. I'm new to android and I've managed to generate a dynamic list of radiobuttons to a rb group and set their text appropriately. Is there a way to associate an additional value to each? Sep 02 15:11:26 value? I think you need to assign listeners or a single listener which detects based on the view which button was selected and acts appropriately Sep 02 15:13:59 jshanab_, I'm able to determine which radiobutton was selected. The problem is I have an ancillary bit of information I need to associate with each so I end up with something like a name/value pair Sep 02 15:16:58 DaveD0101: why not use a Map? you can use the ids of the RadioButtons for identification Sep 02 15:18:08 JW301, I'll look into that. Thanks. Sep 02 15:33:36 JW301, Were you thinking add each rb's id as the key for this as I create them? Sep 02 15:35:16 yes something like that... not sure if that is appropriate as i don't know exactly what you are trying to do Sep 02 15:38:19 JW301, Yeah I didn't do a great job of explaining. I think what I might want to do here is just extend Radiobutton. I had assumed that any widget like that would have a "value" property of some kind. Sep 02 15:38:54 View.setTag(..) Sep 02 15:40:15 SimonVT, This looks perfect... Sep 02 15:47:43 I tried settijng a flag not to call requestRender( ) in my onDrawFrame of an glSurfaceView if I do not have data, but if 2 or 3 happen in a row it stops calling the onDrawFrame completely and the update never happens. WTF? Render When Dirty mode is in use, is there some kind of requirement that I call requestRender within a timeout? Sep 02 15:53:05 SimonVT, Brilliant. Did *exactly* what I wanted. Sep 02 15:53:14 Thanks guys, I appreciate the help. Sep 02 16:50:15 anyone know how to set an export PATH to persist within superuser shell (i.e. su)?   is there a bashrc or profile file somewhere? Sep 02 16:58:13 t Sep 02 16:59:58 does android has some timer class, which will start counting miliseconds since app start? Sep 02 17:03:11 Pitel, Perhaps this? http://stackoverflow.com/questions/1877417/how-to-set-a-timer-in-android Sep 02 17:04:33 DaveD0101: nope, I want something like System.currentTimeMillis(), but not since epoch, byt since app start... sure, I can remeber time since start and then do the math, but I hoped there is easier way Sep 02 17:06:50 pitel Sep 02 17:06:57 you dont understand the android app lifecycle Sep 02 17:07:03 please go read up on it Sep 02 17:08:06 I guess I do, and I will restart the timer on onResume(). Sep 02 17:11:41 Is there a known bug in glSurfaceView? If I set it to RENDERMODE_WHEN_DIRTY which allows me to control the swap buffers but I do not call it in OnDrawFrame it just stops calling onDrawFrame so it never resumes. So far the only way I have found to display A 1fps source is to sleep the thread. :-( If I allow it to swap buffers before there is data, it replays old data. How do I "skip" the... Sep 02 17:11:42 ...swapbuffer if I do not have data? Sep 02 17:12:23 yike, that is a 10fps not 1fps LOL. I need from 3fps to 30fps Sep 02 17:14:36 how many kittens will god kill if i want to use support r10 with actionbarsherlock & maven and use maven to exclude the maven central support artifact from abs Sep 02 17:29:09 How can I edit the contents an EditText from inside the emulator? It doesn't appear to get input from the keyboard, and I don't get the popup keyboard either. Sep 02 17:33:47 maslen: in the AVD settings, set the property "Keyboard support" to true, then you can type in the emulator with your keyboard Sep 02 18:27:25 JW301: Success! Thanks ! Sep 02 18:43:15 I have extended viewGroup and implemented its methods, but when I launch application my view is not displaying any content, can anyone tell what could be the problem? Sep 02 18:46:01 Why, if I put this in the begining of my shader, it stops working? According to everyhtin what I read, it shoudl work fine in Android. Sep 02 18:46:02 #ifdef GL_ES Sep 02 18:46:02 precision mediump float; Sep 02 18:46:02 #endif Sep 02 18:46:15 when i remove the ifdef, it works Sep 02 18:46:58 problem is, I will be loading the shaders from web and I don't have control about their content. Sep 02 18:47:14 if its text you always do Sep 02 18:47:27 you can just incert your own strings as a preproccessing step Sep 02 18:49:18 hey guys Sep 02 18:49:47 im planning a project for senior design, and was wondering if anyone knows where i could start looking to see how i can hook up an old android phone, rasberry pi or whatever system to an eink display Sep 02 18:50:03 well, that's true. but, "OpenGL ES 2.0 implementations are required to have a GL_ES macro predefined in the shaders.", so it should just work in the forst place. maybe it's just soemthing broken in latest cyanogenmod... Sep 02 18:50:49 Pitel: well, CM doesn't supply the GLES implementation, so it would depend on the device Sep 02 18:51:27 should i make 2 activities and switch between them when the user rotates the device 90 degrees? i need a different look when it's horizontal. or is there a better way to that? Sep 02 18:51:30 what gpu? Sep 02 18:52:17 TheBunny: don;t know exactly... nexus s. Sep 02 18:52:47 viran: not activities, just layouts, and read something about resources Sep 02 18:52:53 but something nice and high end and not shit that would sound like :) Sep 02 18:53:04 harpal got relevant code to show? Sep 02 18:53:21 xorgate: ya, let me pastebin it. Sep 02 18:53:24 Pitel: Nexus S uses PowerVR Sep 02 18:54:21 Pitel: do you get an error or could you tray changing it to high instead. etc and see if it then runs as expected/ Sep 02 18:55:33 After starting an Activity, how can I get data back from it ? Sep 02 18:55:50 TheBunny: how can I get shader compilation errors from android? I don;t see anything relevant in logcat Sep 02 18:56:16 xorgate: here is the class which is extending ViewGroup http://paste2.org/p/2181808 Sep 02 18:56:49 TheBunny: highp in ifdef does not work. without ifdef, it does. mediump is the same Sep 02 18:58:17 GLES20.glGetShaderInfoLog(shader) Sep 02 18:58:18 Maybe? Sep 02 18:58:38 harpal and the usage? Sep 02 18:58:49 ok so it seems like just the ifdef is not working Sep 02 18:59:47 you know at worst it sounds like you can simple load your string from the web and then define GL_ES your self and incert that at the top of your shader Sep 02 19:00:03 We do things like that ll the time on the MMO I work on. Sep 02 19:00:21 to dynamically change about 4000 shaders on PC Sep 02 19:00:25 harpal: You're not calling layout(..) on your child view Sep 02 19:00:27 xorgate: here is layout file where I am using it . http://paste2.org/p/218182 Sep 02 19:00:34 Also, why are you not measuring it during onMeasure Sep 02 19:03:14 something like this, but this is really old; http://www.eink.com/sell_sheets/AM350_Kit_Sell_Sheet.pdf Sep 02 19:03:45 SimonVT: I am new to this ViewGroup, So I have to do dHome.layout(0, 0, width, height); in onLayout function? Sep 02 19:04:12 If that's where you want to position it Sep 02 19:05:00 TheBunny: ok, the custom define seems like ok solution. :) Sep 02 19:05:23 You might also want to consider padding of your viewgroup, margin of your child view Sep 02 19:05:40 SimonVT: ya, I want to place with full screen. no margin no padding. Sep 02 19:06:15 also you could put it in like. #if !defined( GL_ES ) #define etc… just in case to avoid any issues in the future shrug, and yes I see notes online already saying this shoudl all just work… but no answers. Sep 02 19:08:45 at least maybe you can get some real work done and worry about it later :) Sep 02 19:09:11 can anyone tell me how i should update the progress of a notification created by Notification.Builder? the way I do it makes the notification flicker in the status bar... Sep 02 19:14:46 TheBunny: I/GLSL (15186): ERROR: 0:1: '' : Invalid directive endifuniform Sep 02 19:15:34 oh... dumb me :) Sep 02 19:17:08 making the shader with "#ifdef" + ... "#endif" breaks the spaces :] Sep 02 19:19:17 adding \n, solved :] Sep 02 19:19:22 LOL Sep 02 19:19:24 ok :) Sep 02 19:19:40 does that fix everything or didyou just insert that? Sep 02 19:20:19 SimonVT: I added layout and now its displaying :D Sep 02 19:20:21 well, when I will implement dhader downloading, the \n will be there. but in the hardcoded testing shader, it wasn't. so I guiess it;s fixed for good :) Sep 02 19:21:03 But problem is that content is not displaying properly, mean I have 4 buttons at bottom are not showing properly. Sep 02 19:32:07 Hello. My app targets API level 8 and I'm using ActionBarSherlock to provide an ActionBar. I have a status indicator in my actionbar which is a compound drawable textview. I added it as an in my optionmenu xml file. This part works. Now I want to make it clickable so I added a case to the switch on menu.getItemID() in onOptionMenuItemSelected() referencing the textview menu items android:id. Sep 02 19:32:46 it doesn't call my click handling function. Is this not the right way of doing it? Sep 02 19:33:36 I also tried adding android:clickable="true" to the textviews xml but no difference. Sep 02 19:36:33 xorgate: any ides on why my buttons are not displaying in viewgroup? Sep 02 19:37:01 harpal did you look at SimonVT's comments? Sep 02 19:37:11 (i dont know the answer) Sep 02 19:37:38 xorgate: ya, doing that I am able to display content in viewgroup, but its not displaying complete data. Sep 02 19:45:53 any recommended way to switch between layouts in run time? Sep 02 19:53:21 viran what are you trying to achieve? Sep 02 20:00:08 The recommended way is probably fragments Sep 02 20:01:49 xorgate: i want to switch to a horizontal layout when detecting a rotation to a horizontal position Sep 02 20:02:26 viran your activity will get recreated. use a different layout file in th eresources for landscape/portrait Sep 02 20:02:57 thanks Sep 02 20:04:01 viran res/layout/yourlayout.xml and res/layout-land/yourlayout.xml Sep 02 20:55:22 Hi, do you know how to make the second column having the good width inside the gridlayout? http://dl.dropbox.com/u/23108587/gridlayout%20problem.jpg Sep 02 21:09:05 can someone tell me how to check if an in-app item has been purchased? Sep 02 21:18:42 so for an ActionProvider, when the user clicks it, can the shown thing be any arbitrary layout or does it have to be a menu ? Sep 02 21:32:44 can i do a GeolocationPermissions.Callback activity class enabling the mylocation, Sep 02 21:33:29 my idea is show google maps in webview Sep 02 21:33:36 see example source Sep 02 21:33:43 http://pastebin.com/9EPDvrKQ Sep 02 21:33:48 is possible create a route from my location to another address Sep 02 21:45:30 can someone tell me how to check if an in-app item has been purchased? Sep 02 21:55:07 is it possible to code my own settings.API? Sep 02 21:55:31 apk Sep 02 22:01:11 if I do a Textview for a string-arrays. can I use it to do separate items? Sep 02 22:02:40 like TextView android:I'd="@string/example the main thread is the UI thread, which is what it's referring to Sep 03 01:42:15 Jaggz- , that is what I'm interested to know. I'm not running any asynctask or anything Sep 03 01:43:19 I'm completely new to this, so in asking I have little hopes I'll help, but to learn. Sep 03 01:44:16 https://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object,%20java.lang.String) Sep 03 01:44:17 how do UI threads relate to application components (Activities, Services, ...) Sep 03 01:44:26 "JavaScript interacts with Java object on a private, background thread of this WebView" Sep 03 01:44:34 Jaggz-: You're *here* now?? Sep 03 01:44:49 omg I hope not Sep 03 01:44:52 Hehe Sep 03 01:44:59 wait, is this place sacred? Sep 03 01:45:13 Jaggz-: What's up? What do you mean by "determine what thread"? Sep 03 01:45:30 I shouldn't bother thinking about it yet. It was to help sinaa, but I'm completely lost myself. Sep 03 01:45:32 Like, if you have a bit of running code and you want to find what thread is doing it? Or how do you make some certain code run in a given thread. Sep 03 01:45:32 You do android coding? Sep 03 01:46:13 Meh. I was going to for my current contract but they decided to focus on web stuff, so I did that the last few months instead. I learned enough that I feel like I can do it when I get the chance, though. Sep 03 01:46:16 SimonVT, so why on earth would they make a feature, that may not be available in the future?!! Sep 03 01:46:18 How do I open a new activity with a listview? Sep 03 01:46:34 http://www.androidhive.info/2011/10/android-listview-tutorial/# Sep 03 01:46:58 sinaa: They're letting you know that it's not safe to call webview methods from a non-ui thread Sep 03 01:47:01 i tried this tutorials but when i press it goes to the same layout Sep 03 01:47:08 So, don't do it Sep 03 01:47:24 "Those irrational wishes that draw you to their creed, those emotions you worship as an idol, on whose alter you sacrifice the earth, that dark, incoherent passion within you, which you take as the voice of God, or of your glands, is nothing more than the corpse of your mind." - GOP Sep 03 01:48:24 You generally shouldn't interact with any view from a non-ui thread Sep 03 01:49:14 SimonVT, the javascript interface lets you call android functions from the webview. I do really need this. and I know care has to be taken on what pages I load and what methods I make public. but apart from that, is there any better way to do it? Sep 03 01:49:43 When you call methods on the webview, you have to do it on the main thread Sep 03 01:49:55 e.g. using a handler, or Activity,runOnUiThread Sep 03 01:51:34 hmm, I am quite new to this. any online resources you can give me to read/take a look at? seems like exactly what I am looking for Sep 03 01:51:58 Not any at hand Sep 03 01:52:22 You should be able to google it Sep 03 01:52:29 Or at least look up the activity method Sep 03 01:53:43 did look it up. comes up as a runnable class. taking a look though at stackoverflow. cheers for the help Sep 03 02:01:26 SimonVT, that was it. runOnUiThread :) Sep 03 02:18:13 Could someone explain to me what the control flow is in the "Snake" sample app? I don't understand how it's actually launching the 'game' part of it. Sep 03 02:33:06 wow that's a lot of people :) hello! Sep 03 02:35:05 hi Sep 03 02:35:13 hello Sep 03 02:35:16 sup Sep 03 02:35:23 i'm new here :) Sep 03 02:35:26 same Sep 03 02:35:29 :D Sep 03 02:35:34 is it usually this silent here? :D Sep 03 02:35:35 oh Sep 03 02:35:38 :D Sep 03 02:36:16 you actually are the first dude i saw chatting here Sep 03 02:36:28 or dudette :) Sep 03 02:36:35 haha, like chatting Sep 03 02:36:44 and it's weird how only the newbies make noise Sep 03 02:36:52 hahaha so you are here for the chitchat? :) Sep 03 02:36:57 well nobody responded to my question Sep 03 02:37:00 so just hanging here Sep 03 02:37:13 ya sorta, finally got a irc client installed Sep 03 02:37:18 Most of us aren't sitting here watching our screen.. Sep 03 02:37:21 the web irc client was annoying Sep 03 02:37:31 I'm connected all the time via my IRC bouncer, but I'm not usually actually using IRC. Sep 03 02:37:37 yeah i actually came hoping somebody could answer this question i have :) Sep 03 02:37:42 watching ur hands then? Sep 03 02:37:48 I'm not a dev, sorry, I just like to read in here sometimes. Sep 03 02:38:14 Ohhh if you are not a dev general, what interests you here? Sep 03 02:38:27 You might do well to check out the xda developers forums. There's a lot of good information there, especially if nobody is responding here. Sep 03 02:38:39 Could someone explain to me what the control flow is in the "Snake" sample app? I don't understand how it's actually launching the 'game' part of it. Sep 03 02:38:43 I have an Android phone, I'm just not a programmer. Sep 03 02:38:59 I just like to read what's discussed in here, sometimes. Sep 03 02:39:02 what are general_crespin? what do you do? Sep 03 02:39:10 *what are you Sep 03 02:39:15 A user. Sep 03 02:39:25 Oh Sep 03 02:39:38 That's all.. Sep 03 02:40:09 i was actually expecting for a loud and noisy chatroom when i came Sep 03 02:40:16 mahkie: well congrats now it is Sep 03 02:40:20 Haha. Sep 03 02:40:36 especially that this is the chatroom endorsed by the team Sep 03 02:40:37 hahaha Sep 03 02:40:41 thanks mr6 :) Sep 03 02:40:43 i sense sarcasm :p Sep 03 02:40:57 So stick around... it'll be busy other times. Sep 03 02:41:02 dvdh i can taste it Sep 03 02:41:10 heh Sep 03 02:41:12 maslen: what don't you understand? pretty straight forward it is only one activity Sep 03 02:41:46 hey since there are some people now Sep 03 02:41:54 i'd like to fire my question now Sep 03 02:42:34 any idea why the android team didn't see the importance of supporting full justification alignment of text by default? Sep 03 02:43:16 the way to achieve it seems too much. it's either very heavy Sep 03 02:43:35 or complicated Sep 03 02:46:05 mr6: I see that it creates the snake_layout (which is the XML), and it calls initSnakeView(). But all it does is load the tiles, and doesn't seem to actually launch the 'main' application Sep 03 02:47:03 mahkie: not really sure why, but my exp is text alignment is time consuming, sometimes i cant really achieve wat i want ~_~ Sep 03 02:47:56 how come my R.java was delete after clean? Sep 03 02:47:56 dvdh: I know right? Sep 03 02:48:27 optimusM: R.java is dynamically generated. Sep 03 02:48:28 optimusM: my experience telss me there must have been something wrong with one of your XML files Sep 03 02:48:39 optimusM: thank god R.java gets deleted after clean! Sep 03 02:48:41 maslen: hint: SnakeView.java handles everything Sep 03 02:49:29 idk don't see any problem though :\ Sep 03 02:49:30 while ur at it, do a refresh of the project if ur on eclipse :) Sep 03 02:50:03 hi Sep 03 02:50:26 mr6: I see that all the logic is there, but I don't understand the control flow. Sep 03 02:50:29 dvdh: i still need the justified alignment though Sep 03 02:51:05 mahkie: not sure whats justified alignment? Sep 03 02:52:03 fix it lol Sep 03 02:52:03 dvdh: full text justification means that i need the text to be align both left and right Sep 03 02:52:17 *aligned Sep 03 02:52:45 like they do on magazines. i need to flush the texts to both left and right Sep 03 02:53:12 ahh, like increase/dec spacing to fit? Sep 03 02:55:50 maslen: there's a RefreshHandler it looks like Sep 03 02:56:27 mr6: Right, but I don't see how it's launched, it just appears to be waiting for something else. Sep 03 02:56:36 (That's my understanding of the word 'handler' as such) Sep 03 02:57:07 A Handler is used to post messages to a message queue Sep 03 02:57:17 mahkie: ahh i see after some googling, not supported it seems Sep 03 02:57:26 maslen: look at the key handling code Sep 03 02:57:33 maslen: it calls update() Sep 03 02:57:51 mr6: But that requires that I push a key once before I trigger it, doesn' tit? Sep 03 02:58:18 maslen: it would appear that a keypush is required to get the loop going Sep 03 02:58:20 yes dvdh. was there a io keynote/dev-hours that discussed how Google currents has been developed? Sep 03 02:58:40 mr6: Wouldn't that be a 'bad' practice? Sep 03 02:58:55 maslen: why? you have to touch the screen to start the game, so what? Sep 03 02:59:02 Mr6: Or is that the first 'push the down button to start the game' ? Sep 03 02:59:13 maslen: also, does it work, heh? I haven't ever built/run that sample Sep 03 02:59:20 mr6: It does. Sep 03 02:59:21 dvdh: Google currents is able to do the justification. as to how i'm still puzzled Sep 03 02:59:43 dvdh: i am under the impression that Google currents is using html5 but that is my guess Sep 03 02:59:44 maslen: yeah it looks from glancing at the code it would start the screen update loop after the first touch **** ENDING LOGGING AT Mon Sep 03 03:00:00 2012