**** BEGIN LOGGING AT Wed Jun 13 02:59:58 2012 Jun 13 03:33:36 Ìû Jun 13 03:34:42 romainguy: read any good photography books lately ? Jun 13 03:39:55 hi Jun 13 03:46:29 well I have this odd problem Jun 13 03:47:38 I call activity, it starts and I can select an image Jun 13 03:47:52 but when im done selecting, it .. starts activity again. Jun 13 03:59:05 canadiancow: it redirects to google for me too. Jun 13 04:09:40 man this is fooked up weird Jun 13 04:10:10 is there specific function I should call to END activity? Jun 13 04:10:30 because for some reason this actibity comes back to life again and again... Jun 13 04:12:06 XXCoder: sounds like you're launching an intent for it Jun 13 04:12:15 XXCoder: or have a timer waking up Jun 13 04:12:56 well basically I launch activity on click. that actiivity launches picture chooser Jun 13 04:13:56 HMM I wonder if there should be specific code to tell android that press was handled? Jun 13 04:14:26 I remember some languages you have to call onClickHandled() or something Jun 13 04:18:15 dragorn: yeah "this.finish();" Jun 13 04:18:21 it stopped it lol Jun 13 04:47:31 When I run a loop to set bitmap to imageview - then a animation. The animation only plays on the last loop. Jun 13 04:52:49 zc, Jun 13 04:52:58 whats up Jun 13 04:54:23 nothing.. just wanna test the autocomplete function Jun 13 04:55:23 so Jun 13 04:55:24 seem not to work properly... Jun 13 04:55:29 oh Jun 13 04:55:45 auto complete from on screen keyboard? Jun 13 04:57:19 no Jun 13 04:57:39 what autocomplete is it? Jun 13 04:58:13 I saw a tag says "昵称自动补全" in the "输入框" preference, but i dont know how to use it properly Jun 13 04:58:53 sorry I dont know what's it called in English Jun 13 05:00:38 maybe it's "nickname autocompletion" option Jun 13 05:01:44 i dont know how auto complete works in chinese Jun 13 05:03:09 never mind.thx Jun 13 05:04:01 o...I misunderstood it..what a fool i am Jun 13 05:11:01 so, I've changed my strings.xml file and added a new string Jun 13 05:11:08 but my R.java file still hasn't been updated Jun 13 05:11:08 eph3meral: and cleaned Jun 13 05:11:10 ant debug Jun 13 05:11:15 doesn't seem to take care of updating R.java Jun 13 05:11:17 ant clean && ant debug Jun 13 05:11:21 ah k thx Jun 13 05:11:43 sometimes it does, sometimes it doesn't... ant clean deletes it, so it forces it to be rebuilt... adds a second or two onto your build time, but I think that's ok :) Jun 13 05:12:21 hmm, actually I'm still getting the same error Jun 13 05:12:50 hmm, R.java is completely gone now actually Jun 13 05:12:56 as is everything that was in gen/ Jun 13 05:13:04 yes, that's what clean does Jun 13 05:13:07 then you do debug Jun 13 05:13:29 if there's nothing in gen/ afterwards, it means your build failed - which might be why it wasn't updating in the first place Jun 13 05:14:15 k, yeh my build is failing Jun 13 05:14:28 android:text="@string/hello/" Jun 13 05:14:39 res/layout/main.xml:2: error: Error: No resource found that matches the given name (at 'text' with value '@string/hello/') Jun 13 05:14:46 except, in strings.xml Jun 13 05:14:47 I have Jun 13 05:15:04 take the / off the end - @string/hello Jun 13 05:15:18 Whassaaaaahhhhh!!!(p)!!1!111!!!!1eleven!! Jun 13 05:15:25 hmm, ok well that's what the tutorial has Jun 13 05:15:30 which tutorial? Jun 13 05:15:32 extra slash there, i was kind of wondering about that Jun 13 05:15:43 Leeds, this one http://developer.android.com/resources/tutorials/hello-world.html Jun 13 05:16:05 read it more carefully... Jun 13 05:16:22 it certainly does not say Whassaaaaaaaaaaaaaaaaaaaaaah Jun 13 05:16:26 yep, now it builds Jun 13 05:16:35 I got a question Jun 13 05:16:38 readme, of course not, that's what mine says Jun 13 05:16:47 eph3meral: it says "@string/hello"/> not "@string/hello/"> Jun 13 05:17:04 oh, hah, yeah it does Jun 13 05:17:05 my bad Jun 13 05:17:07 XXCoder: 12 Jun 13 05:17:11 basically, I dont have real choice but do this to start browse pictures to select em... Intent i = new Intent(this.getContext(), ChooseFile.class); Jun 13 05:17:11 getContext().startActivity(i); Jun 13 05:17:31 however there does not appear to be a way to get any results from it? Jun 13 05:17:32 XXCoder: what is this? Jun 13 05:18:23 getContext does not have startActivityForResult(i); Jun 13 05:18:24 one more X and your nick would probably accurately describe the kind of app you're developing. Jun 13 05:18:35 XXCoder: http://developer.android.com/reference/android/app/Activity.html#StartingActivities Jun 13 05:19:03 Leeds: the calling class is not activity Jun 13 05:19:15 the above code is workaround Jun 13 05:19:26 erm... what are you talking about? Jun 13 05:19:27 ChooseFile is activity class Jun 13 05:19:58 yes, of course it is Jun 13 05:20:17 However above class is in FileChoose.class which is not activity Jun 13 05:20:34 which doesn't matter at all in any way whatsoever Jun 13 05:21:58 XXCoder: go read the very specific part of the docs I just linked you to Jun 13 05:22:25 the bit that starts with "Sometimes you want to get a result back from an activity when it ends." Jun 13 05:23:38 I think the problem is that he wants to get a result back from an activity that he is starting from a class that is not an activity, presumably, a BroadcastReceiver, since he's using getContext(), admittedly, this is a bad design. Jun 13 05:24:02 startActivityForResult is an activity method, not found in context. Jun 13 05:24:17 readme: problem solved thanks to pboos Jun 13 05:24:34 * Leeds doesn't see pboos talking Jun 13 05:24:37 cool thx for wasting our time Jun 13 05:24:39 just save it in sharedpreferences Jun 13 05:24:48 readme: it was like second ago. Jun 13 05:24:54 so.. not wasting time. :P Jun 13 05:25:07 nope, i'm pretty sure my time was just wasted Jun 13 05:25:12 sorry.. we fixed it in pm thread. spoke before that about other problem to not spam in here. Jun 13 05:25:43 pboos: if he feels his time was wasted, he wasted his time. nothing we can say to change that. Jun 13 05:25:44 readm:e agree it is bad design. but because he is doing it for WallPaper (out of DialogPreference) there is not really another way that I can come up with quick. Jun 13 05:25:51 next time please don't ask for help here if you are already receiving a free private consultation as not to duplicate the amount of human effort required to subsidize your lack of research. Jun 13 05:26:10 readme: we wasnt, he just returned and replied. Jun 13 05:26:17 readme: thing is i was gone for lunch and just came back 1min ago. he asked while i was gone. Jun 13 05:26:41 ok so I just finished reading this http://developer.android.com/guide/developing/building/building-cmdline.html Jun 13 05:27:23 is it possible to and or how do it: build, install while overwriting and then run an app on a virtual device from the command line? Jun 13 05:27:30 similar to just hitting the green "run" arrow Jun 13 05:27:32 in eclipse Jun 13 05:27:40 s/how do it/how do i/ Jun 13 05:27:53 eph3meral you can do it with ant Jun 13 05:28:15 pboos, ok, cool how do I do that? it doesn't seem to be listed at the bottom of that page in the commands they tell you about Jun 13 05:28:47 man i wonder how the hell other livewallpapers do select pictures thing Jun 13 05:29:52 Atm my livewallpaper does it in 2 ugly hacks, calling activity from non-activity class, AND saving specific setting in that said activity rather than in class that manages settings. Jun 13 05:29:59 eph3meral there are several ways Jun 13 05:30:14 eph3meral: first build with ant Jun 13 05:30:41 actually I think saved settings can be unrelated to livewallpaper settings itself, just a temp setting. Jun 13 05:30:43 ph3meral: then installing with either: ant installd/installr (debug or release), or adb install bin/yourapk.apk Jun 13 05:31:08 pboos, yes, and then can I trigger it to be run inside the simulator from the command line? Jun 13 05:31:13 eclipse seems to be able to do this? Jun 13 05:31:27 i understand using ant installd/installr Jun 13 05:31:29 eph3meral: then start the main activity with: adb shell am start ... (not sure exactly which one) Jun 13 05:31:32 XXCoder: two ways, I think - firstly, a live wallpaper can have a settings activity... secondly, there's nothing stopping you from having a regular launchable activity as well Jun 13 05:31:39 eph3meral: frankly, it'll be easier to just run it Jun 13 05:31:41 pboos, awesome ok thanks I'll look in to adb Jun 13 05:31:46 from the launcher in the emulator Jun 13 05:31:49 Leeds, you mean from eclipse? Jun 13 05:31:58 ah, yeah my emulator is *so* slow Jun 13 05:32:13 so, ant install, will that overwrite what was on the device previously? Jun 13 05:32:20 leeds not sure how to add extra "set pictures" button in preview? Jun 13 05:32:29 eph3meral: run "adb shell am start" in the console and then browse through the options you have Jun 13 05:32:37 pboos, ok will do thanks Jun 13 05:32:49 what does the am stand for, if you don't mind? Jun 13 05:33:08 eph3meral: for me "adb shell am start -n com.package/com.package.Activity" works. but i had problems with that on unrooted phones. but maybe works in emulator. Jun 13 05:33:40 eph3meral: not sure, but i think it stands for activitymanager? Jun 13 05:33:58 ah, ok Jun 13 05:34:14 ok cool one sec Jun 13 05:34:27 am start -a android.intent.action.MAIN -n Jun 13 05:34:27 com.iftitah.android.contact/com.iftitah.android.contact.Contact" Jun 13 05:34:34 adb shell am start; just by itself is giving me an error and a bunch of usage output Jun 13 05:34:52 pboos, er, ok which one is it? :) Jun 13 05:35:03 both lines in one (sorry for the linebreak) Jun 13 05:35:27 no but that first command or this second one that's split in to two lines? Jun 13 05:35:31 which one is it? Jun 13 05:35:40 also, neither -a nor -n seem to be valid options for am start Jun 13 05:35:46 at least according to the help output Jun 13 05:35:54 am start -a android.intent.action.MAIN -n your.package.name/your.package.name.YourMainActivity Jun 13 05:35:58 am start [-D] [-W] [-P ] [--start-profiler ] Jun 13 05:35:58 [--R COUNT] [-S] Jun 13 05:36:20 or are the -a and -n just options to adb? Jun 13 05:36:23 specifications include these flags and arguments: Jun 13 05:36:23 [-a ] [-d ] [-t ] Jun 13 05:36:29 if you scroll down, you see them Jun 13 05:36:33 ahh, ok thanks Jun 13 05:36:38 didn't realize Jun 13 05:36:59 ah great, yes I see it now, thanks Jun 13 05:38:58 pboos, excellent, it works, thanks so much Jun 13 05:39:21 eph3meral: you are welcome Jun 13 05:42:09 yeah onSharedPreferenceChanged is perfect for detecting temp variable Jun 13 05:42:21 waiting for headache med to hit though lol Jun 13 05:42:49 weather around here has been very weird. havent went higher than 70s and middle of "summer" Jun 13 05:47:08 I have become interested in developing games on Android- particularly with AIDE and other tools that can be used from Android. Jun 13 05:50:44 pboos, hey so when I run adb install Jun 13 05:50:49 pboos, does that overwrite? Jun 13 05:50:57 pboos, I got an error before that the app was already installed Jun 13 05:51:07 pboos, is there a flag I can provide to overwrite if the app is installed? Jun 13 05:52:40 eph3meral: don't think it has. maybe you want to try "adb install -r bin/app.apk" Jun 13 05:52:41 something like --force for apt-get in linux? Jun 13 05:54:06 pboos: http://stackoverflow.com/questions/3679330/choosing-background-for-live-wallpaper Jun 13 05:55:01 I finally found it. just dont understand it yet. Jun 13 05:55:15 double fun combo of dizzyness and headache is slowing me down Jun 13 05:57:27 pboos, ahh is that uninstall? Jun 13 05:57:37 that'd work actually, if I need to uninstall, that's fine Jun 13 05:58:18 yeah if all automated, 2 lines or one line dont make difference. Jun 13 05:58:45 actually I think removing would also remove settings if any, but besides that.. Jun 13 05:58:46 eph3meral: you want to uninstall the app (than you will loose the settings) Jun 13 05:58:55 eph3meral: adb uninstall your.package.name Jun 13 06:00:04 I keep forgetting that androids kills settings of applications that get uninstalled. unlike windows lol Jun 13 06:02:36 really Jun 13 06:02:43 what about malwares Jun 13 06:02:55 how does android protect you from malwares Jun 13 06:03:02 ok, so first adb install -r and then adb uninstall package name? do I need to do both? Jun 13 06:03:08 pboos, ^ Jun 13 06:03:25 eph3meral: only adb install -r ... Jun 13 06:03:46 eph3meral: '-r' means reinstall the app, keeping its data Jun 13 06:05:53 pboos, oh, ok yeah so that's exactly what I want :) Jun 13 06:05:58 cool thanks Jun 13 06:07:19 pboos, I don't see install d in the output for adb help Jun 13 06:07:25 er, installd sorry Jun 13 06:10:55 installd is an "ant" command Jun 13 06:11:05 just enter "ant" in the commandline Jun 13 06:12:46 pboos: remember my recent link http://stackoverflow.com/questions/3679330/choosing-background-for-live-wallpaper ? I dont get it... it has class thats NOT extending activity calling startActivityForResult(photoPickerIntent, 1); Jun 13 06:14:02 XXCoder: it is extending PreferenceActivity which is extending Activity. So it does work Jun 13 06:14:18 XXCoder :public class flashSettings extends PreferenceActivity implements ... Jun 13 06:14:42 ahh yeah like activity as "grandfather" Jun 13 06:15:17 it makes better sense. I'll make my live wallpaper use that. much better than that fooking ugle hack Jun 13 06:18:14 I think I figured out the orchestration of my Game threads. If I post to a Handler, it acts like a queue, handling only one post at a time, right? Jun 13 06:22:16 how do you run the sdk manager from the command line? Jun 13 06:22:59 android-sdk-macosx/tools/android Jun 13 06:30:24 How do I make Thread A wait until its post to Thread B's handler is executed before continuing? Jun 13 06:31:53 I am posting runnables, not messages Jun 13 06:32:26 I need to wait until the draw via the surfaceholder completes before I make my game thread sleep the remainder of the time step Jun 13 06:32:29 serialize with some form of locks? Jun 13 06:33:49 I am accomplishing this via the Handler, right? I just want a certain runnable called by the Game thread to report back to the Game that it has finished executing Jun 13 06:34:41 agree with p_l use a lock (http://developer.android.com/reference/java/util/concurrent/locks/Lock.html) Jun 13 06:35:50 I normally don't advocate locks, but in this case you have clearly a single limited resource, classic semaphore case :) Jun 13 06:38:20 Okay, so I just lock, post my runnable, and then finally unlock, then continue executing after the finally block finishes? Jun 13 06:39:00 or lock, draw with surface holder and unlock? Jun 13 06:39:20 if i lock and post the runnable, will it unlock before the runnable finishes executing? Jun 13 06:44:31 is there a way to start a specific virtual device without launching `android avd` Jun 13 06:48:55 eph3meral: Use the the button for AVD Manager in Eclipse Jun 13 06:50:03 eph3meral: or start a specific avd using emulator -avd Jun 13 06:53:46 cyrilmottier, ok Jun 13 06:53:57 I keep getting strange issues when launching the emulator(s) Jun 13 06:54:03 I don't know what's causing it Jun 13 06:54:29 it's usually fixable by some weird voodoo combination of changing the CPU settings and cache settings etc in the config, and then relaunching Jun 13 06:54:37 has anyone else come across that issue in the AVD Manager? Jun 13 06:55:25 yeah, I'm still getting a segfault Jun 13 06:55:25 segmentation fault emulator -avd MySim Jun 13 06:55:40 emulator: WARNING: Unable to create sensors port: Connection refused Jun 13 07:08:14 ok, so ti appears I'm seeing this issue: Jun 13 07:08:15 http://code.google.com/p/android/issues/detail?id=20952 Jun 13 07:08:22 the funny thing is, I don't even *have* a webcam Jun 13 07:17:21 wow, seriously? wtf? this is like, really lame... how come it takes so long to get a fix for something like Ubuntu 11.10? Jun 13 07:17:28 is everyone in here a windows dev or something? Jun 13 07:18:24 ... Jun 13 07:18:48 i just don't see how no one has found a solution for this yet Jun 13 07:19:25 I mean, has that guy's patch been incorporated yet? I don't wanna deal with downloading and compiling java myself Jun 13 07:19:31 just to hope that his patch works for me Jun 13 07:19:41 I don't have any /dev/videoX devices Jun 13 07:19:51 so I can't temporarily rename them to test that theory Jun 13 07:30:38 hmm, ok well it worked after I logged out of XFCE, logged back in, restarted AVD and then click the "start" button on my image and wipe user data Jun 13 07:30:39 phew Jun 13 07:30:44 but, still no love on the command line Jun 13 07:38:13 huh, ok I guess it does work Jun 13 08:12:39 http://www.droid-life.com/2012/06/12/samsung-announces-tectiles-brings-programmable-nfc-tags-to-the-masses/ Jun 13 08:14:02 unfortunately, the tectiles app is not available outside the US Jun 13 08:14:23 unfortunately, it's pointless anyway Jun 13 08:14:42 looks amazing !! Jun 13 08:14:42 its a nerd toy. thats why I want it ;) Jun 13 08:14:49 people have been doing those NFC tags for a while, no sign of anyone ever actually using them for anything Jun 13 08:14:53 it could be useful with on{x} i would think Jun 13 08:15:18 "iOS 6 adjusts metallic button reflections as you tilt your phone" , ok this is just dumb Jun 13 08:15:21 geofencing or wifi/bluetooth recognition is more useful Jun 13 08:15:34 g00s: they had to find *one* feature which Android didn't already have :) Jun 13 08:15:50 i hope its a feature we never have ;| Jun 13 08:15:51 is there a ressource-efficient way to do geofencing on android? Jun 13 08:19:56 Leeds: There are interesting applications of NFC where you use the phone in mass transport, among other things Jun 13 08:20:47 or things like http://www.instructables.com/id/Easy-Phone-Automation-with-NFC-Tags/ Jun 13 08:21:40 Leeds: some stores around here has started with some sort of NFC payment Jun 13 08:22:19 haven't watched this yet http://www.infoq.com/presentations/Android-Protips Jun 13 08:26:27 also, quite a lot of android use is outside phones, given that you no longer can get generic WinCE devices that easily (you can get the kit, but no more cheap PDAs) Jun 13 08:26:52 a cheap tablet with NFC device can be great tool in warehouse Jun 13 08:28:14 p_l: yeah, i remember at dhl we had these expensive scanners Jun 13 08:28:28 they ran wince Jun 13 08:29:26 we use that kind of devices here Jun 13 08:29:36 funny thing - there's a whole market that will keep on buying WinCE devices that aren't WinPhone or Win8, but they'll happily buy a first gen iPaq Jun 13 08:29:48 and we can't change platform either.. :P Jun 13 08:30:30 nfc is just a fancy name for 13.56mhz rfid :) Jun 13 08:30:40 oreally Jun 13 08:30:43 :) Jun 13 08:30:50 yareally: there's also well-defined protocol part ;) Jun 13 08:30:58 true Jun 13 08:31:20 RFID referred only to class of communication technology Jun 13 08:31:21 i think asian markets have been using phones to pay for stuff for some years. just took a while for the west to notice Jun 13 08:31:32 yes, they did Jun 13 08:31:38 yes we do ;-) Jun 13 08:31:44 you could even get laptops with that Jun 13 08:31:52 NFC phones and cards Jun 13 08:32:12 the technology was in use in Europe, but not loaded into phones, not exactly due to phone manufacturers even Jun 13 08:32:18 and now that ios6 or whatever will have it. everyone will think apple invented it :p Jun 13 08:32:19 use it to pay at convenient stores, to ride the train, ... Jun 13 08:32:24 but the NFC standard is different :( Jun 13 08:32:30 pboos: I'm so going there as soon as I can afford to.. Jun 13 08:32:33 will ios6 have it? Jun 13 08:32:42 rumored or whatever so my apple developer friends say Jun 13 08:33:39 * Ge0rG doesn't see how NFC fits into apples product strategy Jun 13 08:33:40 if they do have it, i hope they dont screw everyone by implementing their on propretary nfc standard :( Jun 13 08:33:41 I'm using tabs in the ActionBar (android 3.2), when switching tab I'm simply displaying a new fragment.. however, when selecting a specific tab, I want the options-menu/context-menu to change ( onCreateOptionsMenu(Menu menu) ), but I guess this method only runs once (when the activity starts) Jun 13 08:33:47 how can I fix this? Jun 13 08:33:47 own* Jun 13 08:33:53 i could see them doing that just to mess with google Jun 13 08:34:10 s/google/everyone/ Jun 13 08:34:16 yeah ↑ Jun 13 08:34:20 :P Jun 13 08:34:21 google is screwing around with people as well. there is no android API to emulate a tag in software.... Jun 13 08:34:22 yareally: they no longer have the push to get it to mean anything Jun 13 08:34:35 they expended that kind of capital back in 2g/3g time Jun 13 08:34:59 yeah, there's a non standard API to do it Ge0rG, but it means rooting and compiling it in, so that eliminates most people from using it Jun 13 08:35:16 http://open-nfc.org/wp/ Jun 13 08:35:34 so not too useful other than personal use Jun 13 08:35:40 wasn't NFC api supposedly extended later on? Jun 13 08:35:44 yareally: I need something people can download from google play Jun 13 08:35:49 i figured Jun 13 08:36:03 p_l: you can have android beem to send stuff to another phone, but no tag emulation Jun 13 08:36:09 google doesnt want us to have those parts of the API :( Jun 13 08:36:13 since they use them for google wallet Jun 13 08:36:19 i'm wondering if ios 6 has BT 4 low power, or maybe ios already has it? wp8 will have it - android doesn't have it at the moment Jun 13 08:36:39 yareally: I dont care for wallet, I want tag emulation! :> Jun 13 08:36:42 even if jelly bean had bt 4 lp, nobody would see it for 8 mos Jun 13 08:36:48 settle down there Ge0rG Jun 13 08:36:54 no need to get worked up over it lol Jun 13 08:36:59 :p Jun 13 08:37:22 yareally: yeah, I can't bend reality... yet. Jun 13 08:37:29 g00s: I think that's a question of drivers that isn't covered by Android code Jun 13 08:37:40 if we ever get a google developer in here, we can pester him as the next best thing :) Jun 13 08:37:50 p_l: i'm pretty sure its hardware also Jun 13 08:38:40 yareally: they use to show up from time to time, but you can't force them to provide APIs Jun 13 08:38:55 g00s: yes, but it's not something dependant on changes in android code, afaik Jun 13 08:39:02 can't, but maybe "the squeaky wheel gets the grease" Jun 13 08:39:35 yareally: if we ever? there are already google developers in here :D Jun 13 08:39:37 p_l: http://www.cellular-news.com/story/53379.php Jun 13 08:39:42 seems like android needs support Jun 13 08:39:46 just ones that don't talk :) Jun 13 08:39:50 much* Jun 13 08:40:06 yareally: what we really need is a way to get around the official APIs to get stuff done Jun 13 08:40:13 so iphone 4s has it, android phones have it, but android doesn't support it :P Jun 13 08:40:15 and then hope it won't break with the next OS upgrade. Jun 13 08:40:49 im guessing you tried looking already for a way Ge0rG? Jun 13 08:41:04 yareally: not yet. but will do so soon Jun 13 08:41:19 * Ge0rG 's got bitten by missing android APIs already :> Jun 13 08:43:14 g00s: okay, there are two pieces involved. Actual BLE support (which means linux kernel and BlueZ project), and Android APIs Jun 13 08:44:28 Is it possible to make the options-menu in the actionbar appear programmatically? as in, when I select a certain tab in the actionbar without starting a new activity? Jun 13 09:12:00 Hi Jun 13 09:12:31 What is the range of service timeout? Jun 13 09:15:26 victory! finally did what I wanted to do with settings Jun 13 09:20:46 hi people Jun 13 09:21:17 i am going to develope a mobile webapp that people are going to use on a samsung Galaxy note Jun 13 09:21:22 but I don't have one yet Jun 13 09:21:32 do you know of a plugin for firefox to emulate it? Jun 13 09:26:59 hi Snuffel :) Jun 13 09:29:10 hi i just got my first android device.... i want to use this device to run my apk not emulator, i enabled usb debugging but still eclipse does not see the device Jun 13 09:30:26 blue_pearl: using windows? if yes, install the usb drivers Jun 13 09:31:18 using linux? if yes, you may have to do udev magic Jun 13 09:31:19 pboos, it did not work in both windows and ubuntu what usb drive for windows? Jun 13 09:31:56 i love hacking the amazon seller system :D Jun 13 09:31:57 blue_pearl: http://developer.android.com/guide/developing/device.htmlhttp://developer.android.com/guide/developing/device.html Jun 13 09:32:03 oops Jun 13 09:32:36 yes, that document is probably best :) Jun 13 09:32:54 pboos, MDijkstra thanx Jun 13 09:41:11 how can I create a virtual device on the command line? Jun 13 09:44:12 nm, found it Jun 13 09:47:06 Wish I could do more Android and fewer ios projects >_> Jun 13 09:47:27 Estel: heh, the other way around for me :D Jun 13 09:48:43 ios 6 won't support my 3rd gen ipod touch, so i'm not sure what i will do yet Jun 13 09:49:08 I was surprised it didn't support iPad 1 either Jun 13 09:49:21 yeah, they pulled an android Jun 13 09:49:23 The beta is derping to high heaven on a 3gs Jun 13 09:49:51 i thought the 3gs and my ipod had the same hw Jun 13 09:50:03 Wouldn't surprise me Jun 13 09:50:57 Turn-by-turn being 4S only is also pretty bad. Jun 13 09:51:35 yeah, feature support it spotty Jun 13 09:51:57 Actually, maps is generally such a huge downgrade from google maps that I'm surprised they chose to do it Jun 13 09:53:07 i wonder if google maps can be installed from app store Jun 13 09:53:35 I guess it will Jun 13 09:54:20 in general Jun 13 09:54:28 iPhone 4 owner, which there are still a lot of Jun 13 09:54:31 g00s: umm... Google Maps will probably break ToS Jun 13 09:54:43 will get nothing new, but will lose Street View Jun 13 09:54:44 though unsure Jun 13 09:54:45 great deal Jun 13 09:54:50 p_l: in what regard? Jun 13 09:55:33 MDijkstra: there's a line in ToS regarding "replacing" system applications (in functionality), at least in some form of weirdo legalese Jun 13 09:56:04 yeah, but if they tried to enforce that on google maps Jun 13 09:56:09 there'd be a giant shitstorm Jun 13 09:56:13 The facebook stuff is cool Jun 13 09:56:24 reason why there are no competitors to Safari (other than opera mini, which gets in on technicality) Jun 13 09:56:41 MDijkstra: the question is... would they care? Jun 13 09:57:11 said "shitstorm" probably wouldn't even bother their quarterly earnings meeting Jun 13 09:57:15 one thing i find weird - rumors last week FB was going to try to have their own phone, but seems like the cozied up to apple. is iphone now the defacto FB phone? seems like it has more integration than android Jun 13 09:57:18 Maps is used enough that a markedly worse product could lose sales Jun 13 09:57:54 And in its current state, it's definitely worse :/ Which is odd, because you kind of expect Apple to not want to release a worse thing Jun 13 09:58:04 Estel: dunno, maybe so in USA. In Europe, at least in poland, there were old-school navigation packages Jun 13 09:58:22 also, have a shiver: http://www.kb.cert.org/vuls/id/649219 Jun 13 09:59:28 Apple: not affected :) Jun 13 10:00:30 something tells me it's not exactly true Jun 13 10:00:45 it should put advisory on Intel, too Jun 13 10:00:53 This comparison image is everything bad about Apple maps: https://p.twimg.com/AvJKk-rCQAAWFaZ.png Jun 13 10:01:18 :O Jun 13 10:01:21 yeah that sucks Jun 13 10:01:57 unless some layers are not enabled or something Jun 13 10:02:05 Nah, that's how I see it in the beta Jun 13 10:02:22 p_l: it could lead to serious antitrust trouble for them, and they don't actually lose anything by accepting google maps Jun 13 10:02:23 lol that's my destination today Jun 13 10:02:25 ANnoying things like roads not being the 'right' colour for local maps (all white, except motorways are yellow) Jun 13 10:02:36 p_l: ie, most will use the supplied maps, in 2 years everyone will have the new fancy features Jun 13 10:02:47 I don't see the point in blocking google maps other than out of spite Jun 13 10:02:52 pboos, MDijkstra , did follow the steps but it did not find my device..just to let u know its a cheap tablet Jun 13 10:03:10 MDijkstra: phones are funny because they tend to have a backdoor to overstep things like "sane competition" Jun 13 10:03:10 MDijkstra: apple has been at this for years Jun 13 10:03:54 anyway, from my pov, Apple is mighty fine with doing things out of spite if it doesn't damage them too much Jun 13 10:03:59 g00s: everytime they've blocked an app because of that reason there has been an outroar Jun 13 10:04:23 it's not like they've been silently eliminating competition in this manner :p Jun 13 10:04:24 hi p_l, g00s :) Jun 13 10:04:35 well I got a little question Jun 13 10:04:38 MDijkstra: yeah , but their maps controls will have this so its OK http://www.theverge.com/2012/6/13/3082329/ios-6-button-tilt-change-reflection Jun 13 10:04:41 * p_l pets hackkitten Jun 13 10:04:46 * hackkitten purr~ Jun 13 10:04:47 hi hackkitten :) Jun 13 10:04:50 can I make gallery image picker also see the stock wallpapers for example Jun 13 10:04:51 hey hackkitten what Jun 13 10:04:51 s up Jun 13 10:04:52 :D Jun 13 10:04:55 oops Jun 13 10:05:00 MDijkstra: and in how many cases the outroar has led to a revision of the decision by apple? Jun 13 10:05:01 and other images not in /sdcard Jun 13 10:05:11 Snuffel > not much, just doing a lot of projects at once @_@ Jun 13 10:05:16 * hackkitten is overworked and confuzzled kitteh~ Jun 13 10:05:21 Ge0rG: tell me when you find one Jun 13 10:05:32 ... holy fuck, 1106 Jun 13 10:05:45 I have a train at 1450 and I'm still not packed Jun 13 10:05:45 p_l: ask MDijkstra Jun 13 10:06:03 * Ge0rG has a ph.d. thesis to deliver in a week and still not finished / proof-read Jun 13 10:06:55 followed the instruction on developer site but still cant get eclipse or my computer see my android device Jun 13 10:07:52 blue_pearl: what device is it? Jun 13 10:08:54 Estel, its a cheap tablet cant afford any other device so got it... Penta Tab IS701R Jun 13 10:09:28 Estel, running Android 2.3 Jun 13 10:09:38 blue_pearl: what the hell is that thing ? Jun 13 10:09:45 ^ Jun 13 10:09:54 Does it, uhh, come with any drivers? Jun 13 10:10:03 Estel: funnily enough, the apple maps map would leave to lost today :D Jun 13 10:10:25 Estel, nope thats the problem i am having. Jun 13 10:10:31 g00s, :( Jun 13 10:11:15 g00s: looks like classic cheapo ARM11 tablet Jun 13 10:11:34 can Google Calendar reminders trigger other apps on the device? Jun 13 10:11:46 1 ghz IMAP 210 Jun 13 10:12:16 * hackkitten is rather confuzzled about this after noticing that everybody uses 'notifications', 'reminders', etc. in a variety of ways in the Android docs and posts Jun 13 10:12:28 g00s, ya its a 1ghz processor Jun 13 10:13:49 blue_pearl: is RS indian rupee? Jun 13 10:13:55 i'm used to INR Jun 13 10:14:34 hello all Jun 13 10:14:50 holy f , that thing goes for $58 usd ??! Jun 13 10:15:01 how would one add a button to the actionbar (on the left side of the tabs) ? Jun 13 10:15:12 g00s, yes RS is indan rupees Jun 13 10:15:41 i have one question. Is it possible to get the .apk files of installed apps (installed via the play store) without root permission ? Jun 13 10:16:03 g00s, ya its a cheapest android device i can found... Jun 13 10:16:21 Hi guys, I've a question: every activity of my app has a fragment that show the content. When I change orientation the activity is re-created and I search in the fragment manager for a fragment with the same tag of the old one (fragment has setRetaininstance = true). And it works because it find it. But it crash when I try to do fragment.getActivity because it says that the activity = null. I think that it's pointin Jun 13 10:16:21 g to the old activity that has been re-created. How can I refresh the pointer to the new activity? Jun 13 10:16:54 stermi: so getActivity() returns null ? Jun 13 10:16:59 ruh roh Jun 13 10:17:01 yes Jun 13 10:17:25 that's because activity is recreated and get the existing fragment from the fragmentmanager Jun 13 10:17:47 but the fragment from the fragment manager is pointing to the old activity that has been destroyed and re-created Jun 13 10:18:05 yeah but … thats seriously f'd up Jun 13 10:18:24 g00s, a small question if i enable usb debugging and connect it to computer regardless of eclipse the device should show as mass storage... right or wrong? (i did not have any android device before) Jun 13 10:18:28 have I made something wrong? Jun 13 10:18:44 blue_pearl: 2.3 … i don't think so Jun 13 10:18:49 isn't mine the correct way to do things g00s ? Jun 13 10:18:51 i think 2.3 introduced MTP Jun 13 10:20:01 g00s, hmm...so is there any way around? like can i use some custom mods or something to get it working? Jun 13 10:20:33 blue_pearl: i'm guessing you need some device driver Jun 13 10:21:24 g00s, is there any like universal or generic kind of driver that fits with most devices? Jun 13 10:22:08 blue_pearl: i have an apple machine, things typically just work there. not sure about windows Jun 13 10:22:23 g00s, ok Jun 13 10:22:25 no idea on how to get apks without root ?? Jun 13 10:22:42 i wonder: let's say i have a bitmap and i want to make everything except a circular region in the middle transparent Jun 13 10:22:57 it seems i can draw a circle with a canvas, but not an "inverted circle" Jun 13 10:23:03 but maybe i'm missing something Jun 13 10:23:25 paint solid circle? Jun 13 10:23:27 g00s, i guess i will have to keep putting the apk in memory card and put in device to test.. Jun 13 10:24:09 XXCoder: no no. i want to keep the content in the original bitmap in the middle Jun 13 10:24:10 stermi: did you see something like this ? http://stackoverflow.com/questions/9089319/fragmentactivity-is-lost-after-app-is-paused-for-a-while Jun 13 10:24:21 I cant figure how to set intent for picking images so it can pick from ANY image in phone/tab Jun 13 10:24:24 and make everything outside the circular region in the middle fully transparent Jun 13 10:24:29 tapas: make another bitmap object Jun 13 10:24:42 XXCoder: ah, that makes sense.. yes Jun 13 10:24:43 thanks Jun 13 10:24:46 paint it some color, then paint transparent circle inside Jun 13 10:24:51 yeah you get it :) Jun 13 10:24:59 can paintbitmap that Jun 13 10:25:03 well, the original image is a picture of our user.. Jun 13 10:25:25 i guess i can somehow copy only a circular region to the otherwise fully transparent target image.. Jun 13 10:25:51 g00s, just to let u know that Development mode was missing from the device menu, i jot a 3rd party launcher that showed the development menu....many things are locked/hidden from menu Jun 13 10:26:19 blue_pearl: ah, ok. well, if you can - i would grab a nexus tablet available soon hopefully Jun 13 10:26:33 unless you really need your stuff to work on that tablet Jun 13 10:26:39 maybe yes g00s , I'm going deeply into the problem and I'll let you know asap Jun 13 10:26:48 g00s, thanx Jun 13 10:32:13 I am trying to create an intent filter for this url: https://play.google.com/store/apps/details?id=com.blackmill.shopify but it seems it has problems with the combinations of path and params. do u guys have any recommendation? Jun 13 10:35:35 If you access a data from R., is this always a fast thing? Or is it better to cache it? Jun 13 10:36:58 I just dont see difference between ACTION_PICK and ACTION_GET_CONTENT Jun 13 10:39:39 fornext: R.X itself is just a constant integer... Jun 13 11:03:39 What do you guys think of the different implementations of the sliding menu, e.g. facebook, google +, etc? The fb one actually slides the whole window over, whereas the google + one just slides the menu out over the contentview. also, in google + the up nav button still acts to go back, but once the stack is empty, then the up button pops out the menu. Just wondering if anyone had any thoughts... Jun 13 11:10:15 JakeWharton: ping Jun 13 11:22:02 help~ Jun 13 11:23:15 can I flash the system.img file of an AVD into a real phone? Jun 13 11:28:16 zhangxaochen: ask it on android-root Jun 13 11:29:22 seems no one is there Jun 13 11:29:52 zhangxaochen: this still isn't the place Jun 13 11:30:07 but no, you can't flash the system.img file of an AVD to a real phone Jun 13 11:31:47 MDijkstra, definitely no? Jun 13 11:31:53 definitely Jun 13 11:32:02 %>_<% Jun 13 11:35:56 then is there any "original" system.img for android? Jun 13 11:36:48 i mean, not for some particular manufacturer, the original one Jun 13 11:37:44 without drivers? (moduls for devices) and wrappers, etc? Jun 13 11:38:36 zhangxaochen: no, such a thing does not exist Jun 13 11:39:10 zhangxaochen: android is not like windows where you have one image which you can install on every phone Jun 13 11:39:30 zhangxaochen: each phone requires its own customized image, usually produced by the manufacturer Jun 13 11:39:53 even if they don't use a skin such as touchwiz, sense, etc Jun 13 11:40:09 i think that he is looking for is replace to default user space Jun 13 11:40:40 could an individual make an image for his phone easily? Jun 13 11:40:41 yeah, that's not trivial... Jun 13 11:40:47 depends on the phone Jun 13 11:41:24 the easiest way to go to a close(r) to stock android version is to install Cyanogenmod, usually Jun 13 11:42:50 why cyanogemodmod ? Jun 13 11:43:00 it suits for all of those versions? Jun 13 11:43:20 no, I have no clue what you're trying to do Jun 13 11:43:22 u can check them page its for which mobiles Jun 13 11:43:29 so based on conjecture I offered a generic solution ;p Jun 13 11:43:47 they ported many things to them firmware, so its work on many phone Jun 13 11:44:06 if u want a rom like stock, u need _a lot_ work with it Jun 13 11:44:20 and not sure u will can do everything Jun 13 11:45:22 btw whats wrong with ur manufacturer's rom? Jun 13 11:51:24 ixc, nothing seriously wrong Jun 13 11:51:41 the gps module could not work without wifi Jun 13 11:52:53 and device has gps? :) Jun 13 11:53:09 yes Jun 13 11:53:39 have you ever come across an issue like this? Jun 13 11:54:41 i not really checked this, ever Jun 13 11:54:51 but looks its only try a-gps Jun 13 11:55:40 only ? Jun 13 11:56:47 never think about a-gps before Jun 13 11:57:17 and r u sure its not work? Jun 13 11:57:48 when no data connection (so a-gps cant be used), normal gps need long time for find satelites Jun 13 11:59:08 yes i'm sure Jun 13 11:59:27 http://www.youtube.com/watch?v=GhaT78i1x2M&feature=player_embedded Jun 13 11:59:27 i've been trying for times Jun 13 11:59:46 its maybe can 10-15mins Jun 13 12:00:51 such long ? Jun 13 12:01:12 some friends says that they can find satelites in seconds Jun 13 12:01:17 without data connection Jun 13 12:02:13 its depend on many things, but without agps im sure its need more time than some seconds Jun 13 12:04:17 ok. i'll get to try cm9 first. Jun 13 12:05:08 i think its not will help on it :) Jun 13 12:05:12 thx ixc and MDijkstra Jun 13 12:07:26 is there an easy command to let the cursor start at the end of an edittext content Jun 13 12:07:53 think i might build google auth for my smart watch Jun 13 12:08:15 I've got imageviews inside a gridview, implemented a onItemClicklistener and trying to set the imageview to selected if it's not selected, and not selected if it is selected, but the state is always NOT selected.. How come? Jun 13 12:08:44 the imageviews are backed by an ImageAdapter (BaseAdapter) + viewholder (setting the viewholder as a tag on the view ) Jun 13 12:09:05 dark3n: setSelection + edittext's content length? Jun 13 12:14:41 is it possible to pause a service from an activity and resume it again from the same activity based on some user interactions? Jun 13 12:15:23 bind/unbind services? :) Jun 13 12:16:08 snuy: what is your definition of pause? Jun 13 12:16:52 i want to make the service stop, let the user make a decision in a popped up activity window and based on the user's decision want to resume the service at the same point of execution Jun 13 12:17:25 snuy: pausing isn't a part of the service lifecycle, but you could easily add the ability to pause, it's just code Jun 13 12:18:17 another possiblity would be to make an activity's lifecycle synchronous and pause the service's execution this way Jun 13 12:19:13 u can use onPause, onStop etc for it Jun 13 12:20:13 but can u give a real example? im not sure about thats the good way, that u want Jun 13 12:20:15 synchronous with what Jun 13 12:21:12 wongk: i think he want start/resume service work at onResume, and stop it at onPause Jun 13 12:22:11 but its seems asynctask :) Jun 13 12:22:12 that probably wouldn't produce the desired behavior... but i don't know what the desired behavior really is Jun 13 12:25:46 it seems that a bitmap drawn on a canvas don't have the original pixel resolution. Right? Can someone confirm this? Jun 13 12:26:43 I have an activity running inside a tabhost. Its onResume is not called always. Does someone here experience in this issue? Jun 13 12:27:05 hello Jun 13 12:27:26 napster, does onPause get called instead? Jun 13 12:29:25 I found sometimes an interuption, eg, incoming call or switching to another app, can call either onResume or onPause, but it does seem to depend on memory useage Jun 13 12:29:28 TheFred: I have not checked it. But as I do some googling I think it is due to the fact that child activity cannot manage their life cycle events, and the parent should do it for them. Let me try that and get back. Jun 13 12:32:25 TheFred: Ok it is working now. You need to manually call up the child's lifecycle events using dispatchResume() of the local activity manager Jun 13 12:32:59 cool, thats good to know. Jun 13 12:33:24 which in this case onResume() even for the child Jun 13 12:36:25 that makes sense - if the child is the last view be used Jun 13 12:37:11 im having troubles using android:layout_toLeftOf Jun 13 12:37:21 is it only for newer sdk? Jun 13 12:37:46 no Jun 13 12:37:55 what are the "troubles" ? Jun 13 12:38:20 hmm it might just be eclipse being crap Jun 13 12:38:27 reloading Jun 13 12:40:32 http://android-developers.blogspot.co.uk/2011/09/androids-http-clients.html <-- how can they recommend HttpURLConnection over httpclient when the former has no implicit support for formatted POST requests :/ ? Jun 13 12:40:52 error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/ Jun 13 12:40:52 rightarrowbutt'). Jun 13 12:41:00 somehwo it dooesnt recognise the variable Jun 13 12:41:02 eventho it exists Jun 13 12:43:22 maybe yse @+id/rightarrowbutt Jun 13 12:43:24 use* Jun 13 12:43:49 whts that do ? Jun 13 12:44:04 oh thats normal Jun 13 12:44:06 weird Jun 13 12:44:10 eclipse wasnt putting the plus in Jun 13 12:44:11 is there an emulator that is sanely fast? i'm trying the atom one and it's slower than expected Jun 13 12:45:15 is it possible to do ndef push when "android beam" is disabled in the prefs? Jun 13 12:45:39 funktronic: perhaps your platform/hardware doens't have virtualization support Jun 13 12:45:50 i don't have specifics Jun 13 12:45:58 wongk: it's brand new Jun 13 12:46:19 seems unlikely, then Jun 13 12:52:09 Ge0rG: yes Jun 13 12:53:08 r0ly: by using the 2.3 api? Jun 13 12:55:14 gaz`: @+id/ is for the new id, @id/ if that id already exists Jun 13 12:55:45 Hmm Jun 13 12:55:46 ok Jun 13 12:56:22 both still work but the correct way to use existing id's is @id/ Jun 13 12:57:22 Ge0rG: yes, even if it is deprecated Jun 13 12:57:45 it stills work Jun 13 12:59:34 r0ly: any way to do it with 4.x api? Jun 13 13:01:23 Ge0rG: enableForegroundNdefPush() is still available in api 4 Jun 13 13:01:34 no it is not Jun 13 13:02:01 it's not available until 9 or 10 Jun 13 13:02:22 canadiancow|work: 4.x is meant here Jun 13 13:02:30 i.e. ICS Jun 13 13:02:33 also, there are probably more devices that have 4.0+NFC than 2.3+NFC Jun 13 13:02:38 and beam is so much nicer to work with Jun 13 13:02:47 +1 Jun 13 13:02:52 i would probably let 9+ receive beams, but only 14+ send them Jun 13 13:03:03 canadiancow|work: the point is: how to force ndef push even when beam is disabled in the prefs? Jun 13 13:03:23 i wouldnt do that Jun 13 13:03:35 there are many things one wouldn't do. Jun 13 13:04:01 in an ideal world, I'd like an API to emulate an NfcA device Jun 13 13:04:17 unfortunately, google omitted such an API for market strategic reasons. Jun 13 13:06:11 so I stil think that you can use the enableForegroundNdefPush() Jun 13 13:06:17 But it seems weird Jun 13 13:06:31 r0ly: have you tried it yourself? Jun 13 13:07:13 * Ge0rG is going to need a second NFC-enabled android device. lets see if CFO will approve the SGS3 Jun 13 13:07:53 No, but there's no reason that its not working ? Jun 13 13:08:09 I will try it tonight Jun 13 13:09:05 r0ly: maybe the tag supplied to enableForegroundNdefPush() is also muted on 4.x devices if the user disables beam? Jun 13 13:09:18 btw, is it possible to have two-way communication via android beam? Jun 13 13:09:30 Ge0rG: you know you're at a small company when the CFO approves ~$500 purchases :) Jun 13 13:09:37 Ge0rG: no :( Jun 13 13:09:41 i tried that once Jun 13 13:09:48 s/once/for hours/ Jun 13 13:09:58 canadiancow|work: bummer. Jun 13 13:10:10 Android APIs are so crippled if you are not Google. Jun 13 13:10:17 not really Jun 13 13:10:52 do you relaly want someone coming up to your phoen, activating beam on theirs, and stealing your datas? Jun 13 13:11:11 canadiancow|work: maybe I'm just pushing the boundaries with my projects. my other app, displaying toast alerts when an incoming call has been forwarded, is another case of API failure. Jun 13 13:11:38 canadiancow|work: I as an app developer want to be able to send and receive data to something that is not a tag Jun 13 13:12:07 case in point: I want to fake an NFC credit card ;) Jun 13 13:12:16 ........... Jun 13 13:12:19 gtfo Jun 13 13:12:29 yea, i know what you mean Ge0rG Jun 13 13:12:33 maybe there is a way to do it? Jun 13 13:12:35 but it wasnt easy Jun 13 13:12:40 like google wallet obviously does something Jun 13 13:12:56 just kidding. all I want is to emulate a passive tag; like my book club membership card Jun 13 13:12:59 but if you plan on making it a real credit card, you have other, larger issues Jun 13 13:13:08 canadiancow|work: probably you need to be system-signed to access these parts Jun 13 13:13:11 id absolutely love to dump my visa into my phone Jun 13 13:13:25 canadiancow|work: nah, its not a credit card at all. rather a royalty card Jun 13 13:13:29 there is no need to get system signed ........ Jun 13 13:13:35 it's possible :) Jun 13 13:13:45 UnknownzD: your keyboard seems to be stuck. Jun 13 13:13:46 yep we all know that Jun 13 13:13:48 There's no security on nfc payment card Jun 13 13:13:56 r0ly: yes there is o.O Jun 13 13:14:04 but yet I am unwilling to give out details Jun 13 13:14:06 canadiancow|work: I'll have to have a deep dive into google wallet to find out the magic Jun 13 13:14:11 no, by nfc all is clear Jun 13 13:14:25 it uses a challenge/response Jun 13 13:14:31 * Ge0rG really wonders what info can be read out from a plastic nfc CC Jun 13 13:14:35 you can't just sniff one transaction and clone the card Jun 13 13:14:47 you can probably get the cc number and stuff Jun 13 13:14:55 but you wont be able to go and make a fake NFC card from it Jun 13 13:15:00 there are people on TV running around with a nexus and sniffing credit cards from people's pants Jun 13 13:15:05 It was a presentation in the hackito ergo sum conference in France Jun 13 13:15:22 i agree that you can get a lot of info from a card over nfc Jun 13 13:15:27 but you cannot get enough to do an nfc transaction Jun 13 13:15:30 or a chip transaction Jun 13 13:15:30 r0ly why do you bother to let them know these tricks? :\ Jun 13 13:15:45 canadiancow you can use the info for online purchase Jun 13 13:15:46 canadiancow|work: also, you can not get that f*cking android device to emulate the sniffed card! #%$&! Jun 13 13:15:50 UnknownzD: yes Jun 13 13:16:12 im surprised at the insecurity of online transactions Jun 13 13:16:23 for physical goods, id like to only allow them to be shipped to specific addresses Jun 13 13:16:26 i.e. home and work Jun 13 13:17:02 canadiancow|work: typically they start getting funny at you if the name of the cc owner does not match the recepient Jun 13 13:19:35 canadiancow|work: re: NFC sniffing; watch Kristin Pagets talk from Shmoocon 2012 Jun 13 13:19:38 also, credit cards put convenience over security, with the banks carrying all the risk Jun 13 13:20:14 You can get the content of the magnetic tape, all in clear data... Jun 13 13:20:18 canadiancow|work: https://www.youtube.com/watch?v=HRXb-FZ6WFM ... Assembling enough data from multiple NFC reads to write a magstrip and process payment Jun 13 13:20:33 with a live victim from the audience Jun 13 13:20:51 Ge0rG, s/banks/merchants/ Jun 13 13:21:03 canadiancow|work: technically, yeah. Jun 13 13:21:15 dragorn, you know what that says to me? magstrip transactions should die Jun 13 13:21:36 I've got some NFC sniffer boards around here too a guy I know was developing :) Jun 13 13:21:41 canadiancow|work: they should have died 20 years ago Jun 13 13:21:46 though doing mitm sniffing on NFC is sort of a suckers game Jun 13 13:21:52 since you have to be so close Jun 13 13:21:58 is there an easy way to create an XML document in android? Jun 13 13:22:05 be specific ....... CC is using RFID Jun 13 13:22:12 so stop calling them NFC CC Jun 13 13:22:45 UnknownzD: that was your single most useful contribution today ;) Jun 13 13:23:22 err thats not even true Jun 13 13:23:29 it is absolutely nfc Jun 13 13:24:24 john_doe_jr: http://www.ibm.com/developerworks/opensource/library/x-android/ Jun 13 13:25:06 RFID is a pretty fuzzy term which often is used to cover the 14443 protocol which NFC uses as well. Jun 13 13:26:02 RFID is exactly as fuzzy as NFC, isn't it? Jun 13 13:26:43 Ge0rG: they're both more marketing terms than exact descriptions, tho I haven't heard nfc applied to anything other than 14443 stuff, where as rfid gets slapped on just about everything Jun 13 13:26:54 Ge0rG: i've caught people calling zigbee rfid ;P Jun 13 13:27:51 dragorn: heh, yeah. it is hard to see the waves, after all Jun 13 13:28:37 dragorn: btw, have you had a look at 802.11a capable hardware for your android usb project? Jun 13 13:29:10 r0ly: I saw that but I don't think the "creating XML" section is real easy...I'd like to use some library that is easier to work with Jun 13 13:29:12 Ge0rG: it would certainly be possible, it would just require porting another driver Jun 13 13:29:31 Ge0rG: that's been on delay a bit since android 4 devices aren't very common and I've been swamped doing some other code and hw design and prepping for cons Jun 13 13:30:07 I know the following expression is a for statement but what is the "message msg: messages" mean..an array of messages? for (Message msg: messages) { etc } found @ http://www.ibm.com/developerworks/opensource/library/x-android/ Jun 13 13:30:08 Ge0rG: in a perfect world I'd make a wrapper around most of the kernel internals touched by the net driver layer and just compile them straight across. I'll probably just end up porting another driver manually tho. Jun 13 13:30:38 Ge0rG: on the plus side, a bunch of my zigbee work will carry back into the kismet code, so that's something Jun 13 13:35:52 Hi Jun 13 13:36:06 john_doe_jr: it's the enhanced for statement introduced with java 5, have a look here : http://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html Jun 13 13:37:00 Does it mean that onCreate takes too long if a timeout executing service? Jun 13 13:38:01 Or onStartCommand Jun 13 13:38:03 ? Jun 13 13:43:15 what is the criterion of service timeout? Jun 13 13:43:31 dragorn: actually, my question was aimed at another specific point: are there any 802.11a usb devices widely available and usable in linux? :> Jun 13 13:45:13 Ge0rG: yeah, plenty. Lots of them aren't very good. Alfa makes an 11abgn which is pretty crappy, rosewill makes a u600 which is a bit better, or if you can find atheros usb stuff Jun 13 13:45:35 I randomly get the "Taking too long, close or wait" message on my homescreen. What is the best way to find out which method is taking too long to get back to the system? Jun 13 13:45:56 dragorn: thanks :) Jun 13 13:45:56 Is it possible that I am just not handling something I should be overriding? Jun 13 13:46:37 Jonathan_Eyre: when you "close", it should create an ANR trace somewhere in /data, listing the blocking methods Jun 13 13:47:03 That would not show up in alogcat? Jun 13 13:47:17 It would be like a text file? Jun 13 13:47:21 Jonathan_Eyre: not the details, only the file name. yes. Jun 13 13:47:37 i like how i need to fix a bug in LVL :( Jun 13 13:49:47 What's the bug? Jun 13 13:50:02 Ge0rG: Hmm, in "Internal Memory/Android/data", there is only a folder for android.apps.maps. Jun 13 13:50:14 Is that where the error log would go? Jun 13 13:50:38 Jonathan_Eyre: /data/anr/traces.txt Jun 13 13:50:42 iirc Jun 13 13:51:24 /data is on the phone, not external memory Jun 13 13:51:49 I probably can't get to it with the stock explorer, then. Jun 13 13:53:06 I'm pretty sure you can Jun 13 13:59:20 google authenticator source code is out of date :/ Jun 13 14:01:20 any recommendations on which phones to get for testing purposes? Jun 13 14:01:37 funktronic: one for each major OS generation Jun 13 14:02:15 excluding the nexus since it's been updated Jun 13 14:02:50 you never can have enough devices for testing Jun 13 14:03:04 mikedg, do you know if there is a way to tell if a customer has downloaded an android app so you can provision services (eg. a message from google) Jun 13 14:07:35 galaxy s2 good enough? Jun 13 14:08:04 Hi all, What is the most major difference between Gingerbread and Icecream sandwich ? Jun 13 14:08:13 funktronic: s2 is good, but pretty much high-end. I'd use it for 2.3.x without upgrading Jun 13 14:08:28 nn102400: the MOST MAJOR difference? Jun 13 14:08:31 im going to go with holo Jun 13 14:08:38 but im sure others would have different things to say Jun 13 14:08:43 holo++ Jun 13 14:08:53 we have a 2.3.x and a nexus and something else Jun 13 14:09:00 canadiancow, alright :) Jun 13 14:09:11 Guys do you have experience with develpoing android apps for different News websites? I am courious what is process and if its worth to try earn some money there. Jun 13 14:09:26 just tell them to make better mobile sites Jun 13 14:09:28 funktronic: you should grab some ldpi 2.2 device, maybe a galaxy 550 or so... Jun 13 14:09:44 (though other people here will probably tell you that ldpi does not matter) Jun 13 14:10:02 +1 Jun 13 14:10:04 funktronic: generally it is also good to mix brands Jun 13 14:10:07 i have yet to see an ldpi device irl Jun 13 14:10:09 for the moment I seem to be stuck with Gingerbread. One of which seems to have major issues reading Itunes artist names. Jun 13 14:10:18 itunes... Jun 13 14:10:26 wait what? itunes on gingerbread? Jun 13 14:10:48 Ge0rG, no .. lol .. playing mp4 .. wont read artest name Jun 13 14:11:32 canadiancow|work: were u talking to me? Jun 13 14:12:01 canadiancow|work: I know several owners of ldpi devices, including my SO Jun 13 14:12:15 poor bastards Jun 13 14:12:17 However thats a different issue.. What I really came here to ask was, when developing android apps what is the major difference or use difference between the activities and the central app class ?? Jun 13 14:12:25 I am very new to development Jun 13 14:12:42 by the way, found an excellent tutorial for creating XML files on android @ the following link: http://www.ibm.com/developerworks/xml/library/x-androidxml/index.html?ca=drs- Jun 13 14:12:56 New adt preview support install to all attached devices, wooooo Jun 13 14:13:43 AlCapwn, on my system adt seems to get jammed in some way and I always have to kill it when closing eclipse Jun 13 14:13:54 AlCapwn: how??? Jun 13 14:14:07 ive been using the preview since forever and havent noticed that Jun 13 14:14:54 canadiancow|work: I can't remember how to set it up off the top of my head, check the recents area of android tools Jun 13 14:15:15 They have a blog post with the details Jun 13 14:15:56 JakeWharton: ping Jun 13 14:16:16 they need that ability from the normal launch dialog Jun 13 14:17:07 vekexasia: it's 7:15am there Jun 13 14:17:17 :P LOL Jun 13 14:17:21 ok Jun 13 14:17:36 that's why i never reach out JakeWharton :) Jun 13 14:18:48 I've a problem with the overflow menu and actionbarsherlock. Same code : GNexus Shows the overflow menu. Nexus S doesn't. Android 4.0.4 both Jun 13 14:19:26 because the nexus s has a physical menu button Jun 13 14:19:52 that menu button is a constant source of confusion. Jun 13 14:20:18 I wish, instead of removing it, they'd bind its illumination to the presence of a menu in the current activity Jun 13 14:21:01 vekexasia: android:theme="@style/Theme.Sherlock.ForceOverflow Jun 13 14:21:05 ;) Jun 13 14:21:36 that makes it not confusing for the dev and confusing for the user instead :P Jun 13 14:21:45 transfer of confusion Jun 13 14:23:25 wongk: most of the user confusion is caused by the fact that you do not know when the menu button has an actual function... Jun 13 14:23:35 exactly Jun 13 14:23:40 canadiancow thanks i'll try Jun 13 14:23:47 if the phone has a button, it should function. period Jun 13 14:23:57 my favorite place of most-surprising menu is in the android wifi prefs Jun 13 14:24:04 no way you could have guessed that. Jun 13 14:24:15 the prefs have a menu? Jun 13 14:24:22 wongk: only the wifi prefs. Jun 13 14:24:37 holy shite Jun 13 14:24:55 Ge0rG: what do you recommend instead of the s2 then? Jun 13 14:24:57 that's assanine Jun 13 14:25:02 even though i used that the problem is it doesn't work either :P Jun 13 14:25:05 lol Jun 13 14:25:19 funktronic: the s2 is ok, you just should have a low-end device as well Jun 13 14:25:21 vekexasia: that's for the better Jun 13 14:25:23 I think that's because Nexus S is 4.0.4 and has a menu button Jun 13 14:25:35 Ge0rG: we do, and we have a nexus (es?) Jun 13 14:25:50 well wongk it could be. Jun 13 14:26:27 is there a simple way to basically import or run a program complied in a different language within android or in connection with an android app? Jun 13 14:26:55 so probably killing the menu button altogether was a good idea to make the stuff less confusing. unfortunately, they fucked it up by showing the menu on all legacy apps, even when they do not have a menu at all. Jun 13 14:26:59 mac app store is telling me i need to update my OS to install an update, but the software update app says im up to date... ffs apple Jun 13 14:27:19 There are a lot of linux programs and utilities in linux I would like to port to android in some way. Jun 13 14:28:03 i'm sure Java has facilities for runnning an external process Jun 13 14:29:01 wongk, but how would I take the output from somthing like sdl and put it into a drawable in a activity ? Jun 13 14:29:07 is wifi direct supported in the android emulator? Jun 13 14:29:22 * wongk meeting Jun 13 14:31:22 nn102400: have a look at scummvm for an SDL android app Jun 13 14:31:42 Ge0rG: they have to, right? some apps implement the menu system themselves Jun 13 14:32:03 you can't assume that just because there are no MenuItems that the menu key can be hidden Jun 13 14:32:18 MDijkstra: maybe. Still, I am pretty sure it can be figured out with some heuristic Jun 13 14:33:15 Ge0rG: you mean trigger the menu button key press and detect if the pixels on the screen changes? ;) Jun 13 14:34:07 appel1: sounds reasonable to me :P Jun 13 14:35:05 does anyone know how to create virtual control buttons for an android game? Jun 13 14:37:43 I have an issue with ActionBarSerlock. I downloaded 4.1.0 from the website, and followed all the import instructions via the video in the F.A.Q. section, and I'm unable to get rid of all the errors in the project. Numerous errors. Every Package and nearly every class has issues, and three folders in the res directory(including values, values-v11, and values-v14) have errors. The video was for v4.0.0, is there an extra step I'm Jun 13 14:38:30 vexxecon: eclipse? Jun 13 14:38:37 wongk: correct. Jun 13 14:38:56 you imported ABS into a new android project in eclipse and linked your project to that? Jun 13 14:39:27 havent even gotten a chance to link my project yet. I've imported it as a new project, and it's riddled with errors. Jun 13 14:39:44 new proj Jun 13 14:39:44 so the ABS project itself has errors Jun 13 14:39:48 or android proj? Jun 13 14:39:55 Ge0rG, Thanks :) Jun 13 14:40:06 ABS has the errors, yes. Jun 13 14:40:14 vekexasia: new android project Jun 13 14:40:19 make sure it's using java 1.6 and android 4.0.3 Jun 13 14:40:36 Help Jun 13 14:40:45 in this java code: Jun 13 14:40:47 public void sendMessage(View view) Jun 13 14:40:59 paste flood incoming :p Jun 13 14:41:01 why is their a second word for Jun 13 14:41:13 no paste flooding lol Jun 13 14:41:34 why is their a second word for in the parenthesis? Jun 13 14:41:41 wongk: I changed the project to java 1.6 and it fixed some of the errors. It's already in 4.0.3 Jun 13 14:41:50 QHD: you need to learn java, that's elementary Jun 13 14:42:04 i am learning java Jun 13 14:42:17 i am learning java Jun 13 14:42:22 but most tutorials dont explain everthing Jun 13 14:42:37 QHD: I'd suggest getting a decent book and starting at the beginning Jun 13 14:42:52 QHD: any book will explain things like arguments Jun 13 14:43:24 book....why cant i just use a tutorial from a wep page Jun 13 14:43:27 and how to avoid them on irc (protip: don't walk into an android development channel and ask questions about fundamentals of java) Jun 13 14:43:42 QHD: i think you've already answered that question yourself Jun 13 14:43:44 I need a favor...I have an interview today for (hopefully) my first Android development job! I have learned that they question you in depth about obect oriented techniques...would someone with an academic level knowledge of OOD/OOP kindly give me five minutes in a private chat to ask a few questions to prep? Jun 13 14:44:31 i would hope you're already familiar with oop before you're considering yourself an android developer :| Jun 13 14:44:35 GeeksOnHugs: i have bad news Jun 13 14:44:43 QHD: books are amazing. Tutorials on webpages are ok, but they usually leave a lot to be desired as you're seeing. A book will walk you through things. Jun 13 14:44:46 QHD: most android development tutorials either assume knowledge of java programming, or they assume elementary knowledge about programming Jun 13 14:44:47 of course I am, but I have a few questions I want to brush up on Jun 13 14:44:57 okay Jun 13 14:46:02 GeeksOnHugs: Lol just talk circles around them explaining MVC. Thats how I got my job. Jun 13 14:46:15 MVC? Jun 13 14:46:17 i found enthusiasm to be most importan Jun 13 14:46:18 t Jun 13 14:46:24 Model-View-Controller Jun 13 14:46:36 I have that in spades...would it be too much if I wore all of my 6 android devices on me? Jun 13 14:46:53 I'm bringing my tablet to take notes on instead of paper lol Jun 13 14:47:44 OK, cool Jun 13 14:48:00 Ok, i'll look into buying a book, or getting a free version of one. But just a question, besides getting a book do you think oracle.com will help. http://docs.oracle.com/javase/tutorial/java/javaOO/index.html Jun 13 14:48:17 Thinking in Java Jun 13 14:48:20 is good Jun 13 14:48:25 don't know if it's there Jun 13 14:48:42 that will help with learning basic java. Jun 13 14:49:15 vexxecon: Google is the best book for the rest Jun 13 14:49:18 lol Jun 13 14:49:42 http://shop.oreilly.com/product/9780596008734.do is a great basic java book, and http://shop.oreilly.com/product/0636920010883.do is a great basic android book. Jun 13 14:49:58 together you should be up and running in no time making the next big app. Jun 13 14:50:15 vekexasia: I abuse google so hard. Jun 13 14:50:22 me too :P Jun 13 14:50:23 I love you vexxecon!!! Jun 13 14:50:25 just understand that basic android assumes intermediate java Jun 13 14:50:27 vex, do you mind if I open a private chat with you...I won't take more than a moment Jun 13 14:50:34 Sure Jun 13 14:51:34 http://shop.oreilly.com/product/9780596008734.do I saw this a while back, but didn't really look into it Jun 13 14:51:53 I own it. I live by all it teaches. Jun 13 14:52:06 <3 vexxecon Jun 13 14:54:15 I heard head first java is way better, but when i looked it up. it was 60 dollars Jun 13 14:54:46 Guys do you have experience with develpoing android apps for different News websites? I am courious what is process and if its worth to try earn some money there. Jun 13 14:55:46 Trudko: you mean wrapping someone else's content and selling it? Jun 13 14:56:07 what are your thoughts on rounded corners? Jun 13 14:56:28 like on...anything really Jun 13 14:56:28 its causing me some pain in listviews because i have four different cell backgrounds Jun 13 14:56:37 top corners rounded, bottom rounded, no rounded, all rounded Jun 13 14:56:47 I cannot get enough of rounded corners, everywhere :) Jun 13 14:56:52 Leeds: not sure what do you mean wrapping someone else content. I meant I have website and I want Android app for that so its optimized Jun 13 14:57:08 Trudko: oh, right, you run a news website? Jun 13 14:57:38 no I do Android :D and I thinking of doing andrios apps for news website and I am courious if its worth it Jun 13 14:57:59 well... which website? Jun 13 14:58:23 Leeds: dont have any particular in mind asking in general Jun 13 14:58:37 hmm ive got a listview and within each row that i inflate, i add a varying number of new views to the row View, but when i scroll down, it all messes up, now when i add them i set their tag so i can remove them next time, but its still happening, make any sense? lol Jun 13 14:59:44 really infuriating Jun 13 15:02:08 If I have a custom attribute that points to a custom style, how can I access the attributes of the custom style? Jun 13 15:02:35 heres a pastebin of my getView() maybe someone can tell me why my rows mess up when i scroll up and down http://pastebin.com/3bfq8YXe Jun 13 15:04:46 Oh, fighting against the ListView algorithm, fun :) Jun 13 15:04:56 yeh1 Jun 13 15:04:59 i usually can do it Jun 13 15:05:03 but this tme its not happening Jun 13 15:05:30 randomly things start appearing in the rows Jun 13 15:05:31 Oy. So my issue with ActionBarSherlock was just fixed by the wondrous Clean and Build. /facepalm Jun 13 15:05:51 gaz' im gonna be honest, thats one of the most ugly getView()'s ive ever seen :| Jun 13 15:05:58 vexxecon: enjoy your (bumpy) flight with Android airways, welcome aboard! Jun 13 15:05:58 yeh Jun 13 15:06:03 its rough Jun 13 15:06:08 byut do u see any issues? Jun 13 15:06:11 but* Jun 13 15:06:14 1 sec Jun 13 15:06:32 hasically when i add linwithbg.addView(addme); Jun 13 15:06:42 these ones mess it up, they seem to not dissapear or something Jun 13 15:07:02 if i take that line out the whole thing functions fine so its that while that i got thru is causing the issues Jun 13 15:07:25 *go thru Jun 13 15:07:42 HDroid: Haha, I don't know what angers me most. The fact that that's all it took, or that wasn't my gut reaction. Jun 13 15:07:57 gaz` Jun 13 15:08:00 what is it doing? Jun 13 15:08:17 its adding views based on data form the object Jun 13 15:08:27 ie RACE1 might have 1st, 2nd Jun 13 15:08:33 RACE 2 might have 1st 2nd 3rd Jun 13 15:08:39 ahuh Jun 13 15:08:43 so it adds a view for each of them Jun 13 15:09:05 try to make your example simpler so that it's actually readable :| Jun 13 15:09:14 hmm Jun 13 15:09:17 i cant tell much from your code, but it looks like you arnt doing view recycling Jun 13 15:09:20 i can clean it up if that matters Jun 13 15:09:38 It matters, not only for us, but for yourself as well :) Jun 13 15:09:38 alright illl clean that Jun 13 15:09:40 take as much stuff out as possible until it starts to work again, and then revert the last change Jun 13 15:09:42 very hard to follow Jun 13 15:09:50 well i know what breaks it Jun 13 15:09:54 i just cant work out why Jun 13 15:10:01 so then take the rest of the stuff out Jun 13 15:10:15 well i need the thing in that breaks it Jun 13 15:10:17 gaz` are you doing view recycling? Jun 13 15:10:21 yes, keep that Jun 13 15:10:26 what do u mean Jug6ernaut Jun 13 15:10:35 i mean its doing it on its own isnt it Jun 13 15:10:40 thats why im having this issue Jun 13 15:10:46 lol yes Jun 13 15:10:47 one sec Jun 13 15:11:10 i cant read your code, but ill explain what you need to do(if im right about your issue) Jun 13 15:11:20 ill clean it up so its an easy read Jun 13 15:11:40 let me pastebin a simple example of what you need to do Jun 13 15:12:01 Hi, i'm brand new to mobile dev, and i'm so confused by what framework/ide/platform to make my 'app'. the app could really just be a jqueryMobile website, but i can't decide what tools to learn Jun 13 15:12:31 jrockjiggz: What is the application doing? Jun 13 15:12:38 Or rather, what do you intend it to do? Jun 13 15:12:47 bye Jun 13 15:12:48 I have an ImageView, and i set layout params to Gallery.LayoutParameters( 128, 128 ). Now when i call .setImageBitmap(), will it create a new resized bitmap, or will it just keep a ref to the original bitmap, and resize on draw? Jun 13 15:12:54 i love you guys] Jun 13 15:13:01 especially vexxecon Jun 13 15:13:55 osxorgate: if u want resized bitmap u need set up options when u factory it Jun 13 15:14:10 gaz` note that this is taken DIRECTLY from one of my projects, so some of this is not applicable. But take note of how i am reusing the views Jun 13 15:14:14 ixc ok Jun 13 15:14:19 gaz` http://pastebin.com/mE5JgYLA Jun 13 15:14:21 if i know right that u say, just resize when draw Jun 13 15:14:29 http://pastebin.com/Nm4bJPpQ Jun 13 15:14:35 Thats it clean Jun 13 15:14:55 gaz` the key thing is that you need to set a value to your views EACH TIME or it will take the value of the view it reused. Jun 13 15:15:05 yes i know that Jun 13 15:15:09 and that works usually Jun 13 15:15:11 loke: 3 things, 1: receive notifications of new mail from my site's mailbox system, be able to send 'tweets' using my sites 'shout' system (post data), access the site's agenda and sync it with the phones native calendar/agenda system. Jun 13 15:15:17 but somehow its nto working in my code Jun 13 15:15:24 something special with the way im adding them views or something Jun 13 15:15:28 thats why im adding/removing them Jun 13 15:15:33 but its still not working Jun 13 15:15:49 well ur still not doing it effecently lol, but let me look through ur code... Jun 13 15:16:04 jrockjiggz: and you want to receieve these messages when the application is not active on the screen, yes? Jun 13 15:16:13 loke: yes Jun 13 15:16:32 jrockjiggz: Yes, then you need an application. A web-based solution won't do. Jun 13 15:16:40 jrockjiggz: But you probably already knew that. Jun 13 15:18:12 loke: you're right, I am afraid of developing on android to find out i've locked myself from porting to iOs or mango Jun 13 15:18:23 heh, mango Jun 13 15:18:27 er. w7 Jun 13 15:18:37 jrockjiggz: Why? Jun 13 15:18:43 heh, wp7 Jun 13 15:18:54 gaz` can u post a screenshot or apk so i can see whats going on? Jun 13 15:18:55 jrockjiggz: It sounds like a trivial application. A couple of weeks work and you'll be done. Jun 13 15:19:06 You're wasting more time thinking about it than it takes to write it Jun 13 15:19:24 gaz` also why are you adding and removing views exactly? Jun 13 15:19:44 loke: but theres so many 'cross-platform' tools, it seems that is the way to go, no? Jun 13 15:19:50 Jug6ernaut well it starts fine, and as i scroll up extra sub rows appear that shouldnt Jun 13 15:19:59 well where it says linwithbg.addview Jun 13 15:20:01 and removeview Jun 13 15:20:05 im just trying to add some views Jun 13 15:20:08 then remove them Jun 13 15:20:13 but some seem to stay Jun 13 15:20:38 damn it Jun 13 15:20:43 wasting too long on this i got bugs to fix Jun 13 15:20:51 jrockjiggz: No. Jun 13 15:20:52 lol Jun 13 15:21:17 loke: such as RhoMobile or PhoneGap. I figure those will ease the workload of maintaining support for multiple platforms Jun 13 15:21:17 jrockjiggz: Those tools are basically only useful for things like games that doesn't need to take advantage of any platform-specific features Jun 13 15:21:34 jrockjiggz: Your users will hate you if you do that :-) Jun 13 15:22:26 fixed it Jug6ernaut! Jun 13 15:22:39 ? Jun 13 15:22:43 all i had to do was remove if (v == null || Jun 13 15:22:49 inflate it every time instead Jun 13 15:22:52 works for now ;) Jun 13 15:23:01 :| Jun 13 15:23:06 wait Jun 13 15:23:10 is that in a listview? Jun 13 15:23:15 yes Jun 13 15:23:17 * Jug6ernaut hopes you dont have a lot of rows Jun 13 15:23:20 bc that is not right lol Jun 13 15:23:42 you dont inflate every time T_T Jun 13 15:23:43 well its not fault if it wont work Jun 13 15:23:50 well how else do u sort it ! Jun 13 15:23:50 it is your fault Jun 13 15:23:55 ^^^ Jun 13 15:23:56 because you are doing it wrong Jun 13 15:24:02 loke: if I develop an app for android using eclipse, can I port to iOS? is that a horrible idea? Jun 13 15:24:09 well how is it meant to be done Jun 13 15:24:15 that what we are paining ove rhere and it wont work Jun 13 15:24:23 jrockjiggz: you can port, why not? Just learn objective-C and the design guidelines for iOS Jun 13 15:24:50 at what point do you stop considering something a "port" Jun 13 15:24:51 but native is the way to go, not some half baked framework to write once - run many Jun 13 15:24:52 at this point i dont really care anyway Jun 13 15:24:56 the app has to be out Jun 13 15:25:08 gaz` like i said ur not doing view recycling right, thats why inflating every time is working, bc your just replacing the rows instead of reusing them Jun 13 15:25:21 well im gonna need an example to see how Jun 13 15:25:28 QubeZ: i just dont know how much headache i might get into having to maintain seperate programs Jun 13 15:25:29 i gave you one :P Jun 13 15:25:29 and every othe rlist works perfectly Jun 13 15:25:34 mine IS like that! Jun 13 15:25:38 gaz`: also look at the viewholder pattern Jun 13 15:25:40 u missed th point of what i was actually doing Jun 13 15:25:40 jrockjiggz: no you are really going to end up rewriting the app for both plat forms Jun 13 15:25:49 prob due to my mess :) Jun 13 15:25:53 jrockjiggz: then hire a dedicated iOS developer Jun 13 15:26:31 * Jug6ernaut considers himself a simi-listview- expert after his last app Jun 13 15:26:39 damn listviews are annoying and yet so useful :S Jun 13 15:26:43 yeh Jun 13 15:26:43 I'm porting my app to iOS but its a rewrite from the ground up -- sure I can use the logic and algorithms but for iOS I want my app to feel native instead of a 1:1 design similarity to Android Jun 13 15:26:46 its like a deal with the devil lol Jun 13 15:26:50 well if u are u might be able to see whats wrong with my code Jun 13 15:26:53 i cant tho Jun 13 15:27:00 altho i am doing it right in there Jun 13 15:27:05 apart form whatever bug is causing the issue Jun 13 15:27:12 Downloading frmaeworks/base: 188% (593MB/315MB) Jun 13 15:27:14 gogo repo tool Jun 13 15:27:16 im only inflating again out of pure desperation Jun 13 15:27:23 lol Jun 13 15:27:29 like i said i need a screenshot or apk Jun 13 15:27:42 blindly looking at code is blinding looking at code Jun 13 15:27:45 why cant u work out what tis doign from the cod ethats hwat i dont get Jun 13 15:28:01 thanks It's been really difficult to decide to proper path.. i agree native is best, but seems like a lot learn java, then learn cobalt Jun 13 15:28:04 and why cant i type :) Jun 13 15:28:11 [11:27:19] hey can u please help me with a quick questioon Jun 13 15:28:11 [11:27:26] no Jun 13 15:28:11 [11:27:37] okay queermuffin Jun 13 15:28:11 [11:27:42] your a pussy and u know it Jun 13 15:28:11 [11:27:59] gonna DDOS you for being a pussy ASS BITCVH Jun 13 15:28:13 hey evancharlton Jun 13 15:28:26 uh, cocao ;p Jun 13 15:28:31 i probably can, im just lazy and like to work with a scaple instead of a shovel Jun 13 15:28:35 rofl stupid nerd can't ddos #android-dev we use norton antivirus Jun 13 15:28:49 Jug6ernaut well its identical to yours apart from in mine it adds more views ot a view Jun 13 15:28:52 and tries to remove them Jun 13 15:29:01 to* Jun 13 15:29:12 anyway Jun 13 15:29:14 it works now Jun 13 15:29:17 so nevermind :) Jun 13 15:29:19 bit jerky tho Jun 13 15:29:20 lol Jun 13 15:29:27 lov Leeds Jun 13 15:29:31 someone take care of him please Jun 13 15:30:11 what ya say queermuffin? Jun 13 15:30:14 * gaz` sniggers Jun 13 15:30:47 queermuffins lol Jun 13 15:31:34 man where are my ops :( Jun 13 15:31:43 lol Jun 13 15:31:52 queermuffins dont get em Jun 13 15:31:57 no one gets ops Jun 13 15:31:59 he quit anyway Jun 13 15:32:04 ppl who run channels are too crappy Jun 13 15:33:07 crappy or creepy? Jun 13 15:33:11 elementary school must be out this week Jun 13 15:33:28 lol Jun 13 15:36:16 queermuffin is a pretty random insult for sure :/ Jun 13 15:37:06 Queermuffin, hahaha Jun 13 15:44:12 trigger.io looks really good Jun 13 15:44:48 i love all muffins, i don't discriminate Jun 13 15:46:19 jrockjiggz: another one of those, eh? Jun 13 15:51:50 hmm it looks good because it will build native using javascript api Jun 13 15:58:30 vagina? Jun 13 16:02:45 vexxecon: Jun 13 16:09:52 grr my app isnt using my custom preference layout Jun 13 16:15:37 hi all, I've an EditText element with some line of text, but getLineCount() return 0...any idea why this happen? Jun 13 16:17:35 http://stackoverflow.com/questions/3528790/textview-getlinecount-always-0-in-android Jun 13 16:17:57 yuizy: thanks, I missed that Jun 13 16:17:59 * bash` reading Jun 13 16:30:59 vagina Jun 13 16:31:38 oh I didn't notice this was #genitalia Jun 13 16:32:07 it's just #kids Jun 13 16:32:37 I should probably return to #idle then Jun 13 16:32:38 i think school got out or something Jun 13 16:32:50 that's your best bet Jun 13 16:36:47 is there a way to get the attributes from a style in code? Jun 13 16:37:14 Has anyone had a problem with WebView performing horribly as far as loading video + audio + jQuery versus the stock broswer? Jun 13 16:38:33 http://stackoverflow.com/questions/8374365/integrating-javafx-2-0-webview-into-a-swing-java-se-6-application Jun 13 16:39:50 This guy sees 10-100 times slower performance in Java. Granted, his example is iOS versus Java. But I seem to be having similar problems with Android Browser vs WebView on a tablet. Jun 13 16:43:55 how can i make a view take up 3/4 of the screen? Jun 13 16:44:16 linearlayout and weights Jun 13 16:45:10 hmm good idea blank view and then a 3&1 weight Jun 13 16:45:43 yeah, something like that Jun 13 16:46:19 wow worked like a charm Jun 13 16:46:23 I'm off to my interview for hopefully my first Android developer position! wish me luck! Jun 13 16:46:24 \o/ Jun 13 16:46:36 already had a linear layout with 3 items that iw anted to take up 3/4 so i just added a 4th item :D Jun 13 16:46:37 good luck Jun 13 16:46:56 ty :) Jun 13 16:47:00 where at? Jun 13 16:47:23 Raleigh, NC...a web development shop (but for mobile dev of course :) ) Jun 13 16:47:34 does anyone know how to make a camera in opengl es 2 that rotates in a spherical fashion based on touch events? Jun 13 16:47:43 will you do mobile web or android then? Jun 13 16:48:07 native android Jun 13 16:48:14 im guessing a web shop in nc uses coldfusion as their primary server side language Jun 13 16:48:18 how do you customize the background of each Preference cell :\ Jun 13 16:48:37 I wont accept it if it's mobile web...I want to specialize in native android...I would accept some iOS if I HAVE to... Jun 13 16:48:39 hehe Jun 13 16:48:46 getPreference().setBackground()? Jun 13 16:48:48 Bakis: you should read some basic intros on GL Jun 13 16:49:14 i started my android job, then they forced me to do ios Jun 13 16:49:23 i'm trying to find good resources.. Jun 13 16:49:30 after a few weeks i told them i wont do it anymore Jun 13 16:49:32 google. Jun 13 16:49:59 oh thanks i forgot about google. Jun 13 16:50:00 Bakis: looking for "GL ES" or "GLES" might help Jun 13 16:50:25 since it's more specific than just gl .. there are various intros, they are all pretty useful since the GL commands are identical Jun 13 16:50:40 gl es 2 is extremely different from 1 Jun 13 16:50:47 not really :p Jun 13 16:51:01 yeah really.. a lot of the operations don't exist anymore on es 2 Jun 13 16:51:30 not the ones you seem to want Jun 13 16:54:48 i'm just confused on how to modify xy movements to move along a circle rather than along the xy plane.. Jun 13 16:55:38 rotate not translate? Jun 13 16:55:57 use sign values Jun 13 16:56:00 and cos Jun 13 16:56:03 maybe Jun 13 16:56:10 "sign" Jun 13 16:56:11 heh Jun 13 16:56:18 >.< Jun 13 16:56:23 im not much of a mtah guy Jun 13 16:56:29 ^^as u can see Jun 13 16:56:31 or GL Jun 13 16:56:39 i use gl Jun 13 16:56:40 yeah but doesn't rotate rotate the object not the camera? Jun 13 16:56:46 made a game using gl :D Jun 13 16:56:57 Bakis: there _is_ no camera Jun 13 16:57:04 gl u can rotate the viewport or the projection or some other thing Jun 13 16:57:16 eh? whats the projection matrix for then? Jun 13 16:57:22 Bakis: if you want the view to be elsewhere, you transform the world Jun 13 16:57:37 including rotation Jun 13 16:58:19 i suppose you meant there is no explicit camera object Jun 13 16:59:12 there is no such concept as a "camera" in GL Jun 13 16:59:30 is there a secret trick for getting Android Unit Tests to work in Eclipse? I have 100% followed the example in the Android docs and all I get is "Test run failed: No test results" Jun 13 16:59:53 oGMo, then how does it apply projection without a point of reference for the camera Jun 13 16:59:59 its implicit Jun 13 17:00:03 robb_www: one does not, because there is no camera Jun 13 17:00:18 .. so you dont apply projection? Jun 13 17:00:37 please go read a basic GL tutorial, this is so basic Jun 13 17:00:44 ive used JOGL thanks Jun 13 17:01:44 my point is simple, to do projection, you need a frame of reference, typically a point considered the locaiton of a camera, it doesnt have to be explicit, but that frame of reference is needed Jun 13 17:01:52 if you dont explicitly state a location, the location will be implicit Jun 13 17:01:57 but you cant NOT have it Jun 13 17:02:10 how do i make my widget center itself horizontally on the home screen? Jun 13 17:04:44 I only get onTouch() calls when the finger is put down, not while moving. What is wrong? Jun 13 17:06:35 oh look, cameras, in OpenGL ES 2.x http://db-in.com/blog/2011/04/cameras-on-opengl-es-2-x/ Jun 13 17:11:20 i saw that.. but a lot of other articles talk about how there isn't an actual camera.. Jun 13 17:11:30 thats because.. its .. "implicit" Jun 13 17:11:50 robb_www: no, it doesn't exist, and that's a shitty article Jun 13 17:11:58 Many people who are new to 3D programming, but who have worked with 3D graphics programs like Maya, Blender, or Lightwave, expect to find an object in OpenGL's virtual world called a "camera". There is no such beast. What there is, is a defined chunk of 3D space that can be seen. The virtual world is infinite, but computers don't deal well with infinite, so OpenGL asks us to define a chunk of space that can be seen by the viewer. Jun 13 17:12:13 exactly,there is no explicit object Jun 13 17:12:15 there is _no_ camera API, no defined camera terminology, or concept Jun 13 17:12:25 what dont you understand about implicit? Jun 13 17:12:37 robb_www: if you think about it in terms of a camera, you are doing it wrong Jun 13 17:12:52 how is that not a useful concept? Jun 13 17:13:02 because _it doesn't exist_ Jun 13 17:13:34 and therefore _wrong_ things like the article states ("all camera operations must be inverted") to make up for being wrong, don't have to be accounted for Jun 13 17:13:43 your concept is fictional! Jun 13 17:13:50 lol Jun 13 17:13:51 therefore less complicated, full understanding Jun 13 17:13:57 it's cool, i dig fiction Jun 13 17:15:16 so you find it more convenient to consider translating the world, than to write a utility function that says the view of the world moves? Jun 13 17:15:58 okay well how do i rotate the world around my current viewport then? Jun 13 17:16:00 *sigh* Jun 13 17:16:04 you can write an abstraction for cameras, but they are not a concept in GL Jun 13 17:16:11 right, EXACTLY Jun 13 17:16:33 how on earth do you select/interview for folks that don't simply think programming is guess and check. Jun 13 17:16:53 i never suggested that cameras are an EXPLICIT part of OpenGL, they are not part of the API period, no argument Jun 13 17:16:55 i'm so mother fucking sick of coworkers telling me "i tried that, it didn't work." with no ability to articulate to me why precisely Jun 13 17:16:55 I like this conversation about a thing that doesn't have a concept, but another concept, and therefor it throws people off. *popcorn* Jun 13 17:16:56 jasta: whiteboard coding Jun 13 17:17:09 jasta: heh :-/ Jun 13 17:17:15 jasta: what do you think test driven development is then? Jun 13 17:17:17 evancharlton: apparently the questions i'm asking are not selecting for this. because i keep fucking hiring people who say this. Jun 13 17:17:20 and then i want to fire them Jun 13 17:17:33 but you cant say there is no camera in a 3D world, thats a conceptual description of what your doing, and cameras are a valid concept Jun 13 17:17:47 there has to be a physical point that the world rotates about to give you that feeling of rotating your "eyes" or "camera" Jun 13 17:17:52 huh, I think I'm already in England. THat wall must have been hadrians wall... Jun 13 17:18:39 you can think of it as being a translation and rotation of the worlds coordinate system... that is fine, but that just suggests that you are translating and rotating around the origin, and the origin is where the concept of a camera would come in, the location from which the viewport is rendered, hence why you are able to use a projection matrix at all Jun 13 17:19:16 evancharlton: i am wondering if a more appropriate style would be to present code that appears working but is of poor quality (awkward and containing antipatterns) and ask them to modify it Jun 13 17:19:27 it might have been 7 years since i did anything with graphics, but im not a /complete/ noob Jun 13 17:19:31 and just see where they go and whether that prompts them to say "i'd _try_ ..." :) Jun 13 17:20:20 jasta: well, the first thing you should check for is if they enumerate test cases (with appropriate boundary coverage) before they start writing an algorithm Jun 13 17:20:28 and periodically feed them through to see if it works Jun 13 17:20:28 p.s. there is this fairly obvious working theory out there that code, like math, can be objectively proven to be correct for a set of expected inputs and outputs. Jun 13 17:20:50 it's just more difficult to do in a lot of cases because of its unwieldy size. Jun 13 17:21:23 evancharlton: that's i think only a related concept to what i'm trying to select for. Jun 13 17:22:29 i don't want folks even believing that test coverage is necessary to modify legacy code. it is of course very useful, but what i want is folks that can actually go understand and prove the nature of a piece of code, even if it is spaghetti and insane. Jun 13 17:22:29 canadiancow: force overflow does not affect ICS Jun 13 17:22:36 before they begin hacking away aimlessly Jun 13 17:22:55 "i tried and it didn't work" should absolutely never be said by an engineer. Jun 13 17:23:18 i mean, these irc schmucks say it all the time, but i don't want to hire them ;) Jun 13 17:24:46 JakeWharton oh yea right Jun 13 17:24:55 but its more likely an ICS user would understand how it works Jun 13 17:24:57 so that's fine Jun 13 17:26:04 jasta, out of interest how do you reconcile your working theory about proving code and the halting problem? Jun 13 17:26:48 I would like to understand the recyling bitmap concept, but can't find a goog tutorial about that, does someone know any ? Jun 13 17:28:30 maxagaz: it's just releasing the byte array used to store the bitmap's pixels, to maybe be re-used later. Jun 13 17:29:31 robb_www: how do you mean? Jun 13 17:29:43 also it's not exactly my theory, i think it is fairly obvious ;) Jun 13 17:32:34 jasta, if you cant prove whether your code enters an infinite loop, how can you prove if its correct? Jun 13 17:33:05 excluding the possibility you want to write code with "may or may not enter an infinite loop" :) Jun 13 17:33:10 which^ Jun 13 17:33:32 oGMo: so how do 3d android/iphone games use joysticks to rotate the view? like what method? setRotate? Jun 13 17:36:02 robb_www: so, it's not a complete analytical machine, but for pragmatic purposes and isolated subdomains of the total problem, it is a very reliable way to increase confidence that a code change will even "work". Jun 13 17:36:20 certainly goes far beyond guessing that this is the place you should change and seeing how your tests are affected Jun 13 17:38:02 jasta: why not doing myBitmap=null; instead of myBitmap.recycle(); ? Jun 13 17:39:02 well the former will eventually call free(), releasing the memory for re-use by the OS. the latter will immediately release the memory into a pool managed by the drawing library (Skia). Jun 13 17:39:15 the latter is probably better optimized pragmatically Jun 13 17:39:21 but it also might not be ;) Jun 13 17:46:07 jasta: so, I'd better do both in this order, right ? (sorry I was disconnected) Jun 13 17:47:10 maxagaz: honestly, recycling bitmaps is not normally useful or necessary. you're taking on this implied responsibility of believing you can better manage memory than can the VM and the kernel Jun 13 17:47:20 which, in the fast majority of cases, is foolish. Jun 13 17:48:04 jasta: so what should I do to avoid the OurOfMemory error with my bitmaps ? Jun 13 17:48:24 jasta: I'm not sure to understand your advice Jun 13 17:48:29 maxagaz: don't create enormous bitmaps and don't strongly reference all of them :) Jun 13 17:49:19 jasta: what is an enormous design (100K, 500K, >1000K) ? Jun 13 17:49:34 s/design/bitmap Jun 13 17:50:17 also, what do you mean by strong reference ? what type should I use then ? Jun 13 17:50:47 maxagaz: bitmaps larger than the screen size would be too big, generally, and would need to be carefully managed. Jun 13 17:51:06 and as far as strongly referencing them, caching for example with softreference is one strategy that can help Jun 13 17:51:10 but it really depends on your problem space Jun 13 17:52:02 what is a soft reference ? how to you define it in your code ? Jun 13 17:52:31 ask google Jun 13 17:59:45 anyone have any tips for getting unit tests to work? I have gone back and forth and cannot find a single difference between my test app and the Android example. I get "Test run failed: No test results" no matter what I do. No errors or other feedback in logcat. Jun 13 18:00:12 jasta: I could also use myBitmap.inPurgeable=true; right ? Jun 13 18:00:30 you could Jun 13 18:00:33 but it won't do much :) Jun 13 18:00:59 maxagaz: i think you're searching hard for a silver bullet where you can just call this one method or add this one line and suddenly you'll be free to allocate as much memory as you'd like Jun 13 18:01:11 but that is unlikely to be the case. perhaps try memory profiling and really think through what you're doing :) Jun 13 18:01:46 some basic efficiency improvements by design (caching, only loading what you need, etc) may work out better for you Jun 13 18:02:10 jasta: call which one method ? add which one line ? Jun 13 18:02:50 lol, ...really? :) Jun 13 18:03:25 jasta: yeah, really, your answers are too theoretical for me, I need to see some code Jun 13 18:04:52 hello Jun 13 18:05:07 how do I put the Hello Android program on my kindle fire? Jun 13 18:05:13 It's flashed to cyanogenmod Jun 13 18:05:18 I can do whatever I want with it-- Jun 13 18:05:38 read the tutorial Jun 13 18:06:22 android:valueFrom & android:valueTo - I cant seem to get things to move in image views with these... Jun 13 18:06:24 DrChaos, does your kindle show up when typing 'adb devices' into the console on your computer? Jun 13 18:06:26 jasta, anyway, I was just trying to understand, I can come back to this later Jun 13 18:07:11 if I was to valueTo=0 it goes to center. Jun 13 18:08:31 if I valueFrom=-200 to 0 it moves all the way up (not down). I can't figure out the logic and cant' find docs on it. Jun 13 18:10:09 woo! Jun 13 18:10:15 almost time for google i/0 Jun 13 18:10:22 loaded up on android talks Jun 13 18:10:51 is romainguy presentin anything this year? Jun 13 18:11:21 it is said here: http://stackoverflow.com/questions/7902121/admob-cant-display-ads-because-of-configchanges that I can set my project build target to android-15 (for instance), but that my app will run on android 2.2 as long as I set minSdkVersion="8" in the manifest. I tried it, but then I get a red cross next to my emulator in the AVD manager showing that I can run it on Android 2.2 emulator. Is there something I misunderstood somewhere Jun 13 18:11:21 ? Jun 13 18:11:54 showing that I can't run it on Android 2.2 emulator Jun 13 18:12:04 (I forgot the 't) Jun 13 18:12:57 kbs: I am Jun 13 18:13:33 romainguy: excellent. I enjoyed your listview talks from a few years back, hope to catch some more tips Jun 13 18:13:37 romainguy, how's j coming along? Jun 13 18:15:43 sorry for the question, although there was a red cross, it's still running the app on the emulator Jun 13 18:16:26 arg I want ics when I can upgrade next month (verizon) but the only thing they have is still the galaxy nexus - which I would have bought 6 months ago if I knew waiting was useless Jun 13 18:18:35 in mysql should i use decimal or float for storing latitude/longitude? Jun 13 18:18:56 #mysql Jun 13 18:19:09 k Jun 13 18:20:12 well, I've figured out Unit Tests. Apparently the trick is to not need to test your application at all, and to accept that Android is just going to print "Test run failed: No test results" and call it a day. >O Jun 13 18:21:12 jeppy ☢ yes Jun 13 18:21:27 please teach me how to push the Hello Android activity to it Jun 13 18:22:00 List of devices attached Jun 13 18:22:02 5F3E000600000001device Jun 13 18:22:13 brx_: in sqlite it doesn't matter Jun 13 18:22:21 DrChaos, it is simple Jun 13 18:22:32 thanks evancharlton, ill bear that in mind once i come to the local db Jun 13 18:22:34 what dev environment are you using? Jun 13 18:23:10 eclipse? Jun 13 18:24:13 jeppy ☢ yes Jun 13 18:24:37 in eclipse you can just right click on the project and go to Debug As > Android application (there is also the debug button on the toolbar) Jun 13 18:25:29 how do I get the android appllication item in the debug as menu? Jun 13 18:25:38 I haven't installed the android sdk for eclipse yet Jun 13 18:26:27 well do that, but you can also type in the system console: adb install blah.apk Jun 13 18:26:45 but that wont give you the debugging capabilities Jun 13 18:27:22 the ADT plugin doesn't take long Jun 13 18:30:09 This is a fairly elementary question, but in the application manifest, you can have several sections within the section, right? Jun 13 18:30:19 yes Jun 13 18:30:51 Wouldn't this make it so that one or more activities could be running that were installed from a single APK? Jun 13 18:31:29 yes Jun 13 18:31:47 think of activities as just that - activities, not applications Jun 13 18:32:14 So one activity could theorectically be the home screen, and it could call (from a button) another activity. The memory management in Android would take care of both processes independently, so if the "child" crashes the parent could still be running and stable? Jun 13 18:32:20 you might have different activity for editing some data, and a different one giving you overview Jun 13 18:32:43 Jonathan_Eyre: except that the new activity doesn't necessarily have to be a new process, or even thread Jun 13 18:33:14 read about Activity and Service Lifecycle on d.android.com Jun 13 18:33:37 n.b. you can force components of your application to be run in different processes, too Jun 13 18:33:54 explicitly state what goes where etc. Jun 13 18:44:24 Is it possible to launch another activity inside of a screen I create and control? Jun 13 18:44:50 Launch an activity from a different app, like com.android.settings.wifi Jun 13 18:46:47 Jonathan_Eyre: You can launch another activity, but not in a screen you control (well, not in practice). You can use fragments when you need composable "sub-activities" Jun 13 18:48:55 so basically what i've been asking is.. like in second life when you zoom in to mouse control view, how is that rotation controlled? i know second life is opengl.. Jun 13 18:50:02 if I do: chartsBitmaps = new HashMap(); then put bitmaps in it, and then recall it and put images again, will it take more and more memory ? Jun 13 18:50:19 i've been trying Matrix.RotateM() but i can't get it working quite right... Jun 13 18:50:39 Bakis: http://www.arcsynthesis.org/gltut/ <--- look into this, at least if you're planing ot concentrate on GLES2 devices Jun 13 18:50:56 if yes, how should I release chartsBitmaps before re-setting it ? Jun 13 18:59:45 p_l.. thanks.. but i still can't figure out how to get this to work.. Jun 13 19:03:08 how do i have a listview and then after i scroll tothe end have more gui stuff? Jun 13 19:03:39 layout_weight Jun 13 19:03:49 hmm Jun 13 19:03:51 really? Jun 13 19:03:53 how so Jun 13 19:04:04 like i want the listview fullscreen Jun 13 19:04:10 then once u get to the end u can see one more view Jun 13 19:04:16 ohh Jun 13 19:04:24 a custom adapter Jun 13 19:04:34 bugger Jun 13 19:04:43 u mean make a sort of custom row basically? Jun 13 19:04:48 yep Jun 13 19:04:55 thought it might be easier Jun 13 19:05:40 hello there - i have a wlan problem on a gingerbread phone - question: what files (except of the wpa_supplicant.conf file) in the /data directory are responsible for wlan and its settings? Jun 13 19:06:08 amiloxa: #android Jun 13 19:14:49 Quick question, if I were to abstract out a function to add a header to the current activity where and what should I be calling something like thaT? Is that a common approach to dealing with views. Here is the code I am repeating in more than one activity and I think should be abstracted out: https://gist.github.com/2925853 Jun 13 19:16:30 gowie: ListViewActivity subclass, onCreate Jun 13 19:20:52 is the LVL code in aosp? Jun 13 19:22:18 http://paste.in.ua/4363/raw/ What should I write to link with mine .a file? Jun 13 19:24:39 Unit tests -- "Test run failed: No test results" on my physical ICS device but the tests work in an emulator. Anyone have any ideas at all? Jun 13 19:24:41 wongk Hm. Yeah, but I most likely going to be applying headers to different activities as well. Jun 13 19:25:21 gowie: that was the premise of your quesiton, as i understood it Jun 13 19:25:55 are you implying non-ListViewActivity's? Jun 13 19:32:46 how to check if chartsBitmaps was set (with this: new HashMap();) or not ? Jun 13 19:33:29 is this a member or a local variable? Jun 13 19:33:46 either way, init it to null and check for null Jun 13 19:34:18 wongk: a local variable Jun 13 19:37:13 wongk: the thing is that I want to clean chartsBitmaps before re-using it and in onDestroy with this: http://pastebin.com/ga43Fmrm Jun 13 19:38:01 but if it doesn't exist and that the method is run, then I get a null pointer exception Jun 13 19:38:30 that's why I need an if to check whether it was previously set or not Jun 13 19:38:36 what kind of performance impact does resolving strings from resources have? If I had about 100 of them, should I avoid doing it on the UI thread? Jun 13 19:39:31 wongk Yeah i'm saying non list view activitys as well. Jun 13 19:40:31 you should avoid everything on the ui thread that takes time Jun 13 19:41:16 maxagaz: i believe my previous answer addressed your question Jun 13 19:41:37 also, chartsBitmaps is not a local variable Jun 13 19:42:09 gowie: and where do you plan to put this header? Jun 13 19:42:50 jeppy: empirical data... testit Jun 13 19:45:09 http://phandroid.com/2012/06/12/android-4-0-ice-cream-sandwich-ui-nominated-for-user-experience-award-see-early-holo-inspiration-in-new-video/ Jun 13 19:47:15 is it still considered a bad idea to use the holoeverywhere project (to bring holo < HC ) ? i noticed the new square app seemed to look like Holo theme Jun 13 19:48:02 wongk: if I init it to null (like this: chartsBitmaps = null;) then my method here: http://pastebin.com/ga43Fmrm is useless, isn't it ? Jun 13 19:48:04 * hackkitten does fragments Jun 13 19:48:16 g00s > be proud, I'm making my first ActionBar and Fragments based app :D Jun 13 19:48:25 :O Jun 13 19:48:39 hi everybody! Jun 13 19:48:43 maxagaz: you should read about initialization in java and the special value "null" Jun 13 19:49:08 wongk: do you have any link about that ? Jun 13 19:49:28 wongk At the top?? I don't know, and I am only asking where should I put activity based abstractions basically, so it could be a footer I want to add to any view it could be something else I dont know. Jun 13 19:50:19 wongk: also, I'm really wondering whether my releaseChartsBitmap() function is useless or not, can you tell me ? Jun 13 19:51:40 maxagaz: i do not have a link handy... and i don't know about recycling bitmaps, but don't try to solve a problem that doesn't exist Jun 13 19:51:53 I just published my first ever android app and its not showing up when I search for it in google play Jun 13 19:51:57 any idea why ? Jun 13 19:52:14 wongk I guess the answer is to subclass activity. Jun 13 19:52:26 gowie: the point of the abstraction is that the same thing is done in multiple places Jun 13 19:52:27 wongk: what makes you think a problem doesn't exist ? Jun 13 19:52:42 can anybody tell me an easy way to integrate a Timer? I would like to say in a method: "perform foo() after x milliseconds" ... Would be great if anybody could help Jun 13 19:52:42 maxagaz: what makes you think a problem does? Jun 13 19:52:44 bsilwal: there's delay between publishing and it actually showing up Jun 13 19:53:02 wongk: an error like OutOfMemory due to bitmaps Jun 13 19:53:03 how long is it usually ? Jun 13 19:53:14 evident: wouldn't it be simpler to just make a thread then delay it? Jun 13 19:53:21 gowie: so if your header is handled different on different activity types, it can't be abstracted Jun 13 19:53:33 p_l: any idea ? Jun 13 19:53:35 bsilwal: depends on many different factors, afaik. Wait a day and it should be there Jun 13 19:53:42 vexxecon: how would I do this? Jun 13 19:53:44 argh ok Jun 13 19:53:52 maxagaz: so it sounds like a problem exists, so if your function solves that, then it isn't useless Jun 13 19:54:55 evident: http://www.dreamincode.net/forums/topic/229403-setting-up-a-timed-method-to-run-in-the-background/ here is a tutorial I wrote oh so long ago that approaches making a simple animation. You can tailor that to what you need. Jun 13 19:54:56 it would be even simpler to post a runnable to call it after the suitable delay Jun 13 19:55:00 it's all about what you actually need Jun 13 19:55:12 whether it has to happen when your app is no longer the foreground UI Jun 13 19:55:13 etc Jun 13 19:56:17 wongk: but if I do what you said: chartsBitmaps = null; then check when it's null or not, then my function won't be executed and thus becomes useless Jun 13 19:56:43 if it's null then there's nothing to do, that's the point of null Jun 13 19:57:38 ctate, do you know if the LVL code is in aosp? i want to submit a patch Jun 13 19:57:43 but i cannot find it Jun 13 19:57:44 wongk: but with null, I'm afraid the bitmaps are not properly released Jun 13 19:58:13 that may be the case, lots of people have run into this Jun 13 19:58:28 but if the container is null, then there are no bitmaps Jun 13 19:58:35 wongk Hm, I don't know I think I got a better understanding what I would like to do though, so thanks! Jun 13 19:58:59 wongk: the bitmaps may still be in memory, but with nothing pointing to it Jun 13 19:59:16 so then how did the reference to the container become null? Jun 13 19:59:35 by setting it to null Jun 13 19:59:42 O.o Jun 13 19:59:56 i feel like we're talking in circles Jun 13 20:00:48 I mean, if I do chartsBitmaps = null, I guess it will clear the pointer to the images, but not the images itself in memory, am I wrong ? Jun 13 20:01:23 i originally said initialize it to null, not set it to null in your function Jun 13 20:01:42 you asked how to tell if the variable had been set to a valid reference Jun 13 20:01:46 wongk: how do you do that ? Jun 13 20:02:07 do you not know how to initialize members in Java? Jun 13 20:06:16 wongk: I do it like this: chartsBitmaps = new HashMap(); Jun 13 20:06:57 maxagaz: so where are you setting it to null? Jun 13 20:08:29 wongk: after recycling the bitmaps it contains Jun 13 20:08:55 maxagaz: lets start over Jun 13 20:09:00 wongk: after making sure the bitmaps it contains are released from the memory Jun 13 20:09:08 what is the actual problem you are having Jun 13 20:09:11 evening Jun 13 20:09:27 wongk: I have OutOfMemory errors due to bitmaps Jun 13 20:09:49 maxagaz: and this function you've pasted [does|does not] solve your problem? Jun 13 20:09:52 wongk: it happens when I refresh my bitmaps Jun 13 20:10:09 wongk: when I refresh the content of chartsBitmaps Jun 13 20:11:44 is SeekBarPreference private? Jun 13 20:11:48 whaddafuk Jun 13 20:12:05 oh Jun 13 20:12:08 wongk: it seems to solve it Jun 13 20:12:12 good luck with bitmaps & out of memory error Jun 13 20:12:17 that's a pain in the ass Jun 13 20:12:50 maxagaz: ok, so you're good, then? Jun 13 20:16:26 SimonVT: you there ? Jun 13 20:16:38 [21:09] evening Jun 13 20:16:39 no reply! Jun 13 20:17:35 i think i fucked up the amazon seller system. its 'eventually consistent' state seems to have converged on 'perpetually fucked' Jun 13 20:17:43 :) Jun 13 20:17:54 well, for my little listing anyhow :D Jun 13 20:18:06 lack of transactions ftl Jun 13 20:18:26 hackkitten: what libraries are you using ? Jun 13 20:18:42 Partly Jun 13 20:19:40 SimonVT: quickly, do you know if this was resolved ? it seems closed … https://github.com/JakeWharton/ActionBarSherlock/issues/413 Jun 13 20:19:55 not an ABS bug Jun 13 20:20:16 so it happens, but there is nothing that can be done i suppose Jun 13 20:20:17 Was never an issue Jun 13 20:20:21 ok Jun 13 20:20:25 It only happens with debugger attached Jun 13 20:20:32 And doesn't seem related to ABS Jun 13 20:20:41 ok. thought it might be related to this one https://github.com/JakeWharton/ActionBarSherlock/issues/258 Jun 13 20:20:48 so its basically not an issue Jun 13 20:21:21 s/basically// Jun 13 20:21:32 SimonVT: JakeWharton thanks Jun 13 20:21:37 :) Jun 13 20:23:46 JakeWharton: were you reading a good book the other day ? Jun 13 20:23:54 Speaker for the Dead Jun 13 20:24:08 Ender's Game/Shadow sequel Jun 13 20:24:16 that sounds like a good job to have :) Jun 13 20:24:32 (Speaking for the dead) Jun 13 20:24:45 having issues with sensor battery consumption: even after properly unregistering with SensorManager, as long as my process is not killed, 'dumpsys batteryinfo' is showing an increased usage on 'Sensor 0' and 'Sensor 3'. anyone had something similar? thx. Jun 13 20:25:05 'increasing'.. Jun 13 20:25:50 JakeWharton: i tried listening to that on audible once, couldn't get into it Jun 13 20:25:59 ender's game was muchg better IMO Jun 13 20:26:03 note: value 3 is the deprecated orientation (I never use this) and Value 0 is undefined.. Jun 13 20:26:33 yet my app keeps going up in the stats list. very annoying.. Jun 13 20:26:56 wongk: have you read Ender's Shadow? It tells the same story from Bean's perspective. Jun 13 20:27:12 JakeWharton: no, i've heard there's a bunch of realted novels Jun 13 20:27:18 yeah there's 6 or something Jun 13 20:27:19 i don't read very often Jun 13 20:27:35 i have a million other things fighting for my time :P Jun 13 20:27:49 i know the feeling Jun 13 20:29:24 I'm trying to build an android app from the command line, and cannot figure out how to add a library to the build. Is there a file where I specify this? Jun 13 20:29:55 I see conflicting things saying build.properties, ant.properties... Jun 13 20:30:16 I tried android update -p . --library libs/file.jar but this failed. Jun 13 20:30:26 Can I add a jar file to the build scripts? Jun 13 20:30:26 x_or: did you try just dropping the library in 'libs'? Jun 13 20:30:37 It is there, is that all I need to do? Jun 13 20:30:51 i don't use ant, but that was my understanding Jun 13 20:30:54 I'm having issues with taking a picture in portrait mode. Preview works fine, but takePicture gives me a picture rotated 90 degrees to the left (landscape). I have set setRotation(90), but doesn't seem to work. Tested under 2.3/nexusS and 4.0/galaxyS3 Jun 13 20:31:08 Good to know. Eclipse is not recognizing the library, but the command line version seems to work. Jun 13 20:31:17 I'm just not sure if it is using it or not... Jun 13 20:31:29 eclipse requires you add it to the build Jun 13 20:32:03 wongk: I think I've done this correctly, it shows in my build path, and I've inspected the jar archive, but I cannot reference a symbol from the files. Jun 13 20:32:06 I don't know why. Jun 13 20:32:28 Hmm, actually, maybe it is a zip of the .java files, not the .class files... Jun 13 20:32:32 has anyone ever had a problem with battery usage stats going up _after a sensor has been used and unregistered? Jun 13 20:35:20 voso: have you tried on other devices ? Jun 13 20:35:41 thats very interesting Jun 13 20:36:06 yes, it happens consistently on my NexusS (stock ICS) and occasionally on a friend's HTC desire after a few days of usage.. Jun 13 20:36:15 thx for your attention. Jun 13 20:36:48 voso: which sensor? Jun 13 20:37:15 I am using 'adb shell dumpsys batteryinfo'. the problematic result is: Jun 13 20:37:33 Wake lock *vibrator*: 524ms partial (3 times) realtime Jun 13 20:37:33 Wake lock android.media.MediaPlayer: 1s 692ms partial (3 times) realtime Jun 13 20:37:33 TOTAL wake: 2s 216ms partial realtime Jun 13 20:37:33 Sensor 4: 2s 554ms realtime (3 times) Jun 13 20:37:33 Sensor 0: 47s 597ms realtime (0 times) Jun 13 20:37:35 Sensor 3: 47s 603ms realtime (0 times) Jun 13 20:37:37 Apk com.sleekbit.intelliring: Jun 13 20:37:39 Service com.sleekbit.intelliring.VolumeSetterService: Jun 13 20:37:41 Created for: 3s 99ms uptime Jun 13 20:37:43 Starts: 3, launches: 3 Jun 13 20:37:45 whooops , sry Jun 13 20:37:45 Yum Jun 13 20:37:47 for pasting too much Jun 13 20:38:00 yeah, but what are sensors 4,0, and 3 ? Jun 13 20:38:12 the sensor 0 and sensor 3 are going up after they are unregistered. Jun 13 20:38:18 sensor 3 is orientation Jun 13 20:38:35 sensor 0 I have NO idea. its not even defined in the APIs Jun 13 20:39:45 sensor 4 is GYRO, but i am not using that either. only the accelerometer. very strange.. Jun 13 20:40:04 ok, so orientation and gyro Jun 13 20:45:08 is there some way to identify individual usb cables? my problem is that when i get messages at night, the led starts blinking. i'd like to right an app that will disable the led when my phone is connected to the usb charging cable on my nightstand Jun 13 20:45:56 I don't think you can actually disable the LED for notifications, only enable it Jun 13 20:46:07 anyone just want to reassure me that using context.getString(int) 100 times is negligable and does not need to be done in another thread? Jun 13 20:46:16 Anyone know if it's possible to create a toast from within a ContentProvider? Jun 13 20:46:16 I'm also not sure what you're asking wrt cables either; whether it's for charging vs data? Jun 13 20:46:19 voso: there is an apidemo for sensors, can you see if that does the same thing? Jun 13 20:46:33 nplus: probably, consider using a notification or activity instead. Jun 13 20:46:49 jeppy: consider yourself reassured. Jun 13 20:47:01 lov: alright, thanks Jun 13 20:47:10 I mean I guess it depends on just how little time you need to spend on it but I can't imagine that being TOO expensive. Jun 13 20:47:56 me? Jun 13 20:48:05 g00s: i'll do that. in the meantime i stopped my app thru DDMS,then got it restarted through a BCast (not involving _any sensors), and guess what: the 0 and 3 sensors kept counting on. Jun 13 20:48:26 i dont care if it takes 100ms Jun 13 20:51:16 jeppy: in that case you're good to go. Jun 13 21:08:31 Hey, I've got a question regarding the licensing of the Android SDK... There's a Free Software Game Development contest that will start pretty soon and the judges were wondering whether the Android SDK counted as "Free Software" or not. Jun 13 21:08:53 I'm not sure if it can be pulled and built from a repository, for instance, though I know that the qemu emulator images can be built Jun 13 21:10:37 Hmm, i was linked to this, http://developer.android.com/sdk/terms.html so I'm guessing it wouldn't qualify as per the contest rules Jun 13 21:16:01 g00s: I managed to duplicate something similar with API Demos Sensors.java too. Jun 13 21:16:28 voso: i guess we know what that means :| Jun 13 21:16:30 if you stop the app without unregistering, the battery stats will keep on going up. Jun 13 21:17:15 but the api demo should unregister, so are you seeing the problem after it does that ? Jun 13 21:18:11 although I am unregistering when my service stops, if I do a reinstall, I guess its the same as stopping the app using ddms Jun 13 21:19:45 yes, if you call unregister, than all is ok. however if android kicks your process out due to low mem, then your battery stats will continue going up even without a running process. Jun 13 21:19:55 err, no? Jun 13 21:20:26 if your app is evicted, any wakelocks it holds are known to be shut down etc Jun 13 21:20:28 at least that is the only way I can explain at the moment.. Jun 13 21:20:47 * ctate | the judges were wondering whether the Android SDK counted as "Free Software" or not. Jun 13 21:20:59 Nushio: i'm trying to imagine in what world it could possibly *not* qualify Jun 13 21:21:23 ctate: planet RMS Jun 13 21:21:25 (1) download Android source via instructions on source.android.com (2) make sdk (3) done Jun 13 21:21:35 BartK: ping Jun 13 21:21:36 ^ Jun 13 21:22:13 do you have a link to the contest home, or something? Jun 13 21:22:19 ctate: thanks for the answer Jun 13 21:22:20 yeah Jun 13 21:22:29 ctate: thx for your input. I would have assumed this behavior too, but the fact is that my app's stats keep going up after the app being stopped, then started again (due to an AccessibilityService that does not use sensors) Jun 13 21:22:36 i wasn't sure if I should link to the contest or not, but here it is http://lpc.opengameart.org/ Jun 13 21:22:38 i mean, if they limit to things that are GPL-licensed or something that'd be relevant Jun 13 21:23:01 the goal is to make gpl-v3 games, yeah Jun 13 21:23:04 voso: started services that are stopped to make memory for other apps do get restarted at first opportunity Jun 13 21:23:06 free as in free beer, sure. open ? not so much Jun 13 21:23:24 there are two parts of the answer here Jun 13 21:23:39 the first is that just because Android itself is not GPL licensed does not mean it is not possible to make GPLv3 apps *for* Android Jun 13 21:23:47 just like it's possible to write GPLv3 apps that run on Windows Jun 13 21:23:54 * BartK nods Jun 13 21:23:55 that is correct Jun 13 21:24:07 LPC requires apps to run on a stack that's FOSS from the ground up Jun 13 21:24:34 the second is that if we get into "'free software' means my own personal defintion of what counts as 'free'" then we'll be here all day ( / week / year ) :) Jun 13 21:24:53 BartK: so linux/fbsd only, pretty much? fair enough. Jun 13 21:25:07 ohai Nushio Jun 13 21:25:10 06-13 17:24:46.132: E/AndroidRuntime(16758): at android.preference.ListPreference.onDialogClosed(ListPreference.java:264) Jun 13 21:25:19 why do i never get straightforward stack traces Jun 13 21:25:30 why would ActivityManager.isRunningInTestHarness() return false when my application is being tested? Jun 13 21:25:39 ("FOSS" meaning what exactly in this context? :) ) Jun 13 21:25:41 ctate: on the rules they simply state "FOSS from the group up" so that Flash and Silverlight and other libraries can't be used Jun 13 21:25:48 ctate: I know, I have an AccessibilityService (no sensors used in it) that causes my app to restart after I stop it. the sensors are used in another part of my app that is not executed before the battery stats start going up again. Jun 13 21:25:50 and is there a way to determine if your application is being tested that works on api 7 or higher? Jun 13 21:25:59 and given that the Free Software Foundation is backing the contest, I'm guessing that Stallman-approved :P Jun 13 21:26:04 I mean OSI Jun 13 21:26:18 ahhh, okay; i'd never heard of it so i didn't kjnow it was the FSF Jun 13 21:26:32 Free as in Free Software, per the FSF definition. Jun 13 21:26:44 so yeah, by his definitions that pretty much means no mobile software, and linux-based or {free/net}bsd-based only Jun 13 21:26:58 * BartK nods. Jun 13 21:27:01 the qemu image isn't mobile though Jun 13 21:27:22 I *think* that it should qualify, but I'm not qualified enough to know if thats true or not Jun 13 21:27:26 For the record, I don't want it to come off as if OpenGameArt.org has an issue with Android or proprietary software in general Jun 13 21:27:28 i only built the emulator image Jun 13 21:27:42 BartK: oh sure, i get that Jun 13 21:27:44 It's just that LPC is a Free-Software-only contest. :) Jun 13 21:27:55 right. their contest, their criteria; that's not to be quibbled with. Jun 13 21:30:40 ctate: the Sensors.java in the API demos can be used to demonstrate the problem. Just stop it while on the foreground with ddms, then unplug, then do 'adb shell dumpsys batteryinfo'. You will see it continue taking juice. Jun 13 21:31:28 oh that isn't wakelocks; that's sensor subscription. interesting. Jun 13 21:31:28 BartK, do you have a mailing list? Jun 13 21:31:39 that may be a sensor bug. hm. Jun 13 21:32:10 if it was just a bug in accounting, thats one thing - if they keep using battery for real - that would be serious :O Jun 13 21:32:32 yes, but its making my app look _very bad! ;) Jun 13 21:33:16 voso: but again, does the api demo show this? when you back out of the screen with the sensor stuff, all that should be unregistered Jun 13 21:33:56 g00s: yes, but consider when your app runs sensors in the BG and you get evicted by the OS due to low mem.. Jun 13 21:34:35 g00s: under normal conditions my app uses close to 0% battery. Jun 13 21:34:59 voso: ok, go to the apidemos sensors stuff, press home, and surf the web with the browser with a bunch of tabs Jun 13 21:35:04 however, sometimes my app is stopped by the OS, after which I magically start rising in the stats.. to levels such as ~20% Jun 13 21:36:01 voso: you are going to have to be more clear on 'stopped by the os'. service stopped ? process killed ? Jun 13 21:36:13 process killed. Jun 13 21:36:29 although Jun 13 21:36:40 that should only happen when the app is not in the foreground Jun 13 21:36:51 [except under vanishingly rare hyper-pathological circumstances] Jun 13 21:37:15 robb_www: for opengameart, or LPC? Jun 13 21:37:33 unless you're talking about having a live sensor listener in a service Jun 13 21:37:34 (although in either case, the answer is no -- generally we use forums and IRC) Jun 13 21:37:36 to clarify: 20% was reached in about an hour, while no other app ran.. Jun 13 21:38:03 BartK, the reason I ask is id love to see the results of LPC Jun 13 21:38:27 ah, gotcha :) Jun 13 21:38:41 Yeah, we don't have an email list set up at the moment. Jun 13 21:39:15 nevermind thanks anyway Jun 13 21:39:16 ctate: the sensor listener is created and unregistered in a short lived service (started by a BCast, stopped by itself - the lifecycle works, I am logging every step of it) Jun 13 21:39:42 voso: what device / OS rev is this? Jun 13 21:39:55 Nexus S, stock ICS Jun 13 21:40:13 but I have seen this on a HTC Desire as well Jun 13 21:40:19 (running gingerbread) Jun 13 21:40:37 robb_www: if you use rss, you can subscribe to their blog :P Jun 13 21:42:01 nushio, was feeling lazy ;) thanks though Jun 13 21:42:06 http://lpc.opengameart.org/lpc-blog.xml Jun 13 21:42:30 That's the link to their rss, if you want to add it to thunderbird or google reader or some other rss :-) Jun 13 21:42:43 oh go on then Jun 13 21:43:04 i do use google reader afterall Jun 13 21:43:25 thanks for the link Jun 13 21:43:30 no prob :-) Jun 13 21:52:10 http://phys.org/news/2012-06-no-sleep-energy-bugs-smartphone-batteries.html Jun 13 21:52:31 "The researchers studied 187 Android applications that were found to contain Android's explicit power control APIs, called "wakelocks." Of the 187 apps, 42 were found to contain errors - or bugs - in their wakelock code. " Jun 13 21:52:54 that low? Jun 13 21:53:28 42. interesting. I wonder what would happen if thbey had larger sample size. Jun 13 21:53:30 they modified the compiler to help them diagnose Jun 13 21:53:57 they also didn't say which ones; would be funny if some were the stock apps XD Jun 13 21:54:04 or ALL were lol Jun 13 21:54:25 they're probably not. It's probably garbage apps on google code. Jun 13 21:54:32 that paper is being presented nearby, pitty i dont have holiday time to go Jun 13 21:57:50 anyone use BibTeX? I could do with collecting some more sample files to weed out any parsing bugs Jun 13 21:57:50 ah, this is the same guy who wrote eprof Jun 13 21:58:26 "65 - 75% energy used to run free apps is for advertising" Jun 13 21:59:32 angry birds spent 75% of its energy showing advertising, 25% for gameplay. Jun 13 21:59:50 I find that hard to believe unless someone is taking advertising very liberally Jun 13 22:00:02 like, showing a bird on screen advertises the bird plush toys Jun 13 22:00:20 alankila: no, dowloading adds Jun 13 22:00:24 g00s: I seem to recall that that study had some serious flaws in their methodology Jun 13 22:00:37 at least the wakelock bugs do get blamed on the apps Jun 13 22:00:50 i wonder if they made eprof available Jun 13 22:01:20 I still find it very hard to believe Jun 13 22:01:32 I bet they didn't include the screen in the 'gameplay' section Jun 13 22:02:11 MDijkstra: without the ads, they wouldn't have to spin up the radio Jun 13 22:02:17 and the radio is a HUGE power consumer Jun 13 22:02:17 alankila: http://www.purdue.edu/newsroom/research/2012/120404HuSmartphone.html Jun 13 22:02:27 "A particular source of power inefficiency is a phenomenon called "tails." In principle, after an application sends information to the Internet, the "networking unit" that allows the phone to connect to the Internet should go to a lower power state within a fraction of a second. However, researchers found that after the advertising-related modules finish using the network, the networking unit continues draining power for about seven secon Jun 13 22:02:29 ctate: true, but the screen is an even bigger power consumer Jun 13 22:02:36 I don't use ad-supported apps myself, and imagine if I ever will, a well-placed block on accessing r.admob.com will be as effective as ever Jun 13 22:02:44 MDijkstra: depending on the device Jun 13 22:02:54 ctate: any device I've ever owned, at least Jun 13 22:03:04 g00s: that's old news, android has graded power saving scheme Jun 13 22:03:09 i mean yes, that's true, but the differene between letting the radio sspin down vs not is HUGE Jun 13 22:03:11 7 seconds to low power, and was it 30 second after that to off state Jun 13 22:03:19 and especially bad if they're letting them spin down and then immediately spinning them up again Jun 13 22:03:26 the worst case for android is doing something roughly once per minute Jun 13 22:03:43 given that it tends to entirely forbid power savings Jun 13 22:03:44 ctate: I'm just saying, 25% 'gameplay' vs 75% 'ads' means they probably measured the radio power usage vs the CPU/GPU Jun 13 22:03:53 ctate: which of course isn't a fair way to compare them Jun 13 22:04:16 it just reeks of something john gruber would quote ;) Jun 13 22:04:28 ha ha Jun 13 22:04:48 alankila: yeah it is old news, like march this year or something. anyhow, they tested apps on GB which is still the most popular version of android out there Jun 13 22:05:05 im confused, you arent talking about the same article linked are you? Jun 13 22:06:09 http://www.engadget.com/2012/03/20/free-apps-power-drain/ Jun 13 22:06:18 seems to confirm they're not counting the screen at all Jun 13 22:06:37 yeah, these are the same guys Jun 13 22:06:43 yeah Jun 13 22:06:51 here's an idea: just count the radio usage and then report that 100 % of application power drain is for advertising Jun 13 22:06:54 so it's really like 1-2% more power Jun 13 22:06:55 that's the way these things are done, apparently. Jun 13 22:07:02 tops Jun 13 22:07:07 evancharlton: yeah, exactly Jun 13 22:07:17 but that doesn't sell headlines Jun 13 22:07:39 well, I guess one doesn't sell headlines anyway. Jun 13 22:07:40 counting the radio power usage turns out to be problematic Jun 13 22:08:00 then again, something that displays ads shouldn't do this kind of stuff Jun 13 22:08:04 it should buffer the ads Jun 13 22:08:24 MDijkstra: it probably does Jun 13 22:08:51 perhaps, I'd have to read the purdue paper Jun 13 22:09:37 Hi, is it possible to have access to the native calendar? Jun 13 22:09:44 to add/remove ? Jun 13 22:09:44 (it's problematic because it's up to the radio code / cpu to report it accurately, and well, getting OEMs to do that ....) Jun 13 22:09:54 this is the problem with 3rd party conferences paying to be indexed by reputable publishers, peer review is sloppy compared to the equivalent conferences directly organised by the publisher Jun 13 22:10:09 jrockjiggz: what do you mean by "the native calendar"? there's a calendar provider API as of ICS Jun 13 22:10:26 but you don't necessarily know what that provider's backend is Jun 13 22:10:56 wow i take it back, EuroSys is drecitly run by the ACM SIGOPS Jun 13 22:11:00 ugh, the actionbarsherlock site needs a proper tutorial... Jun 13 22:11:11 * hackkitten throws away code and starts from scratch Jun 13 22:11:14 @ctate: ok, i'm looking to sync events from my app into the phone's calendar agenda Jun 13 22:11:36 ctate: ty. Jun 13 22:12:18 still, a lot of conference peer reviews are rushed Jun 13 22:12:50 robb_www: no. way. Hey by the way, I have a paper I need to present tomorrow on the fact that water is wet. Can you review it quickly for me? Jun 13 22:13:16 yer, err, looks good, you dont need to send me it, ill just sign my name, k? Jun 13 22:13:27 water being wet is a lie perpetrated to further the liberal agenda Jun 13 22:13:42 * MDijkstra runs Jun 13 22:13:43 MD, you obviously need to be put in a different session Jun 13 22:14:14 is it true that users who have roms that block ads report better battery life ? numbers would be good of course Jun 13 22:14:30 g00s: most likely, yeah Jun 13 22:14:40 whether it's very significant, I doubt it Jun 13 22:15:03 but a large fraction of the android userbase use 'tweaked kernels' and 'speed mods' Jun 13 22:15:05 they just supply dud IPs for the domain names Jun 13 22:15:10 so you could run eprof without the adds blocked, and then with the adds blocked - that seems like a good exercise :) Jun 13 22:15:18 and claim to notice a difference, so :) Jun 13 22:16:28 shame eprof is not available. Jun 13 22:16:59 the android power measurement dialog does essentially the same thing right? Jun 13 22:17:30 ctate does google have any links with IEEE conferences? Jun 13 22:17:36 * hackkitten flops onto g00s's lap and curses at ActionBars :( Jun 13 22:19:49 * g00s doesn't know much about actionbars Jun 13 22:19:59 trying to use ActionBarSherlock Jun 13 22:20:07 it has zero docs beyond the 'samples' Jun 13 22:20:17 hackkitten: there is a video on there i think Jun 13 22:20:17 * hackkitten doesn't believe in self-documenting code Jun 13 22:20:21 yes, to set up the basics Jun 13 22:20:35 now I have no friggin' clue how to use it with fragments and tabs, though Jun 13 22:20:49 the Android docs version apparently doesn't apply to actionbarsherlock Jun 13 22:20:52 there's a separate demo project for fragments Jun 13 22:20:54 needs its own approach Jun 13 22:21:01 https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/fragments/src/com/actionbarsherlock/sample/fragments/FragmentStackSupport.java Jun 13 22:21:03 yeah, that one Jun 13 22:21:09 but it doesn't make any bloody sense Jun 13 22:21:18 it feels like it's just a hack? Jun 13 22:21:27 the docs are at d.android.com Jun 13 22:21:29 if this is supposed to be the 'port' of the android doc code Jun 13 22:21:39 also, that's not my sample Jun 13 22:21:54 then I'm utterly confused Jun 13 22:21:57 copied from support lib and switched parent activity Jun 13 22:22:04 *udderly Jun 13 22:22:05 moo Jun 13 22:22:12 :) Jun 13 22:22:20 looking at some tutorials now... Jun 13 22:22:40 there's no easy 'how to get started with tabs and fragments' intro, though... Jun 13 22:23:01 tabs provide callbacks Jun 13 22:23:04 I tried to use the official docs for the 4.0 actionbar Jun 13 22:23:13 what you do with them is up to you Jun 13 22:23:21 but using sherlockfragments doesn't work with the fragmentmanager Jun 13 22:23:25 so... Jun 13 22:23:33 are sherlockfragments unneeded? Jun 13 22:24:01 Has anyone had problems w this: android:theme="@android:style/Theme.Dialog" ? Jun 13 22:24:26 mobilenoob11: that was a terrible question Jun 13 22:24:34 could you be more specific? Jun 13 22:24:38 sry, Im terrible at this. Jun 13 22:24:41 sherlockfragment extends fragment Jun 13 22:25:10 mobilenoob11: dont tell us tidbits of your conceived solution, say the actual problem you are trying to solve Jun 13 22:25:11 As an attribut to an activity in manifest. evancharlton Jun 13 22:26:57 any idea if i can load a custom rom into the android emulator in eclipse? Jun 13 22:27:14 i want to test drive it on my pc before putting it on my android phone Jun 13 22:27:21 Xophosaurus: you can, but that's not really a question for #android-dev Jun 13 22:27:54 JakeWharton > so which sample should I use as example for how to implement tabs with actionbarsherlock? Jun 13 22:28:04 https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/TabNavigation.java Jun 13 22:28:05 that one? Jun 13 22:28:08 yes Jun 13 22:28:18 that's what I started with... hrm.. Jun 13 22:28:30 but it's too basic Jun 13 22:28:40 doesn't tell me how to use fragments with it Jun 13 22:28:47 while trying to expand it I ran into issues Jun 13 22:28:59 so I guess I do need a more extensive tutorial/example Jun 13 22:29:40 rocked it :D Jun 13 22:30:12 hackkitten: just guessing, but in your callbacks, which get the fragmentmanager, you would add / remove a fragment to be displayed Jun 13 22:30:20 i mean, fragmentTransaction Jun 13 22:30:32 * hackkitten nods Jun 13 22:30:39 * g00s nods Jun 13 22:30:57 my issue is here: mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); Jun 13 22:31:00 but i'm just guessing :) Jun 13 22:31:08 do I use sherlockfragment and sherlockactivity? Jun 13 22:31:11 I can't use the former Jun 13 22:31:19 unless I cast it from fragment Jun 13 22:31:27 but... that's just wrong Jun 13 22:31:27 evancharlton: thanks, i'll try #android Jun 13 22:32:04 Is there a way to run "monkey exerciser" without having it press the call button, I am running it in a tablet and it throws an exception every time you "press" that button Jun 13 22:33:13 and then I get: Type mismatch: cannot convert from android.app.Fragment to android.support.v4.app.Fragment Jun 13 22:33:17 so... Jun 13 22:33:33 why aren't you using SherlockFragment Jun 13 22:33:34 obviously I can't use the fragment manager? Jun 13 22:33:39 Yay! I figured it out myself as usual. Jun 13 22:33:46 readme > because it doesn't work with the fragment manager... Jun 13 22:33:49 Thanks guys, for motivating me. Jun 13 22:34:05 hackkitten: try calling getSupportFragmentManager Jun 13 22:34:33 is undefined Jun 13 22:34:40 in SherlockActivity Jun 13 22:35:25 so the initial example is wrong... Jun 13 22:35:36 it needs to use SherlockFragmentActivity? Jun 13 22:35:37 use SherlockFragmentActivity Jun 13 22:35:51 this is exactly why a good example is needed :) Jun 13 22:36:02 make one and share it Jun 13 22:37:32 http://xrigau.wordpress.com/2012/03/22/howto-actionbarsherlock-mapfragment-listfragment/ Jun 13 22:37:39 this seems like a much better example Jun 13 22:38:23 anyway Jun 13 22:38:25 going to bed now Jun 13 22:38:31 past midnight Jun 13 22:38:34 thanks for the help, guys Jun 13 22:39:01 hell yeah! im going to io! Jun 13 22:41:46 fragments are not part of ActionBarSherlock and their concepts are nearly orthogonal Jun 13 22:41:58 learn both separately and combining should be trivial Jun 13 22:42:30 also, the library, samples, and website are all open source so feel free to improve whatever you feel is broken and send a pull request Jun 13 22:42:58 what is there to learn besides getSupportActionBar() and theming? Jun 13 22:43:58 apparently a lot Jun 13 22:44:40 orthogonal means the opposite of what you were conveying Jun 13 22:45:09 I only know because there is an entire section on orthogonality in the pragmatic programmer that i just read, though. Jun 13 22:45:21 doesn't it mean perpendicular? Jun 13 22:45:25 it does Jun 13 22:45:28 orthogonal is a concept from geometry Jun 13 22:45:41 sherlock fragment is dependent on fragment Jun 13 22:45:43 not independent Jun 13 22:45:44 in this sort of usage it means that the two concepts are essentially independent Jun 13 22:45:50 when the projection of a vector on another vector is 0 Jun 13 22:45:54 i think :) Jun 13 22:45:59 that degree of pursuit of one is not related to degree of pursuit of the other Jun 13 22:46:08 readme: that's class hierarchy, not concepts Jun 13 22:46:11 lov: i'm just charging it, it's connected to a wall outlet Jun 13 22:46:16 the concept of ABS and fragments has zero overlap Jun 13 22:46:23 when i'm sleeping and get an email, the led starts blinking Jun 13 22:46:28 but i don't want it to blink at night Jun 13 22:46:34 CQN: turn the phone face down Jun 13 22:46:36 they should be learned and understood independently Jun 13 22:47:02 then when their powers combine you can save the world Jun 13 22:47:07 hey JakeWharton I'm trying to use ActionBarSherlock but I can't get this service to work, and the ABS docs don't have anything about services. Can you help me? Jun 13 22:47:07 oh, froma perspective of your path to learning Jun 13 22:47:09 CQN: (some phones have a setting for whether to show the light on notifications, but in general this is best solved via ... physical means.) Jun 13 22:47:09 sure, I agree there Jun 13 22:47:18 ctate: i've tried that. unfortunately, the galaxy nexus's curved screen means that the light still emanates outwards Jun 13 22:47:20 you should learn fragments, then you will actually understand abs Jun 13 22:47:30 should also learn how to use the support lib Jun 13 22:47:43 evancharlton: i moved the docs, forgot to tell every person on earth. they're now here: https://developer.apple.com/devcenter/ios/index.action Jun 13 22:47:56 also, i'm interested for some other uses as well Jun 13 22:48:06 * hackkitten decided to not use actionbars but a good old view touch listener and layout manipulation approach Jun 13 22:48:08 CQN: yeah, dunno what to tell you other than maybe put something over the bottom of the phone, set it down so that one end is directly against a pad or similar obstruction, etc. Jun 13 22:48:08 for example, when my phone is connected to my car's usb cable, i want to set the phone to ring Jun 13 22:48:27 but set to vibrate at all other times Jun 13 22:48:32 it's baked in fairly low level; use CM or some such if you want more control. Jun 13 22:48:33 hackkitten: might as well chuck out the smartphone and carry around a rock and chisel while you're at it Jun 13 22:48:38 (CM == Cyanogenmod) Jun 13 22:48:48 readme > it's not worth all the trouble when the gain is exactly zero Jun 13 22:48:48 JakeWharton: WTF, does ABS4 use Obj-C now or something?! Jun 13 22:48:57 I'll just wait until ICS becomes actually a proper target :P Jun 13 22:49:08 the gain isn't zero. on ICS the actionbar is expected by every user Jun 13 22:49:17 it will get it from menu Jun 13 22:49:19 evancharlton: why do you ask that ? Jun 13 22:49:20 I do use the menu Jun 13 22:49:21 yes Jun 13 22:49:22 so that's all fine Jun 13 22:49:33 I don't have to pay attention to ActionBar Jun 13 22:49:37 it's actually written as a COBOL app that outputs Objective-C which you compile to Dalvik Jun 13 22:49:41 it's irrelevant at this point Jun 13 22:49:47 action items are nice Jun 13 22:50:03 JakeWharton: why didn't you translate to javascript instead ? it seems to be a popular compile target these days :P Jun 13 22:50:04 most of the serious android apps use action items. Jun 13 22:50:21 what's an action item? Jun 13 22:50:26 aren't all items action items? Jun 13 22:50:38 hackkitten: no, there are inaction items Jun 13 22:50:39 an icon in the actionbar that does not appear in the overflow Jun 13 22:50:50 but on the actionbar itself. Jun 13 22:50:56 so... they're active stuff you can push on Jun 13 22:50:57 yay Jun 13 22:51:08 Install pocket Jun 13 22:51:11 it has 3 action itmes Jun 13 22:51:16 two, actually, my mistake. Jun 13 22:51:24 gmail has em.. obviously Jun 13 22:51:44 gmail on Android uses buttons :o Jun 13 22:51:55 if you choose to ignore the newer features of the platform your app will always suck Jun 13 22:51:58 I have only seen the Twitter client use an actionbar on my 2.3.5 device Jun 13 22:51:59 relative to other apps Jun 13 22:52:01 gmail on Android uses action bars Jun 13 22:52:04 no it won't~ Jun 13 22:52:11 ctate > not for me, then Jun 13 22:52:14 i'm sorry but it will Jun 13 22:52:20 on sufficiently new versions of Android it does Jun 13 22:52:20 ctate: do you know what they are using for implementation ? Jun 13 22:52:21 oh wait, no BC :D Jun 13 22:52:33 ctate > marketshare of ICS is what, 3%? Jun 13 22:52:42 7% \o/ Jun 13 22:52:44 g00s: probably just whatever is in the support libs; i have no idea what it looks like on e.g. gingerbread Jun 13 22:52:59 yeah, last i looked the stats said it was up to 7% Jun 13 22:53:00 ctate: there isn't anything in the support libs for actionbar :P Jun 13 22:53:07 hehe Jun 13 22:53:14 but ofc we're just now to the point in time when oems *could* update to ics, really Jun 13 22:53:21 and/or release new product based on it Jun 13 22:53:37 anybody who releases a fall phone on gingerbread is just being lazy at this point :) Jun 13 22:53:54 yeah, there were a few announcements of GB phones coming soon Jun 13 22:53:57 g00s: so yeah, probably no actrion bar on gb for gmail. none of our stuff uses ABS, to my knowledge. Jun 13 22:53:58 sony and LG i think Jun 13 22:53:59 ctate > 2.2 is still one of the most commonly used versions Jun 13 22:54:07 viewpager can't be used vertically, can it? Jun 13 22:54:09 hackkitten: for new products?! Jun 13 22:54:32 nah, for new stuff it's usually 2.3.3 Jun 13 22:54:33 :D Jun 13 22:54:40 yeah that's what i was talkin gabout Jun 13 22:54:46 readme: i wrote a vertical one but it's from r3 :( Jun 13 22:54:49 but gyhadskjhasdhl using 2.3.3 isntead of 2.3.6 or 7 or whatever Jun 13 22:54:51 haven't updated it Jun 13 22:54:51 sob Jun 13 22:55:01 why do these people hate security? Jun 13 22:55:09 JakeWharton: i'll take it. is it on your github!? Jun 13 22:55:10 ctate > my device is stuck on 2.3.5. Won't ever see 2.3.7+ Jun 13 22:55:15 what device? Jun 13 22:55:18 readme: yeah, DirectionalViewPager Jun 13 22:55:22 Huawei Vision Jun 13 22:55:27 JakeWharton: i need to make a custom number flipper thing. numberpicker is too complex for my purpose, though Jun 13 22:55:35 oh. because Huawei has *never* shipped an update for any of their phones? Jun 13 22:55:40 I hear HTC is better with OTA updates Jun 13 22:55:43 they're notorious for it. Jun 13 22:55:46 ctate > they release a few :) Jun 13 22:55:51 EVERYONE is better with OTA updates than Huawei. Jun 13 22:55:52 Samsung is also terrible with updates, though Jun 13 22:56:02 samsung is much, much better than Huawei :) Jun 13 22:56:04 JakeWharton: thanks man, this is going to be a huge help Jun 13 22:56:11 it's just that often they aren't OTA, they're ODIN-based manual updates. Jun 13 22:56:13 silly samsung. Jun 13 22:56:25 ctate > I'm probably getting a windows phone after this Android phone anyway Jun 13 22:56:26 :) Jun 13 22:56:35 always the latest version :o Jun 13 22:56:38 ICS for SGS2, all you need to do is OTA update to 2.3.6 and then use Kies on Windows for ICS Jun 13 22:56:42 so easy!!!! Jun 13 22:56:43 it's like a dream :) Jun 13 22:56:43 ctate: is that to get around carriers or something? sounds like something anyone can do over wifi ? Jun 13 22:56:52 and no worrying about old APIs, because nobody is using an old API :D Jun 13 22:56:53 lol windows Jun 13 22:57:00 microsoft is going to die, just like RIM Jun 13 22:57:05 oh sure Jun 13 22:57:05 there are no APIs on WP Jun 13 22:57:09 I doubt that very much, readme Jun 13 22:57:10 o.o Jun 13 22:57:16 * hackkitten is a WP7 dev o/ Jun 13 22:57:21 g00s: it's how they've always done updates Jun 13 22:57:26 ok Jun 13 22:57:31 they have tons of in-store infrastructure etc for it Jun 13 22:57:32 evancharlton: well with their finger in almost every android manufacturer they might manage to keep their company on life support for a while. Jun 13 22:57:34 XAML is a joke, every app is sandboxed beyond belief Jun 13 22:57:39 the move away from the PC will kill them. Jun 13 22:57:44 can someone explain what this logcat warning means and if something should be done about it: "The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications" Jun 13 22:57:44 they suck at mobile. Jun 13 22:57:47 readme: i would *totally* not write off MS at this point Jun 13 22:57:57 readme: MS won't let WP7 die. Period. Jun 13 22:58:07 bubbleguuum: if you aren't running multiple apps as shared-process, don't worry about it Jun 13 22:58:09 they'll lose billions on it if they have to, but they won't go away. Jun 13 22:58:18 AOL isn't gone either Jun 13 22:58:19 if you *are*, then wtf are you trying to do cut it out CUT IT OUT Jun 13 22:58:39 microsofts importance will diminish every year Jun 13 22:58:47 @ctate: I am potentially running multiple Application in the same process, but I do not understand this warning Jun 13 22:59:12 the applications in a given process all share the main thread Jun 13 22:59:14 * hackkitten hugs g00s and really goes to bed now Jun 13 22:59:17 night, guys o/ Jun 13 22:59:22 but they have distinct class loaders, obviously Jun 13 22:59:29 ok Jun 13 22:59:56 i wonder where that message is printed Jun 13 23:00:07 because i don't see it in the Thread.java sources :) Jun 13 23:00:22 good night hackkitten Jun 13 23:00:24 it is printed at the very start of my app, don't know by what yet Jun 13 23:00:52 what should be done about it ? Jun 13 23:01:15 that isn't the whole message Jun 13 23:01:23 you cut out the first part, with the tag and all Jun 13 23:01:24 yup exact Jun 13 23:01:26 :) Jun 13 23:01:29 what's the tag? Jun 13 23:01:34 ActivityThread Jun 13 23:01:57 okay, and after that is somethign like ClassLoader.METHODNAME : blah blah Jun 13 23:01:58 ? Jun 13 23:02:01 "You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader());" Jun 13 23:02:25 i'm not sure how but i'm leaking contexts Jun 13 23:02:27 if the damn message gives the solution why don't it just apply it automatically ? Jun 13 23:02:36 there's no "ClassLoader.something" on the log line? Jun 13 23:02:42 bubbleguuum: because its not always correct solution. Jun 13 23:02:48 ah Jun 13 23:02:51 ==XXCoder Jun 13 23:03:28 anyway, hosting multiple apps in the same process is usually a bad idea Jun 13 23:03:31 here's the full line: 06-14 00:44:37.777: W/ActivityThread(3508): ClassLoader.loadClass: The class loader returned by Thread.getContextClassLoader() may fail for processes that host multiple applications. You should explicitly specify a context class loader. For example: Thread.setContextClassLoader(getClass().getClassLoader()); Jun 13 23:03:36 unless you have good (and well known) reasons for doing so Jun 13 23:03:46 okay, so this is happening when you call loadClass() Jun 13 23:04:49 I do not explicitely calll loadClass by I have not reviewed all the library code Jun 13 23:05:03 by = but Jun 13 23:06:00 i store a reference to the activity in my class. The instance of my class is in a fragment. When rotating the screen the context is leaked. Is the fragment kept around? I don't use setRetainInstance() Jun 13 23:07:27 use hat/mat to look into where the references are being held Jun 13 23:07:27 hhhm in fact I do call loadClass in a static initializer Jun 13 23:09:08 ctate, it shows that my class is holding the reference. But I thought that it would all be destroyed on rotation since the only instance of my class is in the fragment. Jun 13 23:09:19 so who's holding the reference to your class? Jun 13 23:09:53 in response to an orientation change, the Activity object is stopped and destroyed and dereferenced, and a new Activity instance created / started / etc with the new Configuration Jun 13 23:10:03 fragments interact with this only indirectly, right? Jun 13 23:10:22 sorry, i meant "so who is holding the reference to the fragment?" Jun 13 23:10:51 i'll try to find that out Jun 13 23:16:32 ctate: why using Thread.setContextClassLoader(getClass().getClassLoader()); can sometimes not be correct to fix that warning ? Jun 13 23:18:32 it looks like you get the warning regardless, as an FYI Jun 13 23:18:42 like i said, don't co-host apps :) Jun 13 23:19:37 this wrox book on android sensor programming actually looks pretty decent Jun 13 23:19:51 when i started android dev, man did the books ever suck Jun 13 23:20:19 but we still need a good book on creating rich user interfaces Jun 13 23:20:42 more info about custom views, viewgroups, advanced use of Canvas, etc Jun 13 23:21:47 thankfully reto's book dice a decent job of the custom compass view, but i think much more can be written Jun 13 23:21:52 *does Jun 13 23:22:51 ctate: it does make the warning go away. using SomeClass.class.getClassLoader() specifically when invoking loadClass() also make the warning go away Jun 13 23:22:56 awright Jun 13 23:24:02 there shouldn't be any problem with setting a transition for a fragmenttransaction on ActionBar.TabListener.onTab* right? Jun 13 23:24:13 Hello, I'm trying to figure out a way to modify the strings.xml of my app after it is already compiled, was thinking there may be a way to do so in aapt? anyone have any insight to any of this? Jun 13 23:24:39 Captainkrtek: permently modify? Jun 13 23:24:53 yes, simply replace a string's value with something else Jun 13 23:24:56 ctate: to clarify I have a main app and an unlocker app running in the same process. Nothing too scary I think Jun 13 23:25:09 I don't want to use apktool for this Jun 13 23:25:24 what for? there might be easier uses Jun 13 23:25:47 "unlocker"? Jun 13 23:26:02 like, if you pay then you get other stuff? Jun 13 23:26:10 yes Jun 13 23:26:19 why not just do that with in-app billing type stuff? whatever. :) Jun 13 23:26:22 well I'm working on an app that needs to verify itselfs contents by checking a hash value in strings.xml and then generating its own and comparing (I do realize this is not perfect, simply a proof of concept I'm working on) Jun 13 23:26:28 not a big deal, seems pretty legit Jun 13 23:26:32 users are familiar with unlocker apps Jun 13 23:26:42 * Jug6ernaut has found in app purchases finnicky Jun 13 23:26:51 I rotated the screen a bunch and MAT says I have 7 instances of the Activity and 4 instances of the Fragment. I really don't know how to get to the bottom of this Jun 13 23:27:15 I kind of hope it's related to blasted fragments Jun 13 23:27:33 Jug6ernaut: finicky how? also, file bugs! :) Jun 13 23:27:34 I know you can add new files to the apk using aapt, was thinking of perhaps inserting its own strings.xml Jun 13 23:27:49 jeppy: what is holding references to those leaked fragment instances? Jun 13 23:27:58 or just create app that installs only key Jun 13 23:28:00 i'd think the mem tools would let you trace that back Jun 13 23:28:13 i'm new to using them Jun 13 23:28:16 XXCoder: what do you mean? Jun 13 23:28:35 well it just adds file which your app looks at to confirm Jun 13 23:28:54 of course, it would have to be somehow unique to user so probably no different. Jun 13 23:28:59 yea Jun 13 23:29:14 the big goal is to modify the strings.xml using something like aapt and just inserting the value and moving on Jun 13 23:30:21 ctate just compatibility with different market versions, but i can not rule out user error Jun 13 23:31:30 ctate, it looks like the activity is holding the reference, which would make it circular Jun 13 23:38:43 cool http://shop.oreilly.com/product/0636920021094.do Jun 13 23:48:55 cool http://i.imgur.com/0VWH6.jpg Jun 13 23:49:45 JakeWharton(sry to ask u this) but could u point me to where/how to change the progress bar color in abs? Jun 13 23:49:57 * Jug6ernaut knows its with styles but failed when trying Jun 13 23:50:59 Hi, in my project, if I hit run (i have main.xml selected) it creates a main.out.xml file and fails. If i select my class and run, it won't build because of main.out.xml - why would it do this?? Jun 13 23:51:11 well Jun 13 23:51:16 there's a bunch of drawables and an XML Jun 13 23:51:16 http://i.imgur.com/0rg6H.png Jun 13 23:51:32 looks like its set on Widget.Sherlock.ProgressBar as the progessDrawable Jun 13 23:51:51 which is set on the action bar style progressBarStyle Jun 13 23:52:13 k Jun 13 23:52:18 i should be able to go from there Jun 13 23:52:20 thx! Jun 13 23:53:50 JakeWharton: that looks like you and SimonVT :P Jun 13 23:54:06 or you are being chased by a zombie ? Jun 13 23:54:43 jrockjiggz: because you pressed the play button in Eclipse when you had main.xml selected Jun 13 23:55:06 WTF...Andlytics is no more because app cannot authenticate anymore to the dev console Jun 13 23:55:07 JakeWharton: is there a shortcut to build project? Jun 13 23:55:18 no clue, i don't use Eclipse Jun 13 23:55:29 JakeWharton: ok thanks for responding Jun 13 23:55:38 if you select a .java file it'll work Jun 13 23:55:46 or the project name Jun 13 23:56:44 ohh cool Jun 14 00:06:01 I have a question about licensing, can I just say my software is licensed under gpl or do I have to register? Jun 14 00:07:41 http://www.gnu.org/licenses/gpl-faq.html Jun 14 00:24:39 I'm trying to ACTION_SEND a video to youtube, but I'm getting W/YouTube (15698): Ignoring non-media-content uri: file:///mnt/sdcard/MyApp/foo.avi Jun 14 00:25:15 I don't know why, it is a media file that plays fine - if I share it to youtube from a file manager for instance, it works fine Jun 14 00:25:43 and the internet is pretty bad for looking up exactly what I'm supposed to put into the intent Jun 14 00:26:05 wabz: i guess because it is not looking like this: content://media/external/images/media/2 Jun 14 00:26:09 you are sending a file uri Jun 14 00:26:20 but it wants the uri of the video in the MediaStore Jun 14 00:26:38 try quering the mediaStore to search for the file, and get the media uri Jun 14 00:26:53 ok, I can do that - but how does one figure out this stuff? Jun 14 00:27:26 I guess the W/YouTube text almost explains it ;) Jun 14 00:27:28 figure out what? that it is the wrong uri? it says it: non-media-content uri.. it is a file uri = non-media-content uri Jun 14 00:27:50 file uri != content uri ;-) Jun 14 00:27:50 yeah, it needs to be a uri through the media provider, not just some random file url Jun 14 00:28:08 if the video has only just been created, is it guaranteed to be in the media store? Jun 14 00:28:36 well, you should have told the media scanner to look for it Jun 14 00:28:45 but at that point it's asynchronous, right? hrm hum. Jun 14 00:29:19 wabz: you want to upload right after the video file is created? Jun 14 00:29:34 ctate: you get a callback though Jun 14 00:29:37 the user might want to do that, yes Jun 14 00:29:43 wabz: are you using a fileobserver? Jun 14 00:29:43 evancharlton: i figured Jun 14 00:30:21 http://developer.android.com/reference/android/media/MediaScannerConnection.html#scanFile(android.content.Context, java.lang.String[], java.lang.String[], android.media.MediaScannerConnection.OnScanCompletedListener) Jun 14 00:30:22 pboos: nope Jun 14 00:30:44 yes, has a completed callback :) Jun 14 00:30:58 how come google drive can take a file:// uri? :p Jun 14 00:31:13 wabz: that depends always on the implementation of the app :) Jun 14 00:33:12 maybe I get to change the intent based on what app has been chosen Jun 14 00:33:51 hopefully they mostly work with media uris Jun 14 00:35:31 google drive actually crashes if you leave out extra_stream by accident Jun 14 00:36:25 for some reason my device seems to lock up for a good 30 seconds whenever an app crashes Jun 14 00:37:19 that's ... odd. watch what's going on in logcat when that happens. Jun 14 00:37:24 what device / OS rev? Jun 14 00:37:51 * jasta waits for some custom hacked version of aosp... Jun 14 00:37:55 :) Jun 14 00:38:17 oh who am i kidding, the manufacturers are doing worse than the community is to ruin the code base. Jun 14 00:38:32 nah, GT-N7000, one of samsung's stock builds, XXLPY Jun 14 00:38:36 4.0.3 Jun 14 00:39:09 jasta: sad truth :( they do a lot worse than cyanogenmod or other mods. they think they make it better, but they only make it worse. Jun 14 00:42:18 it actually thinks the launcher isn't responding Jun 14 00:45:08 http://pastebin.com/upKZ4QJk Jun 14 00:46:52 ok maybe 20 seconds then :p Jun 14 00:46:59 but it's pretty frustrating Jun 14 00:47:25 jasta: jamey jasta fan? Jun 14 00:47:48 no Jun 14 00:48:18 that guy steals my handle on a lot of sites, incidentally Jun 14 00:48:20 very annoying Jun 14 00:48:23 haha Jun 14 00:48:26 (pretty sure it's not the launcher's fault, it happens with any launcher) Jun 14 00:48:45 Jamey Jasta (born James Shanahan; August 7, 1977)is an American musician from New Haven, Connecticut, best known as the lead vocalist of the metalcore band Hatebreed and sludge metal band Kingdom of Sorrow. Jun 14 00:49:00 That's what the Internets say, at least. Jun 14 00:49:56 thank you, wikipedia bot :P Jun 14 00:50:23 yeah, but that guy sucks. Jun 14 00:50:30 *gasp* Jun 14 00:50:41 do my ears deceive me? Jun 14 00:50:50 probably, since this is irc dumbass. Jun 14 00:51:07 thank you, master of the obvious Jun 14 00:51:13 i didn't have to add the dumbass part, honestly. but i did. :) Jun 14 00:53:38 ctate: pboos: thanks, the mediascanner scanFile method works well - it even gives me the uri so I don't have to query it ;) Jun 14 00:55:19 bow chika wow Jun 14 00:58:28 wabz: nice that it works Jun 14 00:59:19 ctate: kind of funny. yesterday somebody said, that the google guys in here are quiet. but seems not to be true today. :) thx for the help you are giving in here! Jun 14 00:59:49 they usually only go quite before a major release Jun 14 00:59:52 quiet Jun 14 01:00:15 no, not quiet Jun 14 01:00:18 quite when they arnt here Jun 14 01:00:58 romainguy is pretty quiet Jun 14 01:01:18 he didn't used to be Jun 14 01:01:25 i think you guys drove him away ;) Jun 14 01:01:27 i assume he's pretty busy Jun 14 01:02:19 I was on vacation Jun 14 01:02:20 uh, ok Jun 14 01:02:22 and now I'm busy :) Jun 14 01:02:40 when romainguy is on vacation, he's taking pictures Jun 14 01:02:49 +1 Jun 14 01:03:00 and now I have to sort/edit them Jun 14 01:03:06 so no IRC at night :p Jun 14 01:03:15 actually, vacation is probably an excuse to take pictures ;) Jun 14 01:03:21 lol Jun 14 01:03:27 :D Jun 14 01:03:38 I have been known to photoshop/gimp myself into photos with my wife and kids so it looks like we were all happily vacationing together Jun 14 01:03:38 in tree, with zoom lens? Jun 14 01:04:14 :o Jun 14 01:04:47 sometimes im damn good on making other statments seem dirty lol Jun 14 01:09:29 blasted internet, comcast is horrid Jun 14 01:09:35 I have a VideoView inside a RelativeLayout, both with match_parent - when I hide the actionbar, the videoview no longer fills parent - how can I make it fill? Jun 14 01:10:21 Any good webpage for how to add images to resources and to access em? Jun 14 01:11:16 images to resources? you mean res/drawable-hdpi ? Jun 14 01:11:52 XXCoder: R.drawable.yourimage (without the .png) Jun 14 01:12:04 thanks Jun 14 01:12:15 XXCoder: to set in ImageView => view.setImageResource(R.drawable.yourimage) Jun 14 01:12:26 so I just stuff png files there and access it that way? cool Jun 14 01:12:27 XXCoder: http://developer.android.com/guide/topics/resources/index.html Jun 14 01:12:57 thanks Jun 14 01:13:33 I never had to do this before, but this lwp uses pictures so I need to provide default images pre-select or it would look just black or something Jun 14 01:18:54 using ormlite how good of an idea is it to use a cache on everythign ? Jun 14 01:41:06 Hi Jun 14 01:41:38 I have android download HTML from a site and insert that string in a webview. it used to work fine but after upgrading to Amazon, android just inserts the HTML source starting with: data:text/html;utf-8. any idea why? Jun 14 01:42:01 i'm trying to learn eclipse + android sdk.. the tutorials on developper.android.com are good, but not really helping.. does anyone have some favorite tutorials? Jun 14 01:45:42 jrockjiggz: buy yourself a good book :) there are many good ones Jun 14 01:47:11 http://www.vogella.com/training/overview.html Jun 14 01:47:25 http://commonsware.com/ Jun 14 01:47:35 what does "after upgrading to Amazon" mean? Jun 14 01:47:54 readme: thanks! Jun 14 01:48:30 ctate: it means we've changed host but it probably has to do with the fact we're using some inline javascript Jun 14 01:48:40 ctate: it seems like old android devices can't handle it Jun 14 01:48:44 works with the new samsung galaxy tab Jun 14 01:49:46 i would think that javascript would be irrelevant to an HTTP request Jun 14 01:51:05 [nb: i stopped working on browser implementation in 2008] Jun 14 01:54:29 XMLHttpRequest Jun 14 01:55:27 so you're trying to do this from within a webview, or something? Jun 14 01:55:46 I first download the HTML from a website and take that string and throw it in a webview Jun 14 01:56:02 it leads to a webview that just shows the source instead of the actual page Jun 14 01:56:13 and I think it's because of some characters in the HTML Jun 14 01:56:26 is the raw response (before you put it into the webview) correct? Jun 14 01:56:27 although, newer android versions work fine Jun 14 01:56:31 yeah Jun 14 01:56:40 it just can Jun 14 01:56:47 it just can't handle it, it seems* Jun 14 01:56:57 it just can't handle it, it seems* Jun 14 01:57:00 webview allows you to specify the mime-type explicitly Jun 14 01:57:15 readme: I don't have the option of changing the android code Jun 14 01:57:15 oh hmm, maybe some character content in the data that violates the declared content-encoding? dunno. Jun 14 01:57:21 I have to make the HTML work Jun 14 01:58:16 hey guys, could anyone tell me the difference between MediaRecorder class and AudioRecord? Jun 14 01:58:26 try adding Jun 14 01:58:51 My intent is only to process the audio in real-time, with no intention to save/write. Jun 14 02:19:57 hey guys, does anyone here do android deving inside a VM? Jun 14 02:30:16 is there a widget for sort a "virtual" tab where it's not actually a seperate view, but the same view with different information Jun 14 02:31:51 GeeksOnHugs: just use normal TabWidget, listen to the onTabChanged event and change your view according to which tab is selected Jun 14 02:33:23 GeeksOnHugs: still you will use a TabHost, but with no content. Jun 14 02:33:53 hello Jun 14 02:38:08 is there a good SDK or way to implement a Facebook share option for my app? Jun 14 02:39:26 pboos thank you :) Jun 14 02:47:19 so a combo is a spinner? What property makes it a list only, so you cannot type (or maybe typing helps you search)? **** ENDING LOGGING AT Thu Jun 14 02:59:58 2012