**** BEGIN LOGGING AT Mon Jul 22 02:59:58 2013 Jul 22 02:59:59 StingRay_: I'm having issues with canvases in WebViews, and I'm not the only one... So I guess the issue is isolated to the browser... Jul 22 03:00:16 StingRay_: (I'm not the only one who had the issue in the embedded browser) Jul 22 03:00:28 yeah, not sure about web stuff Jul 22 03:01:05 I can barely help people with android stuff Jul 22 03:01:22 web stuff I dont like :) Jul 22 03:02:51 is there not a #html5 chan ? Jul 22 03:22:28 anyone here license perst for android? wondering what the dual license -> commercial version costs Jul 22 03:23:06 hate it when companies are not upfront with their licensing costs Jul 22 03:26:25 "Limit level of recursion in memory allocator which can cause stack overflow in case of high memory fragmentation" Jul 22 03:26:35 hm, so i'm not the only one who has seen this Jul 22 03:26:46 seems rare Jul 22 03:27:01 aaaand, the todo's are just frikken commends Jul 22 03:27:03 comments Jul 22 03:27:05 hahaha Jul 22 03:27:22 discovered it toally accidentally, when i figured screw it, ill just make comment notes to search manually Jul 22 03:27:27 suite Jul 22 03:29:57 In this example (http://stackoverflow.com/questions/3291490/common-class-for-asynctask-in-android#answer-3291713), why is he passing the context from activity into the actionListerener object. (despite he is not using it ?) Jul 22 03:33:30 I am surprised by the fact how a simple design pattern can solved the question that came 100s of times. :| Jul 22 03:36:48 pranav: looks like cause of the question Jul 22 03:37:02 the question uses a progress dialog, created inside that class Jul 22 03:37:09 that needs to hang on context Jul 22 03:37:43 StingRay_: Yup! Thanks :) Jul 22 03:43:23 anyone speaks Danish here? I need help understanding a review on my game Jul 22 03:44:56 good or bad review ? Jul 22 03:45:04 I dont understand danish btw Jul 22 03:45:25 good (4/5) but there was a complaint in there Jul 22 03:45:54 that I couldnt understand (google translate crap) Jul 22 03:46:17 what game is it ? Jul 22 03:47:10 https://play.google.com/store/apps/details?id=co.rottz.realkakuro Jul 22 03:47:20 StingRay_: Recover from the storm.. It involves resetting equipment and cussing.. LOL.. Jul 22 03:47:26 but I think it wont show non-english reviews to you Jul 22 03:48:19 ah true Jul 22 03:48:22 I have the results from query. I need to show using interactive UI elements. (which can make new queries). what are some such GUI elements in android ? Jul 22 03:48:34 can't find any here: http://www.droiddraw.org/widgetguide.html Jul 22 03:49:25 "interactive UI elements" does not narrow it down Jul 22 03:49:33 cause you can make any view "interactive" Jul 22 03:49:35 :) Jul 22 03:50:19 not knowing much of the context, but to show the results of a query I would probably use a ListView Jul 22 03:51:04 There's a #denmark on DALnet Jul 22 03:51:25 As well as a #danmark Jul 22 04:01:40 was there supposed to be an android announcement this coming week ? Jul 22 04:03:40 hi everyone Jul 22 04:03:58 how to change the home layout of actionbarSherlock Jul 22 04:04:11 what do you mean "home layout" Jul 22 04:04:30 the left part of actionbar Jul 22 04:04:43 what do you want to change? Jul 22 04:04:51 home icon and back"btn" Jul 22 04:05:01 i want to remove the bak "btn" Jul 22 04:05:11 just show application inco Jul 22 04:05:13 icon Jul 22 04:06:02 can you give me some advices Jul 22 04:07:51 !-- Jul 22 04:08:53 getSupportActionBar().showHomeAsUp(false); Jul 22 04:09:17 yeah Jul 22 04:09:46 getSupportActionBar().setDisplayShowHomeEnabled(false); ? Jul 22 04:10:00 but the home icon dont fill the rest part the back left Jul 22 04:10:18 how to make the home icon fillparent Jul 22 04:14:08 thank you all time for eating Jul 22 04:15:14 if set getSupportActionBar().setDisplayShowHomeEnabled(false) then the icon will disappeared too; Jul 22 04:20:07 just don't showHomeAsUp Jul 22 04:20:30 and as for what it fills up, accept the behavior because it is what it is Jul 22 04:33:10 Hi all... got an odd one. I have an app that forces landscape mode via the manifest. The main activity has both a regular and a landscape layout (I intend to eventually support portrait as well, but for the moment that layout is just a dummy one). The main activity window also sets FLAG_SHOW_WHEN_LOCKED among other things. Here's the odd part. In certain circumstances (so far I can only reproduce by starting it via Eclipse _w Jul 22 04:34:38 I suspect it's because the lock screen is in portrait, but I'm not sure. I'm also not positive if this will be a real-world problem (it's a car dock app, and I can't reproduce the problem when it properly starts up by plugging into the dock I have) Jul 22 04:34:51 Any ideas? Jul 22 04:35:24 whats the reason for just landscape ? Jul 22 04:42:04 Well, that's what I prefer my car dock as, and first version is for me. As I said eventually I'll support both, but it'll still be a problem if it's using the portrait layout Jul 22 04:42:25 The weird thing is that it's _IN_ landscape... just using the portrait layout xml Jul 22 04:42:40 So I'm wondering if there's any way to force a configuration change or something? Jul 22 04:42:49 can't you just check aspect ratio? Jul 22 04:43:23 I can, but that doesn't really tell me I'm using the wrong xml file -- it reports (properly) that the phone is in landscape Jul 22 04:43:37 oh i mean check aspect and load appropiatly Jul 22 04:44:44 I am unaware of a way to force it to use a particular xml file programatically -- I have activity_home.xml in layout/ and layout-land/ -- I do not know if I can force android to use one or the other, it should be automatically be using the correct one Jul 22 04:44:52 (which it does, except in this one freakin case) Jul 22 04:46:06 In fact, I'm unaware of how to tell which xml file it's actually using, short of a hack like putting in a hidden tag or something and seeing if findViewById returns null or not Jul 22 04:46:55 Wow...Apple finally said why their developer console has been having so many problems for the last few days...it was "owned" by hackers Jul 22 04:47:40 http://techcrunch.com/2013/07/21/apple-confirms-that-the-dev-center-has-potentially-been-breached-by-hackers/ Jul 22 04:48:07 i hear their web stuff is a pile of crap Jul 22 04:48:55 better than samsung's Jul 22 04:49:11 jimduchek: worse comes to worse you can let the user manually change the orientation, so try to detect, put and if the user for whatever wants it the other way they can change it Jul 22 04:49:31 Although now the guy who did it is saying he is a white/grey hat security guy, not a hacker http://www.youtube.com/watch?v=q000_EOWy80 Jul 22 04:53:14 Ologn as schneier said, "If you've started to think of yourself as a hapless peasant in a Game of Thrones power struggle, you're more right than you may realize. These are not traditional companies, and we are not traditional customers. These are feudal lords, and we are their vassals, peasants, and serfs." Jul 22 04:55:57 Yeah, I suspect it's not even going to be a real world problem. Anyway... bedtime. Thanks. Jul 22 04:56:31 Does that mean they'll start taking away our smart phones and tablets? Doesn't seem like a fuedal society with too much technological diffusion is a stable society ;p Jul 22 04:56:42 Sounds about right Jul 22 05:00:14 lasserix the gadgets are to surveil you of course you get to keep them Jul 22 05:00:36 no difference between surveillance and targeted advertising :) Jul 22 05:05:04 So I got a brand new off the line hackable motorola device with built in arduino forhardware hackability Jul 22 05:05:06 so legit Jul 22 05:08:49 how can I get an app to "notify the user that tomorrow is pay day" for example just like a calendar app does... maybe I should even get the app to add data to the calendar app??? but basically my app is "asleep" and it needs to tell the user that "tomrrows payday"... if that makes sense. Jul 22 05:09:45 Hi guys, sorry for the question, and my poor explanation of it, but I'm having an issue with starting two activities, one after the other. In my main activity, I'm calling A_Activity first, and I expect user input (either through a confirm button, or a back press) before returning the result to the main activity. However, it looks like A_Activity is being created, and then immediately after, B_Activity is being created as well. My i Jul 22 05:17:51 Brian|CS is the arduino there was a watchdog and reboot the phone when it hangs ? Jul 22 05:17:56 ahhughes: you've looked at AlarmManager? Jul 22 05:17:59 lol Jul 22 05:18:00 no Jul 22 05:18:05 I got a fully unlocked dev unit Jul 22 05:18:09 with built in arduino Jul 22 05:18:13 to do cool shit with Jul 22 05:18:14 :D Jul 22 05:19:02 Brian|CS: Cool toy man. :) Jul 22 05:20:06 i'd like an accessible DSP for signal processing Jul 22 05:20:15 shipit: no.. thats why Im here :) thanks Jul 22 05:21:05 iOS has some DSP apis but i'm not sure whats going on under the hood there Jul 22 05:21:26 Yeah Jul 22 05:21:30 i can do all sorts of DSP stuff Jul 22 05:21:33 with this device Jul 22 05:21:42 ahhughes: glad I could help :) -- basically AlarmManager.setRepeating(), fill out PendingIntent w/ necessary data, it will wake up your app and deliver the intent to it and then you can do the dew. Jul 22 05:21:45 It's basically a Motorola Razr Maxx HD with a Arduino Due onboard Jul 22 05:21:47 Brian|CS what DSP does it have ? Jul 22 05:22:58 Brian|CS: Dibs when you get bored with it.. LOL :D Jul 22 05:24:47 Lol Jul 22 05:24:52 I'm not allowed to give/sell/whatever it Jul 22 05:24:53 :P Jul 22 05:24:56 They made me sign forms Jul 22 05:25:01 It's not FCC certified Jul 22 05:25:37 g00s_: Anything you can do with a due. We rigged it up with a bunch of different sensors and wre doing like vital sign checking for pulse, temperatre etc. Jul 22 05:25:47 plus hacking it to work with some electronic home tests Jul 22 05:26:00 Brian|CS: Ooh.. Even better.. It might REJECT unwanted interference in the RF bands.. :) Jul 22 05:26:26 Brian|CS "do with a due" ? Jul 22 05:26:51 http://arduino.cc/en/Main/arduinoBoardDue Jul 22 05:26:56 ah, ok Jul 22 05:28:24 Hi, im having some issues getting a updater-script to work correctly, it aborts when trying to format the drive. I've found guides but they don't all explain the context of what belongs and I just need someone to explain some command functions and usage, most guides just show this is how it looks, but dont explain the usage. tmo huawei mytouch q u8730, almost no development for it, my Jul 22 05:28:24 friend(more of a dev than me) and me are trying to create a flashable zip to restore stock rom. We have necessary files but the updater-script is getting us issues in cwm. thanks in advance for anyone who is willing to help Jul 22 05:31:02 Paulenski: this channel is for app development, not roms, bootloaders, etc. Jul 22 05:31:41 aw darn, no one replied in and-root Jul 22 05:31:55 worth a try Jul 22 05:32:12 yey, android https://code.google.com/p/android/issues/detail?id=4993 Jul 22 05:32:27 "when scrolling *up* a cursor window there's a logic error " ... Jul 22 05:32:51 '…Because of the high likelihood that this issue is obsolete, it is getting closed automatically by a script,…" Jul 22 05:32:57 haha, lol Jul 22 05:42:11 g00s_: I like the 'If this issue still exists and is not related to Google applications...' .. LMAO.. Jul 22 05:43:28 guys, how do I mask a bitmap drawable to a shape drawable? Jul 22 05:43:40 I mean, *with* a shape drawable? Jul 22 05:43:57 * shipit is reading PorterDuff Jul 22 05:48:22 * Bleeptech is reading through code snippets by the dozen looking for the underlying patterns.. Jul 22 05:59:35 On google play, when I go to inapp purchases screen in developer center, it says my app doesnt have the permission. How can I add purchases if I need to have the permissions on my binary first? Jul 22 05:59:37 I'm confused Jul 22 06:01:19 I coded the inapp purchases, and obviously when I click buy I get google popup saying it cant find that item, because I havent created it yet Jul 22 06:17:37 let's see if the eclipse update screws up like AS ... Jul 22 06:22:54 things are still working , phew Jul 22 06:29:00 so I'm masking a bitmap with another bitmap, its the right shape but the background is all black -- any ideas what am I missing? Jul 22 07:23:23 any ideas why getting android_id might return string "unknown" Jul 22 07:35:08 I downloaded perl_r9.zip unpacked it and there are a binary "perl" and directory "5.10.0" but when I trying to run "./perl" it says "sh: ./perl: Permission denied" what is wrong ? Jul 22 07:35:37 hi, can i mask a png? i have a semi-circular png, it's a png to show battery percentage? how can show 1%, 2% etc? Jul 22 07:39:10 seems like I can't execute from sdcard Jul 22 07:39:57 elkng: sdcard is mounted noexec Jul 22 07:41:40 p_l: yep, captain obvious strikes again Jul 22 07:43:30 :P Jul 22 07:44:02 I wonder how multi-user deals with it Jul 22 07:47:02 http://www.youtube.com/watch?v=brSl4TCGRMY and I can't not to post that link, they are so adorable Jul 22 07:48:29 hello to all :) Jul 22 07:49:57 any one have xperia miro, need an app to test. Jul 22 07:52:08 JesusFreke: also is it possible to execute binary from nonexec partition without remounting it, like symlink that binary to another partition that allows execution ? I did "ln -s /mnt/sdcard/perl /data/temp/perl" and then in "/data/temp/" I did "./perl" but it says: "sh: ./perl_: Permission denied" Jul 22 07:52:27 JesusFreke: not for you Jul 22 07:52:34 in that channel question goes for everyone Jul 22 07:53:00 elkng: just follow the instructions and install it properly. Jul 22 07:53:14 elkng: no, permissions are checked against the "real" file, not symlink Jul 22 07:53:44 tm604: to install it properly seem like you need it to download entire perl package over internet and I don't want to spend "edge" traffic from phone Jul 22 07:54:35 The zip file you have at the moment will not work without the rest of the scripting environment. Jul 22 07:54:48 tm604: so downloaded package unzipped it and trying to use "./perl" command, like in regular linux, what is wrong with that ? don't be installation-nazi Jul 22 07:56:18 tm604: it will work Jul 22 07:56:40 tm604: I moved "perl" directory to executable partition and used "./perl -e 'print "1\n"'" command and it printed "1" so it worked Jul 22 08:47:58 I just install an entire ARM linux distribution on my 64gb external sdcard, with apt configured to download ARM binaries. I just `apt-get install perl` and it works. I can also install anything else built for ARM. Jul 22 08:48:08 What? What? In your face. Jul 22 08:48:42 (chrooted ARMv7 linux on my android for great success) Jul 22 08:49:38 Can even use XWin with a VNC server/client, but who needs that. Jul 22 08:51:48 is there some api to access app statistics of the developer console? Jul 22 08:55:11 Mhm.. My app is working on almost all devices but it overwrites the (soft)home button key of the nexus4. Is this a common bug? Jul 22 08:58:35 pragma-: is that on a S3 ? Jul 22 08:59:18 yes Jul 22 08:59:24 nice Jul 22 08:59:34 Hey, i have a PreferenceActivity, i'd like to add another option, that displays text just like a list prefernce and responds to a click... do i need a custom preference for that? Jul 22 09:21:02 Hey all. Jul 22 09:21:38 o/ Jul 22 09:21:39 What could *possibly* be the reason for a device not to show in «adb devices». I can see the device connected, I can see its interface is 255:66. Jul 22 09:22:09 If it's not showing at all, then it could be that a driver is missing, or that USB debugging is disabled. Jul 22 09:22:35 Some devices will show as offline until USB Debugging is allowed for the device it's connected to (such as the Nexus 7 on 4.2.2). Jul 22 09:22:46 could be permissions on the PC... Jul 22 09:23:00 can anyone please tell me how can I ship a binary with my application? Jul 22 09:23:13 I assume it's a secret magic device, which is why we haven't been told what it is Jul 22 09:24:57 Leeds: Not at all: http://www.minix.com.hk/Products/MINIX-NEOG4.html Jul 22 09:25:59 Lachezar: good start... now Seidr's points? Jul 22 09:27:06 Leeds: I contacted the Support Team they told me to turn ON "USB/Connect to PC" and "USB Debugging". Both are on. The notification says 'USB Debugging connected", but "adb devices" does not list it. Jul 22 09:27:37 The device does not have Network Debugging :( Jul 22 09:27:37 I'm impressed they have a support team Jul 22 09:27:49 Leeds: I got more than I would've expected. Jul 22 09:28:11 yup, more than I'd expect from some random guys on the 15th floor of an office building in Kowloon Bay Jul 22 09:28:20 Lachezar, they provided no drivers for the device I guess? Jul 22 09:28:29 selling rebranded generic Chinese stuff... Jul 22 09:28:40 Lachezar: ok, you're not on Windows presumably? Jul 22 09:29:59 Leeds: No, using Xubuntu. Tried running a Windows XP VM (with forwarded USB device), but it doesn't show there too. Jul 22 09:30:11 much easier if you're not on windows... Jul 22 09:30:28 Leeds: I'm waiting for my Windose colleague to install the ADK and stuff. Jul 22 09:30:30 just to check, have you tried running adb devices as root? run "adb kill-server" first to kill... the server Jul 22 09:31:04 Leeds: I've added rules to the UDEV that give me access to the device. Jul 22 09:31:16 good, but that's not what I asked Jul 22 09:31:20 Leeds: But I'll run it as root. Sec. Jul 22 09:31:57 Leeds: adbd cannot run as root in production builds Jul 22 09:32:04 what? Jul 22 09:32:12 I meant on your PC, of course Jul 22 09:32:21 Leeds: «adb root» gives me that. Jul 22 09:32:29 On my PC of course. Jul 22 09:32:35 run... adb... as... root Jul 22 09:32:41 not... run... "adb root" Jul 22 09:32:45 sudo adb devices Jul 22 09:32:53 Bap... Sec. Jul 22 09:33:04 Hi guys Jul 22 09:33:14 I know it is not exactly for this channel, but I am having a slight issue... Jul 22 09:33:32 Leeds: No devices show too... Colleague got his laptop here... Trying with Windose. Jul 22 09:33:51 only other advice I can give is to try different USB cable/port Jul 22 09:34:03 but otherwise I'd mainly put it down to crappy Chinese crap being crappy, which is mostly is Jul 22 09:34:14 received a device for development, it is a chinese TV stick/HDMI Dongle, using RK3066 SoC, etc., all working fine, except one thing Jul 22 09:34:31 ADB sees the device, but it is offline Jul 22 09:34:40 and no prompt to allow the RSA key appears no matter what I try Jul 22 09:34:49 latest SDK, latest platform-tools, everything is up to date Jul 22 09:35:45 fonix232: Damn... NEO? Jul 22 09:35:52 no Jul 22 09:35:55 lol Jul 22 09:36:10 Awh, that would of been a lovely coincidence.. Jul 22 09:36:13 it is a semi-copy of the Rikomagic MK802III Jul 22 09:36:23 fonix232: I'm /dugging/ similar problem with another device (NEO G4) Jul 22 09:36:59 developer is Artway Tech (they are crap, seriously, told them to add CONFIG_TUN to the kernel, released two updates to the firmware, one with faulty wifi, and one without a system option for mouse right click I told them to add...) Jul 22 09:37:16 Lachezar, I see your problem, but see, my device shows up Jul 22 09:37:19 it is just... offline Jul 22 09:37:31 I have two sticks that do not appear at all on ADB though Jul 22 09:37:42 not even device manager, USB connection like if it never existed Jul 22 09:38:43 though there are two major difference points between the two sticks and the one that kinda-works Jul 22 09:39:27 Leeds: It does not show in 'adb devices' in Wondose to. Jul 22 09:39:31 s/to/too/ Jul 22 09:39:40 glad to hear it Jul 22 09:39:41 Lachezar, check the device manager Jul 22 09:40:19 okay, Lachezar, I know your problem Jul 22 09:40:25 yours is an MK802III too Jul 22 09:40:34 fonix232: Seems so! Jul 22 09:40:47 Kindred..devices.. Jul 22 09:40:48 so Jul 22 09:40:58 go on FreakTab, grab a custom firmware Jul 22 09:41:36 put your device in bootloader mode (pull power, push button behind little hole on side of the device, then plug it in), use RKBatchTool or the tool included in the package to flash it Jul 22 09:41:42 I can suggest Finless' releases Jul 22 09:42:30 sounds like a lot of work :P Jul 22 09:42:49 well, a lot of work is what you get with chinese crap :D Jul 22 09:43:04 its cheap, but software-wise, meh Jul 22 09:44:16 fonix232: I actually might try that. We have a pair of these devices and one has already ondergone a brick-and-release process. Jul 22 09:44:32 iterative bricking? Jul 22 09:45:01 defnordic: Pretty much :) Once 'Warranty Void', always 'Warranty Void' :) Jul 22 09:45:20 Lachezar, in China there's no such thing as warranty :D Jul 22 09:45:55 fonix232: Our supplier provides warranty. At the cost of a bit more price wise. Jul 22 09:46:09 who's your supplier? Chinese? Jul 22 09:46:23 fonix232: Nope. A local company (Bulgaria). Jul 22 09:46:23 if latter, well, warranty is basically send it back, get a new one (no matter what's the problem) Jul 22 09:46:26 hmm Jul 22 09:46:34 they'll probably do the same though :D Jul 22 09:46:46 fonix232: That's how they implement warranty: change device at sign of trouble :) Jul 22 09:47:06 fortunately our company have direct contact with manufacturer and developer, so it is not a huge problem for us Jul 22 09:47:54 though I really question their developers Jul 22 09:48:06 dmesg says: 'config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64' Jul 22 09:48:08 as we just got a prototype quad-core stick, and it works *perfectly* Jul 22 09:48:24 hmm weird Jul 22 09:48:48 I suspect this is the reason the device does not show in adb. Jul 22 09:49:03 most probably yes Jul 22 09:49:20 I think the main problem is the kernel Jul 22 09:49:34 do you know which WiFi module you have in your device? Jul 22 09:49:48 fonix232: Nope... How do I see that? Jul 22 09:50:24 well, either open it up and check for a Realtek/Broadcom chip (or one saying RK90x where x is a number between 0 and 5) Jul 22 09:50:32 or get in via wireless ADB and check dmesg :D Jul 22 09:53:24 fonix232: No Wireless ADB :( Jul 22 09:53:30 uhm Jul 22 09:53:33 what do you mean? Jul 22 09:53:53 enable network debugging while connected to wireless AP, ???, PROFIT? Jul 22 09:54:12 there is no network debugging option :) Jul 22 09:54:14 fonix232: There is no 'Debug via Network' option at all. Jul 22 09:54:25 in theory, it is enabled by default Jul 22 09:54:35 fonix232: really? Checking. Jul 22 09:54:42 but if you cannot connect (like me), use Wireless ADB (no root) from play store Jul 22 09:55:02 sherdle.com/adb Jul 22 09:55:26 fonix232: Ahha! Profit :) Jul 22 09:57:51 Bah. This device is ... Quirky at best... Enabling USB drops the WiFi connectivity :-/ Jul 22 10:02:55 Is it a good idea to use a service component to access a web api and return JSON objects to my app? Jul 22 10:03:44 That's a very broad question..if your app requires remote data, then it's a must. Does the data change, can it be bundled with the app? Jul 22 10:04:33 Ah, perhaps I misunderstood the question. You mean, a Service which retrieves the data, instead of a service (as in the web API)? Jul 22 10:04:39 Seidr, I want to build a very basic CRUD app in android (for learning purposes) that uses a Restful api to create, edit, delete some objects Jul 22 10:04:56 Seidr, I meant both Jul 22 10:05:06 an android service that communicates with a web api (REST) Jul 22 10:05:39 Aha, ok. Well, whether it's a good idea or not comes down to the use case..if that's what your app needs to do, then yes it's a good idea, so long as it can gracefully fail. Jul 22 10:05:51 Either way, it'd be a good learning experience. Jul 22 10:06:22 Seidr, but is there a better way to approach it, maybe with headless fragments? I read that fragments can be used for background tasks Jul 22 10:07:37 or I could simply access the api on button click handlers using AsyncTask Jul 22 10:07:56 I can't say I've had any experience with headless fragments I'm afraid. If I were to do it, I'd use an async request to get the information, and perform an action when the data is received. Jul 22 10:09:37 where can I download and execute a binary? I tried to cd into /data/local and I got permission denied Jul 22 10:12:10 xlinkz0, you'd have to download it onto the sdcard, I think. Jul 22 10:24:16 hi there, having troubles downloading the ndk. seems, my isp is capping after 10mb. what can i do ? is there a torrent, maybe ? Jul 22 10:26:54 Seidr, ok, but I don't have write and execution rights on the sdcard, so I need to copy it in a place where I have write permission so I can set the execute persmission on the executable. Is this possible? Jul 22 10:31:29 xlinkz0, take a look at this StackOverflow post. It might be able to help you: http://stackoverflow.com/questions/4703131/is-it-possible-to-run-a-native-arm-binary-on-a-non-rooted-android-phone Jul 22 10:32:00 xlinkz0: You can read/write and possibly execute in your application's directory. To read/write the SD card you need the appropriate permission. Devices will/might mount the SD card witn noexec, so you can't execute there. Jul 22 10:56:08 Lachezar: pretty sure default code in AOSP is to mount "external storage" noexec/nodev/nosuid Jul 22 10:56:47 p_l: I simply wasn't sure it's 100% like that. Jul 22 10:57:32 * Lachezar wonders who decides to pack ADB on a device, but not ADBD... Jul 22 11:18:33 <[A3G1S]> /j #pushio Jul 22 11:18:58 wat? Jul 22 11:19:17 <[A3G1S]> sorry wrong channel Jul 22 11:28:18 hi there, I'm trying to compile some binaries for android and I've got this error: arm-angstrom-linux-gnueabi-gcc: command not found Jul 22 11:28:28 how could I fix it? Jul 22 11:29:39 Instead the toolchain/compiler that uses that. Jul 22 11:29:46 Ojoloco: Ca you describe your development setup and step-by-step problem? Jul 22 11:30:54 I have sdk and gcc-4.7 installed Jul 22 11:31:11 I have download the source code of tcdpump and libcap Jul 22 11:31:28 and I'm trying to do... CC=arm-angstrom-linux-gnueabi-gcc ac_cv_linux_vers=2 ./configure --host=arm-linux --with-pcap=linux Jul 22 11:32:22 Ojoloco: set CC to the full path Jul 22 11:32:29 for example Jul 22 11:32:55 CC=/home/whatever/gcc/arm-angstrom-linux-gnueabi/bin/arm-angstrom-linux-gnueabi- Jul 22 11:33:22 have any of you ever noticed DRAG_ENTERED not firing in listviews when view get recycled despite the drag listener being set and onDrag returning true Jul 22 11:40:04 hi. i have a simple calendar app, month view which displays some additional info for each day, say day is OK, or day is not OK. i retrieve this info from server and just put one image or another in the grid to show ok/not ok. what i want now are, notifications ... i want to notify user if >today< is ok. if it's not ok, show nothing. how could i do that? do i need push notifications or would using Service suffice ? Jul 22 11:41:13 i guess push notifications are more reliable, since if service is stopped it won't notify user until the app/service is restarted, am i right? Jul 22 11:49:21 hello. I have NPE but I cannot find what is worng with my code:https://gist.github.com/kyberorg/6053252 Jul 22 11:49:58 hi all i'm new in android programming and i creating an app that turn on and off bluetooth through a buttom and display the bluetooth state in a textview , but i've a problem i don't know how switch off the bluetooth and how to show a different text in textview when bluetooth change i setup a check of bluetooth state when the button is pressed but the problem is that if i run the app while bluetooth is already on the Jul 22 11:49:59 textview show me OFF Jul 22 11:50:17 so can anyone help me with any suggest or link ? Jul 22 11:51:04 fonix232: just a stupid question, lets say I have it installed, how could I find it's full path? Jul 22 11:51:34 Ojoloco: how did you install it? Jul 22 11:51:40 what system, etc. Jul 22 11:59:31 are there any country restrictions when signing up for Google Cloud Messaging? Jul 22 12:00:50 or is it a free service? Jul 22 12:01:18 no Courtesy limit, i guess it's free eh? Jul 22 12:07:58 can I combine xml approach and "settings as code" approaches together when creating settings Activity? Jul 22 12:13:32 hello Jul 22 12:14:44 hi is there anyway to allow android compatible api overlap maps on Android 2.3? Jul 22 12:16:24 Is there any way to contact the play store developper ? I had fews devices detected as not autofocus but the specs of the phones tell me the contrary ... Constructor lies or Play store issue ? Jul 22 12:17:39 erufu, there should be an 'Email Developer' link on the Google Play page for the Application. Jul 22 12:17:46 ..under 'Additional Information' Jul 22 12:18:03 Whether that link is available on the Android Play Store app, I don't know, but it's definately there on the web site. Jul 22 12:18:32 erufu, I'd check if the devices have the proper files for definind autofocus Jul 22 12:18:38 *defining Jul 22 12:19:20 in /system/etc/permissions, check for android.hardware.camera.autofocus.xml Jul 22 12:19:35 or any android.hardware.camera.*.xml where * is a string containing autofocus Jul 22 12:19:36 Sadly I don't have the phones in the hand ... Jul 22 12:19:43 tinti, you could probably use the Support Library provided by Google. I'm pretty sure there's a Support version of the MapFragment that will allow you to create overlays (SupportMapFragment). Jul 22 12:19:45 well that's a problem Jul 22 12:20:02 I will try to find them Jul 22 12:20:30 The Support Library exposes newer APIs to lower version Android devices. Jul 22 12:21:07 The applications use these descriptors to check if a device has the required feature Jul 22 12:21:24 Seidr: our developer is having a problem with it. Because it seems that 2.3 will not allow you to overlay any map area because of opengl I think Jul 22 12:21:29 not sure Jul 22 12:22:07 ..and they're using the Support Library? Jul 22 12:24:33 can u still not use sub directories in res/layout ? Jul 22 12:24:33 After further searching, it looks like Maps API v2 cannot be used on devices that do not support OpenGLES 2.0. Are you that concerned with the relatively small percentage of older phones, and if so are you sure your Application will perform adequately enough to be used on those older phones? I know that's a hard question to answer without actually trying the app.. Jul 22 12:25:13 (Google statistics put the percentage of devices that only support OpenGLES 1.0 at 0.2%) Jul 22 12:25:25 that is such a major flaw Jul 22 12:26:49 Seidr: iirc GLES1.0-only was... G1. And I don't think anything more Jul 22 12:26:54 Seidr, I got a phone which does not support OGLES higher than 1 Jul 22 12:27:00 narekb: ... wat Jul 22 12:27:05 and I guarantee it is not worth it Jul 22 12:27:16 this phone is so weak I doubt it will hold ANY app Jul 22 12:27:20 also, there's difference between 1.0 and 1.1 Jul 22 12:27:21 any 3rd party app hangs on it Jul 22 12:27:29 p_l, hmm, didn't think of that Jul 22 12:27:40 Aha, there you go tinti..I'd say reassess whether you need to spend the time to target those older devices. Jul 22 12:27:52 no Jul 22 12:27:53 1.1 was on quite a lot of devices, 1.0 is essentially the lowest possible support available, because a software renderer is included in AOSP Jul 22 12:27:54 not worth it Jul 22 12:28:10 Seidr: yes they are Jul 22 12:28:10 Ah whoops, yes you're right, that statistic I quoted was for OpenGLES 1.1 ONLY devices, not 1.0 Jul 22 12:28:19 p_l, yeah, sorry mine is probably 1.1 Jul 22 12:28:28 ..so the percentage of 1.0 only devices is probably even lower Jul 22 12:28:54 Which 2.3 device is it you're having the problem with out of interest, tinti? Jul 22 12:29:23 so as you Seidr narekb Gaz and p_l it is a limitation Jul 22 12:29:34 Seidr: a custom one from our company Jul 22 12:29:40 oh Jul 22 12:29:44 share the specs? Jul 22 12:29:52 Ahh, ok..so this is an in-house application / device for a specific platform? Jul 22 12:30:21 narekb: yes, it is a bit old but works for our main application Jul 22 12:30:46 sorry only portuguese Jul 22 12:30:47 http://maxtrack.com.br/site/?menu=Produtos&tipo=Equipamentos&produto=i-MXT Jul 22 12:31:26 Seidr: yes Jul 22 12:31:27 If the need for Maps API 2 is really that great, then I'd suggest that the device itself needs to be upgraded across the board, the need for Overlays to be reassessed, or the Maps library be changed (no idea if there are any alternatives to Google Maps that are worth it..) Jul 22 12:31:47 ..good excuse to get a budget for a brand spanking new device! ;) Jul 22 12:32:07 Ah..I see, it's a product. Well, good luck :\ Jul 22 12:32:33 Seidr: yes but the main point is that if your processor manufacture Jul 22 12:32:38 garbage collection makes me want to cry Jul 22 12:32:59 lasserix: time to master no-consing coding? :> Jul 22 12:33:09 does not provide you the drivers (they only give you blobs) you cannot upgrade it that much ... which is our case Jul 22 12:33:46 * tinti if you will not update a driver anymore at least release it as open source Jul 22 12:33:48 Uhh, tinti, the tech specs suggest it uses a Z430 GPU? Jul 22 12:33:54 hey, i want to add +1 button to my app, do i need google play services for that? of a different lib? Jul 22 12:34:06 This wikipedia article suggests that the Z430 supports OpenGLES 2.0: http://en.wikipedia.org/wiki/Imageon Jul 22 12:34:26 when you swipe an app away on the recent apps screen, what happens in the app? onPause->onStop? Jul 22 12:34:28 If that's the case, I'd suggest making sure your XML Manifest is requesting OpenGLES 2.0, as that's a requirement: http://stackoverflow.com/questions/13714484/android-maps-api-requires-opengl-es-2 Jul 22 12:34:38 or maybe just onstop I guess Jul 22 12:34:52 yes, but I need the blob that supports it Jul 22 12:35:11 p_l no consing? its just tough making a procedurally generated game without incurring the wrath of the garbage collector Jul 22 12:35:40 p_l plus i dont know enough to understand, for instance, if i am using a stack when i pop off the stack is this creating garbage? Jul 22 12:35:44 Is theree anybody that had a Xperia Tipo or a LG optimus L3 ? Jul 22 12:37:06 lasserix, why is garbage collector so bad? Jul 22 12:37:40 it's not that its not so bad, but that it creates any garbage. for instance, if i am generating a shape i have to be careful not to use any transient objects or recycle the ones i do, which can make it difficult Jul 22 12:37:49 espicially if I am generating an arbitrary number of vertices Jul 22 12:37:54 for that shape Jul 22 12:37:57 with Notifications .... can I schedule them upfront, say 10 notifications and then deliver one on each day, like today one, tomorrow one, until they run out and then reschedule some more ? Jul 22 12:38:16 at least this convex hull generator is working :) Jul 22 12:38:25 primski, spamming eh? :D Jul 22 12:38:26 and sure their delivery even if app/service is killed Jul 22 12:38:39 no, not spamming, but just trying to figure out a feature Jul 22 12:38:55 or would i need push notifications for that? Jul 22 12:39:07 hmmm continuing notifications even with dead app Jul 22 12:39:46 heres a recap i wrote earlier i have a simple calendar app, month view which displays some additional info for each day, say day is OK, or day is not OK. i retrieve this info from server and just put one image or another in the grid to show ok/not ok. what i want now are, notifications ... i want to notify user if >today< is ok. if it's not ok, show nothing. Jul 22 12:40:12 or, user would enable notifs, notify me when day is ok. Jul 22 12:40:31 so i want to notify user, like tomorrow if it will be ok, even if android kills the app Jul 22 12:40:42 am i clear? i suck at explaining. Jul 22 12:40:50 I get the idea Jul 22 12:40:52 but I am thinking Jul 22 12:40:59 why would Android itself kill a service? Jul 22 12:41:16 it may kill an activity which is not needed Jul 22 12:41:23 i don't know exatcly how services work actually. Jul 22 12:41:28 but Services are meant to be invisible Jul 22 12:41:34 sec. Jul 22 12:41:36 primski, they are just background prorcesses Jul 22 12:41:40 *processes Jul 22 12:41:54 Android won't kill your service, the user will Jul 22 12:42:08 or rather, the user may, you can't say he will or will not for sure Jul 22 12:42:21 so it he does, i cannot ensure notif delivery? Jul 22 12:42:25 if* Jul 22 12:43:11 hmmm Jul 22 12:43:17 I am looking for one thing Jul 22 12:43:25 make the service restart itself after it is killed Jul 22 12:43:40 can someone tell me if its possible? Jul 22 12:43:53 so it actually cannot be killed? hm, that will piss off some users won't it ? Jul 22 12:44:09 hm, yea, need to figure out how many and if it's worth it Jul 22 12:44:52 but, just to be clear ... push notifications would provide this functionality ? Jul 22 12:45:08 I dont know Jul 22 12:45:09 just trying to figure out if we can do it without the server ? Jul 22 12:45:20 oh I just saw something primski you need a foreground service Jul 22 12:45:26 from Stack Overflow Jul 22 12:45:32 A foreground service is a service that's considered to be something the user is actively aware of and thus not a candidate for the system to kill when low on memory."" Jul 22 12:45:50 yea i've been reading about that .... hmm, could be yea Jul 22 12:46:17 actually, you may need the whole thread Jul 22 12:46:21 http://stackoverflow.com/questions/9696861/how-can-we-prevent-service-from-killing-by-os-in-android Jul 22 12:47:06 hm Jul 22 12:47:21 but this requires a permanent notification until it's stopped or removed Jul 22 12:48:14 you could think of something creative like Jul 22 12:48:20 what's your app name? Jul 22 12:48:31 i dont have a name yet Jul 22 12:48:44 ok, let's just name it Watchdog as an example Jul 22 12:48:50 what is consider proper if i need an web application to interact with user frequently. Should I create view Elements like TextView etc. and make the results of query appear in an activity's view or use a webview ? (for my web-app in android) Jul 22 12:48:54 the notification could be always on and could go like this Jul 22 12:49:06 "Watchdog is on guard" and with smaller text Jul 22 12:49:09 "Today is ok" Jul 22 12:49:15 or "Today is NOT ok" Jul 22 12:49:34 maybe, yea ... that could work Jul 22 12:49:44 need to think a little how i want to work first so will see Jul 22 12:49:49 that is an option though Jul 22 12:50:13 primski, ok then, ping me if you make your choice Jul 22 12:50:23 yea sure mate, thanks for help Jul 22 12:50:34 pranav: unless you are doing something very simple, go native Jul 22 12:50:54 primski: you want to always show the notification and never let the user dismis it? Jul 22 12:51:09 no, i didn't until now ... but i think i can make it work like that too Jul 22 12:51:25 pranav: webview is just a container, and since you say users will use frequently, it's worth it to make an actual activity that has the feeling of using the device their accustomed too Jul 22 12:51:26 or maybe it will be too intrusive, i don't know Jul 22 12:51:38 primski: why not just put the notification to the user and let the user decide if he wants to leave it or dismis it? Jul 22 12:51:44 need to talk it over with some beta users :P Jul 22 12:52:07 lasserix: you mean making HTTPpost calls, returning JSON objects. and using native components for views? Jul 22 12:52:14 yeah Jul 22 12:52:16 well, if he dismisses it, i want to be able to deliver it the next day, if some conditions are met Jul 22 12:52:22 Hi guys, someone has used android Equalizer? Jul 22 12:52:27 but i want to ensure delivery even if service is killed Jul 22 12:52:40 primski: so you use AlarmManager to schedule your app to run once per day Jul 22 12:52:48 lasserix: sry to ask but what if i need to develop an android app in a competition within time ? Jul 22 12:53:00 oh that exists too? great stuff, that would be even better Jul 22 12:53:13 primski: combine it with an IntentService to ensure that the service doesn't run needlessly after you've retrieved your data and shown the notification Jul 22 12:53:35 yea, that sounds like a much better approach Jul 22 12:53:38 I just had this page to "contact" the play store helpCenter ... No way to send a message just a bunch of articles .. https://support.google.com/googleplay/android-developer/ Jul 22 12:54:01 like i said it matters how simple the interaction is, if it's just reading a webview is fine, but if you're handling input events or have something like a graph or stuff that requires a lot of click through it'll feel like driving a toy car instead of the real thing Jul 22 12:54:36 thansk appel1 that sounds like exactly what i need Jul 22 12:54:39 WOW lol Apple Developers was hacked! Jul 22 12:55:52 no it wasnt hacked you silly person. it was probed by a white hat security expert who was helping apple improve their services... Jul 22 12:56:14 oh, found the apple developer ;) Jul 22 12:56:22 primski: requires some thought as to when to schedule intents with AlarmManager, they don't survive reboots or if the user Force Stops your app from Settings -> Apps -> Downloaded/All apps. Jul 22 12:56:24 lasserix: ok.. . can i use some webviews and some normal views inside the same application. i thought making graphs in webviews is easier using APIs Jul 22 12:56:27 no really lasserix bunch of developer info has been stolen Jul 22 12:56:51 no no that's just media hype. Jul 22 12:56:53 ;p Jul 22 12:56:58 What's a good indicator that your app is doing okay? Jul 22 12:57:04 lasserix: he was the one who told about it, but how many people stole the same data in the past and said nothing? :) Jul 22 12:57:05 something like that could never happen to apple! Jul 22 12:57:08 appel1: aha, ok thanks.... am reading docs now yea will see Jul 22 12:57:10 Is it possible to reload a single cell of a grid view? Jul 22 12:57:11 lasserix, pffft Jul 22 12:57:12 I am building an app which plays youtubevideos. I don't want to use a WebView, but rather go with the YouTubeSDK which requires the YT-App to be installed. Are there any numbers out there on how many devices i am missing through that approach? Jul 22 12:57:21 For example, how many downloads a day Jul 22 12:57:31 CocoStorm, user feedback Jul 22 12:57:34 it's not the downloads Jul 22 12:57:40 users downloads your app Jul 22 12:57:40 pranav: mmv depending on what you're doing... Jul 22 12:57:46 but if they dont like it Jul 22 12:57:52 they will uninstall in 3-4 seconds Jul 22 12:58:00 I see, yeah Jul 22 12:58:01 CocoStorm, user reviews are everything! Jul 22 12:58:08 my reviews are 4.1 at the moment Jul 22 12:58:15 users just slate everything tho Jul 22 12:58:20 Gaz`, true lol Jul 22 12:58:30 appel1: but there is also an option to schedule it at boot? http://stackoverflow.com/questions/4459058/alarm-manager-example Jul 22 12:58:36 ive made the most amazing apps and they get like 50 1 stars Jul 22 12:58:48 and they talk about bugs that not one of our testers found in months Jul 22 12:58:55 CocoStorm, Play link? Jul 22 12:58:56 primski: yes Jul 22 12:59:08 narekb, https://play.google.com/store/search?q=numbersnap Jul 22 12:59:09 Gaz`, can be Jul 22 12:59:15 lasserix: so, by go native app way.. you also meant that i will have a backened server say php , which will respond to my request and send me json objects ? Jul 22 12:59:25 someone complained about not being able to save a contact to google account, I never said in the description anywhere that it would Jul 22 12:59:38 pranav that is how i did it Jul 22 12:59:39 narekb, https://play.google.com/store/apps/details?id=com.marco.numbersnap Jul 22 12:59:39 primski: if you don't always want to notify the user each day and you have a server using GCM might be a more resource friendly solution though :) Jul 22 12:59:41 sorry wrong link Jul 22 12:59:46 second one is correct Jul 22 13:00:14 CocoStorm, interesting concept Jul 22 13:00:17 did you think of the idea Jul 22 13:00:22 yes Jul 22 13:00:23 or ported from some other platform? Jul 22 13:00:23 and thanks Jul 22 13:00:25 pranav if you are making an app that will stick around and be used by a lot of users frequently, nothing beats true UIX feedback Jul 22 13:00:43 narekb, i thought about the idea, it got an article on TechCrunch Jul 22 13:00:51 great job :D Jul 22 13:00:53 appel1: yea, notify won't appear daily for the most part, but more like 2,3,4 times a week. GCM might be friendlier indeed. Jul 22 13:00:56 thanks! Jul 22 13:01:16 narekb, but the downloads are dying down and I'm getting worried lol Jul 22 13:01:31 CocoStorm, s**t happens :( Jul 22 13:01:35 yeahh Jul 22 13:01:39 lol Jul 22 13:01:40 question Jul 22 13:01:48 sure Jul 22 13:01:50 if I may ask, what was the issue with HTC devices? Jul 22 13:01:58 narekb, you're going to laugh.. Jul 22 13:02:06 * narekb is ready Jul 22 13:02:07 ok guys thanks ... i think i know the caveats to all aproaches now ... will think a bit how we want it and pick one .... thanks Jul 22 13:02:18 narekb, I forgot to add READ_CONTACTS permission Jul 22 13:02:21 lolol Jul 22 13:02:26 CocoStorm, oh c'mon man! Jul 22 13:02:29 only had write_contacts Jul 22 13:02:32 wait Jul 22 13:02:34 I know, I know... Jul 22 13:02:37 lasserix: okey.. i might need to integrate google map API, visualizations, calender etc. i know the php for all those. it won't help me right ? i mean i will have to use google api's for android that has to be embedded in activities ? Jul 22 13:02:42 then how come only HTC didnt work? Jul 22 13:02:48 can u use preprocessors in android yet? Jul 22 13:02:49 narekb, I have no clue Jul 22 13:03:12 CocoStorm, weird, I think every other manufacturer's Android build includes read_contacts in write_contacts Jul 22 13:03:15 but not HTC Jul 22 13:03:18 interesting Jul 22 13:03:30 Yeah exactly Jul 22 13:03:35 CocoStorm, you see, one of your users liked the fact that you corrected the issue in one day Jul 22 13:03:37 I liked it too Jul 22 13:03:43 I thought it was some big problem Jul 22 13:03:48 never tell them what it was ;) Jul 22 13:04:08 lasserix: thanks :) for your guidances though. Jul 22 13:04:16 Thanks :) I was panicing a lot trying to find a HTC device to debug with and yeha managed to fix it in an instant and emailed them Jul 22 13:04:34 what device do you have? Jul 22 13:04:40 Galaxy S3 Jul 22 13:04:50 ok Jul 22 13:06:41 right, I'm going to get ready and hand out some flyers :D every little helps Jul 22 13:06:53 narekb, see ya dude! Jul 22 13:06:58 CocoStorm, later :D Jul 22 13:16:36 is it possible to put a Google +1 button on a DialogFragment? Jul 22 13:21:33 lasserix: in Java, everything other than primitives is heap-allocated Jul 22 13:21:44 lasserix: however, you can try to get around it with caches Jul 22 13:21:53 lasserix: and reusing objects in caches Jul 22 13:23:47 Do I need to add any permissions to my app besides requiring android.hardware.usb.host feature? Jul 22 13:24:36 'cause the device in question gives me empty map on USBManager.getDeviceList() Jul 22 13:25:10 Tried with mice, barcode scanners USB-To-LPT and USB-To-Serial convertes and a USB label printer. Jul 22 13:31:59 guys, what does DAO mean? Jul 22 13:32:04 (used in SQLite tutorials) Jul 22 13:32:36 Pure guesswork: Data Access Object. Jul 22 13:33:06 +s Jul 22 13:33:22 ..I think Jul 22 13:33:27 same difference :p Jul 22 13:33:37 Gah, I hate that saying..my brother uses it all the time! Jul 22 13:34:38 Yeah, usually some abstraction gone wild. Jul 22 13:34:51 p_l: the problem i had was that occasionally calculations using cache objects (say vector3) would still hold the reference to previous calculations, causing things to fuck up. think i understand how to fix that (by using intermediate primitives when reassining such data) Jul 22 13:36:01 pranav: if you are going to use all that, going sdk to do your work will make your life easier. you will have to use the api's, but the php/json io for your client and server can convey what information you need to handle those apis Jul 22 13:37:45 thanks kjeldahl Jul 22 13:37:59 lasserix: i got your point.. you mean returning the json and using the sdk + api facilities to render them in views .. ok :) Jul 22 13:39:08 yeah eventually too if you want to do a ios implementation you will have your client server io api set up to plug into ios's api Jul 22 13:57:11 hi guys, I'm having this trouble: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi- gcc: cannot execute binary file Jul 22 14:04:03 . i downloaded adt but the docs folder is empty. where should i download the offline version of android-api reference Jul 22 14:04:04 ? Jul 22 14:10:30 pranav: Use the 'Android SDK Manager' to download the docs. (android.exe or android depending on your OS). Jul 22 14:11:42 ey guys, how could I know which one is my package? http://www.angstrom-distribution.org/toolchains/ Jul 22 14:12:22 do you have an i686 or an x86_64 computer? Jul 22 14:12:29 Is your target armv7a or armv5? Jul 22 14:12:41 Does your target chipset have NEON? Jul 22 14:13:48 how could I check that all? Jul 22 14:13:53 uname? Jul 22 14:14:01 cat /proc/cpuinfo Jul 22 14:14:18 uname -a shows this: Linux linux-VirtualBox 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux Jul 22 14:14:52 it sounds like you want one of the files that has "i686" in its name Jul 22 14:15:10 I suspect that too Jul 22 14:15:45 I started using IDEA for android, but my System.out.println() statements' output in my code are no where to be seen... Jul 22 14:15:59 Where can I see it? I use sysouts a lot for debugging Jul 22 14:16:16 Xabster: A) consider using the Log class or a logger library. B) Look in the "Android" tab for logcat. Jul 22 14:16:27 C) Consider using a debugger? Jul 22 14:16:41 well, p_l, lov, what I'm trying to do is to compile some binaries for Android using Linux Jul 22 14:16:47 lov: I'm looking at the logcat tab, but it only presents me with the exceptions Jul 22 14:17:06 You may have a filter set. Jul 22 14:17:11 Ojoloco: yes, this much is clear. Jul 22 14:17:14 Lachezar: i'm on linux. i can't find the docs :| Jul 22 14:18:07 lov: log level: verbose Jul 22 14:18:36 I tried to follow this tutorial, lov: https://sites.google.com/site/hydrogensensors/home/beagle-board---motor/how-to-cross-compile-for-bb-xm-using-eclipse-and-directly-compile Jul 22 14:18:49 ah, i found it Jul 22 14:18:51 but I'm stucked in the part 2 Jul 22 14:19:41 Ojoloco: ok, feel free to ask a particular question. Jul 22 14:20:20 seeing as how you haven't even mentioned eclipse yet, it sounds like you're stuck on part 1? Jul 22 14:20:22 ok, eh... lov, have you success to compile binaries for Android/ARm? Jul 22 14:20:34 Ojoloco: a very long time ago. Jul 22 14:20:35 yes, on part 1 exactly Jul 22 14:20:38 how can i find the reason for error when working with SQLite and calling .insert() on a SQLiteDatabase ? It returns -1 but gives no hints Jul 22 14:20:48 I'm not going to use eclipse actually Jul 22 14:21:00 I'm trying to compile tcpdump for Android Jul 22 14:21:04 Ojoloco: I'm not really sure what the problem is then. Pick the armv7a toolchain for an i686 dev machine. Jul 22 14:21:15 I know there are already compiled versions, but I'm trying to do it manually Jul 22 14:21:17 assuming that your target device is armv7a Jul 22 14:22:24 I'm going to try to check if it's armv7a Jul 22 14:22:48 it is Jul 22 14:23:02 Linux localhost 3.0.8-GP+ #1 PREEMPT Fri Jul 12 19:26:50 CEST 2013 armv7l GNU/Linux Jul 22 14:26:51 i remember javadocs (offline html version). i can't find docs in sdk that came along with adt. also, there is no zipped or any version to download at http://developer.android.com/reference/packages.html Jul 22 14:26:57 please help :| Jul 22 14:29:06 pranav: Not sure if that's wat you mean: you can install the documentation from the sdk manager. Jul 22 14:31:32 How are the codes called like *101#? Jul 22 14:31:34 I'm using eclipse and setting android:defaultValue="inf" for a Preference. The built apk has there "Infinity" instead. How can I prevent this? Jul 22 14:31:38 min_ch: ok, i got it. it was inside this menu of adt app. :| Jul 22 14:33:06 Hi, I have "Service com.android.exchange.ExchangeService has leaked ServiceConnection" error and googling tells me to disable Exchange Services... do you agree? What is Exchange Services? I don't believe I'm written code that uses, so why's it whining? Jul 22 14:33:19 Xabster: enjoy spammy logcat output. Jul 22 14:33:51 not sure what you mean Jul 22 14:34:18 Xabster: it's not for your process (or at least I assume not) Jul 22 14:35:50 is there still 1 1mb limit to an sqlite query result ? Jul 22 14:37:23 Xabster: do you use the Email app with an Exchange account? that's what ExchangeService is for anyways. Jul 22 14:37:30 appel1: no Jul 22 14:37:43 it's the emulator and i've only ever tried to run this app I'm working on, on it Jul 22 14:37:55 i disabled it, errors gone Jul 22 14:38:02 app runs apparently without errors Jul 22 14:38:24 some are writing that they re-created the emulator profile and that solved it for them Jul 22 14:38:27 Xabster: yeah, it has nothing to do with your app and can be safely ignored. Jul 22 14:38:40 great Jul 22 14:38:47 well, great that i don't have to worry Jul 22 14:38:57 annoying as hell that i have worried for no good reason Jul 22 14:39:01 g00s: I shudder to ask why you even know about this limit. Jul 22 14:40:08 lov i have a bunch of time series data; c interface to sqlite would be fine; but the cursorWindow impl is pretty scary Jul 22 14:40:20 i think it attempts to load the entire resultset at once Jul 22 14:40:38 quite possibly! Jul 22 14:41:37 lov any recommendations for storing time series data on android? Jul 22 14:41:56 sqlite has been ok for me so far, but now i need to resample Jul 22 14:43:37 i was reading this yesterday http://radar.oreilly.com/2013/01/the-future-of-programming.html Jul 22 14:43:44 the section about "Data Computing" Jul 22 14:44:07 resonated with me, java is a pita, and java on constrained devices dealing with lots of data is a pita Jul 22 14:44:53 go pure C then, have fun. Jul 22 14:44:56 if i didnt have to worry about concurrent access i would probably just try to do a flat file thing in nio Jul 22 14:45:04 you still can. Jul 22 14:45:10 roll your own DB; shoot for the moon! Jul 22 14:45:15 heh Jul 22 14:45:27 lov use anything like leveldb on android ? Jul 22 14:45:37 a better question would be "is the data that you're storing appropriate for use with an RDBMS?" Jul 22 14:45:47 if your data doesn't need to be RELATIONAL, it might make sense to not use a DB at all Jul 22 14:45:57 no, I haven't used leveldb. Jul 22 14:46:20 hm, "nan" is also changed to "NaN" Jul 22 14:46:21 we ditched sqlite in xmms2 and created our own db ;) Jul 22 14:47:07 Zharf was it in-house ? Jul 22 14:47:18 there are a few, h2, perst, mapdb, etc Jul 22 14:47:18 open source... Jul 22 14:47:28 g00s: what is pita? Jul 22 14:47:36 paint in the butt Jul 22 14:47:40 ahh Jul 22 14:47:41 :) Jul 22 14:47:43 or pain Jul 22 14:47:58 Zharf if its open source, link ? Jul 22 14:48:40 for the db? not sure if it's suitable for you but it's in git.xmms2.org somehwere :) Jul 22 14:49:39 i guess i could write some nio based thing with a global locking mechanism Jul 22 14:54:45 g00s: are you constrained to using sqlite? Jul 22 14:55:02 hm, i'd rather not use the ndk Jul 22 14:55:21 i have a ton of options on ios, like sqlite4 k/v Jul 22 14:55:23 I'm catching an exception, wrapping its message in a new exception and throwing that, but I still get the error you see here: http://pastebin.com/9H2dfAFU Jul 22 14:55:40 g00d what exactly is the problem with the db? Jul 22 14:55:45 * g00s Jul 22 14:55:51 just wondering if I should worry ;) Jul 22 14:55:54 i checked the docs, the SQLiteConstraintException extends java.lang.Exception which I catch... so... what is going on? Jul 22 14:56:28 DatabaseException is my own class btw Jul 22 14:56:50 Chainfire oh, i'm dealing with an odd case. i need to resample a largish (for mobile, 10k) samples by full table scan selecting every n samples. android's cursorwindow seems to attempt to load the entire set into memory at once, and the limit appears to be 1mb Jul 22 14:57:22 additionally, there seems to be a logic error when stepping backwards through the cursor Jul 22 14:57:28 apparently not fixed on ics Jul 22 14:57:54 g00s ah, this is specific problem with CursorWindow? No problem with a normal Cursor's query spanning a few hundred mb's in result set? :) Jul 22 14:58:31 oh, i mean normal android/sqlite cursor https://code.google.com/p/android/issues/detail?id=4993 Jul 22 14:59:04 see july 8 comment Jul 22 15:00:40 oh, i found my error if anyone cares: i need to use insertOrThrow() because the insert() will print the exception and somehow terminate my VM without throwing it upwards Jul 22 15:01:55 g00s sorry I'm confused. so a Cursor will bomb on any query that returns > 1mb of data, total rows*columns ? Jul 22 15:02:08 pranav: Sorry had to go out. You need to run $ANDROID_SDK/tools/android. From the UI open the appropriate API (4.2.2 or API 17 if you don't know better) and click the 'Documentation for Android SDK', then the 'Install' button at the bottom-right. Jul 22 15:02:47 Chainfire i think so, yes Jul 22 15:03:18 this was an old limit of android, i dont think it has changed Jul 22 15:03:39 well. that certainly sucks. Jul 22 15:04:01 somebody first posted about it in 2009 http://stackoverflow.com/questions/1407442/android-sqlite-and-huge-data-sets Jul 22 15:04:32 now, the regular c/sqlite doesn't have this limit, its just the way android handles it from what i understand Jul 22 15:05:39 http://stackoverflow.com/questions/6938405/how-to-load-more-than-1-mb-data-from-sqlite-db-to-android-cursor Jul 22 15:06:12 http://stackoverflow.com/questions/4561085/android-sql-lite-fail-to-grow Jul 22 15:07:20 i think i'll have to go with something homegrown :( Jul 22 15:07:57 hilarious Jul 22 15:08:11 I just transitioned from various forms of nonsense to db's in a few of my apps Jul 22 15:08:19 to learn now that it's all going to break down sooner or later Jul 22 15:08:27 epic Jul 22 15:08:53 page from a book Jul 22 15:08:55 http://books.google.com/books?id=WLinoJaOUCwC&pg=PA300&lpg=PA300&dq=android+cursorwindow+1mb&source=bl&ots=8AWcp9yPRr&sig=F0ayLD5Vwvd725sXkNrccyX1Gzw&hl=en&sa=X&ei=MErtUcDvL6S6yAHLtoDIDg&sqi=2&ved=0CFoQ6AEwCA#v=onepage&q=android%20cursorwindow%201mb&f=false Jul 22 15:09:03 see last para on page 300 Jul 22 15:09:25 "but other times .. kapow" Jul 22 15:09:29 yeah, nice Jul 22 15:09:59 i'm trying to make toast on a button click in a dialog fragment, and am getting this error: The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (layerDialog, String, int) Jul 22 15:10:03 does anyone know what that means? Jul 22 15:10:09 java code- http://pastebin.com/eH0gAWjy Jul 22 15:10:50 csterling123: exactly what it says. You need to fix your arguments. Jul 22 15:10:51 layerDialog isn't a context Jul 22 15:11:00 You're probably using the wrong "this" Jul 22 15:11:13 oh. Jul 22 15:11:13 I'm assuming that you have an inner class here; you want to provide the activity's "this" Jul 22 15:11:59 lov- im not sure if i have an inner class. im looking into what that is.. Jul 22 15:12:41 lov- i dont think it is an inner class Jul 22 15:13:14 csterling123: pastebin the relevant code, please... Jul 22 15:13:32 is the link i posted above not the relevant code? Jul 22 15:13:34 how can I upload a mp4 to facebook? I tried the method explained here http://stackoverflow.com/a/6924732/1645458 , but the Facebook server answers "Sorry, the video file you selected is in a format that we don't support." Jul 22 15:13:50 oh, so it is! Jul 22 15:13:55 =D Jul 22 15:14:05 csterling123: you're passing in your DialogFragment as your first argument. Jul 22 15:14:13 What you need is something that extends Context. Jul 22 15:14:25 for the toasting method or the oncreateview? Jul 22 15:14:59 for toasting. Jul 22 15:15:06 consider calling getActivity() Jul 22 15:15:18 and the activity i would get is the main one? Jul 22 15:15:26 your fragmentactivity Jul 22 15:15:29 read the documentation, please. Jul 22 15:16:18 yeah sure, no problem. my confusion with that was essentially the same code worked in the main activity, but not in the dialog fragment code. just was wondering why the arguments had to be different Jul 22 15:16:57 because your DialogFragment is not an Activity... Jul 22 15:17:33 right. okay, thanks man Jul 22 15:18:55 Somewhere along the line FragmentActivity extends Context, and DialogFragment doesn't ;) Jul 22 15:19:15 what's the best way to implement Fixed Tabs ? (https://developer.android.com/design/building-blocks/tabs.html) Jul 22 15:19:36 not in the actionbar, on latest android versions Jul 22 15:19:56 not scrollable either Jul 22 15:20:00 just simple, fixed tabs Jul 22 15:20:51 anyone got some experience with that? Jul 22 15:22:21 between tabhosts, viewpager + pagertitlestrips, ... I've kind of lost my way Jul 22 15:24:55 ActionBar tabs Jul 22 15:25:10 use Pager Sliding Tab Strip, decent library Jul 22 15:25:24 nseidm1 not in the action bar, just below it Jul 22 15:26:00 that's called ActionBar tabs Jul 22 15:26:11 facilitated by the ActionBar Jul 22 15:26:20 * Lachezar expresses puzzlement as to why /regular/ USB HID devices can not be handled by an Application, but /broken/ USB HID devices can 8-[ Jul 22 15:26:45 komet: as in, actionbar.newTab() Jul 22 15:27:30 Is there a way to handle an USB HID keyboard under Android (not as keyboard, but as an USB Device). Jul 22 15:27:31 nseidm1: hm, I see ... I wonder why they couldn't say that on their "Tabs" page... Jul 22 15:27:55 nseidm1 thanks a lot, man! :) Jul 22 15:28:00 cheers Jul 22 15:37:37 g00s fyi I just walked a 50k row Cursor on my S3 without issue Jul 22 15:37:56 building a 10 million row db now to test later ... Jul 22 15:38:40 ahh, moving from "micro" to "small-ish" database sizes? ;) Jul 22 15:38:49 * p_l had been reading DBA Reactions a bit too much, recently Jul 22 15:40:23 hey guys, you know when u create an adapter there's a getView() method wich is called by demand for each list Jul 22 15:40:25 its only small until you have to write out the contents on a single piece of letter-size paper Jul 22 15:41:54 defuera: cool story bro? Jul 22 15:42:00 defuera go on... Jul 22 15:42:13 lov: heh there's another meme waiting for the topic Jul 22 15:42:27 Chainfire: upload it and write down the URL :D Jul 22 15:44:13 Lachezar, or draw a QR Code :P Jul 22 15:47:29 there're ListView.MeasureHightOfChildren, ListView.onMeasure.. etc Jul 22 16:02:25 If I don't know anything about Maven or Gradle or anything of the sort, but would like to start learning where would you recommend I start? Jul 22 16:11:59 yiati you don't need to know both Jul 22 16:12:12 these days, the docs for both systems are good Jul 22 16:12:26 may as well go with gradle since thats android's next official thing Jul 22 16:13:33 g00s: Okay cool, that's definitely what I was planning on. I am trying to learn it right now relative to Android programming, and I am really not sure what uses it has and what kind of examples I can have myself create to test it out and learn it Jul 22 16:14:03 the user's guide on the android tools website gives enough for basic use cases Jul 22 16:14:13 you can also get the examples-0.5.zip file Jul 22 16:16:06 So I have run into the "All WebView methods must be called on the UI thread" problem now. I start my own thread from my Activity class; a thread that extends SurfaceView. And from this SurfaceView I create a new adObject from Greystripe. This causes the "All WebView methods must be called on the UI thread" warning in the log. Obviously I have been googling for what I'm supposed to do, but not finding any attractive solutions, without hav Jul 22 16:16:06 ing to rewrite a lot of my code. Jul 22 16:16:39 So in short: How to call a WebView from a SurfaceView or push the WebView to the UIThread from a SurfaceView? Jul 22 16:16:45 fuck webview Jul 22 16:18:53 * Bleeptech hands g00s a condom.. Jul 22 16:19:57 g00s, Not my decision. It's what the Greystripe ad-system uses. Jul 22 16:24:37 have anyone seen thos http://www.indiegogo.com/projects/ubuntu-edge Jul 22 16:25:38 yeah, looks awesome Jul 22 16:25:59 i hope ubuntu phone takes off Jul 22 16:26:10 but this project … well, hope it does well too Jul 22 16:26:41 g00s yeah cause what we really need is another player on that market Jul 22 16:26:52 i think ubuntu will be the first with a converged device, next followed by ms maybe WP9 Jul 22 16:27:03 dividing the market further, and stretching your resources thinner to reach the same amount of users Jul 22 16:27:14 Chainfire oh, i'm happy with 3 players. but good players ;) Jul 22 16:27:25 well we have 0 of those Jul 22 16:27:45 ios/android is a stagnant dupoly it seems Jul 22 16:27:52 *duopoly Jul 22 16:27:58 wp never went anywehre Jul 22 16:28:06 waiting for a 3rd option Jul 22 16:28:19 i agree but a 32 mil igg campaign is just a 19th century con job Jul 22 16:28:23 hi guys, i have an app that has a start button, when that start button is pressed, a service is started and it runs in the background until i close the app, can anyone please help me make my service always run? Jul 22 16:28:49 by default it will always run Jul 22 16:28:59 lasserix heh, yeah - i think they are basing that on 2% ubuntu fan-base buying a $600 phone Jul 22 16:29:05 nseidm1, then what's wrong? Jul 22 16:29:22 return START_STICKY on onStartCommand Jul 22 16:29:26 g00s all more competition on the smartphone market does is drive more apps into using some write-once-run-anywhere toolkit without proper native look and feel, ultimately ruining the experience for everyone Jul 22 16:30:04 Chainfire i think the market can sustain 3 options; don't you ? Jul 22 16:30:07 what we need is a crowdsources version revision of all android devices Jul 22 16:30:22 I have hopes for the new Moto phones coming Jul 22 16:30:28 seeing that most big corps apps are still half assed on Android, no. Jul 22 16:30:36 loin: are you calling startService() or just binding it? Jul 22 16:30:39 we can't even sustain 2 options, really Jul 22 16:30:44 heh Jul 22 16:30:49 i can't even sustain android :D Jul 22 16:31:00 Ge0rG, startService(new Intent(this, MyService.class)); Jul 22 16:31:08 loin: maybe you are out of memory? Jul 22 16:31:10 Chainfire: You got a link to that write-once-run-anywhere toolkit? Jul 22 16:31:19 Ge0rG, 100% not out of memory Jul 22 16:31:29 loin: you should make the service a foreground service if you need it running all the time Jul 22 16:31:34 Bleeptech they are a dozen of them... Jul 22 16:31:52 "phonegap" for example Jul 22 16:31:54 Ge0rG, ? Jul 22 16:32:37 loin: service.startForeground() Jul 22 16:32:46 loin: your service will get stopped, killed anytime. Return START_STICKY and it will auto restart Jul 22 16:32:51 loin: it will display a notification while running, but won't get killed so fast Jul 22 16:37:01 nseidm1, after i closed it, i got I/ActivityManager( 563): Start proc com.example.sal for service com.example.sal/.MyService: pid=1426 uid=10077 gids={50077, 1028} Jul 22 16:37:04 but it doesn't work Jul 22 16:37:08 with start sticky Jul 22 16:39:12 using startService, in START_STICKY mode, the service will always run unless you call stopService Jul 22 16:39:22 nseidm1: "always". Jul 22 16:39:26 it will get stopped and shutdown by the system, and will automatically restart Jul 22 16:40:18 yes, always. Unless killed by a task killer, system task manager, etc... Jul 22 16:41:45 I have a weird problem with lint on a library. Even if the manifest declare android:minSdkVersion="7", I get a ton of errors "Call requires API level X (current min is 1)" as if lint think library is minSdkVersion 1. The manifest is OK and there is no problem with the main project. Anyone has seen this ? Jul 22 16:50:02 g00s 250 000 records, dozens of MB's, still no issue seen here Jul 22 16:50:36 Chainfire did you do a select * and iterate through the whole cursor ? Jul 22 16:51:01 the failure won't be seen until you iterate over a 1mb boundary Jul 22 16:51:10 yes Jul 22 16:51:24 Chainfire android version? Jul 22 16:51:39 4.2.2 Jul 22 16:51:43 I think Jul 22 16:53:09 4.2.1, actually Jul 22 16:54:05 hm, i'm even more confused now Jul 22 16:54:28 how so ? Jul 22 16:55:59 i keep reading about this problem but you aren't seeing it. i had it on froyo Jul 22 16:56:41 i'll have to do some more experiments Jul 22 16:57:59 to call an activity's method from a button click in a dialogFragment, do I need to implement an interface? Jul 22 16:58:12 hmm wait Jul 22 16:58:57 no Jul 22 16:59:10 getactivity and cast to your activity type Jul 22 17:00:23 pfn- how do i find the activity type? its just a method in my main activity Jul 22 17:00:40 Ge0rG, i'm not having a whole lot of luck with the start forground thing Jul 22 17:03:49 csterling123: then it's MainActivity Jul 22 17:03:55 or whatever your activity is called Jul 22 17:05:03 so if the method in the main activity is called addLayer, would i do something like getActivity(mainActivity.addLayer); ? im currently looking through the docs for addLayer and how to use it... Jul 22 17:05:18 i mean getActivity, not addlayer Jul 22 17:05:24 (MainActivity)getActivity() Jul 22 17:07:17 how do you call the method by using that? in the getActivity parentheses? Jul 22 17:07:31 it doesn't accept that as an arg Jul 22 17:07:41 MainActivity activity = (MainActivity) getActivity(); Jul 22 17:07:48 call your method on activity Jul 22 17:08:53 or just use perenthesis ((MainActivity) getActivity()); but only if your sure getActivity will return something, cause it can return null depending on the lifecycle callback it's in Jul 22 17:09:23 ((MainActivity) getActivity()).myMainActivityMethod Jul 22 17:10:01 okay, that makes sense. thank you Jul 22 17:10:29 and it worked. you rock. thank you! Jul 22 17:21:41 Hi! I've found a bug in my app doing a bunch of clicks... U can reproduce it... Any idea how to find the code that it's being executed on the last click? Jul 22 17:21:43 hey guys. I have 2 different things that go into shared preferences. There is a user-input location and a user-input server address. I'm trying to access the server address within an AsyncTask using getDefaultSharedPreferences but it crashes. Is this because only one of those is going into the default shared preferences. I'm still pretty new to this so be gentle :) Jul 22 17:21:51 nseidm1, actually, the service does restart with start_sticky, i didn't notice it because my service wasn't doing anything until it received the screen off intent, but when the service restarted, the screen was already off Jul 22 17:21:54 I dont know which listener is being called Jul 22 17:22:10 I need to find that out to be able to debug it Jul 22 17:23:18 How to create a WebView on the UIThread from a SurfaceView class? Jul 22 17:23:37 How to display a WebView from SurfaceView class (without creating the WebView in the Activity class) without the "All WebView methods must be called on the UI thread" warning? Jul 22 17:28:04 Hey, is it possible to put a Google +1 button using google play services on a DialogFragment? Jul 22 17:30:21 Can anybody help me with this: java.lang.IllegalStateException: Failure saving state: active TurnAccessibilityServiceOnDialogueFragment${41596140} has cleared index: -1 ? Jul 22 17:31:07 So... any reason why calling getActivity in onCreate of a fragment is causing a null pointer exception? Jul 22 17:31:26 it happens even if i wrap it in if (isAdded()) Jul 22 17:31:54 according to the lifecycle onCreate only happens after it was added the activity... so theres no reason why getActivity should return null Jul 22 17:37:31 Hey guys, Might be a stupid question but I'm getting some users saying they want to be able to add the contact to the google account. What do they actually mean by this? Jul 22 17:38:03 the new n7 has pretty big love handles Jul 22 17:38:21 CocoStorm: They want to sync the contacts? Jul 22 17:39:13 Bleeptech: I see, to their google+ accounts using their names and numbers? Jul 22 17:39:25 Okay, that shouldn't be too bad I don't think Jul 22 17:42:30 jellybee: sure Jul 22 17:43:56 nseidm1, when i open the app, it seems that the service gets killed, is that true? Jul 22 17:44:03 no Jul 22 17:44:16 only stopService will shut it down Jul 22 17:44:24 and you can call startService many times Jul 22 17:44:47 nseidm1, i can call start service many times even if i exit the app? Jul 22 17:44:52 and if i enter back it won't start a new instance? Jul 22 17:44:55 correct Jul 22 17:44:59 only one instance Jul 22 17:45:01 i Jul 22 17:45:05 i'm not sure about that Jul 22 17:45:17 onStartCommand will get called each time you call startService Jul 22 17:45:46 Is it not enough to call dismiss() on a dialogue fragment if i want to close it? Jul 22 17:45:47 thanks nseidm1 Jul 22 17:45:55 np Jul 22 17:46:02 marrrk: it is enough Jul 22 17:46:16 Why does it die then trying to save its state? Jul 22 17:46:53 elaborate on die, an exception? Jul 22 17:50:19 Sorry Jul 22 17:50:45 What I wrote above, nseidm1 : Failure saving state: active TurnAccessibilityServiceOnDialogueFragment${41596140} has cleared index: -1 Jul 22 17:51:00 what's in your onSaveInstanceState method? Jul 22 17:51:19 and what kind of exception is it? Jul 22 17:51:27 IllegalStateException? Jul 22 17:51:53 There is nothing in that method. Jul 22 17:52:22 Yes IllegalStateException Jul 22 17:53:46 what does the dialog do on your onClick event? Jul 22 17:53:54 before you call dismiss Jul 22 17:57:28 It starts an activity, nseidm1 Jul 22 17:58:02 put your onClick method in pastebin.com Jul 22 18:00:16 http://pastebin.com/7hFjLmNw Jul 22 18:07:07 don't call dismiss on the dialog, call dismiss on the DialogFragment itself Jul 22 18:08:04 Hmm okay, so just dismiss() instead of dialog.dismiss() Jul 22 18:12:07 correct Jul 22 18:13:19 I just made sure to get the right "this" Jul 22 18:14:56 nseidm1: Well that works, but now it doesn't crash anymore... Jul 22 18:15:26 hello. I how do I check if GPS is present on device? PackageManager.hasSystemFeature(PackageManager.FEATURE_LOCATION_GPS) gives false when GPS is preesent, but not enabled Jul 22 18:16:48 it is possible/preferred to put a HorizontalScrollView inside a ListView item? Jul 22 18:17:30 And how would one achieve that Jul 22 18:18:16 Afzal: tricky to get it right, but it can be done Jul 22 18:18:58 nseidm1: where would I be setting the adapter for the HorizontalScrollView? In the adapter for the ListView? That's what's been confusing me Jul 22 18:19:16 Afzal: yup, in getView Jul 22 18:19:29 hence, it gets tricky Jul 22 18:19:37 nseidm1: wow, yeah...feels hacky too Jul 22 18:19:46 Would you agree that the most reliable way to turning the screen on from off is an alarm? Jul 22 18:20:09 But thanks, I'll have to try it and see where it leads. :) Jul 22 18:20:39 Afzal: just gotta be careful and cross the Ts and dot the Is Jul 22 18:22:03 Definitely, I'll have to get it reviewed from somewhere just to make sure. Maybe post here and /r/androiddev once I'm done. Jul 22 18:22:33 if it doesn't work that is. If it works beautifully, I'll be a happy man. Jul 22 18:34:08 14:19:56 < marrrk> Would you agree that the most reliable way to turning the screen on from off is an alarm? Jul 22 18:34:18 the only reliable way is via an alarm. Jul 22 18:34:27 The WakeLock just refuses to work Jul 22 18:34:37 no, that's not true. Jul 22 18:34:42 you're just misunderstanding what's happening. Jul 22 18:35:12 What is happening then? Jul 22 18:35:37 a wakelock is how *everything* turns on the screen, including the OS itself Jul 22 18:35:40 so they're fine Jul 22 18:35:58 the problem is probably in how you're getting into your situation where you want to throw the wakelock on Jul 22 18:36:25 How I'm getting in that situation? What do you mean by that? Jul 22 18:36:47 let's start from first principals Jul 22 18:36:49 marrrk: you assert "The WakeLock just refuses to work." That's not true, but why do you assert that? Jul 22 18:36:54 *principles Jul 22 18:37:03 so, you want the screen to turn on at some specific time? Jul 22 18:37:04 what does "just refuses to work" mean? How are you getting the lock? How are you enabling it? Jul 22 18:37:12 what is your alarm, and what does it do? Jul 22 18:37:24 "at a specific time" basically demands that you set an alarm via the Alarm Manager for it Jul 22 18:37:28 nothing else is reliable Jul 22 18:37:50 Okay. I want to turn the screen on whenever there is a notification received from some list of apps. Jul 22 18:39:12 So when that happens I make a new wake lock and I acquire it. Jul 22 18:39:29 And sometimes the screen turns on. Other times it doesn't. Jul 22 18:40:50 I could not make out on what it depends. Jul 22 18:41:15 what kind of wakelock are you acquiring? Pastebin the relevant code. Did you run adb shell dumpsys power? Did it show any kind of active lock? Did you add logging around your wakelock usage; can you verify that this code was actually called? Jul 22 18:41:39 I will paste the code, very nice of you to try and help me. Give me a minute. Jul 22 18:42:00 It's important to note that a broadcast receiver called from an intent from an alarm has an implicit cpu lock, but once it returns that implicit lock is released. IF you want to start a service, etc, you need to acquire your own lock in the receiver, then hand off control of that lock to the service. Jul 22 18:42:09 "there is a notification received" is distressingly vague Jul 22 18:42:16 yes, this too. Jul 22 18:42:38 what kind of notifications, and from who? Do you mean notifications in the status bar? If so, how are you hooking into that Jul 22 18:42:52 Okay on an AccessibilityEvent of type TYPE_NOTIFICATION_STATE_CHANGED Jul 22 18:43:08 oh, so you're writing an accessibility service? Jul 22 18:43:13 I have Jul 22 18:43:17 okay then Jul 22 18:43:42 https://gist.github.com/i-am-the-slime/b151c524ed03dd44ee9e Jul 22 18:43:50 Here's the little getting the wake lock part. Jul 22 18:44:16 yikes Jul 22 18:44:18 is there a way to grab the first file in a directory without having java grab the rest? Jul 22 18:44:20 don't allocate a new wakelock every time Jul 22 18:44:25 some sort of iterator interface perhaps? Jul 22 18:44:29 allocate one *once*, when you're created, and just re-use that Jul 22 18:44:36 in OnCreate? Jul 22 18:44:51 But that's only a performance thing, right? Jul 22 18:45:05 .... :( Jul 22 18:45:07 Can I reacquire one that I dismissed? Jul 22 18:45:12 I'm literally doing :C right now Jul 22 18:45:26 lov: LOL Jul 22 18:45:30 Keep getting this when I try launching my app: java.lang.RuntimeException: Stub! You are bundling a stubbed jar in the apk! Please move it to the classpath instead. Jul 22 18:45:31 marrrk: each wakelock consumes kernel resources; you really don't want to keep churning them in and out of existence Jul 22 18:45:38 you don't * Jul 22 18:45:44 Okay I can change that quickly. Jul 22 18:45:48 err, you don't 'dismiss' them -- you acquire & release them, like semaphores. Jul 22 18:45:51 LuxuryMode: seems rather self explanatory Jul 22 18:45:56 sorry yeah release is the word Jul 22 18:46:18 lov, cannot figure out the issue though. seems like the problem is when you add such a jar to /libs, but ive not added it to libs Jul 22 18:46:36 making things worse, another person with seemingly same configuration is able to launch app just fine Jul 22 18:46:39 LuxuryMode: where exactly does your jar live? Jul 22 18:46:45 how are you adding it? Jul 22 18:46:50 are you exporting it? Jul 22 18:47:01 i just added it as an external jar after seeing that runtime exception when it was in /libs Jul 22 18:47:03 But my question remains: That won't make the turning on of the screen more reliable, right? Jul 22 18:47:04 but doesnt help Jul 22 18:47:15 LuxuryMode: this sounds like you've linked in the SDK's stub android.jar directly instead of letting your app link against the real one at install time, or some crazy build snafu like that Jul 22 18:47:40 marrrk: no, tha tisn't relevant. the important part is how your code winds up running startAutomating() Jul 22 18:47:49 ctate, no its not the android.jar…different jar Jul 22 18:47:52 [and then of course when & how you *release* the wakelock later] Jul 22 18:48:04 LuxuryMode: or framework.jar or whichever it is Jul 22 18:48:10 not that either Jul 22 18:48:19 the message you're getting is exactly what's going on Jul 22 18:48:27 you're linking a .jar from the SDK into your app, inappropriately Jul 22 18:49:19 oh i see Jul 22 18:49:34 you don't ever add those .jars to your code directly Jul 22 18:49:36 so somewhere in the jar im including its doing that Jul 22 18:49:42 you just let them get picked up on your CLASSPATH Jul 22 18:49:45 ctate, i havent added those jars Jul 22 18:49:50 you've added *something* Jul 22 18:49:56 yes i know Jul 22 18:49:58 because it's running the code, and that code doesn't exist on device :) Jul 22 18:49:59 just clarifying Jul 22 18:50:08 its the jar that im adding that has added those Jul 22 18:50:15 LuxuryMode: sounds like it then Jul 22 18:50:29 https://gist.github.com/i-am-the-slime/868d612bcef3005a0f70 Jul 22 18:50:39 that's a short version of how I'm calling it Jul 22 18:52:30 ctate offhand, do you know if android's impl of nio MappedByteBuffers are robust & performant ? Jul 22 18:53:27 g00s: i'm confused. you're implying that nio is *ever* robust and performant. Jul 22 18:53:34 oh man Jul 22 18:53:41 Jul 22 18:54:23 i have no idea what our nio implementation is like. it's at least as good as the Harmony impl that is probably where it started, but i don't know whether we've done any specific work on it, since it's basically unused by any of the OS code Jul 22 18:55:01 if it's a fairly thin wrapper around anonymous mmaps or something, then it'll probably be pretty good and straightforward Jul 22 18:55:16 i mean, not for nothing is Android sitting on top of Linux Jul 22 18:56:01 marrrk: accessibility events probably aren't delivered while the device is asleep Jul 22 18:56:03 ctate: rabble rabble rabble rabble rabble Jul 22 18:56:23 lov: …. you're the Hamburgler? Jul 22 18:56:25 yeah, my assumption is that you're not getting the event, so your wakelock is never actually acquired Jul 22 18:56:32 ctate: that would be "robble" tyvm Jul 22 18:56:43 oh indeed pardon me Jul 22 18:56:45 I know that you keep yourself blissfully ignorant of pop-culture Jul 22 18:56:57 ctate: So do you have an idea on how to resolve that? I was thinking of triggering an alarm. Jul 22 18:57:11 the Hamburgler isn't pop culture any more; he's more like get-off-my-lawn nostalgia Jul 22 18:57:22 Well lov your assumption is wrong. Jul 22 18:57:27 marrrk: you can't do it in response to an accessibility event at all Jul 22 18:57:35 if they're not being delivered while the device is asleep Jul 22 18:57:50 But all of the code gets executed. Jul 22 18:57:52 (and frankly i don't see *why* they'd be delivered while the device is asleep; after all, the user is not interacting with the device in that state) Jul 22 18:57:54 Just the screen doesn't turn on. Jul 22 18:57:57 it gets executed *eventually* Jul 22 18:58:09 or do you mean while adb is plugged in or something? Jul 22 18:58:29 marrrk: the device never physically sleeps while the device is plugged in. Jul 22 18:58:40 the screen will turn off, but the CPU will always have a wakelock from the usb cable. Jul 22 18:58:45 But it does do stuff. Jul 22 18:58:54 It gets to a later stage where it needs the screen to be turned on and crashes. Jul 22 18:59:13 I had a theory that maybe the Acessibility stuff already has some kind of wake lock and that maybe it wouldn't grant me another one. Jul 22 18:59:16 oh, so when you said "it doesn't work" you actually meant "it crashes" Jul 22 18:59:17 … crashes? Jul 22 18:59:18 But that's probably wrong too. Jul 22 18:59:22 Well Jul 22 18:59:25 that would have been nice to hear in the first place. Jul 22 18:59:25 wakelock use won't crash you Jul 22 18:59:31 No, no Jul 22 18:59:33 maybe you should pastebin relevant code for that? Jul 22 18:59:58 I am having the AS click on the notification for example. Jul 22 19:00:00 anyway, you're saying PARTIAL_WAKE_LOCK Jul 22 19:00:09 if you read the docs for that it says Jul 22 19:00:10 * ctate | Wake lock level: Ensures that the CPU is running; the screen and keyboard backlight will be allowed to go off. Jul 22 19:00:15 i.e. it doens't turn on the screen. Jul 22 19:00:28 What about the other flag that says ACQUIRE CAUSES WAKEUP? Jul 22 19:00:33 I thought that would do that Jul 22 19:00:39 that's for screen on locks. Jul 22 19:00:43 you actually need two locks Jul 22 19:00:47 I had bright wake lock before Jul 22 19:00:49 you need a full lock Jul 22 19:00:51 but it's deprecated Jul 22 19:00:53 or full_bright, but you shouldn't use that Jul 22 19:00:55 marrrk: but that doesn't acquire the CPU. Jul 22 19:01:04 interesting Jul 22 19:01:25 Also the AS will do its stuff with or without wake lock Jul 22 19:01:27 a 'full' lock turns on the screen, a 'partial' lock keeps the cpu running Jul 22 19:01:40 actually the AS will mostly not run without a wakelock Jul 22 19:01:44 So I'll just get two? Jul 22 19:01:48 *everything* stops running when the device goes to sleep Jul 22 19:01:54 ^^ Jul 22 19:02:08 it's very important to realize that cellphones have two processors; the radio processor, and the application processor. Jul 22 19:02:15 If you're not holding a CPU wakelock, the application processor turns off Jul 22 19:02:36 So when I get a notification it's actually the radio processor telling me? Jul 22 19:02:39 no Jul 22 19:02:55 when you get a notification, the radio processor is waking up the application processor to deliver a messege Jul 22 19:03:12 please stop sayign "notification." that's a techncial term in the Android API and has nothing to do wiht accessibilty service. Jul 22 19:03:19 So yeah I guess if I subscribe to that with an AccessibilityService that will give some sort of wake lock to it. Jul 22 19:03:20 you get an accessibility callback :) Jul 22 19:03:28 whatever is actually displaying that notification is registering for broadcast intents. Jul 22 19:03:32 .... no ._. Jul 22 19:03:43 marrrk: notifications are just a convenient display mechanism Jul 22 19:03:47 yes I know Jul 22 19:03:57 when you get an accessibility callback, the device has been awakened for some reason and has given the accessibility service a chance to run Jul 22 19:04:01 at which point it calls your code Jul 22 19:04:09 note that this requires that hte device *already* be awake Jul 22 19:04:36 Good. So we agree that the AS holds some WakeLock for doing it's stuff. Jul 22 19:04:39 its* Jul 22 19:04:43 damn I always get that wrong Jul 22 19:04:54 no, the AS does not use wakelocks Jul 22 19:05:00 Oh okay. Sorry then. Jul 22 19:05:20 like i said, most stuff simply does not run while the device is asleep Jul 22 19:05:28 otherwise the battery would grind down to nothing immediately Jul 22 19:06:51 I'm probably wrong so forgive me if this is stupid again but if I comment out the acquiring of the wake lock in my code the accessibility service will still open the notifications for me and click on the notification and click around in the app that sent the notification in the first place. Wouldn't that contradict what you're saying? Jul 22 19:07:25 try again, but write parsable sentences Jul 22 19:07:51 right now, the wakelock is irrelevant the actual execution of your code Jul 22 19:08:03 because your code is only being executed when the device is *already awake* Jul 22 19:08:29 No it's not. Jul 22 19:08:29 backing up a bit, i don't get why you're using a wakelock in the first place Jul 22 19:08:56 is the device plugged in to usb while you're testing all this? Jul 22 19:09:01 I'm push the lock button. I send myself a Facebook message. The AS reacts to that by opening the notifications and clicking on it. Jul 22 19:09:08 Sometimes it is sometimes it's not. Jul 22 19:09:13 I will try now without it being plugged in. Jul 22 19:09:16 To make sure. Jul 22 19:09:20 when you're plugged in to usb, the device is always awake Jul 22 19:09:31 (because adb always holds a partial wakelock) Jul 22 19:09:53 also FB is waking the device up for a while in order to process the message Jul 22 19:10:14 Maybe that's it. Jul 22 19:10:26 and you're almost certainly coming along for the ride on that, because -- as i said -- the Accessibility Service does not acquire any wakelocks for you Jul 22 19:10:37 it simply does not run until something else causes the device to wake Jul 22 19:10:58 now, as a general point Jul 22 19:11:07 you never, EVER want to wake the device from sleep unless you have a really good reason to do so Jul 22 19:11:14 assume the device is in someone's purse Jul 22 19:11:23 what good did it do that you turn on the screen, other than to waste battery? Jul 22 19:11:40 (and it wastes a *lot* of battery to turn on the scren) Jul 22 19:12:34 Well what will happen is that the person won't be notified and the message will be responded to automatically. I want that behaviour. Jul 22 19:12:46 you don't need the screen to turn on for that Jul 22 19:12:54 also define "automatically"? Jul 22 19:13:25 within 2 minutes? how long does it take to rummage around in the purse and find the phone? Jul 22 19:13:33 instantly? overriding whatever the user might have wanted to do in response? Jul 22 19:13:35 etc Jul 22 19:13:40 Yes instantly. Jul 22 19:13:53 ok, you want to prevent the user from seeing the notification Jul 22 19:13:55 The user wants it to be responded to automatically saying "I'm not here right now". Jul 22 19:13:59 kk Jul 22 19:14:09 you *certainly* don't want to turn on the screen, then Jul 22 19:14:43 I was quite sure that committing text from a keyboard only works when the screen is on but I might be wrong (I'm quite often). Jul 22 19:14:51 ORLY Jul 22 19:14:53 that's interesting Jul 22 19:15:24 So yeah if I could avoid that I wouldn't turn the screen on. Jul 22 19:15:28 does it work when the device is screen-on but locked, i wonder Jul 22 19:15:38 yes that works if it does turn the screen on Jul 22 19:15:53 but that seemed random Jul 22 19:15:54 so okay, use a full lock to turn the screen on when you execute Jul 22 19:16:12 users will be able to blame you for low battery life, so that's taken care of Jul 22 19:16:25 [it'll show up in the battery info in settings] Jul 22 19:16:33 And accidental calls Jul 22 19:16:44 and sexts Jul 22 19:16:56 SimonVT: screen on but unlocked shouldn't be pocketdialing should it? Jul 22 19:17:03 that is, but NOT unlocked Jul 22 19:17:07 ctate: hope you don't buttdial 911 :> Jul 22 19:17:11 i guess it could buttdial 911 ha ha timing Jul 22 19:17:12 Pocket-unlock Jul 22 19:17:17 o/ Jul 22 19:17:19 ugh and that Jul 22 19:17:20 \o Jul 22 19:17:23 I put an overlay view over the stuff which receives touch events but doesn't do anything with them. Jul 22 19:17:31 ^^ Jul 22 19:17:44 you guys remembering this? http://www.zdnet.com/blog/hardware/android-sms-bug-sends-your-messages-to-random-contacts/10796 Jul 22 19:17:46 So touch input doesn't do anything. Jul 22 19:17:51 mmm, not sure that is going to work on recent versions Jul 22 19:18:03 It works on 4.1 Jul 22 19:18:34 But this thing about there always being a wake lock when on ADB is really interesting. Jul 22 19:19:26 What did you say how can I check what kinds of wake locks are being held? Jul 22 19:20:09 g00s: not really but thanks for the link from 3 years ago? Jul 22 19:20:19 marrrk: adb shell dumpsys power Jul 22 19:20:26 when you guys were talking about random texts /// Jul 22 19:20:27 I mean it would be much more sane to do this through some kind of API wherever possible anyway. Jul 22 19:21:17 Those texts aren't random, just the recipient Jul 22 19:21:58 Chainfire maybe you are in here http://www.peachpit.com/store/android-photography-take-better-photos-with-your-android-9780133521863 Jul 22 19:23:05 So, okay I do get my wake lock, that's alright. Jul 22 19:23:45 marrrk: right, but do you get your wakelock while there's already one to keep the phone awake so that you can get there? Jul 22 19:23:48 There's another one at the same time, which might be the one taken by Facebook Jul 22 19:24:07 Well yeah, if there always is one when hooked up through adb. Jul 22 19:24:12 How else would I check= Jul 22 19:24:30 well, A) dumpsys power will display what locks are held and who owns them Jul 22 19:24:44 There is this: Jul 22 19:24:53 and B) that's kind of the problem; the set of time where facebook holds the lock and the accessibility service tells you about a notification isn't necessarily overlapping Jul 22 19:24:53 PARTIAL_WAKE_LOCK 'Please wake up for once'ACQUIRE_CAUSES_WAKEUP activated (minState=0, uid=10178, pid=16104) which is mine Jul 22 19:25:04 and SCREEN_BRIGHT_WAKE_LOCK 'KEEP_SCREEN_ON_FLAG'ON_AFTER_RELEASE activated (minState=3, uid=1000, pid=581) Jul 22 19:25:14 adb shell ps | grep 581 Jul 22 19:25:16 Yeah that could be the problem. Jul 22 19:25:27 why didn't I think of that Jul 22 19:25:29 right, and afaik it's kind of an insurmountable problem. Jul 22 19:25:36 it's what we've been trying to point out the whole time ._. Jul 22 19:25:43 systejm_server Jul 22 19:25:49 I'm a bit slow sometimes, sorry. Jul 22 19:25:59 Is that process. Jul 22 19:26:26 systejm_server is Dutch for system_server Jul 22 19:26:50 So that's not FB, right? Jul 22 19:28:10 Okay but even if that doesn't have to overlap the stuff that the AS should be doing is always being executed. Just not the screen turned on. Jul 22 19:30:04 So if I can run arbitrary code I should be able to turn the screen on as well, right? Jul 22 19:30:37 marrrk: you can do a fair amount of you setup your app as an Administrator Jul 22 19:30:40 can't find the device galaxy S3 in the sdk, is there something I have forgot? Jul 22 19:31:01 It already is a deviceAdmin so I can lock the screen fast again. Jul 22 19:31:02 Niklas__E: where would you find a device name in the sdk? Jul 22 19:31:47 Hey is there a good walkthrough of how to upload a library project to maven? I am new to maven. Jul 22 19:32:06 Niklas__E: did you enable USB debugging? Jul 22 19:32:14 is starting android. and when I take android virtual devices -> new there is no device for galaxy S3 Jul 22 19:32:35 There's a few thousand other devices that aren't there as well Jul 22 19:33:01 They list nexus devices, but the only thing it sets up is the resolution Jul 22 19:33:04 Possibly heap as well Jul 22 19:33:07 Enter it manually Jul 22 19:33:18 marrrk: you still don't understand. It's not the screen on wakelock that's not overlapping, it's the cpu wakelock that's not overlapping. Jul 22 19:33:26 if someone signs up for a play store developer account, can the account be shared between developers on a team? Jul 22 19:33:34 aha, so I need to set everything up? Jul 22 19:33:36 marrrk: the point is that facebook can finish what it's doing, release its wakelock, then the system goes to sleep. Jul 22 19:33:41 catphish yes Jul 22 19:33:45 marrrk: later, when the device is woken up, the accessibility code is called. Jul 22 19:33:58 you have NO GUARANTEE that you'll be running in the same set of time that facebook holds the lock. Jul 22 19:34:07 lov: That's what you think it's doing but that's just not what's happening. Jul 22 19:34:13 >_< Jul 22 19:34:15 ok, whatever Jul 22 19:34:28 obviously you know more than I do, gl. Jul 22 19:34:31 All the code is being executed I get log messages and everything. Jul 22 19:34:51 I wouldn't get that in some cases if it were for that overlapping problem, right? Jul 22 19:40:13 Alright in that case I'm gonna try an alarm and report back if that helps. Jul 22 19:40:45 vbabiy: thanks Jul 22 19:47:15 i find it interesting that many apps are adopting this cards UI thing; the design guidelines don't mention anything about it Jul 22 19:47:33 to me it just seems like extra (ugly) chrome Jul 22 19:47:58 cards? Jul 22 19:48:02 I think I am out of the loop Jul 22 19:48:37 I like it Jul 22 19:49:39 are cards just rectangles? what is their functionality? i dont have a new device that has any apps with cards Jul 22 19:49:59 Yes Jul 22 19:50:17 can someone show an example of a card UI? Jul 22 19:50:23 here is one http://www.androidpolice.com/2013/07/22/reddit-now-updated-to-version-2-0-adds-card-ui-pull-down-subreddit-menu-and-more/ Jul 22 19:50:31 each card seems to have a menu button though Jul 22 19:50:37 Play store uses cards Jul 22 19:50:51 good ole PopupWindow Jul 22 19:51:04 my old device doesn't have the new play store; i'll hopefully see that soon if i get a new n7 Jul 22 19:51:38 The menu button is just another way of having contextual actions Jul 22 19:51:52 ok, but how do cards make things better ? Jul 22 19:52:05 what is their purpose ? Jul 22 19:52:38 To make the app pretty Jul 22 19:53:48 i think chrome in a UI should communicate something, whether affordance, etc … what does a card communicate ? Jul 22 19:54:07 I think WP has the best principle Jul 22 19:54:10 consolidated discrete view structures :-/ Jul 22 19:54:12 minimal chrome Jul 22 19:54:13 I'm sure there's a book somewhere that explains it Jul 22 19:54:50 nseidm1 typography, grids, layout can do that … without cards Jul 22 19:55:32 seems to me like somebody decided to add some unique flair to the android design language which is useless Jul 22 19:55:39 indeed, a card is just a layout pattern not a unique widget Jul 22 19:56:05 not the worst pattern Jul 22 19:56:19 hopefully it will be abandoned, like "the 6 pack" Jul 22 19:59:30 Six Pack was a great movie Jul 22 20:00:22 6 minute abs Jul 22 20:00:57 7's the key number here. Think about it. 7-Elevens. 7 dwarves. 7, man, that's the number. 7 chipmunks twirlin' on a branch, eatin' lots of sunflowers on my uncle's ranch. You know that old children's tale from the sea. It's like you're dreamin' about Gorgonzola cheese when it's clearly Brie time, baby. Step into my office. Jul 22 20:02:52 777 Jul 22 20:03:55 \666/ Jul 22 20:04:09 good song! Jul 22 20:04:47 If you're not happy with the first 7 minutes, we're gonna send you the extra minute free. You see? That's it. That's our motto. That's where we're comin' from. That's from "A" to "B". Jul 22 20:06:36 we got numeralogist astroligist alchemists doing programming Jul 22 20:07:54 is there ever a reason to check lint.xml files into version control? Jul 22 20:08:22 mmathis: i consider lint.xml to be a part of my build process Jul 22 20:08:38 unless you want everyone setting up different rules, then yes Jul 22 20:09:36 hm... ok Jul 22 20:09:52 just wondering because I have a bunch of empty lint.xml files laying around... Jul 22 20:12:08 if i install an app that reads calls made and all that can i get the history of all that? or do i only get the data since I've installed the app  Jul 22 20:14:51 I've flashed my Droid Eris in the past, but am having some trouble navigating in hboot recovery because my scroll ball doesn't work right. Is there a way I can load new custom firmware from the command line? Jul 22 20:15:00 acidjazz: I'd assume you'd only get history since you've installed the app, since you're passively listening. feel free to dive through the docs and see if there's an official method. Jul 22 20:15:05 jrcoco: #android-root please Jul 22 20:15:22 Thanks. Jul 22 20:22:33 hey, i want a layout that looks like this [text | a ] a label aligned to the left, and another in the center, this is my layout http://codepad.org/ja20zO8V Jul 22 20:22:46 i cant get the right text, to center. any idea why? Jul 22 20:24:39 lov: ive dived.. nothing that confirms nor denys that the CallLog call provides history previous to the app install Jul 22 20:25:24 I couldn't get the meaning of setListAdapter(new ArrayAdapter(getActivity(), android.R.layout.simple_list_item_activated_1, Shakespeare.TITLES)); Jul 22 20:25:44 nm Jul 22 20:25:46 please guide! its from default http://developer.android.com/guide/components/fragments.html Jul 22 20:25:56 Is it possible to have the new Gradle build system track changes made, and only update those when building rather than cleaning the entire project? Jul 22 20:26:10 here's the code paste: http://pastebin.com/qFTAVYQg Jul 22 20:27:05 pranav: an adapter provides views for your ListView to display Jul 22 20:33:21 does anybody have some positive experience with free app review sites and recommend one to me? Jul 22 20:35:07 Not one drop of good experience Jul 22 20:38:20 Not completely what you are looking for, but Google Analytics is pretty awesome for tracking how your users use your app which could give you some free feedback Jul 22 20:38:30 just something to note, and it's easy to use Jul 22 20:40:42 thanks for the hint but currently I don't want to track them :D Jul 22 20:41:51 EPG you could put analytics in your app with an option to disable it Jul 22 20:42:44 g00s, oh, didn't know that, thanks :) then I'll have a look Jul 22 20:42:49 Analytics is bad add, real time stats too Jul 22 20:42:56 *ass Jul 22 20:43:09 you can collect too much data Jul 22 20:43:15 chose stuff wisely Jul 22 20:44:54 But choose wisely, for while the true Grail will bring you life, the false Grail will take it from you. Jul 22 20:45:10 You have chosen... wisely. But, beware: the Grail cannot pass beyond the Great Seal, for that is the boundry, and the price, of immortality. Jul 22 20:47:12 collect ALL the data!! Jul 22 20:50:13 nseidm1: so, setListAdapter proves a cursor for a listView. what do cursor do ? Jul 22 20:52:00 pranav: cursor queries database for data Jul 22 20:52:22 nseidm1: Grails frameowork ? Jul 22 20:52:50 Afzal: setListAdapter(new ArrayAdapter(getActivity(), android.R.layout.simple_list_item_activated_1, Shakespeare.TITLES)); Jul 22 20:52:56 couldn't get this line boss Jul 22 20:53:32 that isn't a cursor if I'm right (?) Jul 22 20:54:37 Afzal: yes, i think the Reference in the android website meant it figuratively. sth like it provides data to feed the ListView as nseidm1 said. Jul 22 21:14:52 anyone here have experience w/ the Purchase Status API?? Jul 22 21:39:09 ctate still there ? Jul 22 21:39:47 was NIO avoided in the framework because it had a bad reputation (of being flaky)? Jul 22 21:40:37 NIO libraries are available, just no suprt awesome helper classes Jul 22 21:40:53 they have been there since api1 Jul 22 21:41:41 hey, is it possible to know using google play services if a the user that's running gave a +1 to a page or not? I dont want to ask for a +1 if the user already +1'ed the app Jul 22 21:42:00 g00s: more a matter of "why?" Jul 22 21:42:06 Java has this love/hate relationship with I/O Jul 22 21:42:16 and frankly the framework does little to no I/O on its own recognizance Jul 22 21:42:41 ok Jul 22 21:42:51 other than specific needs like accessing app resources, where for performance and RAM reasons there is significant custom infrastructure around mmap Jul 22 21:44:50 in particular, java hates nonblocking I/O Jul 22 21:44:59 and Android hates synchronicity Jul 22 21:45:01 fight! Jul 22 21:45:45 you could make everything a selector channel... Jul 22 21:45:49 then it'd be nonblocking io Jul 22 21:47:49 pfn: patches welcome! Jul 22 21:48:37 evanc do you recommend any particular gradle protobuf plugin for use with android? seems there are a few Jul 22 21:48:42 if I ever get around to hacking on it, I'd make patches Jul 22 21:50:26 ctate i was looking at SharedPreferencesImpl recently; seems like they write to the disk on a thread (ok, good for not blocking) but doesn't this risk data loss since the action is guarded by a service ? ( QueuedWork.singleThreadExecutor().execute(writeToDiskRunnable); )) Jul 22 21:50:49 for example, you commit() and then finish() your activity Jul 22 21:51:38 it's on disk when commit() returns Jul 22 21:52:18 although i see that this is not mentioned in the javadoc for commit(), only in the javadoc for apply(). >:( Jul 22 21:54:27 g00s: I don't use gradle, sorry. Jul 22 21:54:45 evanc ok, thanks Jul 22 22:04:06 is there a way to get a view inside a dialog fragment? findViewById() seems to be missing :/ Jul 22 22:19:43 Using OpenSL ES, and calling (*player)->Enqueue(player,buffer,len), does the buffer have to remain valid while it plays after calling Enqueue or can I recycle it? Jul 22 22:49:03 is there a way to get proxy settings for android from the system? Jul 22 23:16:06 Hello guys, I'm new to develloping for android but I'm following this http://developer.android.com/training/basics/firstapp/running-app.html guide on a recently updated version of Arch Linux (Linux 3.9.9-1) and I'm trying to stay away from Eclipse (since I like VIM better) but I'm not sure where to fint the ant program to create the *-debug.apk ?? Jul 22 23:17:11 memand: apt-get install ant (or rather, your distro's version of apt-get :)) Jul 22 23:17:32 thanks := Jul 22 23:17:37 :) Jul 22 23:20:37 JesusFreke: apache-ant right? Jul 22 23:20:52 sounds right Jul 22 23:22:50 JesusFreke: apche-ant it was ;) Jul 22 23:23:08 *apache-ant Jul 22 23:33:38 if apple comes out with a 13" iPad, that would be my ideal reading device Jul 22 23:34:01 they should release a 13" iPad with a keyboard attached Jul 22 23:34:20 :) Jul 22 23:36:32 hm, forgot amazon brought back the kindle dx; but i hear its not good for pdf Jul 22 23:53:28 Is there a basic/template/example project using the youtube API to search and select videos and do XXX with them? Jul 22 23:53:42 I rather not write it all myself, but only fill in the XXX part Jul 22 23:55:08 Xabster: Got that big of a porn collection? LOL.. :D Jul 22 23:55:17 :) Jul 22 23:56:54 What is the application that is the closest to "ollydbg" in the Android world? Jul 22 23:59:00 stanreg: there's not much for debugging at the bytecode level Jul 22 23:59:34 JesusFreke, the apks themselves are pretty reversable, however, right? Jul 22 23:59:39 I've done some preliminary work on a smali plugin for intellij IDEA, with support for bytecode level debugging, but it's nowhere near ready Jul 22 23:59:59 stanreg: yeah, smali/baksmali :) Jul 23 00:00:34 JesusFreke, gotcha. Once you decompile, can you 'run' the application in a simulator for debugging purposes? Jul 23 00:00:43 not really Jul 23 00:01:14 Is there a way to run with breakpoints and explore memory? Jul 23 00:01:28 is there a way? yes. is there a good way? no :) Jul 23 00:02:03 https://github.com/swdunlop/AndBug could work Jul 23 00:02:25 * stanreg looks Jul 23 00:02:34 basically a python jdwp implementation, where you can connect to an instance of dalvik running the application, and debug via jdwp commands Jul 23 00:03:31 jdb also works Jul 23 00:03:39 somewhat Jul 23 00:04:47 command line debugging? Jul 23 00:08:39 yea Jul 23 00:08:45 both of them Jul 23 00:10:10 oh, I forgot. there are some patches floating around for apktool (or maybe they're already in apktool? not sure) that can instrument the bytecode such that it can be debugged in an IDE. you can ask in #apktool for more info Jul 23 00:11:03 JesusFreke, do you know if eclipse can be used to run/debug android apps? Jul 23 00:11:11 JesusFreke quick intellij q; can you rename a content root as displayed in the tree w/o renaming its directory? Jul 23 00:11:28 stanreg: of course it can; that's what the SDK's eclipse integration does Jul 23 00:11:34 g00s: afaik, no. but I'm not positive Jul 23 00:11:39 you can also use straight Eclipse if you run ddms separately Jul 23 00:12:03 oh, it's back up? nice Jul 23 00:12:11 might have to sell Jul 23 00:12:23 wat stocks Jul 23 00:12:31 ctate, ddms? Jul 23 00:12:35 hah. mischan :) Jul 23 00:13:36 ddms is the dalvik debug bridge app that is run under the covers by the SDK's eclipse integration / ADT stuff Jul 23 00:13:50 it's also runnable as a standalone app Jul 23 00:17:29 for now :| Jul 23 00:17:36 seems deprecated Jul 23 00:17:49 :( Jul 23 00:18:00 it's the only game in town for platform development though, so.... Jul 23 00:18:16 i think they moved it into monitor though, right ? Jul 23 00:24:30 g00s: no idea. Jul 23 00:41:25 Leeds did you pre-order your ubuntu phone :P Jul 23 00:44:02 ha ha Jul 23 00:44:20 it runs android too :) Jul 23 00:44:41 maybe it should be a ubuntu phone, google edition :D Jul 23 00:44:47 nexus ubuntu phone Jul 23 00:46:21 i jsut watched the indigogo vid Jul 23 00:46:26 just* Jul 23 00:46:35 they designed an iPhone Jul 23 00:46:38 :) Jul 23 00:47:39 i really hate all the copies of that design, tis infuriating sometimes Jul 23 00:48:06 StingRay_ i think that misses the point; its the first phone i know of that can be a mobile and desktop replacement Jul 23 00:48:15 presumably the UI isn't the same for both modes? Jul 23 00:48:23 I mean the hardware Jul 23 00:48:32 oh, i thought it looked like Surface Jul 23 00:48:37 and no, it's not a desktop replacement Jul 23 00:48:51 we are about 40 years away from that Jul 23 00:48:52 well, not a desktop replacement for an aaarteest Jul 23 00:49:00 but maybe grandma Jul 23 00:49:06 it's a crap netbook replacement Jul 23 00:49:10 I'll give you that Jul 23 00:49:19 it replaces something nobody has or wants :) Jul 23 00:49:36 they are using a unique battery Jul 23 00:49:43 hey, i like the competition Jul 23 00:49:52 they can use a micro fusion cell Jul 23 00:50:05 I just wish people stopped with the iphone copies Jul 23 00:50:23 i dont even really like c++, but i'd rather do c++ for apps; i only like java for server side stuff Jul 23 00:50:47 although they say c++/qml or html5 Jul 23 00:50:50 they lost me at "web apps will be 1st class citizens" ;) Jul 23 00:50:55 StingRay_ you love html5 apps right ? Jul 23 00:51:03 :) Jul 23 00:51:13 is there an easy way to grab GL_MAX_TEXTURE_SIZE in a non-opengl oriented application?... :/ Jul 23 00:54:05 one thing i don't understand about qt/qml in this context; if you have a non-free app (presumably their store will allow those) do you have to pay the Qt license fee? last i checked it was pretty hefty Jul 23 00:57:45 anyone here try using H2 as a replacement for sqlite on android? interesting that it allows user defined functions and server mode over tcp/ip Jul 23 01:04:45 hm, i guess the h2 guy also started a little project called mvstore, like jdmb3/4 & mapdb Jul 23 01:05:24 anyone here used the purchase status api? Jul 23 01:06:16 wow, it even has r-tree indexes Jul 23 01:19:12 Hey guys, I'm trying to follow this http://developer.android.com/training/basics/firstapp/running-app.html guide, but when I use android to generate the project from cli I get a different set of files than I do when creating with Eclipse the command I used to generate the files was this 'android create project --target 15 --name MyFirstApp --path /home/memand/dev/android/MyOtherFirstApp --activity Jul 23 01:19:14 MainActivity --package com.example.myfirstapp' and this http://sprunge.us/ePCg is my output from doing 'android list targets' I'm not sure what to do about this since I don't like Eclipse and would love to be able to follow the guide from the cli instead Jul 23 01:57:32 I have a relativelayout with two imageviews in it, one is a sort of overlay that I need to align the left/top of the other Jul 23 01:57:53 re: ubuntu phone... I can't imagine any way whatsoever that they make their funding goal... Jul 23 01:58:26 the larger one (not overlay) has centerVertical set, and the other one has layout_alignTop set to the larger image Jul 23 01:58:50 but the top just doesn't want to line up, and I'm pretty sure it has to do with the centerVertical Jul 23 01:58:57 but can't figure out how to make it work Jul 23 01:59:08 maybe I should paste the layout stuff somewhere Jul 23 02:01:32 http://pastebin.com/r2iqre8x Jul 23 02:02:10 what I see is that the overlay starts a few pixels down from the top of the other one Jul 23 02:04:52 one has 5dp Jul 23 02:04:57 the other does not Jul 23 02:06:19 if I add it to the one htat does not, it pushes it further down Jul 23 02:06:51 no idea what it looks like, what your wanting, what your getting Jul 23 02:07:02 for the left - that's why I had 10dp of padding (to match 5dp padding + 5dp margin of the larger image) Jul 23 02:07:14 ok image coming up Jul 23 02:08:38 http://www.whatsbeef.net/wabz/image-layout.png Jul 23 02:08:58 I need that 'new' banner to align top/left with the thumbnail image Jul 23 02:09:28 What would be the best way to work with audiobook files on the external storage in a specific directory without the files showing up in music players? Jul 23 02:09:37 .nomedia Jul 23 02:10:06 wabz: now the full layout xml Jul 23 02:10:29 but how do i find them? Doesnt that keep them out of the mediastore? Jul 23 02:12:01 StingRay_: http://pastebin.com/p1y6HmqB Jul 23 02:15:13 how about just using a FrameLayout Jul 23 02:15:18 with view padding ? Jul 23 02:15:24 how would that not get you what your after ? Jul 23 02:16:49 so kinda like Jul 23 02:16:49 http://pastebin.com/DgpaHXyS Jul 23 02:18:06 yeah, I just got it to work with framelayout Jul 23 02:18:10 slightly different to that Jul 23 02:18:29 well the use of a relative layout really had no purpose Jul 23 02:18:31 :) Jul 23 02:18:54 yeah - I removed alignTop because it was obviously not doing what I wanted Jul 23 02:19:03 made the padding/margin the same as the other imageview, and it still wasn't right Jul 23 02:19:13 margin != padding Jul 23 02:19:14 but then the only change was relativelayout -> framelayout and it was ok Jul 23 02:19:27 yeah I know, but the first image has 5dp margin and 5dp paddingLeft Jul 23 02:19:29 and relativeLayout evaluates different to lin or frame Jul 23 02:19:40 wabz yes, 2 very diff things Jul 23 02:19:46 one relates to a view Jul 23 02:19:50 the other to layout Jul 23 02:20:14 when relating to layout, it then depends on how the parent deals with the params Jul 23 02:20:20 I still don't really understand why alignTop didn't do what I wanted Jul 23 02:20:50 in a relatvie layout you use rules Jul 23 02:20:52 Hey guys, I'm trying to follow this http://developer.android.com/training/basics/firstapp/running-app.html guide, but when I use android to generate the project from cli I get a different set of files than I do when creating with Eclipse the command I used to generate the files was this 'android create project --target 15 --name MyFirstApp --path /home/memand/dev/android/MyOtherFirstApp --activity Jul 23 02:20:53 leftOf Jul 23 02:20:54 MainActivity --package com.example.myfirstapp' and this http://sprunge.us/ePCg is my output from doing 'android list targets' I'm not sure what to do about this since I don't like Eclipse and would love to be able to follow the guide from the cli instead Jul 23 02:20:57 rightOf etc Jul 23 02:21:17 topToTopOf or whatever it's called :) Jul 23 02:23:56 hi Jul 23 02:25:58 any? Jul 23 02:26:11 why i have this red uri in my manifest? http://d.pr/i/jomq Jul 23 02:26:20 ii am using android studio Jul 23 02:30:25 thanks Jul 23 02:36:59 memand, what are you confused about, this is all straightforward Jul 23 02:43:01 Anyone familiar with Android OpenGL?! Jul 23 02:47:42 pfn: As you can see here https://drive.google.com/folderview?id=0B9OFzOS6GLqXQ1lEQVZyMk9Mb3c&usp=sharing the folder MyFirstApp is created with Eclipse and has the same AndroidManifest.xml and res/layout/activity_main.xml as described in the tutorial but is missing the build files so it cannot be built with ant the other folder (MyOtherFirstApp) has the build files but the AndroidManifest.xml is different Jul 23 02:47:43 and res/layout/ does not contain activity_main.xml but main.xml who is formated differently Jul 23 02:58:33 I hope that makes anny kind of sense? **** ENDING LOGGING AT Tue Jul 23 02:59:58 2013