**** BEGIN LOGGING AT Fri Mar 07 02:59:58 2014 Mar 07 03:04:59 anyone know if its OK to call BluetoothDevice#fetchUuidsWithSdp() concurrently on multiple BluetoothDevices ? Mar 07 03:05:05 Is there any way to control/access usb camera with android's framework? Mar 07 03:06:10 kartoffelauflauf: if you get USB host to work, yes. You'll have to write your own drivers, though Mar 07 03:08:10 p_l: Do you mean linux drivers or this "hal thingie" - kinda new to this stuff. It's an uvc camera though. Mar 07 03:10:16 hal=hardware abstraction layer Mar 07 03:11:10 This sounds hard. Aren't there webcams, which provide hals already or something like that? Mar 07 03:11:19 nick9998 Mar 07 03:12:32 there is AOSP source code Mar 07 03:13:59 good luck compiling :) Mar 07 03:15:32 Sorry for being so noobish, but I don't get it. I am able to build a custom android image, that's not the problem. gordon_ nick9998 Mar 07 03:18:31 dont know if that kernel supports uvc Mar 07 03:18:38 you need to check sources Mar 07 03:19:16 kartoffelauflauf: no, you'll have to talk USB protocol Mar 07 03:20:03 you can't add drivers (well, normally) to Android at runtime, you can't depend on UVC being available in the device (I am not sure if framework even allows dynamic add of video devices) Mar 07 03:20:33 gordon_: Enabled uvc, well it's working with special apps, but not with standards apps. And I can't use the android camera api with it. Mar 07 03:20:49 ah so that's the way Mar 07 03:21:00 well, I dont know then Mar 07 03:21:23 I should dive into more barebone android Mar 07 03:22:19 p_l it's a sbc, so it's rooted and I can configure and compile what I want. Enabled uvc already, but the webcams are only accessable via special apps and not with the androids framework. Mar 07 03:22:59 kartoffelauflauf: I suspect you could modify the framework to accept the cameras, but it might involve attaching the cameras permanently Mar 07 03:23:11 I think the framework sources contain media driver that uses V4L Mar 07 03:23:22 hm Mar 07 03:23:27 what about NDK ? Mar 07 03:23:56 what lsusb shows you ? Mar 07 03:24:43 attaching the camera permanently wouldn't be a problem. Modify the framework... mmh, no idea where to start. p_l Mar 07 03:25:19 su Mar 07 03:25:26 password: Mar 07 03:25:52 su: Sorry Mar 07 03:27:29 gordon_: lsusb is not a part of android afaik? Mar 07 03:27:52 root@maguro:/ # lsusb Mar 07 03:27:53 Bus 001 Device 001: ID 1d6b:0002 Mar 07 03:28:14 just tried Mar 07 03:28:43 what the hell AS why is my log gone Mar 07 03:28:47 how do I open this shit up Mar 07 03:28:57 I just see the app name Mar 07 03:29:07 kartoffelauflauf: some ROMs have more "interesting" binaries installed Mar 07 03:29:32 kartoffelauflauf: one thing that you'll probably find good to have is the gdbserver that *should* be there Mar 07 03:29:47 LoneSoldier728: why do you use AS ? Mar 07 03:29:50 why not intellij Mar 07 03:30:19 kartoffelauflauf: can be accessed with "adb forward" Mar 07 03:31:04 g00s_: btw, I got sent a great link on ebay: http://cgi.ebay.ca/ebaymotors/TU-95MS-Soviet-Bomber-/121288805711?forcev4exp=true#ht_5159wt_1275 :D Mar 07 03:31:14 yes i just saw that Mar 07 03:31:18 'not ready to fly' Mar 07 03:31:20 BAH! Mar 07 03:32:02 g00s_: it needs an overhaul, yes Mar 07 03:32:09 that's why it's so cheap for a complete plane Mar 07 03:32:17 if its from Ukraine, it probably didn't fly for 20 years Mar 07 03:32:25 *it's Mar 07 03:32:26 i wonder how hard it is to get parts for that thing Mar 07 03:32:44 g00s_: given that it's complete... shouldn't be too hard Mar 07 03:32:57 mind you, it will gobble naphta like crazy Mar 07 03:34:39 maybe i just missed the code; but in the nav drawer sample i have, when you open it, the stuff underneath it gets darker. how does that happen? Mar 07 03:35:14 you're really fascinated by this drawer thing aren't ya Mar 07 03:35:22 :) Mar 07 03:36:26 i'm not sure yet if i'll use it Mar 07 03:36:45 if i only have 3 tabs i use that instead Mar 07 03:38:35 g00s_: 3d printer Mar 07 03:39:34 yeah … but i would think a lot of the maintenance is on the engine parts Mar 07 03:40:03 we should make a lot of 3d printers Mar 07 03:40:11 and host opensource air plane service Mar 07 03:40:25 had a friend who worked at honeywell on engines. i thought it was so interesting, the air pollution is so bad in parts of china - beijing - that planes that fly in there literally get their titanium engine parts destroyed and need constant replacement Mar 07 03:40:38 oh man i hate that word, do canadians say 'air plane' as well ? Mar 07 03:40:57 haha Mar 07 03:41:14 do you think I am from Canada? Mar 07 03:41:40 was just a question if it's just an american thing or not Mar 07 03:41:50 hm Mar 07 03:41:59 what should I say thne? Mar 07 03:42:01 aircraft ? Mar 07 03:42:03 plane Mar 07 03:42:07 fly thingy ? Mar 07 03:42:26 magic metal sky bird Mar 07 03:42:34 aero... Mar 07 03:42:38 aeroplane ? Mar 07 03:42:44 seems legit for me Mar 07 03:42:49 It's big and white and round, and looks like a giant tylenol Mar 07 03:43:08 what's tylenol ? :S Mar 07 03:43:21 (heh - "Airport" humour :) ) Mar 07 03:43:31 but that's not important right now Mar 07 03:43:49 Andy couldn't do it! Mar 07 03:44:05 the question is Mar 07 03:44:15 who does the crash test of that plane ? Mar 07 03:44:27 are you volunteering ? Mar 07 03:44:34 not sure Mar 07 03:44:41 depends who's the mechanic Mar 07 03:47:20 most 3d printers aren't capable of machining the parts for engines anyway :P Mar 07 03:48:09 wait, you mean I can't print a Ferrari at home with my $200 kickstarter 3d printer? Mar 07 03:48:12 (the fabricators that can are priced above 6 figures in USD, and even then it's problematic, if possible) Mar 07 03:48:25 Leeds: ferrari is easier :P Mar 07 03:48:38 jet engines make car parts look puny Mar 07 03:49:17 and that's even for big slow turbofans and not, let's say, the crazy dual mode J58 :> Mar 07 03:50:00 I heard Elon Musk announced plans to 3d print x-wings by the end of the decade Mar 07 03:50:08 lol Mar 07 03:50:19 which will be able to fly from LA to NY in less than a parsec Mar 07 03:50:30 Leeds: dude, you're killing me :D Mar 07 03:51:02 (n.b. there are interpretations where the infamous "parsec" quote from New Hope is *correct*, though I have no idea what they did with it in extended universe) Mar 07 03:51:54 i doing a simple image editor app. In order to make layers for the image (like overlapped layers of photoshop) , I planning to add programmatically ImageView over and over again on the bitmap Mar 07 03:51:57 I thought the handwave was that it was at least partially a route-planning challenge as well as flying, so using a more direct route means traveling less distance Mar 07 03:52:15 from what i search, imageview is kinda resource consuming Mar 07 03:52:22 is there any better approach for this ? Mar 07 03:52:45 bubuzzz: yeah, I think you'd want to be using something like a Surface and doing the compositing yourself? Mar 07 03:52:56 Leeds: that's not so much hand-wave as airplane raiding had navigational competitions :) Mar 07 03:54:36 Leeds: I have no idea about what to create for the compositing atm, but I will research more about Surface. thank for your suggestion Mar 07 04:00:33 * g00s_ deletes all nav drawer stuff Mar 07 04:01:38 Nilium the new f.lux can accommodate people with wacky sleep schedules like us :) Mar 07 04:02:28 I don't bother using Flux. Not a fan of the colors. Mar 07 04:06:38 Nilium atom.io is mac only ? Mar 07 04:06:59 So far. Mar 07 04:11:18 g00s_: github standardized on MBPs Mar 07 04:12:16 * p_l also pretty much lost interest the moment they mentioned "web technology" Mar 07 04:13:28 i guess it could be worse, like writing it in php or something Mar 07 04:14:40 ... wanna bet there's such an abomination somewhere as "web2.0 code editor"? Mar 07 04:15:03 i bet eclipse or firefox has something :) Mar 07 04:15:54 Atom's pretty shit. Mar 07 04:15:59 It might improve a bit in terms of performance, but it's almost guaranteed to remain shit. Mar 07 04:16:32 is it me or the ST guys aren't making much progress Mar 07 04:16:38 g00s_: not eclipse, I don't think anyone ported PHP enough to JVM ;) Mar 07 04:16:54 g00s_: isn't ST one guy who used to have shitty support ideas? Mar 07 04:17:09 Whatever Jon is doing on Sublime Text is anyone's guess, but he's been quiet Mar 07 04:17:17 He didn't have shitty support ideas, he just had no support period Mar 07 04:17:21 haha Mar 07 04:17:31 also, my experience with ST2 was... pretty meh Mar 07 04:17:40 It's one guy, you can only really do so much without dropping either development or support Mar 07 04:17:42 maybe if your only comparison was textmate Mar 07 04:17:50 or Notepad++ Mar 07 04:18:14 I'd like to go back to TM2, but the whole plugin API thing in Sublime is fairly handy. Mar 07 04:18:22 Vim would be a good option, but writing stuff for Vim is pain incarnate Mar 07 04:18:35 Nilium: Emacs + evil? Mar 07 04:19:19 Well, writing and using Emacs is worse than writing stuff for vim. Mar 07 04:19:19 *writing for and using Mar 07 04:19:25 vim FTW Mar 07 04:19:36 vim for life Mar 07 04:19:50 Vim wins out in the end simply by not being emacs Mar 07 04:20:27 Nilium: Vimscript negates that ;) Mar 07 04:20:59 I'd say vimscript is preferable to elisp Mar 07 04:21:00 EVIL so you get VIM-like interface (no idea how far it goes, I don't use it) + somewhat saner extension system Mar 07 04:21:02 I think that today, for a change, I'm going to do a little work :) Mar 07 04:21:29 I spent today writing unit tests in Go to get in the habit of writing unit tests Mar 07 04:21:30 Because I normally don't bother. Mar 07 04:22:22 after you get hang of unit tests, get on acceptance/functional/integration tests (or whatever is the name of the week for them) Mar 07 04:23:22 unit testing is a pita :) Mar 07 04:23:46 Q/A acceptance is usually done in both unit and integration test settings ... depends on your setup :) Mar 07 04:24:30 capella: unit testing was in my experience more internal for the developers. Acceptance didn't care about individual tests, it cared about inputs and outputs :D Mar 07 04:25:26 right ! unit is more closely tied to me/dev and then gradiates upward through Q/A as it releases away Mar 07 04:25:58 integration testing / business functional, etc Mar 07 04:28:45 any particular reason an InputConnection wouldn't allow special characters? Mar 07 05:59:13 hi Mar 07 05:59:22 anybody up ?? Mar 07 06:58:05 hmm Mar 07 06:58:34 I got a problem, I set empty view for listview but it doesnt came up Mar 07 06:58:41 adapter.isEmtpy() returns true Mar 07 06:58:46 view is not null either Mar 07 06:58:51 and I set it like Mar 07 06:58:56 listView.setEmptyView(view) Mar 07 06:59:02 it's inside fragment Mar 07 06:59:04 any idea? Mar 07 07:20:50 If I pass a jstring id from Java to C++ through JNI is it passed by value or reference or ? Mar 07 07:21:12 i.e. static void JNIMyMethod(JNIEnv* e, jclass clazz, jstring id) Mar 07 07:21:23 Is id parameter copied? Mar 07 07:27:35 Is there a way to load ViewPager inside AsyncTask? Because it take 5 seconds in my Nexus 4 to load fragment viewPager with 12 fragments that contains only listview. Mar 07 07:35:02 Is there a way to load ViewPager inside AsyncTask? Because it take 5 seconds in my Nexus 4 to load fragment viewPager with 12 fragments that contains only listview. Mar 07 07:49:39 hi Mar 07 07:55:27 hello, how can i disable the sounds play when i press volume down key ??? Mar 07 08:03:57 Is there a way to load ViewPager inside AsyncTask? Because it take 5 seconds in my Nexus 4 to load fragment viewPager with 12 fragments that contains only listview. Mar 07 08:27:01 hi, as an alternative to QR code, scanned by customer at checkout for bonus points type deal, anyone know of a cheap way of getting customer ID from phone (and then issuing points to their device via cloud)? OCR of shot of app screen with embedded id? nfc not an option as not all phones have it. Mar 07 08:44:14 i have a glsurfaceview. when i press HOME and then back to glsurfaceview, it's texture is gone. any hint? Mar 07 08:53:23 Morning. I'm just taking my first steps in using maven in intellij to manage some dependencies. So far so good. In a "conventional" app I used slf4j and log4j and got a ncie log. Trying the slf4j wrapper with slf4j-android but not seeing any logcat output. My understanding is that it should just logcat. Can someone here please confirm it does indeed work and that the problem must be at my end. Mar 07 09:02:17 hi, would someone see my issue written here : https://stackoverflow.com/questions/22239482/android-4-3-native-crash-in-unkown-unknown Mar 07 09:02:54 I don't know what I should do about it. Mar 07 09:05:28 superlinux-hp never been able to reproduce it ? Mar 07 09:05:51 do you have and ndk bits? Mar 07 09:06:22 g00s_, nope.. it's from the customers.. happened on the 4 devices.. same error of signal 16 Mar 07 09:06:39 g00s_, no ndk at all. Mar 07 09:06:53 purely java. Mar 07 09:09:03 hm , yeah. looking at the play store listing Mar 07 09:11:05 SIGSTKFLT Mar 07 09:11:24 superlinux-hp see this? http://stackoverflow.com/questions/21104107/fatal-signal-16-sigstkflt-has-been-occured-unexpectedly Mar 07 09:15:14 g00s_, thanks Mar 07 09:20:33 g00s_, yes.. my app starts with an image view of the logo of my company then using a handler the view is updated with the logo of the app, then it moves to a newer activity. Mar 07 09:20:37 rgr you using AndroidLoggerFactory? just poking around in the code Mar 07 09:21:38 Hi guys, how do you convert a Map to an array? Mar 07 09:22:21 No idea. The whole idea of slf4j is that it hides the implementation - but I got a logger.info to work so thats all fine now. Just not a logger.debug() . Obviously something with logging levels I would say. cheers. Mar 07 09:30:37 Is there a way to load ViewPager in AsyncTask? Mar 07 09:33:30 Does Android's Standard Camera app use Android's camera api? (Just to check, whether my cam be accessed via android's camera api) Mar 07 09:34:20 out of curiosity, why would that dictate what your cam app can be accessed by? Mar 07 09:41:08 Is there a way to load ViewPager in AsyncTask? Mar 07 09:41:19 rgr I want to use android on an embed system. The cheapest and easiest possiblity to use an webcam & microphone would be via usb and uvc. "Out of the box" uvc cameras can't be accessed by google's android api afaik. Mar 07 09:44:55 rgr nun versuche ich die usb webcam so "einzubinden", dass sie von Apps benutzt werden kann, welche Androids Camera API nutzen. Und wenn ich auf der standard kamera app was sehe, hoffe ich zu wissen, ob es der Fall ist. Mar 07 09:49:44 what is the best way to roll a single-podcast player app? the idea is to have something easy for users to install & listen to the podcast Mar 07 09:51:55 html5 :P Mar 07 09:52:08 because they dont need to install anything Mar 07 09:52:25 (no, dont do that) Mar 07 09:53:26 i mean i wouldnt be opposed to an app that is basically loading an html5 webpage Mar 07 09:53:56 i just want to take advantage of the ease of setup for users with the app store Mar 07 09:54:15 Hi, has anyone here a Samsung device with 4.4? Mar 07 09:54:31 yes Mar 07 09:54:32 my developer console shows an error: Mar 07 09:54:34 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=application/x-openvpn-profile (has extras) } Mar 07 09:54:54 is the "new" File picker of 4.4 not present on samsung galaxy 4.4 devices? Mar 07 09:55:19 what are you donig to get that error? Mar 07 09:57:00 Basically just starting the intent that is in that error message Mar 07 09:57:23 on the Nexus 7 it shows the file picker (http://developer.android.com/guide/topics/providers/document-provider.html) Mar 07 10:00:32 plaisthos defensively, you should do this http://android-developers.blogspot.com/2009/01/can-i-use-this-intent.html Mar 07 10:01:12 g00s_: ?! Mar 07 10:01:25 yeah, I know Mar 07 10:01:56 but I trying to figure out how much a galaxy with 4.4 deviates from Stock 4.4 to see what exactly is broken there Mar 07 10:02:24 but but … there is no fragmentation :) Mar 07 10:03:37 Is there a way to load ViewPager in AsyncTask? Mar 07 10:07:06 Hello, how do I get eclipe to auto insert code snippets I make ? Mar 07 10:07:13 any ideas if the logging level set in the intellij logcat UI should alter the compilation flags and thus alter the slf4j logging level? Mar 07 10:08:46 my google-fu has evaporated. how the hell do I set the log level for slf4j? Cant find it anywhere. Mar 07 10:10:54 What is a hard drive ? Thats when you go on a bicycle from Paris to Dacar. Mar 07 10:11:10 thats not a drive. thats a ride. Mar 07 10:11:28 depends on how good your english is ;) Mar 07 10:11:34 * Unknown0BC smiles Mar 07 10:11:39 ;) Mar 07 10:11:41 yes, if its bad you would say drive :) Mar 07 10:13:04 Well anyway, I hope the joke at least made someone crack a smile. Mar 07 10:14:29 hello, i want to access usb device using android native api. im able to communicate with the device (show information about it in popup). i find that android usb api is a little primitive as their is no helper function to do common task like parsing configuration descriptors etc. anyone can suggest me which library shall i use to complement the api. Mar 07 10:14:54 i need to parse vendor specific descriptors of the device and api similar to python (libusb1) is much appriciated as i have used it before Mar 07 10:17:54 what is the best way to roll a single-podcast player app? the idea is to have something easy for users to install & listen to the podcast Mar 07 10:17:58 any idea how to check if Mic is busy with another app when using AudioRecord to record audio? Mar 07 10:18:14 because this http://developer.android.com/guide/topics/media/audio-capture.html doesn't serve any good Mar 07 10:19:18 these guys say it's impossible, http://stackoverflow.com/questions/12192179/can-we-check-the-state-of-microphone-of-an-android-phone-if-we-can-then-how-can Mar 07 10:19:41 but that isn't true, Spectrum Analyzer app does it, I've tried it Mar 07 10:25:41 With callbacks in Android, is the preferred way to pass new Callback() {} whatever as an argument, or to declare the callback in its own variable and pass the variable? Mar 07 10:26:56 (with an objc block, I'd pass the block as an argument in most cases, but I don't know how the runtime handles things with java) Mar 07 10:27:34 DanToml you can do it the first way. make sure no to leak stuff though Mar 07 10:28:15 don't pass a block to something that will outlive the context of the block Mar 07 10:28:18 DanToml: if you're doing this as a one time thing, the first, if this is a repeated operation declare it as a variable or even better, as a const Mar 07 10:29:50 g00s_: Cheers. Should I do the objc thing of passing weak references to the block, then strongifying inside of the block? Mar 07 10:30:31 hm, not sure O.o Mar 07 10:31:36 DanToml: that is a good way of doing it, but it depends on what you're doing Mar 07 10:32:09 thepoosh: In this case: API requests. Mar 07 10:32:24 in an AsyncTask? Mar 07 10:33:07 basically, if you're updating the UI you need to make sure the activity is not finishing and that the UI object is not null Mar 07 10:33:14 I'm using Squares Retrofit, not 100% sure what it does under the hood, I assume it either uses its own thread pool or async tasks. Mar 07 10:33:32 but also you must not keep a string reference because then you'll prevent the class from GC Mar 07 10:33:45 so weak references are a good idea Mar 07 10:34:18 I spent about 3 weeks finding and removing cyclic references like that from our app Mar 07 10:34:26 it made everything better Mar 07 10:34:44 now I'm very cautious about it Mar 07 10:35:23 IIRC I should be able to pass WeakReference weakObject = new WeakReference(strongObject); Mar 07 10:35:54 yes Mar 07 10:36:07 i hate that kind of defensive programming, even though it may be necessary Mar 07 10:36:18 android is a major pita in this area Mar 07 10:36:57 g00s_: sure, but you cannot manually free memory so this is what it is Mar 07 10:37:13 at least weak and soft references are possible] Mar 07 10:37:19 think about the alternative Mar 07 10:37:33 there isn't a good way of using weak references with RxJava yet, i'm kinda bummed Mar 07 10:38:12 RxJava is the android lambda foundation thingy? Mar 07 10:38:24 no thats retrolambda Mar 07 10:38:34 rxjava is, rx for jvm Mar 07 10:38:39 retro lambda not that great Mar 07 10:38:46 didn't look so good Mar 07 10:38:50 yeah, i would avoid that Mar 07 10:39:01 and made no sense for performance Mar 07 10:39:44 i like the idea of not writing new OnclickListeneer () { @override ... blah blah blah Mar 07 10:39:59 Java has reactive stuff? - awesome sauce. Mar 07 10:40:05 lemonxah: so implement onclick Mar 07 10:40:17 but beyond that using lambdas in java is just so broken Mar 07 10:40:30 thepoosh, that is exactly the pattern i dislike Mar 07 10:40:40 yeah Mar 07 10:41:08 implementing onclick with java you have to say item.setOnclickListener(new OnclickListener() { @override onClick(..){} }); Mar 07 10:41:11 that is super anoying Mar 07 10:41:28 what would you like better? Mar 07 10:41:31 this is a lot better item.setOnclickListener( (v) -> {} ); Mar 07 10:41:40 that is what retro lambda gives you Mar 07 10:41:43 v -> {} yeah Mar 07 10:41:45 oh, the JS thingie? Mar 07 10:41:47 and i much prefer lambda Mar 07 10:41:55 its not JS thingie o.O Mar 07 10:42:01 the c# Mar 07 10:42:08 O.o Mar 07 10:42:11 lambda has been around for way way before C# or JS Mar 07 10:42:15 js has the internal function decleration Mar 07 10:42:27 i learned lambda from c# Mar 07 10:42:30 :S Mar 07 10:42:33 i'm young Mar 07 10:42:35 ish Mar 07 10:43:14 gonna turn 31 n=in 2 weeks Mar 07 10:43:25 so what do I know?! Mar 07 10:43:33 I'm still a paduan Mar 07 10:43:42 heh Mar 07 10:43:42 you are not that young Mar 07 10:43:46 i am like 1 year older Mar 07 10:43:50 fuck you! Mar 07 10:43:56 I AM YOUNG Mar 07 10:44:04 heh. If anyone here is young, it's probably be me, but I've been writing code since I was tiny. Mar 07 10:44:18 <-- started when i was 6 Mar 07 10:44:20 you're all a bunch of children Mar 07 10:44:24 anyway yeah i dislike java Mar 07 10:44:26 verymuch Mar 07 10:44:43 yes Leeds that i am :) Mar 07 10:44:48 Leeds: how old are you Jedi master? Mar 07 10:45:03 lemonxah: I don't dislike it, but I like C# better Mar 07 10:45:11 closer to 40 than 30 :( Mar 07 10:45:20 i like C# yes i did C# for 10 years Mar 07 10:45:23 why the long face? Mar 07 10:45:23 F# for 3 Mar 07 10:45:37 F# is the MS functional language? Mar 07 10:45:40 yes Mar 07 10:45:43 * DanToml is closer to 18 than any other age. :L Mar 07 10:45:44 cool Mar 07 10:45:46 * DanToml feels young. Mar 07 10:45:52 I like functional thinking Mar 07 10:46:02 then code in scala on the android platform Mar 07 10:46:08 scala >>>> java Mar 07 10:46:41 Scala is kinda nice. Still very java-y though. Mar 07 10:46:58 not at all DanToml Mar 07 10:47:10 its a super set of java to allow java code to run in it Mar 07 10:47:20 but if you code scala its not like java at all Mar 07 10:47:39 elaborate Mar 07 10:48:26 Are there any Google dev here? I see the page http://developer.android.com/sdk/installing/studio.html regarding Android QStudio is WAY outdated regarding version. Could anyone update? Mar 07 10:48:28 scala is the "frist" langauge of its kind supporting both OO and FP Mar 07 10:49:20 wget http://tools.android.com/download/studio/canary/0-5-0 Mar 07 10:49:32 did i read that Odersky is getting upset the language is getting to big ? Mar 07 10:50:07 havent seen that g00s_ Mar 07 10:50:25 lemonxah: Thanks, this is where I'm downloading too. But for Android newcomers it would be nice if the link could be updated on devloper.android.com. Mar 07 10:50:52 wget its still pretty alpha ish cause its on the canary develop branch Mar 07 10:51:52 heah, i'll let you guys test 0.5.0 for me :D Mar 07 10:52:32 shirley you meant "frist langauge" .... Mar 07 10:53:31 g00s_, it has breaking changes Mar 07 10:53:38 not backwards compatible Mar 07 10:53:54 has to use gradle 1.11 and android plugin 0.9.+ Mar 07 10:54:01 the only thing i saw was the androidTest directory Mar 07 10:56:07 Hi, I've got this weird problem: http://pastebin.com/281hdUyk Mar 07 10:57:21 LimEJET: why the hell would you do that?! Mar 07 10:57:38 g00s_: 0.5.0 is working flawlessly on my ArchLinux system. Even the gradle migration from 0.8 to 0.9 didn't cause any problem. I even see that bugs with AppCompat in the styles.xml have been solved with the new version. Mar 07 10:58:29 wget does that mean that you can have AppCompat theme inheritence? Mar 07 10:58:37 (Theme. keyword wasn't recognized by the syntax and AS always said the symbol was unreachable, but it was working). Mar 07 10:58:46 LimEJET, better way is to hide one button and unhide the other one Mar 07 10:59:12 thepoosh: but I have loads of buttons and the user needs to be able to set their names with "button1=name" in a text file Mar 07 10:59:22 I just wish AndroidStudio didn't use like 800mb of ram minimum. I have 16gb in this iMac so it isn't an issue, it's just... annoying. Mar 07 10:59:48 DanToml: eclipse is much worse, it crashes and randomly takes all ram Mar 07 10:59:49 lemonxah: Theme inheritence was working even with 0.4.6 Mar 07 10:59:52 there's also like ~150ms between me hitting a key, and it appearing in the editor. Mar 07 11:00:14 why change the name LimEJET why not just the text of the button? Mar 07 11:00:33 lemonxah: Isn't that what setText does? Mar 07 11:00:44 yes Mar 07 11:00:58 And this is an almost maxed out brand new machine. Mar 07 11:01:11 but why get the button from the old name? Mar 07 11:01:21 what if several buttons gets renamed to the same button? Mar 07 11:01:33 Because it might have been changed before by another text file Mar 07 11:01:49 and if you have 2 buttons with the same text? Mar 07 11:01:58 then you cant find it again Mar 07 11:02:14 Thats true Mar 07 11:02:24 yes Mar 07 11:02:39 I guess I'l just pass in the ID instead. Mar 07 11:03:38 How to test my app on different android versions? Mar 07 11:03:53 I have android x86 4.2.2 now Mar 07 11:04:30 Flank_Y320-U30, using multiple phones or emulators Mar 07 11:05:48 lemonxah, I need to install all android versions in emulator one-by-one? It takes time Mar 07 11:06:15 Flank_Y320-U30: use avd Mar 07 11:06:29 Flank_Y320-U30, you create multiple emulators and install them Mar 07 11:06:36 if you are only 1 person this will take time Mar 07 11:07:11 we have a team of 4 people testing on a set of about 15 phones Mar 07 11:07:17 so its a bit faster for us Mar 07 11:07:29 yes, I am 1 person for now Mar 07 11:07:36 gah. I'm not seeing it. I want to use slf4j. Standard 'Log.d("riley","XXX Log.d");' gives a logcat line in my IDE (intellij). 'logger.debug("XXX logger.debug");' doesnt. Any pointers? Mar 07 11:09:40 mikeche1en, avd is slow, but I'll think about it. Thanks people Mar 07 11:12:18 Okay, so I now pass in the ID of what I want to change the name of, but I still have the problem where my Log.d doesn't run and the line after it throws an exception. Mar 07 11:12:36 lemonxah: We have a ~240ish device, device lab in the office Mar 07 11:12:49 This is really weird. Mar 07 11:12:59 Flank_Y320-U30: yeah in terms of performance, its fast for the user to setup different android versions though Mar 07 11:13:01 we have about 4000 devices Mar 07 11:13:12 4000 devices?1 Mar 07 11:13:15 *?! Mar 07 11:13:16 j2me android iOS BB WindowsPhoens Mar 07 11:13:19 Ah. Mar 07 11:13:26 but they pick 15 android phones at random Mar 07 11:13:30 to test with Mar 07 11:13:40 heh. version hell. Mar 07 11:14:02 :) Mar 07 11:14:04 We have a tonne of Android, some Windows Phones, couple of BB's, some iOS, then a mix of other bits. Mar 07 11:14:31 Flank_Y320-U30, there is also gennymotion Mar 07 11:14:32 We have another few hundred coming soon. Mar 07 11:14:49 firefox os? :D Mar 07 11:14:53 (we run the worlds largest _open_ device lab) Mar 07 11:15:05 I think we have both the geeksphone ones. Mar 07 11:15:10 Not sure though. Mar 07 11:15:20 what does open mean in that situation? Mar 07 11:15:31 we let anyone come in to test on devices/ Mar 07 11:15:35 oh awesome Mar 07 11:15:44 http://odl.wearebase.com/devices/ Mar 07 11:16:02 here's a load of the ones we have, we've had some new ones since we last updated it. Mar 07 11:17:14 wish i lived nearby, would be fun to check that out :) Mar 07 11:17:32 thats pretty cool though Mar 07 11:17:36 It's pretty cool to have. Always fun to see what people bring in. Mar 07 11:17:55 yeah the number & variety of devices out there is incredible Mar 07 11:18:37 no kidding everytime one of our top brass goes to a new county in the east they bring back some funcky devices Mar 07 11:19:03 had 5 tablets once with the same IMEI numbers mac-addresses and android_id s Mar 07 11:19:10 are you interested in receiving more test devices? i know tons of ppl have old phones they dont know what to do with Mar 07 11:19:22 lol how does that work Mar 07 11:20:11 mikeche1en: We're always open to new devices, I think Jon (our Front end guy and ODL manager), is being a little more selective now though Mar 07 11:20:40 DanToml: yeah i would imagine you would be flooded with old gear otherwise Mar 07 11:27:47 Okay, here's the deal: I'm using getIdentifier to get an ID for an element I want to change the text of, and the ID is nonzero which I guess means it's okay. But when I run findViewByID on that ID, I get null back. Why is that? Mar 07 11:29:34 hi, I have problem with EditText, I want to hide keyboard on Enter click so I implement something like this http://www.sourcedrop.net/AlF9ad69acd34 Mar 07 11:29:54 but OnEditorActionListener isn't call Mar 07 11:34:06 isn't OnEditorActionListner call every time I click button Mar 07 12:12:11 my ADT autocompletion for android xml has stopped working correctly. i do get autocompletion suggestions, but it's missing a lot like android:layout_width, or android:text... Mar 07 12:12:15 any ideas? Mar 07 12:16:29 Android studio is drunk. http://cl.ly/UIiM Mar 07 12:31:29 There are many ways to iterate with cursors, but is there anything that allows me to "moveToBeforeFirst" so a simple "while (c.moveToNext()) {..}" can iterate through all? I know I can use a do/while for the same thing, but I'm still curious... Mar 07 12:32:08 I'm using MatrixCursors before you say what I want does not make any sense... Mar 07 12:42:02 Can I use AS 0.5 with non-gradle projects? Mar 07 12:44:41 pduin, yes and no Mar 07 12:44:56 if the porject files allready exists you should be able to just open them Mar 07 12:45:04 AS is a "subset" of IntelliJ Mar 07 12:45:51 if you want the best of both worlds you could just run the IntelliJ 13.1 EAP 134.+ Mar 07 12:46:38 it has all the functionality of AS 0.5.0 and all the other benefits from IntelliJ Mar 07 12:47:32 porject also means project Mar 07 12:50:10 so all features introduced in AS are in the latest preview version of IntelliJ? Mar 07 12:50:33 if i activate layout bounds in the settings, what does the pink stuff mean? Mar 07 12:50:45 thanks btw :) exactly what I wanted to know Mar 07 12:51:27 pduin, you should rather say Mar 07 12:51:32 I always though that AS was (IntelliJ + android features) Mar 07 12:51:37 all the features in IntelliJ is also in AS Mar 07 12:51:44 AS is a trimmed down version of IntelliJ Mar 07 12:51:49 got it Mar 07 12:52:19 AS is themed :) and automatically imports gradle files and syncs the project Mar 07 12:52:33 so it does some stuff for you that you ahve to do manually in intellij Mar 07 12:52:45 i for example use intellij cause i code in scala Mar 07 12:52:53 so i build with sbt not gradle Mar 07 12:53:01 but i have all the features that AS has Mar 07 12:53:14 how do I find out programmatically if mock locations are enabled? Mar 07 12:53:22 fancy42, its all the layout elements Mar 07 12:53:46 crystal clear, thanks lemonxah Mar 07 12:53:49 nevermind Mar 07 12:54:11 no worries pduin Mar 07 12:54:13 * pduin says OK to the 0.5 update Mar 07 12:54:49 lemonxah, i get that these are the bounds for each layout / view element, but some areas are colored pink. it looks like it could be padding or something Mar 07 12:55:33 the pink areas isn't padding Mar 07 12:55:57 could you upload an example image? Mar 07 13:04:31 Hello, i'm using the android-support-v7-appcompat to add a Navigation Drawer and an ActionBar to my app (needs to be supported from 2.2). It works on my Android 2.2.2 device, however i'm getting a NPE in android.support.v7.app.ActionBarImplICS.setDisplayHomeAsUpEnabled when running on a 4.2.2 tablet, like if there was no action bar... Do you know what could be the reason? i can't find anything on the web... i can send parts of t Mar 07 13:04:51 Hi all, I need to test how I can upload an image on Android but don't have a server. Does somebody know if there is a website/server to test this? Mar 07 13:06:34 FrancescoV: More details, please. Mar 07 13:06:51 Maybe I'm able to help you out, but I don't get what you need exactly. Mar 07 13:07:59 lemonxah, sry i currently can't offer a screenshot.. but i'm pretty sure it's the margin :D Mar 07 13:08:11 margin maybe yes Mar 07 13:08:14 not padding :) Mar 07 13:08:23 I need to figure out how to upload a file/image. But currently I don't have a server/api which has this functionality. I hope that there is a test server/website, where you can post your image to and check the result in a browser Mar 07 13:10:44 tinypic ,probably they have api's to upload pic Mar 07 13:10:44 you could upload to something like imgur or imageshack Mar 07 13:10:50 but they aren't perma stores Mar 07 13:10:53 or imgur have api Mar 07 13:24:22 hi Mar 07 13:24:36 anyone have issues with gridview being slow/sluggish when scrolling through it? Mar 07 13:24:39 what is the best way to export project from eclipse to Android Studio ? Mar 07 13:29:16 anyone know what the max camera preview size on google glass is? Mar 07 13:37:33 sdaq: I used 640 - 480 Mar 07 13:37:47 Why is it that i get a nullpointerexception when I construct a HttpGet? I'm just passing in a string, and i'm not even executing it... Mar 07 13:38:21 question, in http://developer.android.com/guide/components/services.html#ExtendingService, function onStartCommand, the call to obtainMessage(), what message is this and where is it gotten from Mar 07 13:41:57 anyone user Universal Image Loader? any thoughts? https://github.com/nostra13/Android-Universal-Image-Loader Mar 07 13:41:57 Francescov: thanks. I found that it is the same on my Samsung s3 Mar 07 13:42:45 Francescov: any idea why that tends to be the max preview size? Mar 07 13:43:47 magellanic: the message from the ServiceHandler Mar 07 13:45:30 Sirolf: hmm okay, so they are formulating msg using that, and then passing msg back to the ServiceHandler with sendMessage, am I correct in assuming that nothing from/in the intent is being passed within msg? Mar 07 13:45:59 sqaq: no idea. I used metaio SDK on Glass, which uses a default 320 - 240 but that wasn't sharp, the I used 640 - 480, which was good for me Mar 07 13:46:17 Sirolf: I want to use a similar structure, but I want to pass some info to handleMessage, beside just the startId they are passing Mar 07 13:47:47 the msg is used just for starting/stopping the service Mar 07 13:48:16 ah okay, that makes sense Mar 07 13:48:19 Somebody used MultipartEntity before? (for image/file uploading) Mar 07 13:48:57 Sirolf: if I want to send more stuff to handleMessage, I'd put it in the msg too, they just pass startId because they don't want to pass more stuff to handleMessage in this case, right? Mar 07 13:49:02 you can always create an other handler or listener in your service Mar 07 13:49:03 http://stackoverflow.com/questions/22251878/how-to-handle-images-being-downloaded-cached-and-displayed-from-the-server-an if anyone has any feedback Mar 07 13:49:39 uuuh Mar 07 13:49:54 magellanic: what do you want to send from where to where? Mar 07 13:51:31 Sirolf: ultimately, send instructions from my activity, to a service that runs it in a thread. instructions such as 'make api call x', 'make api call y' etc Mar 07 13:52:34 you to a thread running in a service? ;-) Mar 07 13:53:44 Sirolf: do you have links with examples for me :) Mar 07 13:54:16 magellanic: you can also just use bindService() from activity to bind it to the service ... then you can just access the service's public stuff Mar 07 13:54:58 Sirolf: sure, but I want the services stuff to run in a separate thread, not the ui thread Mar 07 13:56:30 then just create that thread inside the service I'd say Mar 07 13:56:47 So I run a service from my app... but when i go in the task manager and terminate my app, the service keeps on running... is there a way to get the signal? i tried the ondestroy and on unbind methods but neither work Mar 07 13:57:47 JeremieDeNoob you want to stopService() in onDestroy of activity? Mar 07 13:57:52 ive also tryed to call stopservice from my app Mar 07 13:57:53 yes Mar 07 13:58:10 Sirolf: sorry i was just about to fil that in Mar 07 13:58:12 well in fact Mar 07 13:58:27 its a singleton object that holds the service connection... Mar 07 13:58:40 (because the service is used by various pages on the app Mar 07 13:58:51 and i put the stopservice in the ondestroy of the singleton.. Mar 07 13:59:07 and also tried in the activity to callthe singleton and stop it that way also Mar 07 13:59:41 Does somebody know a good tutorial / lib to upload an image? Mar 07 14:00:03 JeremieDeNoob did you use START_NOT_STICKY ? Mar 07 14:00:26 no, i used bind_auto_create Mar 07 14:01:38 oh hold on Mar 07 14:01:44 :) Mar 07 14:01:45 i didnt no implement the onstartcommand method Mar 07 14:02:07 i guesss your recommending i read into that^ Mar 07 14:02:11 :) Mar 07 14:02:21 ;-) Mar 07 14:03:07 Hi guys, n00bie here. Got a question about locationManager; I do manage to get a longitude and latitude on virtual devices, when I send a location through DDMS. I don't get a location on my test device though, a Galaxy S4, without a sim-card but with Wifi connectivity Mar 07 14:04:09 I've done a tutorial for locationManager, and it looks for locationManager.getBestProvider. Does this mean it uses the mobile network's antenna's to triangulate? Mar 07 14:05:21 ThomQ: depends on your criteria Mar 07 14:06:17 hi all, does anybody know why selector on imageview work on android 4 but on android 2.3.3 it gives android view inflate exceptions? this image view is item in listview Mar 07 14:06:17 Sirolf: so in each public function that my activity will call, I create a thread and run things in? Mar 07 14:06:36 Sirolf: or create one thread and each function in the service use that? If so, how would I do this? Mar 07 14:06:55 Sirolf: criteria is filled with locationManager.getBestProvider Mar 07 14:07:50 magellanic: depends on the work you do ... if it's one ongoing process / while loop ... and you just want to change stuff now and then ... then use just one thread and use public functions to set values etc. Mar 07 14:08:17 hmm okay Mar 07 14:08:59 what work would you have it do magellanic ? if I may ask Mar 07 14:09:10 Morning Mar 07 14:09:22 Sirolf: i pmd you i hope thats ok Mar 07 14:09:27 http://pastebin.com/CJ157DYs . It's using default criteria. I'm guess im getting most confused at the term Provider Mar 07 14:09:43 Sirolf: mostly to make api calls to a cloud server, and collect location data periodically Mar 07 14:10:22 Provider is GPS_PROVIDER or NETWORK_PROVIDER ... I think ... so just wether it should use gps or the wifi/3g locating Mar 07 14:10:48 Sirolf: it sounds like it should be one long running process, so I will try your idea of one thread and public methods Mar 07 14:10:54 so want create simple timer which will update Text on every call I use this code http://www.sourcedrop.net/HXD9d2c5ee193 but after ~6 call Android give me http://www.sourcedrop.net/mP29d3529a4d5 help please Mar 07 14:12:17 Ahh ok yeah, i see those on the class reference page. I should give on of those as criteria, and default is GPS? *double checking if GPS is enabled on test device) Mar 07 14:12:51 in the youtube app when opening a channel. how does it replace the content with a viewpager? i was assuming the navigation drawer just swapped fragments but i have no idea how they managed to squeeze in a viewpager :/ Mar 07 14:13:06 yeah GPS is enabled. If that's the default criteria being sent, shouldn't it come back with a lat/alt? Mar 07 14:13:41 where does android studio put the android sdk on mac? i wnat to tell unity2d where it is Mar 07 14:14:25 ThomQ : http://developer.android.com/reference/android/location/Criteria.html Mar 07 14:14:31 hi all, does anybody know why selector on imageview work on android 4 but on android 2.3.3 it gives android view inflate exceptions? this image view is item in listview Mar 07 14:14:33 those are criteria ;-) Mar 07 14:14:38 how do I stop an app in glass with a voice command? Mar 07 14:14:54 mylord it's in AndroidStudio.app so you have to copy it to diffrent folder Mar 07 14:16:25 Sirolf: yeah i was just reading those :P But, if i don't specify which provider there, where would I let it check NETWORK_PROVIDER and not the default? Mar 07 14:18:23 But also, it should pick either GPS with the default GPS_PROVIDER, or wifi accespoints with NETWORK_PROVIDER, correct? So either way it should have access to 1 or the other location provider Mar 07 14:19:30 Also, in eclipse, I'm sending longitude and altitude manually, and it does work. Mar 07 14:24:15 if I wanted to store a picture with a users account, I can just store the path of the picture in the db and pull it from the saved path on the device? is that how to go about it Mar 07 14:26:15 LoneSoldier728 idk about the image itself, but if u wanna store the path u could probably store it along with the account itself Mar 07 14:27:04 but when I want to show the picture I just have to call the path right? I have yet to figure out how pictures work correctly Mar 07 14:27:27 I am assuming it is just like the web though as it will be stored in cache somewhere when downloaded off the server Mar 07 14:28:55 well if you are download the images or w/e they will only be stored where u put them lol Mar 07 14:31:05 ThomQ: in mLocationManager.requestLocationUpdates(... ) you specify the Provider you;d like to use right? Mar 07 14:31:10 nobody ever uploaded an image before? Mar 07 14:31:22 LoneSoldier728, an image is just like any other file Mar 07 14:31:36 it will stay where you put and it, and you can load it from there Mar 07 14:31:58 FrancescoV, when we did it, we used base64 encoding in a json post body Mar 07 14:35:56 jonc-1: tnx, i'll check it out Mar 07 14:36:18 Hey there! Mar 07 14:36:30 FrancescoV, you can also look into multipart http requests Mar 07 14:36:35 Howdy Mar 07 14:37:08 Somebody said multipart http request?? Mar 07 14:37:10 Not sure if anyone cares about the proguard problem but the solution was to use proguard-android-optimize in Gradle since Google decided to override the standard proguard behaviour with -dontoptimize in Studio *grrr* Mar 07 14:37:37 jonc-1: ok, but I need to do it for android + ios, so maybe base64 encoding is the best way. Server will be on python and used json a lot before Mar 07 14:38:22 I don't think ios has any built in base64 encoding (android does) Mar 07 14:38:26 Anyways, so I now have the proper optimized self signed apk, which I can install on a Nexus 4 but not on two Samsung test devices (It just says "not installed"). I uninstalled the previous version of the app and the "unknown sources" setting is enabled, so what else is there that can prevent an apk from being installed? LogCat didn't help either. Mar 07 14:38:34 and multipart http requests should be available through both Mar 07 14:38:36 Multipart http requests; http://loopj.com/android-async-http/ . You're welcome! I just looked into it myself two days ago. Mar 07 14:38:57 Do some devices remember package names + certificate even if the app was uninstalled? Mar 07 14:39:18 The "built-in" stuff works poorly, if at all (lots of magic with getting apache libs externally, matching versions built into the Android SDK API you're using - not a nice place to go..). Mar 07 14:40:13 what's up with this error? https://gist.github.com/adaptivedev/9412628 Mar 07 14:40:28 I'm starting the AsyncTast like this: new PostScore().execute(m_username, "" + m_score); Mar 07 14:41:39 jonc-1: looks like it must be possible in ios too (base64 encoding) http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios Mar 07 14:42:27 not saying it isn't impossible, but last I knew iOS doesn't have built in support for base64 encoding and decoding Mar 07 14:42:29 just have to add it in Mar 07 14:42:45 lol....what lol Mar 07 14:42:53 ? Mar 07 14:42:54 couldn't you just add it yourself Mar 07 14:43:11 yes, but iOS doesn't come with it Mar 07 14:43:18 is what I was saying Mar 07 14:43:25 ah Mar 07 14:43:38 hi all, does anybody know why selector on imageview work on android 4 but on android 2.3.3 it gives android view inflate exceptions? this image view is item in listview Mar 07 14:44:01 "not saying it isn't impossible" = "might be impossible" Mar 07 14:44:18 could have caused some of the confusion Mar 07 14:44:19 isn't possible* Mar 07 14:46:16 iOS 7 added built in base64 support. Mar 07 14:46:30 jonc-1: FrancescoV: ^ Mar 07 14:46:55 Could it be that some devices don't like apk certificates if the common name doesn't match something in the apk? Mar 07 14:48:22 where to change project name in android studio? Mar 07 14:48:55 I have no idea how this data is encoded, 20 bytes with appoximately 12-13 samples inside of it Mar 07 14:48:59 the part in the bracekets? ie, NewName[StillHasOldName] (~/AndroidStudio../) Mar 07 14:50:42 someone gave me an answer on how to compile/link Rust for Android NDK.. i'm happily doing that again - but would like to know how it worked.. Mar 07 14:50:44 take that back, I have 19.5 bytes worth of information Mar 07 14:51:05 FrancescoV let me know your solution Mar 07 14:51:54 http://pastebin.com/fSWLUULP <<<< this a modified makefile that brings in a prebuild 'rust' library. What i didn't seem to be able to do was link their objects with the rust library *myself*. It seems this step done by the android makefile does something different. Mar 07 14:52:41 you guys have experience with universal image loader for loading images? or how do you go about that without making the app sluggish for dynamically added images Mar 07 14:52:44 right now i can make a master makefile that builds my rust code, then invokes android.mk; but it would be nice to simplify it and know whats going on. Mar 07 14:53:03 some people have told me that the sample 'android_native_app_glue' library is just junk that can be eliminated Mar 07 14:53:15 Question: Does GPS require a sim-card? Im testing location on a device without simcard, and I can't seem to get any results from the GPS, no matter what I do. Network location works fine though, got wifi enabled. Mar 07 14:56:01 ThomQ: are you testing indoors or outside? Mar 07 14:57:07 fyi gps does not require sim card Mar 07 14:57:21 LoneSoldier728: solution is simple I gues, encode the image to base64 with this: http://stackoverflow.com/questions/4830711/how-to-convert-a-image-into-base64-string and use it inside your api url, or isn't it that easy? Mar 07 14:57:37 yeah but you will see how slow it is Mar 07 14:57:57 let me know if it takes a long time to upload something Mar 07 15:00:16 I was using that and sending it, and it took a while to hit my server Mar 07 15:04:50 mikeche1en, thanks. Yeah i'm testing indoor Mar 07 15:05:37 main problem was I was using getBestProvider to pick a provider, which always comes out with GPS, wheter you have it turned on or off, and wheter or not it's working or not Mar 07 15:07:10 ThomQ did you fix it already? Mar 07 15:07:19 ThomQ: ah yeah, you usually need line of sight of the sky for gps to work, or at least be near a window Mar 07 15:08:01 Yeah, i'll build in a GPS check, see wheter or not it works. If not, move over to network Mar 07 15:08:23 when using gps you can also add a nmeaListener to see if you get any data from it at all Mar 07 15:08:56 ahh chill, thanks Mar 07 15:10:15 Hi! How can I run instrumentationTests on device using gradle from the command line? Which is the name of the task I have to run? Mar 07 15:15:42 lemonxah, logs or gtfo Mar 07 15:15:53 ThomQ .. from the GPS_PROVIDER you can also get the number of visible satelites from the EXTRA's of the Location object if I remember correctly :) Mar 07 15:16:35 yeah, there are a few options. Im running through them now Mar 07 15:19:55 if all fails.. you can always ask the user to fill out their exact coordinates manually ;-) Mar 07 15:20:54 heheh. If all fails, they're just out of luck :P Mar 07 15:22:05 it's mainly my n00bieness with the API which is holding me back a bit atm, I haven't used it before. So I had no clue wheter or not GPS was linked to having a sim card inserted Mar 07 15:23:06 there are plenty easy tutorials on that subject btw Mar 07 15:24:13 ThomQ: gps doesn't depend on having a SIM, *but*... Mar 07 15:24:28 ThomQ: all phones I know of use AGPS, which is assisted by seeding the rough location derived from tower data Mar 07 15:24:54 ThomQ: and most AGPS hardware completely craps the bed when you can't seed it, and generally will never manage to get a lock - or if it does, could take 20-30 minutes Mar 07 15:38:14 someone have a working config for using LogCatAppender for log4j logging over slf4j? Mar 07 15:50:09 I followed the directions for using gms in my app here: https://developer.android.com/google/play-services/setup.html but when I try to build it fails trying to find build.xml in my copy of the google play services library project (which has no such file) Mar 07 15:53:12 Does anyone know of an Android Design book that had like splatters on the cover? Can't remember the ditle Mar 07 15:53:14 title* Mar 07 16:01:02 http://www.amazon.com/Smashing-Android-UI-Magazine-Book-ebook/dp/B009LQ8I0S/ref=sr_1_1?s=books&ie=UTF8&qid=1394208041&sr=1-1&keywords=smashing+android+ui ? Mar 07 16:01:10 autrilla: Mar 07 16:01:20 oscarvarto, that's it Mar 07 16:01:22 Thanks! Mar 07 16:01:50 autrilla: :) Mar 07 16:07:06 Mornin'! I am creating an elaborate Path and canvas.clipPath()ing it in onDraw() of a custom view. It works great! However, I need to do some calculations on the final, intersected image. Is it possible to pull the Bitmap from a canvas that has cliped like that? My alternate solution is to redraw the path on a new bitmap and do calculations then. That may not be too difficult, but I'd still like to know if I can pull a Bitmap from a clipped canvas. Mar 07 16:14:34 btw I figured out my issue. Had to run android update project in the copied project directory. Seems like the directions should include that. Mar 07 16:17:54 What do you use for wireframing? Mar 07 16:25:19 LoneSoldier728: it works, 1024-720 takes +- 5 seconds Mar 07 16:25:42 hi devvers Mar 07 16:26:23 isnt that long though? Mar 07 16:26:27 5 seconds? Mar 07 16:26:35 Some images are too big for phones which have low dpi. I've put some pictures with low resolution into drawable-ldpi folder │ AlexPortable Mar 07 16:26:36 | but the images are still big for my screen Mar 07 16:27:23 FrancescoV you think that amount of time is ok? Mar 07 16:27:51 LoneSoldier728: it was on mobile network. On wifi it's between 1 and 2 seconds :) Mar 07 16:28:20 is that normal, though I always thought it should be going faster? I guess maybe not Mar 07 16:31:37 currently I'm using a Camera Intent to take the picture, is it possible to set a resolution? Mar 07 16:33:05 Hi all. Working with decoding and encoding using MediaCodec through byte buffers and I never seem to get the CONFIG flag on my first packet. Can anyone help me figure this out? Or point me in the right direction? Mar 07 16:36:19 p.s. working from the encodedecode test and the decodeeditencode test Mar 07 16:36:29 as examples Mar 07 16:44:14 Is it better to use "tools:targetApi="11"" for styling an ActionBar than to use values/ and values-v11/? Mar 07 16:45:52 how to tackle the low dpi problem? Mar 07 17:01:49 Can I traverse a canvas pixel by pixel? Mar 07 17:09:01 Should ActionBar themes be in themes.xml or styles.xml? Mar 07 17:09:27 themes Mar 07 17:09:57 ironmarx, yes you can by reading the data[] Mar 07 17:10:00 context.deleteDatabase(DATABASE_NAME); ok this seems easy enough except for the fact that I do not see that method... am I suppose to be creating the method? deleteDatabase? Mar 07 17:11:17 ironmarx, sorry not the canvas but the bitmap Mar 07 17:12:12 Can I ask why themes.xml? Mar 07 17:12:57 It doesn't matter what you call it Mar 07 17:13:15 getting the advertising id is a huge PITA, wow Mar 07 17:13:37 It just makes sense to put themes in themes.xml, styles in styles.xml, strings in strings.xml, etc Mar 07 17:13:39 http://stackoverflow.com/questions/4406067/how-to-delete-sqlite-database-from-android-programmatically the answer with 146 upvotes where is getting the method from deleteDatabase Mar 07 17:14:02 From Context Mar 07 17:14:49 but calling Context. on my main activity I dont see that method? Mar 07 17:14:50 Look up the javadoc for Context, search for deleteDatabase Mar 07 17:15:22 Calling Context? Mar 07 17:15:52 hey why are there no ops here Mar 07 17:16:08 Yeah I am Calling Context. i see different methods not that one Mar 07 17:16:17 What does it mean to call Context Mar 07 17:16:22 nvm Mar 07 17:16:42 Like Context.deleteDatabase? That would require the method to be static.. which it isn't Mar 07 17:16:42 apparently I was pointing to a different context, calling getApplicationContext and that is showing up now Mar 07 17:16:48 The javadoc would tell you that Mar 07 17:17:25 All Contexts have that method Mar 07 17:18:10 chairman_meow: There's ops here, they're just not currently opped Mar 07 17:23:18 I used to be an op, 'til I took an arrow in the knee Mar 07 17:29:09 What do you use for wireframing? Mar 07 17:36:27 In an ActionBar theme, what's the difference between parent="@style/Theme.Holo.Light.DarkActionBar" and parent="@android:style/Theme.Holo.Light.DarkActionBar" (the android:style part)? Mar 07 17:38:14 What do I do when R.id.mything points to a non-null int that makes findviewbyid() return null? Mar 07 17:38:30 anyone know of a decent NDK decompiler? Mar 07 17:38:52 nonzero* Mar 07 17:39:54 LimEJET: first thing you do is clean your project Mar 07 17:48:18 you don't decompile ndk code... Mar 07 17:48:33 do i need to resize between decode and encode if I am trying to change resolution? Mar 07 17:50:00 hi Mar 07 17:50:02 sup Mar 07 17:50:09 how i can make with google maps routes ? Mar 07 17:50:12 to ---> from Mar 07 17:50:16 an show me the way Mar 07 17:50:43 t0th_-: Like, draw lines on the road there? Mar 07 17:50:49 yes Mar 07 17:51:14 You'll need to connect to google's direction api and provide to and from locations. Mar 07 17:51:43 the directions API is a web API though, so you'll need internet acecss Mar 07 17:53:13 t0th_- : Are you using a map inside you app, or do you want to open the route in google maps app? Mar 07 17:53:21 app Mar 07 17:53:46 t0th_-: then you can use the Intent API. take a look at this http://stackoverflow.com/questions/4659552/android-draw-route-on-google-map Mar 07 17:54:18 hmm Mar 07 17:54:23 no, i need use google maps api Mar 07 17:54:38 oh okok Mar 07 17:54:53 thanks Mar 07 18:02:19 If I launch from my icon from my launcher or from my app icon on my home screen, will it not always go back to where the app was already? Mar 07 18:09:38 hy all Mar 07 18:09:52 is there Android 4.4 for HTC Desire 500? Mar 07 18:10:38 EGHDK: not necessarily. If you are gets killed by Android, then it will restart Mar 07 18:11:27 EGHDK: take a look at this http://stackoverflow.com/questions/10810418/whats-oncreatebundle-savedinstancestate Mar 07 18:12:33 somebody? Mar 07 18:16:51 gregtom6: personally I dont know but this channel is about developing SW not end user support . try #android. Mar 07 18:17:07 (or better, google in this case) Mar 07 18:23:01 do somebody know about the cyanogenmods? which manufacturer is the mostly supported by that? or with official roms? Mar 07 18:23:27 gregtom6: Im not sure thats the proper channel for that Mar 07 18:23:33 okay Mar 07 18:23:37 but still, Oppo works with cyanogenmod Mar 07 18:23:45 gregtom6: try #android or #android-root Mar 07 18:23:49 gregtom6: You probably want #android-root Mar 07 18:23:52 okay Mar 07 18:24:09 it needs because of developing, that's why I asked that here :D Mar 07 18:24:12 but okay then Mar 07 18:25:17 Ok, so I've got a problem Mar 07 18:26:10 Im trying to create a class that would do an http call, and have corresponding methods for different api commands Mar 07 18:27:11 I know equal amounts of Java and C++. Does C++ perform better/faster than Java? Mar 07 18:27:14 the problem is, I have no idea how to synchronize AsyncTask doing the HTTP call with my activity that invokes the methods Mar 07 18:27:21 that's often it's advantage elsewhere Mar 07 18:27:29 or at least more memory efficient i guess Mar 07 18:28:25 windsurf_: depends on the workload, but generally, yeah, C++ is faster and you can fine tune it, so it can be more memory efficient Mar 07 18:28:36 ok. Mar 07 18:28:54 how about the scenario where I build my app in Java but want to use a C++ class? Mar 07 18:29:00 what are the basics for doing that? Mar 07 18:29:08 windsurf_: read up on NDK Mar 07 18:29:18 is NDK for pure C++ projects or for hybrids? Mar 07 18:29:26 hybrids Mar 07 18:29:35 cool thanks! Mar 07 18:29:43 you do the intensive stuff in C++, the rest in Java Mar 07 18:30:07 Have you tried C++ projects? Wondering if it's just easier to use Java, i've heard so – not sure if that's due to the IDE automating more stuff for Java Mar 07 18:30:33 uhm, unless you really need to speed things up, go with standard Java SDK Mar 07 18:30:42 because? Mar 07 18:30:57 well, NDK complicates things a bit Mar 07 18:31:05 in its setup? Mar 07 18:31:24 you need to compile the stuff for different archs, use JNI for calling the code, etc Mar 07 18:31:44 ick Mar 07 18:32:15 official docs have a lot of stuff on NDK Mar 07 18:32:47 windsurf_: http://www.youtube.com/watch?v=YvCRlJToCAg Mar 07 18:33:02 My C++ class works a lot with primitives like uint8_t and uint64_t and has to read things byte by byte from Bluetooth low Energy serial… can you point me to the terms to search for to read up on the Java/Android APIs for this? Mar 07 18:33:04 check out those tutorial series for introduction Mar 07 18:33:06 that's what I'd be porting from C++ Mar 07 18:33:14 ok thanks Mar 07 18:33:16 Anyone know a decent NDK / Arm decompiler? Mar 07 18:33:59 windsurf_: I would start here: http://developer.android.com/guide/topics/connectivity/bluetooth.html Mar 07 18:34:27 great, thx Mar 07 18:39:26 I am noticing that if I put "provided" for a library dependency Mar 07 18:39:31 it is still being included in my apk Mar 07 18:39:38 why is that? Mar 07 18:39:47 I thought provided means to not include it and "compile" will include it Mar 07 18:39:58 I am using gradle with the Android plugin Mar 07 18:42:42 Provided works for jar dependencies, not aars Mar 07 18:43:25 hi im a NOOB i need a list containing how do i do that Mar 07 18:43:37 SimonVT, hmm. that stinks Mar 07 18:43:44 SimonVT, why is that? Mar 07 18:44:29 SimonVT, I have an android library that will be placed on the device for me Mar 07 18:44:42 so I only want it to satisfy dependencies Mar 07 18:45:15 When you get acceleration minus gravity from the accelerometer is that the acceleration of the acceleration. because acc-gravity when sationary is zero. but lets say you are leaning the device, first when you move it you get acceleration but then you get 0 again but the ball would in reality be accelerating since it is rolling down a hill so it would not have a constant speed (if we neglect Mar 07 18:45:15 air resistance). so should I integrate the accelerometer to get acceleration and then integrate that acceleration to get the speed? Mar 07 18:45:49 Behavior regarding resources, manifest merging, etc, is not easily defined Mar 07 18:46:32 I see .. is there a work-around I guess for this? Mar 07 18:49:22 Make the dependency a jar Mar 07 18:49:38 but how would I satisfy my JAR's dependency on the Android platform? Mar 07 18:49:47 it uses a lot of classes from the android framework Mar 07 18:50:38 How are you even placing the library on the device? Mar 07 18:52:04 that same library gets compiled into an APK later on Mar 07 18:52:16 and deployed on the device Mar 07 18:52:42 it gets put into the boot class path so it is accessible.. Mar 07 18:53:21 I am making an app for people to manage devices in their farms and view info (such as temp). On the nav drawer, what would you put? I was thinking about Farm 1, Farm2, etc. Is that a good practice? Mar 07 18:53:42 i'm subclassing BaseInputConnection (my implementation just adds LogCat calls) and inside the class, calls to getEditable return the correct Editable, but outside the class, calls to getEditable return a different object Mar 07 18:53:54 Then do like android, compile a jar that exposes just the api Mar 07 18:54:43 any reason that's going on? havent been able to find much info on it Mar 07 18:59:30 fmontano: Thanks! Mar 07 18:59:49 EGHDK: No problem Mar 07 19:00:21 hi guys ,one small question plz, can some1 plz guide me to a programming tutorial showing creation of book app? i wish to create screen with few buttons ,when user clicks on it , it wil be redirected to another activity where book can be read in text Mar 07 19:00:56 fbreader source is available Mar 07 19:01:22 SpeedEvil thanks let me google it Mar 07 19:03:13 SpeedEvil bundle of thanks again ,although its very complex for me as i just want text ,but i will give it a try Mar 07 19:06:28 How do you generate a signed release APK in Android Studio? Build > Generate Signed APK builds a Debug APK Mar 07 19:06:53 somewhere in there there must be a button that will allow you to create a new debug keystone or load an already created one Mar 07 19:06:59 bricker are you sure , in manifest ,debug is not set to true? Mar 07 19:11:23 sara_ubuntu_girl: there's nothing in AndroidManifest.xml regarding debug Mar 07 19:12:19 bricker i am also a newbie :) , struggling with creating a book app :( Mar 07 19:17:29 SpeedEvil bricker fbreader is too complex for me, can u guide me to a code which just displays scrollable and resizable text upon clicking a button? Mar 07 19:19:58 how do i show book content / pages in android, via TextView? Mar 07 19:22:31 creation of a book app is far too generic to work against when trying to help you Mar 07 19:22:51 what do you want to do exactly in the first step towards creating this book app? that's what you should be asking about Mar 07 19:23:08 Sicp bundle of thanks for reply Mar 07 19:23:20 in main activity i want to show four buttons, Mar 07 19:23:43 each butoon can launch another actiity/ something to show pages of a book Mar 07 19:24:26 Sicp i know how to switch between activities, but i don't know which 'Element' to use for pages? Mar 07 19:33:27 sara_ubuntu_girl: what file format are your books ? Mar 07 19:33:36 simple text Mar 07 19:34:50 I made an app for android that needs to stay connected to a specific WiFi network that in fact does not have internet access. I unchecked "Auto network switch" and disabled mobile data, but none-the-less, it disconnects. Mar 07 19:35:21 what is this mean for Xperia developers? http://developer.sonymobile.com/knowledge-base/open-source/android-open-source-project-for-xperia-devices/ Mar 07 19:36:04 How would I tell if a bluetooth characteristic uses a standard bluetooth descriptor? Mar 07 19:36:17 or profile Mar 07 19:39:32 hi Mar 07 19:39:40 Android Map API: Route between 2 location and direction ? Mar 07 19:52:00 should i use TextView for Large Text ? or any alternative available for pages? Mar 07 19:57:26 ok guys thanks for your help , although i still dont understand what to use to display pages of text :( Mar 07 19:57:38 will continue tomorrow again Mar 07 19:58:40 if im using GoogleAuthUtil to get a token, should i be validating this with google form my back end EVERY request i do? Mar 07 20:08:57 What would you change on this app's design? http://gyazo.com/37503d6454b4e1aa54d33dc0bddf4bc8.png Mar 07 20:11:10 autrilla: looks good to me Mar 07 20:12:20 :) Mar 07 20:12:49 I have some Locations that I want to share between different componants of my app, including a Service and an Activity Mar 07 20:13:06 not sure where to place it. Perhaps in an Application? Mar 07 20:13:40 then I could access those Locations with getApplication() Mar 07 20:15:09 RustyShackleford: why not keep them out of your code, say tucked away in an asset file? Mar 07 20:15:49 argentum, well its in an asset file originally. I parsed the file and keep them in memory Mar 07 20:16:14 it doesn't seem like a good idea to have two copies of that data in memory though Mar 07 20:16:16 oh, you want to cache the memory contents Mar 07 20:16:20 I see Mar 07 20:18:08 passing data in the intent not an option? Mar 07 20:29:25 So i have an ArrayList that I want to share among several components. I'll populate it once at startup, but then its contents will not change Mar 07 20:29:35 do I need to worry about multithreading at all? Mar 07 20:29:57 like, accessing/iterating over the ArrayList on two threads at the same time? Mar 07 20:31:55 not unless the data changes Mar 07 20:37:13 Should I call my theme "MyAppName" or "Theme.MyAppName"? Mar 07 20:37:15 Is there any way I can have my ViewPager act like a deck of cards, and be one on top of the other rather than side by side Mar 07 20:37:43 yiati, you mean like tinder? Mar 07 20:37:56 TacticalJoke: Just MyAppName Mar 07 20:38:20 yiati: i'm sure with some sort of fancy animation, yeah. Since side by side the animation is ][, you just need to make it so the second fragment is in position at the start of the animation and obscured. Check how the app drawer libs do it maybe. Mar 07 20:38:46 vanrysss: Not sure what tinder is Mar 07 20:39:18 dragorn: Yeah I get the concept, and I know how to use the Animations and alphas, just not sure how to tell my view pager to position the pages Mar 07 20:39:28 it's a very successful dating app, that featres the kind of behavior you're talking about Mar 07 20:39:36 Any other opinions on this? http://gyazo.com/37503d6454b4e1aa54d33dc0bddf4bc8.png Mar 07 20:39:38 yiati: i'm betting it's just animation, is what I meant. Mar 07 20:39:42 yiati: but i haven't tried it Mar 07 20:40:15 yiati: ie, i suspect that sliding f1 to f2 is no different than sliding f1 and revealing f2, as far as the view pager is concerned, it's just the animation Mar 07 20:40:24 yiati: but it's only a suspicion Mar 07 20:42:24 17:26 Some images are too big for phones which have low dpi. I've put some pictures with low resolution into drawable-ldpi folder │ AlexPortable Mar 07 20:42:25 wot? Mar 07 20:45:26 Would it be wrong to call my theme "Theme.MyAppName"?~ Mar 07 20:45:35 Like, do I need a "Theme" style in order to do that. Mar 07 20:45:39 (It seems to work if I don't.) Mar 07 21:00:53 a Mar 07 21:23:45 hi guys.I want to know few ways to promote my app. Mar 07 21:24:46 pay people to promote them Mar 07 21:25:28 Tattoo a massive QR-code onto your chest, and run naked onto the field at a major sporting event? Mar 07 21:26:02 XD Mar 07 21:31:25 print the qr code on food packets for war torn regions in africa Mar 07 21:37:17 anybody updated to AS 0.5 yet? Mar 07 21:45:43 finally figured out the incoming bluetooth data Mar 07 21:45:49 it is a 14 bit signed integer Mar 07 21:46:04 11 of them packed into 154 bits, with the remaining 4 bits as a counter Mar 07 21:50:45 has anyone had any issues passing proxy variables to the AVM? I can't get our proxy server settings in the VM from the command line using http-proxy. Mar 07 21:59:53 is there a way to set the compileSdkVersion to compile against the google apis with gradle? i tried compileSdkVersion "Google Inc.:Google APIs:19" but that causes gradle to fail with Could not determine the dependencies of task ':packageDebug' Mar 07 22:04:34 So if I do a fragment rewrite, should I go completely fragments for everything and have just one MainActivity that loads fragments into a "content" area? Mar 07 22:05:34 SpeedEvil LOL, love your second suggestion Mar 07 22:10:39 Any other opinions on this? http://gyazo.com/37503d6454b4e1aa54d33dc0bddf4bc8.png Mar 07 22:14:31 i need to create a virtual device with android emulator, then tell a windows VM to attach this device Mar 07 22:14:34 is this possible? Mar 07 22:14:48 ill be running the emulator on a linux host Mar 07 22:15:19 If I am clearing the preference file on user logout, should I delete it to or does that not matter? Mar 07 22:18:45 is Fragment#setRetainInstance() still supposed to work if i have directly added it to the layout via element ? Mar 07 22:29:34 kjeldahl check it out :) https://news.ycombinator.com/item?id=7361947 Mar 07 22:30:13 hi Mar 07 22:30:15 is it possbile to save the state Mar 07 22:30:18 of an android hard drive Mar 07 22:30:23 and restore it after u do some stuff? Mar 07 22:45:36 I want to convert my textView to an imageView. I figure go from textView to bitmap to imageView. Anyone think this is possible? Mar 07 22:48:18 I am wondering, if one had convenient ssh access to his android phone, and he wanted to make a binary for it which prints GPS info to stdout in case he lost it Mar 07 22:48:50 is it trivial to interact with libmoto_gps.so? Mar 07 22:49:05 sal1191 why, you can use android device manager Mar 07 22:49:51 referring to.. a subsystem of android or some application? Mar 07 22:50:29 if my interest was solely to activate the gps long enough to get one reading Mar 07 22:51:03 to be triggered via a command over ssh Mar 07 22:52:02 is there a convenient API available for this person which would could access from a binary executable made in C or C++ Mar 07 22:52:51 or is it not practical to try to call dlopen on libmoto_gps.so and make use of the library Mar 07 22:55:34 i am suggesting that the executable would be very valuable to someone with root access and a VPN/SSH server configured Mar 07 22:56:18 or autossh or something of the like Mar 07 22:57:25 Which is better: having a greyed-out action button that becomes enabled when it's functional, or having an invisible action button that becomes visible when it's functional? Mar 07 22:59:40 Depends Mar 07 23:00:57 TacticalJoke: Do you want the user to know that there is some action they can't perform because of another factor that is going on in the app, or is it irrelevant? Mar 07 23:01:07 that will help you decide Mar 07 23:01:19 Yeah. Mar 07 23:01:21 I'd like them to know. Mar 07 23:01:25 If anyone wants to give this a crack: https://stackoverflow.com/questions/22262239/android-switching-tabs-from-a-fragment Mar 07 23:01:26 It's a cue, really. Mar 07 23:01:33 Then greying it out sounds correct Mar 07 23:01:43 K. Thanks. :) Mar 07 23:02:10 <__jim__> Hey guys, noob question for you. Mar 07 23:03:21 <__jim__> nevermind, I might have just figured it out Mar 07 23:03:25 Slash_Tag: Whoever commented on your question has the right idea Mar 07 23:05:59 yiati: That isn't really what I want to do though. I don't want to replace the fragment, I just wanted to switch the tab Mar 07 23:06:31 Slash_Tag: What is wrong with replacing the fragment Mar 07 23:07:26 yiati: Because I already have the fragment in place and just want to send data to it and switch to that tab Mar 07 23:08:34 Slash_Tag: You can add manage everything for your fragments from the parent activity Mar 07 23:08:44 Slash_Tag: And setup listeners Mar 07 23:10:06 yiati: But I'm doing fragment to fragment communication. I want an onClick within fragment A to switch the current tab Mar 07 23:10:47 Slash_Tag: The Activity has access to all of it's children Fragments through the fragment manager Mar 07 23:11:18 Slash_Tag: There is no direct communication between them, and there should be, that would defeat the point of fragments Mar 07 23:11:36 and they* should be Mar 07 23:12:45 The question should be how does your activity know when a click happened in tab a, what data tab a has, and then it can take over on passing that into tab b Mar 07 23:13:50 http://developer.android.com/guide/components/fragments.html#EventCallbacks Mar 07 23:14:05 There's some good documentation there ^ Mar 07 23:14:34 yiati: Yes that is essentially what I want then. I want Fragment A to tell the activity that onClick was executed. Activity will then switch the current tab to Fragment B. Obviously, getting the data as well. Mar 07 23:14:56 Yep Mar 07 23:17:05 there* shouldn't* be (from earlier) Mar 07 23:18:55 I usually have a listeners/ folder in my src/ folder since listeners are pretty important for communicating between fragments. It also helps to keep them separate from the Activity because some Activities may need the same type of listeners Mar 07 23:23:30 anyone knows a tool to generate rest clients for android (and maybe even ios at the same time) ? Mar 07 23:24:29 hey not sure what I am doing wrong but I keep getting a no column error am I missing something, or is something wrong http://pastebin.com/e0DpbfBy here I included the error Mar 07 23:27:35 yiati: So essentially I need: 1. An interface (Listener) inside the frag 2. Add onAttach to the frag. 3. Implement the interface in parent activity 4. call that interface onClick Mar 07 23:28:18 nvm flopped em dumb Mar 07 23:28:45 quick question (very much a noob here)... when adding to the manifest, is that going inside or just anywhere in the manifest? Mar 07 23:29:49 Slash_Tag: Sounds right yeah, the link I sent has nice clips of code to look at for reference Mar 07 23:31:35 dllama: http://lmgtfy.com/?q=android+manifest+permissions+example Mar 07 23:31:48 yiati: Yea I am looking at that link you sent. Thanks. Mar 07 23:39:03 If I pass a string extra to an activity, does it require a unique prefix (e.g., my package name)? Mar 07 23:39:06 Or can I just pass "foo"? Mar 07 23:39:16 (To one of my activities.) Mar 07 23:39:52 s/does it require/does the extra name require/ Mar 07 23:41:37 anyone have experience with gradle? Mar 07 23:41:51 how can i set compileSdkVersion to use the Google APIs? Mar 07 23:42:04 or tell gradle to compile again the google apis Mar 07 23:42:23 TacticalJoke: No you should just be able to use a unique key Mar 07 23:43:22 So it's limited to my app, right? Mar 07 23:45:05 yeah tactical Mar 07 23:45:07 TacticalJoke: Yea pretty much. If you want you can do like public final static String STOCK_SYMBOL = "com.example.activtyTest.EXTRASTUFF"; and then when you call the intent and put extra, just use that as the key Mar 07 23:45:31 Okay. It seems that using the package name is useful only when other apps will invoke the activity. Mar 07 23:46:00 Yea. If you are just calling other activities from within the app, you don't really need to package name Mar 07 23:46:06 K. Thanks. :) Mar 07 23:47:13 yiati: So I was able to implement the interface etc, and get the MainActivity to get the string from the Fragment Mar 07 23:47:32 So now how would I go about switch to current tab to the one I want and sending that data over? Mar 07 23:47:46 switching the current tab* Mar 07 23:51:13 Wait nvm. I was able to get the tab switching. Now just the data part Mar 07 23:57:22 Slash_Tag: This is when you are going to want to perform a fragment transaction, and pass the data along with the transaction in a bundle/etc Mar 08 00:00:21 yiati: Do I have to do it that way or can I set arguments(bundle) Mar 08 00:00:30 If I want my app and my unit tests to be two separate projects (i.e., my unit test *don't* get compiled into my app), is using different package names sufficient? Mar 08 00:01:00 hi, i have a scrollview and inside a linearLayout and inside a list of fragment added runtime by code. i want to scroll to bottom every time fragment are added. it's possible? Mar 08 00:02:05 Slash_Tag: Yeah you can use fragment.setArguments(Bundle bundle) Mar 08 00:03:44 i try fullscroll but it need a component focusable. scrollTo doesent works Mar 08 00:03:49 plz help Mar 08 00:20:07 Any other opinions on this? http://gyazo.com/37503d6454b4e1aa54d33dc0bddf4bc8.png Mar 08 00:20:35 autrilla: Looks nice and Androidy Mar 08 00:20:49 autrilla: The F looks like a facebook f though Mar 08 00:20:50 * autrilla is glad he has found a design two people like Mar 08 00:20:57 yiati, yeah, they copied our F! Mar 08 00:21:18 Bauhaus... been using it before facebook existed Mar 08 00:21:29 Will probably have to find another font though. Mar 08 00:21:35 We'll* Mar 08 00:28:48 how should i handle using SharedPreferences in classes that aren't my main activity (where this.getSharedPreferences() isn't available)? pass it into the class constructor? Mar 08 00:33:01 is there a way in AS to remove all unused imports? Mar 08 00:43:06 So for calculating how fast I run I should use GPS not accelerometer right? Mar 08 00:52:30 Anyone know of any android library project that makes use of the advertising ID? I'm trying to do this and I'm having a lot of issues. Seeing how someone else has done it would be useful Mar 08 01:37:48 AS 0.5.1 update already Mar 08 02:01:19 very promising Mar 08 02:21:32 weird bug in AS, when i go to collapse a folder in tree view, it shows the dialog to MOVE the folder Mar 08 02:22:12 but not always Mar 08 02:52:49 how would you get the id of a dynamically created listview item? Mar 08 02:53:12 my brain. it hurts. Mar 08 02:53:12 ? Mar 08 02:53:24 what do you mean by id Mar 08 02:53:47 I guess the equivelant of doing findViewById Mar 08 02:53:53 or do I access this kind of thing through the adapter Mar 08 02:54:07 e.g. detecting which item in the list has been clicked **** ENDING LOGGING AT Sat Mar 08 02:59:59 2014