**** BEGIN LOGGING AT Thu Jul 12 02:59:58 2012 Jul 12 03:15:11 hi QubeZ Jul 12 03:16:01 sup mysteronyx Jul 12 03:16:09 nice nick btw Jul 12 03:20:37 Sup Jul 12 03:22:18 Anyone very familiar with admob? Jul 12 03:22:24 I got a question about house ads Jul 12 03:24:52 QubeZ thank you Jul 12 03:25:00 Failed to read row 0, column 5 from a CursorWindow which has 1 rows, 5 columns. ? Jul 12 03:25:21 why would it fail reading the 5th column when it has a 5th column? Jul 12 03:25:45 t-dub: I'm not sure if I'm very familiar but I've used it Jul 12 03:25:50 what are you looking to do? Jul 12 03:26:03 i hate adware Jul 12 03:33:10 mysteronyx: need to see your code Jul 12 03:36:44 ok so i have some code that basically does looper.prepare(); mHandler = new Handler() { blah blah }; Looper.loop() Jul 12 03:37:10 i would LIKE to factor the handler out of that method into a separate method Jul 12 03:37:14 can that be done? Jul 12 03:38:19 and thers another thing i dont get about this Jul 12 03:38:41 this class has methods but not constructor so its not instantiated Jul 12 03:38:52 but the code works. my java skeelz are too nub to understand that Jul 12 03:39:00 how can you have a class that has nothing but methods? Jul 12 03:39:05 no constructor Jul 12 03:39:58 what's the best way to use git with android dev? Jul 12 03:40:05 use a .gitignore file? The eclipse pluging thing? Jul 12 03:40:10 plugin Jul 12 03:48:02 I've been using .gitignore files and the Eclipse plugin Jul 12 03:48:16 but I do adds and commits in the command line Jul 12 03:48:30 and I've never had a git push work from Eclipse Jul 12 05:05:58 when I run my app on my phone via Eclipse, I keep getting an error that there is no such column in one of my tables. I manually edited the table in the code, but it seems like something is cached on my phone, because it's not seeing the new table. Any idea on how to get around this? Jul 12 05:06:34 msyeroynx: unininstall the app from the phone and then install it again via eclipse Jul 12 05:06:45 ok Jul 12 05:07:36 I'm assuming your update code is wrong, and not updating the tables correctly. Jul 12 05:07:57 the table never updates for some reason Jul 12 05:07:59 ok this is going to sound crazy but i have a timer that when it goes off i need a task to be performed OFF the user interface thread (thats working) and when the off UI task has completed i need that to kick the user interface thread into updating the display Jul 12 05:08:06 pastebin Jul 12 05:08:27 yhe UI wont be blocking while the timer task is doing its stuff... Jul 12 05:08:32 l44or: updating what display? Jul 12 05:08:47 dlaroche here are the create and update table methods: http://pastebin.com/tV0eYjRF Jul 12 05:08:50 well its a tile based game. it needs to redraw the scene Jul 12 05:08:58 they're entirely skipped over when I run the app, though Jul 12 05:09:34 the view is updated on the UI thread. i just need to tell it that it nees to update certain things in the UI when the timer expires and the timer task has finished doing its thing Jul 12 05:10:25 ok more specifically its this. the game is move based. when my player moves so do the mobs that are chasing him. but the point of the timer is that if the player does not move within "5" ? seconds the mobs move anyway Jul 12 05:11:39 l440r: just use an AsyncTask Jul 12 05:11:56 dlaroche, no. ill never use an async task Jul 12 05:11:57 not ever Jul 12 05:12:07 you can only have a very limited number of them in your application Jul 12 05:12:11 then use a damn thread! Jul 12 05:12:23 and you can only have so many of them in the system as a whole Jul 12 05:12:25 i have a thread Jul 12 05:12:29 how do you plan on doing the background task off the GUI thread? Jul 12 05:12:38 post a delayed runnable and clear it if the player moves Jul 12 05:12:40 i have the timer. i have the thread. Jul 12 05:13:08 Mysteronyx: i'm looking at it now. Just a sec Jul 12 05:13:15 JakeWharton, there are other reasons for using the timer though... Jul 12 05:14:01 dlaroche ok thanks Jul 12 05:14:16 but ill look at delayed runable Jul 12 05:14:26 is there a tutorial anywhere on using them? Jul 12 05:14:29 mysteronyx: correct me if I'm wrong, but you said that the app wouldn't run after uninstalling it and installing it again? Jul 12 05:14:44 I'm not sure if I completely uninstalled it Jul 12 05:14:54 l440r: yes Google is pretty good at find such information Jul 12 05:15:06 I uninstalled the app from the app section, but who knows if another file is cached on my phone Jul 12 05:15:18 dlaroche, my nic begins with an I not an L Jul 12 05:15:25 :P~ Jul 12 05:15:39 it stands for Ibanez 440 radius. one of my guitars Jul 12 05:15:46 its not 1337 speak Jul 12 05:15:48 On the device, go to manage applications, and then uninstall the app from there. Jul 12 05:15:55 dlaroche I did that Jul 12 05:16:02 I am dynamically resizing a SurfaceView programmatically as part of a RelativeLayout, but the LinearLayouts below it are shown on top of it, even clipped off at top of screen. How do I fix this? Jul 12 05:16:06 ok Jul 12 05:17:02 looking through the code, it's almost as if the sqlite database is never actually created. And yet it certainly has been Jul 12 05:17:33 I'm going off of this tutorial: http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ Jul 12 05:19:24 mysteronyx: your code looks good from what I can tell. Post your LogCat Jul 12 05:19:35 ok Jul 12 05:20:28 one sec I restarted Eclipse Jul 12 05:21:21 If I resize a View dynamically, how can I get the other child views to update in response? Jul 12 05:21:52 that's the job of the parent layout Jul 12 05:22:00 how do you resize the View? Jul 12 05:22:09 (also, SurfaceView doesn't like to be resized dynamically) Jul 12 05:22:11 dlaroche: http://pastebin.com/e3juwRmm Jul 12 05:23:05 it's clearly an issue with the login table not updating, as I've manually set login to have that credit column Jul 12 05:23:55 romainguy: I want to set SurfaceView width and height equal to displayWidth and have LinearLayouts below it. Jul 12 05:25:20 mysteronyx: you could try increasing the DATABASE_VERSION to 2 Jul 12 05:25:36 that would definetly cause an onUpgrade Jul 12 05:25:48 mysteronyx, can you do a '.schema login' Jul 12 05:26:19 romainguy: I use setMinimumHeight to resize the view Jul 12 05:26:29 Knows I'm not sure what that is Jul 12 05:26:36 dlaroche where do I set the DB version? Jul 12 05:26:46 is there any proper way to have a ListView within a ScrollView? Jul 12 05:27:05 Line 5 Jul 12 05:27:21 QubeZ: not really, what are you trying to accomplish? Jul 12 05:28:00 JakeWharton: I have a view that scrolls because it has fields for the user to enter info... but at the same time, at the bottom I need to show a listview of their "items" Jul 12 05:28:27 right now I dynamically grow the ListView (resize based on # of elements) so it doesn't scroll and only the main layout scrolls but I know this is bad practice Jul 12 05:28:51 dlaroche once I've upgraded to version 2, can I go back to version 1? Jul 12 05:28:51 http://stackoverflow.com/questions/5765346/how-do-i-know-when-to-update-the-database-android Jul 12 05:28:54 you could put the top view section into a ListView header Jul 12 05:29:21 mysteronyx: yes Jul 12 05:29:36 dlaroche that worked, thank you Jul 12 05:30:57 mysteronyx: then the database on the device wasn't uninstalling. Jul 12 05:30:59 JakeWharton: ok, i'll google up on that Jul 12 05:31:01 thanks Jul 12 05:31:20 dlaroche so that means I can uninstall apps yet not sqlite databases? Jul 12 05:31:33 or what I mean is uninstalling an app doesn't necessarily uninstall a database Jul 12 05:31:52 it should Jul 12 05:32:20 http://www.androidcentral.com/android-201-how-and-when-clear-app-cache-or-data Jul 12 05:32:25 postDelayed isnt fitting what i need to do.. or at least the examples im seeing SUCK for my purpose. also, i need to have a delay during which time the player cant move (i.e. slows player down when walking thru mud etc etc) Jul 12 05:32:36 the ground the player is walking over determins speed Jul 12 05:32:41 thanks dlaroche Jul 12 05:32:42 you have to clear the data and cache Jul 12 05:32:48 then uninstall Jul 12 05:32:50 ahhh Jul 12 05:32:55 that's the problem then Jul 12 05:33:07 dlaroche, does android not do that automatically for you now? Jul 12 05:33:24 romainguy: Am I resizing incorrectly? How can I make a square view equal to the display width? Jul 12 05:34:12 use a rectangle on your source and a rectangle on your destination Jul 12 05:34:17 let android do the scaling Jul 12 05:38:05 tho i shud probably have let romainguy answer that... his answer might be sligntly more valid than mine :) Jul 12 05:38:09 just slightly eh? lol Jul 12 05:39:07 themirror: override onMeasure, call super, call setMeasuredDimension(getMeasuredWidth(), getMeasuredWidth()); Jul 12 05:39:31 *Height ? Jul 12 05:39:42 nope Jul 12 05:39:56 hmm my bad Jul 12 05:40:18 that will set the height to the width which makes the square Jul 12 05:40:41 JakeWharton: thanks ill look into it in a sec Jul 12 05:40:43 if you know that it's always going to be used in EXACTLY mode (i.e., match_parent or explicit dp) you can skip the call to super even Jul 12 05:41:13 final int width = MeasureSpec.getSize(widthMeasureSpec); setMeasuredDimension(width, width); Jul 12 05:41:52 but I would add a: if (MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY) throw new IllegalStateException(); above that Jul 12 05:42:13 otherwise you'll get a 0px*0px view if you use something like wrap_content Jul 12 05:49:53 JakeWharton: Yes that worked pretty well. For some reason though, only the LinearLayout directly below the SurfaceView is moved below it, even though other LinearLayouts are positioned layout_below the above LinearLayout Jul 12 05:51:51 nevermind i figured it out. thanks! Jul 12 05:57:52 lol totally forgot to ask this question earlier... Jul 12 05:58:06 i have an array. the array is accessed by two separate threads. one does reading. the other writing Jul 12 05:58:20 why do i have to stop the reader thread from reading this array till after the writer thread has completed writing Jul 12 05:58:34 even tho i can guarantee that the read never reads from the same indices that are being written to Jul 12 05:59:47 if i dont stall the reader thread till the writer has completed there are side effects Jul 12 06:00:58 can anyone splane that to me? Jul 12 06:17:32 I440r: if no one answered your question already, use Locks Jul 12 06:40:58 I have this activity ( http://pastebin.com/DRSyuqjd ) which is a ListActivity for some SSH account that when long-clicked will produce a Modify/Delete ContextMenu Jul 12 06:41:23 this is its layout ( http://pastebin.com/hz2u6VpT ) and this is its entry in the manifest ( http://pastebin.com/0WrJ6yWN ) Jul 12 06:42:18 I have it linked to a "Modify" button in a previous activity with `startActivity(new Intent(LoginScreenActivity.this,AccountsListActivity.class));` Jul 12 06:42:38 and well..it's crashing and there is no LogCat to catch anything , I don't know what the fuck is up with this new Eclipse Jul 12 06:43:14 sicp --> window --> view --> other Jul 12 06:43:18 logcat should be there Jul 12 06:43:33 LogCat is there, it just isn't listening to my application when the application is launched Jul 12 06:43:59 I have that problem if i unplug my phone and then plug it back in without restarting eclipse Jul 12 06:43:59 I asked it not to listen when I was prompted for that before, but I didn't think that THAT's what it meant exactly, I mean who WOULDN't want it to be listening! Jul 12 06:44:17 why would I even need to be prompted for that; OF COURSE let the logcat listen.. Jul 12 06:44:32 oh, weird don't know that dialog option Jul 12 06:44:37 it's in Juno Jul 12 06:46:45 ok it can be fixed from Window > Preferences > Android > Logcat Jul 12 06:49:46 there we go, fixed Jul 12 06:52:00 hello Jul 12 06:52:45 i search a mod for camera.. for register video at stable fps and not variable fps Jul 12 06:53:00 exist a solution ? Jul 12 06:53:49 EditText's getText() comes back as a char sequence... how do I convert that to String or Int? Jul 12 06:54:06 .toString Jul 12 06:54:08 () Jul 12 06:54:22 it says it can't convert char sequence into string Jul 12 06:54:27 is this just Eclipse being dense again? Jul 12 06:54:50 tes Jul 12 06:54:51 yes* Jul 12 06:54:55 *sigh* ok thanks Jul 12 06:55:19 anyone can help me? Jul 12 06:55:30 in the case of converting it to int, you'd have to grab the text from the editText and then do Integer.parseInt(valuehere) Jul 12 06:55:38 yea Jul 12 06:55:52 themirror i did that, when the writer is wirting i busy wait on the reader. the entire point was to NOT block on the reader during the writer thread... im kind of confused why two threads cannot access GUARANTEED different indices of the same array Jul 12 06:55:55 Is there anyone successfully running an android maven build together with the android lint plugin in jenkins? The android lint plugin is never executed. Jul 12 06:56:06 also, how do i discard all button presses? Jul 12 06:56:16 don't add listeners, I440r ? Jul 12 06:56:33 i.e. i want to be able to selectivly flush the button presses, not buffer them up Jul 12 06:57:31 i search a mod for camera.. for register video at stable fps and not variable fps Jul 12 06:57:33 exist a solution ? Jul 12 06:57:36 i need to be able to handle button presses but i want to limit the number of handlings to ONE and discard all other button presses Jul 12 06:57:59 i.e. if i press 5 times it gets handled once. but then i can press 3 times after that and have it handled ONCE Jul 12 06:58:29 i.e. if there are button presses i want to handle the first and discard all the rest Jul 12 06:58:38 how can i do that? Jul 12 06:59:03 how do i flush the button press input buffer Jul 12 07:00:31 anyone? Jul 12 07:00:56 can you not disable the button onpress? Jul 12 07:01:10 idont want to disable it Jul 12 07:01:28 you want the user to think they press a button that does something when it doesn't Jul 12 07:01:30 i want to flush all button presses that are stacked up when i handle them Jul 12 07:02:00 no i want to prevent the user from stacking up 24526452 button presses when im doing an input dely Jul 12 07:02:01 I440r Jul 12 07:02:18 maybe you can use a thread Jul 12 07:02:21 you want to prevent the user from pressing the button basically Jul 12 07:02:23 async task or something Jul 12 07:02:33 noi want to flush the damned input Jul 12 07:02:33 it depends what the button does Jul 12 07:02:36 not do a thread Jul 12 07:02:48 the button moves my player Jul 12 07:02:49 what does the button do Jul 12 07:02:57 up down left right and diagonal Jul 12 07:03:11 after moving the ground the user is on defines his speed and i do a delay based on that Jul 12 07:03:34 i do not want the user going mash mash mash mash and have the player move.... move... movemovemovemovemove Jul 12 07:03:46 ok Jul 12 07:03:54 an async task would take care of this easily Jul 12 07:04:05 or Jul 12 07:04:05 no Jul 12 07:04:08 why dont you do this Jul 12 07:04:11 no im not putting this in an async task to read all other presses and discard them Jul 12 07:04:19 there HAS to be a way to flush button presses Jul 12 07:04:21 have a boolean called pressed Jul 12 07:04:25 or enabled or something Jul 12 07:04:31 nope Jul 12 07:04:33 and disable it while moving Jul 12 07:04:35 FLUSH the input buffers Jul 12 07:04:50 thats the solution. how do i TOTALLY FLUSH the button input buffers Jul 12 07:04:59 not create a thread to read and discard them Jul 12 07:05:17 what is an input buffer Jul 12 07:05:26 and what does flushing them mean Jul 12 07:05:33 maybe im not qualified to answer your question Jul 12 07:05:45 is that a technical term? Jul 12 07:05:49 ok if i could talk to someone with a basic understanding of user interface I/O :/ Jul 12 07:06:08 flush == discard input Jul 12 07:06:29 when you type on a terminal and the terminal is busy the keys are not lost. they are BUFFERED Jul 12 07:06:43 when the term stops being busy the keypresses are processed Jul 12 07:06:54 you can flush this to prevent type ahead Jul 12 07:06:55 i see i see Jul 12 07:06:58 thats what im trying to do Jul 12 07:07:00 sorry guys.. help me!! i search a solution for register video with stable fps and not variable fps!! You know help me? I have galaxy s2 Jul 12 07:07:39 fulvi0x what do you mean Jul 12 07:07:55 mmmh... Jul 12 07:08:34 i search a mod for camera for register video with stable framerate .. Jul 12 07:09:11 stable 30fps ... not variable 30fps Jul 12 07:09:14 unsterstand?? Jul 12 07:09:16 iCOULD disable the buttons while im doing the delay... but that means disabling 18 buttons while the delay is happening Jul 12 07:09:23 or can i just say "disable ALL buttons" Jul 12 07:10:03 im pretty sure the image sensor outputs at a stable rate. its the encoding thats skipping frames im guessing Jul 12 07:10:27 which will affect the stability of the frame rate. if a frame takes longer to encode you wont get a solid N frames a second Jul 12 07:10:47 do not know if the encoding is handled by the image sensor device or by android Jul 12 07:12:41 nothing ... :( Jul 12 07:13:54 no. disabling 18 buttons by finding its resource id and setting its clickable to false and thendoing a dlay and setting them all to true again is bullshit Jul 12 07:14:01 so im back to my original question Jul 12 07:14:09 how do i totally discard all cached button clicks Jul 12 07:14:12 ALL of them Jul 12 07:14:48 i have no idea how those are processed tbh Jul 12 07:15:06 I would debug it first and see if the eventhandler is called immediately or after a while Jul 12 07:15:18 ? Jul 12 07:15:31 who does the stacking Jul 12 07:16:36 I440r: use a single listener for all of them Jul 12 07:16:39 ignore in it Jul 12 07:17:40 JakeWharton, i have a single listener Jul 12 07:17:54 tell me how to ignore presses during a Thread.sleep() Jul 12 07:18:13 not for ONE button but for 18 of them Jul 12 07:18:26 hm. I have a fragment with a login screen: a bunch of textviews, edittext views and buttons, and an asynctask to handle the http call - how do I change the layout after the call is done? im also using actionbarsherlock/tabs Jul 12 07:18:33 and im not going through 18 buttons, disabling them and then doinga dleay and then going through all 18 buttons again to enable them Jul 12 07:18:38 either you are sleeping the UI thread, in which case the user cannot press the buttons Jul 12 07:18:38 so you have a sleep() and afterwards you want to discard the pressed during the sleep Jul 12 07:18:42 or you are sleeping on a different thread Jul 12 07:18:47 what do i need to do in onPostExecute function? Jul 12 07:18:49 i want a FLUSH for all stacked clicks Jul 12 07:18:51 in which case it doesn't matter Jul 12 07:19:07 romainguy, i am sleeping the ui thread and the button presses are still being stacked uo Jul 12 07:19:11 up Jul 12 07:19:15 er Jul 12 07:19:18 there's your problem Jul 12 07:19:23 DO NOT sleep the UI thread Jul 12 07:19:46 ok. i need the UI thread to do a delay. a pause. no keypresses allowed till after the specified time Jul 12 07:19:54 not always the same delay Jul 12 07:19:57 DO NOT sleep the UI thread Jul 12 07:20:02 i got that Jul 12 07:20:08 apparently not :) Jul 12 07:20:25 Android will queue up all the events until the UI thread is back from sleep Jul 12 07:20:35 if you want to prevent key presses/etc. you need to do it differently Jul 12 07:20:37 no i heared you. i asked you how to affect a "disable all keyclicks for 'this long'" Jul 12 07:20:47 disable your views Jul 12 07:20:50 ignore the events in your listeners Jul 12 07:20:51 etc. Jul 12 07:21:57 he doesn't want to prevent them Jul 12 07:22:03 or can't Jul 12 07:22:06 i am not sure Jul 12 07:22:55 i don't think you can determine exactly when a button was pressed, during the sleep or not Jul 12 07:23:15 unless you temporaty remove the listeners for the buttons right before the sleep Jul 12 07:23:23 and readd them afterwards? Jul 12 07:25:57 docs have Jelly Bean things in NotificationCompat.Builder but they don't actually exist in the support library Jul 12 07:26:36 hmmm Jul 12 07:26:43 doc copy & paste I guess Jul 12 07:27:50 If only the damn support repo would be updated I could push my implementation of it. I keep forgetting to email Adam P. Jul 12 07:33:02 whose job is it to perform the incoming animation for an activity? Jul 12 07:33:19 specifically, the ones dictated by the new ActivityOptions animations Jul 12 07:33:40 the window manager Jul 12 07:35:48 hi Jul 12 07:36:34 romainguy_: perhaps you can speak to the feasibility of this: I'm trying to see if it would be possible to implement a custom outgoing animation in future versions of the platform to the same degree as the incoming animation. For example, if I'm presented with a 4x4 grid of icons and I use the ActivityOptions animation to open an activity for an icon I also would like to set a default finishing animation to be used (if not Jul 12 07:36:34 overridden) so that it collapses back into its icon. Jul 12 07:37:45 JakeWharton: just set a window animation Jul 12 07:37:57 but then it doesn't collapse back to where it came from Jul 12 07:39:01 if I expand from the (1,1) icon in this fictitious grid then I have to apply a generic out animation which just shrinks to the center of the screen or something Jul 12 07:39:35 and while I could provide 16 animations and set them accordingly that doesn't scale to when you are animating from a position in a ListView and then want the animation when the user presses back to go back into that row Jul 12 07:40:01 it's your only way Jul 12 07:40:11 the alternative is to use a transparent window and animate views inside the window Jul 12 07:40:15 but it's incredibly wasteful Jul 12 07:40:21 well that's why I said future platform Jul 12 07:40:27 i was hoping to attempt it as my first major contribution Jul 12 07:40:36 ah Jul 12 07:40:48 that would work only if you can guarantee what's in the back stack Jul 12 07:42:40 I'm getting a fatal error when I try to do getText() of a TextView object Jul 12 07:42:56 what error? Jul 12 07:43:16 Type mismatch: cannot convert from CharSequence to String Jul 12 07:43:24 here you go Jul 12 07:43:31 I was told earlier to ignore that warning in Eclipse Jul 12 07:43:33 hi. someone can help me to optimise my class http://pastebin.com/iX0vjRAW Jul 12 07:43:41 mysteronyx: it's an error, not a warning Jul 12 07:43:54 you can either store it in CharSequence Jul 12 07:43:57 or call toString() on it Jul 12 07:43:57 romainguy how do I get the text of a TextView object? Jul 12 07:44:02 getText() Jul 12 07:45:20 I get it now, thanks romainguy Jul 12 07:46:30 Hello Jul 12 07:48:00 Euhm i have a implements Parcelable class and i have a Arraylist with a Own Object how can i put it in the constructor with ...(parcel in) Jul 12 07:51:32 If I have a view with an on touch listener, what's the easiest way to cancel recieving touch events in the case the point drags off the view entirely? Jul 12 07:52:14 Which server language/frameworks do you guys use when developing in parallel to applications? I am looking for something fast, that may already have that user handling and administration part.. Jul 12 08:01:26 Copter: WCF with JSON, Ado.Net Entity Framework, C# and Spring on Android Jul 12 08:02:23 anyone here very familiar with rooting devices im in need of some help badly Jul 12 08:05:59 rawzulgrave: andorid-root probably better, but what do you need? Jul 12 08:06:36 asking there too but rooted device with z4 root didnt get to set permissions before I rebooted Jul 12 08:06:47 now I cant install anything nor factory format Jul 12 08:06:59 anyone able to help me ? device is a chinses mid tab Jul 12 08:07:13 can you access recovery? Jul 12 08:07:19 nope Jul 12 08:07:19 thats so specific Jul 12 08:07:24 its driving me nuts Jul 12 08:08:13 adb? fastboot? Jul 12 08:08:53 I can install things that deal with root access for some reason so (root explorere but cant install busy box back up on there or anything else it just says out of free space (none used) Jul 12 08:09:02 not sure how to do those f2p Jul 12 08:09:35 get the adb and fastboot drivers, not sure if your device will be supported, but pdanet is a good choice Jul 12 08:09:43 use fastboot to flash custom recovery Jul 12 08:09:54 then reboot into recovery Jul 12 08:10:23 oh and before that adb push the ROM you want to install, probably the stock one i guess Jul 12 08:10:52 im a bit confused ,oving to prvt msg if thats alright Jul 12 08:19:23 how do i get the button event for an onclick event when all my listener is being passed is the view Jul 12 08:21:05 doesn't the event have a source? Jul 12 08:22:02 I440r: can you elaborate Jul 12 08:26:32 i have an onClick listener. its processing the click AND the release Jul 12 08:26:49 i want to ignore the release or maybe ignore the click Jul 12 08:26:56 i dont want to process every click TWICE Jul 12 08:27:09 onclick is called on release? Jul 12 08:27:12 ugh Jul 12 08:27:20 its called for the press AND the release Jul 12 08:27:49 well i suppose you can determine which one it is? Jul 12 08:27:51 every click causes the onClick() to be called twice which is FUCKED UP Jul 12 08:28:02 there needs to be an onClick() and an onRelease() Jul 12 08:28:14 Hello guys, How can I check whether I'm dealing with a Samsung device or not? Is there an api call to get device manufacturer? Jul 12 08:28:18 no. thats contained within the EVENT not the view Jul 12 08:28:33 onclick listener is being passed the view and from the view i determin which of the buttons was clicked Jul 12 08:28:40 how do i get the click event given the view Jul 12 08:28:47 so it goes like view click>button click? Jul 12 08:28:53 both being called? Jul 12 08:29:03 are you not using ontouch ? Jul 12 08:29:07 because it seems that does both Jul 12 08:29:18 if you click and release the button the onClick() is called for each Jul 12 08:29:31 that's rediculous Jul 12 08:29:33 no im not using touch events im using CLICK events. i Jul 12 08:29:44 no what if you need to see both events Jul 12 08:30:12 its valid of google to post both events but i dont have an instance of the incoming event. ONLY the view Jul 12 08:30:15 I440r, there must be a way to read the pressed and release event from the click event Jul 12 08:30:16 then you use the onTouch listener Jul 12 08:30:25 no Jul 12 08:30:36 im not using the on touch listener. im using the on CLICK listener! Jul 12 08:31:14 I440r, in that case, add a variable and save the state. Jul 12 08:31:33 my buttons onClick listener is given in the views xml. Jul 12 08:31:39 Number5, thats a kludge Jul 12 08:32:26 I440r, however, it's a workaround so you can continue your development ;-) Jul 12 08:32:43 no its not Jul 12 08:32:49 isn't the view the button? Jul 12 08:32:53 i want the fix not a kludge Jul 12 08:32:55 what does instanceof say? Jul 12 08:33:03 what? Jul 12 08:33:07 click events is only on release Jul 12 08:33:20 What's the best target for a QR code? https://play.google.com/store/apps/details?id=... ? Jul 12 08:33:21 Belacan, not true Jul 12 08:34:29 I44or did you say your click listener is given in XML? Jul 12 08:34:30 why is that? Jul 12 08:34:34 maybe you should use an onTouch Jul 12 08:34:49 Snuffel, im NOT using onTouch. im using ON FUCKING CLICK Jul 12 08:34:51 period\ Jul 12 08:35:02 dont use onclick on XML Jul 12 08:35:06 use it in java Jul 12 08:35:06 android:onClick="buttonHandler"/> Jul 12 08:35:17 I440r: if you use OnTouch you get an even and you can determine whether is it click or release Jul 12 08:35:22 event* Jul 12 08:35:24 you can Jul 12 08:35:33 On press Jul 12 08:35:58 looks like thisL Jul 12 08:35:59 android:onPress="buttonHandler"/> <--- ??? Jul 12 08:36:00 : Jul 12 08:36:07 Snuffel: I guess his issue is not about which event to use, but why onClick has that behavior Jul 12 08:36:19 http://pastebin.com/WGy9vMSD Jul 12 08:36:23 onClick is invoked after a release Jul 12 08:36:33 a click is defined by a touch down followed by a touch up Jul 12 08:36:34 thankyou romainguy Jul 12 08:36:51 and please do not shout in the casino! Jul 12 08:36:55 romainguy, then why am is my button handler being called twice for every press Jul 12 08:37:12 I don't know without knowing more about your app Jul 12 08:37:27 maybe he is a bad button clicker Jul 12 08:37:42 i guess you use a touchlistener? Jul 12 08:37:46 Do it in java not in XML i440r Jul 12 08:37:51 do you use onClickListener? Jul 12 08:37:57 Belacan: it's perfectly fine to do it from XML Jul 12 08:38:02 twice sounds like: DOWN and UP action :) Jul 12 08:38:11 pboos: that what I thought Jul 12 08:38:26 hahah pboos Jul 12 08:38:35 http://stackoverflow.com/questions/8791788/android-button-onclick-called-twice-on-programatically-created-button Jul 12 08:38:36 sorry came in late :D maybe missed some part already :D Jul 12 08:38:40 im not sure if that was meant to come out like that Jul 12 08:39:04 thers countless examples of pepole getting their onClick called twice for every press Jul 12 08:40:05 I440r: it says there it was a logcat problem Jul 12 08:40:06 so it's a logcat issue? Jul 12 08:40:11 maybe you have that too Jul 12 08:40:15 *like* Jul 12 08:40:16 looks like an issue with logs Jul 12 08:40:22 sounds like logcat in that post.. restart eclipse and adb :) Jul 12 08:40:27 could it be a log cat issue? Jul 12 08:40:33 lol Jul 12 08:40:38 no. i have a breakpoint. for every press my breakpoint is being hit twice Jul 12 08:41:12 I440r: okay.. so code please :) pastebin Jul 12 08:42:02 pboos, im not pasting my code, my onclick is specified in my views xml. i have an onclick listener... every click causes the listener to be called twice Jul 12 08:42:10 I440r: jsut to make sure its not a log problem, count every click with a variable and print to log Jul 12 08:42:32 you gotta paste your code if you want more help Jul 12 08:42:33 I440r: and is it a programatically created button?? Jul 12 08:42:50 no the button is specified in the views xml Jul 12 08:43:13 i think i know what the problem is.. Jul 12 08:43:25 something to do with logcat... Jul 12 08:43:31 *grin* Jul 12 08:43:35 you're mean Jul 12 08:43:48 every button uses the same handler Jul 12 08:44:25 public void buttonHandler(View v) { switch (v.getId()) .....} Jul 12 08:44:37 ok try using it in code I44or, maybe it happens once when clicked and once through XML i donno Jul 12 08:45:08 I dont trust the XML Jul 12 08:45:13 it happens once for the click, once for the release Jul 12 08:45:16 good for you belcan Jul 12 08:45:22 belacan Jul 12 08:45:57 im just giving some suggestions so maybe you can find out where the problem lies Jul 12 08:46:02 im not saying switch from XML Jul 12 08:46:07 but i bet it has something to do with that Jul 12 08:46:14 i bet not Jul 12 08:46:18 because i dont use XML to do that. and my buttons work all the time every time Jul 12 08:46:21 Belacan: for what it's worth, I wrote the implementation of onClick Jul 12 08:46:22 theres only one way to find out Jul 12 08:46:48 And I have the highest degree of respect for you, i've been watching some of your lectures. Jul 12 08:46:57 im not totally rewriting my code to test a theory Jul 12 08:47:00 Belacan: onClick simply calls setOnClickListener() Jul 12 08:47:14 I440r: that's called debugging Jul 12 08:47:25 *like* Jul 12 08:47:41 surely you can just write a peice of it Jul 12 08:47:48 I440r: so far all you do is whine that it doesn't work the way you want but you don't want to change your code Jul 12 08:47:53 to one of your buttons Jul 12 08:48:06 snuffel im not wining :/ Jul 12 08:48:29 nor am i rewriting 38465984659 gigs of code to test a theory Jul 12 08:48:31 obviously theres no definitive answer so you gotta experiment Jul 12 08:48:32 fine Jul 12 08:48:38 then you have a problem Jul 12 08:48:41 who can help me to optimise my project Jul 12 08:48:43 http://galaparo.fr.cr/svn/spion/ Jul 12 08:48:45 thats a lot of code Jul 12 08:49:34 Ghota, romainguy has lots of lectures on optimisation, have you watched any of those? Jul 12 08:50:03 I would be very surprised if anyone here has the time or capacity to look through your entire project to see where it can be optimised Jul 12 08:50:30 Hi everyone Jul 12 08:50:39 hi Jul 12 08:50:41 nice name Jul 12 08:50:45 I'm stucked with an SQLite error, i'm using a webview which load a html5 webpage, using Javascript to interact with my database, i'm getting error code 13 Database Full on Webview.db file Jul 12 08:51:06 38465984659 gigs of code is a LOT of code :| Jul 12 08:51:14 noun: is the database full? Jul 12 08:51:36 how can i see it ? i've used adb shell df Jul 12 08:51:37 noun: are you storing I440r code in your db ? Jul 12 08:51:51 he wont have enough space Jul 12 08:51:54 }:) Jul 12 08:52:31 i'm using a prepopulated database Jul 12 08:52:37 called agglomobile.db Jul 12 08:52:43 i do the openDatabase on it Jul 12 08:52:59 but this error is returned when i'm doing an insert statement Jul 12 08:53:09 and it's on Webview.db file Jul 12 08:53:14 thats about 2.01672542 × 10^16 characters of code Jul 12 08:53:31 lol Jul 12 08:54:04 have you seen this problem before ? Jul 12 08:54:26 Do you know how to grow the database size up Jul 12 08:56:01 completely irrelevant, but awesome anyhow http://imgur.com/gallery/OmeIU … hackkitten is that you :) Jul 12 08:56:21 you must have started writing your code some 83,600,000 years ago, i can understand why you dont want to do it again ;) Jul 12 08:56:48 noun here may find usefull info https://groups.google.com/forum/?fromgroups#!topic/android-developers/p0Ojpab181M Jul 12 08:57:57 thx F1rstAid Jul 12 08:58:30 i think there is a way to catch the exception, and automaticly set the size of the db higher Jul 12 08:58:45 to avoid this king of message error Jul 12 09:01:36 ok well its 4am and i has work at 9 so i better log Jul 12 09:01:55 sorry if i was a bit pissy Jul 12 09:06:03 sup Jul 12 09:06:27 F1rstAid: hows your app going? Jul 12 09:06:28 hi Jul 12 09:06:34 A/S/L? Jul 12 09:06:42 lol jk Jul 12 09:06:43 14/f/ny Jul 12 09:09:28 Hi all Jul 12 09:09:39 hello Jul 12 09:09:59 you knew Marcus Aurelius? Jul 12 09:10:56 I did not say i knew him1 Jul 12 09:11:07 he touched me on the shoulder once Jul 12 09:22:00 hiya Jul 12 09:22:28 i need to load an asset from a java library thats a seperate module from the main app Jul 12 09:22:28 I have download the new ADT for Eclipse and android 16API. In the new project folder have more res folders and the layout is different is that in the android 16API the default? Jul 12 09:22:37 how do i get the context to the app? Jul 12 09:24:43 Younos: create an application object Jul 12 09:24:59 Younos: add a statick getInstance() method Jul 12 09:26:26 hmm ok Jul 12 09:26:50 is there another way to get to the AssetManager because thats the only thing i'm really interested in Jul 12 09:27:30 ok i'll to the application opbject thing then Jul 12 09:34:41 i have a custom view and i want to pass styled theme to it, how do I handle it in the constructor? Jul 12 09:34:48 getting the styles etc Jul 12 10:58:31 what's the secret to to accessing a layout resource (r.layout.foo) from a non activity class (adapter in this case...) Jul 12 10:58:46 * hackkitten rides about g00s on her own roomba~ Jul 12 11:00:11 hello hackkitten Jul 12 11:00:23 codefriar: context.getResources().getLayout(....) Jul 12 11:00:42 HDroid: yeah, my issue is that the adapter class can't resolve R Jul 12 11:00:45 codefriar: what are you trying to do Jul 12 11:00:45 codefriar: and pass the context in the class' constructor Jul 12 11:00:50 I'm rahter confused by that Jul 12 11:00:53 yep, context is there. Jul 12 11:00:57 access isnt specific enough Jul 12 11:00:59 codefriar: oh, that can be imported anywhere Jul 12 11:01:16 HDroid: so I DO need to import R ? Jul 12 11:01:20 codefriar: yes Jul 12 11:01:22 yes... Jul 12 11:01:23 in the adapter class Jul 12 11:01:31 but what ae you trying to do Jul 12 11:01:35 And your.package.R;, not the android one. Jul 12 11:01:38 mikedg__: trying to write a custom adapter (jsonArray) Jul 12 11:01:56 and what method are you trying to access the layout Jul 12 11:02:57 mikedg__ view = li.inflate(R.layout.list_content, null); Jul 12 11:04:32 so I thought I knew how to import R. Com.PackageName.R right ? Jul 12 11:04:43 import yourpackagename.R; Jul 12 11:04:49 eclipse should basiclaly do it automatically Jul 12 11:05:52 yeah, it's nto able to resolve that for some reason... hmm Jul 12 11:06:44 do you have errors in any xml? Jul 12 11:07:29 Do you think Android or iPhone will win the smartphone war? Jul 12 11:08:32 mikedg__: lint isn't showing any errors Jul 12 11:08:41 couple of warnings related to performace but thats it Jul 12 11:09:15 Sadale: wrong channel Jul 12 11:09:20 sorry. Jul 12 11:09:22 uh Jul 12 11:09:32 Actually, I am thinking about cross-platform programming. Jul 12 11:10:04 If Android wins, then I will use Java. C else. Jul 12 11:11:43 sadale, what makes you think there will be a winner ? Jul 12 11:11:59 uh Jul 12 11:11:59 Sadale: what, actually, does it mean to "win" in this situation ? Jul 12 11:12:13 win = dominant. Jul 12 11:12:24 Sadale: what does dominant mean ? Jul 12 11:12:36 Sadale: you're asking the wrong questions. Jul 12 11:12:40 hmm Jul 12 11:12:48 Maybe getting >80% market share. Jul 12 11:12:59 Just like Windows ins Desktop computer. Jul 12 11:13:20 and Commodore 64... :P Jul 12 11:13:27 Sadale: competing technologies rarely eradicate each other. GM never vanquished ford. Gas has never fully been banished by electric stoves. Jul 12 11:13:41 Agree. :/ Jul 12 11:13:47 It's annoying. Jul 12 11:13:56 This make code less portable Jul 12 11:14:00 Sadale: if you think windows is dominant, and has "won" ... you've got a rather myopic view. Jul 12 11:14:43 ISn't Windows dominant in desktop computer? Jul 12 11:14:44 Sadale: After all, both Os' you're talking about developing for are based on technology older than windows. Jul 12 11:14:51 It's something like >95% market share. Jul 12 11:15:14 Sadale: might does not make right, good, secure or the right business choice. Jul 12 11:15:29 Sadale: windows is < 90% Jul 12 11:15:29 mikedg__: any other ideas ? Jul 12 11:15:30 Agree. Jul 12 11:15:36 That's why I said desktop computer. Jul 12 11:15:41 not server. Jul 12 11:15:52 Anyway, I am a fan of linux. Jul 12 11:16:56 Sadale: regardless, you can easily drop C code in android projects. so you're making an artificial distinction based on bad information and a false dichotomy (fuled by bad questions!) Jul 12 11:17:35 but Java is recommended. Jul 12 11:17:44 According to official android page. Jul 12 11:17:51 I forgot the exact URL Jul 12 11:18:41 It seems that the best way is implement the code for each phone, one by one :( Jul 12 11:18:54 Sadale: yes, so? java is recommended. Jul 12 11:19:38 found. Jul 12 11:19:38 http://developer.android.com/tools/sdk/ndk/index.html Jul 12 11:19:49 "In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++." Jul 12 11:21:57 Sadale: why is that stoping you from doing anything? it's not like you're going to void some kind of support warranty from google and stop recieving help... Jul 12 11:22:29 idk. Jul 12 11:22:41 It seems that it's not wise to use C/C++ for android program. Jul 12 11:23:24 Sadale: it depends on your app. Sometimes you can get away with using a webapp in a app-wrapper, in games you can write big parts in C++ and just frontends native, for normal apps that need speed and a lot of native stuff you're best off writing one for iOS and one for Android Jul 12 11:25:08 I see, thanks. Jul 12 11:25:24 but why google discourage the use of Android NDK? Jul 12 11:26:05 you should really use the NDK for graphic processing Jul 12 11:26:13 I.E games/bitmap rendering Jul 12 11:26:21 for openGL too? Jul 12 11:26:23 should really only* Jul 12 11:26:29 I see. Jul 12 11:26:32 Thanks. Jul 12 11:26:50 developing apps in java with all the native android goodness is way faster as well Jul 12 11:27:11 because natives arent portable Jul 12 11:27:13 Well, Java is slow Jul 12 11:27:18 Sadale: that's not true Jul 12 11:27:21 thats why we have JIT Jul 12 11:27:25 hmm, generally. Jul 12 11:27:39 java is slow for bitmap processing, which is why you do it in NDK Jul 12 11:27:46 but for everything else, theres no difference Jul 12 11:28:03 because Java does not compile programs into executables. Instead, it compile into bytecode. Jul 12 11:28:09 that's why when you load in a bitmap, you get native heap instead Jul 12 11:28:10 Sadale: my older android phone running jelly bean, is faster than my brand new android phone -- Java's only getting faster. Jul 12 11:28:36 CallumTaylor: do you have experience with ndk development for bitmap manipulation ? Jul 12 11:28:42 Sadale: where do you think this speed difference matters? Most slowdowns in apps are because of view creation, database and network activity Jul 12 11:28:43 No xD Jul 12 11:28:51 but I do have written some simple app Jul 12 11:28:51 codefriar: haven't use it properly Jul 12 11:28:55 and for those things it doesn't matter if you call them from C++ or Java Jul 12 11:29:06 Something better than hello world. :P Jul 12 11:29:10 I see. Jul 12 11:29:10 codefriar: but i've fiddled with the android source for filters Jul 12 11:29:24 Anyway, C/C++ seems more portable. Jul 12 11:29:39 CallumTaylor: drat. i need an NDK nerd for a paying gig. basically need a JNI glue layer developed for 3 or so methods in a c lib. Jul 12 11:30:00 yeah i haven't had the chance to use it unfortunately :( Jul 12 11:30:35 Sadale: Why is it more portable? Jul 12 11:30:48 CallumTaylor: if you know anyone ... ;) Jul 12 11:30:51 java is as portable as it gets, bytecode that can run on anything that has a jvm Jul 12 11:31:04 or dalvik vm in android's case Jul 12 11:31:05 nothing has a jvm Jul 12 11:31:07 hmm Jul 12 11:31:12 It runs on iphone. Jul 12 11:31:14 or dalvik vm Jul 12 11:31:17 and all desktop computers. Jul 12 11:31:29 as well as android(with Java wrapper) Jul 12 11:31:34 Sadale: yeah, but how much of your app's functionality do you think has the same call in iOS andr Android? Jul 12 11:31:46 Sadale: so write the common stuff using c/c++ and the android specific stuff in java Jul 12 11:31:47 ek? Jul 12 11:31:56 mikedg_: ? Jul 12 11:32:01 good idea. Jul 12 11:34:09 Looney: Hi again! Jul 12 11:34:10 hi, I need some guidance to hit the right path Jul 12 11:34:16 You use C instead of Java? Jul 12 11:34:22 nopes Jul 12 11:34:24 Sadale: chill... Jul 12 11:34:26 Java :-( Jul 12 11:34:27 Why there is pointers? Jul 12 11:34:36 it meant, clue Jul 12 11:34:41 hint/ guess Jul 12 11:34:46 As you told us in #android channel. Jul 12 11:34:51 " I get the notion from the int * pointer" Jul 12 11:34:56 Sadale: idiomatic English Jul 12 11:35:17 (not idiotic) Jul 12 11:35:29 if you use a cert from a certificate authority can you revoke it? Jul 12 11:35:33 Leeds: Sorry about that, I am non-native English speaker. Jul 12 11:35:47 yes, obviously... but your English is still better than my Cantonese Jul 12 11:36:17 Leeds: What's Cantonese? Jul 12 11:36:34 *googling* Jul 12 11:36:34 the native language of Hong Kong, where both you and I are Jul 12 11:36:48 * Leeds wonders... Jul 12 11:36:49 Oh I see. Jul 12 11:36:53 uh Jul 12 11:36:56 I am not in Hong Kong! Jul 12 11:37:00 your host is Jul 12 11:37:04 so coming to my question Jul 12 11:37:23 Leeds: What the heck? Maybe it's wrongly detected. Jul 12 11:37:29 It's India here. Jul 12 11:37:38 that's very strange Jul 12 11:37:40 anyway... Jul 12 11:37:45 Looney: ask your question, please :) Jul 12 11:38:08 Sadale: your provider seems to use infrastructure that belong to hkcable company Jul 12 11:38:12 the answer will be 42 Jul 12 11:38:17 I want to nake an app Jul 12 11:38:26 Leeds, shhh, if you ask people to ask a question, everyone will go "can someone help me" instead of just stating their question , which is the right IRC etique ;) Jul 12 11:38:33 simple one Jul 12 11:38:39 CallumTaylor: nobody knows what question is answered by 42 Jul 12 11:38:45 that's more of a statement then a question Jul 12 11:39:01 BlackIce_: every question's answer is 42 Jul 12 11:39:04 I press a button and an AnalogClock pops up Jul 12 11:39:32 CallumTaylor: no, 42 is the answer to the ultimate question of life, the universe and everything. It's not the answer to life, the universe and everything Jul 12 11:39:46 I have the button and AnalogClock in the layout XML file Jul 12 11:40:03 >question of life, the universe and everything Jul 12 11:40:05 >everything Jul 12 11:40:14 functional composition! Jul 12 11:40:26 CallumTaylor: yes, that's what the question is about. Nobody knows the question though Jul 12 11:45:17 hi, I have an issue with android support library v4 and soft keyboard on < 3.0 devices Jul 12 11:45:17 https://code.google.com/p/android/issues/detail?id=34775 Jul 12 11:45:17 can anybody take a look? Jul 12 11:45:17 basically the keyboard doesn't show up again after I load up another fragment and then go back Jul 12 11:45:17 it works as expected on 4.0.3 Jul 12 11:45:34 whoa Jul 12 11:45:39 who tripped over the cable? Jul 12 11:54:07 Hi, in my activity i want to start skype make a call, after starting skype i want to switch back to my app, is this possible? Jul 12 11:55:06 if you don't finish your app, it should be there again after finishing the skype activity Jul 12 11:56:14 yes, but i don't want to wait until skype finished Jul 12 11:56:26 i want to switch during skype is making a call Jul 12 11:56:48 once you start an external activity, its down to that app to handle what ever happens next Jul 12 11:56:53 you can't control it Jul 12 11:57:18 If skype sends an intent when its placing a call, you could try to catch that and launch your activity Jul 12 11:57:38 or by timer, but that gets messy,.. fast... Jul 12 11:58:27 ok, thanks :) Jul 12 12:00:18 Anyone have a recomendation for a program that I can build sqlite tables to be imported into an app? Jul 12 12:04:06 what os Jul 12 12:04:21 i think sqlite database browser is X platform Jul 12 12:04:22 Windows Jul 12 12:04:24 I use it on my mac Jul 12 12:05:08 hi, if anyone have an idea : http://stackoverflow.com/questions/11448284/difference-between-loadurl-and-loaddata-with-javascript Jul 12 12:05:15 thanks Jul 12 12:05:35 lasserix: I use a program called SQLite2009 pro Jul 12 12:05:42 but i don't use it very often Jul 12 12:06:01 I'm having a speed issue with a custom listView with a pinnedHeader that has padding. Jul 12 12:06:06 Hi, do developers include notes/comments above or next to each code line in the source codes, about what this code/line is for? Jul 12 12:06:41 no Jul 12 12:06:46 that's bad Jul 12 12:06:54 you should only comment code which is hard to understand Jul 12 12:07:00 your code should be self-explanitory Jul 12 12:07:17 When the static pinnedHeader view is ready to show, i must adjust the padding of the listView, and this causes a jank to happen. Without adjusting the padding of the listView, my elements in the listView will float behind the pinnedHeader Jul 12 12:07:31 although I always comment methods to say what it does, required params, return values etc Jul 12 12:07:44 I start an activity when a Button in my list item is clicked. I use startActivity() inside the adapter to achieve this. Is it possible to use startActivityForResult() and get some results in the listactivity using onActivityResult() ? Jul 12 12:08:20 CallumTaylor, all tutorials keep on telling to write in elaborate/long names, and with notes/commetns, so that you yourself can understand after 6 month, what you wrote... So these r bunch of useless advise? Jul 12 12:08:25 i'm sorry for asking again, but is there a way to find out if skype is sends any intents? Jul 12 12:08:36 napster: that is the purpose of startActivityForResult Jul 12 12:08:47 well if you''re an absolute beginner, commenting what's going on isn't bad Jul 12 12:08:57 but eventually, your code should just say what's happening Jul 12 12:09:02 hello Jul 12 12:09:04 avoid using variable names like i or j Jul 12 12:09:05 If your comment says exactly the same as the code, don't bother with the comment. For instance setPadding (…) //sets the padding , useless comment Jul 12 12:09:24 be descriptive, method names like "checkTimeoutThenUpdate()" Jul 12 12:09:30 wongk: Not sure you understand my question. I start activity from inside the adapter. Is it possible to get result in the parent activity? Jul 12 12:09:47 napster: that's the only posibility Jul 12 12:09:59 wongk: ok, let me try Jul 12 12:10:30 Bry9Star}EB: if you are "relatively new", verbose names will make it easier to see and think about what your code is doing, comments are best added for anything that say, in a month you'd totally forget what function x does in relation to variables y and z Jul 12 12:11:22 always try separate things in their own methods, rather than having all your code in the onCreate Jul 12 12:12:50 wongk: But I can't find startActivityForResult() from the context class! :( Jul 12 12:12:59 http://developer.android.com/reference/android/content/Context.html Jul 12 12:13:03 i alwayd write code in an obfuscated manner, with not comments, so i don't have to obfuscate it later Jul 12 12:13:12 napster: its part of activity Jul 12 12:13:14 and so i don't try to steal my own code Jul 12 12:13:27 napster: learn to docs Jul 12 12:13:52 it can be fine to write massive blocks of code when you're at the start of attacking the problem, understanding what you need, but remember to refactor once you feel you know what's going on. How this proccess work is individual, some people don't code until they know exactly how to write it, but me, I write code and adapt it afterwords Jul 12 12:14:06 CallumTaylor, Thanks. I'm feeling bad after watching few source files, those has not even 1 line of comment/notes. To me its like: if a source code is not easy to understand for a beginner, then why bother calling it "open" sourced, they should prefer to call it heiroglyph or unexplained source-code, it seems they want others to hav rosetta-stone in their brain. Jul 12 12:14:12 wongk that's the far end of the learning curve, when you and other expirenced coders share an inside coder's language Jul 12 12:14:26 how to make an app that downloads https file? Jul 12 12:14:41 lasserix: there's a chance i may have been kidding Jul 12 12:14:44 open source means anyone can code for it, it's not necessarily newb friendly Jul 12 12:15:01 Bry8Star{EB, it gets easier, the best thing to do if there are no comments is try to atomize what you can of whatever your looking at to see what happens when you change parts Jul 12 12:15:07 in most cases open source is not newb friendly at all Jul 12 12:15:43 and it's not intended to be Jul 12 12:15:53 ultimatly when we can code with biofeedback, shorter, obsfucate coding standards will be the most efficient, but until then.. Jul 12 12:15:57 Debugging and step-throughing can also give you an overview of code. Actually I prefer to do it if I need to get to know a system Jul 12 12:16:06 anyone got an idea on how to make a downloader? Jul 12 12:16:27 caseofinsani: with a feedback on how much has been downloaded? Jul 12 12:16:27 caseofinsani: write code that downloads Jul 12 12:16:49 terrible question gets terrinle answer Jul 12 12:16:52 wongk: need progressbar&other f eatures Jul 12 12:16:58 check out https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/AsyncHttpClient.java#L1033 Jul 12 12:17:04 wongk: no one would reply if its too long Jul 12 12:17:15 took me ages to get one working Jul 12 12:17:16 a specific question doesn't have to be long Jul 12 12:17:38 don't ask one question that should really be 15 Jul 12 12:17:41 Yes, I'm very new to this, so obviously things r appearing as Mt.Everest to me. But if there were notes/comments, whats doing what for what purpose. Then it would have been much much easier. Those who understands codes, can easily skip over the /* green colored commented area */ Jul 12 12:17:46 well this is my first time here Jul 12 12:18:10 welcome to IRC, help us help you :P Jul 12 12:18:14 Bry8Star{EB: best thing to do, download the android example projects and just play around Jul 12 12:18:15 CallumTaylor: thanks Jul 12 12:18:38 CallumTaylor, Thanks again. Jul 12 12:18:58 their tutorial site got 100x better recently Jul 12 12:19:18 CallumTaylor: which one? Jul 12 12:19:34 so did the android traning Jul 12 12:19:40 caseofinsani: tutorial site? or example download code Jul 12 12:19:57 CallumTaylor: tut site Jul 12 12:19:58 they've got all kinds of good articles Jul 12 12:20:05 http://developer.android.com/training/index.html Jul 12 12:20:17 wasn't as good as this when I first started Jul 12 12:20:26 CallumTaylor: ook thx Jul 12 12:24:04 anyone know a sample code for downloading https files? Jul 12 12:24:29 http://android-developers.blogspot.com/2011/09/androids-http-clients.html Jul 12 12:25:00 wongk: thx will check Jul 12 12:25:21 i think its literally the same as my code Jul 12 12:25:26 but using HttpsClient instead Jul 12 12:25:34 anybody know a tutorial for HTTP-post request? I need the asyn one Jul 12 12:25:48 https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/AsyncHttpClient.java Jul 12 12:25:49 wongk: I start the child activity from inside the adapter using the instance of the context I have passed. But using it I'm unable to startActivityForResult(). Is there any other way I can make the activity available in the adapter and do the same? Jul 12 12:25:54 i literally might make this it's own library Jul 12 12:26:33 napster: pass an activity to it Jul 12 12:26:48 CallumTaylor: people would probably use it if they can find it Jul 12 12:26:54 wongk: lemme try that :) Jul 12 12:26:54 yeah, ill do it now Jul 12 12:27:03 it is really useful, i use it in all my apps Jul 12 12:27:53 what do i do with that link callum? Jul 12 12:28:25 click on it ;) Jul 12 12:28:28 give me like 5 mins and ill create a library for my http client Jul 12 12:29:13 i mean, is that a library or a tutorial? Jul 12 12:29:28 library Jul 12 12:29:47 but if you look at the comments at the top, it tells you how to use it Jul 12 12:30:01 well, that is a source file, which is neither Jul 12 12:31:37 any examples that show it in use? Jul 12 12:31:42 Heya! Jul 12 12:32:07 heys Jul 12 12:32:25 http://documentation.callumtaylor.net/x-library/a00008.html Jul 12 12:32:32 documentation is your friend Jul 12 12:32:38 i was using http://loopj.com/android-async-http/ Jul 12 12:32:45 pretty similar? Jul 12 12:33:17 interesting... Jul 12 12:33:34 I was wondering, that overlay, when you first turn on your Android phone, the one that welcomes you to the Homescreen and shows you around Jul 12 12:33:36 well the one I wrote i've been using for over a year Jul 12 12:33:45 Can i do that in my own app? Jul 12 12:33:58 callum, does it take care of cookies? Jul 12 12:33:59 Sindriava: of course Jul 12 12:34:21 Hi romainguy , on your lecture you pointed out that a table view is like a linear inside a linear layout, is there any savings in terms of performance when using a table view instead of nested linear layouts? Thanks. Jul 12 12:34:22 Sindriava: probably. There's a boot broadcast intent you can listen for. Disabling the homescreen, however, won't work. Jul 12 12:34:33 cookies are only part of the headers, so yes Jul 12 12:34:39 oh man, it's going to be very difficult to learn from documentation, need some examples Jul 12 12:34:41 lov: Not what i meant, but thanks :) Jul 12 12:34:48 wongk: wonderful! How? I was looking around the source code of the launcher, if it does some API call, but i couldn't find anything Jul 12 12:34:50 but not as nicely as that library does it Jul 12 12:34:51 wongk: It does not work. I passed the parent activity instance to the adapter and tried running the child using startAcitivityForResult(), but the parent's onActivityResult() is not called! Jul 12 12:34:58 Sindriava: er.... You mean the first time behavior for LAUNCHER itself? Jul 12 12:35:02 that's.... that's a part of launcher. Jul 12 12:35:19 he means the transparent overlay Jul 12 12:35:22 lov: I did. I don't think it is, since the YouTube app does the same thing Jul 12 12:35:28 er Jul 12 12:35:32 lov: ^ Jul 12 12:35:38 you check a flag "hasUserDoneFoo". If it's not set, you do foo, then set the flag. Jul 12 12:35:44 it's nothing special. Jul 12 12:35:46 lov: Sorry, i don't know how to call it :) Jul 12 12:35:47 Sindriava: i can't point you to the source code, but it's in there Jul 12 12:35:48 Just use SharedPreferences or something Jul 12 12:36:07 wongk: it is? I couldn't find it. Thanks, i'll have a look Jul 12 12:36:31 wongk: I was thinking that since the new Youtube app uses it, it might be some implemented feature in the API ;) Jul 12 12:36:42 napster: did you set a result in the activity? Jul 12 12:36:50 Belecan: I think in practice you'll end having to chose one or the other Jul 12 12:37:10 Sindriava: i'd think it's just a full screen, semi-transparent activity Jul 12 12:37:21 wongk: Yes. and the request code is the same/ Jul 12 12:37:38 napster: we'll need to see source, then Jul 12 12:37:49 wongk: ok, let me gist it. Jul 12 12:37:56 wongk: Well, you can click through it, so i don't know how it works. I didn't find any code to check if it was the first run. I'll have a look :) Jul 12 12:38:23 Sindriava: you can just use a preferene for that Jul 12 12:38:46 wongk: for what? Jul 12 12:39:04 Sindriava: knowing is it's the 'first time' Jul 12 12:39:18 wongk: Oh, i know how to do that Jul 12 12:39:24 08:35:43 < lov> you check a flag "hasUserDoneFoo". If it's not set, you do foo, then set the flag. Jul 12 12:39:27 wongk: I don't know how to do the overlay :) Jul 12 12:39:41 It's an activity with a translucent background. Jul 12 12:39:45 wongk: If there is a widget or something Jul 12 12:39:47 lov: Thanks! Jul 12 12:39:48 you can just use a Theme. Jul 12 12:40:01 is it ok to assume android users have access to wifi Jul 12 12:40:10 lov: I'll try, thanks for the help! Jul 12 12:40:12 here's a start, then just add transparency: http://stackoverflow.com/questions/2868047/fullscreen-activity-in-android Jul 12 12:40:19 caseofinsani: not necessarily. Jul 12 12:40:32 caseofinsani: you can set a flag in your manifest saying that the app REQUIRES wifi hardware Jul 12 12:40:39 then you don't have to test whether it's present Jul 12 12:40:48 caseofinsani: assume they'd want to use wifi Jul 12 12:40:51 caseofinsani: i never use wifi on my phone Jul 12 12:41:06 caseofinsani: see also http://developer.android.com/reference/android/net/ConnectivityManager.html Jul 12 12:41:15 lov: thx Jul 12 12:41:18 so how do you transfer a file from a computer/website to a phone? Jul 12 12:41:20 caseofinsani: you can't assume that they're always ON wifi, or that the wifi is enabled. You have to check. Jul 12 12:41:23 er Jul 12 12:41:25 you download it. Jul 12 12:41:34 using Jul 12 12:41:35 cell networks have data plans nowadays Jul 12 12:41:41 quick question, i'm using an IntentReceiver to send an sms message, and i'd like to register PendingIntents for send and delivery. however, i get a ReceiverCallNotAllowedException, because intentReceivers cannot register to receive Intents. how do i work around this? there is no running activity that i could use.. Jul 12 12:42:26 ecraven: IntentReceiver? Jul 12 12:42:29 Do you mean BroadcastReceiver? Jul 12 12:42:34 you need to use a Service, probably Jul 12 12:42:41 was thinking of a way to transfer logs between phone&website Jul 12 12:42:45 or put it in your manifest Jul 12 12:42:58 caseofinsani: ok. Use HTTP. Jul 12 12:43:03 it's just a regular network request. Jul 12 12:43:13 what the underlying network is doesn't matter as long as it exists Jul 12 12:43:24 thanks Jul 12 12:43:36 Use the ConnectivityManager to make sure that the user has a valid network connection Jul 12 12:44:31 alright Jul 12 12:44:43 lars make great tutorials Jul 12 12:44:51 http://stackoverflow.com/questions/11452130/custom-listview-with-pinned-header-causing-jank-when-setting-padding okay, I've tried now to explain this very interesting problem. Jul 12 12:45:19 lov: Um, how would i make the overlay activity click through? Jul 12 12:45:29 okay, it's not that interesting, but I need eyeballs/opinions about my problem :) Jul 12 12:45:38 You know it's going to be a good post when Jank is in the title ;p Jul 12 12:45:42 lov: So they can click a button on the actionbar, when the overlay shows them an arrow Jul 12 12:46:50 Sindriava: /me shrugs Jul 12 12:46:55 There's some WindowManager flags you can use, probably. Jul 12 12:46:57 Do some research. Jul 12 12:47:04 lov: Ok! Thanks :) Jul 12 12:48:56 havchr: I can still see the logo even though you scribbled it. Instead of using the paintbrush, use the rectangle tool to select the area and hit "delete" Jul 12 12:49:16 wrt your issue, I don't know offhand, sorry. Jul 12 12:49:41 wongk: This is the parent activity class : https://gist.github.com/3097864 and the adapter is : https://gist.github.com/3097864 (I have removed the unwanted parts to keep it readable.) Jul 12 12:51:07 you posted the same link twice Jul 12 12:51:33 wongk: Sorry the adapter is here : https://gist.github.com/3097893 Jul 12 12:52:07 first thing i see, there's no need to pass a context and an actvity Jul 12 12:52:11 an activity is a context Jul 12 12:52:22 lov: no worries. Thanks for looking at it. Jul 12 12:52:27 wongk: ok Jul 12 12:54:22 napster: my guess is that the view that you're setting the listener on isn't actually getting the click event Jul 12 12:54:31 actually scratch that Jul 12 12:54:48 wongk: ok, let me digg on it Jul 12 12:54:49 obviously that part is worlking Jul 12 12:54:56 or the activity wouldn't show Jul 12 12:55:11 yeah, :) The activity is shown perfectly Jul 12 12:55:27 it looks fine Jul 12 12:55:32 it should work Jul 12 12:55:59 wongk: I see. :( Let me build a minimal app with this code and try. Jul 12 12:56:18 on an unrelated note, you're not calling notifyDataSetChanged in setUpdateData Jul 12 12:57:34 wongk: ah, thanks :) Jul 12 12:57:51 actually I call it from behind Jul 12 12:58:03 adapter.notifyDataSetChanged(); Jul 12 12:58:19 makes sense to encapsulate it, yes? Jul 12 12:58:37 if i want my intent receiver to listen to multiple intents, should i put multiple s inside one , or provide multiple s? Jul 12 12:58:45 yes definitely wongk Jul 12 12:59:50 ecraven: either should work Jul 12 13:01:50 wongk: can I listen to a PendingIntent (used with SmsManager.sendTextMessage) with an IntentReceiver? I seem not to receive these Intents Jul 12 13:02:36 Hi, I'm trying to build a sample app (cocos2d-x on windows for Android). I've installed NDK r8. All the (native) source files seemed to have compiled, the static libraries have compiled. Jul 12 13:02:49 The SharedLibrary libhelloworld.so is failing Jul 12 13:03:01 ...bin/ld.exe: ./obj/local/armeabi/png.a: No such file: Permission denied Jul 12 13:03:13 ecraven: what is an Jul 12 13:03:14 obj/local/armeabi/png.a seems to exist Jul 12 13:03:14 er Jul 12 13:03:22 what is an IntentReceiver? Jul 12 13:03:53 sorry, my fault, a BroadcastReceiver Jul 12 13:04:06 and you have an entry in your manifest? Jul 12 13:04:46 i.e. my application doesn't have an activity, it consists of only a BroadcastReceiver which listens to one user-defined intent, then sends an sms (which works fine). now i'd like to also receive the sent/delivery intents (which doesn't work yet) Jul 12 13:06:14 which context should i use for the broadcasting here?? Jul 12 13:06:34 (i.e. what do i pass to PendingIntent.getBroadcast as a first parameter?) Jul 12 13:07:34 the application context would probably be the most appropriate Jul 12 13:08:34 i only have the context i get in onReceive of the broadcastReceiver Jul 12 13:08:42 i don't have an actual Application class Jul 12 13:08:57 eh, Activity class that is Jul 12 13:09:38 hey, is there a way to suggest my app when a user opens his camera? Jul 12 13:09:55 yotam: register for the intent Jul 12 13:10:13 when you say "user opens his camera" you mean user does something that requires a camera and a dialog appears asking him what to use Jul 12 13:10:28 yes Jul 12 13:10:32 because if you mean from the launcher, that launches particular apps directly Jul 12 13:10:33 i tried Jul 12 13:10:38 oh Jul 12 13:10:41 it doesn't just send a general intent Jul 12 13:10:44 i see Jul 12 13:10:49 Pick up Paper Camera, see what they do. Jul 12 13:10:56 That's what you'll be able to do. Jul 12 13:11:17 ok thanks, i'll take a look Jul 12 13:11:39 ecraven: if you have a context, you can get the applicaiton context Jul 12 13:11:55 oh its not free :P Jul 12 13:12:08 ecraven: call getApplicationContext Jul 12 13:12:15 yotam: it's like a buck or something. Splurge. Jul 12 13:12:19 great, trying that right now, thanks! Jul 12 13:12:22 ecraven: that said Jul 12 13:12:29 ecraven: you can't register your broadcast receiver as the callback Jul 12 13:12:41 frankly, you should probably use your broadcast receiver to spin up a service to handle this Jul 12 13:12:45 can't i just tell the system to send a normal broadcast, that i will get due to my filters? Jul 12 13:12:49 :D Jul 12 13:12:49 both sending the intent, and waiting for the result Jul 12 13:12:54 ecraven: sure. Jul 12 13:13:10 and will a PendingIntent created with PendingIntent.getBroadcast do this? Jul 12 13:18:49 is this where database is stored on a device? Jul 12 13:18:55 data/data//databases/ Jul 12 13:19:12 is there a way to use ddms to show all broadcasts that are sent? Jul 12 13:20:09 caseofinsani: the last 3 parts of the path are consistent, yes Jul 12 13:20:25 actually the last 4 Jul 12 13:21:12 caseofinsani: generally, yes. DO NOT HARDCODE THIS. Jul 12 13:21:51 if you MUST programatically know this, use http://developer.android.com/reference/android/content/ContextWrapper.html#getDatabasePath(java.lang.String) Jul 12 13:22:08 some phones have the databases on a separate partition Jul 12 13:22:15 wongk: I figured out one behavior. The onActivityResult() method is called when the view is clicked, not when the child activity is finished. :) Jul 12 13:22:27 strange! Jul 12 13:22:56 Hi all, I'm getting an "Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY" (for a custom native library) but I can clearly see it on the emulator when I shell and ls to /system/framework Jul 12 13:23:01 any idea what could be causing this? Jul 12 13:23:59 InanTop: https://www.google.com/search?aq=f&sugexp=chrome,mod=14&sourceid=chrome&ie=UTF-8&q=INSTALL_FAILED_MISSING_SHARED_LIBRARY Jul 12 13:24:20 99% of those results refer to bad or missing installations of google APIs Jul 12 13:24:29 sadly I can't just run the Android manager to fix my issue Jul 12 13:24:30 I've already googled Jul 12 13:24:47 i dont think your libraries are supposed to be in /system/framework Jul 12 13:24:49 did you try /system/lib Jul 12 13:24:50 ^^ Jul 12 13:24:51 TMI Jul 12 13:25:00 why is your custom native library in /system at all? Jul 12 13:25:04 i googled myself in last night Jul 12 13:25:05 we have a jar in framework, and an so in /system/lib Jul 12 13:25:17 logcat is complaining about the jar though Jul 12 13:25:18 oddly enough Jul 12 13:25:36 I'm not sure why it's set up like this, it has been since I've been here and it's worked like this in the past Jul 12 13:25:42 so unfortunately I can't clarify why we do it the way we do Jul 12 13:25:51 is your app preloaded on devices? Jul 12 13:25:54 If not, this is the wrong behavior. Jul 12 13:26:07 yes it is Jul 12 13:26:12 ok Jul 12 13:26:13 it's a custom build for a specific device Jul 12 13:26:23 Hmm! Jul 12 13:26:25 sorry I'm not an Android dev by nature Jul 12 13:26:25 "file = new File("file.txt");" creates a new file, but wat if i want to accesss the file if it exists? Jul 12 13:26:33 caseofinsani: wrong Jul 12 13:26:48 file = new File("file.txt"); creates a File object, which is just a reference to a path. Jul 12 13:26:51 it doesn't create the file. Jul 12 13:27:11 InanTop: alright, sorry Jul 12 13:27:45 did you reboot after deploying your jar? Jul 12 13:27:57 actually you guys might be on to something here... it looks like the lib isn't showing up on the device under syste/mlib Jul 12 13:28:18 it was complaining about the jar so I didn't check the lib initially Jul 12 13:28:34 lov: http://developer.android.com/reference/java/io/File.html#File(java.lang.String) Jul 12 13:28:39 lov: Constructs a new file Jul 12 13:28:49 i thought it throws an exception Jul 12 13:28:54 I'll pursue this line of thinking for a little bit, thanks guys Jul 12 13:28:59 caseofinsani: no Jul 12 13:29:02 constructs a new File Jul 12 13:29:10 trust me, it doesn't actually create a file on your filesystem Jul 12 13:29:31 on the memory Jul 12 13:29:37 so it creates one temporary Jul 12 13:29:40 ily Jul 12 13:29:43 no problem Jul 12 13:29:45 I lied, it's there I'm just blind Jul 12 13:29:47 caseofinsani: call exists() Jul 12 13:29:49 let me know the result Jul 12 13:29:51 you can make my check out to Mike Dg Jul 12 13:30:20 ook Jul 12 13:30:26 i see Jul 12 13:30:33 the documentation is not exactly precise Jul 12 13:30:40 it is Jul 12 13:30:48 if you know what constructs means Jul 12 13:30:52 caseofinsani: someone was lazy in writing file instead of File Jul 12 13:31:16 it should be uppercase, yes Jul 12 13:31:18 caseofinsani: point is, File doesn't actually create the underlying file; it's just an object that contains the absolute path. It doesn't even contain a file handle, since it doesn't actually open anything. Jul 12 13:32:17 could my eclipse be misconfigured somehow, causing the library to not be found? Jul 12 13:32:33 I'm such an android noob, I don't understand why I've been assigned to this project lol Jul 12 13:32:37 bear with me Jul 12 13:32:57 yeah yeah notifications yeah yeah Jul 12 13:33:05 InanTop: ask another member of your team what your setup is supposed to be Jul 12 13:33:28 lov: yeah I'll probably have to resort to that... this exact set-up was working fine until my VM crashed Jul 12 13:33:40 we're stretched a little thin so I'm trying to avoid taking up peoples' time Jul 12 13:33:58 InanTop: it'll save everyone's time to ask someone who already knows this Jul 12 13:34:33 I'll report back with the solution, then Jul 12 13:34:35 in case anyone is curious Jul 12 13:38:03 InanTop: please do! Jul 12 13:50:46 /ctcp rking version Jul 12 13:50:54 Hi, I'm an idiot. Nice to meet you. Jul 12 13:51:39 :P Jul 12 14:12:49 See ya all Jul 12 14:12:54 wow no one commented in ages Jul 12 14:13:13 we're sleeping Jul 12 14:13:19 well cya, thanks for the help guys Jul 12 14:18:47 hi, I want to load a html page with javascript in a webview if i load it with loadUrl the javascript run fine but if I load with loadData I get a XmlHttpRequest Exception 101 ... Jul 12 14:38:46 lov are you still here? Jul 12 14:38:55 by any chance :P Jul 12 14:56:06 sigh, my reluctance to write database stuff is postponing my release >.< Jul 12 14:56:10 I hate databases... Jul 12 14:56:34 how does an activity know where to look for shared libraries Jul 12 14:57:53 mornin' Jul 12 15:05:52 just in case anyone needs this, my problem was solved by providing a requestCode != 0 for the PendingIntent. It seems 0 is somehow special and prevents my code from working. Jul 12 15:10:57 yotam: sporadically Jul 12 15:15:03 i installed the papercamera app Jul 12 15:15:53 what's special about how it opens the camera? it doesnt ask me if I want to open it when I open my default camera Jul 12 15:18:48 which widget i must use to notify the user of changes while the application is in the background? Jul 12 15:20:04 superlinux-hp, when the application is not in the foreground it is subject to be killed by the system. you will probably want to implement a Service to do work in the background as it will have higher priority to live Jul 12 15:20:26 ah ok Jul 12 15:20:43 rootlicker, but what about that widget? Jul 12 15:21:00 with a service, you can "foreground" it by providing notification to the status bar - which would resolve your issue of notifying the user - and also give it higher priority than a non-foregrounded service Jul 12 15:21:07 let me find you a link, one moment Jul 12 15:21:11 superlinux-hp, a textview? a dialog? Jul 12 15:21:16 A notification. Jul 12 15:21:28 a notification thing Jul 12 15:21:40 lol Jul 12 15:21:59 http://developer.android.com/guide/components/services.html#Foreground Jul 12 15:22:07 short of an actually missing shared library, what can cause a missing shared library error...? Jul 12 15:22:13 how does an activity know hwere to look for the libraries Jul 12 15:22:49 InanTop, the activity doesn't know where to look. you add the library to your build path and that is how the compiler knows to look Jul 12 15:22:57 InanTop, in project.properties you get something like: android.library.reference.1=../ptr_library Jul 12 15:23:25 InanTop, project.properties is in the base dir(where the AndroidManifest.xml lives) Jul 12 15:23:33 joakime: rootlicker-work , let me go into a little more detail... I had a set-up working where I push a jar and an so onto the emulator, and then run my app Jul 12 15:23:38 my VM crashed, and now I'm getting this error Jul 12 15:23:46 I don't think any configurations have changed Jul 12 15:23:50 I'll check it out though Jul 12 15:23:57 thanks Jul 12 15:23:57 InanTop, just put your files in you eclipse project in folder "lib". and go to your project properties add the corresponding JAR files Jul 12 15:24:00 using eclipse? clean. clean again. restart eclipse. run and pray. Jul 12 15:24:08 yep using eclipse Jul 12 15:24:17 I'll try all of these things Jul 12 15:24:21 thanks a lot guys Jul 12 15:24:22 ffs chrome wiped my "recently closed" list after closing like 20 tabs T_T Jul 12 15:24:34 superlinux-hp, that link goes directly to the section about foregrounding a service with notifications. you should read all of the documentation about services first to gain an understanding of how a service works Jul 12 15:24:34 the internet is full of people actually not installing libraries, but I can see mine on the device Jul 12 15:25:26 rootlicker-work, ok. done Jul 12 15:26:15 superlinux-hp, cool, ask back if you hit any more questions Jul 12 15:26:22 ok Jul 12 15:26:47 yotam: right. Jul 12 15:26:53 But go to another app that lets you take a picture Jul 12 15:26:54 rootlicker-work, cos i used to write python on nokia's symbian S60 Jul 12 15:26:57 e.g. the messenger app in G+ Jul 12 15:27:03 it will ask you what you want to use to take the picture Jul 12 15:27:07 you can register your app there Jul 12 15:27:16 i have videos about it Jul 12 15:27:36 again, the camera app on the launcher is a discrete app and an explicit intent, not an implicit intent Jul 12 15:27:49 oh, yeah I got that implemented but it wasn't excatly what I was looking for. Jul 12 15:27:50 I THINK you can register for the intent for the Camera button, but I don't know how offhand Jul 12 15:28:04 my point is, the things that Paper Camera can do, you can do too. Jul 12 15:28:08 yeah I tried that also, but didn't seem to work on my phone Jul 12 15:28:11 the things that it can't, you probably can't either. Jul 12 15:28:14 yeah Jul 12 15:28:24 bear in mind that the default behavior of the camera button may have been modified by the manufacturer Jul 12 15:28:27 it may ONLY go to their app Jul 12 15:28:45 alright, I'll just implement importing photos :) Jul 12 15:28:50 should be good enough Jul 12 15:28:54 okey doke. Jul 12 15:28:55 thanks Jul 12 15:28:58 np Jul 12 15:33:41 Ideas? build/core/main.mk:532: *** The following variables have been changed: PRODUCT_NAME BUNCH_OF_OTHERS. Stop. Jul 12 15:34:57 BUNCH_OF_OTHERS Jul 12 15:34:58 awesome Jul 12 15:35:03 no, no idea. Jul 12 15:35:15 lol Jul 12 15:38:47 solved it Jul 12 15:44:30 Hey, anyone have any examples (github or other) showing how to implement a search with dropdown suggestions in JakeWharton's Actionbar sherlock? Jul 12 15:45:28 I'm using an autocomplete edit text as of now but for the life of me I can't get the drop down showing. Jul 12 16:10:14 "bitch" was just autocorrected to "bit cheaper" by swiftkey Jul 12 16:10:14 nice Jul 12 16:12:47 [proguard] Original number of program classes: 4582 Jul 12 16:12:47 [proguard] Final number of program classes: 3656 Jul 12 16:12:50 im not sure what scares me more Jul 12 16:12:58 the fact that there are 4500 classes Jul 12 16:13:03 or the fact that 900 of them are unnecessary Jul 12 16:17:48 hey Jul 12 16:18:31 how would you go about setting the activity stack if you need 3 interchange-able start-up activities (e.g. std back functionality) which should "cut over" to a new activity when done (after registration process) and "die off"? Jul 12 16:18:40 is there a way to change which activity is considered root? Jul 12 16:26:52 oh rovio... earning a 1star from me before i even play your new game Jul 12 16:26:56 if my phone is on silent Jul 12 16:26:58 dont fucking play music Jul 12 16:29:03 morning all Jul 12 16:30:24 canadiancow|work: don't play games at work Jul 12 16:30:37 :P Jul 12 16:30:48 if i didnt play games, id get fired :( Jul 12 16:30:52 My missing shared library issue was resolved by rebuilding the emulator image Jul 12 16:31:05 for anyone curious that recalls Jul 12 16:35:35 how do I access the LoaderManager within a generic class? Jul 12 16:35:56 ^-- this class implements the LoaderCallbacks Jul 12 16:37:02 so many cool Android libs make you inherit from a custom Activity class... so inflexible... Jul 12 16:39:06 1 star for music? HATE Jul 12 16:40:43 he's just bitter because it's from rovio Jul 12 16:42:07 there are a few things that will make me low-rate you very quickly Jul 12 16:42:10 does anybody have a good link for adding a rate my app example Jul 12 16:42:18 targetSdkVersion < 14 : -1 star Jul 12 16:42:29 targetSdkVersion < 11 : -1 star (in addition to the above) Jul 12 16:42:42 installLocation unnecessarily not set to auto: -1 star Jul 12 16:42:43 uh why? Jul 12 16:42:47 because that shit pisses me off Jul 12 16:42:48 Wavesonics: as far as I know an Activity has a layout... or not? Jul 12 16:42:52 that is ridiculous Jul 12 16:42:57 creates a directory on the root of the external storage: -2 stars Jul 12 16:43:01 there are numerous valid reasons to target lower sdks Jul 12 16:43:05 plays ANY sound when phone is in silent mode: -4 stars Jul 12 16:43:08 no there are not Jul 12 16:43:09 otherwise there wouldn't be an option to Jul 12 16:43:13 elegos, ya? Jul 12 16:43:32 Wavesonics: I have to access the LoaderManager outside a layout Jul 12 16:43:33 the option is there so if you write code in 2009 that JB doesnt fuck it up in 2012 Jul 12 16:43:41 what about all the thousands and thousands of apps that were developed prior to 2.3 release? Jul 12 16:43:42 if you write code in 2012, you should be targetting the latest Jul 12 16:43:50 then they should be updated Jul 12 16:44:02 thats such an arrogant and asenine stand Jul 12 16:44:07 no it isn't Jul 12 16:44:17 why build in newer sdk features if an app works fine without them? that jsut adds bloat Jul 12 16:44:22 canadiancow|work: any devel knows that 2.1 should be the lowest installable sdk Jul 12 16:44:26 who said anything about new features? Jul 12 16:44:31 elegos, you need to set the layout for a Activity using setContentView() Jul 12 16:44:38 why target an sdk version if you don't use its features? Jul 12 16:44:46 so that i dont get a fucking menu button Jul 12 16:44:48 to reach the majority of users i could look and track my app installs but 20% still come from 2.1 Jul 12 16:44:52 Wavesonics: again, this is a library class, not an activity with a layout... Jul 12 16:45:01 you dont even know what targetSdkVersion is, so this conversation is pointless Jul 12 16:45:13 uhhh Jul 12 16:45:15 it should do something async and then broadcast a message Jul 12 16:45:33 elegos, so, sorry, whats your question? Jul 12 16:45:42 i do its not the min version but targetverison just says it is better for that version of android Jul 12 16:45:45 don't take it there. targetSdkVersion is the version the app is targetted for. i.e the versin it's intended to run on, based on what sdk features it uses Jul 12 16:45:56 so many cool Android libs make you inherit from a custom Activity class... so inflexible... Jul 12 16:46:00 minimum sdk is the minimum supported using compatibility libraries Jul 12 16:46:04 Excuse me, how does one switch on the "Hardware emulation property of AVD" to true? Jul 12 16:46:06 and my question was: how do I access the LoaderManager within a generic class? Jul 12 16:46:14 ah Jul 12 16:46:28 so if you don't use a newer sdk's features, you shouldn't target it Jul 12 16:46:36 you could take the context as a constructor argument Jul 12 16:46:49 progzer: do you mean GPU emulation? Jul 12 16:46:50 rootlicker no Jul 12 16:46:51 i know what targetversion is but why do you have to specify it its just retarded that its not semi backwards compatable Jul 12 16:46:52 not even close Jul 12 16:46:53 Wavesonics: I thought about it, but the getLoaderManager is not a context method Jul 12 16:47:00 elegos: you pass it in Jul 12 16:47:00 Or hardware acceleration Jul 12 16:47:00 how a device with a later version sdk handle's things like menu for backwards compatibility is upon the dvice Jul 12 16:47:11 ok show me documentation saying otherwise then please Jul 12 16:47:17 well either take the LoaderManager it's self as an argument, or an Activity Jul 12 16:47:21 evancharlton: right... and then for the callbacks I put "this" right? Jul 12 16:47:23 I'm trying to run the cocos2d-x HelloWorld sameple. It works on my device but not in the emulator. Jul 12 16:47:37 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html Jul 12 16:47:39 rtfm Jul 12 16:47:40 the devs have to take the steps to make things like admob work... apps they lost their keystore to long ago to update and google will say ahhh no i dont have to help them Jul 12 16:47:42 (The doesSupportGLES20 function is returning false) Jul 12 16:47:45 This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version. The application is still able to run on older versions (down to minSdkVersion). Jul 12 16:47:48 "n integer designating the API Level that the application targets. If not set, the default value equals that given to minSdkVersion. Jul 12 16:47:48 This attribute informs the system that you have tested against the target version and the system should not enable any compatibility behaviors to maintain your app's forward-compatibility with the target version." Jul 12 16:48:11 exactly what i just said Jul 12 16:48:19 elegos: I don't know what "this" is; it depends on your program. Jul 12 16:48:36 evancharlton: my class implements the response loader callbacks Jul 12 16:50:02 Hey everyone. Just getting back into Android dev (it's been a bit for me). Downloaded the new SDK, installed 4.1 SDK and created a 4.1 AVD. Upon launching the AVD, the Android logo appears, then shows the signal bar, battery and time but nothing else (black). What could the problem be? Jul 12 16:50:27 BeBoo: did you turn on gpu emulation? Jul 12 16:50:43 Where might I find that? Jul 12 16:51:01 well, you'd know if you turned it on :P Jul 12 16:51:15 Haha, no I did not then. Jul 12 16:51:29 i ask because that's the behavior i see with that option on Jul 12 16:52:02 Perhaps I should turn it on (or maybe it's on and needs to be off)? Jul 12 16:52:12 BeBoo: if you're on linux or windows, try to install the intel's extra HAXM and run the Android x86 version of JB Jul 12 16:52:28 "if the API level of the platform is higher than the version declared by your app's targetSdkVersion, the system may enable compatibility behaviors to ensure that your app continues to work the way you expect. " Jul 12 16:52:30 hi guys, do you know if the res/layout-/ trick works on android 2? Jul 12 16:52:31 elegos: OS X here, sorry. Jul 12 16:52:31 or mac/windows? windows for sure Jul 12 16:52:39 BeBoo: there is a list of AVD properties with an Add button Jul 12 16:52:48 BeBoo: try to see if the extra is available in the SDK Manager Jul 12 16:52:54 GPU emulation is an option there Jul 12 16:53:11 so why would i target an sdk higher than what i built for, so that it will behave differently than i expect? so i can cater to your desire for personalized fart sound boards? Jul 12 16:53:21 wongk: Not on mine (you mean the window where you setup the target, SD card size, etc?) Jul 12 16:53:29 yes Jul 12 16:53:29 btw for all who had issues with the HAXM module hanging the VT-x modules, the new version has fixed it Jul 12 16:53:59 elegos: Extras folder is empty. Jul 12 16:54:06 rootlicker-work: if we have no fart boards, we have no freedeom Jul 12 16:54:09 anyone know why it takes ages (possibly eternity) to check the eclipse repos for updates? Jul 12 16:54:15 BeBoo: select "new software" too Jul 12 16:54:21 or packages Jul 12 16:54:25 or whatever is called Jul 12 16:54:29 rootlicker-work: is enables certain features that are only available with a proper target SDK set Jul 12 16:54:32 it Jul 12 16:54:43 like Holo, for instance Jul 12 16:55:00 hardware acceleration Jul 12 16:55:10 elegos: For Show, "Updates/New" and "Installed" are chosen. "Obsolete" is unchecked. If I click the "New" link to the right, it checks every item under each SDK. Jul 12 16:56:27 BeBoo: you should see "Intel Hardware Accelerated Execution Manager" under "Extras" even if it's not available for your OS Jul 12 16:56:28 elegos: Oh! But now there are items under Extras (after clicking the New link). A bunch of Google items, Android Support Library and Intel Hardware Accelerated.... Is that what I want? Jul 12 16:56:40 yes it's that Jul 12 16:56:49 Ok, installing now. Jul 12 16:56:52 does google have a support channel for hmmm a merchant account...? Jul 12 16:57:07 hoping your CPU on your mac supports the VT-x modules Jul 12 16:57:08 no, click the appropriate "help" link on the website. Jul 12 16:57:23 BeBoo: btw you have to install it once downloaded... or at least I had to on Windows Jul 12 16:57:34 you'll find it under the SDK directory, under extras/intel Jul 12 16:57:39 droidbuster: you get an FAQ and a knowledgebase, that's about it :P Jul 12 16:57:44 droidbuster: https://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=136601 Jul 12 16:57:53 elegos: yup, appears to have downloaded a dmg. I'm on it. Jul 12 16:58:15 thank you both wongk and leeds i keep seeing the merchant setup and i did it already Jul 12 16:58:19 worries me Jul 12 16:58:53 elegos: is 2GiB enough for it? (asking how much RAM to allocate) Jul 12 16:59:10 BeBoo: it mostly depends on your RAM quantity Jul 12 16:59:11 can someone send field3d the links to register his nickname i dont have them saved atm Jul 12 16:59:14 I've set it to 2GB Jul 12 16:59:17 it's just enough Jul 12 16:59:24 elegos: 6 available of 8. :) Jul 12 16:59:31 ok, set it to 2 :) Jul 12 16:59:46 /msg nickserv help Jul 12 16:59:58 lol, "This will take 4KB of space on your computer" Jul 12 17:00:02 CTRL+enter wongk? :P Jul 12 17:00:12 BeBoo: it's just a kext Jul 12 17:00:13 /say Jul 12 17:00:24 elegos: I figured as much Jul 12 17:00:26 wongk: ty lol i havent registered one in so long Jul 12 17:00:30 /msg NickServ identify mysecretpassO.ò Jul 12 17:00:34 SimonVT you there? Jul 12 17:00:36 I'm trying to install the ADT plugin for eclipse and I"m getting an error claiming that I don't have "org.eclipse.wst.sse.core 0.0.0" ? Jul 12 17:01:01 deadmund: is your eclipse a clean install? Jul 12 17:01:04 deadmund: install that, then Jul 12 17:01:25 elegos: wongk It is a clean install, I don't have root on this machine so I can't install packages through the package manager. Is this an issue? Jul 12 17:01:42 you should be able to do it through eclipse Jul 12 17:01:46 elegos: Ok, installed. Should I try firing up the AVD again? Jul 12 17:02:03 BeBoo: set as target machine of your AVD the "x86" version Jul 12 17:02:05 of 4.1 Jul 12 17:02:09 or 4.0.4 Jul 12 17:02:29 I don't remember seeing that option. Just a sec. Jul 12 17:02:35 wongk: like this? https://developers.google.com/eclipse/docs/faq?hl=es#wstinstallerror Jul 12 17:03:01 BeBoo: CPU/ABI: Intel Atom (x86) Jul 12 17:03:03 seems relevant Jul 12 17:03:13 if you don't have it, download it from the Android SDK manager Jul 12 17:03:40 wongk: that page lists 3.4, 3.5 and 3.6. I have 3.7, what is the 'codename' of 3.7 for the URL?? Jul 12 17:03:44 elegos: There isn't one under 4.1, can I get it from 4.0.3? Jul 12 17:03:46 indigo Jul 12 17:03:56 BeBoo: yes you can Jul 12 17:04:03 thanks Jul 12 17:05:37 I have a problem and maybe is a novice answer how can I choose the package name? don´t accept me look this example:http://stackoverflow.com/questions/6106636/how-to-play-local-swf-files-in-a-webview Jul 12 17:05:37 in this example the package name is webView.video but I need to do 3 packages with different names and I want to call like webView.video.module18 something like that but eclipse reject me Jul 12 17:07:00 Just FYI, this will no longer work under JB as Adobe has stopped Flash development for Android Jul 12 17:07:44 i wonder what's going to happen as a result of that Jul 12 17:08:11 adobe is stopping flash development period Jul 12 17:08:13 users can still manually install flash out-of-market straight from Adobe... won't work in Chrome, and of course most mainstream users won't do that Jul 12 17:08:23 Leeds: not on JB you can't Jul 12 17:08:32 they are just destroying their own userbase Jul 12 17:08:35 mdwright: AFAIK you can Jul 12 17:08:48 adobe is moving to html5 solutions Jul 12 17:08:53 hi how can i bring activity to front ??? Jul 12 17:08:55 flash is dead. no one wants that slow garbage Jul 12 17:09:10 Pr070cal: an intent Jul 12 17:09:18 ive tried context.startActivity(i); it starts the activity but doesnt display it Jul 12 17:09:21 Leeds: You cannot on JB Jul 12 17:09:43 Pr070cal: sounds like a bug in your activity then Jul 12 17:09:47 Pr070cal, are you setting the layouti n oncreate() in the activity? Jul 12 17:09:55 wongk: ive used intents it starts the activity but doesnt display it if its running in back Jul 12 17:09:56 mdwright: so they've broken third-party browsers using a third-party plugin? Jul 12 17:10:16 Pr070cal: i've never seen that behavior Jul 12 17:10:17 when running in background i need to bring it to front Jul 12 17:10:23 if you already have it installed, it will stay installed, but its no longer available as a stand alone from the market Jul 12 17:10:40 if some third party browsers *rely* on that being there, then yes, they will break Jul 12 17:10:46 no, but it's bloody available directly from adobe, as I said Jul 12 17:10:57 Pr070cal, bringing to front is same as starting it, jsut be considerate of back-stack and multiple instances of a nactivity Jul 12 17:11:06 "users can still manually install flash out-of-market straight from Adobe" Jul 12 17:11:09 like if i pressed home key but can reopen app from task manager. Intent startsActivity but doesnt display it Jul 12 17:11:23 bring to the front and restarting are very different Jul 12 17:11:41 elegos: Sorry to be a pain. Installed the x86 system image from 4.0.3 but the CPU dropdown is grayed out. It's stuck on ARM. Jul 12 17:11:57 how you bring to the front depends on if the current activity is in the same task or not Jul 12 17:12:04 elegos: Wait a sec, I think I see what I did Jul 12 17:12:11 BeBoo: have you installed the 4.0.3 Intel Atom (x86) image from the manager? Jul 12 17:12:16 mdwright: ? Jul 12 17:12:39 elegos: I told it to install but wasn't paying attention to it. I don't think it finished because it still says Not Installed. Jul 12 17:12:50 :) Jul 12 17:12:53 Pr070cal, be specific Jul 12 17:13:05 Leeds: where is it available from adobe? Jul 12 17:13:07 elegos: or maybe I'm just crazy and I never clicked Install -_- Jul 12 17:13:10 where are you calling startActivity()? what does your intent look like? Jul 12 17:13:25 mdwright: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html Jul 12 17:14:22 i'm trying to connect to a bluetooth device (that is already paired) and I am not sure what to put in the UUID slot for creating the RfCommSocket Jul 12 17:14:36 Leeds: You're correct, that will continue to work in JB if you package it with your apk Jul 12 17:14:37 is it necessary to have a Content Provider if i want access from an Activity and a Remote Service? Jul 12 17:14:50 to a database Jul 12 17:14:51 but I was entirely unable to find that page by searching for it >.> Jul 12 17:15:09 mdwright: thank you for your apology... that method and link comes directly from Adobe's announcement of their withdrawal of support Jul 12 17:16:17 AquaWolf: no, that's just one way to go about it Jul 12 17:16:59 http://pastebin.com/BFNBw7US Jul 12 17:17:04 so i can access the database without any problem from the remote service and an Activity? Jul 12 17:17:35 I have to HOLD HOME and select it, to bring it to the front although the activity starts Jul 12 17:17:46 mdwright: presumably the link will get better known when they pull the flash plugin from the market entirely in around a month Jul 12 17:19:06 elegos: Ok, it's installed this time and still grayed out. Wouldn't I need a system image with the same API level as my AVD? Jul 12 17:19:32 Pr070cal, unforutnantley pastebin is blocked at my work so i can't view it Jul 12 17:24:12 anyone here know about bluetooth? Jul 12 17:24:20 what about it? Jul 12 17:24:36 i am trying to connect ot a bluetooth device that is already paired Jul 12 17:24:41 but i'm not sure what to put for the UUID Jul 12 17:27:16 not sure Jul 12 17:27:37 BeBoo: try to restart the manager Jul 12 17:28:04 BeBoo: btw you need the 4.0.3 x86 image and the 4.0.3 SDK too Jul 12 17:28:36 elegos: but I want the AVD running 4.1. Is that not possible for me atm? Jul 12 17:28:49 no it's not with HAXM ATM Jul 12 17:29:02 there's no Intel Atom x86 image for 4.1 Jul 12 17:29:06 is it possible to have an edit text object automatically insert commas as numbers are being put into it? IE: 200,000 instead of 200000 Jul 12 17:29:46 elegos: so is it an issue with the ARM processor/image (on a mac?)? Jul 12 17:29:51 BeBoo: btw you don't need the 4.1 if you don't want to explicitly use one of its features Jul 12 17:30:01 BeBoo: not an issue, but it won't be accelerated Jul 12 17:30:08 is there another way to use the same sqlite database with a service and an activity then Content Provider? Jul 12 17:30:28 ninjai, shold be, one sec Jul 12 17:30:45 elegos: Hrm. Ok. Thanks for the help :) Jul 12 17:32:21 if i simply rename folders in /res to .whatever then aapt should ignore the whole folder, right? Jul 12 17:33:52 luxurymode: more likely you'll get a compile error, but worth a try. Jul 12 17:34:15 I'd recommend just moving the folder to res_bak/ or something Jul 12 17:34:19 ninjai, http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher and http://developer.android.com/reference/android/text/TextWatcher.html Jul 12 17:34:25 that should be a starting point Jul 12 17:34:48 how do i disable the click sound from an image button? Jul 12 17:35:02 thanks rootlicker Jul 12 17:35:17 thanks lov, bak? Jul 12 17:36:03 jmpdev, dont think you can in the app. thats a device thing Jul 12 17:36:40 jmpdev: turn on silent mode :> Jul 12 17:36:51 lov, like backup copy? Jul 12 17:36:54 elegos: Actually, does that have anything to do with the black screen issue I am getting? I'm not really looking for acceleration, just looking to make it run properly. :P Jul 12 17:37:09 jmpdev: I'm not sure that you can, directly. Jul 12 17:37:18 BeBoo: the black screen may be a frame rate issue Jul 12 17:37:36 lov: thanks lol, yeah i'm just going to have to disable all click sounds Jul 12 17:38:04 jmpdev: I'd recommend not doing that. The user has chosen to enable them for a reason. Jul 12 17:38:24 the click sound is a form of feedback to the user letting them know that their action had an effect Jul 12 17:38:31 it's especially valuable for sight-impaired users Jul 12 17:38:48 lov, hanging it to .whatever works fine Jul 12 17:38:49 builds Jul 12 17:38:54 elegos: I'm not sure I agree with that. The clock updates normally and I really shouldn't have that kinda problem on an i7 with dedicated graphics :P Jul 12 17:38:57 luxurymode: ok, sounds like you're set. Jul 12 17:39:04 lov: oh my app is just for a kiosk, otherwise i'd leave it in Jul 12 17:39:05 yup Jul 12 17:39:15 elegos: Ok, this is strange - after probably the 10th time running it, it loads normally. I'm now at the lock screen. Jul 12 17:39:35 BeBoo: without accelerated, your emulator won't use nor GPU nor a high amount of CPU Jul 12 17:40:40 test Jul 12 17:41:16 lov, itd be kinda nice if you could tell aapt to exclude certain folders cuz it gets annoying…i have to remember not to commit the rename to .whatever to git Jul 12 17:43:39 canadiancow: you there? Jul 12 17:43:43 yea Jul 12 17:43:45 nevermind Jul 12 17:43:52 ^_^ Jul 12 17:48:15 How can I configure the 'physical' keyboard on the android emulator? google isn't helping me here :( (also, my on screen keyboard has some chinese? characters on some of the keys (english letters though..) Jul 12 17:49:29 deadmund not sure what you mean by configure the physical keyboard Jul 12 17:49:48 but as for OSK yuo can hold the bottom right button and a few different display options will pop up Jul 12 17:49:51 rootlicker-work: the 'physical' keyboard on the android emulator doesn't work. I was told I need to 'configure' it. I realize this is vauge. Jul 12 17:49:58 oh Jul 12 17:50:07 rootlicker-work: button right button? Jul 12 17:50:17 on the on screen keyboard Jul 12 17:50:51 there is a button on the bottom right, it has an A on i think (not looking at it at this moment) - you can hold it and a few buttons will pop up, each one will switch it to another style Jul 12 17:51:32 as for configuring physical keyboard to work, go to AVD manager, go to properties for your device, add a new attribute in the custom parameters, select the keyboard support option, change value to true, and restart emulator Jul 12 17:51:46 thanks Jul 12 17:52:23 sorry i can't remember the exact terms and i'm in another environment right now at work so i can't pull it up to tell you specifically Jul 12 17:53:14 long pressing the input field allowed me to switch from japanese to english Jul 12 17:53:29 so now the japanese characters are gone. Thanks :) Trying the emulator config now in AVD Jul 12 17:54:46 rootlicker-work: and now the physical keyboard works too. Thanks :) Jul 12 17:55:31 np.. it used to be on by default, not sure why they changed the default to off Jul 12 18:23:18 wongk: Finally I fixed it (https://gist.github.com/3097893) by removing launching the activity in a new task (Line 47) Since this will fire a cancel immediately. Thats why I observed the weird behavior of getting the onActivityResult() called on click event itself. Thanks for the help :) Jul 12 18:34:55 test Jul 12 18:35:00 test Jul 12 18:35:27 this concludes the test Jul 12 18:35:53 had this been a real message... Jul 12 18:36:28 ...we would all be running for our lives. Jul 12 18:36:55 plot twist, there was no test. Jul 12 18:37:55 i didn't see that coming Jul 12 18:38:25 D: Jul 12 18:39:44 wat. Jul 12 18:41:03 when building a listview that will have listview items which contain varying number of Views according to user preference, would it be better to put invisible/gone View placeholders in the listitem xml, or to dynamically add the Views in the adapter's getView override? Jul 12 18:41:32 ' Jul 12 18:41:38 or none of the above? Jul 12 18:43:17 I have an application but I don´t want to execut landscape operation how can Imake to avoid landscape mode in eclipse? Jul 12 18:43:53 hi guys. can someone help me with a "table doesnt exist" error in a class extending SQLiteOpenHelper? Jul 12 18:47:02 :P Jul 12 18:53:41 ffs Jul 12 18:53:48 Intl rate of $15.36/MB applies in this location. Jul 12 18:53:51 at&t ftw Jul 12 18:54:49 field3d: in your manifest Jul 12 19:00:23 i just tried Compass Mode in google maps for the first time Jul 12 19:00:28 * tnzr mind -> blown Jul 12 19:02:41 hahaha Jul 12 19:03:19 anyone get a shipping notification about their nexus 7? heard the first rounds are going out today Jul 12 19:04:29 is there a way I can determine which view is currently being used within my activity? Jul 12 19:05:05 uh, layout, not view Jul 12 19:06:30 i think you can grab the view and compare the id to your layout id? Jul 12 19:06:57 don't know exactly how but it sounds like something I've done. I may be 100% wrong Jul 12 19:13:12 I did but when save or clean return me to original state the manifest Jul 12 19:13:45 hm Jul 12 19:14:41 what is this your ide is doing it.? Jul 12 19:18:02 So i want to delete the database entries from my phone for this app. Can I do this from adb without rooting the phone? For some reason, it just says "Failure" when I try to just uninstall with adb Jul 12 19:21:39 Rich787: just clear its data in the settings UI Jul 12 19:21:55 settings / manage applications / [find the app] / clear data Jul 12 19:22:19 what app is it? Jul 12 19:23:31 is there a simple way for me to determine which layout my activity is currently using? Jul 12 19:24:10 c2dm is faster than whatever ios uses :) Jul 12 19:25:22 ha! i just heard a specific term for the technique of writing code like: if (0 == myvar) ... Jul 12 19:25:27 is c2dm what Google uses to allow app installs invoked from a web browser? Jul 12 19:25:38 [i.e. the defensive practice to avoid accidental assignments when you typo = vs ==] Jul 12 19:25:44 "Yoda conditions" Jul 12 19:25:53 @ctate: nice Jul 12 19:25:54 pcgeek86: more or less, yes Jul 12 19:27:37 lol ctate Jul 12 19:27:48 well pcgeek86 it's probably gcm now Jul 12 19:35:45 ctate: oh thanks for your response. I realized I was using adb wrong. it's "adb uninstall " and I was trying "adb uninstall ./path/to/*.apk" Jul 12 19:35:49 facepalm hehe Jul 12 19:35:54 heh Jul 12 19:36:20 yeah 'install' takes the host-side apk file path; 'uninstall' takes the app's canonical (i.e. package) name Jul 12 19:37:47 ctate: Yoda conditions are a sign that the developer is used to not having IDEs or linters. Jul 12 19:38:02 fair enough Jul 12 19:38:14 but they're useful for other reasons as well Jul 12 19:38:20 if "".equals(foostring) Jul 12 19:38:31 collapses a test Jul 12 19:38:58 lol Yoda conditions? Jul 12 19:39:31 a condition it is, yes Jul 12 19:40:28 How are people doing leader boards now that openfient is dead? Gree? Playtomic? Jul 12 19:40:37 hah nice. Where you can pick out == from = ? Please explain :P Jul 12 19:40:44 ctate: maybe. Jul 12 19:40:46 canadiancow|work: gcm? Jul 12 19:40:58 ctate: usually, I'll want to test "is foostring not null? if it's not null, does it have length?" Jul 12 19:41:08 Rich787: if (constant == variable) Jul 12 19:41:20 if you accidentally typo = instead of ==, that's a compile-time error Jul 12 19:41:46 ctate: I THINK that eclipse actually makes the other way around a compile time error as well at this point Jul 12 19:41:46 google cloud messaging Jul 12 19:41:48 c2dm was deprecated Jul 12 19:41:51 pcgeek86: "google cloud messaging" i think; the thing that is c2dm all growed up Jul 12 19:42:10 right Jul 12 19:42:15 lov: yeah but some of us don't use the ide to build with, so.... Jul 12 19:42:29 * lov shrugs Jul 12 19:42:31 or you can just make all your variables final Jul 12 19:42:33 plus, y'know, gcc Jul 12 19:42:37 then varaible = literal is a compile time error too Jul 12 19:42:52 canadiancow|work: which is awesome unless you want to, you know, change the value. Jul 12 19:42:55 If I write a class that's in some other file in my package (com.example.app) then to access that class's constructor I need to do com.example.app.constructorName(); Am I doing this correctly?? Jul 12 19:43:04 what up Jul 12 19:43:11 deadmund: huh? Jul 12 19:43:19 lov: if you actually look through most code, its surprisingly rare to do that Jul 12 19:43:22 you just use new on that class Jul 12 19:43:24 aside from things like counter++; Jul 12 19:43:36 deadmund: I VERY STRONGLY suggest that you learn fundamental java before you do any Android development Jul 12 19:43:49 deadmund: http://docs.oracle.com/javase/tutorial/java/index.html Jul 12 19:43:55 deadmund: http://docs.oracle.com/javase/tutorial/essential/index.html Jul 12 19:44:12 lov: :P It was the silly eclipse syntax / error highlighting that got stuck. Sorry about that! :P Jul 12 19:44:21 lov: I thought it was very strange which is why I asked in here :) Jul 12 19:44:54 ctate: are you using command line tools, then? Jul 12 19:44:57 deadmund: my point remains. if you had to ask the question, you're pretty confused about java. Jul 12 19:45:11 Rich787: yeah, the full Android build is done in make Jul 12 19:45:58 lov: thanks Jul 12 19:46:12 ctate: yea, I was using intellij for a while after eclipse hogged all my resources, but then I switched to vim and that's been going pretty well. Jul 12 19:46:39 i'm a thorough convert to modern java iDEs for java Jul 12 19:46:59 I do miss the auto package includes.. I inevitably end up going through and switching things around. Jul 12 19:47:56 tracing references and refactoring and so on are so awesome Jul 12 19:48:16 I guess. That's what grep and sed are for :P Jul 12 19:49:02 that's what i thought :) Jul 12 19:49:20 but then you saw the light? lol Jul 12 19:49:51 deadmund when you import the class by package name you don't need to specify package path when referencing that class Jul 12 19:50:24 rootlicker-work: yeah... thanks :) Jul 12 19:50:29 import com.example.app.someClass; .... SomeClass mySomeClass = new SomeClass(); Jul 12 19:51:06 now if you import two classes with the same name, you might have to specify the full path but tbh i've never encountered that so i don't recall how that is resolved Jul 12 19:52:42 rootlicker-work: I know :) I was only confused cause eclipse appeared to be INSISTING that I use the full package name even though I had definitely imported the package. Jul 12 19:52:53 but it was just eclipse being slow to realize I changed it Jul 12 19:54:24 ah Jul 12 19:57:06 god damn, android builds these days just knock my machine to its knees :) Jul 12 19:57:20 it swaps out like everything in ram so when i come back after an hour or whatever i can barely get the screen to come on :) Jul 12 19:57:44 You need 20GB of ram to be on the safe side. Jul 12 19:58:42 So I'm trying to make an app that's essentially magnetic poetry. Just having some issues with moving the widget around. I've chosen a Button as the basis of a custom view to move and I'd like to support Android 2.2 and up. I seem to have it consistently following my finger, but the Y coordinate is off. I've narrowed it down to being the title bar and status bar throwing off my numbers. I Jul 12 19:58:42 am doing all of my movement in the custom view Jul 12 19:59:08 So how do I get the top X coordinate of the activity so I can include this in my calculations? Jul 12 20:02:50 why button instead of textview or some other view? Jul 12 20:04:02 rootlicker-work: I could perhaps do a textview but just right now did Button since it was convenient and looked most like a magnet before I started doing any graphics Jul 12 20:04:30 ah i see Jul 12 20:04:43 But I think the issue I'm having won't be affected by if I use a textview or button. I'll work on what base view I end up using later Jul 12 20:04:45 just curious what you're using for the dragging? Jul 12 20:04:59 yeah shouldn't matter, was just curious about why button. Jul 12 20:05:24 and what do you mean using for the dragging? Jul 12 20:05:43 following your finger Jul 12 20:06:16 3.1 + support the startDrag() drag and drop, curious what your approach is for 2.2 Jul 12 20:06:19 I'm using a SimpleOnGestureListener and onTouchEvent Jul 12 20:06:23 oh ok Jul 12 20:07:29 OnDown triggers it, then the onTouchEvent handles ACTION_MOVE which determines the X/Y and does a LayoutParam.setMargins() and sets the view's layout params to that Jul 12 20:07:42 http://andmobidev.blogspot.com/2010/01/getting-height-of-status-and-title-bar.html Jul 12 20:07:50 that should help you Jul 12 20:08:32 use acitivty.getWindow().getDecorView().getWindowVisibleDisplayFrame(...) Jul 12 20:08:49 Ahh ok, so I could probably just pass the activity to the creation of my custom view? I'll probably be creating the widgets dynamically Jul 12 20:08:59 Or could I get activity some other way Jul 12 20:09:12 hi all, i have a background that is an image, and a scrollview with 5-6 edittexts, when i click on some edittext to write, my background image goes up, and that destroys top bar of app? any ideas how to make background stay fixed.. Jul 12 20:10:53 well you said the title and status bars are throwing your Y coord off. so you could get their height using the method in the link and then adjust for it Jul 12 20:11:39 so your problem, i'm guessing, is that yTop= 0, you want to be the top of the activity, but instead is the top of the screen above the statusbar Jul 12 20:11:52 Right. But again I'm doing all of this in a custom view Jul 12 20:12:13 i don't see why that would make a difference unless i'm missing something Jul 12 20:12:32 The custom view can't access the activity directly from what I can see Jul 12 20:13:14 so you're extending the view class? Jul 12 20:13:36 Yes. Right now it's extending the Button class technically, but yes, it's extending a class Jul 12 20:14:10 The activity right now has no code that is beyond the very basic code in onCreate() to start an activity. The layout currently has 3 of my custom views in it to play around with them for testing, so they're not currently dynamically created. Jul 12 20:14:23 All of the code I've created is in the custom view itself Jul 12 20:14:37 seems like a weird way to do it, as that creates a dependency in the view Jul 12 20:15:22 Why would that be? I'm creating a View that can be moved, so I figured it would be best to not have the code be in the activity but instead be part of the View Jul 12 20:15:53 feel free to argue, anyone, but in my thinking the view should be concerned with how it looks and behaves in terms of itself, not how it is moved and placed within another view Jul 12 20:16:12 Right. And the movement is behavior Jul 12 20:16:22 that is external behavior Jul 12 20:16:22 you're a behavior. Jul 12 20:16:38 Your face is a behavior :V Jul 12 20:16:42 i.e. the movement and placement should be the concern of the container, not the item within it, IMO Jul 12 20:16:43 oh. Jul 12 20:17:38 i guess there is no way of getting aroun the dependency anyway, you could get the top y coord in the activity and send it to your custom view as a parameter Jul 12 20:17:56 either in the constructor or with a method like 'setTopY()' or something Jul 12 20:18:15 default to 0 or whatever, use a setter to change it Jul 12 20:18:21 Right Jul 12 20:18:43 certainly don't send the activity to it as a parameter, that sounds like a memory leak risk Jul 12 20:18:53 mmmm good point Jul 12 20:19:46 Though not as bad as the one I found in the examples I saw of how to move an object with a finger Jul 12 20:20:14 if i wanted to make a custom view though, my guess is i would make the container the custom view, like MagnetContainer or MagnetManager, for instance Jul 12 20:21:09 then you only need one reference to your topY value, rather than a reference to it in every item. and let the MagnetManager accept any view as a child even Jul 12 20:21:35 In the onTouchEvent callback, when the MotionEvent.getAction() was ACTION_MOVE (which fires even when the finger isn't moving but is simply down), they had: RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(new ViewGroup.MarginLayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT)); Jul 12 20:21:46 that would be much more reusable and generic, possibly useful to other people. almost sounds like a relative layout tho Jul 12 20:22:09 Rather than creating once outside of that and doing just the setMargins() call Jul 12 20:22:22 ah Jul 12 20:22:27 brb Jul 12 20:23:03 So yeah, creating and throwing away a LayoutParams object several times a second. I might be still somewhat new to Java and Android programming, but I wanted to stab somebody when I saw that Jul 12 20:23:45 when building a listview that will have listview items which contain varying number of Views according to user preference, would it be better to put invisible/gone View placeholders in the listitem xml, or to dynamically add the Views in the adapter's getView override? Jul 12 20:26:30 when using fragments I have a few list with different data and i'd like to pass the correct list to the corresponding visible fragment from my activity anyone have any links? i've seen links on using interface to pass from fragment to activity but not activity to fragment, i may be approaching this wrong Jul 12 20:30:38 * jasta scratches his head Jul 12 20:30:46 is sdk/eclipse/scripts/build_server.sh still supported? Jul 12 20:31:20 the output makes no sense to me. prints BUILD SUCCESSFUL, then claims it didn't produce out/android-eclipse, and aborts? 'the hell? Jul 12 20:33:48 Hi all I had made a simple UI which uses google maps Jul 12 20:34:10 whenever I remove that google map component application shows other components Jul 12 20:34:35 but when I try to run with that map in UI it says app has stopped responding Jul 12 20:36:36 JakeWharton why is there no JB notif stuff in the support lib :( Jul 12 20:36:46 don't care, wrote my own Jul 12 20:36:50 i know Jul 12 20:36:51 im using it Jul 12 20:36:52 :P Jul 12 20:36:56 but like... wtf Jul 12 20:37:10 cos JakeWharton is tryin to STICK IT TO THE MAN Jul 12 20:37:28 complain to the maintainer(s) of the frameworks/support.git repo for preventing me from contributing Jul 12 20:37:54 actually I'm emailing Adam Powell right now on a semi-related subject so I'll mention the support lib Jul 12 20:37:59 I really want to contribute this stuff back Jul 12 20:40:13 moonlightcheese, i'm not sure i follow entirely. you have listviews as children as listviews... are you asking if it is better to make the children list views' own children invisible/gone? Jul 12 20:41:15 no, i'm dynamically populating the list ITEMs with the data (Views) the user wants to see. Jul 12 20:41:56 ok 1 dimensonal list Jul 12 20:41:56 so that only the fields the user wants to see appears in each list item. Jul 12 20:42:12 analogous to removing a column in a grid view in windows. Jul 12 20:42:16 or adding one. Jul 12 20:43:14 i could do it either way, just wondering which is faster from an inflation/View recycling angle. Jul 12 20:43:38 oh ok. and so you're asknig is it better to just dynamically build each field's view and add it into the item, or better to define it in xml, set it gone, then set it visible if they want it Jul 12 20:43:50 exactly. Jul 12 20:43:59 damn good question Jul 12 20:44:04 oh. Jul 12 20:44:06 lol. Jul 12 20:44:07 :-) Jul 12 20:44:33 i think it may not make much difference Jul 12 20:44:40 i thought so too. Jul 12 20:44:53 let's suppose you do it dynamically... you would in get view, yeah? Jul 12 20:45:03 I'm loading large bitmaps that should be drawn on a canvas.. the bitmap can be up to 6 MB big, and sometimes it cause a OutOfMemoryException and thus the app will crash Jul 12 20:45:10 any safe way to load the bitmap? Jul 12 20:46:07 in in getView, you'd basically say if (option1Selected) { view = new View(); addViewtoItemView(); } return itemView Jul 12 20:46:27 so every time your item view recycles (as listview does) you're creating a new object on the fly, inserting it in Jul 12 20:46:39 yea either way i guess the onMeasure and everything gets called again. Jul 12 20:46:55 if you define it in the xml, and just set it to visible Jul 12 20:47:10 then you're not instantiating a new object every time getView is called Jul 12 20:47:41 you'e just recycling the inflated view and setting a param.. so my guess is that it is more efficient Jul 12 20:51:26 defining it in xml, the item view when inflated would already have all the children instantiated, so that should shave a little overhead, but not much Jul 12 20:52:33 however, your memory footprint would be slightly higher as you will have some invisible views hanging out when the options aren't selected - but that should only be for the items that are visible in the lsit as they recycle, so not much i would imagine Jul 12 21:01:53 my draw 9's - some of them - are distorted, but only on larger screens…i've examined the draw 9 and everything is fine with it Jul 12 21:31:47 any way for make a background image with stretch horizontal (like 9patch png) and repeat vertical? Jul 12 21:33:37 Anyone else having issues with the new activity wizard in adt20 and juno eclipse ? Jul 12 21:42:35 what kind of issues? Jul 12 21:42:56 i'm not sure juno is ready for use with adt tbh Jul 12 21:45:11 * jasta scratches his head Jul 12 21:48:30 rootlicker-work: creating a new activity and selecting the master-detail type in the wizzard causes a stack trace Jul 12 21:48:41 rootlicker-work (this is codefriar on a different computer Jul 12 21:58:44 Hi Jul 12 22:01:48 I'm trying to learn fragments with actionbarsherlock. I have a question; in theory are fragments inside tabs or do fragments help switch tabs because ABS sample says it only help switch tabs Jul 12 22:04:08 Come on guys I know some are you are atleast watching this chat Jul 12 22:04:15 help me out Jul 12 22:04:28 Stop being so mean Jul 12 22:09:29 help me please Jul 12 22:15:29 When you build/sign an apk, do the Log.i and Log.d stuff get stripped out or can they slow the app down? Jul 12 22:16:35 they do not get stripped Jul 12 22:16:44 they technically do add a little bit of overhead Jul 12 22:16:53 but they are not expensive Jul 12 22:16:55 ok, I'm going to be more careful then Jul 12 22:17:12 watch logcat. if you aren't seeing a continuous spew of messages, then they aren't slowing you down measurably. Jul 12 22:17:12 well, I was looping through hundreds of elements and outputting with Log.i Jul 12 22:17:21 okay yes then it can be a factor :) Jul 12 22:17:21 ok, thanks Jul 12 22:17:28 java string operations are pretty heavy Jul 12 22:17:55 as always, *measure* your performance; then you'll know where you are actually spending all your time Jul 12 22:18:20 <3 traceview Jul 12 22:18:32 I'm going to do that now Jul 12 22:18:33 all my time is being spent fixing shitty code Jul 12 22:18:37 _interesting_ Jul 12 22:18:50 ctate: that eclipse adt bug i was talking about a couple days ago... Jul 12 22:18:55 turns out to be something more sinister entirely Jul 12 22:19:03 ? Jul 12 22:19:27 the issue, if you remember, was if you have a set up like android app C depending on eclipse java project B, which depends on and exports eclipse java project C... Jul 12 22:19:34 err android app A* Jul 12 22:19:46 then android app A will not contain java project C Jul 12 22:19:59 turns out, that's not true. it will. except that it doesn't _refresh_ this set up reliably. Jul 12 22:20:12 wack Jul 12 22:20:17 so, if you set this up, apply voodoo i'm currently unclear of, and get it to work... Jul 12 22:20:22 that is starting to sound more like an Eclipse issue than an ADT issue per se Jul 12 22:20:29 then if you remove eclipse java project C entirely from java project B, android app A will still include it! Jul 12 22:20:43 that is the new #include! directive Jul 12 22:20:45 "include this, damnit" Jul 12 22:20:55 ctate: no, i think it's adt for sure. if you look, android app A's "Android Dependencies" section contains an explicit reference to java project C Jul 12 22:21:02 cf 'q!' being vi's command for "quit, damnit!" Jul 12 22:21:03 _even_ when you remove it from java project B. Jul 12 22:21:15 interesting. filed a bug about this? Jul 12 22:21:25 not yet, i am missing the "apply voodoo" part. Jul 12 22:21:35 i can't figure out what exactly prompts the "update" to make it work in the first place Jul 12 22:21:48 i was fiddling with the ADT, adding some debug output, deploying, restarting, etc, over and over and then suddenly it worked Jul 12 22:21:54 you don't need to know how to FIX it in order to file the bug :) Jul 12 22:22:07 despite no functional code changes. retested just now with the live ADT version out there, and it also behaves the same Jul 12 22:22:13 ctate: i need to know how to repro it Jul 12 22:22:19 oh ah Jul 12 22:22:28 the voodoo piece is how the hell do you update Android Dependencies in the first place Jul 12 22:23:06 i have this case trapped right now where android app A => java lib B => java lib D where android app A is now still including java lib C, but not D, despite C not even being around any more Jul 12 22:23:24 ...trying to figure out what voodoo i need to do to correct that Jul 12 22:25:23 lol, what? restarting eclipse is that voodoo? Jul 12 22:26:47 one of my edit texts is being erased. I did some crap debugging my doing some log.d's to see what the value of .getText().toString() was throughout the ENTIRE onResume(). At the very very end of onResume(), I still have a value in my edit text. How can it possible be erased from onResume() if it clearly holds the value? Jul 12 22:26:57 *by not my Jul 12 22:27:25 must not be happening during onResume(), then? Jul 12 22:28:49 ctate, how is that possible though? my activity loads and there's no services or anything at all. I resume the activity and touch _nothing_ and it's erased Jul 12 22:29:28 is it actually erased, or is it drawing scrolled off the top or something? Jul 12 22:29:53 obviously edittexts work properly in general, otherwise basically everything would be broken.... Jul 12 22:29:55 ctate, well I can see the edit text box, and it's empty. it acts as normal after as well Jul 12 22:30:05 ctate: alright, bug report time... Jul 12 22:30:05 you know whats awesome with edittexts? Jul 12 22:30:10 when a designer decides they want a custom one Jul 12 22:30:14 and they give you one image for it Jul 12 22:30:20 so you lose pressed, focused, etc Jul 12 22:30:20 for all nine states Jul 12 22:30:22 or whatever Jul 12 22:30:28 =) Jul 12 22:30:42 that's eas Jul 12 22:30:43 y Jul 12 22:30:49 can not find issue :( Jul 12 22:30:50 you buck the bug back tot he designer Jul 12 22:31:00 its not a "bug" Jul 12 22:31:03 it's "as designed" Jul 12 22:31:04 Can somebody help me with tabs PLEASE' Jul 12 22:31:05 with a note that says "great, now we just need the other four assets" Jul 12 22:31:09 lawl Jul 12 22:31:14 I'm trying to learn fragments with actionbarsherlock. I have a question; in theory are fragments inside tabs or do fragments help switch tabs because ABS sample says it only help switch tabs Jul 12 22:31:15 i'd rather just say "fuck off i liek the stock one" Jul 12 22:31:22 fragments have nothing to do with abs Jul 12 22:31:28 those are two independent concepts Jul 12 22:31:48 fragments are like activities, only finer-grained. Jul 12 22:32:03 what you do wiht your UI is sort of orthogonal Jul 12 22:33:11 I trying to learn it but it seems more difficult than any other concept Jul 12 22:33:13 also when you say "tabs" i read "viewpager" Jul 12 22:33:21 im trying to put it in tabs Jul 12 22:33:21 and if that is not what you mean, then maybe you need to reconsider :) Jul 12 22:34:02 I wanted a 'on tab click open certain.class' Jul 12 22:34:20 then I was told to use fragments Jul 12 22:34:30 and fragments are a pain to learn Jul 12 22:34:37 not really Jul 12 22:34:41 but you're trying to learen like 8 things Jul 12 22:34:45 fragmetns, viewpager, actionbar Jul 12 22:34:46 etc Jul 12 22:34:54 read http://developer.android.com/guide/components/fragments.html Jul 12 22:38:35 rogue there are two approaches to tabs Jul 12 22:38:43 one is using a single activity and changing views within the activity Jul 12 22:38:51 no Jul 12 22:38:54 dont go down that path Jul 12 22:38:59 he's already doing it a much better way than that Jul 12 22:39:03 I want it Jul 12 22:39:07 the other is using multipleactivities, one per tab Jul 12 22:39:14 sure Jul 12 22:39:19 sounds good Jul 12 22:39:27 I like the second better Jul 12 22:39:52 Is there some way to load jni/ndk libs tailored to a particular user? Jul 12 22:39:54 I thought you could do that though? Jul 12 22:40:05 unless you use fragments Jul 12 22:41:12 ctate, I found the problem. I don't understand how to get around it though. The issue is that I issue a setOnItemSelectedListener on a spinner object, and the code in there always executes for some reason... Jul 12 22:43:25 say, user foo runs an app that wants to download a precompiled c lib & run it. ... possible? Jul 12 22:43:37 for the second approach, i can send you a link that describes it Jul 12 22:43:52 you can do it without fragments Jul 12 22:44:13 i'll pm you the link cause i don't want whore out the channel with links to my site Jul 12 22:44:15 ctate: http://code.google.com/p/android/issues/detail?id=34813 -- in case you see xavd ;) Jul 12 22:44:28 rootlicker-work: Any specific way to this, cause I thought you could only do that through fragments Jul 12 22:44:54 okay, can an app download & install an apk to replace itself? Jul 12 22:45:14 zpmorgan: sort of, it can ask the package installer to present the dialog to the user to do that Jul 12 22:45:22 but it itself cannot actually authorize and perform that upgrade Jul 12 22:45:26 does that have to be done through google play? Jul 12 22:45:30 no Jul 12 22:45:32 it is done through intents Jul 12 22:45:34 cool! Jul 12 22:45:45 this is how the Amazon App store does upgrades Jul 12 22:45:47 what if it just wants to replace one class out of many? Jul 12 22:45:55 zpmorgan: you have to install the full APK. Jul 12 22:46:10 okay, so there's no code sharing outside of the system libs Jul 12 22:46:18 using activities and tabs is setting yourself up for failure Jul 12 22:46:26 thanks jasta Jul 12 22:46:45 not to mention deprecated Jul 12 22:56:35 o/ jasta :) Jul 12 23:00:39 yeah i was mistaken the tutorial i wrote some time ago was using a single activity and changing the active view in the content area Jul 12 23:00:43 not multiple activities Jul 12 23:02:09 hiya. are we allowed to right a multiprocess application for android? or does everything need to run in a single process? Jul 12 23:02:46 you can but you shouldnt need to Jul 12 23:02:47 and application is one process, however there can be IPC Jul 12 23:02:59 by default everything in your app runs within a single process Jul 12 23:03:10 you can change that? Jul 12 23:03:13 yes Jul 12 23:03:16 huh Jul 12 23:03:23 i learned something today :P Jul 12 23:03:27 i was thinking of trying to port a multiprocess application to android... and wanted to understand what the complications would be. Jul 12 23:03:28 check out the docs for the android:process manifest attribute on various tags Jul 12 23:03:39 i think he means you can change that by adding the xml tag in manifest Jul 12 23:03:46 ya Jul 12 23:04:02 canurabus: total memory overhead is a big complicating factor Jul 12 23:04:08 i use to have my mapview's in separate processes but then removed that -- my multi-mapview activities do not interfer with each other Jul 12 23:04:11 general complexity of interprocess communicatino is another Jul 12 23:04:28 I need to figure out how to promote ToDoMapr better Jul 12 23:04:45 submitted it to so many sites to get reviewed but no review Jul 12 23:05:35 is this a valid way to do what I want w fragments, I have a main fragment activity, i have say 7 fragments attached to said activity, i have the main activity do the heavy processing of data to pass along to fragments. Upon my fragment being initialized I have it get the data from MyActivity mainActivity = (MyActivity) getActivity(); List data = mainActivity.myData; //hope this Jul 12 23:05:35 made sense Jul 12 23:14:03 heh, just got a galaxy note Jul 12 23:14:18 funky thing that is Jul 12 23:14:31 ahh Jul 12 23:15:40 * Jug6ernaut loves his noe Jul 12 23:15:41 note Jul 12 23:20:06 I thought the note was just the bastard child of the mating between a tablet and a phone Jul 12 23:22:13 hey, don't blame the kid when the parents loved each other Jul 12 23:22:35 interestingly,t he Note is apparently super popular in asia Jul 12 23:23:03 for people with relatively small hands it's apparently an awesome size for a mostly-tablet Jul 12 23:23:18 hahaha Jul 12 23:23:37 Jug6ernaut: do you have small hands? :3 Jul 12 23:24:55 and hey, aren't there more asians than the rest of us practically? so don't they have "regular" sized hands, and the rest of us have "relatively large" hands? :P Jul 12 23:25:32 Importance is not often measured purely by number alone Jul 12 23:27:48 DigitalKiwi: ha, fair enough :) Jul 12 23:28:11 Hmm... I no longer have ADT in my eclipse since I updated to Jono :( Jul 12 23:28:26 I did update everything to the newest version, but my Android support left me Jul 12 23:32:53 the Note is indeed extremely popular around this end of the world Jul 12 23:33:25 it does help that it's been out for quite a while longer than in the US Jul 12 23:34:38 ya'll get everything first :( Jul 12 23:35:02 DigitalKiwi: show me where anyone in Asia can buy a Nexus 7? Jul 12 23:35:29 point Jul 12 23:47:12 so I did get a reply from Sony on the smartwatch thing - the reply was "no" Jul 12 23:47:36 Leeds: you can always buy Nexus7 through Airport Black Market ;) Jul 12 23:48:50 er, where? Jul 12 23:49:25 Leeds: get a pilot flying on airliner to USA to bring you one Jul 12 23:49:53 sure, I could get one like that - but I'd like to avoid paying sales taxes to which I'm not liable Jul 12 23:52:39 Leeds: I think you'd avoid that... Crews can get through a lot, usually Jul 12 23:53:36 well, not a lot of hw in one go, but one piece per flight per person usually goes through Jul 12 23:55:03 "not liable" is an interesting claim :) Jul 12 23:56:51 there is no sales tax here, or duties on anything other than fuel, tobacco or strong booze - so for example if a retailer in the EU ships directly to me, I shouldn't be paying any tax Jul 12 23:57:31 the issue is not getting it into HK - the customs people here don't care - the issue is that if someone bought for me in the UK or US and shipped it on, I'd be paying the local taxes Jul 12 23:57:50 wahh? Jul 12 23:58:20 personally i don't see how it follows that just because you live in Place A means that when buying stuff in Place B you don't have to pay Place B's sales/transaction taxes Jul 12 23:58:55 but i'm emphatically not a lawyer, especially not an international tax lawyer Jul 12 23:59:01 entitlement i think is a word that fits Jul 12 23:59:13 taxes baaaad Jul 12 23:59:27 don't call them "taxes" Jul 12 23:59:33 call them "the price of admission to civilization" Jul 12 23:59:35 :D Jul 12 23:59:43 hahaha Jul 12 23:59:45 ctate: for the EU, at least, it's very clear - stuff which is shipped from the EU to somewhere else does not attract sales tax Jul 13 00:00:18 for "somewhere else" meaning outside the EU/EC? Jul 13 00:00:20 yes Jul 13 00:00:24 wacky Jul 13 00:00:32 i'm sure the germans love that! Jul 13 00:00:42 and the chinese not so much Jul 13 00:01:11 even online services do it - I used to pay an ex-VAT price for Safari (back when I paid for Safari) because I was buying it as an exported service Jul 13 00:01:18 is the same thing taxed when shipped *within* the eurozone? Jul 13 00:01:32 first, eurozone!=EU/EC/etc Jul 13 00:01:37 yes yes i know Jul 13 00:01:51 i said eurozone to make it the most limited & theoretically "open" scenario Jul 13 00:03:42 something sold from the UK to France - say - needs to have UK VAT paid on it Jul 13 00:04:02 cra-zee Jul 13 00:04:14 the same thing sold from the UK to Hong Kong - say - doesn't need to have any VAT paid at all Jul 13 00:04:24 i guess if the goal is to attract money from outside it sort of makes sense Jul 13 00:04:42 OTOH it privileges "strangers" over people who are theoretically more closely tied to you Jul 13 00:05:17 it means it can actually be quite efficient to buy from EU branches of Amazon - at least for things which do attract VAT, like DVDs and music, not books - because the tax 'discount' often covers much of the extra shipping cost Jul 13 00:06:13 I think the principle more is to avoid double taxation - since there's no tax due at the border when something is shipped from EU-A to EU-B, if EU-A tax is paid you know it's only been taxed once Jul 13 00:06:33 What could cause MediaPlayer to give unregisterHDMINotification when pressing back followed by errors status:UNPLUG and onEvent:false? Jul 13 00:06:40 but if you ship from EU-A to US, EU-A charges on the way out and US charges on the way in... not really fair Jul 13 00:07:11 anyway, to sum up... Jul 13 00:07:28 ctate: can you get onto someone to get global shipping set up for the N7, by next week if possible? thanks! Jul 13 00:07:34 hee hee Jul 13 00:07:44 :) Jul 13 00:08:56 oh, one other wrinkle - and this isn't just EU, but it is common there - if you buy retail, in a shop, then personally export (to outside the EU) the goods within a couple of months, you can often claim a refund on some of the taxes paid Jul 13 00:09:01 The EU->EU thing is nice cus we avoid import taxes Jul 13 00:09:35 after my N1 died for the second time, I bought a Desire in a shop in Paris during a brief stop-over, then claimed most of the tax back on the way out of the country 3 hours later Jul 13 00:09:50 SimonVT: right, just pay at point of origin Jul 13 00:10:52 If I buy for more than $15 from e.g. US I first have to pay 25% tax, import tax, and a ~$35 handling fee Jul 13 00:11:25 none of that here... there's simply no sales or import tax (except for the few duties I mentioned above) Jul 13 00:12:05 Denmark got lots of taxes Jul 13 00:12:18 incidentally, it wouldn't matter if I was happy to pay the taxes, since play still wouldn't take my money Jul 13 00:13:20 "This seller does not accept payments from your location." Jul 13 00:13:36 ;/ Jul 13 00:14:03 i kind of which people would cut down on the "not avilable outside the us!" griping Jul 13 00:14:15 most of the time it's because of *their* country's laws Jul 13 00:14:25 siiiiiiiiiigh Jul 13 00:14:55 google should change the laws then Jul 13 00:14:56 :P Jul 13 00:15:22 ctate: there are different levels - and even if that *is* true, it's a pretty weak argument when competitors manage to sell globally Jul 13 00:15:48 oh, i know it's not the end-all Jul 13 00:16:00 but, y'know, it comes up re music a ton, right? Jul 13 00:16:07 and people tend to forget that even Amazon can't sell globally Jul 13 00:16:19 even htough they have been working on that a LOT longer Jul 13 00:16:20 What do the green/red/yellow cirlces mean in hierarchy viwer? Jul 13 00:16:36 also, I'd be very interested to know what law anyone would imagine would stop Google taking money from a UK credit card to ship a tablet to the UK registered address of that card from someone who happens to be in Hong Kong Jul 13 00:16:43 hwrd|work: measure/layout/draw times Jul 13 00:16:47 respectively Jul 13 00:16:56 see, there's "not selling in a country" and there"s "actively blocking anyone not in a small list of countries" from buying Jul 13 00:16:58 and as far as apps, people do not seem to want to understand that apple's and google's situations are *very* different Jul 13 00:17:14 ctate: I'm talking about hardware, *not* media where it's licensed regionally Jul 13 00:17:18 right right Jul 13 00:17:26 we know that media licensing is a bitch Jul 13 00:17:46 we also know that - one way or another - Apple is much better at it than Google, possibly just through experience Jul 13 00:17:47 JakeWharton: thanks. Jul 13 00:17:47 i know even less about hte hw end of things than i do about media & apps :) Jul 13 00:18:03 well, apple has been a licensed retailer in all of those countries for decades Jul 13 00:18:08 google not so much Jul 13 00:18:11 and that matters too Jul 13 00:18:21 Apple *just last month* rolled out media sales in HK and a bunch of other smaller markets Jul 13 00:18:23 * ctate shrugs. Jul 13 00:19:05 i have no idea what apple's negotiations with media content owners are like Jul 13 00:19:16 ctate: there's no straight-faced way to deny that Google is unimpressive when it comes to global sales and services Jul 13 00:19:51 and that the official company line is pretty unapologetic about it Jul 13 00:20:01 ctate: I challenge you Jul 13 00:20:08 ctate: To a duel Jul 13 00:20:18 ctate: First one to fix my Eclipse install wins! Jul 13 00:20:55 The only way to win is not to play. Jul 13 00:20:55 n20: Find the uninstall button. Fixed! Jul 13 00:21:12 Ehmm.... is $ a valid variable name in Java? Jul 13 00:21:17 ctate: the app situation is relatively good now... but back when the market was genuinely restricted, we had Android developer advocates turn up to an event in Hong Kong and give a presentation on how to sell on the market - they didn't appear to realise they were talking to a room full of developers who *couldn't sell on the market* Jul 13 00:21:25 http://stackoverflow.com/questions/11462520/show-edittext-b-when-edittext-a-has-letters Jul 13 00:21:31 n20: possibly yes Jul 13 00:21:42 Leeds: siiiiigh Jul 13 00:21:53 Whoa, I didn't know. ctate Jul 13 00:22:00 SimonVT: But I want it to be installed :( Jul 13 00:22:18 ctate: it was pretty embarrassing, and pretty par for the course... yeah, nothing to do with you, just typical "shut up and take my money" moaning Jul 13 00:22:22 I think the latest Eclipse update broke my precious Android SDK, or the other way around. Jul 13 00:22:57 Want it to be installed? User error ;d Jul 13 00:23:38 https://groups.google.com/forum/?fromgroups#!topic/android-developers/w-JFz2PBAgQ « same issue Jul 13 00:23:42 * n20 googles the world. Jul 13 00:24:16 Also, Google Now is a bit hard to utilize with a somewhat Swedish way to pronounce everything Jul 13 00:25:21 ctate: You know anything about when: update Hello world! << might start working? Jul 13 00:25:24 google google, the internet explodes Jul 13 00:25:26 * ctate . o O ( #tangent http://satwcomic.com/ ) Jul 13 00:25:44 n20: uh, what? 'update' what? Jul 13 00:25:52 Jug6ernaut: we must go deeper. Jul 13 00:26:02 anyone get a nexus 7 tracking number yet? Jul 13 00:26:09 ctate haha Jul 13 00:26:25 ctate: Try telling Google Now the following: update twitter Hello world Jul 13 00:26:37 It'll state that the feature isn't available right now. :) Jul 13 00:26:56 i don't know from Google Now Jul 13 00:27:56 I am getting HDMIStatusObserver shouting status: UNPLUG through MediaPlayer in LogCat when I press back (I have overridden onBackPressed) Jul 13 00:28:37 unRegisterHDMINotification before that Jul 13 00:40:42 oh good grief Jul 13 00:40:50 stackoverflow made it possible to edit peoples' posts/responses? Jul 13 00:40:54 wikipedia-style? Jul 13 00:41:10 Hasn't it been like that for a long time? Jul 13 00:41:25 ctate: CHANGE ALL THE ANSWERS! :D Jul 13 00:41:42 i dunno; i just learned about it Jul 13 00:41:45 it is the worst idea ever Jul 13 00:41:59 there are some really bad ideas out there Jul 13 00:42:36 this one is pretty fscking bad Jul 13 01:01:30 rootlicker: Jul 13 01:04:53 Does anyone know how can I remove the clock from the notification bar? Jul 13 01:05:04 Shall I add something to my manifest Jul 13 01:05:04 Custom ROMs do it Jul 13 01:05:13 or are you trying to make your app full screen? Jul 13 01:05:15 cactux: launches at times offer that feature too Jul 13 01:06:06 drpenguin: do you know the changes that I need to add to my app in order to do that? Jul 13 01:06:06 with 3 d's Jul 13 01:06:14 do what? Jul 13 01:06:21 get rid of the clock or go full screen? Jul 13 01:06:31 cactux: uhh.. huh. you cant do that Jul 13 01:06:36 I'm not sure you can get rid of the clock, but you can have a full screen app that doesn't have a titlebar Jul 13 01:06:55 drpenguin: you ever been to sdx? Jul 13 01:07:00 sdx? Jul 13 01:07:20 sdx developers Jul 13 01:07:30 yeah.. what is that Jul 13 01:07:33 SuDoku eXtreme Jul 13 01:07:39 ‬never heard of that Jul 13 01:07:42 i guess you havent forget Jul 13 01:07:49 its a site like xda Jul 13 01:08:59 drpenguin: but if I go full screen I will loose the other cotrols Jul 13 01:09:21 cactux: too bad? you cant remove the clock from the bar in your app Jul 13 01:10:44 drpenguin: If I go to full screen I can but I will loose the navigation ctrls Jul 13 01:10:53 like I said, too bad Jul 13 01:11:25 You may need to approach the problem in a different way Jul 13 01:12:11 drpenguin: There shall be a way to hide only the clock, the question is how :-) Jul 13 01:15:25 Can you do numbers in your app name? Jul 13 01:15:29 Like for the package name Jul 13 01:15:35 com.website.whatever56567 Jul 13 01:15:37 type thing Jul 13 01:15:38 cactux you cant hide clock in status bar unless you go into full screen mode. I messed up with ROMs before and I'm telling you, that you cant'... Jul 13 01:15:52 i like jellydonuts.... Jul 13 01:16:15 i hate bunnies Jul 13 01:17:58 cactux: we don't provide an API to hide the clock Jul 13 01:18:08 the clock only hides when you are on the lock screen and it shows its own clock Jul 13 01:18:10 Rogue: Thanks a lot for your comments :-). If I can not hide it can I disable the access to system configuration trough the clock Jul 13 01:18:35 true Jul 13 01:18:54 that would require root access though Jul 13 01:19:04 I am god in this device Jul 13 01:19:27 clock isnt a standard thing a normal app uses, unless to get time. so you would need root access Jul 13 01:19:54 I have the sources Jul 13 01:20:04 the ICS ones Jul 13 01:20:14 what shall I change? Jul 13 01:20:16 and Jul 13 01:20:27 you know what root access is? Jul 13 01:21:27 yes I know what root access is. I can add a service to init.rc to setup whatever has to be done by root Jul 13 01:21:53 root = privilege mode = unrestricted acces Jul 13 01:22:19 yeah but your app needs to ask for it Jul 13 01:22:32 that is another story I do not how to do that Jul 13 01:22:36 then you need to use those permissions to edit restricted areas Jul 13 01:22:39 google it Jul 13 01:23:00 permission to disable the clock? Jul 13 01:25:03 This is all a bit over my head, but I'm still not understanding how the clock can be removed unless you're customizing your own ROM Jul 13 01:25:38 Permissions or not it's a system application Jul 13 01:25:54 what about if I remove the apk? Jul 13 01:25:58 I can't imagine shutting it down through some hackery will result in anything less than tears Jul 13 01:26:07 is it an apk associated to it? Jul 13 01:26:08 cactux: that won't work Jul 13 01:26:16 you would lose all notifications and the navigation bar Jul 13 01:26:30 the only way to remove the clock is to modify the source code of the SystemUI package Jul 13 01:26:32 recompile it Jul 13 01:26:35 and install it on your device Jul 13 01:26:53 romainguy: what changes need to be made in the SystemUI? Jul 13 01:27:03 removing the clock Jul 13 01:27:16 I don't know SystemUI's source code by heart Jul 13 01:27:22 what are you trying to achieve exactly? Jul 13 01:27:59 romainguy: You would change the clock text color to transparent when using app Jul 13 01:28:15 Rogue: I wouldn't do anything Jul 13 01:28:20 I have my own luncher, but the back door to such luncher is the freaking clock . Because it allow the user to access system configuration Jul 13 01:28:39 im not fully sure of the process because I think youre supposed to reboot to see change Jul 13 01:28:55 shouldnt have to reboot if you change the launcher Jul 13 01:29:07 "back door"? why not just, y'know, run it from the UI? Jul 13 01:29:08 cactux: it's not the clock Jul 13 01:29:27 the clock itself doesn't make the notifications panel appear Jul 13 01:29:40 (and on phones it works completely differently) Jul 13 01:29:56 and any OEM skin could bring up the notifications panel/settings shortcut in a completely different way Jul 13 01:30:07 oh, you're trying to lock the user out of getting to anything other than your app? Jul 13 01:30:47 If I remember well, once you click on the clock at in the status bar, you can access system configuration. That is what I try to avoid Jul 13 01:30:51 (not to mention that you can simply boot in safe mode and bypass your launcher entirely) Jul 13 01:30:52 ctate: correc Jul 13 01:31:47 so yeah, you have a fair bit of system configuration to do Jul 13 01:31:59 build the product so that your app is the default home app Jul 13 01:32:08 ctate: is all done already Jul 13 01:32:11 modify the systemUI code so that it doesn't allow access to settings Jul 13 01:32:18 . Jul 13 01:32:20 block adb Jul 13 01:32:22 anyone would like to help me build from source and adding commits? Jul 13 01:32:24 block Market Jul 13 01:32:30 etc Jul 13 01:32:38 s/block Market/remove Market/ Jul 13 01:32:41 ctate: you wont enable the adb in init.rc Jul 13 01:32:50 ctate: and no adb Jul 13 01:33:05 ctate: believe me is done Jul 13 01:33:09 i mean, if your'e buidling your own then of course it's probably not legal for you to put the google apps or hte play store on it anyway, fyi Jul 13 01:33:42 [not legal to distribute your build, that is] Jul 13 01:34:18 ctate: my application targets other markets Jul 13 01:34:38 are you building an app or a device? Jul 13 01:34:48 2 Jul 13 01:34:50 you aren't talking about an app, you're talking about a custom product build Jul 13 01:35:00 ctate: that is a whole Jul 13 01:35:02 *part* of which is a replacement home app Jul 13 01:35:13 ctate: bingo Jul 13 01:35:31 common guys need some light Jul 13 01:35:41 I told you Jul 13 01:35:49 you need to modify the SystemUI app Jul 13 01:35:53 this is pretty out of scope for this channel; it's not app development; it's product development Jul 13 01:35:57 look for it in the source tree Jul 13 01:36:07 and what romainguy said -- we told you. you have to rewrite the systemUI stuff to do what you want. Jul 13 01:36:36 frameworks/base/packages/SystemUI and go nuts Jul 13 01:37:18 ctate: I thought that I could find a nut guy around ;-) Jul 13 01:38:29 simple question by default the clock in the android emulator is not enable. Is it possible to enable it and how? Jul 13 01:38:48 what clock? Jul 13 01:38:55 the system clock Jul 13 01:39:02 in the status bar Jul 13 01:39:19 oO Jul 13 01:39:20 is this in the SDK emulator, or in your own build, or both, or...? Jul 13 01:39:23 you're probably running the emulator in the wrong configuration Jul 13 01:39:29 because afaik it works just fine Jul 13 01:39:31 ctate: in the SDK emulator Jul 13 01:39:35 What does that even mean Jul 13 01:39:36 either you are running a phone config and the clock is in the status bar at the top Jul 13 01:39:47 or you are in 10" tablet config and the clock is at the bottom in the nav bar Jul 13 01:40:07 (and once again, the clock itself is just a clock, it's not responsible for showing notifications, settings, etc.) Jul 13 01:40:20 I am using api level 15 android 4.0.3 Jul 13 01:41:47 ramainguy: I may be wrong but someone told me that is possible to access the settings on once you go launch the clock in the satus bar. I may be all wrong Jul 13 01:44:57 I just double check and the clock in the status bar is only present in the tablet version, but not in the phone version Jul 13 01:45:51 It's not really the clock you click, it's the area which, among other things, holds the clock Jul 13 01:46:16 On tablets, that is Jul 13 01:46:22 SimonVT: correct Jul 13 01:46:38 On phones you don't click, you pull down Jul 13 01:46:42 that is not present in the phones, due to the sapace limitation Jul 13 01:46:50 I just made a new 4.0.3 emulator and I can assure you there's a clock there Jul 13 01:49:21 ryanm: did you used the default parameters? Jul 13 01:50:25 ryanm: Target Andoid 4.0.3 - Api level 15, builn-in Default(WVGA800) Jul 13 01:50:40 I under osx Jul 13 01:51:44 my sdk tool rev 20, ad the android sdk platform-tools ver 12 Jul 13 02:58:34 hi all Jul 13 02:58:40 Im having a bit of a problem with tabs Jul 13 02:59:01 The content of my second tab, only one of the Linear Layouts is visible **** ENDING LOGGING AT Fri Jul 13 02:59:58 2012