**** BEGIN LOGGING AT Thu Mar 22 02:59:58 2012 Mar 22 03:05:43 this PMD thing is strange Mar 22 03:05:55 oh ron_frown left Mar 22 03:18:36 do you put what would basically be stored procs in a provider or a separate class or does it not matter? Mar 22 03:26:32 I have: Map chartsBitmaps; and this to fill it: bitmap = BitmapFactory.decodeFile(file.toString()); chartsBitmaps.put("last24hours", bitmap); the bitmap is not null but it's still returning a NullPointerException, do you have any idea ? Mar 22 03:27:33 maxagaz: you need to initialize the Map to something, like, a HashMap instance. Mar 22 03:27:51 readme: how to do that ? Mar 22 03:28:05 Map map = new HashMap(); Mar 22 03:28:11 oh Mar 22 03:28:19 readme: thank you! Mar 22 03:28:23 np Mar 22 03:30:04 Any idea why my activity crashes on my droid 1, but not on my droid x2. I've been messing around with background images. I thought maybe it was the resolution but to test it I made a blank black image that is 300px by 200px and put it in the ldpi and hdpi, so the droid 1 should of picked the iage from either ldpi or mdpi. Mar 22 03:30:08 If that made sense Mar 22 03:32:43 I'm getting this error in my logcat 03-21 20:28:23.499: E/ActivityThread(3236): android.view.InflateException: Binary XML file line #2: Error inflating class Mar 22 03:32:43 Oh nvm it's because of the memory Mar 22 03:32:43 Wow why is my app a memory hog? Mar 22 03:32:43 Can I some how find out what each thing is using how much memory? Mar 22 03:32:43 Like how much memory each activity is using, and what is using the memory Mar 22 03:34:05 hi guys Mar 22 03:34:15 what is the most used for UI, xml or coding ? Mar 22 03:34:18 I think it's because of my animation on the previous activity. Is there any way to dispose of all the memory chache from an animation? Mar 22 03:34:20 im newer Mar 22 03:34:28 Does the animationvar.stop() dispose of everything? Or just stop it Mar 22 03:35:23 ? Mar 22 03:35:25 anyone ? Mar 22 03:35:34 Hi Mar 22 03:37:14 eclipse is commony used for writing software on android Mar 22 03:38:51 there is a plugin (ADT) that is used, you are able to view your xml inside of eclipse Mar 22 03:39:28 http://developer.android.com/sdk/eclipse-adt.html Mar 22 03:39:53 unreal-dude: well, i want to know what is the most used by developers, writing UI with xml or classes ? Mar 22 03:40:24 unreal-dude: on iOS i prefer todo the UI by code... Mar 22 03:43:13 why ImageView needs a contentDescription as Eclipse complains ? "[Accessibility] Missing contentDescription attribute on image." Where is it used ? Mar 22 03:43:38 for some search engine ? Mar 22 03:44:08 cccaldas: on Android it wouldn't work in long term Mar 22 03:45:21 maxagaz: for blind people Mar 22 03:45:30 readme: ok Mar 22 03:45:41 (screen readers) Mar 22 03:45:50 ok Mar 22 03:46:07 when clicking the image ? Mar 22 03:46:30 when the image is displayed on the screen, a blind person cannot see it, so instead, they are read the content description by text-to-speech screen reader. Mar 22 03:47:42 are there a lot of blind people using android ? Mar 22 03:49:17 I would fill them in if the app is something that could conceivably be used by a blind person Mar 22 03:49:25 if your app is "cat pictures" its obviously not worth it Mar 22 03:49:39 p_l|dublin: why ? Mar 22 03:51:26 "The cat is cute and furry. It's big eyes regard you with a cold calculating stare." Mar 22 03:52:04 "The cat is moist and delicious." Mar 22 03:52:37 heh Mar 22 03:53:46 cccaldas: the XML-defined layouts enjoy the joys of automatic provisioning based on different features of the hw it's running on Mar 22 03:54:15 from basic things like screen sizes and orientation, to things like preserving extra space in a different language version Mar 22 03:54:40 I'm encountering a problem in development where Eclipse suddenly starts giving NullPointerExceptions in the logcat log at parts of my code that previously worked. Even if I uncomment those lines, it finds another. If I restart the phone/Eclipse, sometimes this disappears. Any clues as to where to start looking? Mar 22 03:55:09 hello all Mar 22 03:55:23 ejcweb: ... in the variables you're handling at the points you get NPE at? Mar 22 03:55:36 ejcweb: start by looking at the stack trace Mar 22 03:58:04 readme: Ok, it turns out that some of my Views are null (eg. Gallery as returned by findViewById). Why would this suddenly return null? Inflation problems? Mar 22 03:58:22 ejcweb: stack trace? Mar 22 03:59:14 Hmm, strange. Just re-saving my main.xml layout and refreshing the res folder fixed this. Mar 22 03:59:22 (without any actual code changes) Mar 22 03:59:49 if it doesn't work always try build clean if you have changed xml Mar 22 04:05:46 are there any good Android robotics projects to look into? Mar 22 04:07:59 QubeZ: there are some android-remoted drones Mar 22 04:08:36 im really getting interested in robotics... building from a kit to get started in the learning process and writing code to control Mar 22 04:13:26 Android so far doesn't have much to do with robotics Mar 22 04:13:34 well, except for the USB host stuff Mar 22 04:14:04 can't wait until there are api's for it Mar 22 04:14:15 for now maybe I'll look into Kinect and MS Robotics Studio Mar 22 04:16:42 p_l|dublin: bluetooth :) Mar 22 04:17:11 readme: I meant that the board for developing with that was tangentially related to robotics :) Mar 22 04:17:28 ah Mar 22 04:17:50 http://www.sparkfun.com/products/10585 Mar 22 04:18:28 http://www.sparkfun.com/products/10748 theres the new one Mar 22 04:41:17 sanity check.. is the only x86 emulator image presently available the 2.3.3 one? Mar 22 04:41:25 using library projects really confuses eclipse Mar 22 04:41:29 "Intel Atom x86 System Image" Mar 22 06:39:50 hey Mar 22 06:39:58 anyone here? Mar 22 06:45:36 no, only AIs Mar 22 06:47:27 maybe you could help me... Mar 22 06:49:03 I'm trying to right an apps that conect my tablet to usb-ftdi and I'm trying to open the device, but unsuccessfuly.. Mar 22 06:49:29 write..** Mar 22 06:51:02 unfortunately I'm busy packing from a hotel :) Mar 22 06:56:58 i need a chart library that will allow multiple plots per X or plot with the X and Y axis inverted Mar 22 08:20:45 Hi! I'm trying to record video using mediarecorder. But any resolution different to 176, 144 produces a green video (just plain green, no structure).... Mar 22 08:21:52 i'm using mpeg_4, H263 Mar 22 08:35:23 can anyone help me? I'm tring to write an app that does a connction between a tablet and a serial COM port, to the computer, the tablet recognise that a usb device is connected to it but itis unable to open it. Mar 22 09:04:25 How easy is it to test app on your own phone? Mar 22 09:04:37 very very very easy Mar 22 09:05:18 Well, I have noticed the emulator don't seem to be that good Mar 22 09:05:42 It takes while to boot and I was wondering why use an emulator at all. Why not just use your phone phone Mar 22 09:06:05 yes, phone is better for quick tests Mar 22 09:06:29 but emulator makes it easy to test different resolutions amongst other things Mar 22 09:06:41 unless you have phones in all resolutions :p Mar 22 09:07:19 Can you test parts of the program or you have to write the whole thing and then test Mar 22 09:07:38 tarelerulz: I'd like to pitch in that if you launch an emulator with snapshot enabled, they're significantly faster to at least launch. By magnitudes. Mar 22 09:09:28 That is good to know. I'm trying to learn to program in C++ and I thought I might want to learn java sometime down the road. Mar 22 09:10:56 tarelerulz: Hopefully there will be x86-based images of Android builds in the future, which will likely increase performance significantly as well. But for the time being we have to live with the ARM-emulated images. Mar 22 09:11:30 Well, there is build for x86 ,but its a fork of android Mar 22 09:12:15 Offically I don't Google's looking to get into the pc space. Tablet , phone and smart tv maybe Mar 22 09:12:48 tarelerulz: i would rethink c++ instead of java Mar 22 09:13:04 how do i clear shared preferences? data is persisting across uninstall/reinstall Mar 22 09:13:10 tarelerulz: I don't know if I was clear, I'm talking about the emulator only. Mar 22 09:13:41 my bad Mar 22 09:14:00 jasonmog: SharedPreferences should be cleared during an uninstall or when you go through Manage Apps -> [Your app] -> Clear data on your device Mar 22 09:14:24 Just slow going on C++ . Stuff is pretty dry. I'm thinking it just the fact you have to learn the boring stuff before getting to fun part Mar 22 09:14:25 it's not. very spooky Mar 22 09:14:44 I've got this relativelayout with background set to a 9-patch image that scales vertically. How can I place a textview at the bottom of the 9-patch image without scaling it further (relativelayout height set to wrap-content) Mar 22 09:15:07 jasonmog: You're doing an explicit uninstall and not an upgrade/reinstall, through for instance Eclipse? When I launch apps through Eclipse and they get (re)installed they persist data. Mar 22 09:15:47 on the device i go in to settings and uninstall Mar 22 09:15:48 um, guys... you saw that the new SDK is out today which has support for virtualised x86 emulators? (on mac and windows, which is slightly odd, since the GTV virtualised emulator only ran on Linux) Mar 22 09:15:56 and then i reinstall by launching through eclipse Mar 22 09:16:20 Leeds: You're not pulling my leg are you? Mar 22 09:16:41 * drlaban goes looking for the new SDK Mar 22 09:17:03 drlaban: http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html Mar 22 09:17:21 Leeds: Ooooh, r17. Let's hope for shiny happiness. :D Mar 22 09:17:47 it's been in testing for quite a while Mar 22 09:18:05 Yay Mar 22 09:18:07 finally Mar 22 09:18:39 My current application uses NDK... So, is there an NDK available for x86 also now? Mar 22 09:19:59 can anyone guide me regarding android ndk build envoirment Mar 22 09:20:09 i want to cross compile linux packages for android , is the NDK the right one ? Mar 22 09:20:14 Hopefully we'll see less problems with the UI-builder as well. I'm not sure where the bugs are originating from, could be Eclipse, but they're annoying and I want them gone. :) Mar 22 09:20:23 also i am refering this blogs http://www.appstalk.net/2011/01/android-ndk-r5-for-ubuntu-9-04-9-10/ Mar 22 09:20:29 erwt: well, not really. Android doesn't have all the libraryies you need Mar 22 09:20:43 drlaban: Don't use Eclipse Mar 22 09:21:01 loke, then wht can be the soln Mar 22 09:21:13 erwt: what is it you want to do? Mar 22 09:21:28 loke: But I want to use Eclipse. I even bought viPlugin for it. :( Mar 22 09:22:04 loke, i have a package i want to cross compile it for andorid and finally create a .apk file Mar 22 09:22:26 which can be easily put on mach Mar 22 09:23:13 drlaban: Well, it's your loss. Eclipse is terrible. Mar 22 09:23:26 erwt: What package is that? Mar 22 09:23:32 loke , bash Mar 22 09:23:56 erwt: that's kind of pointless. You'r not working in the terminal on a phone Mar 22 09:24:11 It can be done, of course, but there is little reason to do it. Mar 22 09:24:11 loke ,i know that Mar 22 09:24:19 Anyway, I have to go. Mar 22 09:24:24 loke, wait Mar 22 09:24:31 when i have a tabhost in xml does it have to be the first/root entry? Mar 22 09:24:32 for a miniute' Mar 22 09:24:47 loke,plz Mar 22 09:25:05 i want to add a header above my tabhost but the xml editor complains error parsing xml unbound prefix Mar 22 09:25:42 loke , first i want to know how can i crosscompile a package for android or any .cpp file Mar 22 09:28:52 loke ,ping Mar 22 09:29:55 Hi can how know whn the user has scrolled down the webpage. I want to hide the address bar when the user scrolls down. Like how it is in the android browser Mar 22 09:31:48 hi, I have a small problem, I have a module that is installed in "user" but not in "eng", can someone give me some information to search ? Mar 22 09:32:27 I use only simple admob ads in my app, and used to see a fill rate of around 15-20%. Now it's been in the 90-ies for around 2 weeks straight. Anyone know what's happened? Mar 22 09:32:50 Not that I'm complaining. Mar 22 09:33:19 rogerkk: do you have the adsense fill active? Mar 22 09:35:24 Leeds: No, I don't like how they look. I've selected the "Do not use Google ads and Google certified ad networks to improve fill rates." radio button and it's been like that since the start. Mar 22 09:35:46 Which is why I saw the low fill rates to begin with, I guess. Mar 22 09:36:36 API TOOLS 17!!!!! FUCK YEA Mar 22 09:52:08 Anyone know if a tabhost must be the root node in the xml? i want to put something on the screen above it but its not letting me Mar 22 09:59:44 can anyone guide me on how to cross compile a simple main.cpp file in NDK envoirment Mar 22 10:03:28 hmm Mar 22 10:03:39 i'm getting "Conversion to Dalvik format failed with error 1"... Mar 22 10:03:54 I think it happened after updating to 17 Mar 22 10:04:07 at least; I can't remember it giving that error before Mar 22 10:04:44 whats the best way to draw some charts on android? Mar 22 10:07:05 has anyone encountered this error checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized Mar 22 10:14:48 how to write: long now = d.getTime() - 5min; ? Mar 22 10:16:02 hey guys Mar 22 10:16:15 upgraded to ADT 17, now my app with a custom application class fails to build and run Mar 22 10:16:53 java.lang.RuntimeException: Unable to instantiate application com.blah.BlahApplication: java.lang.ClassNotFoundException: com.blah.BlahApplication Mar 22 10:16:58 anyone else had a similar isue? Mar 22 10:17:04 hmmwell i'm getting Mar 22 10:17:13 "Conversion to Dalvik format failed with error 1"... Mar 22 10:18:55 "UNEXPECTED TOP-LEVEL EXCEPTION: IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompact$AcccessibilityServiceInfoStubImpl; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java123)" Mar 22 10:21:39 what sort of testing does ADT go through? Mar 22 10:21:49 is there going to be another bugfix release next week :-/ Mar 22 10:21:51 (after upgrading to 17 that is. at least I think) Mar 22 10:43:07 I have an MainActivity, a WidgetProvider and an UpdateWidgetService, how can I also update the widget when my MainActivity starts ? Mar 22 10:44:30 hmm got it working Mar 22 10:44:56 problem was some weird lib of a project i added while the project itself was added too Mar 22 10:46:20 maxagaz: this may be a silly question - and I don't really know much about widgets - but what would be the point, since your mainactivity and your widget can't be on screen at the same time? Mar 22 10:46:28 someone knows how to draw a chart? Mar 22 10:47:18 caioketo: http://stackoverflow.com/questions/424752/any-good-graphing-packages-for-android/ Mar 22 10:47:30 Leeds: when you leave the app, the widget won't have to wait at most 30 min to be upated Mar 22 10:47:47 then update it when you leave the app :) Mar 22 10:48:00 can't you just fire the updateservice yourself? Mar 22 10:48:13 Dammit. I was getting my hopes up for practically nothing. I see no discernible difference between ARM-emulated 2.3.3 and x86-emulated 2.3.3 on my HP dc7700 with VT... Mar 22 10:48:58 I ran an x86 image with all the defaults set and it's supposedly running with "HAX is working and emulator runs in fast virt mode" Mar 22 10:48:59 Leeds: that's what I'd like to do, but I don't how to do it Mar 22 10:49:15 I wonder what kind of performace boosts are to be expected... Mar 22 10:49:36 maxagaz: startService? Mar 22 10:50:50 Leeds: yes, well restart Mar 22 10:51:06 broadcast an intent? Mar 22 10:51:42 Leeds: starting a service will kill its former instance ? Mar 22 10:52:03 why do you need to start it? why not just poke it to update? Mar 22 10:55:49 calling startService will not create a new instance of an already running service, maxagaz. Mar 22 10:56:14 Leeds: how to poke it update ? Mar 22 10:56:43 just call the startService-Method with an intent containing the information you want. See http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent) Mar 22 10:59:36 Leeds i cant get somethign to appear above a tabhost, u ever done that? Mar 22 10:59:59 don't think so, no Mar 22 11:00:13 should be easy but when i do it the tabhost just vnaishes Mar 22 11:00:58 According to the documentation, the tabhost must be the layouts root element, gaz`. Mar 22 11:01:11 thats what i thought but ive managed to make itn ot Mar 22 11:01:13 so ithink thats wrong Mar 22 11:01:27 plus surely u can do a header on a page then tabs below that somehow? Mar 22 11:02:18 anyone know how to get the x86 emulator working with the google apis? Mar 22 11:03:06 You could use the actionbar-APIs to have your action bar above the tabs, gaz` Mar 22 11:03:43 oh Mar 22 11:03:49 never even heard of actionbar Mar 22 11:04:23 it's part of the 3.0+ API, but you can use it in older versions with http://actionbarsherlock.com/ Mar 22 11:04:23 gaz`,: New thing in Android 4 Mar 22 11:04:34 sorry, 3.0+ Mar 22 11:06:27 I want to insert check boxes to extendablelist view. there the list is populated with a pre defined string array. and children are populated with the data from a database. I have no where to start can u help me? Mar 22 11:07:46 storkme: that depends on Google releasing an x86 version... I wonder if they've done that / plan to do that. Mar 22 11:08:07 they have Mar 22 11:08:10 in adt tools 17 Mar 22 11:08:21 as far as i can tell it's only available on api level 10 Mar 22 11:08:52 hmm i think i can do somethign easier Mar 22 11:08:55 not sure how tho Mar 22 11:09:00 this is insane as usual Mar 22 11:09:20 Ahh Mar 22 11:09:26 I want to insert check boxes to extendablelist view. there the list is populated with a pre defined string array. and children are populated with the data from a database. I have no where to start can u help me? Mar 22 11:10:21 storkme: It is only available in API 10 without Google apis. If noone else builds an image with Google API support I think you're out of luck. Mar 22 11:10:34 diyoniwa: http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/ Mar 22 11:10:50 is a decent place to start Mar 22 11:11:09 balls :( Mar 22 11:11:14 thanks anyway drlaban Mar 22 11:12:29 Rrrr, I'm a bit annoyed that I can't get the intel-x86 image to present crisp icons and graphics. Mar 22 11:13:55 And of course my high hopes for performance boosting. But that's mostly just because of myself. :p Mar 22 11:15:54 SURELY theres a way to have something above a tabhost, relativeview works but it just covers it up it doesnt logicaloly knock it down the page Mar 22 11:16:34 @MDijkstra: thanks :D ill look in to it Mar 22 11:17:40 would it be a bad idea to have a location listener in my application class? Mar 22 11:17:46 why are you using tabhost anyway? Mar 22 11:17:50 gaz`: Don't know if this is what you're looking for but here goes nothing: http://www.stackoverflow.com/questions/5713671 Mar 22 11:18:52 storkme are they depreciated or something? Mar 22 11:18:53 thx drlaban Mar 22 11:19:04 should be using fragments now Mar 22 11:19:09 instead of tabhost Mar 22 11:20:10 gaz`: And something else: http://www.stackoverflow.com/questions/5876547 Mar 22 11:21:37 very deprecated Mar 22 11:21:54 storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Mar 22 11:21:55 what is the exact alternative to tabhost? Mar 22 11:21:59 ah Mar 22 11:22:10 traditionally, fragments and a viewpager Mar 22 11:22:19 if you want the user to be able to swipe between views Mar 22 11:22:26 ive always used my own custom tabhost anyway Mar 22 11:22:41 i just re-wrote it to accept fragment classes aswell as activities Mar 22 11:23:14 or you use the actionbar-api, which has tab navigation Mar 22 11:23:26 why is this impossible grr Mar 22 11:23:27 yeah, that Mar 22 11:23:52 im a rebel, i like to do everything my own way Mar 22 11:24:15 a rogue like john mccain Mar 22 11:24:21 exactly Mar 22 11:24:48 yipikayaye Mar 22 11:25:32 well i dont want to lose support for 2.1 users Mar 22 11:25:34 so i cant Mar 22 11:25:39 lol 2.1 Mar 22 11:25:43 you can, with actionbarsherlock, gaz` Mar 22 11:25:56 i think theres only like 10% on 2.1 and < Mar 22 11:25:58 now Mar 22 11:26:17 also fragments are compatible from 1.6 Mar 22 11:26:23 you just download the compatibility library Mar 22 11:26:25 thats quite a lot Mar 22 11:26:28 nah Mar 22 11:26:37 i only develop for 2.2 and > Mar 22 11:28:16 on my stats for the first aid app, 17% are on 2.2 and 72% are on 2.3 Mar 22 11:28:30 2.9% are on 4.0 Mar 22 11:28:30 checked mine 16% of uy user son 2.1 Mar 22 11:28:41 how manu total downloads? Mar 22 11:29:24 about 80k Mar 22 11:29:30 hm Mar 22 11:29:36 there was a reason why i dont develop for 2.1 Mar 22 11:29:39 but i cant remember Mar 22 11:29:44 hehe Mar 22 11:29:50 As we said, gaz`, you can use the compatibility library or actionbarsherlock, which contains the compatibility library. Mar 22 11:30:22 i cant make any sense of actiobarsherlock Mar 22 11:30:29 a few screenshots on their site might help Mar 22 11:30:34 ther emust be another way also surely Mar 22 11:31:01 there's always another way! Mar 22 11:31:25 how hard can it be to have something and then a tab host Mar 22 11:31:37 it's just a library to use some of the newer android features on older devices. especially the actionbar. It looks like standard android, nearly all of the documentation is on te official android developer site, because that's what it does. Mar 22 11:32:12 hey, I'm trying to connect my tablet device to a usb FTDI - and I wanted to know, where can I find the things I need to write for my device (ARCHOS 101) for this function : controlTransfer ? Mar 22 11:33:02 id liek to use the heirarchy viewe rbut it doesnt detect my device Mar 22 11:33:17 i dont think it works with devices period Mar 22 11:33:18 its retarded Mar 22 11:33:23 ah Mar 22 11:34:20 uh, works fine with my device Mar 22 11:34:26 you're retarded Mar 22 11:34:43 how did you get it working with your device Mar 22 11:34:49 i've tried 3 devices and none of them work Mar 22 11:34:56 i read the instructions and then i clicked the buttons Mar 22 11:35:09 and what did the instructions say Mar 22 11:35:20 "manual" Mar 22 11:35:52 Some custom roms lets you use hierarchyviewer on device, most stock roms do not Mar 22 11:36:25 If you don't want to start playing with custom roms, look up ViewServer (made by romainguy) and implement it in your app Mar 22 11:36:37 I just set up usb debugging, used ddms, clicked on hierarchy viewer, ???, profit Mar 22 11:36:54 wow i never thought to try that pragma_! Mar 22 11:37:02 what a legend romain is Mar 22 11:37:04 also, jdb and traceview both work fine with my device Mar 22 11:38:35 hey hey i did it Mar 22 11:38:37 is there no method that gets called in Application when the app is closed? Mar 22 11:38:50 depends on what you want to do Mar 22 11:38:51 onTerminate apparently is only for emulators Mar 22 11:38:53 which is silly Mar 22 11:38:54 and all it took was copious amounts of linearlayouts and a little ganja Mar 22 11:39:09 i thought onTerminate was for the entire app Mar 22 11:39:12 * pragma_ reports gaz` to the FDA Mar 22 11:39:12 nope Mar 22 11:39:22 just for the emulator apparently Mar 22 11:39:50 book im reading never mentione donly emu Mar 22 11:39:53 but then it oculd be wrong Mar 22 11:39:58 This method is for use in emulated process environments. It will never be called on a production Android device, where processes are removed by simply killing them; no user code (including this callback) is executed when doing so. Mar 22 11:39:59 the layouts section is badly rushed over Mar 22 11:40:09 woah Mar 22 11:40:29 finialize() maybe? Mar 22 11:40:30 ill try it] Mar 22 11:41:14 nope Mar 22 11:41:26 maybe it gets cleaned up automatically Mar 22 11:42:00 is full aosp needed for developing apps ? Mar 22 11:42:13 or are sdk and ndk suffiecient fully ? Mar 22 11:42:27 wbooze: sdk is sufficient for most, some need ndk as wekk Mar 22 11:42:29 sdk is enough Mar 22 11:42:29 *well Mar 22 11:42:29 nope, nothing happens, it just vanishes. no callbacks, no notice, nothing. Mar 22 11:42:39 ah ok Mar 22 11:43:01 so the when is aosp full needed then ? Mar 22 11:43:02 once past onPause(), the android system can make your app suddenly disappear without any notice Mar 22 11:43:12 which sucks. Mar 22 11:44:44 yeh thats buts this book says to use onTerminated but says it cant guarantee a call Mar 22 11:44:58 *nuts Mar 22 11:47:12 itll be interesting to see if this listener continues to recive updates when the app is closed then Mar 22 11:49:59 gaz`: I tried adding a linearlayout above a tabhost and it _seems_ to work out as far as i can tell. Mar 22 11:50:37 can somebody help me figure out how to update eclipse to the latest ADT? I've installed the thing through the android sdk manager, then i went to check for updates, and those updates cannot be installed because of conflicting dependencies Mar 22 11:50:52 eclipse is not in program files, i have full write permissions, i am running as admin Mar 22 11:51:03 the error persists despite this Mar 22 11:51:19 this is on windows Mar 22 11:52:53 well that sucks Mar 22 11:53:05 the listener is still reporting Mar 22 11:53:28 i have to force close the app Mar 22 11:55:44 gaz`: Is this a sort of the end result you are looking for?: http://imgur.com/ekMCU.png Mar 22 11:56:14 gaz`: Didn't take more than the original tabhost and a linearlayout above that, and hey pesto. Mar 22 12:11:28 Whats the best way to save an audio buffer to some uncompressed format like wav in Android? Google doesn't return much information at all on the topic Mar 22 12:11:28 drlaban image is gone Mar 22 12:12:27 not sure why i had to do so much work to get it going drlaban Mar 22 12:12:45 gaz`,: Weird, let's see if i typed it wrong: http://i.imgur.com/ekMCu.png Mar 22 12:12:57 Missing an i. it seems I did Mar 22 12:13:10 yeh Mar 22 12:13:13 artists is a tab? Mar 22 12:13:17 looks liek what i wante dyeh Mar 22 12:13:23 'tis a tab Mar 22 12:13:34 I'll pastebin the thing Mar 22 12:13:38 thanks man Mar 22 12:13:45 got it going now but my code has tons of layouts to do it Mar 22 12:13:48 so ill reuse urs Mar 22 12:13:49 :-D Mar 22 12:13:54 why I'm getting always 'false' from : hasPermission? Mar 22 12:14:10 cus u no has permission? Mar 22 12:14:10 because you dont have permissions? Mar 22 12:14:11 forgot to set permission in manifest? Mar 22 12:14:21 gaz`: Well, we'll have to see if it fits your requirements. :) Mar 22 12:14:35 this app is well nutty Mar 22 12:14:41 the gui will look astounding if i get it right Mar 22 12:14:50 I try to read from usb.. Mar 22 12:14:54 making it all scale etc makes it tougher of course, iphone gui devs got it made Mar 22 12:15:19 and I wrote in the manifest : Mar 22 12:16:35 anyway to remove the borders from an imagebutton so its only the exact size of the image Mar 22 12:16:57 you could get the image by calling getDrawable Mar 22 12:17:00 or what ever the method is Mar 22 12:17:06 then doing getWidth, getHeight Mar 22 12:17:08 gaz`: http://pastebin.com/ZNawgDnH Mar 22 12:17:19 ah yes, thx man Mar 22 12:17:40 thx drlaban Mar 22 12:17:59 gaz`: Np Mar 22 12:19:20 I have a Maps activity, and i want it tell me where I am; I don't want to feed it a geoPoint, I want it to be created dynamically and set on the map Mar 22 12:19:47 can't seem to wrap my head around how that will go down Mar 22 12:20:16 I'm using a library called INetAdress but it only returns the locale of a given IP/domain name Mar 22 12:36:29 Argh. I'm using HttpPost to send an image and some extra string data. Users tend to break the string by adding funky characters like ?\/^ leading to IllegalArgumentException: Illegal character in query. How do I go about replacing those illegal characters? Mar 22 12:37:09 Or escaping them works as well. Mar 22 12:41:14 drlaban, use Base 64 Mar 22 12:43:17 drlaban: or URLEncoder.encode() Mar 22 12:46:46 embed, dada: Thank's for the pointers. Managed to get it working with URLEncoder. Found out after testing that I have to do this separately for every argument I want to send with the string. Mar 22 12:47:10 embed, dada: I will however look into Base64 as well. Mar 22 12:52:34 anyone know why the v7 support lib has "gridlayout" in its name Mar 22 12:53:54 n/m, apparently android-support-v4.jar is still the one to use Mar 22 12:55:08 The -vX is the minimum api level it works on Mar 22 12:55:17 ah Mar 22 12:55:18 Not versioning af the library Mar 22 12:55:32 i wondered why there was a v13 :P Mar 22 12:55:47 ooohh Mar 22 12:55:52 that makes so much more sense Mar 22 12:56:26 It's just like the -vX qualifier on resources Mar 22 13:02:32 u cant see a colour like this in code? time.setTextColor(0x718DAC); text vanishes Mar 22 13:03:06 add 0xff000000 Mar 22 13:03:21 you need to implicitly set the alpha channel Mar 22 13:03:30 so its 8 chacaters not 6 Mar 22 13:03:40 aha Mar 22 13:03:42 cheers Mar 22 13:05:28 CallumTaylor: Implicitly? Isn't that explicitly? Mar 22 13:06:48 it is :P Mar 22 13:07:05 potato potato Mar 22 13:12:22 hi guys Mar 22 13:12:42 which the best websites with android news ? app reviews, releases, coding, etc... ? Mar 22 13:13:01 err Mar 22 13:13:02 good question Mar 22 13:13:13 http://google.com Mar 22 13:13:17 stackoverflow.com Mar 22 13:13:35 ignore CallumTaylor; he's confused Mar 22 13:13:53 u just trolin Mar 22 13:13:57 for iOS i know this website: http://appadvice.com/, its cool.... is there somthing for android ? Mar 22 13:14:00 ahhahahah Mar 22 13:17:15 jebus how many trillion sites are there that clone the market Mar 22 13:18:51 hmm Mar 22 13:18:57 actually he might not be trolling, just really bad Mar 22 13:18:58 is the new sdk any good? Mar 22 13:19:24 rubbish Mar 22 13:19:34 jaykay it's pretty sweet Mar 22 13:19:37 *hides from lov* Mar 22 13:20:37 hmm ive got a set of tabs that contain rows of data, i have a linearlayout holding all this with a backgrund, works fine but when i scroll the bg goes white and wont go back to the image til i stop scorlling Mar 22 13:21:03 I'm too itchy on the trigger finger : ( Mar 22 13:24:13 can someone explain to me why exporting an android project with ADT 17 has now resulted in classes being stripped out? is proguard ran regardless now? Mar 22 13:24:43 so the new sdk isn't good, thanks Mar 22 13:25:16 lets just say Mar 22 13:25:20 yesterday everything was fine Mar 22 13:25:24 today everything is not fine Mar 22 13:25:33 the only variable that has changed not including time, is my ADT version Mar 22 13:26:50 why didnt you mention this earlier Mar 22 13:26:56 im in the middle of upgrading Mar 22 13:27:16 everything works for me (on adt 17) Mar 22 13:27:42 i haven't exported yet, but i already used proguard Mar 22 13:27:58 *raising hand* I want to ask a question! I want to ask a question!: _What_ isn't working? Mar 22 13:29:59 I think it was my proguard config Mar 22 13:30:05 but I'm not specifying anywhere to use proguard Mar 22 13:30:28 works like a champ for me Mar 22 13:37:26 hi all .. I am trying to create a test proyect under android myProject Mar 22 13:37:59 I created a tests folder ... next is create the project there ? Mar 22 13:45:44 heh, new fruit ninja wants to be able to read my contatcs, record video, and read my phone state... what are these devs thinking Mar 22 13:46:23 ugh x_x would be nice if my phone was actually getting the gps location Mar 22 13:46:27 no wonder why my app isnt working Mar 22 13:46:52 Yeah, I like to wait a few days before updating the ADT Mar 22 13:47:02 because there's usually some fun surprise I'd like someone else to find first. Mar 22 13:47:05 wongk: Obviously they want to take pictures of you .. doing stuff .. and send it to all your friends Mar 22 13:47:24 lol Mar 22 13:47:31 lov: everyhting is kosher for me so far Mar 22 13:47:46 i remember the company i work for, before i started, they made a web android app and they didnt understand permission Mar 22 13:47:50 so they just requested every one Mar 22 13:47:53 some fun new deprecation warnings, that's about it Mar 22 13:48:07 CallumTaylor: hah! Mar 22 13:48:11 I get about 60 deprecating warnings when I build now :| Mar 22 13:48:30 the app is still live, i need to finish writing the update Mar 22 13:48:50 CallumTaylor: Did they also explain in the app description that they didn't understand permissions? Cause then I would've been ok with it. ^^ Mar 22 13:48:57 lol no Mar 22 13:49:10 but people do review it like 'why does the app need x?' Mar 22 13:49:27 i wouldnt have downloaded it Mar 22 13:49:39 drlaban: so if i write an app to hack your phone, and write in the description "i dont understand permissions", you'll install it? :P Mar 22 13:49:42 i wont install some apps my own company makes because the ask for permissions im not comfortable with Mar 22 13:49:51 lol Mar 22 13:50:08 hi Mar 22 13:50:46 ive seen some apps can let the user send feedback to the market directly from the app... how does it work? Mar 22 13:50:57 wongk: Haha! When you put it _that_ way. If you in the description explain that it will hack my phone, then I'd probably install it in the emulator, though. :) Mar 22 13:51:26 lov: I found it Mar 22 13:51:33 I was lured in by 'FASTER EMULATOR LOL!" Mar 22 13:51:40 and "NO MORE CRAZY XML PREFIXES!" Mar 22 13:52:08 is it possible for the app user to give feedback direct from an app? how..? Mar 22 13:52:43 Create an intent to send an email? Mar 22 13:53:30 you install it and go to the app on the market and leave a comment, requires a google account.... Mar 22 13:53:33 SimonVT: blasphemy Mar 22 13:54:00 feesh: yeah, I need to set up a test env to use this Mar 22 13:54:08 and see whether anything breaks catastrophically Mar 22 13:54:22 no more crazy xml prefixes? Mar 22 13:54:40 I'm assuming he means for xmlns for custom styles/themes/etc Mar 22 13:55:05 eh i just usualy type like "lay" then ctrl+space enter Mar 22 13:55:21 i usually just type what i actually want Mar 22 13:55:28 because "layout" is a prefix of >9000 attributes Mar 22 13:55:31 auto complete ftw Mar 22 13:55:33 so like "wei" for layout_weight Mar 22 13:55:38 width and height are usually at the too Mar 22 13:55:39 top Mar 22 13:57:01 Mikellip i can see im logged in with my gmail.. but can an app send an automatic mail from the app directly to the market? Mar 22 13:58:05 has android come any further in what kind of stuff you can do on the lower level with audio? (like can you record phone calls, or generate tones, etc)? Mar 22 14:00:36 dannyD_: it's not an email - it's a web form... imagine if it was an email - every man and his dog would send emails, rating their own apps... o.O Mar 22 14:01:19 Mikellip ive just rated an app directly from the app itself.. aha.. ok.. where can one find such a feedback form :D POST? Mar 22 14:01:44 Not done it myself Mar 22 14:01:48 hmm guys Mar 22 14:01:52 i've gota viewpager Mar 22 14:02:00 is it me or is google play and google play dev console redirecting to google search front page? Mar 22 14:02:01 Just rated through market Mar 22 14:02:12 how can i recreate a view? Mar 22 14:02:22 or rather the fragment i think Mar 22 14:02:46 lol, http://play.google.com is 404 now Mar 22 14:03:14 pragma_: nuh-uh Mar 22 14:03:16 i get redirected to https://play.google.com/store Mar 22 14:03:16 i'm trying to start google maps at a certain coordinate and add a label. It works, unless i have an ampersand (&) in the label. I use intent with Uri.parse( "geo:lat,lng?q=lat,lng(labelname)" ); How can I pass the ampersand? Mar 22 14:03:51 Mikellip look: http://kozyr.zydako.net/wp-content/uploads/2010/05/defaultRatingBar.png Mar 22 14:04:10 its something like that.. super handy.. but i cant find any posts about it.. Mar 22 14:05:05 oh fun, adt 17 reverted back to the old way of class management :/ Mar 22 14:05:19 have to reference projects in every project that references them Mar 22 14:05:38 so if you have an android lib that requires a java project, the java project needs to be in everythuing that uses the android lib Mar 22 14:06:33 does any one knows what the permission I need to add to the manidest in order to be able to read/write from/to a usb accessory device? Mar 22 14:07:54 Mikellip check this out ya.. http://www.androidsnippets.com/prompt-engaged-users-to-rate-your-app-in-the-android-market-appirater Mar 22 14:08:53 Yeah done through market Mar 22 14:10:10 when recording video using mediarecorder and setOutputFile(FileDescriptor), on android 2.3.6 everything is fine, on android 3.2 the moov atom is corrupted. Anyone here to help? Mar 22 14:10:15 wtf, I updated and my emulator is still slow and crappy Mar 22 14:10:27 nor does it support network Mar 22 14:11:02 it's the x86 emulator that is supposed to be faster Mar 22 14:11:03 shroomyreader: the emulator IS slow :-P ...though never had a network problem... Mar 22 14:11:10 do you have x86 system images? Mar 22 14:11:58 I only see ARM images Mar 22 14:12:12 is it rolled out for everyone at once ? or in geographic sections ? Mar 22 14:12:19 There's an api10 x86 image Mar 22 14:12:21 That's it Mar 22 14:12:50 Why only for api 10 ? Mar 22 14:13:04 That's all intel provided so far Mar 22 14:13:21 Thats a bummer. Mar 22 14:15:15 o_O Mar 22 14:15:25 so there's only x86 support for the API 10 emu? Not 14/15? Mar 22 14:15:41 Nope Mar 22 14:16:21 The x86 images are separate from the SDK platform you download Mar 22 14:18:48 is there a way to make a ttf font be used righ throughout the app without having to explcitily set it for each textview etc Mar 22 14:19:48 gaz`: can you set it on the theme? Mar 22 14:19:52 * evancharlton doesn't know Mar 22 14:19:59 checking now Mar 22 14:20:04 you can't ;O Mar 22 14:20:13 oh Mar 22 14:20:13 https://plus.google.com/116031914637788986927/posts/UV8h38Q7Vcn Mar 22 14:20:15 use my class Mar 22 14:20:32 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITextView.java Mar 22 14:20:48 i made it so you can specify the font in XML Mar 22 14:21:09 but it only loads fonts from /assets Mar 22 14:21:10 nifty! Mar 22 14:21:16 so without it u need to set it each time? Mar 22 14:21:25 normally you would have to do it in code Mar 22 14:21:42 but if you're like me and like to use the MVC model properly, you can use this to use it in XML Mar 22 14:21:43 how nuts is that Mar 22 14:21:52 yeh Mar 22 14:22:06 im not sur ei do anything correctly :) Mar 22 14:22:08 there's a lot of shit that isnt included in the xml that should be Mar 22 14:22:21 but this book im reading is telling me what ive figured out form coding it and being here which is good news Mar 22 14:22:24 or the other way round Mar 22 14:22:30 you cant set the text style in code Mar 22 14:22:40 to bold, italic or w/e, you can only do it in xml Mar 22 14:22:51 ah Mar 22 14:22:57 can use spannable strings tho right Mar 22 14:23:08 yeah but you shouldent have to Mar 22 14:23:14 you shouldent have to parse it as html Mar 22 14:23:20 yeh Mar 22 14:23:24 thats the way i get around it in my class anyway Mar 22 14:23:32 but it does the hard work for you Mar 22 14:26:47 hey who was bitching about proguard deleting classes earlier? Mar 22 14:27:20 I think it was feesh Mar 22 14:27:52 im having the same shit Mar 22 14:27:59 fuck you ADT Mar 22 14:30:58 have you tried not writing useless classes? Mar 22 14:32:14 good point Mar 22 14:32:40 if proguard thinks they are useless Mar 22 14:32:46 ill just delete them and check it in Mar 22 14:32:50 yep Mar 22 14:32:56 it's probably just doing you a favor Mar 22 14:34:36 hi: the action bar tabs only allow switching between framents or also between activities? Mar 22 14:35:57 "geo:0,0?q=0,0(a&b)" <-- how to make a Uri where &b is not seen as a seperate query but part of the q-query? Mar 22 14:36:51 xorgate: escape the &? Mar 22 14:37:22 yeah but how. Uri.Builder doesn't seem to be able to give me the correct uri Mar 22 14:37:27 & Mar 22 14:37:32 erm, &? Mar 22 14:37:43 hm.. %26 Mar 22 14:38:00 & is html Mar 22 14:38:03 i think Mar 22 14:38:04 xorgate: actually, I think what you're looking for is .addQueryParameter("q", "0,0(a&b)"); Mar 22 14:38:09 that should do the right thing Mar 22 14:38:18 that seems like the best solution Mar 22 14:38:26 ok, but then i'm with the part before the ?q Mar 22 14:38:32 &hampstersand; Mar 22 14:38:37 :p Mar 22 14:38:37 and by .addQueryParameter I mean .appendQueryParameter Mar 22 14:38:38 i think thats what you are looking for Mar 22 14:38:47 xorgate: hmm? Mar 22 14:39:36 xorgate: what you should be doing is .scheme("geo").authority("0,0").appendQueryParameter("q", "0,0(a&b)").build() Mar 22 14:39:52 what kind of authority is 0,0 anyway? Mar 22 14:40:00 wth is authority anyway :0 Mar 22 14:40:09 host name == authority Mar 22 14:40:35 fuck the authority Mar 22 14:40:35 ! Mar 22 14:40:41 http://google.com/search?q=foo <-- scheme = http, authority = google.com, path = search, query = "q=foo" Mar 22 14:40:44 there's URI 101 Mar 22 14:40:59 0,0 are latitude/longitude Mar 22 14:41:03 yes Mar 22 14:41:23 it was just general musings on URI design Mar 22 14:41:39 ^_^ Mar 22 14:41:47 Mikellip mm there is some way to rate an app directly from the app.. please download 'soundboard fart' Mar 22 14:42:04 ok i did what you said evancharlton but now i get geo://blabla Mar 22 14:42:14 i require 0 slashes Mar 22 14:42:35 Mikellip and after installing it, run it.. then after been to menu, exit it, and it will ask you to rate it..directly,, not with market. Mar 22 14:42:57 xorgate: hrm, gotta be a way to suppress that Mar 22 14:43:02 * evancharlton does some poking around Mar 22 14:43:27 this crazy app bird bar premium is going it too, download it and try to figure it out Mar 22 14:44:31 xorgate: try .opaquePart("geo") instead of .scheme("geo") Mar 22 14:45:42 evancharlton heh now it just removes "geo" altogether Mar 22 14:45:46 wat Mar 22 14:45:49 keeps the slashes though Mar 22 14:46:20 https://gist.github.com/8a64e2cd6a0ce0d35128 Mar 22 14:46:25 * evancharlton digs more Mar 22 14:46:35 mikedg your talking to me? Mar 22 14:48:09 i'd correct that with "you're" Mar 22 14:48:14 but i think "are you" is better Mar 22 14:48:32 evancharlton are you in mountainview? Mar 22 14:48:42 he's in Viewmontana Mar 22 14:50:25 is it io ticket time yet :( Mar 22 14:50:46 is there a way to get rod of that line below a tabhost that shows what tab ur on? Mar 22 14:51:31 ah its on stackoverflow Mar 22 14:51:37 dpends on how thick of a rod you want Mar 22 14:52:49 evancharlton http://tools.ietf.org/html/draft-mayrhofer-geo-uri-00 : 8. if the final URI is to include a 'query' component, add the Mar 22 14:52:49 component delimiter "?" to the end of the result, followed by the Mar 22 14:52:49 encoded query string. Mar 22 14:52:52 qupz Mar 22 14:52:55 i'll do that Mar 22 14:54:12 holy crap Mar 22 14:54:18 does all of SF have the plague? Mar 22 14:54:53 no Mar 22 14:54:56 they have the plaque Mar 22 14:55:01 they are the walking dead Mar 22 15:00:02 Q: Can AndroidManifest.xml has more than one 's? Mar 22 15:00:43 tu bailas en la discoo..oooOOoo.. Mar 22 15:00:48 well for those interested this was the solution: https://gist.github.com/d3d7c3ea3d53b5a72277 Mar 22 15:00:49 http://phandroid.com/2012/03/22/is-this-image-of-the-samsung-gt-i9300-our-first-look-at-the-galaxy-s-iii/ Mar 22 15:00:51 are you kidding me Mar 22 15:00:55 they reversed the order of the fucking buttons? Mar 22 15:01:05 assholes Mar 22 15:01:32 thoes are the buttons on samsung Mar 22 15:01:35 its teh same on my s2 Mar 22 15:01:55 the default android order is back home taskswitcher Mar 22 15:02:11 apparrt from the multitask button which is the menu button on my s2 Mar 22 15:02:14 I found a trick to create a "dummy" to get access to access to context from static calls Mar 22 15:02:17 idk it is retarded Mar 22 15:02:23 i dont mind because im left handed anyway :D Mar 22 15:02:26 is ti possible to bind a service and that it doesn't destroy itself after the last bind ? Mar 22 15:02:44 aLeSD: startService() from inside the service Mar 22 15:03:42 Ge0rG, then I 'd like to check when there are no more bindings and a boolean to exit Mar 22 15:03:50 is it possible ? Mar 22 15:04:10 aLeSD: I think android automatically kills the service when there are no more open bindings Mar 22 15:04:18 mmm Mar 22 15:04:28 that's what I won't Mar 22 15:04:35 my experience was i had to explicitly stop it Mar 22 15:04:53 the solution is that the service has to bind itself the first time Mar 22 15:04:57 not to say that Android would not do it "eventually" Mar 22 15:05:06 and unbind iteself on my condition Mar 22 15:05:30 clever ? Mar 22 15:13:32 omfg Mar 22 15:13:47 textView.setText(SomeEnum.SOME_VALUE.name()); Mar 22 15:13:48 you buy someone else? Mar 22 15:13:52 in production code Mar 22 15:14:18 SOME_VALUE? Mar 22 15:14:45 seems liek example psudo code? ( to me ) Mar 22 15:14:51 I don't know this code tho Mar 22 15:15:13 ok im just obfuscating it Mar 22 15:15:14 the point is Mar 22 15:15:21 the name of the enum value was being used as text to display to users Mar 22 15:15:40 how do you know he didnt override the method? Mar 22 15:15:48 oh funny Mar 22 15:15:51 because i have the code? Mar 22 15:15:58 fair enough Mar 22 15:16:20 and name() is final Mar 22 15:16:23 you can't override it Mar 22 15:16:26 is it Mar 22 15:16:31 pretty sure Mar 22 15:16:44 CallumTaylor: also, the name() method of enum is final, so it can't be overriden Mar 22 15:17:03 oh Mar 22 15:17:03 thanks readme ;) Mar 22 15:17:05 :) Mar 22 15:17:05 lol Mar 22 15:17:20 Gotta remember, CallumTaylor, name() is final Mar 22 15:17:21 This might be a dumb question. But what's the difference between the permission for receiving an sms and reading sms. Receiving lets you register a broacastreceiver and reading lets you read the database. But morally aren't they they same, you can simply poll once in a while and get equivalent functionality, right? Mar 22 15:17:25 Should i remove all Log.d() before publish? also, does having Log.d() in a for loop have any effect on performance? Mar 22 15:17:36 well i dont know Mar 22 15:17:45 i think i need a few more people to tell me Mar 22 15:17:56 before i understand that its final Mar 22 15:18:29 generally its good practice to remove any log data yeah Mar 22 15:18:44 but it shouldent affect perfomance Mar 22 15:18:48 brx_: it's not unusual to make it a user settings, so you can get meaningful logs from your users Mar 22 15:19:04 and of course it can affect performane Mar 22 15:19:09 it causes allocations Mar 22 15:19:12 not alot though Mar 22 15:19:20 just outputting text to the concole Mar 22 15:19:20 um, it affects it enough Mar 22 15:19:22 console Mar 22 15:19:39 gonna remove them Mar 22 15:19:49 might also explain why my db operation takes ages Mar 22 15:19:56 you should always think of allocations as something that should be minimized Mar 22 15:20:03 brx_: not likely Mar 22 15:20:07 Depending on how much you output it can affect performance. Mar 22 15:20:13 brx_: if statements on static values will be optimized out by the compiler Mar 22 15:20:20 dont forget that the log cant output as fast as the actual program runs Mar 22 15:20:28 brx_: so if you use a static boolean DEBUG and wrap your log up Mar 22 15:20:31 if you have a loop doing 1000 iterations, it will finish before the log does Mar 22 15:20:36 you can simply exclude them all at once Mar 22 15:20:57 ok thanks Mar 22 15:21:07 static, false, values, that is. Mar 22 15:21:17 readme: problem there is users can't turn it on and off Mar 22 15:21:46 Whats best, Open a new connection and poll or keep the tcp connection open and poll ? Mar 22 15:21:51 Hey, i got this function http://pastebin.com/QTTVxEDh which combines 2 bitmaps.... now - when i use this function the GC is running like crazy - collecting the garbage every 50ms or so... what am i doing wrong? Mar 22 15:22:27 shroomyreader: depends on what you're trying to accomplish Mar 22 15:22:54 I'm polling a webservice Mar 22 15:23:09 at a certain interval, not sure about how much Mar 22 15:23:13 prolly 30 seconds or so Mar 22 15:23:25 sounds like a battery killer Mar 22 15:23:29 wongk: why would you want users to be able to turn logging on and off? Mar 22 15:23:34 maybe for QA, i guess Mar 22 15:23:49 In the fragments docs, the samples use a static method called newInstance() to create new instances of the fragment. Why are they doing this instead of using a constructor? Mar 22 15:23:53 readme: if you have smart users that will send you lgcats?, why not Mar 22 15:23:55 kazoooka should be fine Mar 22 15:23:59 the instance is not a singleton Mar 22 15:24:02 readme: so when they email and say "it doesn't work" i can reply and say "enable this option and send me the log" Mar 22 15:24:07 wongk: yeah I thought so too Mar 22 15:24:11 kazoooka its good that its freeing up memory, else you'd get a BitmapExceedsVM error Mar 22 15:24:15 what would be a power saving design ? Mar 22 15:24:39 shroomyreader: not polling every thirty seconds...? Mar 22 15:24:43 shroomyreader: s/seconds/minutes :P Mar 22 15:24:44 callumtaylor: the GC runs wild, but only if i use this function, also the shown Activity lags a little bit Mar 22 15:25:06 market already sends us stacktraces. i'll pass Mar 22 15:25:11 zambo: Any arguments you want to pass to a fragment has to be passed with setArguments(Bundle) Mar 22 15:25:11 damnit, but I want to know as fast as possible if something has changed server side Mar 22 15:25:14 kazoooka if they're big bitmaps it will do, try putting them in their own thread Mar 22 15:25:28 stack traces don't help debug logic flaws Mar 22 15:25:54 readme: if that's enough that's good, but if you have better logging in your app, it can help... There's work on cooperative bug isolation and program inference from log dumps, both work on this principle. Mar 22 15:25:54 but i can understand if your applications don't ever have any of those :P Mar 22 15:26:01 What's the best practice for polling ? :s Mar 22 15:26:07 hmm, interesting bugs in the android version on the samsung galaxy tab Mar 22 15:26:17 shroomyreader: it's a phone, why do you need almost real-time information? Mar 22 15:26:20 shroomyreader: don't do it all the time, an everlasting service is an antipattern anyway Mar 22 15:26:29 CallumTaylor: ok thx- i guess i have to figure out how to gc myself or so -.-^^ Mar 22 15:26:34 Messaging Mar 22 15:26:38 when i start an activity with an intent to send email and i go through with it the app returns to the same activity that started the email intent Mar 22 15:26:45 how would you solve that then Mar 22 15:26:58 shroomyreader: what kind of messaging? Like, chat? Mar 22 15:26:59 kazoooka you wont be able to stop it from collecting on its own, you can only force it to collect Mar 22 15:27:04 yeah chat is fine Mar 22 15:27:05 oh, no.. i'm just stupid.. Mar 22 15:27:07 just basic text Mar 22 15:27:08 or android :D Mar 22 15:27:37 shroomyreader: experience has shown that most chat apps seem to really kill it with internet usage (and battery) Mar 22 15:27:45 the started email intent does cover the screen of our app, but the back button still operates on our app Mar 22 15:27:48 weird.. Mar 22 15:27:56 balls Mar 22 15:28:04 Ok, thanks for the info Mar 22 15:28:49 with the normal email app it works fine.. it's just the google mail activity that shows this weird behaviour... ok, good to know Mar 22 15:28:57 CallumTaylor: Ok thank you very much for you help. I appreciate that! =) Mar 22 15:29:05 np Mar 22 15:29:55 lol at Market comment: "doesnt work. waste of time" Mar 22 15:30:16 'll never know what doesn't work. fu user! Mar 22 15:30:51 shroomyreader: your best bet is going to be push style, leave the connection open, wait for the server to send you data Mar 22 15:30:51 :( Mar 22 15:30:59 I got a comment saying my app was shit, it didn't scan a card Mar 22 15:31:03 shroomyreader: but it won't be light on battery Mar 22 15:31:09 I was unaware that most phones had magnetic strip readers Mar 22 15:36:09 what happen if a service is foreground and the last client unbind ? Mar 22 15:36:54 feesh: they tried to use Square's box with it? :) Mar 22 15:40:14 I have been getting recruiter calls left and right recently Mar 22 15:40:18 p_l: I highly doubt it Mar 22 15:40:31 Ologn: do you feel like a beautiful lady in a dive bar? Mar 22 15:40:45 after installing the r17 update the sdk manager tells me that it can't find JDK on my system Mar 22 15:41:05 "Failed to convert path to a short DOS path: C:\Windows\system32\java.exe" Mar 22 15:41:14 feesh: I'm a beautiful lady to those wearing beer goggles Mar 22 15:42:08 Ologn: sounds like whisky goggles Mar 22 15:42:11 or absinthe Mar 22 15:42:15 is there any activity-level way to know when your children are being measured with onMeasure? Mar 22 15:43:40 override the viewgroup Mar 22 15:43:48 and use the onlayout method Mar 22 15:43:50 i build my app against api 11 (3.0), and specify it to work on at least 4 (1.6). I can run it on my phone (2.2) but the 1.6 emu crashes with a java.lang.VerifyError in my custom widget.. what could be wrong? Mar 22 15:43:53 oh Mar 22 15:43:56 nvm i read that wrong Mar 22 15:44:46 xorgate: your custom widget probably references a class that doesn't exist yet :P Mar 22 15:44:54 Or method Mar 22 15:44:58 xorgate: look at the log messages preceding it Mar 22 15:45:04 or rather that exist when your class is loaded Mar 22 15:45:13 there will probably be some stuff about such and such method or class Mar 22 15:45:38 lov ah yes that helps Mar 22 15:46:04 i do if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB ) { Mar 22 15:46:19 and then a honeycomb method, which should then not be called on 1.6 Mar 22 15:46:37 You need to do that and wrap the method call in a static class Mar 22 15:46:40 unfortunately that's not sufficient Mar 22 15:46:43 yea you cant do that in 1.6 Mar 22 15:46:48 only 2.1+ Mar 22 15:46:53 the class can't be loaded because the classloader doesn't understand how to handle that method Mar 22 15:46:53 oh my Mar 22 15:46:56 so it just barfs Mar 22 15:47:01 hold on ive written something like >9000 times and i'll show you how to do it :) Mar 22 15:47:12 read the backwards compat document :> Mar 22 15:47:23 either use reflection, or put "unsafe" calls in another class Mar 22 15:47:33 so 2.1 does something smarter Mar 22 15:47:36 no Mar 22 15:47:41 the method probably exists in 2.1 :P Mar 22 15:47:48 It just doesn't crash on 2.1 Mar 22 15:47:57 Complains in lolcat, but doesn't crash Mar 22 15:48:04 xorgate: http://pastebin.com/WgEtzriT Mar 22 15:48:08 (if you use the if(SDK_INT) way) Mar 22 15:48:17 what are other options? Mar 22 15:48:22 xorgate: http://pastebin.com/WgEtzriT Mar 22 15:48:32 yes looking canadiancow thanks ;0 Mar 22 15:48:36 that class is perfectly reusable and does its job in any app Mar 22 15:48:41 and the concept will work for anything Mar 22 15:48:41 what canadiancow|work said Mar 22 15:48:57 basically, you dont load the class with the method calls until you check the android version Mar 22 15:49:44 I'm using try {} catch {} on startService, I thought it would prevent the error message this method returns, but not, and the error message is the same in logcat, so why using try catch ? Mar 22 15:49:55 * SimonVT just doesn't support 1.6, much easier :p Mar 22 15:50:00 SimonVT: +1 Mar 22 15:50:01 maxagaz: huh? Mar 22 15:50:05 i support 2.1 on my perosnal app, and 2.2 at work Mar 22 15:50:09 yeah what SimonVT said Mar 22 15:50:27 http://developer.android.com/resources/dashboard/platform-versions.html Mar 22 15:50:27 like Mar 22 15:50:36 0.8% is not worth the hassle Mar 22 15:50:42 6.6% is not worth the hassle, IMO Mar 22 15:50:50 lov: yes, there's something I misunderstood in try catch, isn't to prevent error message and see more in details the error ? Mar 22 15:51:01 I'm probably not going to drop support for 2.1 until I can move to minSdk=11 or 14 Mar 22 15:51:10 lov: in the logs Mar 22 15:51:17 SimonVT: we need GLES2 at work, so it was an easy decision :) Mar 22 15:51:19 but i agree Mar 22 15:51:22 Ah, yeah Mar 22 15:51:29 the ONLY reason i dropped 1.6 in my personal app is because ABS needs 2.1 Mar 22 15:51:31 Is there any way to recieve notifications from the os when say a headset is plugged in? Mar 22 15:51:35 I don't use that fancy stuff Mar 22 15:51:56 I just removed a few unsupported features in 2.1 by checking API level Mar 22 15:53:34 maxagaz: How about you tell us what error is coming up in the logs, or better yet pastebin something for us. Mar 22 15:54:32 maxagaz: you're only catching an exception with try/catch. If an exception at a lower level is caught, logged, and rethrown, you can't do anything about that part. Mar 22 15:54:39 What you should do is prevent the problem from occuring in the first place. Mar 22 15:55:09 man i hate how images less then the screen length get auto rotated.... Mar 22 15:55:37 try { ... } catch (Throwable t) { // Ignore } Mar 22 15:55:38 How I roll Mar 22 15:55:48 I like that you comment out the } too Mar 22 15:55:59 Whatever! Mar 22 15:56:00 try{}catch(Exception e}{e.printStackTrace()} ftw Mar 22 15:56:02 canadiancow|work so in this case i want to call a method on my object at 3.0+, and not call it below 3.0. So i make a private object that has the code it invokes on the parent? Mar 22 15:56:10 and even the resolution goes bathing that way Mar 22 15:57:07 oh nice Mar 22 15:57:09 try { } catch (SecurityException e) { throw new IllegalStateException(e); } Mar 22 15:57:19 eclipse decided to make every project have an error Mar 22 15:57:25 CallumTaylor: sweet Mar 22 15:57:59 xorgate: it has to be a static or outer class. Mar 22 15:58:10 xorgate: and no, you don't invoke code on the parent. Mar 22 15:58:13 fuck sake Mar 22 15:58:18 seriously fuck eclipse Mar 22 15:58:37 xorgate: you encapsulate code that would be unsafe for lower api versions into its own class, and use that class if you're at an API level that supports it. Mar 22 15:58:47 You could always use a factory pattern to handle this Mar 22 15:58:52 what lov said Mar 22 15:58:56 CallumTaylor, ever tried not using eclipse? Mar 22 15:59:06 ive tried everything Mar 22 15:59:11 lov: I'm using this in my onDestroy(): startService(new Intent(this, UpdateWidgetService.class)); It gives me an error popup when I leave my app, with a NullPointerException error Mar 22 15:59:12 actually Mar 22 15:59:14 i have no choice Mar 22 15:59:20 canadiancow|work basically did a factory pattern there come to think of it Mar 22 15:59:20 $work? Mar 22 15:59:49 other classes dont even know that there are two completely different implementations Mar 22 15:59:53 and it's safe :) Mar 22 16:00:01 maxagaz: consider starting the service in onCreate instead of onDestroy...... Mar 22 16:00:13 The support lib does does a lot of wrapping as well, uses a few different patterns iirc.. check that out as well Mar 22 16:00:38 lov: I want to be sure the widget is updated when the app closes Mar 22 16:01:46 lov: it also crashed when I put it in the onCreate() Mar 22 16:02:06 .. so where is the NPE? Mar 22 16:02:31 Is there any way to recieve some sort of notification when say a headset is plugged in .. ie when there is an audio route change? Mar 22 16:02:56 Hello Mar 22 16:03:08 I'm having a problem trying to get a UI I'm writing to display correctly on Android Mar 22 16:03:20 Like on the right there's a button, and let's say on the left is text. If I set the weight of the text to 0.75 and the button to 0.25, it's fine if the text is short. Mar 22 16:03:31 But if the text is too long, it causes the button to shrink Mar 22 16:03:59 Did you set your widths to 0dp? Mar 22 16:04:04 I have .setEllipsize(TruncateAt.END); and .setSingleLine(); set, problem is that the setEllipsize doesn't kick in before the weight-boundary Mar 22 16:04:14 SimonVT: Well I'm doing this via code Mar 22 16:04:34 I've set the width to fill parent and height to wrap Mar 22 16:04:40 but as for specific dimensions, no Mar 22 16:05:08 oehman: yeah. https://developer.android.com/reference/android/media/AudioManager.html ... explicit calls & bcast intents Mar 22 16:05:33 Set the size to 0dp in the orientation it stretches Mar 22 16:06:25 dragorn: thx Mar 22 16:06:49 SimonVT: How to go about doing that programmatically Mar 22 16:06:58 The examples I find use specific pixel widths Mar 22 16:06:59 In your layoutparams Mar 22 16:07:02 I want to stick with ratios Mar 22 16:08:55 thanks guys i stubbornly went to reflection to solve the problem Mar 22 16:09:02 Hi guys. I got SIGSEGV 11 with this I/DEBUG ( 1505): #00 pc 00016558 /system/lib/libc.so (strlen). What can cause this seg fault? Mar 22 16:09:37 fairuz: are you running jni code? Mar 22 16:09:39 Hey has anyone seen a VerifyError with the Instrumentation Test framework? Mar 22 16:09:50 Hey, sorry if this is a really obvious question. Mar 22 16:09:50 I'm going to use a handler during my splash screen to load up image resources in a singleton class, and update a progress bar. Mar 22 16:09:50 My question is, if I have resources which are used on the layout of another activity, for example it just says on an imageview res/someimage, how do I pre-load this image? What's the best way to do it? Also, if I create an array and put each part = R.id.someId, is that going to actually LOAD the resource, or just store a kind of pointer to it? Mar 22 16:09:50 Okay, I set the width to 0 but now everything disappears Mar 22 16:09:54 Ge0rG: yes Mar 22 16:10:05 fairuz: then your jni code is faulty. Mar 22 16:11:40 is there any way to know, within an activity, when the children are being laid out? Mar 22 16:13:26 SimonVT: Do I need to set the children's width to 0? Mar 22 16:13:55 only if you need to Mar 22 16:13:57 Yes, set the size of the view you want to stretch to 0dp in the orientation it'll stretch Mar 22 16:13:57 Darn it - I think I do B| Mar 22 16:14:13 The whole time I was setting the parent to 0 Mar 22 16:14:20 causing the contents to not show Mar 22 16:14:28 but now I just set the inner views to 0 and the stretching works fine Mar 22 16:14:29 abaratican onMeasure? onLayout? somewhere there is your answer Mar 22 16:14:29 Ge0rG: Most likely there's something wrong with my strings. :( Mar 22 16:14:45 LinearLayout cannot be resolved to a type Mar 22 16:15:56 import android.widget.*; Mar 22 16:18:56 also, when the orientation changes, all the contents I've added to a view are lost. Thus I know the UI gets flushed, but what I want to know, is if the contents of my app's memory get flushed? Mar 22 16:19:54 e.g., my app collects data into a linked list, then shows it in a view, orientation changes, view loses list, does my app lose the data it collected? Or can I just re-run a loop to re-add all the data Mar 22 16:21:49 best install graph ever: https://chart.googleapis.com/chart?cht=lxy&chd=e:AACIERGZIiKqMzO7RETMVVXdZmbud3f.iIkQmZ,AAAAAAAAAAAAAAAnDqDqCcB1B1DDNaOoQdSS88&chds=0.0,1.0&chs=105x75&chma=1,0,1,1&chco=42b6c9ff&chls=2.5,1.0,0.0&chxl=0:%7C%7C1:%7C%7C2:%7C Mar 22 16:26:19 amount of installs 5-10 ? Mar 22 16:29:48 http://goo.gl/uWVtP <-- for everyone else as lazy as I am Mar 22 16:31:30 evancharlton: i dont get it Mar 22 16:31:37 just double click it? Mar 22 16:32:31 canadiancow|work: he took your link and made it a goo.gl link Mar 22 16:32:38 canadiancow|work: doesn't work in my client Mar 22 16:32:44 lov: i know what he did Mar 22 16:32:45 all the weird characters break it Mar 22 16:32:48 i was wondering why, which he just explained Mar 22 16:32:49 and yeah Mar 22 16:32:51 get a better client :P Mar 22 16:32:55 so I had to drag-select the whole thing Mar 22 16:32:55 that kind of breaks halfway in the middle of irssi Mar 22 16:32:59 yep Mar 22 16:33:24 time to redirect that to lemonparty Mar 22 16:33:29 haha Mar 22 16:33:47 oh god Mar 22 16:33:49 I have an activoty with many components in a ScrollView. I have a text field near the end of the list, and the activity auto-scrolls when opened. How to avoid that? Mar 22 16:35:10 are there any location providers in the wild that do not supply accuracy? i know just sending a command to the emu does not necessarily have accuracy Mar 22 16:36:00 don't know why i would think that siwtching to software buttons would standardize the button order http://www.droid-life.com/2012/03/22/samsung-gt-i9300-photos-appear-this-isnt-the-galxay-s3-is-it/ Mar 22 16:36:21 mikedg: yay OEMs :( Mar 22 16:36:26 why would this return null array while there is one widget: intent.getIntArrayExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS) ? Mar 22 16:37:12 xorgate: there are definitely poorly performing location providers in the wild, so it's unlikely but still possible. Mar 22 16:38:13 i guess i could just supply them with a bogus accuracy so my 'freshness' algo can remain Mar 22 16:38:31 if Samsung designed the iPhone, the home button would be on the top of the device Mar 22 16:38:42 Hi Mar 22 16:38:54 if Motorola designed it, the home button would be on the upper right back of the device Mar 22 16:38:54 mikedg: if samsung designed the iphone, it would look like touchwiz Mar 22 16:38:56 heyoo Mar 22 16:39:19 hey, lawsuit jokes! Mar 22 16:39:26 touchwiz is iphone, iphone is touchwiz! Mar 22 16:39:30 I feel like a new man with proper x86 support in the emulator on OSX Mar 22 16:39:47 scottferg: truth Mar 22 16:40:07 I'm new to Android testing and I need to figure out how to run a test on the emulator. I have an issue on StackOverflow only there's no help so far: http://stackoverflow.com/questions/9824065/how-do-i-run-an-androiddriver-test-with-junit Mar 22 16:40:45 i cant figure it out and i dont want to read Mar 22 16:43:18 mikedg: Well thanks for the support. Mar 22 16:43:35 Hi! Any dev's for hire? I've got a super simple app and super little time my self.. Mar 22 16:43:54 PM if you are interested Mar 22 16:44:02 see topic Mar 22 16:44:18 oh... Mar 22 16:44:20 sorry Mar 22 16:44:30 Adamantus: ? Mar 22 16:44:33 $300/hour Mar 22 16:44:34 plus snacks Mar 22 16:44:48 $400/hour + horses Mar 22 16:44:51 *w Mar 22 16:44:55 mikedg: I assume you were responding to my request for help? Mar 22 16:45:17 jac0bz1: please don't advertise here. Mar 22 16:45:18 oh no Mar 22 16:45:21 $50/hour + food Mar 22 16:45:31 ill out do any of these so called 'devs' Mar 22 16:45:31 i was talking in reference to the intel vm crap thats new for the emulator Mar 22 16:45:50 mikedg: ic, appologies Mar 22 16:46:11 Any channels where i can advertise for jobs? Mar 22 16:46:15 i will accept payment the form of hookers and cocain Mar 22 16:46:19 try forums Mar 22 16:46:33 take to long Mar 22 16:46:34 haha wongk Mar 22 16:46:44 http://developer.android.com/resources/community-groups.html Mar 22 16:47:33 Never mind, home time. Mar 22 16:47:53 i wish i was home right now x_x Mar 22 16:48:51 what if i want from an Activity to send data to two other Activities? Intent putExtra works only for the next activity... Mar 22 16:49:01 not me, i get paid more where im at :P Mar 22 16:49:57 ancanta: have the other activity pass it along Mar 22 16:50:19 setActionView for a MenuItem, I'm having trouble getting a small progress bar centered. Any thoughts? Mar 22 16:50:37 with putExta again evancharlton ? Mar 22 16:50:53 the actionView is simply a layout file with a LinearLayout, match parent, gravity center, with a small progress bar wrap content :-/ Mar 22 16:52:13 Does anyone work with the instrumentation test framework? Mar 22 16:52:29 ancanta: yes Mar 22 16:54:56 How can I preload an image which is used in an xml layout? Mar 22 16:55:14 If I can load the image into a singleton.. how can I make the xml layout reference that? Mar 22 16:55:34 image, singleton, dousn't sound good :-/ Mar 22 16:55:35 Or do I need to dynamically add the images to each imageview when onCreate is called? Mar 22 16:56:03 ImageView src="@drawable/image" Mar 22 16:56:05 @ancata: http://mobileorchard.com/android-app-development-using-intents-to-pass-data-and-return-results-between-activities/ follow this :D Mar 22 16:56:11 lots of people are saying that, i'm really struggling. Was recommended I use a singleton to pre-load resources, other say don't... not sure of the best way Mar 22 16:56:23 how can i pass a object from one activity to another activity(child activity to parent activity)? Mar 22 16:56:45 MyChiyizPyiz, I understand that, but if @drawable/image is used, doesn't that require it to then reload the image? Mar 22 16:57:07 If you want to change the image set an id android:id="@+id/image" Mar 22 16:57:12 then findViewById Mar 22 16:57:24 to get the image view and setImage(Bitmap) Mar 22 16:57:46 I don't really want to change the image, just to have it use one which was already loaded. Mar 22 16:57:53 Currently my layout has about 30 images, so it loads slowly Mar 22 16:58:00 So,.. I want it to use images which I can pre-load Mar 22 16:58:04 A may encounter out of memory Mar 22 16:58:05 that's my probem Mar 22 16:58:18 you'll want to scale them with inSampleSize Mar 22 16:58:28 They're scaled ok Mar 22 16:58:47 It's just preloading Mar 22 16:58:47 30 images scrolling? Mar 22 16:58:50 are they lazy loaded? Mar 22 16:58:56 If I change the drawable an ImageView is set to show, do I need to call invalidate()? Mar 22 16:58:58 scrolling? Mar 22 16:59:07 ListView, Gridview scrolling Mar 22 16:59:17 Just in a relativeLayout Mar 22 16:59:25 no scrolling Mar 22 17:00:16 gho5t: likely no Mar 22 17:01:08 NutterzUK: so why do you want to transport the image, and where do you want to transport it to? Mar 22 17:01:54 I don't want to transport any images Mar 22 17:02:00 I just want to load them, before the activity is called Mar 22 17:02:42 why won't src in the layout file do that then? Mar 22 17:03:23 If theres 30 images and you set src in each of the ImageViews and the activity takes a while to open, the images are too big Mar 22 17:03:31 My app works a little like this: splash screen-> menu activity -> main game -> feature game -> mini game Mar 22 17:03:55 So, what I would like to do, is during the splash screen, load the images needed in menu activity, main game, feature game and mini game Mar 22 17:04:02 Or... failing that, at least load the images for the mian game Mar 22 17:04:04 main* Mar 22 17:04:20 It takes around 5 seconds when I press on "Play" from menu activity, to load the game Mar 22 17:04:24 if the images are small, 30k ish, just load them again Mar 22 17:04:32 the mini game should have a separate layout file Mar 22 17:04:34 I'm trying to make this happen during the splash screen Mar 22 17:04:41 All of the games have seperate layout files Mar 22 17:04:48 Every activity does Mar 22 17:05:10 so when the Mini Game, the separate activity loads, the iamges will load again :-) Mar 22 17:05:27 and the previous activity will get destroyed if the phone is low on mem Mar 22 17:05:46 and then the user presses back and it will get relaunched as expected Mar 22 17:05:47 So there is no way for me to pre load the images used in the layout? Mar 22 17:05:59 preload = src Mar 22 17:06:00 NutterzUK: why don't you just load and set the images in java? Mar 22 17:06:16 wongk, I can do that, I was just wondering if there was a better way Mar 22 17:06:33 that seems the "the right way" (tm) to me Mar 22 17:07:02 So remove the src from the xml, and add them in on create, loading from a singleton, which pre-loaded images during the splash screen? Mar 22 17:07:16 sounds like a winner Mar 22 17:07:25 *phew* Mar 22 17:07:52 make some sort of ImageRepo Mar 22 17:08:00 THe singleton will cause the activities to leak Mar 22 17:08:05 That's really what I was wanting to do, but thought there may be a way in the XML, to load the images without having to set lots of imageview srcs in the oncreate Mar 22 17:08:22 the image instance will be retained with a reference to the activities layout Mar 22 17:08:43 leaking an activity will crash the app quickly with an out of memory Mar 22 17:08:44 why would an image have a reference to a layout? Mar 22 17:09:30 http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html Mar 22 17:09:31 Surely I want to retain the images, as... using the way it's set out above, the "minigame", when finished, goes back to the feature game Mar 22 17:09:50 Unless this is too much Mar 22 17:09:56 The activity will remain in memory until the singleton is destroyed Mar 22 17:10:00 I found that the sum of all my images, should only use around 6mb memory Mar 22 17:10:20 so don't use the Drawable class Mar 22 17:10:34 so if I call feature game for result, from main game... then go back,.. and do that several times, i'll have many instances of the feature game remaining in memory? Mar 22 17:10:48 correct Mar 22 17:11:03 Eh, how is the activity going to leak? He's keeping references to images, not activities Mar 22 17:11:13 I'm so confused Mar 22 17:11:49 you need to use a Bitmap Mar 22 17:11:53 My singleton isn't going to have or open any activities Mar 22 17:11:58 it's just for images, and some sound Mar 22 17:12:05 ( perhaps some sound, maybe not even any sound ) Mar 22 17:12:36 If I load my image files into a bitmap array, then call that from an activity, will that be ok? Mar 22 17:12:59 ( call some getter method ) Mar 22 17:13:06 probably Mar 22 17:13:39 yes Mar 22 17:13:42 I don't want to make things worse, as it'll take me some time to change it around,... and it does currently *work*, just not smoothly Mar 22 17:13:53 thanks, i'll give it a go Mar 22 17:14:05 I'll let you know if I see any out of memory issues, much much appreciated help! Mar 22 17:14:36 does android really not have a generic Image class? Mar 22 17:15:52 Unable to access jarfile ..\lib\proguard.jar since yesterday when building release.. any ideas? Mar 22 17:16:29 Upgrade fucked up? Mar 22 17:16:54 I'm trying to detect the degrees the phone is currently looking at (for augmented reality purposes). But I can't seem to figure out how to get the phone orientation, for I get some strange values from it. Mar 22 17:17:21 http://pastebin.com/uNWW5Tij <-- how I should supposedly get the az Mar 22 17:17:38 maybe i should just grab the sdk all new Mar 22 17:19:22 if you focus an EditText that's at the bottom of your activity, and the soft keyboard opens, and pushes the entire activity upwards so that the edittext is visible, how can I know that it has panned? Mar 22 17:19:38 or, alternatively, how can I disable this? Mar 22 17:21:07 so, any ideas? Mar 22 17:28:16 Hi all. I jsut updated ADT. A project I have, that used to compile and work, now compiles but crashes on run. Upon starting it, I get this error message: E/dalvikvm Could not find class 'com.google.gson.Gson', referenced from method . However, the jar that contains that code is there, and I have 0 compile time errors. Any hint on how to fix it? I tried to remove and add again dependencies, but that didn't work. Mar 22 17:28:43 Is the jar in libs/ ? Mar 22 17:28:52 yes, it is Mar 22 17:30:14 I have that warning when the class is loaded, then the app crashes when it tries to actually call a method from the .jar. It looks loke the .jars are not packaged in the .apk Mar 22 17:40:07 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 Mar 22 17:40:08 try that Mar 22 17:40:50 https://plus.google.com/u/0/photos/108761828584265913206/albums/5719124780644076401/5719124847159036306 Mar 22 17:42:01 all my apps are maxsdk 7 Mar 22 17:42:18 mikedg taught me that. Mar 22 17:42:32 SimonVT: doesn't it ahve to be "libs" anyway? Mar 22 17:42:50 wut? Mar 22 17:42:51 lol mikedg Mar 22 17:43:36 SimonVT: now I just downgraded to ADT 16, but it looks like it's exactly the fix I need, thanks a lot Mar 22 17:44:01 canadiancow|work, mikedg: the poster of that pic is named "grouchnikov"... grumpy russian? Mar 22 17:45:04 SimonVT the fix was "mv lib libs" Mar 22 17:45:14 And remove build path references Mar 22 17:45:15 i was under the impression your libs directory always had to be named "libs" Mar 22 17:45:32 You could reference jars anywhere in eclipse Mar 22 17:45:43 but ant couldnt :( Mar 22 17:45:52 That's right Mar 22 17:49:08 on my galaxy nexus I see the three dots on the right hand side, even tho there are no more menu options. Mar 22 17:49:18 know what the deal is? Using actionbarcompat Mar 22 17:49:40 your targetSdkVersion is less than 14 Mar 22 17:49:44 onCreateOptionsMenu returns true? Mar 22 17:49:49 therefore, you never tested your app on an ICS device Mar 22 17:49:54 therefore, the button is displayed Mar 22 17:49:57 jeppy: what should it return? Mar 22 17:50:01 +1 canadiancow|work, -1 jeppy Mar 22 17:50:11 targetSDKVersion is 14 Mar 22 17:50:15 i dont believe you Mar 22 17:50:19 I don't either Mar 22 17:50:25 wait wait Mar 22 17:50:29 are you talking about the dots on the actionar? Mar 22 17:50:34 or the dots on the system bar Mar 22 17:50:49 If I have a PNG that is 32x32 on all screen sizes, which R folder do I put it in? Mar 22 17:50:55 hd, md, ld? Mar 22 17:51:05 nod? Mar 22 17:51:17 what do you mean 32x32 Mar 22 17:51:18 Depends, do you want it to be 32x32 on all densities? Mar 22 17:51:20 32dp x 32dp? Mar 22 17:51:22 pixels Mar 22 17:51:23 or 32px x 32px Mar 22 17:51:35 if you say "px", im going to say "you're doing it wrong" Mar 22 17:51:40 but the answer is nodpi Mar 22 17:51:41 ahh you were right canadiancow|work Mar 22 17:51:46 okay Mar 22 17:51:47 So you want it to be twice as big on mdpi devices as on xhdpi? Mar 22 17:52:00 dots on the system bar Mar 22 17:54:29 hey anyone know if there's a ice cream sandwich x86 image that you can use for fast emulation? Mar 22 17:55:24 louielouie: There might be some Ubuntu Android branches Mar 22 17:55:37 hi all im writing my first android app, can you point me to a good beginners doc? Mar 22 17:56:03 enoch, I am too - I suggest looking at the Google Dev tutorials like Notepad and Hello World Mar 22 17:56:10 and then googling the rest Mar 22 17:56:26 thanks Mar 22 17:56:45 "Android" (what you're trying to do) "tutorial" Mar 22 17:56:54 Usually saves the day for me Mar 22 17:57:31 I love how Android dev feels like JavaScript and CSS Mar 22 17:57:50 yes i've already made a simple app... Mar 22 17:58:16 but i can't understand how to include a simple image in my layout LOL Mar 22 17:58:25 like a logo...+ Mar 22 17:59:00 enoch do you see a "res" folder? Mar 22 17:59:24 sure Mar 22 17:59:28 There should be drawable-# folders Mar 22 17:59:58 Create hd, md, and ld variations of the logo Mar 22 18:00:18 They'll be all named "logo.png" though Mar 22 18:00:35 and then drag each one into the appropriate folder: drawable-hdpi, drawable-ldpi, etc. Mar 22 18:00:52 okk ill read something :P Mar 22 18:00:53 thanks Mar 22 18:00:56 Then, in the XML file, Mar 22 18:01:09 in the layout folder Mar 22 18:01:51 make an ImageView (google this word) and set the source to be android:src="@drawable/logo" Mar 22 18:02:21 ok Mar 22 18:02:23 :P Mar 22 18:03:51 Hello World! Mar 22 18:04:33 I need to register a stackoverflow account Mar 22 18:04:41 so many good answers I should start upvoting Mar 22 18:05:09 http://stackoverflow.com/questions/3263611/border-for-an-image-view-in-android Mar 22 18:05:28 Like that guy with 12 votes - his solution is very minimalistic but it doesn't work with transparent images Mar 22 18:05:29 So, I'm getting this error - it seems to show up only when I run the emulator (even though the program apparently does what i needs to do) ---> http://collabedit.com/t2auf . I was wondering where I should start to debug. I'm very new at this. Interestingly, the error doesn't show up when I download it onto my Android device. What gives? Mar 22 18:05:31 which is no problem for me Mar 22 18:06:26 Any help to solve the problem would be greatly appreciated. Mar 22 18:16:19 Kinda quiet in here... Mar 22 18:16:22 Ain't it? Mar 22 18:17:02 Hey guys, have you ever encountered a problem with MediaPlayer.seekTo(position)? It doesn't seek to position, it just resets the playback, and starts from the beginning. How can I solve this? Mar 22 18:17:05 that's how we roll Mar 22 18:19:09 Also, I wanted to ask, is there any decent libs for the standart MediaPlayer class replacement? Mar 22 18:20:03 For a streaming musci playback Mar 22 18:20:36 pff always a giant hassle a big new version Mar 22 18:21:04 or if you have any solutions for mp.seekTo() please give me some tips Mar 22 18:23:45 aLearner: Two things I found after a quick google; Either something is messed up with the Eclipse/SDK-installation or there is something going on with your code that could point to threading issues. Mar 22 18:24:00 drlaban: Thank you very much. Mar 22 18:24:02 hi Mar 22 18:24:36 drlaban: I'm actually following a tutorial...So, I hope there's nothing wrong there. Also, the error doesn't show up when I download the code onto my Android device. Mar 22 18:24:45 FFS, i Mar 22 18:24:59 Hello. Does anyone know anything about com.android.soundrecorder? Mar 22 18:25:02 I just made an update of the sdk in eclipse, now each time I run eclipse, I get this error: An internal error occurred during: "Android Library Update". java.lang.NullPointerException, I could find any help on that on google, any idea ? Mar 22 18:25:07 How can I use SoundRecorder.apk? And why is it hidden from users? Mar 22 18:25:30 aLearner: I can't verify this though, but there were more hits on "Problems with Eclipse" than there were "Threading issues" Mar 22 18:25:44 drlaban: Should I shutdown and restart? I'm on Ubuntu...Not sure if that error showed up when I was working on it earlier. Just started noticing it today (even though I've not modified the code). Mar 22 18:26:12 drlaban: Thank you. I noticed that. I'll try shutting down and restarting and report back. Does that sound fair? :-) Mar 22 18:26:38 aLearner: Definitely, since that's an easy, pretty non-destructive action. :) Mar 22 18:26:44 drlaban: Thank you again for taking the time to point me in the right direction. It's scary that it could be an Eclipse issue. Mar 22 18:26:52 drlaban: 10 - 4. Be back in a little. Mar 22 18:30:09 so apparently Cursor.requery() is deprecated, which is pretty outrageous IMO. is there any way to "clone" the query of a cursor into a new one? I think it's absurd that I'd be expected to repopulate the query that I've already fed into a cursor, every time I want to refresh my data. Mar 22 18:31:58 why do you think thats absurd Mar 22 18:32:22 yeah im failing to see an issue Mar 22 18:33:40 Anybody here (besides the obvious Jake) know anything about ActionBarSherlock? I'm trying to implement it. My application runs fine on an ICS device, but throws a ClassNotFound exception on anything less than ICS. Mar 22 18:33:59 Manifest uses-sdk looks like this: Mar 22 18:34:04 Pretty weird, right? Mar 22 18:34:08 "A new Library Project adds support for GridLayout back to API level 7 and higher.", does anyone know what this means? It's not android-support-v4.jar Mar 22 18:34:08 Chronax: http://imgur.com/jacoj Mar 22 18:34:25 It's the -v7 support lib Mar 22 18:34:34 hmm. not seeing it Mar 22 18:34:35 because it's unnecessary work to have to generate a SQL query again when I've already done it once and don't need to to change. In a single activity this is no big deal, but I'm trying to create a useful base class for a lot of ListActivity's, and it adds a lot of unnecessary code to my general "refreshData" function Mar 22 18:34:35 drlaban: I'm back...So, did a shutdown / restart and opened up Eclipse. The error pops up even BEFORE I run my code. :-/ Mar 22 18:34:54 SimonVT: The -v7 support lib? Mar 22 18:34:59 drlaban: I wonder if looking for Eclispe updates is a good idea. Mar 22 18:35:00 That was to mrenouf|work Mar 22 18:35:07 Ah, crap. Mar 22 18:35:30 Also, http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 Mar 22 18:35:33 ^ Chronax Mar 22 18:36:24 I see lots of new ViewGroupCompat stuff Mar 22 18:37:29 Is it safe / a good idea to update Eclipse? Or can updating majorly break stuff? I'm in the middle of a project...Am on Ubuntu 11.10...Any sage advice from more experienced devs would be greatly appreciated. :-) Mar 22 18:37:53 But why would it work on ICS and not other devices? Mar 22 18:37:55 SimonVT, it is _not_ in the support lib Mar 22 18:38:05 mrenouf|work: it _IS_ in the v7 support lib Mar 22 18:38:18 sorry, it's not in the JAR Mar 22 18:38:22 SimonVT, it's apparently in a new Library project which gets added Mar 22 18:38:23 you are using the _v4_ support lib Mar 22 18:38:29 no im not Mar 22 18:38:30 what happens if one releases an app with debuggable="true" in the manifest? Mar 22 18:38:40 You just said you were Mar 22 18:38:48 " It's not android-support-v4.jar" Mar 22 18:38:59 There is support-v4 and support-13, you know right? Mar 22 18:39:07 of which there is r7 of -v4 Mar 22 18:39:10 yes, it's confusing Mar 22 18:39:11 And v7 Mar 22 18:39:19 no Mar 22 18:39:22 ugh Mar 22 18:39:25 simon: Tried that, no dice. Mar 22 18:39:31 Just because it isn't a jar doesn't mean it's not a support lib Mar 22 18:39:38 SimonVT doesnt sleep Mar 22 18:40:03 SimonVT, understood, which is why I corrected to say it's not in android-support-v4.jar Mar 22 18:40:13 there's time to sleep when you're dead Mar 22 18:40:15 Which is why I said it's in v7 Mar 22 18:40:32 Here's what I'm running into on any device OTHER than ICS: http://pastie.org/3649487 Mar 22 18:40:45 not v4 revision 7, v7 Mar 22 18:40:52 well, it's helpful call it "r7", it's not v7 Mar 22 18:41:09 OH Mar 22 18:41:10 wait Mar 22 18:41:16 extras/android/support/v7 Mar 22 18:41:38 huh? there is now a -support-v7 in addition -v4 and -v13 ?? Mar 22 18:42:03 Yes, since gridlayout only works on v7+ Mar 22 18:42:11 oh .... wow, yes that's just a bit confusing :-) Mar 22 18:42:14 Ok, sorry sorry Mar 22 18:42:37 Does anyone know if android has a built in HitTest function. For testing what view the X, Y value if over? Mar 22 18:42:39 us* Mar 22 18:42:42 ... Mar 22 18:42:49 is* Mar 22 18:43:26 Chronax: You're probably doing something with fragments you're not supposed to Mar 22 18:43:41 This is an existing and working application. Mar 22 18:43:50 what happens if one releases an app with debuggable="true" in the manifest? Mar 22 18:43:57 All I've done is add a ref to ActionBarSherlock, and modify my base class to inherit from its base class. Mar 22 18:43:59 Madhatt5r I don't know abut stock Android but it is in Cyanogenmod in app DevTools. Mar 22 18:44:29 Thanks NordSiG but I will need stock. Mar 22 18:44:46 So, I think this makes sense now. "Add support library" adds the -v4.jar which adds a bunch of the stuff we've already had. Then "-v7" (so far) is added as a library project, which so far just adds GridLayout Mar 22 18:44:58 so v7 doesnt replace v4 Mar 22 18:45:10 extends it Mar 22 18:46:03 Madhatt5r: i believe that was added in ICS Mar 22 18:46:11 could have been honeycomb, though Mar 22 18:46:32 wongk: Okay I will look for it, do you happen to know where it might have been added? Mar 22 18:46:44 I have been looking but not coming up with anything useful. Mar 22 18:46:46 Apps > Developer Options Mar 22 18:47:22 i take that back, it's not in apps Mar 22 18:47:28 it's listed unser system Mar 22 18:48:13 Okay I will look there. Thanks again. Mar 22 18:48:48 Madhatt5r: You can download cyanogenmod rom and get apk from there. Mar 22 18:50:18 aLearner: There's always a chance of things botching up when updating. Fortunately for me, I have a pretty light-weight configuration of Eclipse so reinstalling is pretty fast for me. Mar 22 18:50:19 Any ideas why this would only happen in pre-ICS devices? http://pastie.org/3649487 Mar 22 18:50:43 Does anybody know what is it, SoundRecorder.apk? Mar 22 18:51:19 drlaban: Hmm - oops! Mar 22 18:51:35 NordSiG: well, that's the Sound Recorder application Mar 22 18:51:42 drlaban: I'm in the middle of updating...This error started showing up suddenly for sure... Mar 22 18:51:59 drlaban: I have a light configuration too - nothing fancy. Mar 22 18:52:09 wongk: How can I use it? Mar 22 18:52:17 press on it in the app drawer Mar 22 18:52:25 drlaban: But those APIs and things took forever to download - I hated that bit. Mar 22 18:53:34 drlaban: Guess what? Updating failed totally because it encountered a problem. Hmmm... Mar 22 18:54:20 It can't be shown there. https://github.com/android/platform_packages_apps_soundrecorder/blob/master/AndroidManifest.xml#L34 Mar 22 18:55:06 wongk: see prev. mes. Mar 22 18:55:14 aLearner: If you have already downloaded the Android SDK and tools, you don't have to do that again. Mar 22 18:55:19 it is shown there Mar 22 18:55:38 aLearner: Probably something messed up either in Eclipse or the ADT or something in between Eclipse and ADT. Mar 22 18:55:41 drlaban: Hmmm - not 100% sure how to do that... Mar 22 18:56:09 drlaban: What would you recommend? It's annoying to have this error show up when there's none in the code. Mar 22 18:56:54 drlaban: The saving grace is it doesn't show up when I download it onto my device. It's more an annoyance now... Mar 22 18:57:02 aLearner: When you downloaded the Android SDK, you probably have a folder called android-sdk-[OS name]. If you do, then you most likely only have to worry about Eclipse and the ADT plugin Mar 22 18:57:47 drlaban: Yes, you're right....Mine is called 'android-sdk-linux' :-) Mar 22 18:58:04 aLearner: Everything depends on whether you think it's worth reinstalling Eclipse and ADT or not. :) Mar 22 18:58:05 What do you recommend we do next? Mar 22 18:58:09 wongk: Intent item of AndroidManifest.xml should has LAUNCHER category to be shown in menu. Mar 22 18:58:30 wongk: See link. It does not. Mar 22 18:58:37 NordSiG: i have 2 devices, 2 different versions of android, it is present on both Mar 22 18:58:39 aLearner: Because if it's only an annoyance that you can't run it in the emulator you shouldn't worry about it any more. Mar 22 18:58:54 though it's possile they're completely unrelated Mar 22 18:58:54 Hmmm - I was burned by it once...I'm 10 chapters in developing an app from a book - I'd be damned if I break anything Mar 22 18:59:03 wongk: Which models? Mar 22 18:59:21 4.0.3, 2.3.7 Mar 22 18:59:33 drlaban: It runs on the emulator just fine too - it's just that the error shows up in the error log - even the app runs 100% fine - no force closes or anything like that Mar 22 18:59:53 models of devices Mar 22 19:00:03 drlaban: My own thoughts are learning towards putting my head down and trying to get through the next 14 chapters and THEN worrying about getting a perfectly functioning Eclipse Mar 22 19:00:13 i don't use stock ROMS, so that is not important Mar 22 19:00:16 aLearner: Hmm, interesting. How many avd's have you tried running? Mar 22 19:00:28 drlaban: Ah - good question -- just one :-) Mar 22 19:00:40 So which rom? Mar 22 19:00:40 drlaban: Should we try another one? I have a couple of other ones Mar 22 19:00:44 aLearner: Set up completely different one and see what happens Mar 22 19:00:50 CM7 for one Mar 22 19:01:01 drlaban: All right. Hang on. Thanks for the suggestion. It never occurred to me. Mar 22 19:01:15 Yes, I too. Mar 22 19:02:35 On CM7 it's very buggy. And on CM9 it's removed from menu at all. Mar 22 19:02:45 drlaban: So, as I mentioned, the error shows up BEFORE the AVD is launched. I just now tried it with a fresh AVD Mar 22 19:03:34 when calling LayoutParams, does the width/height I provide have to include the margins? Mar 22 19:03:45 NordSiG: what do you need to use it for? Mar 22 19:04:16 e.g., image is 32x32, it will have margins of 1 pixel all around, so do I call LayoutParams with 32x32 or 34x34 Mar 22 19:04:21 aLearner: Hmm, I can only conlude there is something weird going on in the AVD parts of the SDK. Mar 22 19:04:39 drlaban: It says ---> 'Unhandled event loop exception' and then spits out this ---> http://collabedit.com/v99h9 Mar 22 19:04:54 drlaban: The moment I select and AVD - any AVD, in fact. Mar 22 19:05:48 wongk: For its purpose: to record sound. Mar 22 19:06:01 NordSiG: you mean form your own app? Mar 22 19:06:12 drlaban: So, I'm gonna live with it, then...If you're around later (after I finish the next 14 chapters) perhaps I can ask you for some help in setting things - right? :-) Mar 22 19:06:17 aLearner: looks like it's an eclipse plugin version mismatch Mar 22 19:06:37 dragon: What do you mean? :-? Mar 22 19:06:38 NordSiG: it did appear to have a useful intent filter Mar 22 19:06:42 wongk: I mean as end-user application. Mar 22 19:06:44 aLearner: I can only assume it has some minor effects on the actual running of the emulator image, so I wouldn't worry to much about it for now. Mar 22 19:06:48 dragon: What can I do to fix it? Mar 22 19:06:49 aLearner: make sure you're running the right version of eclipse for the sdk/plugins you're using; check the android developer page for what version you need to use Mar 22 19:07:17 drlaban: I hear you. Thank you for your valuable input and help. Mar 22 19:07:46 dragon: As I was telling drlaban it started showing up suddenly - and it doesn't show up when I download the code onto my Android device Mar 22 19:07:54 aLearner: As you said, you'd really like to plunge the next 14 chapters and then fully take care of the environment Mar 22 19:07:56 dragon: Thank you for your thoughts. Mar 22 19:08:13 aLearner: it seemed pretty clear that you were saying this was the error when you run the emulator. So now you're saying the emulator works fine? Mar 22 19:08:33 wongk: I see I ought to rewrite this app by myself and try to push it back to cm repository :(. Mar 22 19:08:51 dragon: This is the error I see BEFORE I run the emulator, even... Mar 22 19:08:58 Anybody know a solution to this ActionBarSherlock problem? Mar 22 19:08:59 http://pastebin.com/Xt89Yrpp Mar 22 19:09:16 aLearner: hence my response, yes. Mar 22 19:09:32 drlaban: Right...Have to focus on what's important. I tend to try to get things perfect but there's no ROI on that many times. Mar 22 19:09:37 aLearner: Go hit the tutorials again and return when you're done with that if you haven't been able to fix it. If other problems start to crop up, just get back to us and we'll see what we can do. Mar 22 19:09:58 Chronax: Use getSupportMenuInflater Mar 22 19:09:58 drlaban: All right. Will do that. Thank you so much for your help. Mar 22 19:10:02 drlaban: It was great to meet you. Mar 22 19:10:10 aLearner: Which would have nothing to do with the app running on a physical device, since it has to do with your eclipse setup. Mar 22 19:10:11 dragon: Thank you for your help alos. Mar 22 19:10:15 aLearner: I know. I have a similar problem myself. But sometimes you just have to close your eyes to it and get back at it at some other time in the near future. Mar 22 19:10:37 dragon: What do you mean? Mar 22 19:10:59 drlaban: Cool - it's good to know that you understand it too. Thanks again. :-) Mar 22 19:11:59 dragon: I'm gonna listen to drlaban for now and just hit the book until I fully finish building my demo app. I'll be sure to check back in here anyway. Also, if I run into any more trouble, I'll definitely take drlaban up on her/his offer. Mar 22 19:12:38 Thanks, SimonVT. Mar 22 19:12:51 aLearner: No problem, I'll stick around for a while, I'm sure. Mar 22 19:13:15 drlaban: You mean for a few weeks or just now? Mar 22 19:13:48 aLearner: Weeks, months, years.... Something along those lines. :) Mar 22 19:14:15 drlaban: Haha! Oh OK...Are you around during this time generally? I've never seen you before... Mar 22 19:14:31 drlaban: Of course, I'm seldom around at _this_ time, so, it makes sense... Mar 22 19:14:59 aLearner: I'm pretty new around here, and I live in Sweden, so it might be time differences that are involved Mar 22 19:15:14 drlaban: PM? Mar 22 19:15:28 aLearner: 8 Mar 22 19:15:43 drlaban: No no -- may I PM you, please? Mar 22 19:15:48 Hey guys, does anyone know any decent library to replace MediaPlayer class? Mar 22 19:16:12 aLearner: Haha. Sure, I wouldn't be able to stop you from doing so anyways. :) Mar 22 19:16:31 /ignore :P Mar 22 19:17:31 .. Hmm still haven't found anything to do with a hittest under the developer docs under system. Mar 22 19:18:07 Pointer location isn't what you're looking for? Mar 22 19:18:22 or Show otuches Mar 22 19:20:47 Okay, so I am trying to draw red boxes around views programmatically as I drag my finger around the screen. When my finger passes over a view I loop though all the views in the activity and test to see if the view contains the x, y hottest. Mar 22 19:20:51 hittest* Mar 22 19:21:18 hey guys, whats a fast, sleek rom? googling is giving me redux, but it hasnt been updated since april last year? Mar 22 19:21:28 demifuror: #android-root Mar 22 19:21:35 Madhatt5r: right, but i was saying that was built into android Mar 22 19:21:42 is that not what you want? Mar 22 19:22:17 I didn't really find anything build into android. Mar 22 19:22:36 I couldn't find it under the System > Developer Docs Mar 22 19:23:47 how can I restore an open AlertDialog on an orientation change? (I can not use android:configChanges because the alert dialog has a different layout for -land Mar 22 19:24:36 Madhatt5r: yeah, i guess none of the options are exactly what you are looking for Mar 22 19:24:54 Ge0rG: you have to rebuild it Mar 22 19:25:04 you have the technology Mar 22 19:26:09 Yeah I got it working slightly with view.getHitRect(outRect); but if it is a RadioButton inside a RadioGroup it doesn't detect that the hit is for that view because the hitRect is relative to its parent. Mar 22 19:26:13 Rather than the window.. Mar 22 19:26:30 tophyr: how can I know it was still there? Mar 22 19:26:59 or is it possible to catch orientation changes in AlertDialog? Mar 22 19:27:25 Arg, Pandora radio always stops playing anything I like after like 3 hours. Mar 22 19:28:56 Ge0rG, save a flag and re-display it after re-create Mar 22 19:29:24 onResume() { if (alertWasShowing) showAlert() } Mar 22 19:29:26 Hi, got a weird problem. My app works fine in debug when I push via adb in eclipse, but when I install the signed apk version, it crashes with a class not found exception. Any ideas what I have done wrong? Mar 22 19:29:49 MarkG123, it's packaged differently in release Mar 22 19:29:54 what is the class not found in particular Mar 22 19:29:58 check your classes.jar Mar 22 19:29:58 etc. Mar 22 19:30:09 dx --dump to make sure it's there Mar 22 19:30:18 if you are using fragments the alertdialog will be redisplayed automatically Mar 22 19:30:24 pfn: that sucks because I have several possible dialogs which might have unsaved state when rotating Mar 22 19:30:58 MarkG123: did you just update to adt rev17? Mar 22 19:31:10 does firing an animation on a view automatically make an invisible one visible? Mar 22 19:31:12 yes, but it did it in adt 16 too Mar 22 19:31:15 it seems to be the case Mar 22 19:31:32 MarkG123: are you useing progaurd? Mar 22 19:31:42 yes Mar 22 19:32:21 Does anyone have any tips on any techie way to troubleshoot USB connectivity problems? Mar 22 19:32:42 MarkG123: that's your problem then Mar 22 19:37:04 which leayout performs generally best? Mar 22 19:37:12 linear? Mar 22 19:37:31 which generally tastes best, apples or oranges? Mar 22 19:37:40 depends on what you're trying to do :) Mar 22 19:37:52 thanks, turning ProGuard off fixed the crashing problem. Mar 22 19:38:31 i would not use a linear layout to build a 15x15 table, nor would i use it to hold two elements that i need to layer on top of each other. Mar 22 19:39:04 apples tastes generally best if preferred by more than 50% of the population. Mar 22 19:39:56 jakob|: would you make an orange pie Mar 22 19:39:58 or an apple pie Mar 22 19:40:38 orange, with chocolate Mar 22 19:41:10 yuck Mar 22 19:41:35 or delicious Mar 22 19:41:47 you've never had a toblerone chocolate orange? Mar 22 19:42:04 can't imagine what it's like up there in canadia. so barren, so desolate Mar 22 19:42:15 I have a Samsung Young which has 2.3.6, I plug it in and enable USB debugging, I go to Eclipse and say Target is set manually and I run it to get the choice screen, my phone shows up as question marks and the target is not defined; I cannot run it Mar 22 19:42:30 [15:41:47] you've never had a toblerone chocolate orange? Mar 22 19:42:31 yuck Mar 22 19:42:35 also: that's not a pie Mar 22 19:43:17 touche sir, i will give you that, it is indeed not a pie Mar 22 19:54:15 hi Mar 22 19:54:15 I've got a TabAbactivity with 2 tabs. The first tab is a List the 2nd is WebView. The 2nd does setContentView(R.layout.article_webview) and Mar 22 19:54:16 works okay. Now when in the 1st I try to wv = (WebView) view.findViewById(R.layout.article_webview), wv is null. Any idea what could be Mar 22 19:54:16 wrong? Mar 22 19:55:50 that's literally all that's in the layout file, a web view? Mar 22 19:56:14 and the R.layout constants aren't IDs Mar 22 19:56:34 the R.id constants are Mar 22 19:56:38 alright, I'll ask again, then Mar 22 19:56:41 I have a Samsung Young which has 2.3.6, I plug it in and enable USB debugging, I go to Eclipse and say Target is set manually and I run it to get the choice screen, my phone shows up as question marks and the target is not defined; I cannot run it Mar 22 19:57:02 wongk: it's called res/layout/article_webview.xml and it only has a inside Mar 22 19:58:07 you probably don't even need to use a layout file then, but either way just pass the id of the webview Mar 22 20:00:14 wongk: now I've changed the code to wv = (WebView) view.findViewById(R.id.article_webview); and added android:id="@+id/article_webview" -- did not help :( Mar 22 20:00:17 same effect nullptr Mar 22 20:01:15 then you suck Mar 22 20:01:20 no other choice Mar 22 20:01:37 it's another activity, is that a problem? Mar 22 20:03:04 as long as you are calling findViewById on the correct activity, it should be fine Mar 22 20:03:07 I get a NoClassDefFound error on MultipartEntity (from apache httpclient) in Android 2.3 only, works on the other versions. I tried different versions of apache httpclient, nothing worked Mar 22 20:03:12 Anybody knows why? Mar 22 20:04:26 "the other versions" Mar 22 20:04:34 by "the other versions" are you including 2.2, 2.1, 1.6? Mar 22 20:04:45 lov: also higher, like 4.0 Mar 22 20:04:56 yes, but I want to know does this work on lower versions. Mar 22 20:05:06 for a class to be in, be taken out for one version, then put back in, is very odd Mar 22 20:05:15 is this a publicly visible class in the apis, or are you using reflection? Mar 22 20:05:24 lov: nope, I included it with a jar Mar 22 20:05:29 then all bets are off. Mar 22 20:06:10 what could that be then? Mar 22 20:09:34 lov: could it be that it is included in Android and it clashes with the version in the jar? Mar 22 20:11:01 is adt 17 working well :) ? Mar 22 20:11:32 yes Mar 22 20:11:37 g00s: yes I just upgraded Mar 22 20:11:39 it is here Mar 22 20:11:47 g00s: you'll probably have issues :p Mar 22 20:12:25 SimonVT: :) was that issue in ContextMenu ids fixed with the ViewPager? Mar 22 20:12:28 Found my problem. old proguard.cfg carried across from old project. deleted it and used new defaults, now market app works.... Mar 22 20:12:55 g00s: No idea, I don't use contextmenu ;O You can try and find the issue on the issue tracker Mar 22 20:12:57 hm, i'll look at the code Mar 22 20:13:12 SimonVT: i don't think jake put it in the defect tracker Mar 22 20:13:24 SimonVT: i have to use context menu, on froyo :) Mar 22 20:16:40 That's easily solved by just using dialogs Mar 22 20:18:02 I wonder how many Kindle Fires have been sold. Mar 22 20:18:13 SimonVT: wut ? Mar 22 20:18:15 When I change the drawable of 3 ImageViews at runtime, there is a flicker and the image shown for a split-second is the image of one of the other ImageViews. Any idea why the heck this might happen? Mar 22 20:18:41 snooplsm: plenty I'm sure Mar 22 20:18:55 snooplsm: isn't it the best selling tablet that's not an ipad or something? Mar 22 20:19:12 gho5t: I'd guess maybe it's sizing it to 0 and you're seeing it slide the other imageview in the layout up? Mar 22 20:19:18 gho5t: sounds like you're not doing them quite simultaneously; you're winding up drawing stale (or just wrong) content in one onDraw() pass, then the correct thing in a subsequent onDraw() pass Mar 22 20:19:55 hm Mar 22 20:20:07 ctate: I'm not doing anything in onDraw Mar 22 20:20:49 dragorn: would changing the image automatically size the imageView to 0 for a split second? Mar 22 20:20:51 well, you're changing things, which implicitly winds up with a redraw later on Mar 22 20:21:28 lov: is it a tablet? Mar 22 20:21:35 g00s: Buggy contextmenu isn't a showstopper, since an alertdialog can do pretty much do the same Mar 22 20:22:18 gho5t: I don't know, I'm just guessing. That's all I can think of to make the content of one appear to be the content of another Mar 22 20:23:43 the Kindle Fire is certainly a tablet. what else would it be? Mar 22 20:23:53 What I have is 3 imageViews on the screen and I run an animation that moves them to each other spot, and onAnimationEnd (in the listener) I go ahead and swap the images so it will persist. Mar 22 20:27:36 you would think setting the imageviews to invisible, updating the image, and making them visible again would be a nifty solution Mar 22 20:27:39 but nope Mar 22 20:28:04 [16:23:43] <@ctate> the Kindle Fire is certainly a tablet. what else would it be? Mar 22 20:28:22 i consider it a tablet if i use the space to display multiple fragments simultaneously Mar 22 20:28:30 i do not do that on 7inchers Mar 22 20:28:33 as such... Mar 22 20:28:38 it's just a large screen :) Mar 22 20:28:55 ctate: Is there a way to find out what type of radio a phone uses, without doing anything you know hardcore. What you said about g1 got me interested in radios on phones ;) Mar 22 20:29:11 canadiancow: +1 Mar 22 20:29:19 samosa: what do you mean "type of radio" Mar 22 20:29:31 "type of radio" meaning what? Mar 22 20:29:42 you can easily tell cdma vs gsm Mar 22 20:29:54 Idk lol, whatever makes the g1 worse than n1. Mar 22 20:30:05 hello Mar 22 20:30:17 galaxy nexus best...it supports all canadian HSPA+ bands :) Mar 22 20:30:20 radio* Mar 22 20:30:21 you don't display multiple fragments simultaneously on a 7" screen? Mar 22 20:30:29 pfn: nope Mar 22 20:30:34 that sucks Mar 22 20:30:34 Or is that due to different sim / network ;( Mar 22 20:30:44 its not big enough Mar 22 20:30:55 or rather, "large" isn't big enough Mar 22 20:30:57 7 inches might be Mar 22 20:30:57 but you can't tell e.g. Qualcomm vs Nokia or whatever Mar 22 20:31:19 samosa: for that, you cannot tell at all. same chipset vendor, same radio software vendor, same OEM Mar 22 20:31:25 but the N1's is not as good in practice Mar 22 20:31:28 oh well! Mar 22 20:31:30 looks like a dev question... I am building a carPC android based project and I would like to launch specific apps on certain hardkey presses. E.g. when MUSIC key is pressed, I want to launch powerAMP instead of music.apk. Is there a way to do it? I know about /system/usr/keylayout/*.kl but they just change key mappings w/o changing app behavior. Device is rooted. Thanks! Mar 22 20:31:51 http://android-developers.blogspot.com/2012/03/new-sales-reports-on-google-play.html Mar 22 20:32:06 Ok. I see. Mar 22 20:32:12 am I the only one experiencing problems with new eclipse and sdk updates on mac ? Mar 22 20:32:24 if I toggle the soft keyboard, is there a place I can post a message afterwards such that I know it won't be processed until _after_ the softkeyboard is shown? Mar 22 20:32:33 eclipse. mac. updates. that is a perfect storm Mar 22 20:32:38 my god Mar 22 20:32:43 java. mac. Mar 22 20:32:52 hahaha Mar 22 20:32:58 maxagaz: uh oh, please explain Mar 22 20:33:00 I don't think macs support java Mar 22 20:33:01 sorry Mar 22 20:33:05 ;x Mar 22 20:33:11 zr: of course they do Mar 22 20:33:12 zr: stfu n00b Mar 22 20:33:21 haha Mar 22 20:33:23 wth Mar 22 20:33:25 caught a couple Mar 22 20:33:30 test Mar 22 20:33:31 JVM is the future! Mar 22 20:33:31 even with by glaring sarcasm Mar 22 20:33:32 haah Mar 22 20:33:33 sweet Mar 22 20:33:40 er, yea Mar 22 20:33:50 zr:it wasn't your sarcasm, just hit enter less. I only have so much scrollback Mar 22 20:34:41 g00s: I have error message such like this when running eclipse: An internal error occurred during: "Initializing Java Tooling". java.lang.NullPointerException Mar 22 20:35:17 maxagaz: what versions of eclipse, jet , mac os x ? Mar 22 20:36:22 g00s: the very last version of all: indigo, os x lion Mar 22 20:36:23 i just deleted sdk 16, shiite Mar 22 20:36:33 oh crap Mar 22 20:37:48 g00s: I have just reinstalled eclipse and the sdk, but still the same error Mar 22 20:38:39 ctate: whats the best way of getting sdk 16 / adt 16.0.1 ? Mar 22 20:39:07 i don't see dl links for older versions Mar 22 20:39:17 sdk is easy, just substitute r17 for r16 in the download link Mar 22 20:39:37 SimonVT: thanks Mar 22 20:40:56 you want the antique toolchain, not just the SDK? Mar 22 20:41:11 weird, when i go here i get a 404 https://dl-ssl.google.com/android/eclipse/ Mar 22 20:41:37 ctate: in case i have the troubles maxagaz is having, i can't afford downtime yet i deleted my old stuff :( Mar 22 20:54:02 I want to toggle the soft keyboard, then do something after it has displayed... how can I accomplish this? Is there somewhere I can post that would only be processed after, or what? Mar 22 21:04:38 I have a Samsung Young which has 2.3.6, I plug it in and enable USB debugging, I go to Eclipse and say Target is set manually and I run it to get the choice screen, my phone shows up as question marks and the target is not defined; I cannot run it Mar 22 21:05:02 I have just resintalled eclipse 3.7.2 on mac os lion and sdk-17, when running eclipse I get a few errors, the first one being: An internal error occurred during: "Android Library Update". java.lang.NullPointerException Mar 22 21:05:12 what can I do ? Mar 22 21:05:26 I have been struggling with that for hours Mar 22 21:05:46 hrm, weird, I hate skipping version numbers on accident Mar 22 21:05:51 I never published 0.01w of my irc client Mar 22 21:05:55 * pfn skips straight to 0.01x Mar 22 21:06:38 I just can't work anymore Mar 22 21:06:47 i can use as many putExtra() before staartActivity and then getExtras() as i want? Mar 22 21:07:03 unless I go back to linux Mar 22 21:08:01 :O setcontentview crashes :( Mar 22 21:08:39 i've created a listActivity Mar 22 21:08:46 public class MammtActivity extends ListActivity { ..... Mar 22 21:09:46 i want to make it go to another layout when i click an item... using: "setContentView(R.layout.cenni_storici);" but when it calls the method the app crashes :P Mar 22 21:10:15 and the crash report in the log says...? Mar 22 21:10:16 can setContentView be used with ListActivity Mar 22 21:10:29 of course it can be Mar 22 21:11:05 * ctate points to the ingur link in the channel topic Mar 22 21:11:10 *imgur Mar 22 21:11:18 emptyVIEW? Mar 22 21:11:22 is it possible? Mar 22 21:11:35 im new with eclipse interface... wait Mar 22 21:13:19 enoch: does your layout have a ListView with the ID @android:id/list? Mar 22 21:17:29 has moto released an ICS devices yet? Mar 22 21:17:33 or ICS updates Mar 22 21:18:03 When adding a Google account on ICS, the back and sign in buttons are shaped like arrows. Does anyone here know the "best" way to do this? Mar 22 21:18:15 I cannot edit my Manifest file? Mar 22 21:18:21 Yes you can Mar 22 21:18:28 +1 Mar 22 21:18:30 haha, strangest error that Eclipse has produced so far; not one key takes effect Mar 22 21:18:34 doc_savage, yes Mar 22 21:18:47 canadiancow|work, don't think so Mar 22 21:18:49 heylukecarrier: I'm gonna guess 9patches Mar 22 21:19:08 as if it's locked or something Mar 22 21:19:42 Hi guys. Do we obligated to have the class name in the jni's function name? Mar 22 21:19:44 the debugger says a lot of thigns Mar 22 21:20:06 SimonVT, Android newb here -- this the one? http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Mar 22 21:20:12 fairuz_, if javah says so, yes Mar 22 21:20:14 fairuz: yes, you must obey the strict naming conventions Mar 22 21:20:25 you need to name it according to whatever javah says Mar 22 21:20:27 fairuz: it's how it does symbol resolution in the library Mar 22 21:20:28 heylukecarrier: yes Mar 22 21:20:32 I cannot edit the file, they keys won't take effect; I can edit all other files..and it isn't a permissions error, I've also Cleaned.. Mar 22 21:20:42 Manifest file is possessed Mar 22 21:20:42 So if 2 activites need to use the function, I have to duplicate them with different names? Mar 22 21:20:44 Sicp, switch to xml view Mar 22 21:20:48 SimonVT, much appreciated; thank you! Mar 22 21:20:52 I am there Mar 22 21:20:55 that's what I'm trying to edit Mar 22 21:20:55 fairuz_, delegate Mar 22 21:21:03 it's like im not typing anything Mar 22 21:21:08 Sicp: is the file read-only? Mar 22 21:21:12 it isn't Mar 22 21:21:13 the last thing he says is: Native.Start(String[]...................... Mar 22 21:21:19 I just changed it to 777 even Mar 22 21:21:33 pfn: oh did'nt think about that. Thank you Mar 22 21:22:10 thanks to dragorn too Mar 22 21:23:05 a lot of items are saying "source not found" Mar 22 21:23:14 this is what I get when I try to edit and save the Manifest in Manifest mode, org.eclipse.wst.sse.ui.EditorExecutionContext.execute(Lorg/eclipse/core/runtime/ISafeRunnable;)V Mar 22 21:26:15 this is a bug?! Mar 22 21:26:19 fffffffffffuuuuuuuuuuu updates Mar 22 21:26:23 https://bugs.eclipse.org/bugs/show_bug.cgi?id=360242 Mar 22 21:29:12 why my debugger says Source not found.? what is the "source" path? and what source is it looking for? Mar 22 21:31:59 "normal screens are at least 470dp x 320dp" Mar 22 21:32:10 so if you have a 480dp x 320dp screen, but it has a system bar, is it normal or small Mar 22 21:32:23 because that would take a huge chunk of space away from the app Mar 22 21:32:43 on a device like that you'll get hte normal status bar Mar 22 21:32:54 err Mar 22 21:33:00 without physical buttons Mar 22 21:33:08 unless the device has no buttons for navigation -- but i don't think anyone has shipped a buttonless HVGA device Mar 22 21:33:28 oh so it's safe to assume that no new device configurations will ever be released? :P Mar 22 21:33:36 OEMs will do anything. Mar 22 21:33:46 and im asking how android would handle it :P Mar 22 21:34:06 no buttons -> you'll get something like the Galaxy Nexus; status bar + nav bar Mar 22 21:34:14 but size-wise, what's reported Mar 22 21:34:22 depends on the density; i dunno Mar 22 21:34:25 "normal screens are at least 470dp x 320dp" <-- android docs say that Mar 22 21:34:41 yeah but "normal" "large" etc are oldfashioned and clumsy Mar 22 21:34:50 cna you filter out a size in your manifest? Mar 22 21:34:56 like if you absolutely need a certain usable area? Mar 22 21:35:20 ah Mar 22 21:35:21 you can Mar 22 21:35:37 if i resize a shapedrawable , do for example gradient coords of the associated paint resize accordingly? Mar 22 21:35:47 yeah, the selectors for "at least this many pixels wide" etc are the newer, more useful mechanism Mar 22 21:35:52 buggy dev-envs.....galore..... Mar 22 21:36:22 psofa: try it and see? :) Mar 22 21:36:39 oh wait Mar 22 21:36:40 fuck man Mar 22 21:36:42 http://developer.android.com/guide/topics/manifest/supports-screens-element.html Mar 22 21:36:45 android:requiresSmallestWidthDp Mar 22 21:36:49 Caution: The Android system does not pay attention to this attribute, so it does not affect how your application behaves at runtime. Instead, it is used to enable filtering for your application on services such as Google Play. However, Google Play currently does not support this attribute for filtering (on Android 3.2), so you should continue using the other size attributes if your Mar 22 21:36:49 application does not support small screens. Mar 22 21:37:00 T_T Mar 22 21:37:08 haha Mar 22 21:38:20 nice, so what the fuck do I do now Mar 22 21:38:29 fucking eclipse.... Mar 22 21:38:59 canadiancow|work: hahahaha Mar 22 21:39:06 something better then eclipse? Mar 22 21:39:16 ok and for the record, it still reports as "normal" in the emu Mar 22 21:39:37 oh wait did i make this the right size Mar 22 21:39:40 if an update to another IDE doesn't cause it to prohibit you from editing XML, than any IDE is better than eclipse Mar 22 21:40:24 Anyone have an idea how I can implement choosing a image from the gallery and then split it up into 15 equally sized pieces for my app? Mar 22 21:40:48 can the selection part of a query use columns from different tables? Mar 22 21:41:18 Hey guys.. couple of n00b questions! Currently installing the android SDK and was just wondering which eclipse is best.. the classic, or IDE for java EE developers? Mar 22 21:41:48 I'm making an app for internal use. Is there any way to make my app executed with root permission? Thanks Mar 22 21:42:04 Timmaah1201: i get the platform runtime, and add the JDT Mar 22 21:42:12 and ADT after that, of course Mar 22 21:42:19 leanest & meanest install :D Mar 22 21:44:02 cool, thanks g00s.. I was jst going to go through the android tutorials on the SDK and the videos, guessing that's best way.. Reckon I should stick with SDK? or is there a better place? Mar 22 21:45:01 fairuz_: you can use Runtime.getRuntime().exec("su .....") to execute something as root (if the user gives you permissions) Mar 22 21:45:08 fairuz_: you can't actually make the app run as root. Mar 22 21:45:26 (you can make it a preload on the firmware and then give it hella permissions, though) Mar 22 21:46:35 umm Mar 22 21:46:39 wheres the home ubtton on the x86 emu Mar 22 21:46:40 o.O Mar 22 21:46:49 canadiancow|work: the power button on your computer Mar 22 21:46:52 :> Mar 22 21:46:55 haha Mar 22 21:46:57 the "home" button works Mar 22 21:46:58 Indeed Mar 22 21:47:01 but like...yea Mar 22 21:47:06 actually, try pressing the windows key :D Mar 22 21:47:48 that just opened the start menu Mar 22 21:48:32 lov: What do you mean by "if the user gives you permission" ? Mar 22 21:50:03 the typical rooting setup uses the su binary that asks the user whether they want to give an app permission to use su Mar 22 21:50:12 this is considered "a good thing" Mar 22 21:50:24 if you're asking about how to run this without asking the user, get the fuck out malware author Mar 22 21:51:13 The user will be asked when installing the app right? How about if I install the app with adb install? Mar 22 21:51:21 no Mar 22 21:51:26 ok Mar 22 21:51:31 you CANNOT install an app as root. Mar 22 21:51:39 it's just flat out impossible in android Mar 22 21:51:44 even the preloaded apps are not "root" Mar 22 21:52:00 the typical use case for apps that need root is for them to run their commands through the su binary Mar 22 21:52:20 lov: Ok. I do get that. But is it possible to run some functions as root? Mar 22 21:52:34 if you do it through the su binary yes. Mar 22 21:52:38 do you know what "sudo" is? Mar 22 21:52:41 if so, think of that. Mar 22 21:52:42 yes Mar 22 21:52:47 that's basically what the su binary will do. Mar 22 21:52:55 so "su ls" will run ls as root. Mar 22 21:53:01 "su sh" will run sh as root Mar 22 21:53:23 your app's process itself, however, will never possibly be root Mar 22 21:53:28 do you understand? Mar 22 21:53:29 su su willl run su as root! Mar 22 21:53:34 oh shi Mar 22 21:53:55 I do get that, but the function in question is not a command. I'm trying to write something to the sysfs. Mar 22 21:54:07 well you'll have to pipe it through su then. Mar 22 21:54:14 or rather some command you run via su Mar 22 21:54:49 Quick question: if I regularly download large files from usenet on to my phone, would that be a concern for the health of the NAND? Mar 22 21:55:08 heh, oh man is there any samples tutorial for ndk which actually works ? Mar 22 21:55:48 i dl'ed ndk, got into the samples/hello-jni dir and did the android update project -p . -s thing now it asks me about --target........ Mar 22 21:56:05 i managed to get that compiling under ubuntu Mar 22 21:56:05 lov: Good enough for me. Maybe the easier way for me is to run Runtime.getRuntime().exec("su .....") to change the permission on the sysfs to something like 777. Then I can access them normally in my program. Mar 22 21:56:15 if I have several Fragments in a ViewPager via a FragmentPagerAdapter, what is the best way to tell them to update when the containing Activity's data changes? Mar 22 21:56:15 and im the biggest lunox-retard there is Mar 22 21:56:20 (meaning i dont know anything about it) Mar 22 21:56:25 Because right now, what I'm doing is to change the permission manually in the shell Mar 22 21:57:00 interesting, the ThoughtWorks 2012 tech radar has cross platform mobile toolkits as "hold" Mar 22 21:57:12 fairuz_: er, yes, I guess you could do that but strongly consider A) what you're doing and B) what other, less pleasant apps can do with changes you make. Mar 22 21:57:25 wow, along with maven. Mar 22 21:57:31 nothing I do will allow me to edit xml Mar 22 21:57:38 fairuz_: wow that's a terrible idea Mar 22 21:57:39 any ideas? Mar 22 21:57:51 lov: I do aware of that. As I stated earlier, it's only for internal use Mar 22 21:57:59 Sicp your q is rather vague Mar 22 21:58:03 only 2-3 people will use it Mar 22 21:58:08 ok Mar 22 21:58:08 surely notepad will allow you to edit xml Mar 22 21:58:17 fairuz_: why not just use an su binary that doesn't involve asking for permission? Mar 22 21:58:24 instead of "LOL CHMOD 777" Mar 22 21:59:24 can I downgrade sdk to rev16 ? Mar 22 21:59:25 * ctate . o O ( or why not do something that doesn't need root privs? ) Mar 22 21:59:40 when opening an xml file in Eclipse, I cannot edit it, it's as if im not typing Mar 22 21:59:50 evancharlton: how to use su binary on C's write() function? Mar 22 22:00:46 fairuz_: on a retail device, you can't run anything as root. Mar 22 22:01:00 on your own device running your own custom build, you can do whatever the hell you want, so go nuts. Mar 22 22:02:11 ctate: That's my point from my earlier statements. It's for internal use. I can chmod 777 the whole file system if I like :) Mar 22 22:02:43 if by "internal" you mean "just on my device" Mar 22 22:02:49 as i said: go nuts. Mar 22 22:02:49 No Mar 22 22:03:12 euh, I mean my device and some of my colleagues :) Mar 22 22:03:22 what is it that you want to accomplish? Mar 22 22:03:43 probably the right way to do it is through normal kernel-level mechanisms, not by trying to fake 'su' from Android apps Mar 22 22:04:14 ctate: Accessing my sysfs. Can you elaborate more on normal kernel-level mechanism? Mar 22 22:04:59 Fairuz: just went thru this with 2 other prominent mod & dev chans Mar 22 22:05:13 One went so far as to claim i was trolling Mar 22 22:05:20 Save your breath Mar 22 22:05:57 how can I revert back to revision 16 of the SDK? Mar 22 22:06:27 Quick question: if I regularly download large files from usenet on to my phone, would that be a concern for the health of the NAND? Mar 22 22:06:29 delete, redownload Mar 22 22:06:38 it's still 17.. Mar 22 22:06:52 ctate: Well to test my sysfs, I normally done that in the shell (which I'm root). And I have no problem with that. Some of my colleagues are not shell-savvy, so they need an app to achieve the same thing. Mar 22 22:06:56 seems like many people are having problems with r17 Mar 22 22:07:06 it has a huge bug Mar 22 22:07:06 yeh Mar 22 22:07:10 epic fail Mar 22 22:10:06 where can i rotate the android emulator? Mar 22 22:10:15 numpad 7 Mar 22 22:10:18 or F12? I think Mar 22 22:10:36 Is your monitor too heavy to lift? Mar 22 22:10:45 lol Mar 22 22:10:55 ctrl-f12 Mar 22 22:11:00 emulator -help-keys will dump its current key bindings Mar 22 22:11:04 (from the command line) Mar 22 22:11:17 they're fairly different between mac/linux/etc Mar 22 22:11:47 is there any event i can get whe this happens? Mar 22 22:12:07 onConfigurationChange -> check out the manifest setting for this Mar 22 22:12:07 look up configuration changes Mar 22 22:12:10 though they tend to have multiple bindings for that reason; e.g. keypad7 == ctrl-F11 == next rotation Mar 22 22:25:29 question: if I want to draw a rectangle to the left of a textview that is the same size of that textview, what's the path of least resistance? Mar 22 22:26:17 path of least resistance, lol. split them both 50/50 by weight Mar 22 22:26:25 TextView#getDrawingRect(Rect) Mar 22 22:26:27 yeah, or that Mar 22 22:26:57 Can anyone help me figure out what the crap Im doing wrong with my pageadapter/fragments? Details are here: http://pastebin.com/Xrti2cGf Mar 22 22:28:55 Im pretty sure what it is doing is preloading the data for the next fragment and overwriting my variables…. Mar 22 22:29:02 or something Mar 22 22:34:11 Whenever I set a textview to textStyle="italic" the textview disappears from the graphical layout editor in Eclipse Mar 22 22:34:33 Is that a normal bug by now? Mar 22 22:37:08 I need more coffee to deal with 9patches...what a mess Mar 22 22:37:37 im trying to use an embossmaskfilter and its really slow on the emulator.Could this be because the emulator is really slow(first time im using it...) or its just my crappy coding?Without the filter its acceptable... Mar 22 22:38:29 The emulator is slow Mar 22 22:38:32 Try it on a device Mar 22 22:43:16 rdonx: well, I have three elements in a linear layout: X Y and Z. X is the rect, Y is the textview and Z is an imageview. I want the image and rect to be static widths with the textview width to be dynamic, and I want the height of the rect on the left of the text to match the height of the total 'cell' (which will usually be the text) Mar 22 22:43:56 actually, it's a relative layout, not linear Mar 22 22:45:00 If you want them to be static, then you already know their pixel sizes? Mar 22 22:45:26 the text is from an RSS feed Mar 22 22:45:50 hm, git is also "adopt" on thought works tech radar, no mention of hg Mar 22 22:46:02 I was looking into calcing it with the measure stuff available in view subclasses, but I thought I was digging into a rabbit hole :P Mar 22 22:46:15 "there has to be an easier way to do this" ran through my head Mar 22 22:46:43 If so, then set them both the same width in pixel, put the two of them in a linearlayout, assign the layout a width of 0dip, set its weight to 0.5f or something and gravity to center, then handle Z like usual Mar 22 22:51:11 this code produces a NullPointer at line 108, http://pastebin.com/n7rM5Jxs Mar 22 22:51:22 I know that mCommandSpinner's adapter isn't being set, but I don't know why that is so Mar 22 22:52:29 main.xml does not contain a view with id CommandSpinner Mar 22 22:54:07 thank you SimonVT as always Mar 22 22:56:21 Hey Mar 22 22:56:30 Is there a best format to save images in the res folder? Mar 22 22:56:38 I have a choice, PNG, JPEG... anything, is one better? Mar 22 22:56:47 ( looking for more efficient, speed ) Mar 22 23:00:09 So i guess my question is to know if it is possible to have a fragment view pager and have multiple fragments that use the same class but display different similar data. (if that makes sense). Mar 22 23:01:41 NutterzUK: use the appropriate format for what you're doing Mar 22 23:01:46 ^ Mar 22 23:01:53 NutterzUK: figure out what each format is best for (PNG for lossless content, JPG for lossy content, etc) Mar 22 23:02:39 lov: thanks Mar 22 23:08:03 SimonVT, you're awesome; I've got it nailed now. Thanks very much. Mar 22 23:08:34 lov: with PNGs often having a larger file size ( with transparency too ), would it be true that JPGs would load up faster, or does it depend purely on the width/height when loading the resource? Mar 22 23:08:38 you nailed SimonVT, and it was awesome? Mar 22 23:08:57 canadiancow, there's always one -___- Mar 22 23:09:04 two actually Mar 22 23:09:08 oh wait mikedg left Mar 22 23:09:23 * heylukecarrier sighs Mar 22 23:09:35 NutterzUK: file size doesn't necessarily equate to decoding speed Mar 22 23:09:42 pngs should actually be a lot faster in all cases Mar 22 23:09:48 Sheesh, canadiancow ... Mar 22 23:09:49 read up on what pngs and jpgs are Mar 22 23:09:57 I guess I should engage my brain more mouth in future...hah Mar 22 23:09:57 Always gotta go there Mar 22 23:09:58 also, try compressing your pngs (pngs natively support gzip compression!) Mar 22 23:10:38 lov: thanks - will do some research, much appreciated! Mar 22 23:11:47 NutterzUK, you use jpeg for lossy stuff you can compress a lot and not notice (photos), and png for lossless stuff with big areas of the same colors (icons, cartoons, etc) or where you need the alpha. Mar 22 23:12:03 hint: do not try to use jpg for 9patches Mar 22 23:12:09 NutterzUK, and, yeah, you can pngcrush a couple percent more too Mar 22 23:13:33 =/ nobody knows? Mar 22 23:14:47 quaa: The answer is yes Mar 22 23:14:54 wooo Mar 22 23:15:04 SimonVT: now how then =? Mar 22 23:15:06 Each instance of the fragment is completely seperate Mar 22 23:16:01 Well, do you just need to pass the data to it when it's instantiated? Mar 22 23:16:40 thanks zcat, ctate :) Mar 22 23:16:58 SimonVT: Thats what I would think, but it doesn't appear to be. It looks like when it originally loads it works. but if i click on refresh, it will load the data for the next page instead of the current page that it is on Mar 22 23:18:48 So you load the wrong data when you click refresh? :P Mar 22 23:19:10 SimonVT: …Well it looks like my problem was, the data I was passing in had the Static Modifier Mar 22 23:19:18 oh my Mar 22 23:19:21 I removed Static and it worked. Mar 22 23:19:21 wow Mar 22 23:20:14 SimonVT: AND that completely makes sense now. Mar 22 23:20:20 * quaa facepalm. Mar 22 23:20:29 =) Mar 22 23:21:32 actually Mar 22 23:21:35 double facepalm Mar 22 23:21:38 anyways Mar 22 23:21:41 glad it works now Mar 22 23:21:42 lol Mar 22 23:28:30 Hi. I need a simple help, but I dont' know how to google this. then I have an activity with 4 "input numeric" fields, when I click on the first input, it opens a virtual keyboard to enter numbers. the keyboard has a button "next" that acts as "ok+goto_next_field". I just want an "ok" button, don't want to go to next field automatically. how to do this? thanks in advance Mar 22 23:32:01 http://developer.android.com/resources/articles/on-screen-inputs.html pzn Mar 22 23:32:36 see "Controlling the action buttons". The system probably infers "actionNext", because you have other fields. Set it to "actionNone" or something instead. Mar 22 23:35:02 dasmaze, right to the point! now it is working as expected. thanks! Mar 22 23:35:54 no problem :) Mar 22 23:37:09 I upgraded to adt r17 and now my project wont compile it can't "find" a class which is in an external jar , which is correcty inlcued I haven'T chenged anything , any idea ? Mar 22 23:38:09 canadiancow: Was it you who complained about notification icons being too large? Mar 22 23:38:23 canadiancow working on draw something yet? Mar 22 23:39:11 I believe I had the same problem today. I reconfigured the project, removing the dependency and adding it again. Maybe try this, if you haven't already. Mar 22 23:39:11 SimonVT i fixed it Mar 22 23:39:15 Jug6ernaut: im playing it Mar 22 23:39:20 dont get me started about the android version :( Mar 22 23:39:20 CaptainCrunch Mar 22 23:39:26 lol Mar 22 23:39:26 canadiancow|work: Care to share? Mar 22 23:39:34 ok i didnt fix it, but i know how Mar 22 23:39:40 canadiancow|work im counting on u to fix it Mar 22 23:40:02 http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html SimonVT Mar 22 23:40:11 dasmaze, okay thx , i think i tried that already , ill try again though Mar 22 23:40:29 they actually are different sizes SimonVT Mar 22 23:40:42 Alright, figured it was providing different sizes Mar 22 23:40:44 Jug6ernaut: it is not infeasible that it could fall into my lap, but that would not happen "soon" Mar 22 23:41:09 fair enough Mar 22 23:41:10 lol Mar 22 23:47:29 isn't this the way to get GPS location? http://pastebin.com/p1gEa8mF Mar 22 23:47:44 I keep getting 0.0 and 0.0 for the lat/long values in the toast Mar 22 23:48:05 I've enabled "use gps sattelite" in the phone settings, and if I access the phone's Maps I can know exactly where I am Mar 22 23:48:07 its not synchronus Mar 22 23:48:14 put the toast in the listener Mar 22 23:48:39 onLocationChanged huh.. Mar 22 23:48:56 figures Mar 22 23:51:08 File not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r11-windows.zip (Access is denied)Skipping 'Android SDK Tools, revision 17'; it depends on 'Android SDK Platform-tools, revision 11' which was not installed. Mar 22 23:54:20 what about pinning those values on the map? Mar 22 23:54:24 Geopoint does not take double Mar 22 23:55:25 yet in a service I have, after the phone receives a message containing a certain pattern, it sends an SMS to another number with the location of itself on the map Mar 22 23:55:40 a link to a maps page with its location on it Mar 22 23:55:59 "http://maps.google.com/maps?q=" + latitude+ "," + longitude + "&t=k"); Mar 22 23:56:34 but when I want to add that value with an overlay, geopoint doesn't take those values Mar 22 23:58:53 hey guys has anyone had any troubles installing the android-sdk on Win7 x64 with JDK 7u3? Mar 23 00:01:45 dr1337, don't bother with jdk7 Mar 23 00:06:46 pfn: why not? Mar 23 00:10:26 pfn: are you on mac ? Mar 23 00:10:50 oh wait, nm … you don't use eclipse Mar 23 00:11:28 help! One of my Galaxy Note cannot be recognized by the computer, i.e. it doesn't show up in "adb devices" Mar 23 00:11:56 tttuuu: might have to install some drivers for it... Mar 23 00:11:57 When I plug it into the computer through USB, it starts to charge, so there is some connection at least Mar 23 00:12:16 it used to work Mar 23 00:12:21 it just stopped working Mar 23 00:12:30 usb cable alright ? Mar 23 00:12:37 tttuuu: reboot the device. Mar 23 00:12:53 I have tried that Mar 23 00:13:05 yes, USB cable Mar 23 00:13:15 tttuuu: lunix or windows? Mar 23 00:13:16 I have tried the USB cable on my other Galaxy Notes and they register Mar 23 00:13:19 MacOS Mar 23 00:13:22 oh haha Mar 23 00:13:24 weklp Mar 23 00:13:30 ? Mar 23 00:13:31 sorry, I have no idea what to even suggest there ._. Mar 23 00:13:41 This is the strangest thing ever Mar 23 00:13:59 have you enabled USB debugging? Mar 23 00:14:09 tttuuu: verify that you can plug it into another computer and that it shows the device. also try plugging other devices into this computer. Mar 23 00:14:29 OH Mar 23 00:14:33 tttuuu: try about this mac -> hardware -> usb Mar 23 00:14:48 oh, nm Mar 23 00:14:58 did I win? Mar 23 00:15:32 g00s, no, I'm neither on a mac nor use eclipse Mar 23 00:16:19 dr1337, because there is no jdk7 support in android Mar 23 00:16:49 wabz yes you did. With so many phones I lost track which ones are enabled Mar 23 00:17:17 that was silly of me. thanks for helping out everyone! Mar 23 00:17:24 bam Mar 23 00:17:27 thoughts? Mar 23 00:17:28 http://tachyondev.com/android/ss7.png Mar 23 00:17:32 v.setVideoPath("/raw/myvideo"); what is the correct pathing assuming it is in the raw folder ? and does android work with its native video encoding 3gp ? Mar 23 00:18:17 tttuuu: easy to overlook! Mar 23 00:18:45 TachyonDev get rid of the fugly tabs :( Mar 23 00:18:49 though I can't get the SDcard contents to show up Mar 23 00:19:00 even when I pressed "connect storage to PC" in "USB mass storage" Mar 23 00:19:02 canadiancow|work: and do what with them? Mar 23 00:19:10 i dont know Mar 23 00:19:19 TachyonDev: hire a UI guy or a graphics guy and do SOMETHING with those buttons jesus christ Mar 23 00:19:33 at the very least make hdpi/xhdpi versions of those rounded corners Mar 23 00:19:39 or use shape drawables or something that will do this for you at runtime Mar 23 00:19:39 TachyonDev: O GOD MY EYES THE GOGGLES DO NOTHING Mar 23 00:19:51 TachyonDev: Why do you hate retinas? Mar 23 00:20:03 lol Mar 23 00:20:07 well it currently looks like this Mar 23 00:20:07 https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntable Mar 23 00:20:08 haha Mar 23 00:20:21 the web 1.0 real looking fader had to go Mar 23 00:20:24 I agree with ctate tho, those colors makes eyes bleed Mar 23 00:20:28 well at least that button scheme isn't painful Mar 23 00:20:58 seriously, scrap the programmer art and hire someone who knows what they're doing in the field of UI, especially since you're apparently making zillions on this Mar 23 00:20:59 I don't agree with the color assessment Mar 23 00:21:15 generally looks fine and clickable to me Mar 23 00:21:21 yeah dj equipment usually needs to be bright and noticable Mar 23 00:21:33 and mostly fits in with the typical soundboard kinda device Mar 23 00:22:16 if you are DJ'ing in a club and need to know really quickly if audio is playing or cued Mar 23 00:22:29 you want big bright strobing obvious shit Mar 23 00:22:41 TachyonDev: i think it looks fine, especially if those colors blend in with real life HW. but, i would remove the red broders Mar 23 00:23:09 g00s: interesting Mar 23 00:23:58 g00s: which ones? Mar 23 00:24:12 I dunno about djing in a club with a phone, though Mar 23 00:24:13 heh Mar 23 00:24:27 well, i guess the ones around the buttons. Mar 23 00:24:34 phones are rather illsuited, at least as an audio source device Mar 23 00:24:46 maybe this is for tablet too Mar 23 00:24:46 particularly android phones, since they rarely come with an actual line-output Mar 23 00:24:48 pfn: yeah its more for parties or whatever so you dont have to bring your record crates Mar 23 00:24:58 pfn: or a tablet at a club if people request something, you can download it Mar 23 00:25:09 mostly it's audio output quality Mar 23 00:25:21 but most clubs are ear-bleeding loud that audio quality isn't such a huge deal, I suppose Mar 23 00:25:36 pfn: ive had a lot of people say they just travel with a couple phones and a mixer and if they end up at a party without a dj, they can throw down and shit .. its crazy Mar 23 00:25:49 TachyonDev: its from that to salsa teachers needed to slow down the song to teach moves Mar 23 00:25:56 pfn: indeed Mar 23 00:26:22 ive been asked to put 50% slowdown in there too Mar 23 00:26:23 not sure why Mar 23 00:26:41 with pitch preservation or not? Mar 23 00:26:48 nobody about if android supports it native 3gp embeded in the res/raw folder Mar 23 00:26:48 also, exactly 50% or variable? Mar 23 00:26:56 ctate: lol the pitch preservation would make 50% slower sound like poop Mar 23 00:27:06 ctate: just an option for 50% Mar 23 00:27:19 interesting Mar 23 00:27:19 ctate: you can switch from 8, 12, and 20% granularity Mar 23 00:27:22 without pitch preservation will make it sound like gozer or something Mar 23 00:27:32 barrrrryyyy whitttte Mar 23 00:27:35 pfn: or make the Chipmunks sound human Mar 23 00:27:36 :) Mar 23 00:27:41 droidbuster: I would assume that android supports 3gp, look at d.android.com, it lists the formats android supports. Mar 23 00:27:53 pitch preservation doesnt work very well below -5% or so Mar 23 00:27:57 well yeah Mar 23 00:27:59 you are just making up data after that Mar 23 00:28:06 INTERPOLATE ME HARDER Mar 23 00:28:10 hah Mar 23 00:28:30 I guess people are mostly interested in pitch preservation when increasing playbackrate Mar 23 00:28:39 i.e. making shit faster without sound like chipmunks Mar 23 00:28:45 exactly Mar 23 00:28:56 unless you like happy chipmunkcore Mar 23 00:29:00 you can watch more tv like that. I found that above 1.2x or so, it can get hard to follow Mar 23 00:29:35 I watch soooo much video @ 1.5X. TedTalks, lectures, etc. Great time saver. ]]]]]]]]]]] Mar 23 00:29:50 Glad VLC and mplayer have the pitch-correct speedup. Mar 23 00:29:59 zcat: you could just read the transcription instead :P Mar 23 00:30:01 very few android apps had it until recently. Mar 23 00:31:17 "Android x86-based system image" <-- where is this Mar 23 00:31:37 i see ARM EABI 7 Mar 23 00:31:54 g00s, download it via the sdk manager Mar 23 00:31:57 There's only the api10 image so far Mar 23 00:32:01 It's a seperate download Mar 23 00:32:47 SimonVT: oh thanks, huh. weird there is only one in api 10 Mar 23 00:32:54 that was confusing Mar 23 00:33:52 i hate when the emulator hangs at the android screen Mar 23 00:34:04 is it printing anything to logcat? Mar 23 00:34:09 it might just be slow Mar 23 00:34:44 i use the 'no show animation' flag Mar 23 00:34:59 I use snapshots Mar 23 00:35:07 i had problems with those Mar 23 00:35:11 maybe try again Mar 23 00:35:14 i dont understand why theres only a gingerbread emulator Mar 23 00:35:49 oh wait Mar 23 00:35:50 nm Mar 23 00:35:50 i do Mar 23 00:35:55 man that guy was pissed at my ads Mar 23 00:36:04 jeez Mar 23 00:37:02 https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree&reviewId=00433643326445527276 Mar 23 00:37:04 lol wow Mar 23 00:37:24 good thing i had 15 5-star reviews in the past 4 days to counteract that :P Mar 23 00:37:49 i am making a tweak to the ad display calculation tho Mar 23 00:38:03 ZOMG I GET FREE STUFF AND THEN I HAVE TO LOOK AT ADS?!?! Mar 23 00:38:14 yeah i know Mar 23 00:38:19 and i dont cripple at all Mar 23 00:38:31 my competitor takes away the fricking cue button Mar 23 00:39:24 oh man i want the new simcity Mar 23 00:39:39 http://www.youtube.com/watch?v=T70evBJE93s Mar 23 00:41:08 SimonVT: you should pay me for the privilege to look at ads Mar 23 00:41:15 and then you should pay me to click them Mar 23 00:41:19 You should pay me for being awesome Mar 23 00:41:21 and then they advertiser should also pay me Mar 23 00:41:24 no im awesome Mar 23 00:41:24 (why does dj stuff have to be so bright? it's not like you're spinning in FULL SUNLIGHT....) Mar 23 00:41:28 TachyonDev: I'm guessing having a paid-only version doesn't work? I imagine it would filter the type of good/bad reviews by quite a bit. Mar 23 00:41:33 ctate: +1 Mar 23 00:41:41 no sureaint Mar 23 00:41:45 sureaint: yeah i tried that Mar 23 00:41:46 in-app purchase to remove ads Mar 23 00:41:47 ! Mar 23 00:42:05 sureaint: and i was getting quite a few sales.. but a lot of angry people rating it badly because it wasnt what they thought it was Mar 23 00:42:08 how much do you get from ads, out of interest? Mar 23 00:42:17 millions of dollars Mar 23 00:42:22 if you're zynga Mar 23 00:42:24 not you, zyngadevil Mar 23 00:42:38 mm, devilcow Mar 23 00:42:45 i mean the average joe with his ~1000ish users Mar 23 00:42:45 ~$150/month Mar 23 00:42:51 storkme: pulling in ~2000 downloads a day, ~25,000 downloads so far, $10-$15/day Mar 23 00:43:03 wow Mar 23 00:43:04 burgers that taste like the unfulfilled dreams of children.... Mar 23 00:43:05 that's pretty good Mar 23 00:43:15 my ads are like $1/user/month Mar 23 00:43:19 ctate :( Mar 23 00:43:20 yeah had it out for 2 weeks Mar 23 00:43:56 ctate can you go make a static lib that does mdns service hosting and discovery for android? Mar 23 00:44:04 kthxbai Mar 23 00:44:04 "mdns"? Mar 23 00:44:06 i guess it's a substantial enough sum of money to bug a couple of users Mar 23 00:44:07 mDNS Mar 23 00:44:17 emm dee enn ess Mar 23 00:44:18 ah that Mar 23 00:44:26 yeeeeeeeeeeah i'll get right on that Mar 23 00:44:29 kthx Mar 23 00:44:33 i'll buy you a beer for it Mar 23 00:44:33 also getting you a pony unicorn Mar 23 00:44:36 :D Mar 23 00:44:39 [20:44:33] <@ctate> also getting you a pony unicorn Mar 23 00:44:42 IT'S IN WRITING NOW Mar 23 00:44:52 That's a binding contract! Mar 23 00:44:55 yep Mar 23 00:45:26 ctate: get my DJ app features and you can have the pick of my beer cellar :) Mar 23 00:45:33 featured* Mar 23 00:45:59 man this one beer i have on tap now is sooooo goood Mar 23 00:46:06 i have at best zero effect on app featuring Mar 23 00:46:10 at worst, negative effect. Mar 23 00:46:13 unfilitered Southern Tier Gemini Mar 23 00:46:13 careful what you ask for. Mar 23 00:46:28 hah Mar 23 00:46:34 fair enough Mar 23 00:46:47 TachyonDev: about 15 feet from me right now is a kegerator with http://www.gooseisland.com/pages/matilda/25.php Mar 23 00:46:56 woooooo Mar 23 00:47:05 im going to chicago on the 2nd Mar 23 00:47:06 :P Mar 23 00:47:23 ctate: managed to find me a bottle of Bourbon County Coffee Stout a couple weeks back Mar 23 00:47:44 ctate: its sitting next to my 2010 23-year rare bourbon county stout Mar 23 00:47:57 ctate: https://picasaweb.google.com/109124286422639953134/Bar Mar 23 00:48:40 the jager machine mostly just sits there Mar 23 00:48:44 $1/user/month? Mar 23 00:48:48 that sounds pretty awesome Mar 23 00:49:11 canadiancow|work: what about going ad-free for a couple of weeks to grab users before throwing ads at them? Even worse for reviews? Mar 23 00:49:14 yeah the real question is how many users per month Mar 23 00:49:24 (I'm just curious how people work towards getting good reviews for their apps) Mar 23 00:49:33 sureaint: have a good app? Mar 23 00:49:35 sureaint: probably Mar 23 00:49:55 pfn: i'd rather make 1 cent and have more users :P Mar 23 00:50:07 ctate: damn you, now I am pining for a belgian pale Mar 23 00:50:09 canadiancow|work, it's terrible if you have 1 user, I guess Mar 23 00:50:22 ctate you can get apps featured? Mar 23 00:50:24 holy Mar 23 00:50:37 also: i told a friend you were getting me a unicorn Mar 23 00:50:40 canadiancow|work: I'm pretty sure he said the opposite of that Mar 23 00:50:41 he'd like one too please Mar 23 00:50:43 hello Mar 23 00:51:03 The_Fred: OMG RUN! Mar 23 00:51:06 lol Mar 23 00:51:20 canadiancow|work: nb the unicorn only applies as long as you're a virgin HTH Mar 23 00:51:22 TachyonDev, run... from what? me?? Mar 23 00:51:46 canadiancow|work, but 1000+ users is a pretty good income stream if it's $1/user/mo Mar 23 00:51:56 TachyonDev: in the past we've also had Unibroue beers :) Mar 23 00:52:02 pfn: i have 1/10th that :P Mar 23 00:52:03 and Roedenbach Grand Cru Mar 23 00:52:06 ctate: good thing i am :D Mar 23 00:52:07 ctate: wooo .. La Fin Du Monde? Mar 23 00:52:14 now where's my unicorn Mar 23 00:52:15 yup Mar 23 00:52:23 though personally i'm more fond of Maudite Mar 23 00:52:30 (and Blanche de Chambly, mmmmm) Mar 23 00:52:37 ctate: I'm trying to get a keg of that and a keg of dogfish 120 minute for our end of the world party in december Mar 23 00:52:44 yeah we've had the DFH too Mar 23 00:53:02 ctate: ive got 16 bottles of 120 min in the basement Mar 23 00:53:02 the guy who buys the beer... has taste :) Mar 23 00:53:11 ctate: yea for real Mar 23 00:53:25 +1 Beer Guy Mar 23 00:53:40 welcome to #alcohol-dev Mar 23 00:53:44 hah Mar 23 00:53:56 ctate: at least it wasn't #alcoholic-dev Mar 23 00:54:14 man southern tier posts their labels .. sooo cool Mar 23 00:54:15 TachyonDev, you mean... there's a channel for that? Mar 23 00:54:22 The_Fred: there could be Mar 23 00:54:26 http://southerntierbrewing.com/for%20download%20page/downloads_gemini.html Mar 23 00:55:19 ctate: I was just at a bar in Brooklyn that had 5 beers on tap that were aged 3-6 years Mar 23 00:55:22 has anyone the patience to explain a bit about javax.speech.recognition Mar 23 00:55:25 ctate: and its an arcade Mar 23 00:55:34 The_Fred, javax.speech.recognition wouldn't work in android Mar 23 00:55:36 http://barcadebrooklyn.com/ Mar 23 00:55:37 what's to explain Mar 23 00:55:57 2007 DFH Old School .. Mar 23 00:56:00 sublime Mar 23 00:56:04 i thought that siad barcode brooklyn Mar 23 00:56:06 after you warmed it up to 60-70 or so Mar 23 00:56:10 lol Mar 23 00:56:13 canadiancow|work: nerd Mar 23 00:56:14 pfn, yup i know, its for a desktop app, but i was pointed here as the best source of info about how to hook it up to socket Mar 23 00:56:18 :( Mar 23 00:56:41 pfn, i was looking for some pointers on how to use the grammar rules Mar 23 00:56:49 not the place to be asking... Mar 23 00:56:55 canadiancow|work: it's okay.. ive seen every episode of star trek and star gate and star wars Mar 23 00:56:58 pfn, ok thanks Mar 23 00:57:05 me too! Mar 23 00:57:06 high five Mar 23 00:57:30 now lets talk babylon 5 Mar 23 00:57:34 TachyonDev, SG rocks :) Mar 23 00:57:47 The_Fred: you people have no idea how much my wife and I were into it Mar 23 00:58:09 and thats a fact that helps me sleep at night ;) Mar 23 00:59:19 TachyonDev, do you know if they are going to complete the SG Universe? Mar 23 00:59:35 The_Fred: unlikely .. Mar 23 00:59:35 like that's gonna happen Mar 23 00:59:43 what usually happens to cancelled shows Mar 23 00:59:45 nothing Mar 23 00:59:46 http://www.djtachyon.com/pub/StargateSymbol.png Mar 23 00:59:56 that was on the front of our wedding invitations Mar 23 00:59:59 *cough* Mar 23 01:00:07 errr Mar 23 01:00:09 programs Mar 23 01:00:11 pfn, ah... i did not know it was cancelled :( Mar 23 01:00:13 TachyonDev: hey Mar 23 01:00:16 Napalm: yo Mar 23 01:00:27 nice, just watching Enterprise as we speak Mar 23 01:00:29 so very nerdy Mar 23 01:00:35 the series Mar 23 01:00:50 seen all star gate, star wars and star trek Mar 23 01:01:04 * pfn lost interest when star trek went ds9 Mar 23 01:01:16 high five canadiancow|work and TachyonDev Mar 23 01:01:21 :) Mar 23 01:01:24 enterprise .. was. .. painful Mar 23 01:01:30 but i still watche dit Mar 23 01:01:35 voyager almost made it interesting Mar 23 01:01:41 lol Mar 23 01:01:54 shame voyager ended like it did Mar 23 01:02:16 goddam time paradox.... Mar 23 01:02:17 yeah shame a lot of these sci fi shows ended the way they did Mar 23 01:02:28 firefly .. *sigh* Mar 23 01:02:44 The_Fred: wasnt that the end to star gate? Mar 23 01:03:04 the ship were they got old Mar 23 01:03:13 ah, yes - Unending Mar 23 01:03:17 lol Mar 23 01:03:24 thats the one Mar 23 01:03:25 bah Mar 23 01:03:27 :( Mar 23 01:03:57 but tilk did the hard thing and reset the clock.... The Ori, thats who they where... dodging? Mar 23 01:04:02 i hate webdev Mar 23 01:04:10 sooo boring Mar 23 01:04:16 and unreliable Mar 23 01:04:32 making code/markup work across all browsers, what a pain in the ass Mar 23 01:04:44 man i need to put an FX panel into my dj app Mar 23 01:04:54 HP/LP Filters, Reverb, Echo Mar 23 01:05:02 ill scrap the EQ for that Mar 23 01:05:17 back later, time to chill Mar 23 01:05:19 not enough hours in the day Mar 23 01:05:25 Napalm: yeah same here Mar 23 01:06:57 Napalm: i'd rather make layouts work on different devices Mar 23 01:07:01 than work with IE Mar 23 01:14:08 readme: agreed Mar 23 01:19:02 kiumkiumkikimkimkmikmikmikimkmijkmijkmikmijjnmk,→' Mar 23 01:19:34 I disagree Mar 23 01:19:35 sorry, just dropped my screwdriver Mar 23 01:21:09 on your fingersÉ Mar 23 01:33:19 Is there any method or anything to clear the memory cache from your app? I have a splash screen that I guess uses a lot of memory (it stores a bunch of images then uses a animation-list to display them to make an animation), within that class I use finish() after the animation is done, which I thought would clear that but obviously it doesn't because my phone crashes when trying to get a 20kb image as background Mar 23 01:33:26 Oh yay, res-auto namespace Mar 23 01:33:56 So my main questions are is there a method/way to clear that list I stored, because aparently finish() isn't? and also is 20kb for a iamge background a lot or is that a reasonable size? Because I thought that was super small Mar 23 01:35:28 GC isn't instant Mar 23 01:35:42 What is GC? Mar 23 01:36:39 garbage collector Mar 23 01:37:04 "memory cache"? Mar 23 01:37:17 do remember to recycle your bitmaps Mar 23 01:37:32 And is that what deletes the stored memory that my animation-list would of stored? Mar 23 01:37:46 I'm unsure what that means ctate, so probably not. Only been with android for a few days now. Mar 23 01:38:04 http://developer.android.com/reference/java/lang/System.html see gc() Mar 23 01:38:08 http://developer.android.com/reference/android/graphics/Bitmap.html#recycle() Mar 23 01:39:05 T-Dub|DlolPics: gc works by counting references. when there are no refs left, it can free the memory, but won't do it immediately Mar 23 01:39:25 Well my logcat does have: 03-22 18:37:02.243: I/dalvikvm-heap(2389): Clamp target GC heap from 25.168MB to 24.000MB Mar 23 01:39:58 if you're seeing lots of GC in your logs it's likely you're not making effective use of your resources Mar 23 01:40:05 that means you're banging up against the maximum amount of memory that you're allowed to use Mar 23 01:40:30 what version of android is this, and on what device? 24 mb is pretty small Mar 23 01:40:42 if it's a phone with a smaller screen that's a little more reaosnable Mar 23 01:41:18 I'm developing for level 8, and on my droid x2 it works no problems, but I'm trying to assume not everyone has a good phone so I'm testing on my droid1, which sucks for specs haha Mar 23 01:42:22 I'm not using a bitmap to display my splash screen, I use an animation list. I'll upload, sec. Mar 23 01:43:06 T-Dub|DlolPics: did you try to compress your images more? Mar 23 01:43:39 readme: doesnt' help; it's the decompressed in-memory footprint that is the issue here Mar 23 01:44:37 strange that you only get 24 mb on the Droid X2 Mar 23 01:44:44 http://pastebin.com/dC4HcjKY that's what my animation is, this works w\ what appears to be no problems but currently it's all I really have to my app, therefore this has to be the memory hog? Mar 23 01:44:52 no, the 24mb is from the droid 1 Mar 23 01:44:59 oh, yeah Mar 23 01:45:06 but that doesn't run API 8 Mar 23 01:45:19 [or did froyo eventually ship for that device?] Mar 23 01:45:31 it xidt Mar 23 01:45:31 you might scrape some mem off by being more clever Mar 23 01:45:34 did Mar 23 01:45:35 with your images Mar 23 01:45:35 readme I have been compressing my images, I went from 100kb to currently 20kb. But every compress = less quality. Mar 23 01:45:41 show us the screen? Mar 23 01:45:43 a video of it Mar 23 01:46:03 Yes it does readme, It does exactly what a .gif is Mar 23 01:46:14 Just plays those images with whatever millisecond delay I put Mar 23 01:46:17 I'm not talking about compression Mar 23 01:46:28 try pngs? Mar 23 01:46:36 There might be redundancy Mar 23 01:46:38 I believe png made the file size bigger Mar 23 01:46:56 T-Dub|DlolPics: I know what AnimationDrawable does Mar 23 01:47:09 Oh sorry, I'm not understanding your question then. Mar 23 01:47:11 i dont see how loading 20kb of images uses 20mb of ram Mar 23 01:47:18 25mb* Mar 23 01:47:19 That makes two of us. Mar 23 01:47:20 file size is not relevant here; it's how big they are when uncompressed in memory Mar 23 01:47:22 20kb!? Mar 23 01:47:28 20kb->20mb? Mar 23 01:47:34 you can take a full screen single-color bitmap and it will compress to practically nothing Mar 23 01:47:38 but it will still be huge in memory Mar 23 01:47:54 at 4 bytes per pixel Mar 23 01:47:54 T-Dub|DlolPics: show us a screenshot of the splash screen Mar 23 01:48:17 It's an animation, I can show you it in like teamview/skype if you want Mar 23 01:48:28 maybe you can't compress, but you can instead eliminate the loading of redundant parts of the image Mar 23 01:48:29 then he should recycle each frame? Mar 23 01:48:32 Its slow as hell on the emulator but it will still serve the purpose. Mar 23 01:49:09 I may have confused you guys. The splash screen works, no crashes. It's when I start a new activity (which sets the background as an image) and due to the setting the background as an image my app crashes Mar 23 01:49:21 if I set the background as for example #000 (the color) it has no problems. Mar 23 01:49:32 yeah but it's because you wasted the mem in the splash screen that this happens Mar 23 01:49:32 is the image valid Mar 23 01:49:44 I just posted my splash screen because I assumed it was the splash screen taking all the memory or something. Mar 23 01:49:54 Yes the image is valid, the image shows up in my xml graphical layout Mar 23 01:50:02 Your animation is 29 images.. That's probably a lot of memory Mar 23 01:50:05 yeah, except the code isn't the problem. it's just the sheer amount of stuff you want to have laoded in memory Mar 23 01:50:06 but crashes when I try to run it on my droid 1. If I run it on my droid x2 it works Mar 23 01:50:35 what version of Android are you running on the droid? it looks like it's limiting you to 24 mb, which is awfully tight for the 480x854 screen size. Mar 23 01:50:40 Well that's what I was referring to earlier with a memory clear. Once my animation is done I call finish(). Shouldn't the delete all the memory? I don't want to use any of those images any more, they can be dumped Mar 23 01:50:46 you can either: remove frames from the splash screen, or find a way to render the same splash screen while loading less bits into memory. Mar 23 01:50:47 2.3.3?, sec Mar 23 01:50:59 Eventually it will GC everything. Eventually Mar 23 01:51:04 yes 2.3.3 Mar 23 01:51:05 * ctate didn't think 2.3 ever shipped for the Droid. Mar 23 01:51:11 is this some 3rd party rom? Mar 23 01:51:15 um Mar 23 01:51:18 shit yes it is rooted Mar 23 01:51:21 okay Mar 23 01:51:22 I'm running gingerbread Mar 23 01:51:31 whoever did hte port to the Droid fucked up the config Mar 23 01:51:37 and isn't giving apps enough heap space Mar 23 01:51:45 So a normal stock phone wouldn't be running on 24mb? Mar 23 01:51:48 T-Dub|DlolPics: if you will share your screen with join.me, I will take a look Mar 23 01:51:56 a normal stock Droid doesnt' run Gingerbread :) Mar 23 01:51:56 Sure, let me open up TV Mar 23 01:52:14 my droid 3 does Mar 23 01:52:14 :) Mar 23 01:52:15 readme, 619 215 152 1959 Mar 23 01:53:08 isn't that too many numbers for join.me Mar 23 01:53:20 Oh I thought you ment TeamViewer. Never heard of join.me Mar 23 01:53:26 oh, I'll get tv, 1 sec Mar 23 01:53:54 I just got join.me haha Mar 23 01:53:59 https://join.me/591-103-198 Mar 23 01:54:37 ok cool Mar 23 01:54:43 watching Mar 23 01:54:54 Ok I have a problem/question with running it through the emulator Mar 23 01:55:06 I've never been sucessful in getting it to run in the current one open Mar 23 01:55:10 I've always used my phone Mar 23 01:56:05 ok I see the emulator, let me know when it starts in a couple hrs. Mar 23 01:56:12 Lol, ok. Mar 23 01:56:31 So like I stated before, from at least testing last time, it will work fine on the emulator. Mar 23 01:56:35 But it crashes on my droid 1. Mar 23 01:57:02 Ok it loaded readme, did you happen to see it? Mar 23 01:57:05 is that splash ALL images in AnimationDrawable? Mar 23 01:57:19 Everything but this current one with the guy w\ the dollar Mar 23 01:57:21 run that again Mar 23 01:58:03 Any suggestions w\ the emulator, this always happens and it crashes/freezes Mar 23 01:58:08 yeah.. that little elecrical signal at the bottom should be an animation drawable Mar 23 01:58:11 eclipse says it's loading it but it never does. Mar 23 01:58:19 but the flood of the screen with green color should not be part of the animationdrawable animation Mar 23 01:58:22 that's just a waste of ram Mar 23 01:58:28 you can acheive that with other animations, too Mar 23 01:58:46 Well please keep in mind I've been doing android for a few days now, and was lead into doing it that way. Mar 23 01:58:56 I'm not judging you Mar 23 01:58:57 I have no other knowledge or anything w\ animation Mar 23 01:59:04 Lol, I know that, was just saying. Mar 23 01:59:15 hello other screen! Mar 23 02:01:23 hi Mar 23 02:16:35 aewpofimaefpoiamef Mar 23 02:16:58 So I have a TextView in a LinearLayout next to a button Mar 23 02:17:18 For some reason the TextView is being pushed down as if it has some kind of marginTop set Mar 23 02:17:51 my webcam light is on... Mar 23 02:18:12 Isn't me! Mar 23 02:18:33 oh I know, got to gravitate to top Mar 23 02:20:00 Though what I need is a "Gravity" set to top-right Mar 23 02:26:36 i cant believe my life Mar 23 02:26:41 i spend all day working on android Mar 23 02:26:45 and then i come home and play with android Mar 23 02:26:47 and then i sleep Mar 23 02:26:49 and it starts over Mar 23 02:28:32 Can you use .gif files in android? Mar 23 02:29:37 Poor canadiancow|work ;O Mar 23 02:29:44 but it's fun :) Mar 23 02:29:53 I spend all day not working on android stuff, then I get home and work on android stuff! Mar 23 02:29:57 lol Mar 23 02:30:03 im just playing around with google tv Mar 23 02:30:10 I want one Mar 23 02:32:48 are you in the US? Mar 23 02:33:40 No oO Mar 23 02:33:41 no...denmark Mar 23 02:33:42 hmm Mar 23 02:33:55 i told a friend of mine to email a guy at google about getting a free revue, and it worked Mar 23 02:34:07 but i know for a fact there are like 50 sitting at Google Toronto and theyre never gonna get used Mar 23 02:34:17 Yeah.. Think I have to wait til later this year, samsung or someone is releasing one here Mar 23 02:34:23 man these query builders are making it 10x harder than just writing the query Mar 23 02:34:24 sony just announced something Mar 23 02:34:34 Might be sony Mar 23 02:35:00 Yeah, Sony Mar 23 02:35:07 NSZ-GS7 Mar 23 02:36:49 im having issues with AndEngine on google tv Mar 23 02:36:50 ugh Mar 23 02:43:18 SimonVT: i always thought you were in the US... I had assumed VT was for Vermont. Mar 23 02:43:36 It's my middle and last name :p Mar 23 02:46:12 everyone should make their names give all their info away Mar 23 02:46:27 bah it's too long Mar 23 02:46:37 i heard in denmark you can have a 15 year old girlfriend Mar 23 02:46:43 ... Mar 23 02:46:54 im pretty sure thats possible anywhere Mar 23 02:47:00 legally Mar 23 02:47:00 haha Mar 23 02:47:09 at least.. lol Mar 23 02:47:14 happy canadiancow|work ? Mar 23 02:47:15 Yeah, you can Mar 23 02:47:22 in canada, the SEX is legal with 14-15 year olds if you're within 5 years Mar 23 02:47:33 but you can have a girlfriend of any age Mar 23 02:47:40 here its 16, or 14 with parental consent Mar 23 02:47:46 lol Mar 23 02:47:49 here 16 is fair game too Mar 23 02:47:51 parental consent? Mar 23 02:47:51 like Mar 23 02:48:00 like if her dad says its ok, go for it Mar 23 02:48:04 canadian law at its best: "The exception, of course, is anal intercourse" Mar 23 02:48:08 "dad, can you sign this for me?" Mar 23 02:48:13 The US is state by state. Mar 23 02:48:13 HAHAHAHA Mar 23 02:48:14 lmfao yup Mar 23 02:48:16 hahahaha Mar 23 02:48:23 welcome to michigan Mar 23 02:48:38 http://www.parl.gc.ca/Content/LOP/ResearchPublications/prb993-e.htm Mar 23 02:48:52 The Criminal Code does not now criminalize consensual sexual activity with or between persons 14 or over, unless it takes place in a relationship of trust or dependency, in which case sexual activity with persons over 14 but under 18 can constitute an offence, notwithstanding their consent. Even consensual activity with those under 14 but over 12 may not be an offence if the accused is Mar 23 02:48:52 under 16 and less than two years older than the complainant. The exception, of course, is anal intercourse, to which unmarried persons under 18 cannot legally consent, although both the Ontario Court of Appeal(3) and the Quebec Court of Appeal(4) have struck down the relevant section of the Criminal Code. Mar 23 02:49:29 loooool Mar 23 02:49:38 hahahaha Mar 23 02:49:42 it's either you just Googled that Mar 23 02:49:47 i googled it Mar 23 02:49:49 or had it stored somewhere just in case Mar 23 02:49:50 lol Mar 23 02:49:50 but i know the phrsae too Mar 23 02:49:52 That's.. fucked :p Mar 23 02:49:59 [22:48:04] canadian law at its best: "The exception, of course, is anal intercourse" Mar 23 02:50:03 lol Mar 23 02:50:22 * canadiancow|work is glad ctate and lov are gone **** ENDING LOGGING AT Fri Mar 23 02:59:58 2012