**** BEGIN LOGGING AT Sat Nov 17 03:00:00 2012 Nov 17 03:07:21 why does webviews make me paranoid Nov 17 03:07:23 :S Nov 17 03:07:24 :P Nov 17 03:08:05 running low on my java beans :( but i dont think i can take the 2 hr train trip to get me some new beans right now Nov 17 03:08:13 is it possible to have a proj that depends on a library that depends on another library? Nov 17 03:08:22 proj -> lib1 -> lib2 Nov 17 03:09:10 yes Nov 17 03:10:25 wait, that's not what i meant. i have that setup working, but am having trouble when the first project also requires the second library Nov 17 03:10:39 why Nov 17 03:11:41 none of the classes are being recognized Nov 17 03:12:08 do i have to do anything fancy besides declaring the lib projects in project.properties? Nov 17 03:13:12 Well that worked brilliantly! Nov 17 03:16:43 1. How to Build Nov 17 03:16:43 - get Toolchain Nov 17 03:16:43 download and install arm-eabi-4.4.3 toolchain for ARM EABI. Nov 17 03:17:01 Anyone can tell me how to do that on Ubuntu ? Nov 17 03:18:30 nevermind, i'm a fool Nov 17 03:35:57 heyo guys, i have a couple of questions! Nov 17 03:36:42 guess first one is. is there any way to _not_ use local.properties and use some environment var for the android SDK dir? it's kind of annoying to have to re-create a file instead of just setting an env var Nov 17 03:36:57 why is my avd / sdk manager in adt-bundle-windows/sdk/tools/lib ? Nov 17 03:37:27 i had the sdk manager and everything installed on my laptop just fine, but i'm installing on another pc and failing at it Nov 17 03:40:08 this is the right site, right? http://developer.android.com/sdk/index.html Nov 17 03:51:52 art thou mad? Nov 17 04:05:02 guys another question since i guess the first one is too difficult Nov 17 04:05:58 I'm reading assets from AssetManager,open(), but it's pretty slow... I was using NativeActivity for reading files inside the asset manager and it was blazing fast in comparison, any idea why? Nov 17 04:14:32 Hey Guys Nov 17 04:15:22 oi oi Nov 17 04:16:03 Oy vey is mir Nov 17 04:16:21 Is using html/css for front end a good idea for android Nov 17 04:16:36 I was thinking for using a html5/css login screen Nov 17 04:16:38 depends on what you are doing... but probably not Nov 17 04:16:58 you can style android controls as easy if not easier than html Nov 17 04:18:21 yeah that's true but I was exploring the possibility of moving pages to html5/css for all the three platforms (android/ios/windows 8) Nov 17 04:18:50 so the idea is you design the pages once and it looks and works same on all the three Nov 17 04:19:26 yay engineering stuff to the lowest common denominator Nov 17 04:19:43 also, honestly most of the time, platforms dont look right if they are clones of another Nov 17 04:20:18 I have a Activity (invoked from a listView click ) were I'm setting the content view to a linearlayout which has 2 statements.. but when testing none of the views are displayed Nov 17 04:20:25 anyone experiance this Nov 17 04:20:56 layout http://pastebin.com/7HMJEn0n Nov 17 04:23:20 so if I were to go with it, is JavaScriptInterface is the only mode of communication between Java and webview right? Nov 17 04:23:38 yes Nov 17 04:23:48 and that has lots of bugs in 2.2/2.3 Nov 17 04:25:16 so Phonegap.com seems to doing that Nov 17 04:25:33 but I guess its generative native code for each platform Nov 17 04:26:19 but I've never like auto generated code Nov 17 04:29:45 what is a better practice? to instantiate in constructor or just instantiate in the class? Nov 17 04:30:30 what? Nov 17 04:32:11 why is there a .zip adt thing? where'd the nice wizard installer go? Nov 17 04:32:44 ah, i wanted the "use existing ide" or something. adt tools only works with clipse? Nov 17 05:11:15 QUESTION how can i get the GLSurfaceView thread to figure out when the activity has suspended? I just can't figure out how to run code on it from outside the render callback Nov 17 05:15:11 Well... I'm baffled... Can't figure out what terms I'm looking for to add my app to the auto-list of sms apps Nov 17 05:18:40 ahh, android:scheme and android:mimeType Nov 17 05:22:10 can i run a check on phone api and use diff code class depending on as said api lvl ? Nov 17 05:25:10 not sure that sounds like something you'd wanna do. Simplify the question and I'll see if I can give you a better answer XD Nov 17 05:27:06 basicly my code atm has api stuff that works for 15 to 17.. but i will lose pepole that way i was thinking if there is a way to run a check and change around elements depending on api lv on phone/tablets better?. Nov 17 05:29:00 Komak57 need me to simplify even more or good? Nov 17 05:29:28 So, I have a master/detail layout and a normal layout where detail pops up after clicking the master. One is obviously for tablets. On some screens, the layout can change depending on rotation. When I rotate, my detail fragment is receiving onCreate onViewCreated events even though it's no longer displayed, how can I tell it to forget about this fragment? Nov 17 05:29:59 I've tried setRetainInstance(false), and that does nothing. I've tried in my main activity using fragment manager to remove that fragment onDestroy() but that also didn't do it... Nov 17 05:33:04 Komak57 guess question got way to crazy Nov 17 05:33:06 :P Nov 17 05:35:37 No one even looked at mine, you should feel special :( Nov 17 05:35:51 It's such a bitch. I can't figure it out. Nov 17 05:35:58 I just wish the fragment manager would go away :( Nov 17 05:37:36 if u read about fragments at the dev site u will find the answer at like 10-15 rows down Nov 17 05:37:58 I've really been reading all of that stuff. Nov 17 05:38:06 But it doesn't cover this particular situation. Nov 17 05:38:24 yes it does Nov 17 05:38:54 also if u google fragment + destroy when not in use or done. u get like 100000 tuts etc Nov 17 05:38:56 ;) Nov 17 05:39:12 The problem isn't destroying fragments or any of that. Nov 17 05:39:30 've tried in my main activity using fragment manager to remove that fragment onDestroy() but that also didn't do it... Nov 17 05:40:00 It's that on rotation, my layout changes, I don't put the fragment back or anything, but the fragment manager reinstantiates it. And there doesn't seem to be a place I can call code from that's early enough to tell it to die. Nov 17 05:42:34 best thing would be to show ur code Nov 17 05:42:43 that way easy to see what ur trying to do Nov 17 05:42:46 just a hint. Nov 17 05:43:30 I suppose so. But it's sort of a tremendous amount of code, and to understand it all would take a long time lol. I think the simple description is adequate :\ Nov 17 05:43:45 Picture would probably be better actually. Nov 17 06:09:13 HERE! Nov 17 06:09:15 http://i.imgur.com/14qRN.png Nov 17 06:09:21 I think that should help explain. Nov 17 06:09:37 THe red fragment should be gone, but instead it's being re-instantiated for no apparent reason after rotation. Nov 17 06:09:41 I need to know how to prevent that. Nov 17 06:10:15 I've tried telling it to not retain instance, it's added with disallowAddToBackstack, I tried removing it in the activity's onDestroy()... Nov 17 06:10:34 Can anybody help? Nov 17 06:24:23 hey all. I want to do some http stuffs in android, is there a good http client lib that works in api-level 10+ and does caching/cookie for you? Nov 17 06:28:53 HttpURLConnection it is Nov 17 07:17:00 Is anybody willing to trade android development time for web development? I can build awesome Drupal sites but I don't know anything about Android. I have a fairly simple app that I want to have built and released for Android though. Nov 17 07:44:02 Anyone know ways to make builds faster, everytime I save I have to wait 3000 ms or so too long Nov 17 07:44:45 don't build every save? Nov 17 07:45:02 Oh yeah, well even still. Nov 17 07:47:21 i recall some forum post that had a hack to speed up builds, but i don't have a link Nov 17 07:47:29 i think i found it Nov 17 07:47:48 ill just try the first method and use the downtime to stretch my eyes ;p Nov 17 07:48:01 that's what i do Nov 17 07:48:45 i just decided to use holoeverywhere but i also learned some new ways of doing stuff so I am going to spend the next few hours migrating code Nov 17 07:51:01 if I ever have offspring I Nov 17 07:51:26 know the perfect way to discipline them: refactoring code Nov 17 07:53:43 lasserix, :) Nov 17 07:57:42 I'm having a hard time with httpurlconnection. Nov 17 07:57:43 https://gist.github.com/4094121 Nov 17 07:58:31 I can get the url directly, but not with the code in the gist Nov 17 08:06:09 cconstantine, you need android.permission.INTERNET Nov 17 08:06:57 your code looks fine Nov 17 08:16:45 mrenouf, ah, stupid me Nov 17 08:16:50 mrenouf, thanks Nov 17 08:17:03 mrenouf, any idea why mapbox doesn't follow the standard that osm uses for tile layout? ;) Nov 17 08:17:28 dont know much about either service, sorry Nov 17 08:18:05 :) Nov 17 08:18:12 yeah... no one really does Nov 17 08:18:20 Anyone around that knows fragments well? http://i.imgur.com/14qRN.png After rotation the red fragment is still instantiated, how do I get it to die on rotation and not create itself + views? Nov 17 08:22:07 aoclown that is how fragments are supposed to behave Nov 17 08:22:22 I know :D Nov 17 08:22:35 Now I just need to find a way for them not to behave like that and I'm set. Nov 17 08:22:35 lol. Nov 17 08:22:37 i'm not sure the best way to do it, but you could check orientation, if landscape clear the backstack and add the green one Nov 17 08:22:51 That fragment's not on the backstack. Nov 17 08:23:06 well anyways get a reference to it and then remove it Nov 17 08:23:30 I did that in my activity's onDestroy, but somehow after rotation it still fired right back up. Nov 17 08:24:24 try mFragment = (SomeFragment) getSupportFragmentManager().findFragmentByTag("red_fragment"); and see if it is null in your oncreate Nov 17 08:24:36 K. Nov 17 08:24:44 Well, let me describe the actual core problem. Nov 17 08:24:53 And I know there's a dance around this... But humor me. Nov 17 08:25:02 My onViewCreated in the red Fragment is getting called. Nov 17 08:25:19 And since it has no real view because the layout has completely changed... Nov 17 08:25:21 Can I use Wifi-direct while remaining connected to regular wifi? Nov 17 08:25:23 It null exceptions. Nov 17 08:25:50 So, rather than make ugly checks to see if I have a view, I thought it would be nicer to just stop it from existing altogether. Nov 17 08:29:58 4.2 supports nested Fragments !??! Nov 17 08:30:03 o_O Nov 17 08:30:35 and the support library Nov 17 08:30:40 Wahoooo! Nov 17 08:30:51 Hooray. Nov 17 08:31:04 good to know! (I noticed there was a new version, but didn't see what was new in it yet) Nov 17 08:31:24 I'm so close to telling this thing to die in a fire and having an ugly ass single layout instead of master/detail for large devices in landscape mode. Nov 17 08:37:25 Now I know why we haven't seen JakeWharton on much, he's probably been busy porting ABS to 4.2 Nov 17 08:38:24 and nested fragment support could prove tricky Nov 17 08:44:27 mrenouf: yeah, hopefully they play nice with the menus / etc Nov 17 08:45:07 So it sounds like they added a FragmentManager to each Fragment Nov 17 08:45:19 oh fiddle... I want to block execution in a variety of threads until some code has executed, then never block again. what's the construct I want? Nov 17 08:46:09 ctl Nov 17 08:46:14 I like to use Lock and Condition Nov 17 08:46:14 countdown latch Nov 17 08:46:34 or that. Nov 17 08:46:39 :) Nov 17 08:46:52 stupid "no network in main thread"... Nov 17 08:47:15 thats done more for app quality than anything else Nov 17 08:47:27 they should also have a "no disk in main thread" check Nov 17 08:47:29 oh I know, it's just more work Nov 17 08:47:36 mrenouf, def. Nov 17 08:47:56 And a lint check to suggest lowering thread priority Nov 17 08:48:05 yup Nov 17 08:48:05 since almost nobody does that Nov 17 08:48:28 although you could just set 'main' higher Nov 17 08:48:52 also, the only real reason you want multiple threads is for network stuff... if you're cpu/disk bound more threads mostly just hurt Nov 17 08:49:18 even network related its not a great idea Nov 17 08:49:43 single worker thread from queue is a very common pattern Nov 17 08:49:58 glad to see it's in AsyncTask now Nov 17 08:50:07 i didnt realize that square's CTO used to work at google on android framework Nov 17 08:50:22 yeah, crazybob! Nov 17 08:50:29 bob lee Nov 17 08:50:34 yeah Nov 17 08:50:52 and jesse wilson Nov 17 08:51:09 those are also the same guys behind Guice Nov 17 08:51:15 yeah Nov 17 08:51:31 he did a presentation i found here http://www.infoq.com/presentations/Square Nov 17 08:51:35 and some of what became Guava, but started as google collections Nov 17 08:51:58 oh, is the one on dagger out yet? Nov 17 08:52:14 They gave a talk on it, said a video would be forthcoming Nov 17 08:52:31 oh, 11/15, that must be it Nov 17 08:52:51 not sure Nov 17 08:53:26 "...and dependency injection as used by Square.com." Nov 17 08:53:31 thats referring to Dagger Nov 17 08:53:45 they made a new DI system that uses purely source code generation Nov 17 08:54:02 super fast and actually debuggable Nov 17 08:58:01 Anyone used holo everywhere in here? Nov 17 08:58:45 i use gingerbread everywhere Nov 17 08:59:03 heh Nov 17 08:59:47 oh i wasn't refering a meme, i meant the ics gui library Nov 17 09:00:55 I am just curious cause on the website it says cast your views to com. instead of normal, which is fine. but i am curious about adapters and views that are returned by say a fragment's oncreateview Nov 17 09:13:36 "shoppers flood stores as Twinkies vanish" … i bet they will last a long long time in their original wrappers; maybe even outlive the buyer Nov 17 09:30:03 good morning Nov 17 09:30:19 wow that was the fastest code migration ever Nov 17 09:32:38 what did i do now, lasserix Nov 17 09:33:11 oh nothing i just decided to use holoeverywhere and clean up / organize a bunch of code, thought it'd take all night Nov 17 09:33:15 only took an hour Nov 17 09:33:25 Heya there, I'm just researching porting some obj-c code to android, which makes heavy use of "blocks" (lambdas)… I'd probably want to use the NDK for this, but can't find any clear documentation on whether C++11 (and hence C++ lambdas) are supported by the tool chain… What compilers are you able to use, and can you use lambdas? Nov 17 09:33:31 good job Nov 17 09:40:38 oh cool, actually, just found docs saying that clang 3.1 has been added as a compiler supported in version 8 of the ndk Nov 17 09:40:44 and that supports everything I need Nov 17 09:40:46 so :) Nov 17 09:58:31 Hi all, does anyone know anything about getting CDC serial device to enumerate on an Android device using OTG? Currently, I'm getting "device not supported" in dmesg Nov 17 10:00:33 Common sense says I probably have to load some or other kernel module, but I'm not sure where to start Nov 17 10:38:56 so for a typical phone, < 3.0, a 1cell x 4 cell app widget will always take up approximatly a little less than quarter of the screen in height and the full width of the screen? Nov 17 10:46:26 Anyone? Nov 17 10:50:36 how can i detect by code that it's an android 4.0 cellphone or a 4.0 tablet? Nov 17 10:53:35 some tablets have cellphone functionality. it's a greay area Nov 17 10:53:43 yeah Nov 17 10:53:49 grey Nov 17 11:03:50 Sculptor: i found some code that works - i have no idea if this is also ok for a galaxy note 2 Nov 17 11:05:06 once you define what a tablet it, guess it's not hard to write code Nov 17 11:05:40 i may let the user override this via config Nov 17 11:05:54 can >3.0 phones have landscape orientated homescreens? Nov 17 11:06:06 monsti: that would be best Nov 17 11:06:19 have a general contrainst and let the user ovveride at their convience Nov 17 11:06:45 the might be some really blind guys out who prefere a phone layout with xxl fonts Nov 17 11:07:25 lasserix, with cooked roms you never know Nov 17 11:09:03 Sculptor but stock that is the case? cooked roms I dont care so much, since it is a preview with a rearview mirror disclaimer, but I just want to make sure the app widget preview i'm rolling in the widget config activity approximates the size it'll actually show Nov 17 11:09:26 hence I'm using layout weights, to size it for height since it will always be Xx4 Nov 17 11:15:34 lasserix, judging by this app, they can https://play.google.com/store/apps/details?id=com.coinsoft.android.orientcontrol Nov 17 11:17:07 ahh ill just deal, spending enough time on this anyways ;p Nov 17 11:59:23 anyone know how to turn off dimming behind a dialogfragment in code? Nov 17 12:53:30 I think I've found a mistake in the "Building Your First App" training docs --> http://developer.android.com/training/basics/firstapp/starting-activity.html Nov 17 12:54:00 Hi. Nov 17 12:54:10 What does mean those line: xmlns:tools="http://schemas.android.com/tools" Nov 17 12:54:46 Can't find a link to report errors and such. Anybody know to whom I can report that? P.S error is simple, instead of referring to activity_main.xml the docs say open main.xml Nov 17 12:56:13 bluesm, https://groups.google.com/forum/?fromgroups=#!topic/android-developers/2FtsLQ4wESY Nov 17 12:57:11 http://b.android.com Nov 17 12:58:31 b.? Nov 17 12:58:37 SimonVT, Was that for me? Nov 17 12:58:48 yes Nov 17 12:59:00 SimonVT, Ok, thanks :) Nov 17 13:01:29 rohit: I don't get it, what is the purpose of linking to resource that doesn't exits. Nov 17 13:02:11 hey guys, I have a problem. I have to save an xml to a file in the phone's storage, I made an activity that only creates and saves the xml and it works. However when I copy the same code to the app that's supposed to use this piece of code, it doesn't work. No error, no crash. And for whatever reason it won't stop at breakpoints either Nov 17 13:02:45 bluesm, I'm guessing it creates a namespace for the XML. I don't know what that means, check XML docs. You don't need to link to an *actual* resource since it's only for namespacing purposes. Kind of like the reverse-domain-name package convention Nov 17 13:03:08 bluesm, Sorry I can't really say more then that, I'm just getting started with Android dev myself :) Nov 17 13:03:21 rohit: Ok. Thanks :] Nov 17 13:05:02 do you like java?? Nov 17 13:09:46 anybody got an idea for my problem? Nov 17 13:11:30 ChibiSUN-L, I think you'll need to provide some code so that somebody can try and figure out what's going wrong. :) Might I suggest using https://gist.github.com Nov 17 13:14:26 thanks rohit, here's the serializer with the irrelevant stuff removed https://gist.github.com/4095888 Nov 17 13:16:07 ChibiSUN-L, I won't be able to help. I'm just getting started with android dev! :) But I'm sure somebody else might be able to help given the code Nov 17 13:16:56 I see, thanks anyway, I haven't worked much either, it's the first time I'm saving files. Nov 17 13:16:57 what's the problem btw? Nov 17 13:17:15 the file doesn't appear on the storage Nov 17 13:17:35 I don't get any errors either Nov 17 13:17:35 there are different places for storage Nov 17 13:18:15 but I tried that piece of code as a different app that only does that and it works Nov 17 13:18:30 now it's called from an async task Nov 17 13:19:28 File root = Environment.getExternalStorageDirectory(); OutputStream fos = new FileOutputStream(new File(root, filename)); fos.write(data);fos.close(); Nov 17 13:20:56 " And for whatever reason it won't stop at breakpoints either" .. sounds like you're not calling the code at all Nov 17 13:22:15 I know the async task is running because it uploads a file to my server, and the method is being called there too Nov 17 13:23:55 I have an application with Fragments, when i rotate my screen i get "null" in my fragment when i call getView() Nov 17 13:25:11 Why are you calling getview.. And where Nov 17 13:25:53 Krob, the piece of code you gave me isn't working either, same thing, no errors and no file written. Nov 17 13:26:15 ChibiSUN-L: have you set the permission to write files? Nov 17 13:26:22 yes Nov 17 13:27:03 SimonVT: I have a singleton class, and my fragment is a listener to that Nov 17 13:27:35 SimonVT: and in the function that is called there i call getView(); Nov 17 13:28:41 So don't call getView before the view is created Nov 17 13:28:48 I found a path where the app saves photos, I'll try that. I believe I tried it before though. Nov 17 13:29:58 and how do i force it to create the view then? Nov 17 13:30:09 You don't Nov 17 13:30:12 :( Nov 17 13:31:01 I used the same path and it still doesn't work Nov 17 13:31:27 is there any way to make not null then? Nov 17 13:32:05 ChibiSUN-L: i haven't read the first part of your problem, but are you actually reaching your to write the file? Nov 17 13:32:45 reaching my? Nov 17 13:33:35 the method call, you mean? Nov 17 13:33:38 your code Nov 17 13:33:40 yes :) Nov 17 13:34:46 I put it in the first part of the async task, BEFORE the part when it uploads something to my server. It gets to the upload part so I guess that means it calls that code too Nov 17 13:35:03 anyone here play with renderscript? Nov 17 13:35:43 ChibiSUN-L: could you put some logging in there to be sure? Nov 17 13:36:01 I'll give it a try Nov 17 13:36:07 Hi I have a listview. I have a custom cursor adapter for the list view. I attach a onTouchListener to each view in the adapter to implement gestures in the view. I also have onItemClick and onLongClick interfaces implemented on the listview. Now, only the touch listener is called , onItemClick and long click are never called. Can anyone help? Nov 17 13:37:59 hi! i need some help with atrix framebuffer, i'm trying to replace the init with some code made by me, taking recovery minui as demo, but i can't initilize the video :S any clue? Nov 17 13:40:26 uniquesupri: i am not sure there is a solution. how do you expect the view to be clickable if you've got an onTouchListener? How can it tell the difference between a click and a touch? You can try returning *false* from your onTouchListener if you don't consume the event -- that might help. Otherwise, maybe try calling setFocusableInTouchMode() as well -- honestly, I don't think your setup is going to work, but the answer would be in the source of View Nov 17 13:41:57 according to the logging, the code in the async task isn't being executed. but then how do the pictures get uploaded to the server? That's the only place where the upload method is being called Nov 17 13:42:25 tdignan_: thanks for the answer. Yes, If I return false from the touch listener, I get call backs for on click and on long click provided i register them for each view in the adapter. Nov 17 13:42:55 so is it working now :)"? Nov 17 13:43:24 it works, but I need to register the click interface for each view. Nov 17 13:43:50 why are you doing it that way when listview already has a global onListItemClick type thing Nov 17 13:43:54 I mean onClick on the view works but not the onItemClick on the entire listview. Nov 17 13:44:00 ah i see Nov 17 13:44:10 why set the gesture detector on every view...? Nov 17 13:44:12 Is it possible to display fragments if I can't inherit from FragmentActivity (because I have to inherit from something else)? Nov 17 13:44:22 I need to implement a swipe detector interface for each view in the listview Nov 17 13:44:29 try playing with setFocusableInTouchMode Nov 17 13:44:52 I think something about the child focusability was covered in the world of listview io vid Nov 17 13:45:13 oh, to swipe them off? Nov 17 13:45:36 yes to add them to read later page Nov 17 13:45:36 hello, i have a question about miracast , what advantage will it be, examply in connecting nexus 7 to samsung smart tv over wifi ? Nov 17 13:46:29 well, as with most things Nov 17 13:46:32 someone has alread done it Nov 17 13:46:36 http://stackoverflow.com/questions/1338475/how-to-best-handle-fling-gesture-for-android-listactivity/1360693#1360693 Nov 17 13:46:44 http://stackoverflow.com/questions/6597883/swipe-detection-for-each-row-of-listview Nov 17 13:46:53 at the least those can be hints Nov 17 13:47:03 still looking for a good sample, though Nov 17 13:47:45 https://github.com/arnaudbos/Android-GestureListView Nov 17 13:48:17 hey Nov 17 13:48:20 cincinnatus: Not if you want to use fragment on <3.0 Nov 17 13:48:24 I just try to get admob working, any ideas on that? Nov 17 13:48:24 http://ideone.com/4fwmz8 Nov 17 13:48:49 It's confusing. I need to do it in a separate thread because it's networking but it still has to be on the UI thread o0? Nov 17 13:48:56 tdignan_ thanks much for the links Nov 17 13:49:05 cincinnatus: The thing is, I need to inherit from org.mapsforge.android.maps.MapActivity. How can I display a dialog? Nov 17 13:49:19 spobat: webview is different. call webview methods on the main thread. it will thread for you. Nov 17 13:49:33 tdignan_, I don't use a webview Nov 17 13:49:41 It must have something to do with the adview Nov 17 13:49:42 except you did! read your error Nov 17 13:49:42 Hi. Nov 17 13:49:51 the adview is or has a webview Nov 17 13:49:54 you transitively used one Nov 17 13:49:56 see! Nov 17 13:50:13 thanks guys, I can save the file now... kinda, I can fix things from here. Apparently there were two async tasks, I didn't notice the other one Nov 17 13:50:22 SimonVT: Sometimes the API design feels like a bad case of the BaseBean anti-pattern (inheritance is used simply to add functionality, messing up is-a relationships) Nov 17 13:50:23 spobat: is that how the admob docs say to do it? Nov 17 13:50:25 If I have android:id="@+id/edit_message" , and in "R.java" have "edit_message=0x7f070000" . What this number stands for ? Nov 17 13:51:08 tdignan_, I think so Nov 17 13:51:11 SimonVT: But I'm new to Android development. Maybe I'm missing something... I need to display an error message in a MapActivity if the user does something silly Nov 17 13:51:21 So display a dialog Nov 17 13:51:27 You don't have to use DialogFragment Nov 17 13:51:30 spobat: think isn't good enough for engineering. you need to know so Nov 17 13:51:35 time to hit the docs bro Nov 17 13:51:41 Is it the identifier for, which I can reference from my objects ? Nov 17 13:51:50 SimonVT: Thanks, I'll try that Nov 17 13:51:54 how to remove the "forbidden:com/android/internal/**" rule? Nov 17 13:52:48 tdignan_, I need to do it in a separate thread Nov 17 13:52:50 can someone please link me to the description on the difference of botting recovery and normal android? (low level speaking) i'd like to undestand why recover has access to framebuffer and LNX boot does not... :S Nov 17 13:52:51 see this: http://stackoverflow.com/questions/10717358/uncaught-referenceerror-afma-getsdkconstants-is-not-defined Nov 17 13:52:57 otherwise I get the same error as the one there Nov 17 13:53:07 ( FMA_getSdkConstants is not defined (about:blank:1) ) Nov 17 13:56:17 tdignan_, any idea on this? Nov 17 13:58:08 . Nov 17 13:58:16 SimonVT: Thanks! It worked! Nov 17 13:59:04 SimonVT: I didn't realize it was possible to create dialogs without fragments because of Android documentation on dialogs Nov 17 14:00:36 tdignan_, I finished that analysis of the current store Nov 17 14:03:57 Can I manipulate dimensions of individual gridview items in my custom adapter? Not finding much insight over at stackoverflow. Nov 17 14:05:32 You'd think GridView.LayoutParams() would enable this functionality. Nov 17 14:08:15 pique, hmm Nov 17 14:08:33 yup. Nov 17 14:08:58 my application, not relevant, is to create a pinboard of bugs of varying sizes Nov 17 14:09:21 pique, yaa, I'm pretty sure you can Nov 17 14:09:21 ouch. Nov 17 14:09:35 funny thing, turned out I patched my hosts file, and therefore no ads Nov 17 14:09:46 pique: http://github.com/dennis-sheil/android-spreadsheet Nov 17 14:10:17 ill adb this and give it whirl, thy Ologn. Nov 17 14:10:29 pique, that's a spreadsheet framework I wrote. I measure the screen size, density etc. and measure the Gridview accordingly Nov 17 14:11:02 pique, I manipulate the Gridview dimensions depending on what the size/density etc. are Nov 17 14:12:18 pique, the README mentions some jar's to include...I forget if they're required or not...I would assume they are, but forget Nov 17 14:13:02 looks robust on the surface, and i like that its contained in one activity, thanks again Nov 17 14:16:29 hey simonVT thanks for making your sliding drawer library available, is perfect solution for listing app widget configuration choices while doing a preview of the app widget in the content :) Nov 17 14:19:18 You're welcome :) Nov 17 14:23:20 when will they "finally" switch to the new design? Are there any plans when they want to be completely done? Nov 17 14:28:32 I hate "the new design" Nov 17 14:29:15 oh, ok, they added the "Daily Device installs" metric to the new design Nov 17 14:29:18 I love the new design Nov 17 14:33:47 I<3Android :> Nov 17 14:38:53 In the old design it had the language of the people making comments Nov 17 14:38:58 Not in the new design Nov 17 14:42:06 jelly bean's clock time font is a little funky, reminds me of a clockwork orange Nov 17 14:44:37 how many people in this room will remember that movie? Nov 17 14:44:49 question when using GLSurfaceView and it gets destroyed because of app focusout, where do i exactly re-upload my textures? Nov 17 14:45:01 (when recreated) Nov 17 14:45:37 in the new dev console, where can I edit the app description? Nov 17 15:24:36 Has anyone seen Expedia's new app? Dare I say, it's the slickest Android application I've seen yes. But I have a question about one of the cool effects that they do - how might one pull off the neat parallax scrolling map effect on the hotel screen? Nov 17 15:27:53 My application crashes with these in the debug log : http://paste.ubuntu.com/1365169/ I'm trying to download and display bitmaps into a listview. Why there is no proper stacktrace if this is an exception? Nov 17 15:28:56 napster, can you post the code you're using? Looks like maybe weirdness with the bitmaps themselves? Nov 17 15:30:47 mdkess: Let me paste it Nov 17 15:33:45 mdkess: http://paste.ubuntu.com/1365192/ Here is the downloader class I use Nov 17 15:34:26 mdkess the expedia app crashes on my n7 Nov 17 15:34:49 weird, I've only tried it on my gnex. Nov 17 15:35:37 mdkess: This is my getView, no big deal : http://paste.ubuntu.com/1365194/ Nov 17 15:35:48 napster, looking now. Nov 17 15:35:55 ok Nov 17 15:36:19 I have slightly edited the code for readability. Nov 17 15:37:39 napster, first question is - have you tried making the bitmap downloading not async to see if it works? Nov 17 15:38:10 mdkess: yes it works. Also, this code does display the first bitmap as well. Nov 17 15:39:28 http://i-cdn.phonearena.com/images/articles/64166-image/ta-1-png.jpg Nov 17 15:39:34 that's from august Nov 17 15:40:01 and Nov 17 15:40:14 95% or android users use 2.1+ Nov 17 15:40:26 no need to support 1.6 in new projects Nov 17 15:40:39 Sculptor: http://developer.android.com/about/dashboards/index.html Nov 17 15:40:56 that's better. thanks Nov 17 15:41:03 np Nov 17 15:41:21 4.2 is missing, though Nov 17 15:41:45 Sculptor: "Data collected during a 14-day period ending on November 1, 2012" Nov 17 15:42:02 so 4.2 should be missing Nov 17 15:42:18 so, new projects shoud support 2.2+ Nov 17 15:42:47 3.x was so unecessary Nov 17 15:44:23 I set minsdk to 7 in my projects. So far so good. Nov 17 15:45:12 that's good, but you can't use new apis Nov 17 15:45:50 mdkess: Any idea? Nov 17 15:46:05 napster, your code looks reasonable at first glance. Nov 17 15:46:15 ok Nov 17 15:46:49 napster, I guess add a ton of logging? I've never seen that sort of error before, so I'm not sure. Nov 17 15:46:59 I wonder what should people do if they get something like this in the logs and the app crashes : http://paste.ubuntu.com/1365169/ Nov 17 15:47:03 mdkess: ok Nov 17 15:47:09 thanks anyway Nov 17 15:47:26 I'll poke at it a bit, let me know if you figure it out though - I'm curious. Nov 17 15:47:34 sure Nov 17 15:56:26 hey Nov 17 15:56:36 is it only me or are there images missing? Nov 17 15:56:37 https://play.google.com/store/apps/details?id=com.quotes_for_everyone.free&feature=more_from_developer Nov 17 15:56:47 the app screenshots are not displaying here Nov 17 15:57:01 Just wondering, as I never saw something comparable :o Nov 17 15:58:11 how do i turn off a dialog fragment title? Nov 17 15:58:11 same here Nov 17 15:58:28 Hi, where is a good place to go if I want to get my hands dirty write away with Android and learn how to implement something? I already have some intermediate Java skills. Nov 17 15:58:37 right* Nov 17 15:59:12 spobat images broken here too, is that your app? Nov 17 15:59:37 eindoofus: http://developer.android.com/training/index.html Nov 17 15:59:45 thanks Nov 17 16:02:44 hi peeps, you can use JNI with apps on the market place right? Nov 17 16:13:58 chris_99: what do you mean, if it's allowed to use JNI libs in apps you want to sell on the marketplace? Nov 17 16:15:09 if that was the question, yes, you can use JNI with marketplace apps Nov 17 16:15:56 cool yeah that was the question Nov 17 16:15:59 i'm just wondering doesn't this create insecurity Nov 17 16:16:03 if you can use things like ptrace etc. Nov 17 16:16:23 chris_99: everything can be decompiled and looked into Nov 17 16:17:06 i was more thinking if you can use ptrace then you could examine the process space of other processes, but maybe this is prevented Nov 17 16:17:39 I don't think a process can access another memory space like that Nov 17 16:18:07 it would cause high risk, high coupling and bad coding practices Nov 17 16:18:12 in std. linux you can but maybe they've locked it down Nov 17 16:28:26 how big is float in opengles2 fragment shader? does it vary? Nov 17 16:30:49 Hello. I do all my communication with my server in doInBackground in an asynctask, but android reports that my app transmits data almost exclusively in the foreground Nov 17 16:30:52 any intellij users find it ignores the res/raw directory? Nov 17 16:30:54 what did I miss? Nov 17 16:31:05 it wont show the res/raw dir in the project explorer Nov 17 16:33:33 awestroke: Foreground/background in the context of the data usage screen doesn't mean what you think it means Nov 17 16:33:43 It's whether the app is in the foreground or background Nov 17 16:33:50 ooh Nov 17 16:34:04 SimonVT: thanks Nov 17 16:34:22 Silly newbie question but can't find it in the reference, what's the XML value for 'display vertical scroll bar when needed'? Nov 17 16:34:31 EditText element. Nov 17 16:34:44 TextView* Nov 17 16:36:02 hm yeah, that's definitely an intellij bug I just found. :| Nov 17 16:36:47 TextView doesn't scroll for you. you need to wrap it in a ScrollView Nov 17 16:37:10 or use a WebView instead. WebView scrolls. Nov 17 16:37:47 what would be more optimized (in both RAM and storage), I'm displaying plain text. Nov 17 16:38:13 how many of these views are going to be created, 1? Nov 17 16:38:17 Yeah Nov 17 16:38:21 But it's almost screen-size. Nov 17 16:38:23 just use a webview that loads local data. Nov 17 16:38:27 that's what I do for this stuff Nov 17 16:38:48 you can put your html file in assets/ -- googleit Nov 17 16:39:47 How to import hidden classes in the SDK? Nov 17 16:40:43 You canøt Nov 17 16:40:47 s/ø/'/ Nov 17 16:41:58 someone should write a irc sed script that goes up a few lines and corrects those mistakes :p Nov 17 16:42:24 belgianguy: done. Nov 17 16:42:43 A python bot I helped write does that. ;) Nov 17 16:43:59 That's a sure way to get banned Nov 17 16:44:08 tdignan: Slight problem with the use of a webview... it's content is dynamic so I'd have to dynamically create the HTML.. I think it'd be easier to do a scrollview. Thx though. Nov 17 16:44:26 SimonVT: It would be if I joined it without permission, which i'm not going to do. Nov 17 16:45:04 SimonVT: not even android.os.SystemProperties ? Nov 17 16:49:00 Tyrope: you do realize it's a breeze to create html dynamically on the device and load it in a webview Nov 17 16:49:09 i respect your choice to not do it but just know it's easy as hell Nov 17 16:50:08 tdignan: As somebody new to java, not really. This choice however allows me to also bypass the fact I don't have to save anything on the device. Another permission removed I don't technically need. Nov 17 16:50:25 A webview is *FAR* heaver than a textview+scrollview for showing *plain text* Nov 17 16:50:31 *heavier Nov 17 16:50:45 Well, yeah. It tries to parse HTML Nov 17 16:51:17 m1rach4n: No, you can't access non-public stuff through the sdk Nov 17 16:51:52 and if you just need some basic formatting, Html.fromHtml( ) does simple text appearance stuff, stick the result in textview Nov 17 16:52:01 Can I overload interface methods? Nov 17 16:52:26 nm Nov 17 16:52:52 Tyrope, you dont need permissions to store data on app-private internal storage Nov 17 16:53:08 Not even the auto-accepted kind? interesting. Nov 17 16:54:29 Alright! @id/resultView is now scrollable (well, it's parent). Thx folk! Nov 17 16:59:24 SimonVT: I see.... I just want to build the existing code and do some minor changes unrelated to the non-public stuff Nov 17 16:59:31 SimonVT: Is there a workaround? Nov 17 17:00:38 Don't use the sdk, build against aosp Nov 17 17:01:06 And be aware that by using non-public API's, you can't be sure your app will work Nov 17 17:03:44 I'm trying to add a custom LinearLayout view to an xml view at runtime.. but when I do that none of my content is displayed Nov 17 17:06:12 hi all, if I have created a custom view and within it I want to have a button is it possible to add a button view within it? and if so does that sound like a reasonable thing to be doing? Nov 17 17:10:14 mars: of course Nov 17 17:10:47 if you want to use a viewgroup Nov 17 17:10:59 anyways i am unable to read bye all Nov 17 17:11:02 marsilainen I'm trying to do the same thing.. but my children views arn't showing up Nov 17 17:11:52 xastey, try setting orientation to Vertical? (default is horizontal) Nov 17 17:12:19 yeah I just did that.. thougth that was the problem Nov 17 17:12:24 still didn't work.. reviewing my code again Nov 17 17:12:54 then maybe layout params? depends on what you're putting it inside of Nov 17 17:13:26 actually that may be it.. since I'm doing it at run time Nov 17 17:13:36 I added it to the xml.. not custom class code Nov 17 17:16:07 ok layout http://pastebin.com/sVL18yDL and custom view http://pastebin.com/6sSzfuL7 Nov 17 17:16:46 all I'm doing is LinearLayout(R.id.deal_container).addView(new DealDetailsView(this)) Nov 17 17:17:05 Tyrope: you don't have to save anything on the device to load html into a webview Nov 17 17:17:19 there is a loadData method Nov 17 17:17:49 you also don't need java expertise to understand it. you just need to spend 5 minutes reading an example Nov 17 17:18:30 tdignan: And then I realized this creates RAM overhead by trying to parse HTML... So it's not really lightweight, which is one of the primary goals of this app. I will definitely look into it if I need more complex structures though. Thanks. Nov 17 17:18:32 I'm trying to fill a floatbuffer using jni...why isn't this (minimal example) http://pastebin.com/nifpiKbh working? Nov 17 17:18:40 any idea mrenouf? Nov 17 17:18:51 haha, if you think your about page is your bottleneck then you need to learn how and what to optimize. Nov 17 17:19:18 Every little bit helps. ;) Nov 17 17:19:33 say, did you want your about page to have headlines and such? a title, perhaps links? Nov 17 17:19:39 it's way easier to do this with a webview. Nov 17 17:19:48 you can have links in a textview too, though. Nov 17 17:20:01 I don't need a title, headline, link or anything. Nov 17 17:20:04 you can even have images in a textview :) Nov 17 17:20:26 just alphanumerical characters, simple math symbols (parens, +-*/) and linebreaks. Nov 17 17:20:30 and webviews can even be transparent Nov 17 17:20:37 math symbols eh Nov 17 17:20:45 I was thinking of doing something like with textview related to that :) Nov 17 17:21:09 SpannableString is worth a look Nov 17 17:21:13 if you like TextViews Nov 17 17:33:04 has anyone ported dalvik to x86 and run apps on linux? Nov 17 17:33:11 "natively" Nov 17 17:35:02 since there is android-x86, dalvik already runs on x86. Nov 17 17:35:20 the hurdle is related to other parts of the software stack Nov 17 18:15:32 hm.. Nov 17 18:15:36 how could I push my apps? :PPP Nov 17 18:23:54 spobat: adb? Nov 17 18:24:28 nice Nov 17 18:24:31 :] Nov 17 18:30:59 I have Users, Events and EventRequests. EventRequests belongs_to [user, event]. How do I select all Users that have no EventRequest for a certain event Nov 17 18:31:14 oops wrong channel sorry Nov 17 18:31:53 hello, im tring to write in eclipse: AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); but getting the nex error: "AudioManager can't be resolved to a type" Nov 17 18:32:21 dataS: try hovering over AudioManager and selecting "import ...." Nov 17 18:35:52 awestroke i did import android.media.AudioManager; but it saies: import android cannot be resolved Nov 17 18:36:18 dataS: com.android Nov 17 18:38:26 Tyrope is it a link to a web? or should i write import com.android; ? Nov 17 18:38:53 you write com.android.... Nov 17 18:39:00 No you don't Nov 17 18:39:13 What is the max size for a hardware accelerated bitmap on a Nexus 10 ? On most mosther devices it is 2048x2048 Nov 17 18:39:28 You don't? Nov 17 18:39:33 no Nov 17 18:39:44 that's what I get for using eclipse's auto-import. mah bad. Nov 17 18:40:12 * Tyrope will refrain from talking so he doesn't give invalid advice. Nov 17 18:41:34 it dosent work,how can i fix it? Nov 17 18:47:10 can i controle weather or not a keyboard go "full screen" when in landscape mode ? Nov 17 19:03:58 Can I do POST methods from local file in webview via jquery.ajax? Nov 17 19:08:25 hey, i want to refer the user to the app's page on Google Play when it's time to update. im wondering how to do that referral... i basicly need a way to popup the play application? Nov 17 19:09:26 viran: link to the play page, play app should take over? (not 100% sure) Nov 17 19:09:27 I assume there's a specialized intent for that Nov 17 19:09:37 or, just use the URL to your page. Nov 17 19:10:53 but how to i execute the transfer to that page? not sure how to make android go there Nov 17 19:12:27 Does android webview supports cross-domain ajax requests ? Nov 17 19:12:39 It always returns status code 0 =( Nov 17 19:12:57 While i am doing $.post() Nov 17 19:13:17 viran: I'm a n00b, so I don't really know. But I'm pretty sure it's easy to create an intent from a URL, and then activate it. Nov 17 19:20:23 rootty: I think it does Nov 17 19:20:28 omg. Cross-domain requests from webview work on preICS devices Nov 17 19:20:49 but not ICS? Nov 17 19:20:50 but on my Galaxy nexus it doesn't Nov 17 19:21:10 hahaha I have a fascinate running GB =p Nov 17 19:22:01 over 90% of the anddroid users are running v2, mainly GB. So thats why I gear my programs towards that Nov 17 19:22:31 But who woulda though that ICS wouldn't support that Nov 17 19:22:32 turb1ne247, it isn't acceptable for me ( Nov 17 19:22:41 api8 is pretty much required minimum if you wanna hit all users. Nov 17 19:22:51 yeah Nov 17 19:23:03 turb1ne247 it's not over 90% Nov 17 19:23:13 I thought it was like 95 Nov 17 19:23:20 http://developer.android.com/about/dashboards/index.html Nov 17 19:23:25 I could be wrong. I forgot where i read that Nov 17 19:23:25 It is interesting how PhoneGap handle this Nov 17 19:23:28 ... Nov 17 19:23:41 28.5% are ICS+ Nov 17 19:23:47 WOW I was off Nov 17 19:23:53 gingerbread is big, but it's not THAT big :P Nov 17 19:24:05 oops. Maybe I was just dreaming that Nov 17 19:30:45 canadiancow is that your username on stackoverflow? Nov 17 19:30:53 probably Nov 17 19:31:06 yes Nov 17 19:31:38 bah, sometimes I wish I could switch applications without making other ones suspend Nov 17 19:31:50 Netflix takes annoyingly long to reinitialize when I switch apps Nov 17 19:32:29 So really you wish netflix would fix their app Nov 17 19:35:11 or he wants proper multitasking Nov 17 19:36:25 Hodapp you can do some of that shit with services Nov 17 19:36:32 but its not always easy Nov 17 19:48:56 Interesting fact: to allow cross-domain ajax requests from local in webview via jquery ajax in postICS , you must add this line: Nov 17 19:48:59 webview.getSettings().setAllowUniversalAccessFromFileURLs(true); Nov 17 19:49:20 Thanks to Cordova sources! Nov 17 19:49:35 God bless open source! Nov 17 19:51:25 anybody using robolectric? i wanted to test a contentprovider with a sqlite backend. it works fine in the emulator, but the query() method returns null with the testrunner. Nov 17 19:52:04 i suspect Robolectric.application.getContentResolver() isn't using my contentprovider... Nov 17 19:56:15 noganex, I thought the whole point of Robolectric was to let you ignore the framework? Nov 17 19:56:47 Hey guys, APKExpansionSupport.getAPKExpansionZipFile(getActivity(), 0, 0); is returning null for me. How do I begin to trouble shoot Nov 17 19:57:05 mrenouf: i'm not so sure about that. :/ Nov 17 19:57:08 if robolectric doesn't emulate parsing the manifest file, there's no way it would know that Nov 17 19:57:37 looks like it, but could be my own stupidity, too ;) Nov 17 19:57:43 my file is in /sdcard/Android/obb/com.example.name/main.0.com.example.name.obb Nov 17 20:01:14 gingerbread percentage would be dropping faster if there were not BRAND NEW devices still being launched with it... *sigh* Nov 17 20:03:20 yeah, it's sad Nov 17 20:03:55 but at least you can reasonably ignore <8 now Nov 17 20:07:45 why are new devices deployed with gingerbread? it requires less processing power? Nov 17 20:10:31 and ram Nov 17 20:10:42 how about honeycomb Nov 17 20:10:46 are there new honeycomb devices Nov 17 20:24:45 http://developer.android.com/training/basics/activity-lifecycle/stopping.html says ``the system might simply kill your app process without calling the activity's final onDestroy() callback, so it's important you use onStop() to release resources that might leak memory.'' Nov 17 20:24:48 That makes no sense to me. If the system is about to _kill_ my process, why should I bother releasing memory? Won't the memory be automatically returned to "the system" as soon as my process is dead? Nov 17 20:28:46 offby1: if it kills your whole process, yes, it'll remove the memory. I don't quite follow the logic of that statement, either. Nov 17 20:29:17 offby1: i'm not sure it's 1:1 (non-thread-)process:activity, and not all resources are simple allocations presumably Nov 17 20:29:17 offby1: You could hve stuff registered in system listeners Nov 17 20:29:30 offby1: which wouldn't get nuked (like event callbacks, etc) Nov 17 20:31:02 sure, I can see that I might have resources _other_ than memory that I should manually release. Nov 17 20:31:25 I suspect that paragraph was simply poorly written, by a tech writer who isn't all that familiar with programming Nov 17 20:31:28 all resources are memory somewhere Nov 17 20:31:35 it's probably poorly-written, though Nov 17 20:31:37 oGMo: not in any useful sense. Nov 17 20:31:56 offby1: sure, if you say "hey you service, allocate me some X" everytime your activity launches ;) Nov 17 20:32:08 well, ok, but that's being pedantic. Nov 17 20:32:16 that's what it boils down to Nov 17 20:32:25 When I hear "memory", I think "malloc" and "free"; not "mkdir" and "rmdir" (for example). Nov 17 20:32:36 this is java, you should _never_ hear "malloc" and "free" Nov 17 20:32:47 Thus it's not useful to lump (say) directories under the term "memory": it doesn't remind me of the things that I need to do. Nov 17 20:32:55 oGMo: yeah yeah I know; it's just an example Nov 17 20:33:04 I'm an old C programmer. Nov 17 20:33:25 offby1: sure but keeping "dangling references" around is a common bad habit for devs not used to GCs Nov 17 20:33:38 leads to horrible memory consumption Nov 17 20:33:42 actually I only pop in here to complain, but that developer.android.com/training site is unusually good. Nov 17 20:33:49 cool Nov 17 20:52:40 Sculptor, nothing new comes iwth honeycomb Nov 17 20:52:46 if it can run HC, it can run ICS Nov 17 20:52:50 and if it can run ICS, it can run JB Nov 17 20:53:39 hmm Nov 17 20:53:57 also i dont think google would let anyone make a HC device Nov 17 20:54:02 since that source was never tagged Nov 17 20:55:09 offby1, as for the killing your process... if you release the memory in onStop, it might NOT kill your process Nov 17 20:55:20 when the system needs memory, it kills the non-foreground process that is using the most memory Nov 17 21:01:21 makes sense Nov 17 21:01:35 on the other hand, if I'm already in onStop, what do I care if my process gets killed :) Nov 17 21:43:12 SDK Bundle: http://developer.android.com/sdk/index.html Nov 17 21:43:17 nice! Nov 17 21:44:29 +1 Nov 17 21:52:05 Been reading quite thoroughly on adding an onUpdate event in my Widget to A) update a counter, and B) open app Main.class on click. I've run through just about everything I can find to no avail: http://pastebin.com/K3TXhtut Nov 17 21:56:18 Updates the counter just fine, but clicking it vibrates my phone once every 2 clicks? Nov 17 21:56:31 why setData(Uri.parse(intent.toUri(...)) ? Nov 17 21:57:38 Dear all , i need an app to recover my Sim Card Data , i did delete my contact by mistake , did copy the contact to my phone . but the pohone address book show dublecated contact , i told my self , there ia an error wile copying the contact , lets delete all these dublecated contact , and reimport it all , but what the f** luck it phone delete the contact form the phone and from the sim Nov 17 21:57:59 please help ! Nov 17 21:58:56 impossible, as I understand it. Nov 17 21:59:03 beshoo: this is for app development, not device support, sorry. That said, as far as I know, there's not much you can do about it, the sim isn't a storage device per se that you can access the filesystem and undelete on. Nov 17 21:59:22 there is no mechanism for undeleting deleted contacts from the sim. Nov 17 21:59:25 pretty hefty stuff there beshoo. I found a few card fragmented data recovery tools, but the SIM card is not something you can use like an SD card for storage. Nov 17 22:00:13 can I use FragmentPagerAdapter without support library? I can't find any alternative Nov 17 22:02:05 MyWay, you're welcome to try and create your own. I managed to immitate it (minus the smooth sliding) with an ontouch event and some other view, but you wont come close to that without designing your own. Nov 17 22:02:56 but i did copy them to phone , and delete them from it , so is there to recover it form phone Nov 17 22:03:33 ahh, the ViewFlipper and onTouch event... that's what I used.. Nov 17 22:03:54 maybe I don't need it, because my problem is that I'm using WebViewFragment and I'm using FragmentPagerAdapter, anyway the latter wants getItem returning a support library Fragment, but I'm returning a regular Fragment with WebViewFragment, can I do something? Nov 17 22:04:34 I suppose one could write a custom horizontal scroll view to catch per content item.. Nov 17 22:07:41 MyWay: make WebViewFragment extend the support lib fragment instead. Nov 17 22:08:18 ok, so I copy WebViewFragment in my project and make it extend the support library Nov 17 22:08:46 wha does it do other than display a webview anyway? Nov 17 22:08:49 just make your own Nov 17 22:08:56 takes 5 seconds Nov 17 22:10:24 Back to my own project... someone HAS to have a working onClick event handler for a widget.. Nov 17 22:13:52 Hey guys, if I bind a datagramsocket and the port returns as negative 1, (-1), Does anyone know the solution to this? thanks! Nov 17 22:14:30 Should throw an exception, shouldn't it? Nov 17 22:15:43 Komak57: Nope, just binds Nov 17 22:16:32 Komak57: I instatiate it this way : DatagramSocket udp_in = new DatagramSocket() Nov 17 22:17:41 tdignan: yes, but if I don't want to use support library, I can't use FragmentPagerAdapter? I don't understand this thing, which is the reason? Nov 17 22:17:52 and which is the alternative (if there is one)? Nov 17 22:19:22 MyWay, FragmentPagerAdapters aren't too terribly difficult. You essentially load a number of layouts into a view and it loads them all side-by-side allowing a scrolling motion to it. Nov 17 22:20:22 ok, so if I don't want to use support library, I have to make my own FragmentPagerAdapter Nov 17 22:29:29 running a 4.1 emulator, ListView.removeFooterView() doesn't appear to actually remove itself as the Footer View's parent, thereby not getting an onDetachedFromWindow() call in the child Nov 17 22:31:21 MyWay: hm, interesting Nov 17 22:31:26 why not use the support library? Nov 17 22:33:10 because I thought support library is if you want tu support old version (which is a good thing), but I thought maybe someone don't need it and there is a FragmentPagerAdapter for the "normale" Fragment Nov 17 23:05:22 MyWay, in my opinion, you should always use the support library Nov 17 23:05:36 some Fragment features are only available on 4.2 Nov 17 23:05:46 so even though fragments are available on 3.0, if you want those features, you need the support lib Nov 17 23:06:28 it includes other nice things like NotificationCompat Nov 17 23:06:47 so you can easily make use of 4.1 style notifications, even if you supoprt lower versions Nov 17 23:08:36 hm. That's curious. Launching my test app makes Tasker crash. Nov 17 23:08:41 and then you have things like the android.widget.Switch, which is only available on r14+ Nov 17 23:09:31 well... yes Nov 17 23:09:55 but it's identical in functionality to a checkbox Nov 17 23:10:14 you can create a simple wrapper class that will load a checkbox <=13 and a switch >=14 Nov 17 23:20:06 hello Android Dev, what does android-9 mean in the NDK Nov 17 23:20:23 there is some dir NDK_DIR/platforms/android-9 Nov 17 23:20:36 does this correspond to the OS versions? Nov 17 23:20:49 or SDK revisions Nov 17 23:35:05 Hey my launch activity needs an intent filter with action.MAIN and category.LAUNCHER, right? Can I declare the activity exported false, or does it have to be true because of the filter Nov 17 23:41:39 it has to be true Nov 17 23:41:48 it can only be false if it's only going to be started from within your pap Nov 17 23:41:49 app* Nov 17 23:41:54 (hint: the system launcher is not your app) Nov 17 23:42:53 okay thanks Nov 17 23:49:36 hi peeps Nov 17 23:49:46 I;ve just creating my first content provider, and I'd liek to know if this is the right idea: http://pastebin.com/if3g7DCS Nov 17 23:49:55 it works, which is a good sign, but not sure if i;ve made any cardinal sin mistakes or misunderstandings Nov 17 23:50:13 if someone could give it a quick look over,t hat would be appreciated Nov 18 00:00:31 Anyone here know if there are performance differences between an AsyncTask and a Thread? Nov 18 00:07:42 for one, if you want to execute an AsyncTask more than once, you have to instantiate another one Nov 18 00:08:31 True, but I'm more concerned with the runtime performance. Nov 18 00:08:42 there is no noticable difference to care about then Nov 18 00:09:33 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/AsyncTask.java Nov 18 00:09:37 I'm seeing some strange results that could be explained ifAsyncTasks execute faster than Threads in some situations. Nov 18 00:11:06 I suspect the major difference is that asynctasks go into a singlethreaded executor pool by default in modern androids Nov 18 00:11:11 so they execute serially Nov 18 00:15:21 pour unreal : http://www.nypost.com/p/news/local/ipad_heist_at_jfk_KUg25OxRZ3Xgpk58H7fXwJ Nov 18 00:15:33 oops wrong chan *.* Nov 18 00:17:28 of the people here, do you normally put R.java under source control? Nov 18 00:18:13 no Nov 18 00:18:15 Anoia, i ignore only gen folders Nov 18 00:18:40 bin/ is also a pretty useless folder to have in source control. Nov 18 00:18:53 yeah, bin is ignored Nov 18 00:19:28 .settings, and apparently .hgignore :) Nov 18 00:20:06 so i have a 1 vs 1 atm :) Nov 18 00:20:20 Anoia: I could send you a little script I wrote that prepares a new Android project for being checked in to git -- it's mostly a list of stuff to ignore and stuff to add. Nov 18 00:20:51 Anoia: http://ix.io/3qE if you care Nov 18 00:22:30 I use hg but thanks anyway Nov 18 00:23:35 so binaries, eclipse settings and bin/gen folders pretty much Nov 18 00:23:40 and temp Nov 18 00:26:09 Anoia: that script seems to be working for me. Nov 18 00:26:39 what was that app called that people use to get around their isp monitoring their data usage, fox fi , wi fox ? Nov 18 00:26:40 I haven't run across a temp/ yet. Nov 18 00:27:05 shmooz: dunno, but it sounds interesting. How would that work -- switch to cellular? Nov 18 00:27:21 what about /lib? Nov 18 00:27:39 mine contains an android-support-v4.jar Nov 18 00:27:51 I assume custom imported libs also go in there Nov 18 00:27:56 Anoia: you probably want that Nov 18 00:28:55 the others i've included are lint.xml and proguard-project.txt Nov 18 00:29:33 not sure whether that's a project settings or eclipse settings Nov 18 00:32:07 ah, it's project specific, but i dont; think it is source control worthy unless i actually make use of it Nov 18 01:13:21 looks like 4.2.1 to fix the people app :| Nov 18 01:23:20 what's wrong with it? Nov 18 01:23:28 g00s: ^^ Nov 18 01:24:17 offby1: http://www.androidpolice.com/2012/11/17/sorry-santa-google-cancels-december-in-android-4-2/ Nov 18 01:25:57 oh. Nov 18 01:26:05 that seems like a fairly minor bug. Nov 18 01:26:12 Annoying, to be sure, but work-around-able. Nov 18 01:26:34 i think my contacts are empty anyhow, so yeah XD Nov 18 01:29:44 offby1: the nick & situation - the irony ! Nov 18 01:33:47 hey, if anyone is around.. i'm trying to use a togglebutton so that while it's on, it plays a random sound from an array list.. Nov 18 01:34:07 i can get it to work if i use a while loop on the boolean for the togglebutton Nov 18 01:34:23 but it locks up the UI thread, so you can't switch it off Nov 18 01:34:36 and looks like asynctask is just for short term use Nov 18 01:34:43 explosivo, nope Nov 18 01:34:43 the button could be on indefinitely Nov 18 01:34:59 just make a thread Nov 18 01:35:11 never used them before :) Nov 18 01:35:20 i'll check into it Nov 18 01:36:04 one catch is you can't touch the UI from outside the UI thread Nov 18 01:36:19 which i shouldn't need to Nov 18 01:36:40 you need to tell the thread to stop once the button is toggled off Nov 18 01:36:52 that makes sense Nov 18 01:37:00 so you'll need your togglebutton listener to set a shared variable that the thread can read Nov 18 01:37:05 same as you're doing now really Nov 18 01:37:07 ahhh Nov 18 01:37:21 new Thread() { public void run() { ... your code ... } }.start() Nov 18 01:37:27 they're quite simple Nov 18 01:37:38 ok cool Nov 18 01:38:27 you could use an asnyc task too, I just dont recall if they have a cancel mechanism Nov 18 01:38:40 (async task is just an abstraction for a thread) Nov 18 01:39:00 ok..just looks like best practice is to only use them for short tasks Nov 18 01:39:15 i could try it and see what happens, haven't used asynctask before either Nov 18 01:56:25 Any ideas why a program would run faster with a determinate progress dialog rather than an indeterminate progress dialog? Nov 18 02:05:08 maybe because one has calculations and the other doesn't? Nov 18 02:09:02 Hrm. Nov 18 02:09:19 I don't think the progress dialog calculations would have that much impact. Nov 18 02:09:26 It's a 20% difference over about a minute. Nov 18 02:21:52 thank you lint Nov 18 02:21:55 "This TableLayout layout or its RelativeLayout parent is useless" Nov 18 02:22:03 no need to rub it in... Nov 18 02:22:12 I'm programmatically added TextViews to a LinearLayout and I'm trying to use an OnClick event to update a row in a database. I'm using this code (http://pastebin.com/KxrUPv5U) to make my onClickListener but I get an error that java.lang.String cannot be cast to android.widget.TextView Nov 18 02:22:25 Can anyone tell me how I can fix this? Nov 18 02:22:36 you don;t cast, you assign Nov 18 02:22:46 using SetText or something Nov 18 02:23:19 I'm not setting the text, I'm creating a TextView from the view that was clicked Nov 18 02:23:28 the Tag on that view Nov 18 02:24:24 But, actually, do I even need to create a new TextView if I just get the tag from the view I clicked instead? Nov 18 02:24:29 that's all I need Nov 18 02:24:55 what does gettag return? Nov 18 02:25:05 the tag set for the view Nov 18 02:25:25 as a view or a string? Nov 18 02:25:35 a string, I'm guessing Nov 18 02:25:39 a tag is a string Nov 18 02:25:48 is it not your method? Nov 18 02:25:59 is what not my method? Nov 18 02:26:07 gettag Nov 18 02:26:48 you don;t seem to be using the textview that you try and create any way Nov 18 02:27:59 getTag is a method from TextView Nov 18 02:29:42 just remove the first line and and change text to v in the second Nov 18 02:29:53 I kinda see what you were tryign to do now Nov 18 02:30:13 you were trying to assign v to text so you could call gettag Nov 18 02:30:31 but you have an extreneous gettag on that assignment Nov 18 02:31:00 which, as the error says, returns a string which cant be converted to a textview Nov 18 02:31:56 yeah, I figured that out while we were just talking about it Nov 18 02:32:22 thanks though Nov 18 02:35:06 now I have a problem updating a database :D Nov 18 02:38:20 hey guys Nov 18 02:38:35 is there anyway to do share intent to specific app? Nov 18 02:56:38 man going through replacing all instances of plain old Dialogs with DialogFragments is tedious Nov 18 02:57:57 canadiancow: moo **** ENDING LOGGING AT Sun Nov 18 02:59:58 2012