**** BEGIN LOGGING AT Mon Oct 14 02:59:58 2013 Oct 14 03:32:14 for the most satisfying command line builds, use sbt and my plug-in Oct 14 03:32:26 lol Oct 14 03:32:41 any of you ever tried android on laptop? Oct 14 03:34:12 what Oct 14 03:34:17 android on laptop? Oct 14 03:34:39 yeah Oct 14 03:34:44 XXCoder1 oh yeah, who did i read about last week coming out with that ? Oct 14 03:34:52 XXCoder1, what does that mean Oct 14 03:35:16 http://www.engadget.com/2013/10/09/lenovo-ideapad-a10-leak/ Oct 14 03:35:32 http://www.android-x86.org Oct 14 03:35:39 oh wow Oct 14 03:36:03 now that's something Oct 14 03:36:03 lol Oct 14 03:36:16 gapps isn't supported though Oct 14 03:36:26 no x86 versions of those Oct 14 04:46:20 is it possible diable sync only for Email App? not Gmail.. official Email app Oct 14 04:49:44 chcked sync settings yet? Oct 14 04:52:32 Is there a way to scale a 9 patch image to a custom size? Oct 14 05:01:32 f2prateek, hm? Oct 14 05:01:58 A 9patch will scale to whatever size you ask it to scale to. Oct 14 05:04:40 How I can request the scale programatically? Oct 14 05:06:14 I don't think I understand you Oct 14 05:06:16 What are you trying to do? Oct 14 05:06:30 I'm not using it as a background for a view. Oct 14 05:08:26 I want to to draw one bitmap on top of the other. The top needs to be scaled, but can't use Bitmap.createScaledBitmap since it scales some text in the first bitmap, so I'm trying to see if I can use a 9 patch to specify stretchable regions Oct 14 05:10:16 newinandroid: I doubt it Oct 14 05:10:31 dragorn, what? Oct 14 05:10:33 newinandroid: that would be a setting within the app, other apps shouldn't have access to it Oct 14 05:10:44 newinandroid: modifying emails sync setting Oct 14 05:14:09 dragorn, marketing department wants this features Oct 14 05:15:21 newinandroid: put apropriately big price on them Oct 14 05:15:32 newinandroid: good for them? There's no way for you to alter another apps settings (at least, there sure shouldn't be). The only thing you could hope for, going through the app code, is if there is an intent publicly exposed which lets you tell it to change settings Oct 14 05:20:11 ok dragorn i understand Oct 14 05:22:52 if the email app uses its own account other than the google account you can control sync per account Oct 14 05:22:56 f2prateek: setBounds Oct 14 05:23:11 via contentresolver; that's about it afaik Oct 14 05:38:55 JakeWharton: sweet! led me to NinePatch#draw(Canvas, Rect) that worked a bit better for my case Oct 14 05:39:09 nice. didn't know that one existed Oct 14 06:16:31 How does the touch listener return the x,y coordinates of a touch action, if my thumbs are really fat for instance? Oct 14 06:17:12 return a specific x,y coordinate, i mean Oct 14 06:17:32 does it find the center of the entire area touched (ie under the finger/thumb pad) Oct 14 06:17:45 lasserix: it goes for center of the area Oct 14 06:17:58 makes sense, thanks Oct 14 06:20:48 Hey guys! I'm trying to animate a simple view. Linear layoun contains a textView and an imageView (for example). the Gravity is set to "center", so everything is in the center of the screen. The imageView visibility is set to gone and so text goes to the center of the screen itself. So the question is there's any chance to animate ImageView the way it makes textview moves smooth when i set imageView to appear with animatiom? Oct 14 06:23:24 does android system use anti-aliasing when drawing text for say, app titles in the app drawer? Oct 14 06:25:44 I assume that is backed by a TextView, which is backed by TextPaint that you can set an ANTI_ALIAS_FLAG on Oct 14 06:40:47 if i need to get the view dimensions for a custom keyboard doing my own IME, when's a good time to get dimensions (of the root view)? Oct 14 08:27:20 What's the best way to cancel a MotionEvent action move when sliding between two views so that the second view's listener is triggered if the motion event starts in the first view? Oct 14 08:43:22 Hey guys, quick question I have a backgroundservice that downloads assets required for my application. I have implemented a cancel button to allow user to cancel the download but it doesnt seem to actually stop the service. What is the proper way to stop it? Oct 14 08:44:16 http://dblosevn.chosd.com/289 Oct 14 08:45:35 Thats what I am doing now and it makes the notifcation that the download has been canceled but it is still downloading files and if you wait long enough you get the update complete dialog Oct 14 08:49:39 oh... stopping the service probally doesnt stop threads started by the service, guess I need another solution Oct 14 10:26:54 or what adb shell command needs to be done for long press on screen Oct 14 10:42:55 I really can use some help with copying a bitmap to the clipboard, anyone knows how to do this? (like the internal webbrowser can do: long click> copy)) Oct 14 11:01:28 any one used monkeyrunner to send long press screen event ? Oct 14 11:08:07 <[A3G1S]> can any 1 help me with writing Android.mk file ? Oct 14 11:20:47 In what apk is the lockscreen? Is it just a (system) app? Oct 14 11:22:40 Any Volley expert here? Oct 14 12:08:49 Do you guys know of a good way to test in-app billing? Oct 14 12:09:55 QA-grade testing, that is, providing the ability to remove purchases and try things over and over again on the same account Oct 14 12:13:52 anyone know if there's a list of available annotations in android stujdio? Oct 14 12:13:57 <^cheeky> morning o/ Oct 14 12:20:03 <^cheeky> so free aps need to do advertisments ? Oct 14 12:20:52 why would they Oct 14 12:23:46 <^cheeky> i was watching an IO session , they mentioned something about free apps , having advertisments, and i dislike downloading apps, with adverts, so i want to release errr ..mine.. free Oct 14 12:23:59 <^cheeky> with no adverts Oct 14 12:24:07 if you want to monetize them, you'll need some way of doing so Oct 14 12:24:18 ads is easiest, but ads are terrible. I would never install an app with ads Oct 14 12:24:49 <^cheeky> exaaaactly Oct 14 12:24:51 I'd rather have the option of getting the app for free on the app store, and donating to the developer via his own site Oct 14 12:25:19 <^cheeky> i mean my app is not mind breaking or anything but i just want users to use it .. that would make me feel awsomenessssss :)) Oct 14 12:25:23 Sadly, most people don't think like this, so it's probably hard to live off that business model Oct 14 12:26:00 most apps don't make money, the lucky few make a couple of bucks Oct 14 12:26:27 <^cheeky> heh Oct 14 12:26:52 if you don't plan on making money with it, just release it on the appstore without ads Oct 14 12:27:06 and maybe consider a free license to, so people can view the source code Oct 14 12:27:23 I really can use some help with copying a bitmap to the clipboard, anyone knows how to do this? (like the internal webbrowser can do: long click> copy)) Oct 14 12:27:26 <^cheeky> i overcoplicated everything, no sleep i was overwhelmed myself, and i think i right now i figured out how to get the rest of my app working Oct 14 12:27:26 ads are profitless unless your in the millions of users ballpark Oct 14 12:28:50 <^cheeky> yaaaah , i am going to let them see my code .... even though i am kinda shy coz its gonna show how bad of a programmer i am , but i want the feed back other wise ill always beN00BLET hehe Oct 14 12:28:52 drstikko: no way a bitmap is going to the clipboard, a url sure Oct 14 12:30:04 <^cheeky> i just downloaded the googgle iIO and opened up in android studio, some files seems to be missing , but wow its really organised i like :). wish i could see gmmail app in android studio Oct 14 12:32:01 nseidm1: but how do you explain the copy/past behavior of the webbrowser then? It is capable of copying an image to the clipboard. Oct 14 12:32:17 <^cheeky> free license , thats my other question , where do i mention i used picasso and volley in my app, coz thats no my code Oct 14 12:32:17 drstikko: it's copying the url to the clipboard Oct 14 12:33:12 nseidm1: so what does this url has extra when you paste it into an email message? In the email message you'll see the image not the url Oct 14 12:33:32 the email shows the image yes, from the url Oct 14 12:33:38 so.. anyone here know a recent guide for porting c++/opengl apps to android? Oct 14 12:33:54 nseidm1: no, because when pasting url's you'll get text. Oct 14 12:34:10 nseidm1: the screenshot also appears on the clipboard Oct 14 12:34:21 nseidm1: I mean if you take one Oct 14 12:34:24 so put a byte array in the clipboard, no biggue Oct 14 12:34:58 nseidm1: tried that, but then it puts the text reprentation of that array Oct 14 12:35:10 saw that coming a mile away Oct 14 12:35:37 specify the mime type in the ClipData Oct 14 12:35:50 http://developer.android.com/guide/topics/text/copy-paste.html Oct 14 12:36:13 nseidm1: visit that page several times Oct 14 12:39:08 nseidm1: it has predefined mimetypes Oct 14 12:40:07 just use a Uri to the image Oct 14 12:40:22 Gmail uses the Uri to process a clipped image from the url Oct 14 12:41:52 nseidm1: that gives the Uri text when pasting Oct 14 12:43:29 so you think it's something other than what's in the copy-paste api docs above? Oct 14 12:43:37 That would depend entirely on how the target handles that mime type Oct 14 12:46:51 nseidm1: well that's the only thing I can think of ;) Oct 14 12:48:36 rurufufuss: familiarize yourself with the lifecycle of an Android app first, as that'll likely be a good chunk of the port work Oct 14 12:49:21 rurufufuss: though if it's OpenGL and not OpenGL ES that'll take a good amount as well :/ Oct 14 12:49:37 zinx: fortunately it's opengl ES :D Oct 14 12:50:07 hmm, android dev crashcourse it is then Oct 14 12:50:56 nseidm1/SimonVT: even an Image from the gallery can be copied to the clipboard. If you paste it into the body it displays the image. But suppose you want to paste it into the subject field, it is not possible. You will see in the clipboard you cannot select the image Oct 14 12:51:18 rurufufuss: the other bits are the bits common to porting - setting up the opengl display, playing sound, accepting input Oct 14 12:51:48 drstikko: then lookup the source for the Gallery app. This only applies if you're using the AOSP clipboard and not some Samsung debochery. Oct 14 12:52:10 zinx: do I have to have multiple android phones, or is just one enough for testing? Oct 14 12:52:23 also it sounds like you've done this before, how was it? Oct 14 12:52:27 I have a Galaxy S4, do you think it is samsung related? Oct 14 12:53:10 hi! Got a question on DNS: If an Android Phone joins a wifi network - does it take over the dns addresses provided from the wifi network? Oct 14 12:53:35 nseidm1: can you try to copy paste with the default gallery and default mail app (not the GMail)? Oct 14 12:53:42 rurufufuss: i have not ported anything OGL ES to Android Oct 14 12:54:17 rurufufuss: it's good to test on more than one device, but if you stick with the standard APIs you should be ok usually Oct 14 12:54:44 hmm, fair enough Oct 14 12:54:48 rurufufuss: start using non-standard stuff and all bets are off, though (this is the most frequent reason apps don't work on some phones) Oct 14 12:55:15 hm nice.. android studio is generating longer id names for files with long filenames in res/raw Oct 14 12:55:21 longer than eclipse Oct 14 12:55:29 hmm, I wonder if posix system calls have to be ported to something android specific as well? Oct 14 12:56:11 rurufufuss: some posix calls aren't supported by bionic, but most are. you'll have to use the Android functions to get a local storage path though Oct 14 12:56:32 zinx: sounds similar to what i've been doing for ios Oct 14 12:56:38 sweet, looks like this will at least be doable Oct 14 12:56:42 yes Oct 14 12:57:03 drstikko: On my Galaxy S4 I select copy on an image, pasting it into a gmail does nothing Oct 14 12:57:15 are you using cliptray? Oct 14 12:57:51 on that note, what's phone model is recommended for testing, if any? Oct 14 12:57:53 nseidm1: not into gmail, but the normal mail app. you can also look at the clipboard Oct 14 12:58:06 nsdeim1: no cliptray Oct 14 12:58:44 I don't have any emails in my regular mail app, this sounds like Samsung hocus pocus anyway. Oct 14 12:59:10 nsdeim1: but what is your clipboard showing? Oct 14 12:59:29 pictures Oct 14 12:59:35 exactly Oct 14 13:00:05 it's not android, it's Samsung Oct 14 13:00:13 won't work on anyone elses device Oct 14 13:01:34 nseidm1: mmm , before I accept that, I'll ask around ;) Oct 14 13:11:48 hello, I have vars like this public static final String KEY_NAME = "name"; that repeats in most of my classes Oct 14 13:11:53 what the way to refactor that Oct 14 13:12:10 create a class with only static fields / Oct 14 13:12:10 ? Oct 14 13:15:02 anyone ? Oct 14 13:15:44 <^cheeky> i downloaded IOSchedule app, from there i noticed volley, i copied the volley.jar and then pasted it in android studio. in the library folder, i then added compile files('libs/volley.jar') in the build.gradle, i then optimized imports and rebuild the project but when i type in RequestQueue it says it cant find it, how can i actually use volley with android studio. please anyone could give me a suggestion .. please Oct 14 13:16:24 is it possible to update a nexus s to ICS+ w/o a sim card/messing with rooting it? Oct 14 13:17:20 nexus s should have OTA/factory images up to 4.1, shouldn't it? Oct 14 13:17:22 The Nexus S got official updates, so, yes. Oct 14 13:17:42 4.1.2 are the latest official images available, iirc. Oct 14 13:17:48 Directly available from Google, even. Oct 14 13:18:45 system update shows "up to date" Oct 14 13:25:39 <^cheeky> can anyone please show/help me with inter grating volley into android studio /? Oct 14 13:27:30 funkbox: And you are on...? Oct 14 13:27:41 2.3.6 Oct 14 13:27:52 looks like i gots to dl it and flash it using adb Oct 14 13:27:54 ain't no thang Oct 14 13:27:58 Mine always nagged about an update being available. Oct 14 13:28:09 Yeah, go for adb, I think they provide a shellscript which does everything automatically. Oct 14 13:31:03 you can either grab the factory image and do a full flash, or find the upgrade package and do a sideload Oct 14 13:32:44 yeah imma full flash. did a min sdk = 14, need to ugprade base device :) Oct 14 13:33:02 funkbox: adb won't help with flashing a rom, fastboot is the only way from the bootloader Oct 14 13:36:04 nseidm1: you can use adb to push an OTA upgrade package manually Oct 14 13:37:01 that's not flashing a rom Oct 14 13:37:05 this is flashing a rom: https://developers.google.com/android/nexus/images Oct 14 13:37:18 yeah i did it Oct 14 13:38:40 <^cheeky> what steps would i need to import a .jar file into android studio Oct 14 13:40:13 <^cheeky> i see my jar in the enternal libraries but i cant seem to actually use it in my code Oct 14 13:40:37 add the dependency to build.gradle Oct 14 13:40:37 compile files('libs/volley.jar') Oct 14 13:42:09 <^cheeky> i added, compile files line in my build.gradle but it still does not see it Oct 14 13:45:29 <^cheeky> nseidm1: http://pastie.org/8401359 <---- is this correct Oct 14 13:48:10 just check it out as a module from git Oct 14 13:49:42 <^cheeky> within, android studio ? i know i can do that with eclipse Oct 14 13:58:25 <^cheeky> ok i tired to downlod it but it creates a project by itself, and when i try import the module it says it cannot import the modile :( Oct 14 13:58:27 <^cheeky> *module Oct 14 14:02:04 <^cheeky> i keep getting Gradle error: cannot find symbol class RequestQueue Oct 14 14:05:15 <^cheeky> i closed android studio re-opened it , refreshed, and did a clean still nothing Oct 14 14:05:20 <^cheeky> what am i doing wrong Oct 14 14:19:52 hey guys. from the UX point of view, what is the best solution for having something like a filterable spinner? Oct 14 14:23:33 just modify the data backing the adapter of the spinner Oct 14 14:33:25 <^cheeky> can anyone point me to a document or somthing i could use to use volley in my project Oct 14 14:37:08 There are few, if any. Did you watch the I/O presentation? You're probably best off just figuring it our by looking at the source. Oct 14 14:37:38 volley? what is that? Oct 14 14:37:42 :/ Oct 14 14:38:11 <^cheeky> i am using it .. so i can wrap this app up , i only have a few hours, coz i really need to start packing and move :( Oct 14 14:38:50 You make a request queue and submit things to it. Oct 14 14:38:52 <^cheeky> no i havent watched the IO session ill do that or ill just get the source and input the files into the project and see if that would work or something Oct 14 14:39:08 There's not much more you need than that... Oct 14 14:40:09 <^cheeky> i hop thats true, i implemented service and sending requested that way to my jason parsing class, but i dont think scaled well, so i opted to use this sine time-- for me Oct 14 14:40:14 <^cheeky> *since Oct 14 14:51:40 I would like to create different library .so file from jni directory. Oct 14 15:01:42 I have placed one library code in jni directory and another in jni/modbus, I treid using different module and Android.mk file using http://stackoverflow.com/questions/14516268/ndk-compiling-multiple-libraries link, but difference is that only I have all files in jni directory while link says I have to make it outside jni directory Oct 14 15:02:09 Does anybody can have idea on how to compile putthing then within jni directory Oct 14 15:15:21 Hi there! Oct 14 15:15:38 harpal, your questions make no sense Oct 14 15:15:39 what. Oct 14 15:15:45 Is it possible to define a fading edge that fades to *transparent*, not a solid color? Oct 14 15:17:30 e.g. I have a LinearLayout where I use the fading edge. I can define the getSolidColor() to return the background color of the activity. However, if the LinearLayout is placed above a different view, the fading edge will be placed on top of the view... Oct 14 15:18:07 marcreichelt, hmm… you could do a gradient between your color and #00000000 Oct 14 15:18:14 or if that doesn't work, use a custom view Oct 14 15:18:19 and define it as transluscent Oct 14 15:20:38 Mavrik, I don't think this will work. I think the fading edge is drawn *on top* of the children. What I would need is a solution where the items themselves are faded to transparent. Oct 14 15:21:18 marcreichelt, and? Oct 14 15:21:30 #00000000 is transparent color. Oct 14 15:21:38 or Color.TRANSLUSCENT if you want it put like that. Oct 14 15:21:44 Mavrik, I know :) Oct 14 15:21:55 problem is the color that is faded to - i.e. black Oct 14 15:22:01 that's not transparent Oct 14 15:22:12 alpha channel. Oct 14 15:22:13 what I would need is a (sort of) mask Oct 14 15:22:23 well as I said Oct 14 15:22:24 use a custom view Oct 14 15:22:29 you'll get a transluscent canvas Oct 14 15:22:32 draw whatever on it Oct 14 15:23:43 Mavrik, that's something I can't afford, as I am using many (different) views in the LinearLayout Oct 14 15:23:53 and view states etc. Oct 14 15:24:13 I would need to convert them to canvas drawing methods, too Oct 14 15:24:35 wait why Oct 14 15:24:45 if you just want a transparent layer above them? Oct 14 15:25:20 Fading edges are deprecated.. Just sayin Oct 14 15:26:16 Mavrik, okay, let's put it that way Oct 14 15:27:01 I need to make changes to the Canvas before the children draw on it Oct 14 15:28:36 and I would need a feature where I can define an area to act as a mask for everything that is drawn from there Oct 14 15:28:42 is that possible? Oct 14 15:31:27 marcreichelt: http://developer.android.com/reference/android/graphics/drawable/ClipDrawable.html Oct 14 15:36:29 What's a good project for a beginner? I thought about making a simple calculator app, but got stuck making the layout. On a related note, how would you create the layout for a calculator? Thanks. Oct 14 15:37:27 Anybody here having an issue with the link that Google Play gives for app testing never goes live? Oct 14 15:38:21 Cyph0n_: You need a TextView at the top for your display and a bunch of Buttons under that? Oct 14 15:39:50 <^cheeky> :( i sukz Oct 14 15:40:04 Bleeptech: it goes live for the G+ group Oct 14 15:55:56 Cyph0n_: Did you figure it out? Oct 14 15:57:03 So, I finally get properly started on android development, after several false starts. Is it just me, or is it generally weird and not-particularly-sane when you want to add a library to an android project (resources or not)? I ultimately succeeded with android studio, but not without manually invoking gradle to fix the mystical dependancy failure that would cause it to build but not Oct 14 15:57:03 package my dependancy in the apk. Oct 14 15:57:59 Is there some better solution that doesn't involve either android studio, eclipse, and is more convenient than command-line, that will allow inclusion of a support library without mysterious nonsense? Oct 14 15:59:01 plusmetric: including the dependency just depends on what build tool you use. i haven't had too bad of a problem using gradle Oct 14 15:59:05 plusmetric: Yes, But the blood and chicken feathers all over the keyboard isn't worth it.. Oct 14 16:00:05 * Bleeptech is working on the assumption that 40% of this is Black Magic... Oct 14 16:00:59 jbraeg: considering it appears that android studio wraps gradle (poorly), that sounds like sane advice. Is adding support libraries that include resources relativelyusing a pure-gradle build environment, and if so, where can I get me one of those environments, since necro-chicken IDE? Oct 14 16:01:07 err, sans necro-chicken. Oct 14 16:02:17 Rofl.. I'm not sure if that should be a font name or a punk band.. LOL Oct 14 16:02:47 I'd buy that CD in a heart-beat Oct 14 16:03:39 plusmetric: android support libraries are package as aar, and a few projects build to that format. for example, you can add the sherlock library by doing like: Oct 14 16:03:40 compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' Oct 14 16:04:20 how to do a longclick/longpress/longtouch on screen using monkeyrunner ? Oct 14 16:04:22 any other project you just add to the path as a subproject (if you dont want to compile and package it yourself) Oct 14 16:04:55 what adb shell command to use to get long press touch on screen ? Oct 14 16:05:58 WTH??? I uploaded the apk.. It says it's published, I AM the G+ group, But if I uninstall the dev copy and try to install from the link they gave me I get a 404.. Oct 14 16:08:40 Bleeptech: is this one of those things where it may take an hour or three for things to show up? Oct 14 16:09:35 And I uploaded the blasted thing on the 10'th.. Oct 14 16:11:27 where is the list of adb shell commands ? Oct 14 16:12:26 mms_: https://developer.android.com/tools/help/adb.html Oct 14 16:12:47 jbraeg: I mean adb shell commands and not just adb. Oct 14 16:13:26 mms_: what do you mean? like, once you're in the shell, what commands can be run? Oct 14 16:13:30 jbraeg: I am actually looking how to do a long press using adb shell command of some type. Oct 14 16:13:49 jbraeg: kind of right....they have input command Oct 14 16:14:17 jbraeg: I want to do long press on screen to either x, y co-or or a view Oct 14 16:14:44 I was looking at monkeyrunner but did not find such api to work Oct 14 16:15:10 I am looking at androidviewclient but it also does not have such api Oct 14 16:15:46 oh. i'm not sure where a list like that would be, but you could always glance through the commands (there's not a ton on android) Oct 14 16:16:07 like, just "ls /system/bin" in the shell Oct 14 16:16:37 you can't long press from adb... Oct 14 16:16:52 mms_: And it's non Posix.. So flags may not work. Oct 14 16:18:26 mms_: i wonder if you could do a keydown event, sleep, then keyup Oct 14 16:18:54 jbraeg: keydown will not give screen based thing. Oct 14 16:19:12 jbraeg: I want to target to view/widget/x,y Oct 14 16:19:14 android comes w/ a mutant version of busybox. Most standard 'nix commands are there, plus the android specific utilities. You can install busybox yourself somewhere that is an executeable filesystem (/data/local/tmp usually works) if you want more stock commands, beyond that you get into custom rom territory and more or less out of this channels target Oct 14 16:19:58 jbraeg: I hope you get my problem Oct 14 16:20:12 jbraeg: its like doing long tap on screen to get context menu Oct 14 16:20:12 mms_: yea, i've got it, i'm not sure of a way to do that Oct 14 16:20:20 jbraeg: ok Oct 14 16:20:39 is there 4.4 presentation going on somewhere or not? Oct 14 16:20:42 if you want to touch at a specific coordinate, use monkeyrunner Oct 14 16:20:45 I am not sure how come I am only one asking this question Oct 14 16:21:09 dragorn: I dont want just touch....long press like we get context menu Oct 14 16:21:38 ok? Again, use monkeyrunner Oct 14 16:21:41 dragorn: I have tried down, sleep, up trick Oct 14 16:21:45 mms_: Tell monkeyrunner to use a long duration? Oct 14 16:21:48 just does nt work Oct 14 16:22:09 using press, or touch Oct 14 16:22:20 and is debugging turned on in your app (not sure if monkey requires it) Oct 14 16:22:31 monkeyrunner is pretty much your only option unless you want to rewrite the emulator Oct 14 16:22:32 Bleeptech: duration is only for swipte Oct 14 16:23:13 or use google: https://groups.google.com/forum/#!topic/android-developers/GDIR2KGE1FY Oct 14 16:23:28 "Basicaly, you just have to use the "drag" function with the same point for "start" and "end", you can adjust the time to 3-4 seconds" Oct 14 16:23:41 mms_: Set the cat on it? (Only other thing I can htink of quickly) Oct 14 16:23:47 I used that already Oct 14 16:23:49 does not work Oct 14 16:24:00 guess it can't be done then Oct 14 16:24:06 he is using 10 sec Oct 14 16:24:12 I have tried using 10 sec Oct 14 16:25:29 thats the reason I thought to try adb command if any Oct 14 16:27:32 mms_: adb just let's you do the commands you can do from a terminal emulator on a real device, on a terminal elsewhere. Oct 14 16:27:41 ok, I am officially in love with gradle, if it works as advertised. Oct 14 16:27:48 http://stackoverflow.com/questions/19332973/androidviewclient-touch-long-press-api-17 Oct 14 16:27:56 I had raised this question Oct 14 16:28:15 mms_: think telnet or ssh for functionallty Oct 14 16:28:45 Bleeptech: I am using AVC instead of monkeyrunner hope the folks provide some guidance Oct 14 16:29:19 I am surprised there are not enough references to this question on web Oct 14 16:30:02 Ahh.. My version of monkeyrunner is give a friends kid 2 candy bars and an old phone.. Oct 14 16:30:07 what's the scenario, here, mms_? You've got a piece of code you're trying to hit via a long press, and it's never triggered? Oct 14 16:30:59 plusmetric: scenario is that I have piece of code triggerring long press and result should be seen on device....you got it other way round Oct 14 16:31:09 plusmetric: I am doing automation testing Oct 14 16:32:12 your best bet if you're doing repetitive testing in a controlled environment is probably to root the device and inject touch events at the driver level Oct 14 16:32:16 plusmetric: I see down, sleep, up trick giving same result as touch. even swipe/drag behaves as touch Oct 14 16:32:23 which may be doable through a /dev/input hook, or may require a lot more work Oct 14 16:32:37 dragorn: problem is rooting Oct 14 16:32:55 dragorn: I think I cannot have luxury to use rooted phone Oct 14 16:33:38 when touch, swipe can work unrooted. I think long click / long press should not be big deal. Oct 14 16:33:42 this is for testing? Oct 14 16:33:45 mms_: Does it require a real phone? Can you do it in the emulator and root that? Oct 14 16:34:12 then again, instrumented tests don't actually appear on device, do they? Oct 14 16:34:35 mms_: Or use an old phone if you do not require a minimum API level Oct 14 16:34:45 Bleeptech: nope real phone is needed Oct 14 16:35:04 its got to be 4.* Oct 14 16:35:22 api level 17 onwards Oct 14 16:35:46 from what I read monkey runner is not having this functionality Oct 14 16:36:31 mms_: Grab a Droid-X and flash it to ICS? That's what I had to do to get 4.x to start testing.. I used the miui.us roms. Oct 14 16:36:32 * pfn ponders writing his own lightflow variant Oct 14 16:36:50 since no one seems to be in any rush to implement notificationlistenerservice Oct 14 16:37:34 pfn, instrumented tests show up on device Oct 14 16:37:54 it actually has to be unlocked as well if you test UI Oct 14 16:38:36 interesting, maybe because I didn't have my activity show, and I only created it Oct 14 16:38:47 Bleeptech: I cannot start flashing roms...I have to use stock roms Oct 14 16:38:48 I don't recall them showing up in my instrumented tests Oct 14 16:38:58 pfn, probably, I used robotium and you could see it clicking around Oct 14 16:39:05 mms_, anyway, use an instrumented test and synthetic long click Oct 14 16:39:06 and I had problems since devices had to be unlocked and running Oct 14 16:39:20 pfn: its code running directly on device Oct 14 16:39:40 pfn: I am using code from command prompt Oct 14 16:40:01 pfn: I know via apks like CTS I can do that Oct 14 16:40:29 mms_: Is this a case where you can plug in teh data cable and control it from a PC? Oct 14 16:40:52 Bleeptech: yes Oct 14 16:41:20 basically I dont have to load code to device Oct 14 16:43:12 well sounds like we have not resolved this issue yet Oct 14 16:43:15 mms_: Google plogcat and use lots of "Log.d("TAG"," Foo 000x");" to find out where your code is acting up? Oct 14 16:43:46 Bleeptech: its not acting up any where...I need way to trigger event Oct 14 16:43:58 mms_, so am instrument Oct 14 16:44:01 that's from the commandline Oct 14 16:44:18 pfn: instrumetation needs code installed on device Oct 14 16:44:27 * Bleeptech had a file that was more log calls than code because of id10t errors.. Oct 14 16:45:19 well if any one finds answer please reply http://stackoverflow.com/questions/19332973/androidviewclient-touch-long-press-api-17 Oct 14 16:45:31 regards bye Oct 14 16:57:38 Hi, i wanted to know how to display images in gridview after fetching the image source from internet? Oct 14 16:58:44 wtf is the point if you can't have code installed on the device Oct 14 16:58:59 the answer is instrumentation.... Oct 14 17:00:19 <^cheeky> can some one help me i have spend 4 hours .. trying to use volley, i even moved source files into my project folder and when i try to run the project i get 57 errors Gradle package.com.android.Response ... and all others are missing Oct 14 17:16:21 * Ge0rG finally traced back why Android SSL is using RC4-MD5 by default... http://op-co.de/blog/posts/android_ssl_downgrade/ Oct 14 17:25:37 hey guys… what limitations id have developing my app in Qt for android? Oct 14 17:30:57 http://op-co.de/blog/posts/android_ssl_downgrade/ :) Oct 14 17:33:47 edcba: you can ask me about it Oct 14 17:36:03 edcba: you got it via https://news.ycombinator.com/item?id=6548391 ? Oct 14 17:43:40 i'm set.onSeekCompleteListener in onPrepared(MediaPlayer mp) of my VideoView however the completelistener is never fired... the onPrepare callback is fired... whats wrong? Oct 14 17:44:37 s/set./mp/ Oct 14 17:47:35 This is getting ridiculous.. I published the app on Fri morning, Just pasted the link Google gave me for the alpha test as the welcome message for the group and I still get a 404 trying to get to it.. Oct 14 18:06:37 Hey. So using a custom listview, every time I change the list in some way, everything seems to reset to default. It happens when I scroll and the item leaves to current view, it happens when I add new elements to my custom listview, it even happens when I delete an item. I'm obviously missing something here, so any tips? Oct 14 18:07:23 Moopz: onSaveInstanceState/onRestoreInstanceState ? Oct 14 18:07:49 What does reset to default mean? Oct 14 18:08:15 Bleeptech: Sorry? Oct 14 18:08:24 SimonVT: :) Oct 14 18:08:55 SimonVT: Well I have a seekbar in each element for example, which discards what it was set to and simply goes back to its default position. Same with my EditTexts Oct 14 18:09:15 Are you not setting these values in getView? Oct 14 18:10:38 SimonVT: Yeah I am. Oct 14 18:10:50 SimonVT: At least, I assume I am. Oct 14 18:10:59 Moopz: I think that answers the question.. I had the same issue with orientation changes.. If it leaves the screen it's destroyed and re-created (or at least that's the way I understand it) Oct 14 18:11:27 Bleeptech: But then how do I get it to save the changes so to say? Oct 14 18:11:53 Are you updating your dataset when the seekbar changes position and when new text is entered? Oct 14 18:12:03 If not, then you're not setting the values in getView Oct 14 18:12:13 Moopz: You have to implement onSaveInstanceState & onRestoreInstanceState to egt your data to persist. Oct 14 18:12:25 Hi, does anyone know where I can join a channel to discuss Android A11y issues? Oct 14 18:13:54 SimonVT: My dataset? I'm not saving the values to any list or anything, if that's what you mean? Oct 14 18:14:07 Bleeptech: I assume this goes into my activity? Oct 14 18:14:37 Do you know how listview works? Only views for the current visibles items are created, and then reused for other positions in the list Oct 14 18:15:13 If you don't have a list of data, then how are you going to update the views with data for their current position? Oct 14 18:16:14 Moopz: Check this out and see if it helps. http://stackoverflow.com/questions/16769654/how-to-use-onsaveinstancestate-and-onrestoreinstancestate Oct 14 18:16:26 SimonVT: I know that. I watched that Google IO video on Adapters. However I disabled the currentView check, since it was causing repeating elements, and the list won't have more than 20 items anyway. Oct 14 18:16:50 Okay, so you just create a new view each time a position is shown Oct 14 18:16:58 And not setting any data on these positions Oct 14 18:17:03 Of course it's "reset" Oct 14 18:17:50 SimonVT: So how would I go about it? Would I have to make a list for each thing I want to save for each item? Oct 14 18:18:13 Well, you need some way to save the data the user has entered Oct 14 18:18:27 And then you need to set that data on the view when getView is called for a position Oct 14 18:19:31 SimonVT: But where would I set the save method? would I have to have a listener on each of my elements within my item to know if stuff has changed? Oct 14 18:19:38 A List is fitting for a ListView, but that's up to you Oct 14 18:20:13 Well, there's no way to get notified when a view is going off screen Oct 14 18:20:29 So you'll probably have to update the dataset as the user is changing the data Oct 14 18:20:35 hey guys… what limitations id have developing my app in Qt for android? Oct 14 18:20:55 SimonVT: Well that's a bummer. But thanks. Oct 14 18:22:28 SimonVT: You ever put anything on Google Play? Oct 14 18:22:30 Bleeptech: And thanks, I'll look into that. Oct 14 18:22:45 * Bleeptech is having hell with setting up an Alpha test Oct 14 18:25:11 Published the app on Fri morning, Pasted the link Google gave me as the welcome message for the group and I'm still getting a 404 today.. Oct 14 18:27:59 BobLoblaw, lol. nice name Oct 14 18:28:24 you, sir, are a mouthful Oct 14 18:28:28 take a look at my blog... Oct 14 18:28:42 :P Oct 14 18:38:06 I'm thinking about making my app free with ads... Would this be a good move? Oct 14 18:39:42 Unless you have A LOT of users, ads are pointless Oct 14 18:39:54 depending on the app Oct 14 18:40:31 I would not do it on a video/audio player because nobody will see them xD Oct 14 18:40:40 well, video may be... Oct 14 18:41:00 hmm Oct 14 18:42:26 my app is a bit of a niche so I don't know what else I could add t oit Oct 14 18:42:27 *to it Oct 14 18:42:36 and I don't have any ideas for other apps Oct 14 18:42:38 :( Oct 14 18:42:41 Make it free and open source it Oct 14 18:42:54 SimonVT, https://play.google.com/store/apps/details?id=com.marco.numbersnap Oct 14 18:42:54 what i'm planning to do with my app is release a free version that's fully featured but has certain restrictions, and then the full version will be like $2 or something Oct 14 18:43:06 it's also a niche app, more of a tool Oct 14 18:43:29 but no ads on free version, i hate ads Oct 14 18:43:42 I hate ads too Oct 14 18:44:20 i like the idea of a fully featured trial though, because if something doesn't work on a specific phone then the user will find that out before purchasing Oct 14 18:44:58 i guess refunds are possible but don't you lose money from refunds because google doesn't refund what they take from the initial purchase? Oct 14 18:45:00 true but isn't that what betas are for Oct 14 18:45:49 really? Oct 14 18:46:05 don't know, i read that somewhere Oct 14 18:46:20 i will start it out in beta but i think it will be annoying because they still have to purchase it Oct 14 18:46:38 so i'd like to reimburse beta testers somehow Oct 14 18:47:42 CocoStorm, is that your app? Oct 14 18:47:47 seand, yeah Oct 14 18:47:58 it's right up there on the niche scale :) Oct 14 18:47:59 haha Oct 14 18:49:28 cool, it got featured on techcrunch? Oct 14 18:49:33 yeah and gizmodo Oct 14 18:49:45 so it got a load downloads for a couple of days Oct 14 18:50:35 man Ken Zheng, what a dick Oct 14 18:50:42 you gave him a refund and he didn't change his review Oct 14 18:50:58 I know! Oct 14 18:51:00 :( Oct 14 18:51:06 on top of fixing the issues Oct 14 18:52:45 how did you implement syncing? i'm currently trying to do that for my app Oct 14 18:53:31 i'm trying to sync to google drive but i'm not sure how to get the UI right... i have a progress bar on my activity but if you turn the screen off then back on it will disappear and i want it to come back Oct 14 18:53:58 I'm trying to integrate facebook so that it returns a list of profiles of the persons name so that you can scroll through and add them on the spot Oct 14 18:54:27 It's all ready but Facebook have this bug and they wont fix it.. Oct 14 18:55:09 seand, sync to google contacts it was literally just a few lines of code in the contacts provider Oct 14 18:55:18 oh, nice Oct 14 18:56:34 Goody, my live wallpaper has scraped its way up the top new paid list in its category. Now it competes with churned-out holiday-themed wallpapers and a "twerk" wallpaper. Oct 14 18:59:19 hi all Oct 14 18:59:26 CocoStorm: how do you fix issues on specific phones? do you just have a bunch of smartphones to reproduce the issue with or something else? Oct 14 19:01:29 This is a longshot, but: a client is reporting a green screen appearing in a camera preview. It seems to happen when Camera.Parameters for the camera changes. Apparently this is a problem with a specific tablet (ASUS Transformer), and other people seem to be commenting on it when googling Oct 14 19:01:31 seand, I personally borrowed various devices from friends :P Oct 14 19:01:47 I didn't go through beta (I should have done) Oct 14 19:01:53 However, there seem to be no developers commenting and posting solutions (only people posting the bug with the device) Oct 14 19:02:00 oh, nice... Oct 14 19:02:17 Has anyone encountered this, or are there any known solutions? Oct 14 19:03:21 one solution which several apps do, is at runtime check a web service to see if that device has a crappy camera, and if so, disable that functionality. kinda like a personal blacklist Oct 14 19:03:36 (but let the rest of the app operate) Oct 14 19:04:56 Unfortunately, this is the only device that this app needs to run on Oct 14 19:05:07 one app i read about, a while ago - so i can't remember which one it was specifically, would dl a text metadata to possible correct the situation Oct 14 19:05:35 'this device needs paramx = true' for example Oct 14 19:05:41 oh, thats unfortunate Oct 14 19:08:13 Yeah? apparently it's sometimes solved by disabling autofocus? Oct 14 19:08:58 Would setFocusArea() require autofocus (I honestly don't completely understand the details of cameras) Oct 14 19:10:27 Nevermind, just answered my own question Oct 14 19:13:03 oi, this is a doosy of an AS bug, even for AS :P https://code.google.com/p/android/issues/detail?id=61038 Oct 14 19:14:03 BenOrnstin did that work ? Oct 14 19:14:28 No, it won't work Oct 14 19:14:53 Because setFocusArea() is incompatible with any of the focus modes that would fix it apparently Oct 14 19:15:04 g00s: That looks like it was already fixed Oct 14 19:15:05 https://android-review.googlesource.com/#/c/67029 Oct 14 19:15:19 https://code.google.com/p/android/issues/detail?id=60749 Oct 14 19:15:35 And it's unfortunate, because I don't actually have an ASUS Transformer to test this out on Oct 14 19:15:52 seitensei that would be great, just read somebody's post about it on G+ which was filed yesterday, and Tor said it would be fixed in the next update Oct 14 19:16:12 (And besides, the bug doesn't seem to be reproducable on purpose) Oct 14 19:16:51 BenOrnstin: I have a Transformer 101, if that's where it appears Oct 14 19:17:19 I am using an aftermarket 4.3 install though. Oct 14 19:18:39 i have this code to test the onseek listener: http://pastebin.com/twr6GASY however the media player even refuses to set the video uri reporting error (1, 0). the very same URL streams nicely in a different url within the same device... what is this? Oct 14 19:18:45 What kind of layout would be a better for a calculator app: linear or relative? Oct 14 19:19:38 How would you do it with a LinearLayout? Oct 14 19:20:19 Put linearlayouts in it Oct 14 19:20:47 I was hoping to see how he'd do it. Oct 14 19:21:07 oh Oct 14 19:21:47 Why not a GridLayout or something? Oct 14 19:22:43 Cyph0n_ look at the custom layout for the Dialer app, its pretty simple. but maybe it was superseded by GridLayout Oct 14 19:23:05 Nilium: I have no clue. New to Android :) Oct 14 19:23:10 <^cheeky> 7 hours .. no volley in android studio ++ :( anyone Oct 14 19:23:37 g00s: Where can I find the code? Sorry, I'm new to Android. Oct 14 19:23:50 hm Oct 14 19:23:56 I don't think gridlayout lets you divide space evenly between children Oct 14 19:24:08 But I've never used it so I don't know Oct 14 19:24:39 <|0xD34D|> Cyph0n_: you could always look at the AOSP calculator too https://android.googlesource.com/platform/packages/apps/Calculator/+/master Oct 14 19:24:50 seitensei: it's a TF300TL Oct 14 19:24:53 Thanks though :/ Oct 14 19:25:03 I guess I'll have to order one Oct 14 19:25:34 <^cheeky> i hope home depot has a #00 screw driver Oct 14 19:25:43 <^cheeky> umm sorry Oct 14 19:25:49 <^cheeky> worng box Oct 14 19:26:38 |0xD34D|: Hmm, thanks Oct 14 19:26:52 i have a list view with fast scroll enabled. I'd like to disable touch events on another view while the fast scroll track is visible. Anyone know a way to do this? Oct 14 19:27:20 A uniform Gird gives all children equal estate Oct 14 19:27:26 *grid Oct 14 19:27:44 i'm already listening for scroll state changes, but the fast scroll track has a delay, so even after the scrolling stops the track is visible for another second Oct 14 19:33:47 Alright, so I have my listview mostly working. I have one remaining problem though. I have an EditText with a TextWatcher which works well and all, however I also have a SeekBar. I want this seekbar to be able to have it's progress set by the EditText. My question is, how do I access objects set within the getView method of my custom adapter? I need to access my seekbar to set its progress. Oct 14 19:37:36 anyone have any thoughts on greenDAO? Oct 14 19:37:59 vlcn: I love it Oct 14 19:38:09 okay, thats what I wanted to hear Oct 14 19:38:17 I think it could save me a lot of headache Oct 14 19:38:33 I have a pretty decent migration scheme set up for database changes too. That's basically the only thing it doesn't do for you Oct 14 19:38:47 not concerned with that at this point Oct 14 19:39:21 yeah. it's pretty easy to get going with. Oct 14 19:39:33 are you using eclipse or android studio? Oct 14 19:39:39 android studio Oct 14 19:40:10 I have yet to get the generator code to work in Android Studio. haven't spend a lot of time on it yet though. I just use eclipse to do the file generation part. Oct 14 19:42:49 Moopz: Not sure I understand the question. W/in each list item you have a View of that list item, so you can use that to find elements w/in that view. (v.findViewById(..)) Oct 14 19:42:52 <^cheeky> so since i fail @ using android studio with volley, if i want to get info from different services, i would have to create a service and in that service create a thread pool and and execute runnables as my view pages flicks throughs pages to get images and what not ? Oct 14 19:43:21 Moopz: so you can define a handler for the edittext in that list view item, which uses the seekbar in that list view item Oct 14 19:45:01 dragorn: So I can simply make a new SeekBar object and then set it via findViewById()? Oct 14 19:46:04 Moopz: you can put a number of views in the layout used for list items, and then refer to them w/in the getView function of the adapter Oct 14 19:46:19 Moopz: which lets you set the callbacks on one view to refer to another all w/in that list item view Oct 14 19:47:57 Anyone know a solution to let n' viewPager retain its Fragments when the device rotates? I am getting a new instance of the fragments inside the getItem function of the fragment. Changing the setRetainInstance property makes no difference. Oct 14 19:47:57 <^cheeky> or could i just use an async task with an executer service... which is not recommended Oct 14 19:48:43 dragorn: But isn't that only if I can set the listener within the getView method that I can do that? My TextWatcher is custom so I have to define it in a class by itself. Oct 14 19:49:15 Sorry, getItem of the pagerAdapter. Oct 14 19:49:20 dragorn: Unless I'm misunderstanding what you're saying. Oct 14 19:49:24 Moopz: not sure I follow Oct 14 19:49:42 Moopz: if you've got another class which is attached to the editview, you could just pass it the target view of the seekbar if you want Oct 14 19:50:08 Moopz: YourTextWatcher foo = new TextWatcher(); foo.setEditText(youredittext); foo.setSeekBar(your seekbar); Oct 14 19:50:26 I'm trying to trying to draw a chat bubble (like iMessage and Whatsapp), but I can't use 9patches. Any ideas on what I can use to accomplish this? Oct 14 19:50:28 Moopz: and whatever your event handler is uses the variable set in setSeekbar Oct 14 19:51:32 ehhdk: I am new to Android but I would user a EditText and just change it's style to look like a bubble. Oct 14 19:51:51 dragorn: Lets start over :) I have a custom adapter for my listview. Each item contains several things, one is an EditText and one is a SeekBar. My edittext has a custom TextWatcher implemented as a nested class within my adapter. How do I access my seekbar now that I'm not within the getView method anymore? Oct 14 19:52:12 StephanFourie: http://durandal.kismetwireless.net/~dragorn/MainActivity.java, specifically onSaveInstanceState, onPostCreate, onConfigurationChanged, and the savedInstanceState stuff in onCreate Oct 14 19:52:57 dragorn: Thanks a whole heap! Will look into it now. Oct 14 19:53:09 Moopz: you'll have an instance of textwatcher per list item Oct 14 19:53:44 dragorn: Yeah. But each of them are out of the scope of the getView method. Oct 14 19:53:46 Moopz: in getview, you find your seekbar, you find your edit text, you make your textwatcher instance, attach it to the edittext, and either pass the seekbar to the textwatcher instance or define it final and reference it directly Oct 14 19:55:48 Moopz: http://durandal.kismetwireless.net/~dragorn/FragmentTimeRange.java ; an absurdly complex list adapter that does all sorts of callbacks on elements inside each list item Oct 14 19:56:14 dragorn: But I can't access it, even with final. It's a nested class. I can try to pass the seekbar itself, rather than the ViewHolder that I tried earlier. Oct 14 19:56:58 Moopz: afraid you've lost me again; upshot I think it should be completely doable; maybe that code will help some? Oct 14 19:57:44 Moopz: you're doing edittext.addTextChangedListener(new TextWatcher() { ... } ); ? Oct 14 19:58:33 Moopz: if so, it would be getView(...) { final SeekBar sb = (SeekBar) v.findViewById(...); edittext.addTextChangedListener(new TextWatcher() { ... sb.doSomething(); } ); Oct 14 19:59:08 dragorn: http://pastebin.com/YfqfCVBh Oct 14 19:59:13 This is my adapter Oct 14 19:59:36 Now my textwatcher is at the bottom Oct 14 20:00:22 so put a SeekBar in CustomTextWatcher, and add a set function Oct 14 20:00:31 I tried passing the viewholder to it, however it made something weird. Oct 14 20:01:35 either pass it a seekbar or pass it vi Oct 14 20:01:42 via a custom function in TextWatcher Oct 14 20:01:58 if you pass it the seekbar, you can modify it directly, if you pass it vi, you can use vi.findViewById(..) to find your sub-views Oct 14 20:02:21 dragorn: I'm trying to pass the seekbar now. Oct 14 20:03:03 and either alter the constructor, or just new the TextWatcher, call the add, then call addTextChangedListener with your instance Oct 14 20:04:44 Passing the seekbar gives me the same weird thing the viewholder did. Oct 14 20:05:36 'm trying to trying to draw a chat bubble (like iMessage and Whatsapp), but I can't use 9patches. Any ideas on what I can use to accomplish this? Oct 14 20:07:39 I'll try to do it by view now. Oct 14 20:07:40 Moopz: you defined a seekbar variable in customtextwatcher and passed the seekbar independently? Sure your seekbar altering code is right? Oct 14 20:09:18 dragorn: I'm pretty sure. Although what I'm experiencing might be a fault in the custom seekbar I'm using since it's technically a RangeSeekBar. Oct 14 20:09:42 Moopz: throw a textview in there and pass it like you did the seekbar, and set it from your watcher - that should prove that much is working Oct 14 20:10:30 eghdk: If you can't use 9patches you have to draw it yourself Oct 14 20:13:43 SimonVT: I don't know how to draw. I'm trying to learn, but seemingly they have to be "pixel perfect" drawings. I want my chat bubble to be able to have a width of "wrap_content". Oct 14 20:13:52 What's the replacement for layout_weight in a LinearLayout? I read that weights should not be used, so how do I keep the layout fluid in diff. sizes plus orientations Oct 14 20:14:04 I'm using nested LLs btw Oct 14 20:14:54 Cyph0n_: That's the first time that I heard "weights should not be used" Weights are awesome, and I use them in a lot of my apps. From 2.x to 4.x Oct 14 20:15:02 They work perfectly. Oct 14 20:15:15 Cyph0n_: you can use weights Oct 14 20:15:31 you should just be careful when you use weights inside weights as it can affect performance of your layout passes Oct 14 20:15:33 eghdk: In nested LinearLayouts they're bad, according to the dev page Oct 14 20:15:44 Cyph0n_: it doesn't mean you should never use them Oct 14 20:16:31 romainguy: So you think I should go with nested weights and then test it out on my device? Oct 14 20:16:57 Can I create a chat bubble with a shape xml? I know a rectangle is possible, but how would I add a caret shape onto that shape? Oct 14 20:17:42 romainguy: How much does nested weights really matter if all views with weight have a size of 0dp in the layout orientation? Aren't they only measured once then? (disregarding that deep view hierarchies are bad anyway) Oct 14 20:17:52 eghdk: Well, other apps would use a 9patch.. Oct 14 20:18:07 dragorn: It doesn't seem to be working with a textview either Oct 14 20:18:32 dragorn: It crashes due to a nullpointer with an textview. Oct 14 20:18:55 SimonVT: Well basically the iOS developer I'm working with is using bezier paths to make his chat bubbles, and he recommended that I do the same. Oct 14 20:20:13 I don't know what an iOS developer would use, an Android developer would use 9patches for chat bubbles like those in whatsapp Oct 14 20:20:21 hi, I'm doing the research to understand how to develop an App that has these features: create square video, cut video and manage video in general. is there some open source library to develop this features? Oct 14 20:21:29 Hmm… okay. SimonVT it's good to have another dev's opinion on it. Do you know if you are able to do custom shapes in xml? Oct 14 20:21:35 Hello, can i set to application theme custom attribute?(custom front for all controlls) and red it in contolls constructors? Oct 14 20:22:25 No idea Oct 14 20:22:53 Moopz: I dunno, you're doing something wrong somewhere then; I pass instances of listview items all over the place all the time Oct 14 20:22:58 what do you guys think of using Qt+QML for android apps? Oct 14 20:23:13 xgear: You can't set a custom font in your theme, unless you make your own TextView subclass that sets the font based on a custom theme attribute Oct 14 20:23:13 Moopz: or something is especially weird about the text handler callbacks that isn't in any of the other view callbacks Oct 14 20:24:57 luist: I tried using Qt but had alot of problems when compiling and setting it up can be a headache so decided to use Android/Eclipse. Oct 14 20:25:22 StephanFourie: what did you use for the graphical interface? Oct 14 20:27:04 luist: I used only what Qt had to offer like the standard buttons and textboxes but never got to a final app. Oct 14 20:28:20 luist: I also wanted to use it so that for multiplatform purposes but I have up. Sorry I am not of great help. Oct 14 20:28:29 dragorn: I thank you for your patience with my feeble mind. I realized I didn't need a custom text watcher and simply implemented a regular one within getView. Oct 14 20:29:38 Moopz: heh, fair enough Oct 14 20:30:01 Moopz: i'm not sure wht's funky about what you were doing; it should definitely be possible to do what you originally wanted Oct 14 20:32:26 dragorn: Yeah, there's probably something I'm missing though. But at least it's working. Thanks again :) Oct 14 20:38:06 anyone familiar with android studio? I am having problems importing google play services into my project Oct 14 20:40:58 zquad: i had problems with that too. i actually couldn't figure out how to do it and ended up switching to intellij, which made importing libraries/modules effortless Oct 14 20:41:13 luist: I used Qt with VS2010 compiler + Necessitas Oct 14 20:42:02 seand can you import it into intellij then switch back into working with android studio? Oct 14 20:43:07 depends if the build system is the same... i'm not sure what intellij is using Oct 14 20:43:12 why would you switch back, though? intellij has android integration Oct 14 20:43:39 Im not familiar with intellij just curious if the form designer will work Oct 14 20:43:51 Switch to gradle, add a single line to your build file, and you're done Oct 14 20:43:57 android studio is based off intellij, so the UI is pretty much the same Oct 14 20:44:10 ok Oct 14 20:44:51 SimonVT what do you mean switch to gradle? Manually modify the build.gradle file? Oct 14 20:45:23 Yes, when using gradle you add dependencies by modifying build.gradle Oct 14 20:46:06 zquad: I thik you just need to add a line like: compile 'com.google.android.gms:play-services:3.1.36' Oct 14 20:46:10 to your dependencies Oct 14 20:46:14 I tried that, adding compile 'com.google.android.gms:play-services:3.+' within dependencies but Oct 14 20:46:17 ^ Oct 14 20:47:29 zquad: did you use 'rebuild'? Oct 14 20:47:29 com.google.android.gms.maps.SupportMapFragment is not found by the form xml Oct 14 20:47:29 I did rebuild, let me try again Oct 14 20:52:21 Hello, I am brand new to Android development. Using Android Studio, what is the correct way to resolve "cannot resolve symbol 'support'" here? "import android.support.v4.app.NavUtils;" Oct 14 20:52:46 I copied android-support-v4.jar into build/libs from the SDK Oct 14 20:53:58 i'm trying to fix ViewPager for my need, which is: i want a different animation when jumping to non-adjacent page Oct 14 20:54:18 what's the path i should follow? extend viewpager? Oct 14 20:54:36 which methods? Oct 14 20:55:09 bricker, you don't want to copy the lib. You need to edit build.gradle Oct 14 20:55:11 compile 'com.android.support:support-v4:18.0.0' Oct 14 20:55:31 add it to your dependencies Oct 14 20:57:14 howdly all Oct 14 21:16:53 Hello, what is the state of BTRFS support on Android OS? Oct 14 21:17:48 None Oct 14 21:20:19 What is required to make a BRTFS working? I suppose configuring the support in kernel, port btrfs-tools and add support to vold. Anything else? Oct 14 21:20:37 I'm considering this as my Master thesis.. Oct 14 21:20:40 it's not important, nor in scope of this channel Oct 14 21:21:30 uh Oct 14 21:21:49 lusticky, depends on what exactly do you mean by brtfs support? Oct 14 21:22:11 lusticky, most running Androids tend to have several partitions, alot of times with different filesystems Oct 14 21:22:30 Mavrik, lets say i want to have an external SD card formatted with BTRFS Oct 14 21:22:55 lusticky, if you don't want to use it as an actual SD card in OS but only mount it from command line Oct 14 21:23:13 recompiling kernel and statically compiling tools would probably work Oct 14 21:23:26 depends on how much dependencies tools have on a working linux system Oct 14 21:23:58 Mavrik, ok if I want to use it as /data ? Oct 14 21:24:19 my problem is that, given pages A B C D E F, when jumping, e.g. from A to E, the transitions i can see are: A<-B<-blank(?)<-D<-E. i'd like to have A<-E Oct 14 21:24:20 no idea, you'll have to check if you can get it to mount Oct 14 21:24:31 Mavrik, ok thank you Oct 14 21:29:44 lusticky: your problems will be a) does the kernel support that filesystem and b) does the mount/fstab stuff in the rom hardcode vfat or does it allow other formats. Both are really more #android-root questions; in theory however nothing will stop you from doing it. It might introduce issues for some apps however if you have a filesystem with per-user permissions; android expects it to be writeable to any app w/ the proper android level permission Oct 14 21:31:19 what. Oct 14 21:31:19 Android uses per-user permissions to handle app security. Oct 14 21:31:25 (except on physical SD cards= Oct 14 21:31:25 ) Oct 14 21:32:03 Mavrik: yes, precisely Oct 14 21:32:35 Mavrik: he wants to use a filesystem on the external sd card which respects per user perms. This may cause issues. Oct 14 21:33:19 mhm, as I have wrote Oct 14 21:33:28 Not just physical sd cards, all external storage Oct 14 21:33:31 it probably flatly just won't work Oct 14 21:33:42 SimonVT, hmm, IIRC the internal storages are ext4 on new devices Oct 14 21:33:58 they're not even separate partitions Oct 14 21:34:04 What I mean, there's no security on external storage Oct 14 21:34:30 Anyone know how to register a callback for an EditText changing that will let me refer back to the EditText that was modified? I know about TextWatcher, but it seems kind of useless to me, because it doesn't link back to the EditText view itself. Oct 14 21:35:24 actually, nevermind, I think focus changed will do the trick for me anyway Oct 14 21:35:47 and what exactly is stopping you from passing the EditText reference into the textwatcher? Oct 14 21:36:59 Or just assume it's the edittext you set the textwatcher on Oct 14 21:38:48 The callbacks for TextWatcher give you a CharSequence, not an EditText. I could have a custom class that wraps around TextWatcher that lets me instantiate it with a reference to an EditText, but I'm doing this for a dynamic set of EditTexts and I don't want to have to create a separate TextWatcher for each one. Oct 14 21:39:05 dragorn, thanks, i suppose a) the linux kernel needs to be properly configured and b) mount/fstab is done by vold on Android Oct 14 21:40:22 dragorn, which lacks btrfs support.. Oct 14 21:56:47 Hello, I am trying to flash I9100XXLSJ_I9100OXXLS1_OXX on my Galaxy S2 with heimdall on mac, I have added a PIT and the following: BOOT, MODEM, CACHE, FACTORYFS, SBL1, DATAFS and HIDDEN, which have I forgotten? Oct 14 21:57:04 Archguy: might be wrong channel Oct 14 21:58:32 Archguy: definitely the wrong channel Oct 14 21:58:35 desmin88: why? which channel should I ask? Oct 14 21:59:00 #android-root Oct 14 21:59:29 #android-root-for-people-who-are-creepy-obsessive-enthusiasts Oct 14 21:59:52 I like how "enthusiast" has become a word to say "I like something so much that I divorced my wife to spend more time with it" Oct 14 22:00:03 Or husband. Could also be a husband. Oct 14 22:00:22 or "refused to get a wife in the first place" Oct 14 22:00:43 That too. I guess I was assuming too much about what happened before the person decided their sex object was a phone. Oct 14 22:01:36 Though I still think it's fair to say that if you consider yourself an enthusiast, you probably view humans in the same light. Like those "pick-up artist" cretins could probably be considered "people enthusiasts" Oct 14 22:05:11 Have I committed files here that shouldn't have? https://github.com/bricker/KPCC-Android Or ones that are not usually committed Oct 14 22:05:45 i think most people prefer not checking in intellij files Oct 14 22:05:45 slash does this all look pretty standard so far? Oct 14 22:06:13 shigeru: this project was created using Android Studio - which files are you referring to? Oct 14 22:06:23 .idea, *.iml Oct 14 22:06:31 ah Oct 14 22:06:53 idk how up-to-date this is, but might be a good starting point https://github.com/github/gitignore/blob/master/Android.gitignore Oct 14 22:11:54 <^cheeky> hi, could some one please point me to docs, or to even links to accomplish what i want , i have a view pager, and this view pager consists of an image, but also has some textviews, this fragment which contains the the image and the textviews, need to be filled from the internet, how would i go about doing this since the images and textviews need to be filled every time the page is been swiped using the view pager, i have managed to d Oct 14 22:11:54 <^cheeky> image using picasso but i need the textviews to be filled, would i just implement a asyncTask for each textview ? even objects or methods or classes that i could use, would be greatly appreciate so i can look into the using google. Oct 14 22:12:08 noooooooo Oct 14 22:12:17 nooooo Oct 14 22:12:44 * Bleeptech starts drooling.. Oct 14 22:12:52 Cool... http://www.kickstarter.com/projects/technicalillusions/castar-the-most-versatile-ar-and-vr-system Oct 14 22:14:16 <^cheeky> noooo ... was that for me ... Oct 14 22:14:54 i don't know, I was just copying Jake Oct 14 22:15:06 shigeru: good idea, thanks Oct 14 22:15:20 I was drooling over the AR/VR glasses.. Oct 14 22:15:26 <^cheeky> :( ok Oct 14 22:20:33 Hi, I'm having trouble creating a SurfaceView. surfaceCreated() is never called after I set m_surfaceview.getHolder().addCallback(this); addView(m_surfaceview), but I'm pretty sure it does something as the screen flashes black briefly. Any ideads where to look? Oct 14 22:22:13 Can anybody recommend any open-source Android applications? I just want to look around to get an idea of best practices Oct 14 22:22:32 The core Android apps would be a good idea. Oct 14 22:22:34 <^cheeky> bricker: the IOScheduler Oct 14 22:23:19 ^cheeky: nice, thanks Oct 14 22:23:22 <^cheeky> no no Oct 14 22:23:30 <^cheeky> listen to Nilium Oct 14 22:23:36 ah Oct 14 22:24:34 <^cheeky> but you can get download the clone, for IOschedule, i did that i havent done that for the other apps tho Oct 14 22:25:19 Where do I find those core android apps? Is that the AOSP or are the core apps different? Oct 14 22:25:54 Oh, wait... https://github.com/android :) Oct 14 22:26:05 bricker: d.android.com has heaps of code examples Oct 14 22:27:07 <^cheeky> for downloing multiple items from the net ? Oct 14 22:27:09 bankai_: yeah I've been going through the training guides there Oct 14 22:29:25 Use https://android.googlesource.com/, not github Oct 14 22:37:22 <^cheeky> should i not use an async task to download json replies from different services ? Oct 14 22:38:30 SimonVT: why? Oct 14 22:38:52 Because that's the android repository Oct 14 22:39:04 The other is some poorly maintained mirror Oct 14 22:41:33 SimonVT: why do you say poorly maintained? https://github.com/android/platform_frameworks_base is only 1 commit behind Oct 14 22:42:16 <^cheeky> the docs say that AsynTask should, only use for a few seconds, and what i am trying to accompilish should only be a few seconds, would AsyncTask suffice ? Oct 14 22:42:29 It's incomplete. It doesn't contain all packages Oct 14 22:42:31 Never has Oct 14 22:42:57 SimonVT: but for my purposes (studying) it contains plenty. Oct 14 22:43:19 Pointless to use it when you have the actual AOSP repository Oct 14 22:43:55 SimonVT: Better UI Oct 14 22:45:18 ^cheeky: can't see a problem with doing that :) Oct 14 22:49:22 <^cheeky> :) thank you so much, i am just confused, as its beneficial to use, ThreadPool in a service class, and send intents to the service class to get the data, i am just afraid that each page would get the information needed in time. Oct 14 22:49:30 why is this action return null ? Intent intent = getIntent(); filePath = intent.getAction(); Toast.makeText(this, filePath.toString(), Toast.LENGTH_LONG).show(); Oct 14 22:50:41 Because you didn't set an action on the intent Oct 14 22:52:08 And no point in calling toString on a String Oct 14 22:52:27 :O Oct 14 22:53:31 in manifest i have set this to the activity in which on create i have written this --> explodes, The only thing I can think of that could make a difference is that I use some ICS classes on a GingerBread phone Oct 15 00:06:09 Or were you expressing general agony while reading the chat log? :) Oct 15 00:06:19 Of course, they are guarded by if(Build.VERSION.SDK_INT) around it to disable the unsupported features Oct 15 00:06:35 >= 14 Oct 15 00:07:08 It crashes in . of one of my classes attempting to load another class that contains those functions, but they aren't even used in the constructor Oct 15 00:08:03 maybe you missed a check somewhere Oct 15 00:08:08 or maybe you need an annotation Oct 15 00:08:17 for APIVersionSupported or whatever that was called Oct 15 00:08:27 [i'm spitballing, btw] Oct 15 00:11:19 API level annotations are just for lint Oct 15 00:13:11 explodes, Maybe I found it, trying out. Apparently implementing a newer interface (TextureView.SurfaceTextureListener) breaks itself Oct 15 00:13:23 Moving that into an inner class and see Oct 15 00:13:24 Question: How do I force an update of a UI element? Basically I have something that doesn't update its state until I touch it. I tried invalidate and refreshDrawableState, with no luck. Oct 15 00:15:12 Moopz: Invalidate sets the view to refresh, it doesn't actually do the refreshing Oct 15 00:15:23 You still have to wait until the UI thread does the draw. Oct 15 00:16:00 explodes: It never does though. Oct 15 00:16:05 Hello, does someone know if it is possible to restrict permissions based on the package of the class? Oct 15 00:16:09 Then you're doing something wrong Oct 15 00:16:09 explodes: If I just let it sit, nothing happens. Oct 15 00:17:13 moopz huh... Oct 15 00:17:19 moopz I'm not sure Oct 15 00:18:08 explodes: Well I probably need to mention that I'm using a RangeSeekBar from here: https://code.google.com/p/range-seek-bar/ - This is the object that won't update. Oct 15 00:18:16 I have a question about async tasks. I have an async task that I pass a progress bar and an imageview to. When I download an image I set the imageview to the view that is downloaded and I try to hide the progress bar. For some reason the progress bar doesn't go away. I'm sure it has somethign to do with the async but i'm not sure what. Oct 15 00:18:34 This is the code for onPostExecute after the image is downloaded Oct 15 00:18:34 http://pastebin.com/ChCiBGkZ Oct 15 00:19:10 navetz have you tried debugging? maybe it does hide it but some other code re-shows it immediately after Oct 15 00:20:06 navetz: This doesn't help you, but you should refactoring that AsyncTask. Instead of it passing views, use the callbacks to pass in meaningful information so that you can update your views Oct 15 00:20:20 seand: hum, i'll try to see if that's happening. Oct 15 00:21:02 explodes, Yup, moving the implements into inner classes "fixes" it. Dalvik still complains, but it doesn't crash the app Oct 15 00:21:06 explodes: what kind of information should I pass? the view id and then search for it? Oct 15 00:21:13 explodes what do you mean, it's not passing views Oct 15 00:22:17 seand: navetz said "I have an async task that I pass a progress bar and an imageview to." Oct 15 00:22:40 oh via the ctor Oct 15 00:22:48 navetz: In your activity, use progressReported to update your views when progress is made in the activity. progress could be a percentage or new record Oct 15 00:22:58 use AsyncTask.progressReported * Oct 15 00:24:36 explodes, how are you supposed to update the views without passing them in? do you mean pass them in via execute()? Oct 15 00:25:25 no Oct 15 00:25:32 let me get a real example for you Oct 15 00:27:35 nothing i know of is resetting the progressbar Oct 15 00:28:51 seand, navetz: This code is terrible, but the important parts are there… http://pastie.org/8402671 This asynctask gets crap from instagram, each item it gets it publishes as progress. Now an activity can call this task like this: Oct 15 00:29:47 waiting on the link to load Oct 15 00:30:21 seand, navetz: http://pastie.org/8402675 Oct 15 00:30:42 Now, this async task can be used to get Instagram crap and isn't tightly coupled to updating views... Oct 15 00:31:05 -comman Oct 15 00:31:07 comma* Oct 15 00:31:14 i don't understand... it's still tightly coupled to the activity Oct 15 00:31:29 which updates the views... so there's still only 1 place where views get updated Oct 15 00:31:33 the method "thing" exists only in the activity. Oct 15 00:31:37 not in the async task Oct 15 00:31:48 so? Oct 15 00:32:06 this means that the asynctask doesn't need to know about the views Oct 15 00:32:16 which makes the code reusable Oct 15 00:32:17 sorry the links don't work for me Oct 15 00:32:21 navetz: damn Oct 15 00:33:12 but i don't understand why that matters when you still have coupling to the activity which the views are contained within. if i created an async task and put updating the views themselves in the onPostExecute(), there's basically no difference between that and your code Oct 15 00:33:13 navetz: try this one: http://pastebin.com/CiyRigUL Oct 15 00:33:28 there we go Oct 15 00:33:31 seand the coupling to the activity exists only in the activity, not in the task Oct 15 00:33:44 but the task is inline in either case, so it doesn't matter Oct 15 00:33:45 ohh, I see what you're saying seand. Oct 15 00:33:53 You're right, in that case. Oct 15 00:34:03 I thought you were actually sending the views to the asynctask Oct 15 00:34:18 not using the views in one of the implemented abstract methods; my bad Oct 15 00:34:52 i actually don't know how navetz implemented it, but most of my asynctasks are inline Oct 15 00:35:04 aye Oct 15 00:35:37 i have one asynctask in my project where i pass in a view via constructor, but i save it in a weakreference Oct 15 00:35:51 for loading an image asynchronously in an ImageView Oct 15 00:36:59 that works, and the weakref. is smart, but you can generalize that one even further. I have a stack of async tasks for loading stuff over the wire Oct 15 00:37:49 LoadURLTaks < LoadImageURLTask - LoadImageURLTask's onPostExectute's implementations handle the assignment of the views Oct 15 00:37:57 of the image to the views, I mean Oct 15 00:38:55 sorry i didn't quite follow that... do you have some example code? Oct 15 00:40:15 Not for this one, I dont Oct 15 00:40:33 I have: public abstract class LoadUrlTask extends AsyncTask Oct 15 00:40:47 and public class LoadImageUrlTask extends LoadUrlTask Oct 15 00:41:31 is the LoadImageUrlTask inline, so you can couple to an activity? Oct 15 00:41:32 this doesn't use progress; with these tasks, you pass 1 url and the postExecute gets a Bitmap Oct 15 00:41:37 yes Oct 15 00:41:40 oh i see Oct 15 00:42:02 Feeling really dumb, how can I make my textview, not overlap with with over views if its too long? Oct 15 00:42:16 anonymously coupling is just fine; the way I read it is that I thought he was tightly coupling things; Oct 15 00:42:44 desmin: you can set the maxLines property of the view? Oct 15 00:43:08 It is set to 1 line already Oct 15 00:43:22 i feel like for pretty much anything in android there's a right way to do it, and lots of wrong ways, so i'm always interested in finding out if what i'm doing is correct or not Oct 15 00:44:26 alright, thanks for the help everyone, time for me to go Oct 15 00:44:31 chances are you're going to do a heap of wrong things :) Oct 15 00:44:56 hm, Genymotion website mentions Bluetooth under Features; but i don't see anything in the UI; the image doesn't let me enable it under Settings app - anyone have an idea ? Oct 15 00:46:17 actually i did have one question about the way i'm loading images... Oct 15 00:46:18 is there an easy way to generate an onClickListener in Android Studio? In Eclipse, you can just double click on the button. Is there a similar technique in Studio? Oct 15 00:46:28 wow, a whole book on Fragments. i'm sure JakeWharton picked that one up XD Oct 15 00:46:38 what's a book? Oct 15 00:46:46 did someone print a web page? Oct 15 00:47:04 JakeWharton that thing you wrote a preface for, remember ? Oct 15 00:47:10 the way i'm loading images now is using 1 async task per ImageView, but that doesn't work well for list views because it noticeably loads them 1 by 1... is there a standard way of loading them in groups? Oct 15 00:47:17 or foreword Oct 15 00:47:42 that was over a year ago Oct 15 00:48:00 someone sent me an email to write something, i replied and wrote it, moved on with my life Oct 15 00:48:18 that was kind of you ;) Oct 15 00:50:29 is there an easy way to generate an onClickListener in Android Studio? In Eclipse, you can just double click on the button. Is there a similar technique in Studio? Oct 15 00:52:06 Okay guys, how can I fix this - http://gyazo.com/48b2d5a6b2c769c46bb7807d78155ca4 - Make it so the text will scroll right to reveal the rest Oct 15 00:52:54 I've set ellipsize to marquee Oct 15 00:53:12 desmin88 is this thing clickable so you can see all the readings more easily? Oct 15 00:53:18 yes Oct 15 00:53:21 oh okay Oct 15 00:53:24 click this in a list Oct 15 00:53:27 opens a view Oct 15 00:53:31 new fragment i mean Oct 15 00:55:22 if anybody cares this is what the xml looks like Oct 15 00:55:23 http://pastie.org/8402704 Oct 15 01:00:51 Idk why it Oct 15 01:00:55 woops. Oct 15 01:01:48 I dont know why it just stops when its set to marquee Oct 15 01:32:12 JesusFreke gradle preBuild works nice as a ragel code gen hook ;) Oct 15 01:32:26 heh Oct 15 01:32:45 preBuild.dependsOn ragel Oct 15 02:26:50 is there any app for helping translating an app? Oct 15 02:27:37 I mean, like Google Translation toolkit but as mobile app instead of desktop **** ENDING LOGGING AT Tue Oct 15 02:59:58 2013