**** BEGIN LOGGING AT Sun Jul 20 03:00:00 2014 Jul 20 03:00:08 im not using eclipse Jul 20 03:00:09 ever Jul 20 03:00:46 <[R]> its just a frontend... Jul 20 03:00:49 <[R]> see what its doing Jul 20 03:00:49 this isnt an NDK build. this is a java build FOR the associated ndk library Jul 20 03:01:07 no eclipse is not a front end its a cluster ($^Y$(I abomination Jul 20 03:01:19 but. if it can do it... then it can be done Jul 20 03:01:25 just need to find out how Jul 20 03:21:23 android ndk examples tell me fuck all Jul 20 03:21:43 every fucking one of them is basically a "hello world" pile of shit at its heart Jul 20 03:22:06 not one of them is of any real world practical example Jul 20 03:22:49 i need to create a stand alone ndk library, not one thats glued to the hip of the specific application using it Jul 20 03:25:23 how do i use the android sdk to build a .class file and ONLY build a .class file Jul 20 03:27:51 I440r, you don't. Jul 20 03:28:14 Hi I am getting an error "Duplicate files copied in META-INF/DEPENDENCIES" Jul 20 03:28:19 The best I can suggest is an NDK project marked as a libarry. Jul 20 03:28:27 I am new to Android developement. Jul 20 03:28:52 I think its this here http://stackoverflow.com/questions/20673625/android-gradle-plugin-0-7-0-duplicate-files-during-packaging-of-apk Jul 20 03:28:56 keepguessing, I would suggest that it's somewhat related to http://stackoverflow.com/questions/20673625/android-gradle-plugin-0-7-0-duplicate-files-during-packaging-of-apk Jul 20 03:29:09 indrora: exactly :-) Jul 20 03:29:13 indora i have a working NDK library. but this library needs a little work because it only works with applications IT has specific knowledge of. i.e. its no general purpose Jul 20 03:29:29 indora they do not talk about where to make those changes Jul 20 03:29:31 in order to make it general purpose i have to create a java wrapper for the library. Jul 20 03:29:57 so i need to build that librarywrapper.java into librarywrapper.class Jul 20 03:30:00 I440r, NDK isn't built for general purpose. Jul 20 03:30:10 not libraruywrapper.apk Jul 20 03:30:14 You can make a library that depends on the NDK library that is used by applications Jul 20 03:30:40 indrora: I am not sure where should I be maing those changes. Jul 20 03:30:40 nvm indora. your not understanding Jul 20 03:30:51 Any suggestions/pointer anyone? Jul 20 03:31:10 keepguessing, I would look in the gradle files -- I don't remember the exact name but it'll be in your project's folder. Jul 20 03:31:36 actually indora. what i need to do is create what in elipse is called an ndk library project Jul 20 03:31:41 without eclipse Jul 20 03:32:03 I440r, You're using Android Studio? Jul 20 03:32:20 im using intellij idea. android studio is not ready for general consumption yet Jul 20 03:33:29 IntelliJ IDEA and Android Studio are really close to each other. Jul 20 03:34:11 I know that Eclipse and Android do magical things that I don't try and understand. Jul 20 03:34:39 i just looked, intellij idea does have a android library project type Jul 20 03:35:05 Well, then you're set Jul 20 03:35:28 maybe :) Jul 20 03:35:33 to be determined :P Jul 20 03:35:51 i was afk Jul 20 03:35:56 i am still afk Jul 20 03:37:04 intellij idea does not seem to know what JNI is Jul 20 03:37:14 or how to build a native library Jul 20 03:37:38 Nope. Android Studio and Eclipse do though Jul 20 03:37:51 at least eclipse does. Jul 20 03:38:03 Would anyone recommend this way of doing things? http://android-er.blogspot.com/2012/06/communication-between-fragments-in.html Jul 20 03:38:59 It's one way to do it Jul 20 03:39:23 if bill gates, george soros and mike bloomberg all offered me their entire personal fortunes to do so i woudl still NEVER use eclipse Jul 20 03:40:18 I440r, It's the recommended platform. Jul 20 03:40:34 indrora do you know better ways? Jul 20 03:40:49 detachYo, "better" is subjective, but there's always Broadcasts Jul 20 03:40:54 indrora, its a horrendous pile of (deleted) Jul 20 03:41:07 indrora any advantages or disadvantages for any of these? Jul 20 03:41:15 I440r, then try Android Studio and see if it can do what you need. Jul 20 03:41:48 I440r I used to use eclipse, changed to Android Studio and haven't looked back. It all depends how you configure your environment. Jul 20 03:42:13 indeswerk, i do not believe it does yet Jul 20 03:42:15 detachYo, broadcasts can have variable data attached to them, and aren't prone to accidentally running things off the UI thread. Jul 20 03:43:12 ndroid Studio and the Android plugin for IntelliJ IDEA are built from the same code, and all of the changes in Android Studio are, and will continue to be, available in IntelliJ IDEA releases. <-- Jul 20 03:43:30 I440r, http://ph0b.com/android-studio-gradle-and-ndk-integration/ Android studio, NDK and gradle. Jul 20 03:43:42 indrora, indrora, do you have tutorial link or something I can follow? Jul 20 03:44:06 we plan to eventually support NDK development... .. Jul 20 03:44:28 detachYo, http://developer.android.com/reference/android/content/BroadcastReceiver.html Jul 20 03:44:36 detachYo, Possible disadvantage: Other apps can fling data at you. Jul 20 03:44:48 Ah, so proper filtering should do it Jul 20 03:45:23 indora im not interested in joe shmoes 60000 line build scripts Jul 20 03:45:25 detachYo, the docs explain how to keep it from happening though Jul 20 03:45:25 startActivity(new Intent("poo")) Jul 20 03:45:31 * JesusFreke flings poo at other applications Jul 20 03:45:59 that are good for building everything including the international space station and all the rockets that fly to it... Jul 20 03:46:47 i just need to know how to get an android build to ONLY build a .class file not a .apk Jul 20 03:46:58 You can't. Jul 20 03:47:21 JesusFreke gross :) Jul 20 03:47:35 * g00s gets out the bleach Jul 20 03:47:49 Not without magical java trickery involving long Classpath mangling that I did once while I was curious and never wanted to do again because it didn't work (It wasn't built right) Jul 20 03:51:43 Plus, IIRC the actual JNI to Application layer is done on-device Jul 20 03:59:15 sooooooo stressful Jul 20 04:03:29 disarming a bomb? Jul 20 04:06:35 canvas2321, trying to learn how to do things correctly Jul 20 04:07:00 like your communicating between fragments or something new? Jul 20 04:08:02 yeah Jul 20 04:08:12 fragment communication Jul 20 04:09:28 what is incorrect with the way you are doing it now? and what was wrong with the example link you posted? Jul 20 04:09:45 &why do you need it Jul 20 04:10:31 or atleast what are you trying to communicate Jul 20 04:10:53 Contact URI Jul 20 04:11:25 are you using a viewpager like that link? Jul 20 04:11:58 yes Jul 20 04:12:02 Looks like I got it. Jul 20 04:12:20 :) Jul 20 04:12:58 :) Jul 20 04:13:06 Not hard. Things are starting to make more sense now. Jul 20 04:13:26 I was spoiled by google quality code when I first started Android, now it's hard to trust/look at iffy looking code. Jul 20 04:13:49 basically all it's doing is getting the Fragment manager, finding your other fragment by tab, creating a field from the instance of that fragment, then just calling a method in that fragment Jul 20 04:14:03 tab = tag Jul 20 04:14:49 what happens when you don't set a tag? Jul 20 04:14:57 I think I did it without tag (hard coded the position) Jul 20 04:15:20 you can find it by Id, or search the children of the manager/adapter for an instanceOf WhatEverFragment Jul 20 04:16:23 Hmm.. from fragment adapter? Jul 20 04:16:36 if your viewpager is static, then i'm sure you can just use the manager to return fragment at position X and cast it to an object, then call the method too Jul 20 04:16:54 usually there is a page adapter involved Jul 20 04:17:24 and by viewpager is static, i mean you aren't dynamically creating new fragments, all fragments in the viewpager are known before hand Jul 20 04:18:10 yup, very static :) Jul 20 04:19:02 so it was... "Frag1 frag = (Frag1) adapter.getItem(1); frag.handleThis(contactUri);" Jul 20 04:19:05 then that makes it easier to find the fragment you want, and call methods on em, otherwise if dynamically creating, it's good idea to set tags, or find by id, etc... Jul 20 04:19:17 then in Frag1, I have public void handleThis(Uri contactUri) { ... } Jul 20 04:19:31 Makes sense Jul 20 04:19:46 if you know for sure Frag1 is a fragment at position 1 then i don't see why not, can always check if it's an instanceOf Frag1 Jul 20 04:20:23 that will make it more secure, but I am certain it will always be fragment at position 1 Jul 20 04:20:31 one of the perks of having static tabs Jul 20 04:21:01 :) just play around with it, there are multiple ways to get the fragments, just find what works for you Jul 20 04:21:21 can always refactor later Jul 20 05:42:56 hey guys Jul 20 05:43:10 heya Jul 20 05:43:37 I am using the android_native_app_glue and I am wondering if there is any solution for setting up the EGL persistence Jul 20 06:00:24 entertaining about saphire displays http://digg.com/video/alleged-iphone-6-screen-gets-the-sandpaper-test Jul 20 06:48:12 Hello Jul 20 06:49:07 Where can I find my app page in google play in developer console? Jul 20 06:53:32 What do you mean by app page? Jul 20 06:54:56 There is: https://console.developers.google.com and Jul 20 06:55:02 s/and// Jul 20 07:02:30 What's the best way to load contacts into an AutoCompleteTextView? Jul 20 07:02:46 CursorAdapter, SimpleCursorAdapter, ArrayAdapter, SimpleAdapter? ... so many options Jul 20 07:53:18 added a jar file to my libs directory. idea is indexing it right, the syntax highlighting knows about the class within the jar file etc. build however can not find that class Jul 20 08:12:44 I440r do you know if the class is publically accessible? Jul 20 08:12:56 yes its public Jul 20 08:13:15 intellij idea sees the class inside the libs/jar file Jul 20 08:13:18 but the build does not Jul 20 08:13:33 yet i have added that as a library to my project config Jul 20 08:15:07 What are you building with? Jul 20 08:15:27 what am i building what with? Jul 20 08:15:46 im using the android sdk tools to build this Jul 20 08:15:49 Building with IntelliJ or gradle or ant? Jul 20 08:15:58 oh. i think its using ant Jul 20 08:16:16 its intellij idea not AS Jul 20 08:16:25 Then it had to be in projectdir/libs Jul 20 08:16:32 thats where it is Jul 20 08:16:34 Intellij has it's own build system... Jul 20 08:16:49 Hmm Jul 20 08:17:01 Everything look fine in Project Structure? Jul 20 08:17:06 yup Jul 20 08:17:16 Try a rebuild?: p Jul 20 08:17:38 yes. java: cannot find symbol. symbo: class xxxxx Jul 20 08:18:10 yet intellij idea DOES see that class. in the file that references that class the syntax coloring is fine. if i add a z to the end of the class reference it turns red Jul 20 08:18:22 Proguard? Jul 20 08:18:27 nope Jul 20 08:18:31 Hmm Jul 20 08:18:39 * frankdrey scratches head Jul 20 08:19:40 Wait Jul 20 08:19:55 Did you also add it as a module /dependency/? Jul 20 08:20:40 erm.does not adding it to the libs under project settings do that? Jul 20 08:20:50 hi all, I want to write an app that will start the MediaStore.ACTION_IMAGE_CAPTURE activity immediately after loading. I found how to do it only with a button on click listener for example. I tried starting it from onCreate method and it didn't work. How can I do it? Jul 20 08:20:52 Just external libs. No Jul 20 08:21:03 At least not in my experience Jul 20 08:21:09 ok. how do i add it as a dep Jul 20 08:21:52 Project structure > module > dependencies > you can add the lib or just add the whole libs folder as a dependency Jul 20 08:22:34 dont see any "Dependancies" tab under module Jul 20 08:22:42 meital, I can't try it myself right now, so can you explain "Didn't work"? Jul 20 08:23:03 actually i see it now Jul 20 08:23:08 but YES it is already in there Jul 20 08:23:09 * frankdrey tries to bring up an image of IntelliJ ui in his mind Jul 20 08:23:11 Oh good Jul 20 08:23:12 Hmm Jul 20 08:23:17 Darn Jul 20 08:23:56 Have you tried adding just the lib jar as a dependency? Without going through "External Libraries" Jul 20 08:24:32 how would i do that Jul 20 08:24:42 Remove the dependency for now Jul 20 08:24:49 Add a new one to the jar file Jul 20 08:25:48 same error Jul 20 08:26:12 removed dep, added a dep for a jar. javigated to the jar under libs and added it Jul 20 08:26:33 rebuild... cannot find symbol. symbol: class xxxxx Jul 20 08:26:38 This is some funky business Jul 20 08:26:49 inorite! Jul 20 08:27:02 It doesn't actually say xxxxx right?:p Jul 20 08:27:06 no lol Jul 20 08:27:11 Okay good Jul 20 08:27:12 it names the class Jul 20 08:27:25 the class name is "naf" Jul 20 08:27:36 which stands for "native android forth" Jul 20 08:27:58 the NDK library this class is a wrapper for is a forth compiler built with the NDK Jul 20 08:28:54 power is about to go out Jul 20 08:28:58 maybe. Jul 20 08:29:02 D: Jul 20 08:29:21 Hmm Jul 20 08:29:27 Maybe the library is broken Jul 20 08:29:30 we just had a series of very close brown outs and my room mates UPS is beeping Jul 20 08:29:48 Uh oh Jul 20 08:29:54 no the library is is fine. but when i created it i had to add knowledge of the java code that called it Jul 20 08:30:02 i built that java code into my app Jul 20 08:30:28 what im doing now is trying to create a jar file to ship with the library that has all the java glue code in it. Jul 20 08:30:45 Hmm Jul 20 08:30:53 so my library wont have to have knowledge of YOUR app Jul 20 08:31:42 frankdrey: crashed with "PhotoByIntent is gestopt." Jul 20 08:33:37 Your phone is in German I think? Could you translate gestopt? Jul 20 08:34:14 Dutch Jul 20 08:34:17 I think Jul 20 08:34:27 it's english, I have no idea what it means =\ Jul 20 08:34:32 Huh Jul 20 08:35:11 Means stopped in dutch Jul 20 08:35:19 lol Jul 20 08:36:12 Oj Jul 20 08:36:14 Oh Jul 20 08:36:29 PhotoByIntent is your class name isn't it? Jul 20 08:36:53 Well then I'm gonna need more, is there anything under that error? A stacktrace? Jul 20 08:39:39 PhotoByIntent is the app name, but there is no class with this name Jul 20 08:40:05 Either way Jul 20 08:40:14 Point is, that's just telling me it crashed Jul 20 08:40:17 http://pastebin.com/vNS79c0s Jul 20 08:41:35 http://pastebin.com/82s4iAFh Jul 20 08:41:41 this is the relevant code Jul 20 08:41:59 if I comment out line 12 then it's working Jul 20 08:42:13 im going to guess this is a bug in intellij idea Jul 20 08:42:17 and go to sleep Jul 20 08:45:13 I'd put my money on pebkac Jul 20 08:46:04 According to your stacktrace, the error is on line 53 Jul 20 08:47:13 A NullPointerException Jul 20 08:47:22 You tried to do something with a null object Jul 20 08:50:30 SimonVT, PEBKAC errors are the worst, I once spent hour debugging one Jul 20 08:50:41 but the same code is working if it's not called from onCreate Jul 20 08:51:20 Then you must be initializing some necessary objects when you click the button Jul 20 08:52:40 Anyway, it's time for me to sleep Jul 20 08:52:47 2am :D Jul 20 08:53:00 Be back in... 5-6 his Jul 20 08:53:02 Hours Jul 20 09:11:51 Hi. Anyone have experience with dynamically adding views (ImageView, TextView etc) to a widget using RemoteViews? Jul 20 09:28:38 wow. some pretty nice and powerful image effects using both ImageView::setImageResource and setBackgroundResource for an ImageView stacked in a frame layout. BG an animation-list, foreground resource a simple png in the drawable folder. APIs are getting there. Jul 20 09:30:56 ? Jul 20 10:12:01 i have a service that i want to always run in the background, and want my activities to bind to it, each activity runs startService(intent); bindService(intent...); in its onStart but this seems to start multiple instances of the service, or at least seems to call onStartCommand repeatedly, what am i doing incorrectly? Jul 20 10:17:53 yes onstartcommand will be called repeatidly (each time startservice is called) Jul 20 10:18:09 but within the same package, you'll bind to a singleton so it'll be the same instance of the serivce Jul 20 10:19:55 lasserix: thanks, i feel like i'm getting a new service every time, maybe i'm not doing the bind correctly Jul 20 10:20:11 well Jul 20 10:20:16 your feelings aside Jul 20 10:20:18 did you test it? Jul 20 10:20:39 ie just put a log in onCreate Jul 20 10:20:47 see if it gets called mutiple times... Jul 20 10:20:59 that was my next question (what's called once on service creation) :) Jul 20 10:21:43 oh Jul 20 10:21:45 i forgot Jul 20 10:21:48 if you bindAUTOcreate Jul 20 10:22:04 then when activity gets stop called Jul 20 10:22:12 it'll cause the service ondestroy to be called Jul 20 10:22:21 so you have to startService BEFORE you bind Jul 20 10:22:40 and then call stopSelf / stopService when the last activity unbinds Jul 20 10:22:41 lasserix: thanks, actually that was my first mistake and i resolved that Jul 20 10:22:55 just testing onCreate now Jul 20 10:23:02 oh ok, so as long as you are doing that Jul 20 10:23:13 youl'' get the same service instance each time Jul 20 10:23:24 I like to add a small timer in onUnbind that shuts down the service and then cancel that timer in onRebind Jul 20 10:23:27 :) Jul 20 10:24:01 Zharf you add a delay for on unbind to overide the auto-kill when the activity unbinds? Jul 20 10:24:11 yeah Jul 20 10:24:22 because another activity might bind right after Jul 20 10:26:32 http://eclipser.xmms2.org/git/xmmsclient-android-test.git/tree/src/main/java/org/xmms2/eclipser/xmmsclient/clientservice/XmmsClientService.java#n58 keeps tcp connections alive for a little bit just in case they're needed right away again Jul 20 10:27:19 not sure if it's just me who does that... but it wroks for me :p Jul 20 10:27:55 lasserix: i moved my initialization code to onCreate, this is 99% solved the problem :), though it does occasionally get called more than once, perhaps android is sometimes legitimately restarting the service Jul 20 10:28:56 zharf yeah i did the same thing actually for the same activity for a remote service Jul 20 10:29:57 Zharf: thats a cood idea, in my case i never want the service to stop automatically, so that doesn't matter Jul 20 10:30:13 cood is a combination of cool and good I guess Jul 20 10:30:14 ;) Jul 20 10:30:39 lol Jul 20 10:31:37 I think users should be made extra aware of sticky services Jul 20 10:32:25 my service has a persistent notification, similar to a music player Jul 20 10:33:12 that's great then Jul 20 10:33:29 unfortunately it currently has 3 such notifications because oncreate seems to get re-called sometimes Jul 20 10:33:38 normally shortly after an activity unbinds Jul 20 10:34:40 i'll add some code to see if multiple instances are actually running or if its just getting stopped and respawned Jul 20 10:34:43 thanks both :) Jul 20 10:35:52 do give the users an option to shut it down though... I got a few questions about "how to stop this thing" back when I released my music player :p Jul 20 10:36:24 actually even the google play music player isn't terribly obvious how to shut down :) Jul 20 10:36:51 but yes, it'll have a big stop button in the notification Jul 20 10:37:02 it's a fitness app (an indoor rowing ergometer) Jul 20 10:39:20 huhu Jul 20 10:40:29 interestingly, commenting out my unbind() in activity#onStop has resolved the issue totally Jul 20 10:40:36 is it actually necessary to unbind Jul 20 10:40:46 since this seems to sometimes kill the activity Jul 20 10:41:36 *kill the service Jul 20 10:42:42 i take it back, still not fixed, thanks anyway though, i'll stop complaining and debug this properly :) Jul 20 10:43:48 catphish Jul 20 10:43:54 it means you are not calling startservice before Jul 20 10:44:16 if unbind causes your service to be destroyed, it means the life of the service is dependent on the activity Jul 20 10:44:26 which means that startService was called either not at all or after bind Jul 20 10:44:56 it needs to be called before bind for it to make the lifecycle of the service independent of the activity that will subsequently bind to it Jul 20 10:45:52 err that would be my interpreation of it, maybe not Jul 20 10:46:12 just call startService in onBind of the service Jul 20 10:46:21 onBind will be called once only Jul 20 10:46:57 that will not work? if your service has been created before start service gets called then it's already bound to the lifecycle of the activity? Jul 20 10:47:14 onBind gets called everytime bindService gets called? Jul 20 10:47:31 actualy i can't remmber been a while since i was messing with all that aidl stuff Jul 20 10:47:34 onBind is only called once, never again for new bindServices Jul 20 10:48:36 I'm just pretty sure it works, because it's worked for me ;) Jul 20 10:48:46 my services don't get destroyed when they're unbound Jul 20 10:50:35 Dianna Hackborn -- > onBind() is only called once for the first request; after that the system keeps the IBinder and hands it to other requests without bothering the service. Jul 20 10:51:49 oh hey catphish https://groups.google.com/forum/#!topic/android-developers/2IegSgtGxyE Jul 20 10:52:13 yep, that's what I said, wasn't it? :) Jul 20 10:52:15 guy is doing exact same thing as you and Diana Hackborn (one of the android developers) says "This is a good place for use of a singleton -- write a singleton that manages the connections, with activities telling when they start and stop. It can ensure it is bound as long as at least one activity is started. Be sure to use Context.getApplicationContext() to bind with that instead of with whatever activity happened to called." Jul 20 10:52:32 Zharf but what if you pass back multiple binders? Jul 20 10:53:10 does that work? Jul 20 10:56:12 i thought it did but maybe i am thinking of returning a different binder from the first binder Jul 20 10:57:13 I'm trying to find a song to learn bass part of to demo myself to this group who's looking for a bassist -.- Jul 20 10:57:38 aaand slightly off channel Jul 20 10:57:45 if you can whistle use the app to resolve which song it is Jul 20 10:57:48 hehe Jul 20 10:58:03 Hi Jul 20 10:58:32 i am new to android studio Jul 20 10:58:51 still time to go to IDEA instead then! Jul 20 10:58:51 is this right? classpath 'com.android.tools.build:gradle:0.12.+' Jul 20 10:59:01 in workspace Jul 20 10:59:57 i don't know what is the problem Jul 20 11:00:11 it say: Error:Configuration with name 'default' not found. Jul 20 11:01:14 i have spent more than two weeks to trying to solve this problem Jul 20 11:01:27 :'( Jul 20 11:02:10 Hello? Jul 20 11:02:22 is there anyone awake? Jul 20 11:02:51 sunday Jul 20 11:03:17 why aren't u using eclipse? Jul 20 11:03:34 I heard that there are a lot of problems with it Jul 20 11:03:43 Android studio is beta Jul 20 11:05:03 AS > eclipse all day long Jul 20 11:05:44 I would still rather use IDEA Jul 20 11:05:45 :p Jul 20 11:06:42 because i have get some errors with adding ads Jul 20 11:06:59 and i think it will fixed if i used AS Jul 20 11:10:02 Hmm Jul 20 11:12:07 what do i do with the back button from my main screen that doesn’t use it? Jul 20 11:12:24 right now it just closes the app, should i leave it that way? Jul 20 11:13:06 in android studio, i can't emulate a 4.4.4 device can i? Jul 20 11:13:43 Android Studio doesn't emulate anything. Jul 20 11:13:53 what exacly do you mean by "emulate"? Jul 20 11:14:53 uhm. run app in emulated device version 4.4.4? Jul 20 11:15:12 as Mavrik said, android studio doesn't emulate Jul 20 11:15:21 that is part of the sdk Jul 20 11:15:23 neither does eclipse Jul 20 11:15:25 which has an avd manager with emulators Jul 20 11:15:41 right Jul 20 11:15:49 so, any help? Jul 20 11:15:51 sq, if you're asking aboudr Android Emulator... no there's currently no 4.4.4 image, only 4.4.2 Jul 20 11:15:59 but there are no functional differences between them. Jul 20 11:16:36 Error:Configuration with name 'default' not found. Jul 20 11:16:42 hum. i've got a bug i can't reproduce on my 4.4.3 device which appears on 4.4.4 devices Jul 20 11:16:55 i see, thanks, Mavrik. Jul 20 11:17:28 considering that the changes from 4.4.3 to 4.4.4 are rather minor, I doubt AOSP android itself is the issue Jul 20 11:17:34 you'll probably have to get the exact device :- Jul 20 11:17:42 sq, 4.4.4 just patched some SSL bugs Jul 20 11:17:43 : / Jul 20 11:17:52 (why don't you have a Nexus as a developer?!!) Jul 20 11:18:30 MalekAlrwily: your information about the issue is very vague Jul 20 11:18:38 i have whatever my mom gave me on my birthday. if she didn't get me moto g i'd still be using my beloved samsung d900 Jul 20 11:19:02 Foxandxss: As AS does not give me more information Jul 20 11:19:15 just the file where the error Jul 20 11:20:21 buildscript { Jul 20 11:20:23 repositories { Jul 20 11:20:23 mavenCentral() Jul 20 11:20:23 } Jul 20 11:20:23 dependencies { Jul 20 11:20:23 classpath 'com.android.tools.build:gradle:0.12.+' Jul 20 11:20:23 } Jul 20 11:20:23 } Jul 20 11:20:34 this is the file content Jul 20 11:21:01 don't paste here Jul 20 11:21:21 Hh Jul 20 11:22:00 sq, yeah, bummer :- Jul 20 11:22:03 fwiw, I have jcenter() as the repository Jul 20 11:22:05 not mavenCentral Jul 20 11:22:07 sq, what's the bug you're seeing? Jul 20 11:22:08 don't ask me why Jul 20 11:24:00 Mavrik: the bug is a null exception that's easy to mend but i want to find the place where things go differently on different platforms (devices) Jul 20 11:24:19 hmmm, stack trace? :) Jul 20 11:24:31 I find it very unlikely you'll get a NPE due to minor device / android version differences Jul 20 11:24:51 there are bugs connected to permissions, visual corruption and media subsystem, but I've never seen an NPE Jul 20 11:25:15 i'm getting an intent with extras. in one case extras is null, in another it's non-null, but otherwise empty Jul 20 11:26:08 // Bug 776223: This is a Samsung clipboard bug. setPrimaryClip() can throw a NullPointerException if Samsung's /data/clipboard directory is full. Jul 20 11:28:28 hmm Jul 20 11:33:24 MalekAlrwily: pastebin your entire build.gradle. And the error log. Jul 20 11:33:48 ok Jul 20 11:34:00 Also read the android plugin docs. They aer good. BUT you need to understand gradle first : its quite a learning curve IMO. Jul 20 11:34:12 But very very good and powerful. Jul 20 11:34:45 (using intellij with gradle, I'm assuming AS uses gradle the same way just hides more of it) Jul 20 11:36:08 I have the threadid of an sms, anyone know the correct way to start an intent to open the default sms application to this specific thread id? Jul 20 11:36:44 rgr: build.gradle http://pastebin.com/njkq6R29 Jul 20 11:36:57 where can i found the error log Jul 20 11:41:36 wherever yo upasted the errors from before. Jul 20 11:42:12 where the android tools dependency? Jul 20 11:42:29 it happen on the first time i installed AS Jul 20 11:42:44 i don't know anything about gradle Jul 20 11:43:07 Was this the default build.gradle for a new Android project? Jul 20 11:43:30 no, it is from imported project Jul 20 11:45:20 i hope you can fix this error Jul 20 11:45:50 here is mine : https://gist.github.com/anonymous/ed80a12b0826b35b4b78 . I cant comment on imports since with a bit fo help from here and the Gradle In Action book I wrote my own top level build.gradle where the android part is a sub project (build.gradle for android part in the gist). I would suggest you rearrange your code to the proper gradle build hierarchy. This is well documented in stack overflow. Having mappings in the Jul 20 11:45:50 build.gradle which supoprt "non standard" project structure will only bit you in the arse later . Better to invest in a clean up now. Jul 20 11:45:54 because i have spent two weeks to fixing it Jul 20 11:47:02 you wont fix it if you dint understand how gradle works and the code hierarchy is a mess. Jul 20 11:47:40 I cant really offer any other support. Just bite the bullet, read about the android gradle structure and use that. Jul 20 11:48:03 Thanks very much for your great help Jul 20 11:48:37 i will understand gradle then retry Jul 20 11:56:26 Hi, i'm combining Drawerlayout for a sliding menu and ViewPager for tabs, but items on my sliding menu aren't clickable anymore, Can anyone check my main XML file please? THANKS http://pastebin.com/afzALJfU Jul 20 11:56:33 luckily rerranging code is a breeze in intellij/AS. Jul 20 12:02:20 Can anyone tell me what's wrong with my main activity XML file? http://pastebin.com/afzALJfU Jul 20 12:04:40 Mavrik: the bug appears in android l, yay. Jul 20 12:09:38 biggest hurdle at times is the nomenclature. settings a drawable in an "ImageView" just seems so wrong. Jul 20 12:11:09 lasserix: Zharf: thank you both very much, it appears that i'm actually incredibly stupid, the reason i was getting new instances of my service was that it was crashing and being respawned, i just didn't spot the exceptions Jul 20 12:11:19 ha yeah Jul 20 12:11:21 that'll do it Jul 20 12:13:30 a couple of things worth noting 1) Zharf's method of calling startService inside onBind works really well, despite being called as a result of bindService(intent, mConnection, BIND_AUTO_CREATE); - i don't know if this is too dirty for my taste though :) Jul 20 12:14:36 2) my crash was caused by calling bind onStart and unbind onStop, this seemed to lead to my ServiceConnectionLeaked crash, moving it to onCreate and onDestroy fixed that Jul 20 12:14:55 (onStart and onStop of the activities) Jul 20 12:15:25 it's great anyway, thanks again for your time Jul 20 12:24:52 Anyone know if the nexus 5 screen rate is fixed at 60 hz? Jul 20 12:25:05 guys when I want to create an app that runs in the background, do I choose IntentService? Or is there sth different, like an app but without gui in the background? Jul 20 12:25:45 yatekii probably service not intent service Jul 20 12:25:54 lasserix: Android framerate is fixed to 60fps Jul 20 12:25:57 intent service is a service but usually for a specific task that ends Jul 20 12:26:07 so you cant see more then 60Hz anyways Jul 20 12:26:28 lasserix: ok, tks, no I want it running 24/7 Jul 20 12:26:31 a service can persist, intent services typically are not meant to persist past performing some function (say downloading a bunch of data and updating a database periodically) Jul 20 12:26:48 danijoo: yeah thats what i thought Jul 20 12:26:59 Alrighty. Jul 20 12:27:02 why is this not mentioned in: https://developer.android.com/training/run-background-service/index.html Jul 20 12:27:03 ... Jul 20 12:27:44 yeah, that's what I felt like IntentService was for but I found no other functionality Jul 20 12:29:16 It is: they are using intent service to perform some work command Jul 20 12:29:21 that's what its for Jul 20 12:29:44 yeh but why is Service not mentione dthen Jul 20 12:30:08 well maybe alarm is right for me too Jul 20 12:31:22 Anyone have experience using ADB commands in Java? Jul 20 12:31:41 From device? Jul 20 12:31:45 I have some code to gaze at but I need help if anyone knows a good bit about the two. Jul 20 12:32:01 Ti40Alloy: From device or external? Jul 20 12:32:02 Well, perhaps from like a computer running Linux to ADB on a Nexus 7 or somethign. Jul 20 12:32:16 Ti40Alloy: Just execute it as a shell command Jul 20 12:32:19 whats the prop? Jul 20 12:32:20 prob Jul 20 12:32:33 Well I can get Java to talk to it in ADB commands. Jul 20 12:32:38 but not on the same process. Jul 20 12:32:52 So I can send one command but it's not a 'terminal' Jul 20 12:33:19 are you using Runtime.getRuntime().exec("adb do stuff") Jul 20 12:33:21 ? Jul 20 12:33:26 Yeah... Do you want the output or...? Jul 20 12:33:44 I think i am using that, one moment and I'll pastebin it. Jul 20 12:33:55 did it a week ago, forgive me Jul 20 12:34:00 You /could/ spawn a process sh and feed commands to but that's... Jul 20 12:34:07 I know, haha. Jul 20 12:34:12 We thought of that but it's messy. Jul 20 12:34:32 Thats the only possible way of doing it Jul 20 12:34:33 i think Jul 20 12:34:35 Yeah, but if you want a shell, you're going to have to spawn one. Jul 20 12:34:47 and then after each exec you create an Inputstream and fetch the response Jul 20 12:35:06 No matter what? What if i have a script and run the script as if it's one command? Jul 20 12:35:22 Or will getruntime dislike that? Jul 20 12:35:29 if its only one command, you dont need a shell.. Jul 20 12:35:36 just run the adb command then Jul 20 12:35:45 Or spawn it directyl. Jul 20 12:35:46 It's not, in the end. I should help by explaining the commands. Jul 20 12:36:05 tryng for a pull of DCIM/Camera and the SMS database in com.android.services Jul 20 12:36:43 Btw I think this would be _A LOT_ easier to do in bash or something like that Jul 20 12:36:44 Ti40Alloy: why do you need to resort to command line to do this? Jul 20 12:37:04 'resort'? i use command line first >_< Jul 20 12:37:16 uh Jul 20 12:37:17 because I need it to be without logging into the device, necessarily. I found out if USB Debug is enabled/dev options then you can just ADB from an external device. Jul 20 12:37:22 Command line first, good man. Jul 20 12:37:28 if you are jusing java run time to do command line arguemtns, that's not comand line first Jul 20 12:37:42 Well it's as close as you get on Android I found out. For my needs. Jul 20 12:38:00 i see, you're talking about executing another process in android Jul 20 12:38:08 using Java to talk to CLI allows for a very easy to make GUI later on. Jul 20 12:38:23 And I'm selling this, essentially. Jul 20 12:38:26 are you sure that will work with permissions though? Jul 20 12:38:30 yeah. Jul 20 12:38:37 I mean, a lot is blocked. it's not exactly SU Jul 20 12:38:43 but pulling and reading is working. Jul 20 12:38:50 So really, a lot is possible if you think about it. Jul 20 12:38:57 wait so an app can access sms without requesitng READ_SMS by just using java.lang.process? Jul 20 12:39:02 Haha ;) Jul 20 12:39:12 that sounds kinda not correct Jul 20 12:39:15 if it is that easy Jul 20 12:39:18 using something that read SQl Jul 20 12:39:21 SQL* Jul 20 12:39:32 But where is it stored? Jul 20 12:39:40 You might need root for it... Jul 20 12:39:49 it's not stored in the folder structure of your app which means you would -- yeah -- need root Jul 20 12:39:49 ADB sees the folder it's in. Jul 20 12:40:01 you can see something without being able to read from it Jul 20 12:40:07 Doesn't mean anything. Where is it? Jul 20 12:40:13 not if debug is enabled, i did it with my nexus 7 using CentOS last night. Jul 20 12:40:14 that's why i was asking have you actually tried to do this? Jul 20 12:40:23 Yeah. I have. Jul 20 12:40:35 But where is it stored? Jul 20 12:40:52 i find it hard to believe android development teammissed this huge security hole ;p Jul 20 12:41:01 I mean it's not that huge. Jul 20 12:41:05 Debugging has to be enabled. Jul 20 12:41:31 but convince someone to let you use their phone. Do that. Plug in my tool and the rest is your business. Jul 20 12:41:51 It's definitely root but it still worked on Nexus 7. Jul 20 12:41:52 Yeah its working because of debugging Jul 20 12:41:59 there are some tools to use this to backup phones Jul 20 12:42:16 yeah but where I am and the people I'm talking to, they're buying this from me for 5k Jul 20 12:42:18 you download a pc app, and it can save your sms, mails etc but only if debugging is enabled Jul 20 12:42:20 So I don't care to be totally honest. Jul 20 12:42:36 without root and stuff Jul 20 12:42:43 /data/data/com.android.providers.telephony/databases/mmssms.db Jul 20 12:43:09 btw for the SMS I grabbed last night. Jul 20 12:43:36 That's nifty, what you just mentioned. I'd prefer to back up on a computer anyways so that's kind of nice. Jul 20 12:45:23 http://www.pastebin.com/BPgQbvY5 for the snippet of late-night problem solving. Jul 20 12:45:46 IIRC we were trying a new implementation. In case it looks odd at the end. Jul 20 12:47:35 for 5k nice :) Jul 20 12:48:19 Right? Jul 20 12:48:25 Move to Baltimore/DC Jul 20 12:48:30 People have too much money and no ideas. Jul 20 12:48:43 Don't complain... :) Jul 20 12:48:43 they say Scanner is slow Jul 20 12:48:49 It is. Jul 20 12:48:50 haha. ;) Jul 20 12:49:45 Zharf: Why? Jul 20 12:50:01 just mentioning because Ti40Alloy had it in his paste Jul 20 12:50:02 :) Jul 20 12:50:30 Thanks a lot, we'll look into it. Jul 20 12:50:41 Speed is super important so that's awesome that you mentioned that. Jul 20 12:50:59 Zharf: Well, sometimes it's convenient to just sacrifice speed... Jul 20 12:51:05 flan3002, I know Jul 20 12:51:13 I've used it a couple of times because lazy Jul 20 12:51:15 :p Jul 20 12:51:39 But my OBJ parser speed up by a factor of 200 by simply using a combination of Integer.parseInt and String.split instead of Scanner, so... Jul 20 12:52:01 No wait, it was floats... Jul 20 12:52:06 Still awful. Jul 20 12:52:14 Ti40Alloy: http://pastebin.com/DPA4SKHN Jul 20 12:52:37 with this you can the reuse Process p and use it as a terminal, kinda Jul 20 12:53:16 Is there a better tutorial on how to make a NavigationDrawer menu than http://developer.android.com/training/implementing-navigation/nav-drawer.html#Init Jul 20 12:53:23 Ohhhhhhh. Jul 20 12:53:36 I guess this is what you are looking for? :) Jul 20 12:55:10 Omg, I hate you. Jul 20 12:55:13 That's so easy. Jul 20 12:55:17 I mean I'll have to try it. Jul 20 12:55:33 yeah I havent tested Jul 20 12:55:36 Or if anyone could explain to me in the Initialize the Drawer List section they have this line new ArrayAdapter(this, R.layout.drawer_list_item, mPlanetTitles) but they never defined or stated what R.layout.drawer_list_item is : / I know mPlanetTitles is a String[] Jul 20 12:55:40 but should work like that Jul 20 12:55:47 I agree, it should. Jul 20 12:56:40 Also, anyone have an idea as to why Nexus 7 works just fine with this idea but something like an Optimus won't? Debugging and everything ready to go. I just assumed the "Googleness" of the Nexus 7 made it more friendly but realistically I have no idea. Jul 20 12:56:45 I first tot maybe it's an element like TextView or something to represent the string in mPlanetTitles on UI but why is it calling R.layout.id then Jul 20 12:57:21 it's just a layout name... Jul 20 12:58:01 Zharf: But they never defined layout with that name Jul 20 12:59:24 Ti40Alloy: 'This idea'? ADB enabled on both? Same rooted-ness? Jul 20 12:59:36 they expect you to know how to make it yourself by that point ;) Jul 20 12:59:45 Ti40Alloy: And of course, have you checked the locations are the same? Jul 20 13:00:07 I think without overriding getView in ArrayAdapter the layout needs to be just a single Jul 20 13:00:08 Um what ? Jul 20 13:00:15 a kk Jul 20 13:00:29 yeah, psuedo rooted(USB Debugging but not actual root user) and I believe adb is 'enabled' on the Optimus. I'll feel silly if I asked you and I check and find out it's just that though. Jul 20 13:01:03 I haven't actually used a non-custom listadapter in many years Jul 20 13:01:05 -.- Jul 20 13:02:00 Yeah, no reason it shouldn't be working. I'm worried about all of the stupid crap manufacturers do to the phones. Jul 20 13:02:19 "stupid crap" and here I am trying to rob data from phones. Jul 20 13:02:23 Ti40Alloy: Well, try it manually, from your dev box. Jul 20 13:03:44 what's the best way to take square photos with the camera api? Jul 20 13:04:31 shouldn't the system call onSaveInnstanceState() before onDestroy() ? Jul 20 13:04:55 the question is if the user intentionally quit the main activity then the onSaveInstanceSatate() doesn't call Jul 20 13:05:28 levo: what you mean with "quit" Jul 20 13:05:45 danijoo: backs to the menu Jul 20 13:06:10 onsaveinstancestate is for if the activity is destroyed and may be recreated Jul 20 13:06:29 if the user hits back, the activity is finished and will never be recreated, so no need to save the state of it Jul 20 13:06:47 thats why android wont save the state in this case Jul 20 13:07:16 danijoo: but i can do that by calling onsaveinstancestate like in onDestroy(), right? Jul 20 13:07:37 dont do that Jul 20 13:08:15 danijoo: why? Jul 20 13:08:20 because you will also call super.onSaveInstanceState with that. And you dont know what this will do. Jul 20 13:08:42 These methods arent made to be called by you. they are made to be overwritten and called by the system when its time to call them Jul 20 13:09:18 danijoo: ok thanks now i get it. Jul 20 13:10:41 I'm using intent to open the camera application. Is there a way to tell it to take a picture from the code? Jul 20 13:11:51 when launching my application, an extras item "profile" containing UserHandle{0} is passed to it Jul 20 13:12:01 any idea where it comes from? Jul 20 13:13:02 gavri: just take your photo and crop it after you get the bitmap Jul 20 13:13:28 sq: http://developer.android.com/reference/android/os/UserHandle.html Jul 20 13:16:07 danijoo: yes but where does it come from? Jul 20 13:16:24 the system Jul 20 13:16:26 it's in extras on one device, and it's not there on another device Jul 20 13:16:36 what determines if it's passed? Jul 20 13:16:53 not all api versions have User managment Jul 20 13:17:01 so you wont get it on old devices Jul 20 13:17:16 i'm not getting in on 4.4.3 but i get it on 4.4.4 and L Jul 20 13:19:18 Maybe it depends on some device settings. dont know.. Jul 20 13:24:50 lasserix: ok, I am going for the service way. A question now: can I interact between 2 services without binding them? :S Jul 20 13:31:10 sure Jul 20 13:31:16 put broadcast recievers in them Jul 20 13:31:29 catch is you can only pass prmitive types (and their sets) Jul 20 13:32:10 *actually you can implement serializable/parceable Jul 20 13:32:23 and send datastructures packed in intents that way too Jul 20 13:32:31 Or just use an event bus Jul 20 13:32:43 or use a singelton Jul 20 13:32:52 sorry i got stuck in remote service point of view Jul 20 13:38:38 Guys, is that a known "issue" with multi-touch, where, if you jsut touch screen wuth your palm or just all fingers and palm or something, it confises the sensor and tohes stay active on the screen ? Jul 20 13:38:50 here is the image : Jul 20 13:38:50 or use a singelton Jul 20 13:38:58 upss Jul 20 13:39:10 here : http://goo.gl/DgPD6o Jul 20 13:39:52 rebelCoder: believe you have to mask against the pointer Jul 20 13:40:00 there are many guides on how to do this Jul 20 13:40:15 mask against the pointer ? Jul 20 13:40:19 hmmm what is that ? Jul 20 13:43:25 No, that's not a known bug Jul 20 13:43:35 You'll get an up event for each pointer Jul 20 13:45:59 Events CALENDAR_ID are always 2 Jul 20 13:46:01 why?!? Jul 20 13:48:40 SimonVT, yes, it works just fine with all ten fingers, moving/touching fast, but when just touch with your palm or the other side of your palm, jsut to generate random touches, it confuses the sensor it seems. I have tried 2 morew "multi-touch thes apps" from the store and they both had the same issue. Jul 20 13:51:10 if you touch normlany, system func. GetTouchFingerCount() will return correct number, but when you touch like very rapidly with your palm or something it will confise the sensor it seems and GetTouchFindercount() will not reset to 0 Jul 20 13:51:36 toching again , normally will reste those toches that are still active Jul 20 13:53:38 Probably a device with a shitty touch sensor Jul 20 13:54:41 If it happens, it'd be device specific Jul 20 13:55:12 And arguably something you could ignore, since it probably wouldn't happen with normal usage Jul 20 13:55:34 rebelCoder: so what device are you seeing this on? Jul 20 13:56:33 Galaxy Note 3, Sony Xperia Z1 Compact Jul 20 13:57:23 well lasserix I know parcelables, I just need to exchange a simple number :) Jul 20 13:57:34 kk I'll read some docu Jul 20 14:00:37 Leeds, it does not break anything, but sometimes it just not reset toches if you just grab the screen with a lot of reandom touch points. 2 more apps from the store had the same issue Jul 20 14:01:03 so it look like it is not my code as all I do is just render and update when GetTouchFinderCount > 0 Jul 20 14:01:33 this count comses from API (TouchIDDevice), not me counting it Jul 20 14:02:47 Yatekii: oh that's easy Intent i = new Intent(); //prep the intent// i.putExtra("KEY_MY_NUMBER", value); then on the other end intent.getIntExtra("KEY_MY_NUMBER"); Jul 20 14:04:07 here is a quick video showing this Jul 20 14:04:07 https://www.youtube.com/watch?v=3vtMaJN77Q8 Jul 20 14:05:07 rebelCoder what kind of dev do you do where people slapping the screen with their palms and fingers is a standard use case you have to idiot proof against? ;p Jul 20 14:05:30 Doesn't happen on nexus5 Jul 20 14:05:36 ok, yesh sorry, I did slap, but you can just put your wrist on it ... Jul 20 14:05:59 just was wondering if this is a bug as 2 more apps had that issue Jul 20 14:06:09 hey guys/gals, what do you prefer, android studio or eclipse+adt? Jul 20 14:06:27 2nd one. Android Studio is still in beta ? no ? Jul 20 14:06:46 tried it - was very slow and had some issues Jul 20 14:07:02 yes, but it's a fork of intellij idea, so: eclipse or intellij? Jul 20 14:07:21 IntelliJ. :/ Jul 20 14:07:50 agree Jul 20 14:07:53 (well, it's not a fork, it's like eclipse+adt) Jul 20 14:08:04 android studio Jul 20 14:08:19 thanks ppl Jul 20 14:16:17 ahh lasserix right, I even used that once :D Jul 20 14:16:35 but like that both need to know that intent Jul 20 14:16:36 hmm Jul 20 14:19:16 that is what the broadcast recievers are for Jul 20 14:19:25 register them in oncreate and unregister them in ondestroy Jul 20 14:19:48 set their intentfilter to context.getPackagename + ".service.INTENT_ACTION" or whatever Jul 20 14:20:26 (make sure eahc broadcast reicever has a unique action string tho) Jul 20 14:21:36 ok, tks :) Jul 20 14:21:38 I'll read Jul 20 14:21:59 My buddy is coming over tonight I think so I'll be on here about the ADB. I'll release source and everything if people want it. It could be pretty useful if we do it right. Jul 20 14:22:38 cool Jul 20 14:23:22 I do not understand a word, but nice :D Jul 20 14:23:56 Does anyone know how to make a circle swipe navigation? With these circles at the bottom of the screen indicating what page you're on: http://puu.sh/ajr76/ec9576d929.png Jul 20 14:24:35 you should get an .APK Decompiler and borrow ideas from apps you like. Just don't copy code. Jul 20 14:24:39 Any idea how to do this with ViewPager for example? Jul 20 14:26:34 Muchoz, use a ViewPager and JakeWhartons ViewPagerIndicator library for the circles. Jul 20 14:26:48 http://viewpagerindicator.com/ Jul 20 14:28:29 and source: https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/library/src/com/viewpagerindicator/CirclePageIndicator.java Jul 20 14:30:14 Mavrik, thanks. I'll be using that then. Jul 20 14:37:13 /quit Jul 20 14:37:16 Mavrik, care to explain how I reference this in Gradle? I did the following but it still can't find the compile artifact. http://stackoverflow.com/questions/22126576/viewpagerindicator-dependency-with-gradle-and-android-studio Jul 20 14:37:19 lol Jul 20 14:39:37 Mavrik, I think I got it working. Lemme give it a test. Jul 20 14:52:33 Muchoz, I don't use gradle. Jul 20 15:04:38 hello. I am using the gson library. How can i deserialize a json object which name is default? Jul 20 15:04:47 the default is used from java lang Jul 20 15:04:54 if i have an array of short[], is there a way I can pass this to buffer.write(char[]) and have it treat it as an array of twice as many chars Jul 20 15:06:24 i found the answer Jul 20 15:06:56 dear all , i have this Android bytecode http://pastebin.com/vr8yJEQj , how can i edit on it ? Jul 20 15:07:23 Hello Jul 20 15:07:54 How to setText in another activity' Jul 20 15:07:56 ? Jul 20 15:08:16 Activity2 -> setText -> activity1 Jul 20 15:12:44 Z:z Jul 20 15:16:06 .j android Jul 20 15:24:35 '??''''''''''''''' Jul 20 15:29:55 Activity2 -> setText -> activity1 Jul 20 15:36:26 Juanseee: your question is quite vague. maybe reword it with some actual detail, and/or paste some code of what you have tried and what isn't working Jul 20 15:42:00 animations driving me notes. surely sequential animations are processed in the order they are found in the xml animation resource? Jul 20 15:42:11 s/notes/nuts Jul 20 15:59:39 What are these number 70.0f, 52.0f, etc.? Some sort of float numbers? Where can I read more about them? Jul 20 16:00:13 they are indeed floats Jul 20 16:02:17 donniezazen: Any Java tutorial on primitive types. :) Jul 20 16:03:14 catphish_: flan3002 Okay thanks. Jul 20 16:04:08 i have services mysteriously exiting, i wish i knew why :( Jul 20 16:06:18 I'm banging my head here. What totally obvious thing have I missed trying to get multiple animations to execute in sequence? https://gist.github.com/anonymous/1bafebf0f4c0c2052b3b Jul 20 16:06:30 (just an xml animation resource) Jul 20 16:08:26 Hi all Jul 20 16:08:48 Can anybody help me building CM11 with a prebuilt kernel? Jul 20 16:08:57 Ask in #cyanogenmod? Jul 20 16:10:13 Nobody answer Jul 20 16:10:32 How long did you wait? Jul 20 16:11:03 1 hour Jul 20 16:11:12 More or less Jul 20 16:11:36 * flan3002 shrugs. "Well, I can't..." Jul 20 16:12:30 i have to make an android app for openerp modules, does someone know what do i have to install and how? there's an openerp mobile framework and looks nice but i don't know how to set the project Jul 20 16:19:21 Zharf: lasserix: in case you're still interested, i think i discovered why my service was randomly being stopped, it seems to react to orientation changes (my activities are landscape), i don't fully understand it yet, but discussed here: http://stackoverflow.com/questions/11935625/android-unbindservice Jul 20 16:23:46 UannaFF: sounds like a question for #openerp to me... Jul 20 16:24:58 I'd like to save a photo from my application that is available to all applications Jul 20 16:25:19 but MODE_WORLD_WRITEABLE and MODE_WORLD_READABLE are deprecated Jul 20 16:25:32 is there an alternate way for me to do this? Jul 20 16:26:49 Save it to external storage Jul 20 16:27:40 SimonVT: why is saving to external storage not deprecated? Jul 20 16:28:33 Those flags are used when saving files to your apps private storage Jul 20 16:28:33 why would it be Jul 20 16:29:28 The docs also says why not to make files in your private storage world readable Jul 20 16:29:32 SimonVT: k, thanks Jul 20 16:29:46 it seems I *must* use startOffset on a animation. this seems somewhat kludgy to get them to run in sequence. any other xml tag I'm missing? I tried android:order="sequentially" but no joy.. Jul 20 16:30:41 What's the appropriate layout_width for the root view of an activity designed to fill the screen? Jul 20 16:34:35 fill_parent? Jul 20 16:49:45 match_parent Jul 20 16:50:05 same thing, just better semantics in name Jul 20 17:03:38 despite my million theories, i still have no idea why my services are randomly being killed off, it seems to happen mostly when the activity that binds to it is closed to quickly Jul 20 17:04:20 i might just give up on binding and see if i can make the service application wide and use a different messaging technique Jul 20 17:09:38 is there no callback for your service destructor? it surely cant be that hard to vatch when it dies? Jul 20 17:11:04 just to repeat Q : when defining animations in an XML file as sets is the ONLY way to make them run sequentially to set the startOffset delay? This is quite horrible. I cant find any XML attribute that says "run them one after the other" OR "run this after the previous one". Jul 20 17:17:33 catphish_, service binding is the worst pattern Jul 20 17:17:52 don't use binding unless IPC is involved Jul 20 17:19:45 hi, got a strange issue here, using eclipse to make a android add, but it seems the order of the resources in the layout/activity_main.xml file is affecting the behavior of my button. any idea what might be going on? Jul 20 17:26:23 andways, it's messed up that the order of a layout xml file can cause apps to crash Jul 20 17:28:01 I apologise in advanced for the vagueness of my question, but I am having a hard time figuring out how to phrase it and what the underlying cause may be: When using OpenVPN (not sure if this occurs with built-in VPN protocols), what is the reason that some apps don't route their traffic through the VPN and how can this be fixed? For instance, any app allows specifying IPs can be made to connect to an IP Jul 20 17:28:02 in the VPN (10.8.0.xxx). Conversely, any connection to a LAN IP fails (e.g., ping 192.168.1.xxx). Apps that connect to other devices via autodiscovery, however, fail to discover such devices, even when all of them are connected to the same VPN (this is the case I want to fix, by patching the app itself). I guess my question has to do with network routing, but I'm not sure what to look for to understand Jul 20 17:28:04 how android and android apps pick routes. Jul 20 17:32:14 pfn: i'm starting to realise this :) i'll put together a different messaging mechanism Jul 20 17:34:15 Any idea what would dividing width of display by 480.0f mean? Jul 20 17:37:37 recon_lap, is it crashing or just not what you are wanting? and it's not messed up that order matters, cause sometimes you want it to matter Jul 20 17:37:42 depending on your layout Jul 20 17:42:25 Regarding the Admob update deadline of August 31st... Jul 20 17:43:23 This ( https://support.google.com/admob/v2/answer/6025739 ) makes it look like legacy IDs in APKs will still get ads for a bit, if the web side is updated Jul 20 17:47:44 Anyone? I'm getting the wrong button responding when pressed ?code -> http://pastebin.com/DDZq2csH Jul 20 17:53:14 What can cause drawables to get messed up? For some reason, when I try to replace one drawable with another programmatically, a totally different drawable from the same folder is being selected. I have no idea what's going on Jul 20 17:53:51 d0de: make sure the drawable is consistent across all sizes Jul 20 17:55:42 that sounds more like your IDs are pointing to the wrong drawables.. Jul 20 17:56:12 catphish, thanks for the suggestion but I've done that and it hasn't fixed the problem Jul 20 17:56:28 then post some code, "messed up" doesn't mean much Jul 20 17:57:00 i've seen corruption when trying to replace drawables that were missing from a particular DPI Jul 20 17:57:23 d0de: how are you loading the replacements? Jul 20 17:57:36 d0de: well, I got different buttons responding to events depending on how the layout xml file is setup !! Jul 20 17:57:50 d0de: so I can relate :) Jul 20 17:58:01 I'm calling setBackgroundDrawable(getResources().getDrawable(R.drawable.foo) Jul 20 17:58:34 it's been working properly in the past, I'm not sure at what point it's stopped working Jul 20 17:58:46 tried cleaning the project? Jul 20 17:58:56 instead of R.drawable.foo, it's actually calling another drawable that's displayed on screen for another element Jul 20 17:58:57 will do Jul 20 17:59:03 why not setBackgroundResource(R.drawable.foo)? Jul 20 18:00:07 danijoo: thx, cleand the project and the buttons started working correctly !! Jul 20 18:00:35 Oops, me too :| totally forgot about that as an option Jul 20 18:00:57 thanks danijoo, all. Sorry, should really have remembered to do that Jul 20 18:02:30 thanks canvs2321, you're right, that is the more appropriate call Jul 20 18:33:23 So, are there any good tv shows recommendation apps? Jul 20 18:38:29 how to get WebView to let sites know its a mobile phone? so I get the mobile versions? Jul 20 18:40:22 mylord: http://en.wikipedia.org/wiki/Mobile_device_detection#Detection_Service_Delivery Jul 20 18:41:24 usually sites are just looking for keywords in the HTTP header like "Android" or "iOS" Jul 20 18:42:05 danijoo.. so there’s nothing special I could/should do when using a WebView controller? Jul 20 18:42:56 I dont know what header webview sets by default Jul 20 18:43:00 but you can change it Jul 20 18:43:05 what does it actually mean to "share an interpolator" Jul 20 18:44:38 could facebook login not work on some devices with older Facebook app versions? Jul 20 18:45:08 you mean login to facebook app or facebook sdk? Jul 20 18:45:25 what are ident units for LeadingMarginSpan? is it pixels or something else? Jul 20 18:47:48 also, Paint.measureText—it's float for some reason Jul 20 18:48:43 sq: probably for http://developer.android.com/reference/android/graphics/Paint.html#SUBPIXEL_TEXT_FLAG Jul 20 18:49:20 hum Jul 20 18:49:32 well, let's try (int) ing it then Jul 20 18:50:22 danijoo hmm.. long test to try to see what the headers currently are, even: http://stackoverflow.com/questions/19692617/how-do-i-see-request-headers-on-android-webview-requests Jul 20 18:50:25 not sure if you want to (int), or (int)Math.ceil() Jul 20 18:51:05 mylord: much easier if you have a server you can query and read the log :) Jul 20 18:51:12 ya Jul 20 18:51:18 have that.. gonna try Jul 20 19:00:11 is making my app tablet only part of the play store or part of the manifest? Jul 20 19:02:59 Guys, quick question. In Eclipse/IntelliJ IDEA, is there a way to make it automatically MAKE PROJECT when You RUN? isnted of makingg then running all the time ? Jul 20 19:07:36 run implicitly makes... Jul 20 19:08:13 It does not it seems. I am using NDK + 3rd party libs Jul 20 19:08:27 I have to MAKE every time I RUN Jul 20 19:10:29 make? you mean ndk-build? Jul 20 19:10:44 No. Found it. Jul 20 19:10:46 in Android studio is there a way to search by filename to quickly open up a file in your project? Jul 20 19:17:05 i have a custom settings screen that i made… is it proper to have a “dismiss” button or is it enough to assume the user will use the back button? Jul 20 19:27:14 Does anyone know about the problems with SDK Manager.exe and AVD Manager.exe on Windows? Whatever I do I run into errors. Already searched the web (stackoverflow, blogs, etc.) Does anyone have a solution? Jul 20 19:27:41 what to use for android:requiresSmallestWidthDp? Jul 20 19:27:51 i have it set at 600 right now, but i don’t know what it should be Jul 20 19:29:17 nevermind, it turns out the play store isn’t using that anyway Jul 20 19:30:33 veQue: Cmd+O or Cmd+Shift+O, for Windows, Linux, I don't know the shortcut. Jul 20 19:35:14 ctrl + shift + n kakazza thank =) I just found it right before you typed that Jul 20 19:35:47 just had to check every menu Jul 20 19:43:20 not sure Jul 20 19:43:40 wrong channel Jul 20 19:46:54 Evening all. Jul 20 19:47:40 I have a question, has anyone here used Retrofit before? ( JakeWharton if you see this please forgive me! - assuming you wont) Jul 20 19:47:57 Whats your question? Jul 20 19:49:07 Because I am stumped how to handle 401 errors from an API I am using. It currently just crashed the app, I can assign a custom error handler...but that returns a throwable. Do i actually have to try/catch each Retrofit network call Jul 20 19:49:36 Are you using a callback? Jul 20 19:49:52 I'm try to sort from calendarcontract events provider by date from past to future, How can I from the provider not later sort? Jul 20 19:50:27 danijoo D'oh Jul 20 19:50:30 EdGeorge: if you are using a Callback, there is an onFailure method called with the exception as argument Jul 20 19:50:37 if not, you have to catch them on your own Jul 20 19:50:56 danijoo jeez, this is why I need to read docs a bit more thoroughly Jul 20 19:51:12 not sure how I missed that one... Jul 20 19:51:14 in both cases you'll get a RetrofitError, which has a getStatus() class returning the error code Jul 20 19:51:38 Callbacks are the true strength of retrofit because u dont need to write your own threads ;) Jul 20 19:51:53 back to the drawing board for me :) Jul 20 19:51:58 hehe Jul 20 19:52:51 I am sorry Jake! I repent my sins... :P Jul 20 19:52:59 Cheers danijoo Jul 20 19:53:02 yw Jul 20 19:57:18 is it possible to access the android filesystem (or even external storage) over usb? Jul 20 19:58:40 i'm using a motorola build and it seems to only offer access to MTP or PTP, which are pretty useless Jul 20 19:59:34 catphish: unfortunatly a lot of current android builds only offer MTP Jul 20 19:59:49 (and yes this sucks hard) Jul 20 19:59:59 i might just flash cyanogen then :) Jul 20 20:00:37 it really blows for debugging if i can't check the contents of data files Jul 20 20:00:58 whats wrong with adb for that? :) Jul 20 20:01:22 i don't know how to use it for that, hence my question :) Jul 20 20:01:50 man adb Jul 20 20:01:52 ;) Jul 20 20:01:54 adb pull /path/to/the/file /path/to/directory/on/or/pc Jul 20 20:01:58 and you have the file Jul 20 20:02:10 oh i see, that might be good enough :) Jul 20 20:02:16 (only found about adb screencam yesterday : very cool) Jul 20 20:02:32 android studio has a screen record button :) Jul 20 20:02:39 i've been meaning to try it Jul 20 20:02:39 also, Cyanogen won't magically make MSD work. Jul 20 20:02:49 so it triggers adb screen recorder? Jul 20 20:02:54 because MSD is fundamentally incompatible with how new devices work. Jul 20 20:03:00 rgr: i believe so Jul 20 20:03:09 but you dint use adb or AS? Jul 20 20:03:13 yes, adb screenrecorder is the facility used in AS. Jul 20 20:03:19 cool. Jul 20 20:03:35 Mavrik: that's interesting, i know it used to be the case that you had to unmount the external storage, then make it available as MSD Jul 20 20:03:42 yes. Jul 20 20:03:55 that's the flaw of MSD Jul 20 20:04:11 but i thought modern builds had a simulated FAT that read the underlying files and presented a fake filesystem to the MSD Jul 20 20:04:21 and on new devices that have unified storage (remember all that "running out of space" shit when you had full SD empty?) cannot be unmounted. Jul 20 20:04:21 but maybe thats wishful thinking Jul 20 20:04:33 catphish, MSD works on a block device, not filesystem Jul 20 20:04:46 do you if on AS you can replace object.property = someValue; with object.setProperty(someValue); ? Jul 20 20:04:46 that's the reason why you can't have it mounted multiple times Jul 20 20:05:07 it expects to have a total and exclusive access to whole storage partition or it'll trash your data badly Jul 20 20:05:18 really, we just have to write a decent MTP driver Jul 20 20:05:24 Mavrik: for some reason i thought they had a simulates block device that presented the files as FAT Jul 20 20:05:29 the sorry shitty state of what's available for Linux and OS X is disgraceful. Jul 20 20:05:54 i've never managed to get MTP working on linux :( Jul 20 20:05:59 no, there's no more FAT. Jul 20 20:06:11 FAT makes no sense anymore now that they got rid of MSD Jul 20 20:06:22 little rant. so. I have android:fillAfter set in my animation XML but its still resetting when the animation finishes. The docs for the animations suck arse bug time. Im relying on google which is chockablock of millions of people who barely speak English cutting and pasting the older docs into their blogs and pretending they understand it or discovered it in an attempt to seed google. Frustrating. It's like a sewer out there when Jul 20 20:06:22 looking for Android API help outside of the official docs. end of rant ;) Jul 20 20:06:24 which was probably the second reason for MTP Jul 20 20:07:35 i was mistaken, there's no such thing as a reverse-FAT driver (that presents a filesystem as a FAT block device) Jul 20 20:07:38 that's a shame Jul 20 20:08:18 it's actually an extremely good idea to have a USB file-based protocol, shame MTP is so badly supported :( Jul 20 20:08:40 mhm Jul 20 20:08:45 we just make do with ADB now Jul 20 20:08:51 but that one has it's own warts. Jul 20 20:09:06 can adb list files? Jul 20 20:09:17 nop Jul 20 20:09:24 shame :( if so, i could write a FUSE filesystem with it Jul 20 20:09:25 but you do know you can just shell into a device right? Jul 20 20:09:46 i didn't know that either :) Jul 20 20:42:09 no matter what i do i cannot get a service to reliably continue running when my activities end Jul 20 20:44:38 i am going to need to do that soon Jul 20 20:44:44 are you running some type of background service? Jul 20 20:45:53 i have a service that records data from the microphone Jul 20 20:46:10 i want it to continue running when my activities end Jul 20 20:47:07 sounds evil : > Jul 20 20:47:42 unfortunately, whatever i do, the service seems to get restarted when i close activities Jul 20 20:48:20 catphish: do you call startForeground() from within your service? Jul 20 20:49:04 jush: i do not Jul 20 20:49:25 danijoo Dude, thanks SO much that Retrofit callback stuff... amazing :') Jul 20 20:49:31 haha Jul 20 20:49:31 jush: i will try that! Jul 20 20:49:35 catphish: check out https://developer.android.com/reference/android/app/Service.html#ProcessLifecycle 4th bullet point Jul 20 20:50:30 haha no problem :) Jul 20 20:51:19 I am stuck people. I need help! Jul 20 20:52:20 I am trying to have autocompletetextview that returns searched contacts. Jul 20 20:52:33 Previously, I had this working with AsyncTask that would load all contacts then filter Jul 20 20:52:55 but I think that's a horrible idea and I should only search for contacts matching the string in the edittext Jul 20 20:54:22 detachYo: what you are looking for is CursorAdapter Jul 20 20:54:49 together with a LoaderManager Jul 20 20:55:00 yes! Jul 20 20:55:15 I have a ListActivity with those already Jul 20 20:55:29 I am having hard time converting to autocomplete suggestion thingy. :-D Jul 20 20:56:10 jush: i think that worked, thanks! Jul 20 20:56:29 detachYo: http://developer.android.com/training/contacts-provider/retrieve-names.html Jul 20 20:56:37 this on how to create the cursors Jul 20 20:56:54 and then use the cursoradapter for your autocompletetextview Jul 20 20:57:04 you may have to extends it and modify a bit Jul 20 20:57:31 But this loads all contacts at once. I want to load only matching ontacts. Jul 20 20:57:38 No? Jul 20 20:59:00 see the section "Define search criteria" Jul 20 20:59:34 catphish: no problem, happy to help. Btw, the system can still kill your service if running really low on memory, but that's another story... Jul 20 20:59:46 you have to use a textchangelistener on your view, and each time the text changes, you are calling the loader again to get a new curser Jul 20 20:59:58 is a listview scrollable? what is the difference between listview and scrollview? Jul 20 21:00:24 jush: that's ok, its not the end of the world, just dont want it to happen every time someone switches to another app :) Jul 20 21:00:43 rungtung: a scrollview just holds a layout and makes it scrollable. A listview has an adapter and creates the listitems dynamically while scrolling Jul 20 21:01:00 thanks danijoo, i'll take a look Jul 20 21:01:04 I get the idea Jul 20 21:01:17 yw Jul 20 21:01:19 just can't wrap my head around the way Jul 20 21:01:44 listviews are awesome, took me a long time to get my head around the adapters, but worth it Jul 20 21:01:53 textchange -> new query to loadermanager -> new cursor -> set new cursor to adapter Jul 20 21:01:56 thats the workflow Jul 20 21:04:36 danijoo: so for a highscoretable that might or might not fit into the phone vertically, which would be better? Jul 20 21:05:27 rungtung: depends on the number of entries Jul 20 21:05:57 if its only 5 or 10, you might get away with a scrollview Jul 20 21:07:27 on a scrollview you have to make the whole layout. in a listview you only make the layout of 1 entry and say "I have 100 entries with values 1,2,3,4.." all looking the same but with different value Jul 20 21:07:47 so choose whats better for you.. Jul 20 21:08:21 so choose wisely Jul 20 21:08:22 FTFY Jul 20 21:08:54 theres always more then one way to do things. ;) Jul 20 21:09:31 * in perl. Jul 20 21:10:12 danijoo can I ask questions about the workflow, if you don't mind of course. Jul 20 21:10:29 sure Jul 20 21:11:11 to have a new query to loadermanager, do I use initloader? Jul 20 21:13:41 never used it this way, sorry Jul 20 21:14:38 in my opinion for small lists its fine to get them once and filter.. Jul 20 21:14:54 But if your useer has 1000 contacts, it can be PITA Jul 20 21:15:15 you could also get the cursor once and filter the cursor Jul 20 21:15:27 thats what i do in a SearchView Jul 20 21:15:56 Is filtering faster than retrieving from db? Jul 20 21:16:17 a cursor is only an iterator on a db. Jul 20 21:16:28 but if you have the list in memory, filtering is faster Jul 20 21:16:38 *usually* Jul 20 21:16:41 it all depends on size Jul 20 21:17:04 the more entries you have, the better the database solution gets Jul 20 21:17:45 I see Jul 20 21:17:52 so there is a gray line Jul 20 21:20:10 I think for contacts its enough to get the cursor via loadermanager (as done in the link) Jul 20 21:20:19 and then on text change you filter the cursor Jul 20 21:21:04 have to go now. good luck on that ;) Jul 20 21:22:15 thanks danijoo Jul 20 21:22:17 i will Jul 20 21:22:26 give it a try that way Jul 20 21:28:04 danijoo: 15 at first, maybe 30 later Jul 20 21:33:57 btw did you guys ban the web client? Jul 20 22:08:16 How do I auto import the required methods that need to be overriden? Jul 20 22:08:22 after I do extends SomethingHere [ Jul 20 22:08:24 { * Jul 20 22:20:13 Loader managers make more sense now. Jul 20 22:41:45 how do I set the amount of time the system searches for available bluetooth devices? Jul 20 22:49:25 Greetings - I'm new to android development. I'm adding items to a layout, but with a seekbar with a match_parent layout:width, it extends beyond the screen. Attempting to google hasn't helped much. Is this a padding issue? Jul 20 22:54:30 I tried to install gsutil like this and failed: https://developers.google.com/storage/docs/gsutil_install. then i installed it with apt-get and i get some complaint about user-agent? anyone here used it to get their reviews+ Jul 20 22:59:56 can I search a set of BluetoothDevices by mac address? Jul 20 23:09:33 I am having problems with loaders... this line: getLoaderManager().restartLoader(1, null, MyFragment.this); Jul 20 23:09:57 Looks like runtime exception. Jul 20 23:14:47 <_u2pop_> hello all Jul 20 23:15:10 <_u2pop_> i need a developer of galaxy s5 please Jul 20 23:15:45 huh? Jul 20 23:15:54 <_u2pop_> i want to be sure if is the slot of the microsd is not working on ir the software have issues cause i re-installed 2 times with odin. Jul 20 23:16:23 <_u2pop_> and i was looking on the terminal ssh about the microsd is inserted the kernel said me is reading it. Jul 20 23:17:09 <_u2pop_> but into the software option> storage is not displaying nothing Jul 20 23:17:33 <_u2pop_> i tested with 3 microsd with 2GB, 4GB and 8GB Jul 20 23:18:10 <_u2pop_> i dont know if is one the pin in the slot is not reading completely on the microsd Jul 20 23:18:27 <_u2pop_> but the phone is new, i boy it on ebay Jul 20 23:27:23 _u2pop_: this channel is for app dev questions, try #android or #android-root Jul 20 23:28:36 how do you authenticate with gsutil? Jul 20 23:29:53 Hello Jul 20 23:30:07 How to setText in another activity' Jul 20 23:31:15 Activity2 -> setText -> activity1 Jul 20 23:32:34 You can't. You can use startActivityForResult if you want to pass data back to the activity that started an activity Jul 20 23:33:56 Ok i try now Jul 20 23:39:46 Eh no work SimonVT Jul 20 23:39:51 Please check my small code http://pastebin.com/q3xr6jGE Jul 20 23:43:05 115 views... Jul 20 23:43:29 So you didn't look at startActivityForResult and how to pass data back Jul 20 23:43:51 You can't touch the view of other activities from an activity Jul 20 23:44:33 You pass data between activities, then have the activity that owns the view set the text Jul 20 23:45:22 Ok the only method is startActivityForResult? Jul 20 23:46:51 .i. Jul 20 23:47:14 no one here that has used gsutil? Jul 20 23:51:33 for an image view, is it possible to have width=match_parent, height=wrap_content, and still set a max width? I can't find a combination of all three that works Jul 20 23:51:58 I want the width to fill the parent up to a max width, and the height to always match the aspect ratio of the width Jul 21 00:01:05 ah ok, I need to set maxHeight && maxWidth Jul 21 00:04:56 In a lot of tutorials about SurfaceView, in the loop people typically synchronize on the surfaceholder when drawing / and or updating the state (to be drawn). Why do they do this? I understand if they use a seperate update logic thread, but in the case they dont, doesn't surfaceholder.lock / unlockcanvasandpost handle any synchronization issues? Jul 21 00:07:56 Is there any way to format the way the project hiearchy looks? Jul 21 00:08:06 my classes are stacked too closely in the vertical axis Jul 21 00:53:03 hi, I am trying to build something with JNI, and I keep getting undefined reference to stdlib functions. I.e srand, rand, etc. Is there something I need to add to the makefiles? calling srand and rand also does not work in the hello_jni exampole Jul 21 00:53:19 or rather runtime error of "cannot locate symbol" Jul 21 01:15:20 http://www.phoronix.com/scan.php?page=news_item&px=MTc0NDQ Jul 21 01:16:51 run debian & android together Jul 21 01:16:59 why would you :S Jul 21 01:21:58 bankai_au: why not ? :P Jul 21 01:54:28 I'm looking to port some computational physics C++ projects to Android and am looking for advice on the best way to do this. Currently, my own research has lead me to believe that implementation via the android-ndk and direct use of openGL is the way to go. Any advice? Jul 21 01:54:36 I'm aware of the libGDX/Unity engines, but I have my own physics already written in c++. Additionally, I do not believe such engines provide code for some of the physics simulations I'm doing (e.g. schrodinger equation). Jul 21 02:24:03 Is L stable enough to use day-to-day? I only have one device capable of running it (my Nexus 5) and it’s my primary phone... Jul 21 02:24:16 i wouldn't Jul 21 02:24:47 okay, thanks Jul 21 02:24:59 I guess it’s time to pick up a 2013 N7 then Jul 21 02:25:04 I have a 2012 N7 Jul 21 02:35:45 I'm using Android Studio on mac. How can I access adb from CLI? Jul 21 02:36:37 It’s at “/Applications/Android Studio.app/sdk/platform-tools/adb” Jul 21 02:38:36 I see it there Jul 21 02:38:49 but the terminal doesn't allow me go there Jul 21 02:38:51 strange Jul 21 02:39:13 /Applications/Android\ Studio.app/sdk/platform-tools/adb Jul 21 02:39:33 bankai_au yeah, thats right Jul 21 02:39:48 infact, I see two Applications folder Jul 21 02:39:53 one on my home folder Jul 21 02:40:16 napster are there any AS comonents in your ~/Applications ? Jul 21 02:40:24 *components Jul 21 02:40:42 g00s: what happened to you taking a break from android? get outta 'ere! scat! Jul 21 02:40:50 yeah yeah ! Jul 21 02:40:59 reading a book about data science :) Jul 21 02:41:13 g00s It was some chrome stuff. I delete the entire directory Jul 21 02:42:07 ok, everyone, I think I got it right, after I " cd / " Jul 21 02:42:12 bankai_au i don't want to work on my project any more (for now anyhow) but i have enough people asking about it, wanting features, etc. :( Jul 21 02:42:26 strange that it doesn't allow me to cd /blahblah/blahblah Jul 21 02:42:27 i'll do it for you, just give me your code and tell me what to do Jul 21 02:42:43 napster: you're not doing it properly then Jul 21 02:42:52 just use the iOS version, ok thx bai Jul 21 02:42:55 hmm, Jul 21 02:43:18 thanks everyone Jul 21 02:45:23 Yaaay!! abd runs on Wifi now :) Jul 21 02:46:11 I would to have a button in Android studio that does the same Jul 21 02:51:51 bankai_au interesting http://robnapier.net/i-dont-know-swift Jul 21 02:52:42 one paragraph in and he annoys me too much to read any more Jul 21 02:55:24 Swift is actually good IMHO Jul 21 02:55:49 what about it do you consider 'good'? pushing aside the fact it's not obj-c and anything compared to that is good Jul 21 02:56:41 bankai_au Because of the fact that, it took an Android developer like me took less effort to get into swift compared to obj-c when I tried with it sometimes back :) Jul 21 02:57:37 if you don't like obj-c, you can always use java :) Jul 21 02:58:12 bankai_au Is it possible to write java apps for iOS? Jul 21 02:58:39 sure is **** ENDING LOGGING AT Mon Jul 21 03:00:00 2014