**** BEGIN LOGGING AT Fri May 09 03:00:01 2014 May 09 03:14:27 Is there a way to record audio without using MediaRecorder? May 09 03:25:17 is it possible to determine the row Im on with modulus? it worked great for columns May 09 03:26:05 Using AndroidAnnotations with Spring Android Rest Template, is it possible to use a @RestService annotation inside a Fragment? May 09 03:27:11 wzd_class: could you explain better? (I apologize if I missed the first part of your question) May 09 03:29:27 MarkyC: its possible to use mod to find out which column Im in. i was wondering if there was a way to find the row Im on May 09 03:29:52 in a table? What do these rows and columns belong to? May 09 03:31:10 i have an array of images. the images are attached to each other in groups of 10 May 09 03:31:15 its kind of complicated May 09 03:31:43 wzd_class: As phrased, this could be the answer: int currentRow = numberOfRowsYouveScrolledPast % totalNumberOfRows; May 09 03:32:48 wzd_class: I'd suggest refactoring or making a small, pastebin-able example May 09 03:33:32 wzd_class: If there's a click happening somewhere, register an OnItemClickListener() May 09 03:34:38 which would expose onItemClick() method, which exposes the position of the row May 09 03:38:24 let me try explaining. i have an image that i only need to display parts of. i was thinking about cropping the image but it seemed as if reusing the image and only displaying parts of it would be less costly with scaletype matrix May 09 03:49:03 this is my adapter. the arraylist has elements that i think of as rows. i wanted to figure when i would be on each row http://pastebin.com/LYrGe6GD May 09 04:32:21 Is there any software that will let me visually stream from a device to a computer for demonstration purposes? May 09 04:38:01 Anthaas: I've used AndroidScreencast in the past, but it looks like it hasn't been updated in a long time: https://code.google.com/p/androidscreencast/ May 09 04:38:28 barbs: Better than nothing! May 09 04:38:32 Thanks! May 09 04:38:40 no problem :) May 09 04:39:00 Slow refresh rate - 4-5fps May 09 04:39:03 That is slow! haha May 09 04:39:15 sure is! May 09 04:55:24 hi May 09 04:55:46 how can I view a stack trace when paused in the debugger in adt? May 09 05:18:49 in a fragment is onCreate always called before onCreateOptionsMenu ? May 09 06:32:23 i'm not understanding how to clean up my XML file: E/AndroidRuntime(819): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.weatherapp/com.android.weatherapp.MainActivity}: android.view.InflateException: Binary XML file line #19: Error inflating class fragment May 09 07:37:18 what exception do you throw to state that something is not unique May 09 07:37:31 say in a method called add(int id); May 09 07:39:05 Siamaster: IllegalArgumentException May 09 07:51:36 Does anyone here know how to fix issues with eclipse not liking asian characters? May 09 07:52:40 For exmaple when I open a file with this line: May 09 07:52:42 Debug.err("deviceIdがnullです", new Object[0]); May 09 07:52:50 in eclipse it looks like this: May 09 07:53:07 Debug.err("deviceId縺系ull縺ァ縺�, new Object[0]); May 09 07:53:21 which obviously throws a syntax error May 09 07:54:01 Renari perhaps there's a default character set or some such setting somewhere in Eclipse preferences May 09 07:56:07 yeah it's under workspace settings May 09 07:56:10 found it May 09 07:56:16 was defaulting to MS932 May 09 07:56:24 why would it *not* be utf8, always and everywhere? May 09 07:56:25 changed it to UTF-8 and all is well May 09 07:57:46 I remember I had to change it as well sometime in the past May 09 07:58:17 UTF-8, unix line endings, spaces for whitespace, AOSP import ordering and code formatting, bleh May 09 07:58:27 I found a checklist of this stuff once, but now I can't find it again May 09 07:58:54 it amuses me to no end that AOSP code isn't actually formatted using the AOSP formatting rules May 09 08:14:17 for a burn-reply to this, wait for SimonVT to be here, Chainfire May 09 08:22:27 Hello! May 09 08:22:30 I am trying to use a radial gradient on a view from a center point and a radius. However i would like to indicate an offset distance from the center to determine when the radial gradient starts. Is it possible on Android? **** BEGIN LOGGING AT Fri May 09 08:32:12 2014 May 09 08:34:37 Is it possible to get build tools for version 16? I have a Nexus S that only supports 4.1.2 and can't get Eclipse to detect the phone. May 09 08:36:02 that has nothing to do with build tools. May 09 08:46:15 Can't get it to work. I have USB Driver installed, Device Manager updated and USB debugging enabled. Still Eclipse doesn't detect the phone. May 09 08:47:33 @barq what is your device? May 09 08:47:42 barq, does "adb devices" detect it? May 09 08:47:42 Nexus S May 09 08:47:44 Hi Mavrik. I'm trying to apply an animation in the title of my action bar, but it seems I need to redefine my own layout for that :-/ Can you confirm? May 09 08:47:55 uh May 09 08:48:18 wget, never did that, but yeah, you probably have to make your own view so you can reference it May 09 08:48:59 Rather annoying, have to redefine position of all the action bar buttons, etc. :-/ May 09 08:49:17 barq maybe try to Revoke USB debuggng authorization from Developer options May 09 08:49:41 wget, the other thing is you check up on your app in hiearchy viewer May 09 08:49:53 wget, and see if the actionbar view has an id assigned by which you can grab it :) May 09 08:51:02 Mavrik: Do you think this will help, because I cannot do getSupportActionBar().getTitle().startAnimation(in); since there isn't any method for the Title object :-/ May 09 08:51:19 Doesn't change anything unfortunately. May 09 08:51:35 wget, em May 09 08:51:43 getTitle() returns a string May 09 08:51:55 That... can't really work ;) May 09 08:52:02 Mavrik: Yep and I cannot apply an animation on a string only on widgets :-/ May 09 08:53:20 barq, what is your OS? Does the os correctly detects the device? May 09 08:53:31 when you plug it May 09 08:55:45 Windows 7 in VMWare Fusion. May 09 08:55:55 Device Manager shows everything is working fine. May 09 08:58:40 I have a question about MODE_IN_COMMUNICATION in AudioManager - what in details it is? because the android doc is very poor and i'm trying to figure it out. in addition i have an app that uses STREAM_VOICE_CALL and on galaxy s4 when mode is set to MODE_IN_CALL then volume control doesnt work but in MODE_IN_COMMUNICATION everything works fine. May 09 09:00:29 I want USB storage off, don't I? May 09 09:01:09 barq, did you try https://communities.vmware.com/message/1698925#1698925 May 09 09:04:05 Don't know what the problem was, d/c r/c a few times, now it recognizes the thing. Thanks! May 09 09:16:17 Hi all, I need to create a publish account (http://developer.android.com/distribute/googleplay/publish/register.html) , do I really need to pay 25 dollars, or can I skip the Google Wallet thing? May 09 09:20:53 u have to pay May 09 09:22:09 see it as an entry ticket May 09 09:22:42 else the store would be loaded with crap (which it is anyway but without fee even more) May 09 09:22:55 because most are afraid to lose account May 09 09:28:01 it probably also stops automated account creation May 09 09:30:41 ok, thanks May 09 09:32:38 and forces people to give real details :) May 09 09:33:31 in general, $25 is not that much for someone serious, but stops a significant group of abuses May 09 09:33:46 and compared to others, it's cheap May 09 09:43:19 hi im trying to learn how to make my own bake of rastakat and how to add features and cherry picks May 09 09:43:24 can anyone help me out May 09 09:52:48 I am trying to use a radial gradient on a view from a center point and a radius. However i would like to indicate an offset distance from the center to determine when the radial gradient starts. Is it possible on Android? May 09 09:52:49 somebody ever used expansion files? May 09 10:15:10 Hi folks May 09 10:15:30 Can someone help me with referral links please ? May 09 10:15:33 Can you use the jobb tool just in the terminal? (http://developer.android.com/tools/help/jobb.html) I got jobb: command not found May 09 10:16:44 It seems like the market is not sending the same link to the app as mention on the url link when you download an app May 09 10:16:47 is that correct ? May 09 10:16:55 be cause itried before publishing with that May 09 10:17:46 am broadcast -a com.android.vending.INSTALL_REFERRER -n com.campany.myapp/.service.receiver --es "referrer" "https://play.google.com/store/apps/details?id=com.yourcompany.yourapp&referrer=campaign" May 09 10:18:35 and everything was fine but it seems like the market is not sending the same referral link May 09 10:18:50 is there anyway someone can help me ? May 09 10:23:28 somebody aware about referral links on the googleplay store ? May 09 10:46:38 my min sdk is 11, I want to call a method that was introduced in api level 16, May 09 10:46:55 i want the app to execute that method if it is supported, otherwise just don't.. May 09 10:47:01 is that possible? May 09 10:48:24 gaminglib, did u try in the channel 'android' ? May 09 10:50:51 better than the android dev ? oO May 09 10:51:23 gaminglib just ask your question May 09 10:52:14 Why the referral is different once I download the app May 09 10:52:28 different than the url link May 09 10:52:31 Siamaster its possible with the target annotation if im not wrong May 09 10:53:03 "https://play.google.com/store/apps/details?id=com.yourcompany.yourapp&referrer=campaign" May 09 10:53:06 on the url May 09 10:53:12 but i get this on the receiver May 09 10:53:21 05-09 12:47:56.997: D/Finsky(11794): [1] ReferrerRebroadcaster.broadcastInstallReferrer: Sending broadcast com.android.vending.INSTALL_REFERRER: referrer=[AZq5aWkJ0jEMV5lszxe8NohpZmQ] May 09 10:53:29 Why does it change ? May 09 10:53:57 ktwo thnx May 09 10:54:40 TargetAPI sorry May 09 10:55:17 yes ^^ May 09 10:55:51 gaminglib, i am not sure which is better, but nothing wrong targeting ;). May 09 11:17:17 hey to all anyone can help on why the changes i make to an apk dont apply ? i mean after i repack it i get the same apk not with the changes i made? May 09 11:17:54 Daimwn: how do you know it's the same apk ? May 09 11:18:06 i install it i run it the same May 09 11:19:01 Are you sure the build actually occurs ? What IDE do you use ? Have you tried to delete it, then see if it is rebuilded ? May 09 11:19:22 to be exact the only changes i make is some in javascript files cause i want some refresh to be more fast so i only change some numbers in .js but they dont apply May 09 11:19:33 i dont use IDE i use apktool and notepad++ May 09 11:19:57 hum i never did js in apk May 09 11:20:18 the app is like html files and through them some javascript May 09 11:20:22 I am trying to use a radial gradient on a view from a center point and a radius. However i would like to indicate an offset distance from the center to determine when the radial gradient starts. Is it possible on Android? May 09 11:20:46 Daimwn: yeah i know how it works, i never used it thought May 09 11:20:58 lol ok soz just saying all details May 09 11:22:15 so normally if i only use apktool and change the js when i repack it shouldnt the changes go in the apk? May 09 11:33:31 about the android tools (like jobb), is it possible to run in from terminal or do I need to do something special first? I got "jobb: not found" May 09 11:37:03 If you dont know how to use a shell and set the path then I doubt you should be using jobb at the moment. jobb is no different from any other "tool". It needs to be on your PATH and, of course, installed. May 09 11:41:49 FrancescoV: export PATH=$PATH:/path/to/sdk/tools/ put in the necessary path and try again. You'll have to update this in your .bashrc or .bash_profile to make it permanent though May 09 11:43:01 Antitau: thanks! May 09 11:45:18 how is bluestack for emulating android in PC ? May 09 11:46:19 i tried installing apps from playstore using the normal android emulator and found it did not have playstore.... so i followed this http://stackoverflow.com/questions/11154222/google-play-on-android-4-0-emulator May 09 11:46:46 but the problem in doing what they sugest is that the emulator is not having persistence of data May 09 11:47:13 i have to do the same steps everytime for making playstore available and other apps installed May 09 11:50:47 hi ! May 09 11:50:59 is there a tool to compile SVGs to multires .png/.9.png ? May 09 12:02:24 my question too basic for people to answer ? May 09 12:02:35 if i am in the wrong room, kindly point me to the right room please May 09 12:02:42 i am a begineer May 09 12:07:21 :| May 09 12:11:30 Is somebody aware about referral link on the play store ? May 09 12:22:12 Anyone familiar with ParseQueryAdapter for listview? I want to get Position of a list item. May 09 12:22:26 and this adapter doesnt let me overrise getView method. May 09 12:25:04 Hello guys, is it necessary to perform sql queries in another thread? I experience almost no latency when do some queries. But then, I don't have like hundreds of thousands of records. So I just query from the main thread. May 09 12:26:03 you can always use async task May 09 12:27:14 AsyncTask is great, you should be doing that even if your query seems fast enough at the moment...things can change May 09 12:28:07 I see. I think I'll revise my app in a later version. May 09 12:29:38 Are you guys using AsyncTask too for performing sqlite queries or are you sinning too? May 09 12:34:48 I do pretty much everything not GUI related on another executor May 09 12:34:57 having smooth apps is important :) May 09 12:35:22 Hello! I wish to build my own SDK. Looking at https://android.googlesource.com/platform/manifest/+/android-sdk-4.4.2_r1/default.xml , it seems I have to download quite a lot of files. Is there anything I can do to minimize amount of unecessary downloads? May 09 12:50:12 normalra: you sure you dont mean you want to build a rom? May 09 12:50:47 danijoo_: Yes, just the SDK. May 09 12:51:26 whats wrong with the android sdk (just curious) May 09 12:52:19 Nothing I would know of! May 09 12:52:31 danijoo_, normalra : same question, that's an unusual request May 09 12:53:09 never heard of anyone building an own sdk for android May 09 12:53:39 because how do you plan to get updates from google and all those stuff. May 09 12:54:21 I'll build the updates too! May 09 12:54:42 * ohcibi is also curious why one would build his own sdk? May 09 12:56:12 normalra: allright, but why ? May 09 12:56:44 Probably same reason why people follow the Linux From Scratch guide May 09 12:57:06 good point :> May 09 12:57:24 shouldnt you build your own rom then?? May 09 12:58:08 Yup. May 09 12:58:18 building a SDK rather translates to rewrite the toolchain to me May 09 12:59:36 ohcibi: What do you mean? May 09 13:00:15 normalra: i mean that building a sdk is not the equivalent of following the lsf guide in my opinion May 09 13:00:50 normalra: i.e. i still don't get why you want to build your own sdk 8)) May 09 13:01:05 but i'm just curious i dont want to discourage yuo May 09 13:02:30 Anyone familiar with ParseQueryAdapter for listview? I want to get Position of a list item BUT this adapter doesnt let me overrise getView method. May 09 13:03:06 ohcibi: I don't know about why someone else might want to, but I'm just doing for knowledge. May 09 13:05:43 normalra: ok then.. i'd think that you wont get that much help in this channel as this channel is rather about building apps with the default sdk. i'd try to get in touch with the core dev team via g+ or anything May 09 13:06:20 It's just building an SDK, not rocket science :| May 09 13:06:41 normalra: may be but i'd say that none of us has ever done it 8-) May 09 13:07:05 Nobody said it was rocket science, here it just not the right place in my opinion May 09 13:07:46 I was under the impression that it a little bit was, perhaps I was misled by #android-dev name :P May 09 13:07:53 normalra: similary this channel is not about java.... May 09 13:08:21 normalra: its about DEVeloping ANDROID apps with the stock SDK, hence #android-dev May 09 13:08:34 got to #android-root May 09 13:09:01 ohcibi: Yeah, I guess we're discussing semantics here, #android-development could both mean development _of_ Android and _on_ Android. May 09 13:09:07 yes, although this is more about rooting the devices and replace its stock roms (i.e. its more about roms) May 09 13:09:26 normalra: true, but it isnt 8-)) May 09 13:09:53 normalra: see the topic "android application development" and of course we cannot support custom SDKs May 09 13:13:53 except that Android system development is almost all done inside Google, vendors, and so on - or in specific teams like CM... it's not done in the 'open' May 09 13:16:20 Anyone knows why a ListPreference always shows the selected item mark in holo blue, even if the owning activity use a theme specifiying a different color which is verified to work for manually spawned AlertDialog (that's what ListPreference uses internally) ? May 09 13:20:31 I have a custom compound view with a clip path for creating rounded corners. when i set the alpha on this view to less than 1, all of the subviews disappear. if I remove the clip path, setting the alpha works fine. Any ideas why this is happening? is there a better way to handle rounded + clipped corners and borders without clippaths and borderpaths in onDraw? May 09 13:23:01 i'm trying to use a two-list item in a listview, using this example, but it wont work… http://www.vogella.com/tutorials/AndroidListView/article.html#tutorial_twolistitems Is this example supposed to work ? May 09 13:37:54 hi guys so .. moving from abs to actionbarcompat May 09 13:38:23 in a fragment i used to use getSherlockActivity().getSupportFragmentManager() May 09 13:38:31 that was a SherlockFragment May 09 13:39:10 i have to use v4.Fragment now so i need to use getActivity but that doesn't give me a v4.FragmentManager when you do getFragmentManager() May 09 13:40:25 anyone know what i am on about? May 09 13:40:51 lemonxah, that's because you have to call getSupportFragmentManager(); May 09 13:41:27 1. sounds like a waste of time to move from abs to appcompat 2. Fragment has a getFragmentManager method you can use May 09 13:41:41 mavrik but in a fragment when i call getActivity there is no getSupportFragmentManager() ? May 09 13:41:56 3. a fragment really shouldn't be managing other fragments, unless they're child fragments (in which case, use getChildFragmentManager) May 09 13:42:11 SimonVT, getFragmentManager does not give you a v4.FragmentManager May 09 13:42:22 it does May 09 13:42:27 hmm May 09 13:43:34 the fragment isn't managing other fragments May 09 13:44:11 i send the activity that i get from the fragment with getActivity to my cursorAdapter cause clicking on some items in the list May 09 13:44:23 it needs to put a new fragment on the stack May 09 13:44:31 like a menu fragment if you will May 09 13:45:26 that's a very clunky design May 09 13:45:40 anyway, getActiity() gives you an Activity May 09 13:45:51 so basically what this particular one does is May 09 13:45:53 and getSupportFragmentManager() is a method on ActionbarActivity May 09 13:45:53 its a timeline May 09 13:45:57 which is a subclass. May 09 13:46:01 yes i have that May 09 13:46:02 but May 09 13:46:15 the timeline fragment is a v4.app.Fragment May 09 13:46:30 and that doesn't have getAppcomatActivity May 09 13:46:38 only getActivity May 09 13:47:05 can i cast the getActivity() to ActionbarActivity? May 09 13:48:55 I'm tracking data in my application where each instance has a physical street address, phone number, email address and related website. I want to present a menu from which the relevant application will be started (Maps, Phone, Gmail, Browser). Is there something already available in the Android libraries to do this or will I need to roll my own menu? May 09 13:48:57 Mavrik in reference to "I do pretty much everything not GUI related on another executor", how do you do it? i want to start making some various things happen in the background, but definitely don't want to make asynctasks for them all. May 09 13:51:37 Bacta: you mean calling "startActivityForIntent"? May 09 13:51:43 Yes, I think that's built into Context. May 09 13:51:58 s/ForIntent// May 09 13:52:12 Yeah I know about that. I was just wondering if there was something standard I could be using. May 09 13:52:13 Use the correct uri, scheme, etc, and you're all set. May 09 13:52:15 There is this: http://android-developers.blogspot.co.nz/2012/02/share-with-intents.html May 09 13:52:27 But it's for sharing May 09 13:52:41 http://developer.android.com/guide/components/intents-common.html May 09 13:52:52 Opening maps? Use the geo uri. May 09 13:53:00 Open the phone? use tel: May 09 13:53:04 it's all very standard. May 09 13:53:34 And, best of all, if there's any ambiguity that dialog you were talking about will be displayed by the system. May 09 13:53:38 theblang, there's the whole concept of Execturos May 09 13:53:46 ThreadPoolExectutor etc. May 09 13:53:48 also RxJava May 09 13:53:57 AndroidAnnotations has a neat @Background and @UiThread annotations May 09 13:55:06 LOL nvm its been a long day May 09 13:55:49 lov: Thanks May 09 13:56:25 hi everybody May 09 13:56:35 anyone aware about referral links ? May 09 13:56:51 Bacta: you're welcome. May 09 13:57:37 I have a different referral link in the app than the url May 09 13:57:43 is that normal ? May 09 14:00:59 any of you use retrolambda? May 09 14:01:48 funkbox: a bit, whats up? May 09 14:02:01 how big/complex is your app? May 09 14:03:08 big enough May 09 14:06:20 Mavrik I noticed that in AndroidAnnotations! I messed around with it, but hate to add a dependency and code generation just for one convienance, though I'd probably use a lot more of the library if I included it. I keep hearing people mention RxJava. May 09 14:06:54 frankdoyle how has your experience been with retrolambda ? May 09 14:07:22 g00s: good. i trust the guy that made it May 09 14:07:39 yeah i'm also kinda nervous to depend on the build tool May 09 14:07:39 the android port, anyway May 09 14:07:49 you mean gradle? May 09 14:07:57 retrolamda-gradle, yeah May 09 14:08:05 *lambda May 09 14:08:25 it's not really a built tool so much as a gradle plugin May 09 14:08:33 sure May 09 14:08:45 i figure my stuff won't build if it makes a mistake :P May 09 14:08:56 you are right of course May 09 14:09:23 im just curious if you're worried abotu the switch to gradle or the addition of retrolambda May 09 14:09:38 oh, i use gradle - worried about retrolamda messing up May 09 14:09:50 keep spelling it wrong, ugh May 09 14:10:29 its a bytecode manipulation step before dex, correct ? May 09 14:10:47 nervous about all that, proguard, getting into a jam May 09 14:12:18 I don't think anyone here has tried proguard and retrolambda, but it doesn't seem like something that would break. wouldn't be that hard to set up a demo for it though May 09 14:22:41 frankdoyle: how complex is your app? May 09 14:22:54 we're debating trying it but eh. we also have proguard May 09 14:26:07 funkbox: I haven't tried proguard and rettrolambda together, but the guy that made it says the two should work well together May 09 14:26:30 "should" meaning I don't think he's tried it either May 09 14:26:32 so what does it actually do? from what i understand it reads through the bytecode and converts them to anonymous classes, no? May 09 14:27:32 I'm not super familiar with the process, tbh. May 09 14:29:29 now I'm getting mixed results (there's a debate on in my office). may work, may not work. worth trying May 09 14:30:29 according to https://github.com/evant/gradle-retrolambda/issues/9 it sometimes works May 09 14:38:43 proguard is usually not a problem May 09 14:43:28 I'm learning how to drive a motorcycle with a youtube video May 09 14:43:38 if I die today please remember me as the free IRC spirit that I am May 09 14:43:40 thank you May 09 14:46:05 I mean, if you don't have proguard problems with your normal code, retrolambda shouldn't do anything May 09 14:48:57 pthreat: you should probably learn how to drive a motorcycle with a motorcycle riding instruction course, not youtube :< May 09 14:49:12 how hard can motorcycle riding be... May 09 14:49:24 it's like riding a bicycle that can brutally murder you, amirite? May 09 14:49:25 it's like riding a bike, except your body weight is irrelevant May 09 14:49:43 so stuff like actually being aware of countersteering is important May 09 14:50:26 anyhoo, doing a Rider Ed course is a good idea since it lowers your insurance May 09 14:50:43 in the US it does May 09 14:52:22 Is it a BUG, it just keep failing - http://paste.ubuntu.com/7421742/ May 09 14:52:28 i'm gonna learn to fly from youtube May 09 14:53:14 pfn: I have to learn how to handle the clutch!!! May 09 14:53:17 lov: thanks May 09 14:53:23 but I have no one? May 09 14:53:47 pthreat, it's just a clutch... let it go until the flywheel engages and you start moving, then release it May 09 14:54:08 then I hit the gas just a bit May 09 14:54:10 right? May 09 14:54:15 pretty much May 09 14:54:24 when I stop I should push the clutch to the bottom May 09 14:55:13 put the lever in neutral ? Or leave it in 1st ? May 09 14:55:21 I've seen both suggestions ... May 09 14:55:56 pfn: ? May 09 14:56:27 well, typically, you should leave it in gear to be "safe" May 09 14:56:31 if you need to move in an emergency May 09 14:56:37 Oh nice then May 09 14:56:44 good, same thing as my manual said May 09 14:57:08 pfn: I've been told that leaving it in first gear ruins the clutch wire? Is that true or pure BS May 09 14:57:22 Personally, I leave it in gear until there's a few cars behind me (and it's a long light). At least then if someone doesn't see the light, there's a buffer of cars behind me :P May 09 14:57:31 well, you add additional strain on the springs and wire May 09 14:57:59 yeah, if you're gonna be stopped a long time, you might want to click into neutral May 09 14:58:13 http://paste.ubuntu.com/7421742/ - it says in the line 13 FAILED pfn , pthreat, g00s , nervousMoose could you please see why ? May 09 14:58:25 IamTrying, stacktrace or gtfo May 09 14:58:39 wtf is ninja May 09 14:58:46 you don't have ant May 09 14:58:47 install it May 09 14:58:53 pthreat: You're not going to wear out the clutch mainsprings holding the clutch in a lot May 09 14:59:09 somebody experience with expansion files? May 09 14:59:19 If you ride the clutch when taking off, you'll burn up your clutch pack faster, but holding it in first shouldn't hurt it May 09 14:59:27 nervousMoose: thanks May 09 14:59:44 OK - let me retry pfn thank you May 09 14:59:52 pfn: thanks you too May 09 15:00:30 pfn, nervousMoose so if Im in traffic I should leave it in first, if Im stopped for a long while (how much is too long?) I should put in neutral a semaphore (1minute something is long?) May 09 15:00:43 a long time as in your hand gets tired May 09 15:01:03 With my hand training that could take long May 09 15:01:06 hahaha May 09 15:01:14 pthreat: No set limit on time here, of course. I like to wait till there's a car or two behind me so there's some kind of big buffer behind me, and if I know the light is a long light May 09 15:02:16 ok :) May 09 15:04:33 http://paste.ubuntu.com/7421826/ - pfn please kindly have a look, after your suggestion it worked but suddenly build failed May 09 15:06:06 yeah "what is tim cook thinking" buying beats May 09 15:07:27 IamTrying: have you looked at the error message? May 09 15:07:31 what do you think it could mean? May 09 15:07:36 the deal has been made/finalised May 09 15:07:53 lov, i am checking the build.xml line number /home/sun/git/working/trunk/third_party/android_tools/sdk/tools/ant/build.xml:698: Execute failed: java.io.IOException: Cannot run program "/home/sun/git/working/trunk/third_party/android_tools/sdk/build-tools/18.0.1/aapt": error=2, No such file or directory May 09 15:08:08 so, uh May 09 15:08:12 instead of looking at the xml file May 09 15:08:18 maybe look at the path that's given there? May 09 15:08:35 (hint: do you have those tools? If not, should you install them? Should you change your build targets?) May 09 15:09:28 lov, in that path there is aapt : $ ls May 09 15:09:28 aapt aidl dexdump dx lib libbcc.so libbcinfo.so libclang.so libLLVM.so llvm-rs-cc NOTICE.txt renderscript source.properties May 09 15:09:56 lov, -rwxrwxr-x 1 sun sun 1119502 May 9 16:00 aapt* May 09 15:09:57 and if you try to run aapt, what happens? May 09 15:10:05 (hint: is it the wrong arch?) May 09 15:10:13 lov, 1$ ./aapt May 09 15:10:13 bash: ./aapt: No such file or directory May 09 15:10:17 a mystery! May 09 15:10:42 perhaps your machine is x86? May 09 15:10:51 lov, i am in 64-bit yes May 09 15:10:53 and aapt is 64 bit, or vice versa? May 09 15:11:07 You'll need to install the 32bit compat tools from your distro May 09 15:11:30 OK - thank you lov May 09 15:12:14 you're welcome! May 09 15:19:45 lov, officially downloaded Android Eclipse SDK and when i run that it also gives me same error: sun@s:~/Downloads/adt-bundle-linux-x86_64-20140321/sdk/build-tools/android-4.4.2/$ ./aapt May 09 15:19:45 bash: ./aapt: No such file or directory May 09 15:20:12 ldd aapt May 09 15:20:32 $ ldd aapt May 09 15:20:32 not a dynamic executable May 09 15:20:42 huh May 09 15:20:47 How can I display a ShareActionProvider inside a modal? May 09 15:24:43 hehe , i didn't understand all the phones going off in 'house of codes' http://2014.javazone.no/ May 09 15:25:52 pfn, when i execute eclipse the official one, i get same error: [2014-05-09 17:24:20 - adb] Unexpected exception 'Cannot run program "/home/sun/Downloads/adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/sun/Downloads/adt-bundle-linux-x86_64-20140321/sdk/platform-tools/adb' May 09 15:26:08 yeah, no idea what you're doing May 09 15:27:07 pfn, is it because i have java version "1.8.0_05" ? May 09 15:27:13 no May 09 15:27:51 you're trying to run an sdk that is incorrect for your platform May 09 15:28:04 uname -a May 09 15:28:26 pfn, Linux s 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux May 09 15:28:56 oh, you still didn't install the 32bit userspace didn't you May 09 15:28:59 pfn: iirc, the issue is that adb is still compiled as x86 May 09 15:29:01 yeah, that. May 09 15:29:07 what lov told you May 09 15:29:23 the adt x86_64 is a red herring May 09 15:29:27 stupid thing was confuzzling May 09 15:29:44 I thought someone actually went and made a 64bit build May 09 15:30:00 http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk May 09 15:30:03 I think all the android tools are 32 still May 09 15:30:03 see above. May 09 15:30:14 which is really pretty strange and disappointing :| May 09 15:30:32 pfn, lov but Eclipse was officially downloaded and in my other 64-bit it works May 09 15:30:33 well, they don't need to be 64bit May 09 15:30:41 other than to lose the 32bit userspace May 09 15:30:48 there's really no compelling reason May 09 15:30:53 is it because MacBook Air hardware i am running Linux? and there Java is getting confused? May 09 15:31:00 IamTrying: type "file" on adb. See what architecture it is. May 09 15:31:02 no. May 09 15:31:04 IamTrying, NO YOU NEED 32BIT USERSPACE May 09 15:31:06 :p May 09 15:31:13 actually, run strace on adb. You'll see why it's barfing, exactly. May 09 15:31:19 I'm willing to bet it's that it's 32bit. May 09 15:31:24 i dont think the latest ubuntu even comes with ia32 libs any more May 09 15:31:25 of course it is May 09 15:31:30 I can assure you, this is the problem, as I've dealt with it many times. May 09 15:32:01 lov, adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped May 09 15:32:22 g00s: they changed the procedure to install 32bit is all May 09 15:32:36 *cough* May 09 15:34:46 dpkg --add-architecture ; apt-get update for starters May 09 15:34:53 er, --add-architecture i386 May 09 15:36:05 When working with a SQLite database, not a ContentProvider, but with just a db, is it best to use do it through a CursorLoader? Or can you just return a Cursor via query()? May 09 15:36:48 highcup: Others may disagree, but if you're feeding it into a listview or osmething, use a loader, otherwise I don't think it matters. May 09 15:37:01 dragorn, OK applied, retry to compile without any changes? May 09 15:37:01 is there anyway to automation browsing in android? May 09 15:37:09 dragorn ok good to know; was reading some threads were people were having problems on 14.04 May 09 15:37:20 g00s: I haven't tried 14.04 yet, can't take the downtime if it goes wrong May 09 15:37:30 g00s: but they DID switch to the new multiarch from debian May 09 15:37:45 g00s: so ia32-libs or whatever it was called vanished, now you add the arch and install foo:i386 May 09 15:37:56 hmm http://ubuntuforums.org/showthread.php?t=2183444 May 09 15:38:19 g00s: yeah, that. it's now foo:i386 not the multiarch ia32lisb May 09 15:38:19 i'll cross that bridge when i get to it again May 09 15:38:28 * g00s will remember dragorn knows what to do :D May 09 15:38:37 g00s: once you know the multiarch thing the rest falls into place pretty easily May 09 15:38:38 does anyone know how i can repack a system.img file in windows May 09 15:38:49 dragorn, i reran eclipse with same problem $ ./eclipse May 09 15:38:49 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 May 09 15:45:54 Should i now remove the JAva and all related 64-bit packages and re-install them? cause in my case still same eclipse failing.. on 14.04 May 09 15:49:09 i think google should just make a docker image of the tools for linux people May 09 15:49:30 all the things, self contained :) May 09 15:49:36 YES - g00s cause its nightmare i am having for few weeks since 14.04 May 09 15:51:01 Now to temporary workout, can i simply Virutalbox install a Ubuntu 32-bit and do all those ? will it then normally work Guru dragorn , g00s May 09 15:54:11 Hey all, I'm using the Spring Android library (with AndroidAnnotations). If I am using an Interceptor to inject a header into the request (custom auth), how can I add a SharedPreference (which requires a Context) as the value of a header? May 09 15:55:26 sudo apt-get install synaptic; synaptic; added : deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse ; sudo apt-get update ; sudo apt-get install ia32-libs May 09 15:55:32 installing those see what happens May 09 15:56:58 http://ubuntuforums.org/showthread.php?t=2182653cc -- i hope they fixed it... else i will lose my MacBook Air brand new laptop just for Android tools to test May 09 16:04:01 I'm using an open source library from github, but I need to add a custom method. When I click on command click on the object in eclipse, it takes me to object.class file which I can't edit. how would I overcome this? May 09 16:04:52 clone the repo and import it as a library project May 09 16:15:24 dragorn, g00s i did above sudo apt-get install synaptic; synaptic; added : deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse ; sudo apt-get update ; sudo apt-get install ia32-libs and now eclipse works and also my apps build working on 64-bit machine May 09 16:15:58 so this is weired ..screwed.. bug .. knocked me out for several weeks by putting in a thinking/guessing/frustration looop May 09 16:22:44 hi all ! Is there a snippnet how to safe a txt file to another android divice via wifi May 09 16:22:47 Someone going to file it or report it so that less confusion we can have about it? Thank you , have a nice weekend May 09 16:25:57 IchGuckLive, you'd have to set 1 device up listening on a port, and then have the device you want to send the file from connect to that socket and send the file May 09 16:26:18 ok May 09 16:27:15 unless you want a server in the middle, then you have a seperate server listening on a port, then have 1 send the file, and the other ask for the file May 09 16:31:25 i guess you can use android 4.0+ Wifi P2P (Wifi Direct) May 09 16:31:31 not sure how well it works May 09 16:32:33 dragorn have you had any experience with Android Wifi P2P http://developer.android.com/guide/topics/connectivity/wifip2p.html May 09 16:32:46 i'm thinking about trying it myself May 09 16:33:08 also wonder what the range is May 09 17:03:23 i think i know why its quiet all of a sudden May 09 17:03:25 https://news.ycombinator.com/item?id=7721601 May 09 17:04:09 If I can activate a Sync (of a SyncAdapter) from the User Settings but not from a requestSync() in onCreate of the app, what could I possibly doing wrong ? May 09 17:08:39 I saw that there are android.support.annotation.NonNull and android.support.annotation.Nullable, but AndroidStudio doesn't recoginze them. why? May 09 17:10:22 pfn wonder if this changes anything; would google license Java SE Micro , etc May 09 17:10:49 hello guys May 09 17:11:15 i've some problem with access to su command programmatically May 09 17:11:25 http://pastebin.com/HgqFuSBY May 09 17:12:01 chmod won't work on sd card. May 09 17:12:06 the chmod isn't executed..the file in directory isn't modify May 09 17:12:09 i don't think you can use su on android unless the device is rooted May 09 17:12:18 ExEcUtIvE, SD card is FAT32 May 09 17:12:19 the device is rooted May 09 17:12:22 what you're doing makes no sense. May 09 17:12:34 also directory is totaly wierd. May 09 17:13:45 I saw that there are android.support.annotation.NonNull and android.support.annotation.Nullable, but AndroidStudio doesn't recoginze them. why? May 09 17:13:47 yes is only test for see if it work May 09 17:14:43 yoavst: is the support library included? May 09 17:14:55 yep May 09 17:15:04 but why if is fat32 don't work? can you have a link for knowledge? May 09 17:15:35 yoavst: my reaction (7 second video): https://www.youtube.com/watch?v=oTRZOYTev4g May 09 17:16:16 Mango_Man: :) May 09 17:19:34 Mavrik in system folders can i change permits? May 09 17:23:07 you need a permit to change the permits May 09 17:23:14 i sell those :D May 09 17:23:47 yo dawg... May 09 17:23:51 i'm authenticated like SU May 09 17:24:20 and i try to do chmod 777 system/etc/ May 09 17:28:33 i've try also mount of partition in rw but i haven't obtained results May 09 17:29:19 like // dataOutputStream.writeBytes("mount -o rw,remount /system\n"); May 09 17:29:45 g00s, why, no May 09 17:29:57 there's nothing to win, just bs May 09 17:30:42 I saw that there are android.support.annotation.NonNull and android.support.annotation.Nullable, but AndroidStudio doesn't recoginze them. why? May 09 17:31:54 Because you haven't added the support annotations library as a dependency May 09 18:01:35 can i modify system.img (ext4) in windows May 09 18:08:28 g00s: I have not May 09 18:08:52 g00s: range would be equivalent to wifi range - call it 100 meters under normal circumstances. Since it's device-to-device you don't get the benefit of an AP with nice antennas May 09 18:12:20 dragorn hm, interesting. yeah i read 200m somewhere, but it makes sense that devices have lame antennas May 09 18:12:29 g00s: i'm believe 200m in open air May 09 18:12:39 g00s: etc etc etc. it's wifi. a billion things can mess with it May 09 18:12:47 :) May 09 18:13:28 range should be "about the same as normal wifi, maybe a little crummier" May 09 18:14:27 Hey, not exactly native android dev but, I'm interested in learning cocos2d-x, I can hardly find any documentation on the subject, am I missing something? May 09 18:28:07 aviran: try searching for iPhone instead of Android. May 09 18:33:02 i wonder why i don't here more about Wifi direct, seems so useful. like camera -> tablet May 09 18:38:30 howdy ... May 09 18:40:17 ok i am hitting this "issue" ... http://stackoverflow.com/questions/12445583/issue-with-composeshader-on-android-4-1-1 May 09 18:41:07 did you try turning off hardware acceleration? May 09 18:42:49 frankdoyle: i did ... May 09 18:43:07 frankdoyle: and it is a "workaround" May 09 18:43:26 i am wondering if there is something i could do in a different way .. May 09 18:43:39 i am doing a clippath on the canvas May 09 18:43:55 which is also suffereing from the same issue May 09 18:44:03 that's not so much a "workaround" so much as it is the solution. many of those features simply don't work with hardware acceleration May 09 18:44:35 ok but bear with me here May 09 18:44:47 i have a bitmap ... May 09 18:44:57 and the bitmap contains a shader May 09 18:45:16 i need to use the bitmap as the shader May 09 18:45:28 on a particular path May 09 18:45:42 so for now i am using clippath on the canvas May 09 18:45:51 which has the same issue May 09 18:46:53 i am wondering if i can do this differently whithout hitting this bug May 09 18:50:21 As frankdoyle says, not all drawing operations are supported on hardware accelerated views. The stackoverflow question you posted links to a list of operations that don't work/only works on certain api levels. Either disable hardware acceleration on that view, or avoid methods listed on that page May 09 18:50:30 ndec: can we remount a parttion mounted as ro at different mount point in android May 09 18:50:48 Eventually everything should be supported on hardware accelerated views (or at least deprecated in favor of other approaches), but until then those are your options May 09 18:51:29 SimonVT: i did not post the question ) May 09 18:51:48 SimonVT: my question is "maybe i am doing this wrondgly" May 09 18:52:34 SimonVT: i have this bitmap that contains a gradient ... May 09 18:52:51 i need to use this gradient on particular path May 09 18:53:10 SimonVT: how would you doi t? May 09 18:55:59 I don't know May 09 18:56:12 If you have it working without hardware acceleration, consider if you actually need it for that particular view May 09 19:04:21 Hey there. I'm using viewpager with 3 fragments. The problem is that the main fragment (position 1) doesn't show the action bar and the other two fragments show. There is a way to make the action bar slide with the fragment pages when swiping through fragments? May 09 19:05:15 Birk: don't think you'd be able to use the stock viewpager for that, but an old sliding drawer implementation did slide the actionbar, you may be able to do something with that May 09 19:05:49 alternatively, you could just hide the actionbar whenever anything but the first fragment is showing May 09 19:06:39 frankdoyle: Im doing that, but the problem is that the action bar just disapear after the fragment is in place May 09 19:07:10 just when the swipe movement is completed May 09 19:07:25 No, there's only one actionbar per activity. Each fragment doesn't have their own May 09 19:08:07 If you absolutely need something like this, you'll have to make each fragment provide their own actionbar-like view and disable the native action bar May 09 19:08:38 SimonVT: yes, Im using the same action bar in all fragments. May 09 19:09:06 maybe one fragment could go into immersive mode May 09 19:09:17 * g00s just throws that out May 09 19:09:17 SimonVT: Yes, I thought about that. But I was trying to avoid that :(. May 09 19:10:05 g00s: maybe, will try that May 09 19:11:23 That's not going to change anything May 09 19:14:02 I think I will need to implement a custom view to use like an action bar. May 09 19:15:23 i think thats one of the reasons why google started using the Card UI pattern May 09 19:15:45 once you have a few fragments on the screen, they can easily clobber each other with actions in the 'global' action bar May 09 19:15:48 kinda shitty May 09 19:15:57 Or just always show the action bar, or be satisfied with it only hiding/showing once a page is completely settled May 09 19:16:03 so instead, use a card and put a more contextual cue there May 09 19:16:20 like that overflow menu or whatnot May 09 19:16:43 i mean, it would be silly for a card to be full screen i think, so dunno May 09 19:16:57 mut maybe you can restructure the UI May 09 19:17:01 The real problem is that the f****** client wants a dam app that looks the same for ios and android. May 09 19:17:11 hehe May 09 19:17:16 that still happens in 2014 ? May 09 19:17:24 A lot! May 09 19:17:41 more then you can imagine, lol May 09 19:18:07 than* May 09 19:21:50 I blame it on design teams May 09 19:22:03 the design team doesn't know ios vs. android, and just push for whatever they design May 09 19:22:52 It's all great when you're both the designer and the coder. And don't know anything about iOS May 09 19:23:24 then you shouldn't be the one implementing the ios app, either May 09 19:23:46 That's why I don't make iOS apps. I'm slow enought with Android May 09 19:23:53 enough* May 09 19:24:22 It usually takes me days to fix a problem. Such as the dark divider one. Since wednesday. May 09 19:24:25 yeah, these platforms keep getting bigger , i can't do more than 1 May 09 19:24:30 * g00s isn't that bright May 09 19:24:31 And counting May 09 19:25:10 i hear more iOS devs are leveraging there skills on OS X to write desktop apps May 09 19:25:38 i suppose WP is similar in that regard, the more things converge you leverage the skill for mobile / desktop May 09 19:25:40 It's designers job to know about ios vs android, if it's their fault then they need to take a course or some shit May 09 19:26:05 as if any of that sticks in their mind May 09 19:27:04 what cant look the same? May 09 19:27:13 thats why i really liked the more flat designs; not only do i really like them as long as there is enough affordance - but they are pretty easy for regular devs to do also. of course, design means typography / spacing / grid systems etc too May 09 19:27:19 iOS apps and Android apps, njcomsec May 09 19:27:31 I like consistency May 09 19:27:33 i mean what in those apps... like the action bars? i thought everything could be edited May 09 19:28:01 njcomsec, can't means shouldn't May 09 19:28:14 oh right true May 09 19:28:14 but when somebody says they want the iOS and android version the same, that can mean one or both of (1) share the same design language (make buttons look the same) or (2) share the same information architecture May 09 19:28:48 well obviously the coding will be different May 09 19:28:53 well sure May 09 19:29:16 but yeh i see what you mean, android apps should look like android apps and ios like ios apps May 09 19:29:23 so that users of those phones have a familiar ux May 09 19:29:42 where android fucked up early on is the concept of the back stack, that seems to be a massive UI screw up May 09 19:29:55 people backing out of the app and landing at the home screen, etc May 09 19:30:03 i still do it with the stupid kindle app May 09 19:30:12 Dammit I added too much chilli flakes to my noodles while reading all this! I'll breathe fire now! May 09 19:30:22 g00s, what should happen when you press back on the kindle app? May 09 19:30:47 autrilla kindle app has some weird bugs, so maybe i shouldn't use that May 09 19:31:03 like, they use the Nav drawer also ... May 09 19:31:05 I use it, whispersync is great. And this is very off-topic May 09 19:31:16 What's wrong with the nav drawer? May 09 19:32:17 Can anyone help with this? http://stackoverflow.com/questions/23524413/ May 09 19:33:04 tl;dr May 09 19:33:07 So much xml May 09 19:33:32 autrilla i'm getting really mad at amazon, its got some hellacious bugs. like, when i start it I often just get a grey screen. and it pegs the CPU May 09 19:34:18 SimonVT, summary: @android:color/white on