**** BEGIN LOGGING AT Wed Jun 26 02:59:58 2013 Jun 26 03:01:00 "all in package"? Jun 26 03:01:08 1 sec lemme try all in module Jun 26 03:01:32 are you sure that that configuration is "Android Application" in the left sidebar and not "Android Tests" ? Jun 26 03:02:16 no Jun 26 03:02:23 I see what your saying Jun 26 03:03:32 tyvm Jun 26 03:03:36 now it runs Jun 26 03:03:41 but crashs..... Jun 26 03:03:49 but still lol tyvm Jun 26 03:03:49 sure, no problem - good luck! Jun 26 03:04:23 oh since they wont answear me, do you know if I need to configure the android manifest file manuely when using libgdx? Jun 26 03:04:48 i've never used libgdx (this is actually the first i've heard of it) Jun 26 03:05:23 ty lol Jun 26 03:12:39 Anybody else in here got bad eyes and using Android Studio? Jun 26 03:13:24 * Bleeptech is trying to find the editor font settings. Jun 26 03:14:42 use the search in settings Jun 26 03:15:07 or "Preferences" Jun 26 03:18:00 theelfismike: TY.. Actually found Themes and switched to something easier on the eyes. Jun 26 03:18:39 awesome - one of the best intellij features is they have search in almost every screen/dialog Jun 26 03:19:41 theelfismike: Hehehe.. Where do I file a bug report? The templates for project generation have a few typos.. LOL.. Jun 26 03:20:53 http://youtrack.jetbrains.com/issues/IDEA :) Jun 26 03:34:53 Hi, what do you guys like to use to send email from an app ? ( without using Intent) Jun 26 03:36:35 Unknown0BC - you may want to try something like this http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a/2033124#2033124 Jun 26 03:37:19 you'll have to find a way to do it the java way - i don't know of an easy way to do it using the android platform Jun 26 03:41:15 is there anything a developer can do about a bad rating left because the app is not free? Jun 26 03:41:28 "tells me I have to pay I wanted to use the chat command and it tells me I have to pay very annoying as that's all I really want to do" Jun 26 03:41:31 I get json data from a URL and want to save them in a database. Should I return a JSON Array, Iterate and add them to db ? Or while I'm on AsyncTask doIn Jun 26 03:42:05 doInBackground() add each item to db ?MAybe on onPostExecute() ? Jun 26 03:42:07 parco - you can reply to them via the Play console Jun 26 03:42:28 theelfismike: yea, i have, is that all? Jun 26 03:43:14 parco - that's about it. in the past i've fixed the issues raised by bad comments/ratings and replied asking them to try the app again, but that's about all you can really do Jun 26 03:43:31 it sounds like your issue is fundamental to the app though :P Jun 26 03:43:40 Is there a "best practise" or all of those solutions can work ? Jun 26 03:44:09 theelfismike: I don't think so, that's why it upsets me Jun 26 03:44:27 Oh well Jun 26 03:46:28 csst0111 - those all could work, mainly depends on how you want to structure your application - I'm generally a fan of abstracting things away from Activities Jun 26 03:49:01 theelfismike, you mean from the main thread. So I should populate the db while I'm on AsyncTask ? Jun 26 03:50:06 csst0111 - well, you should *always* do intensive operations off the UI thread, but i meant like a separate service/class that manages that data Jun 26 03:50:26 which could load locally if the data is already local or hit the network if it's not there yet Jun 26 03:50:48 but generally, doInBackground should work Jun 26 03:51:10 if you had a separate service that might be the right place to put that data, but that could be overkill depending on your application Jun 26 03:53:30 hmm... yeah I got your point. I could check this too. I think there is no need for service since the data are a few kb Jun 26 04:26:48 hi Jun 26 04:27:43 hey theelfismike, i've been trying to follow instructions how to integrate robolectric for junit testing on android studio but I couldn't get it to work. But then I tried Robotium, and it worked when running as Android Test Case, but not as Junit test. Could you explain to me a bit the advantage of Robolectric vs Robotium? how id Robolectric ran without the need to go through the device/emulator and just running in the jam? that's the Jun 26 04:27:44 part i'm confused… I'm wondering if it's worth to invest in trying to get robolectric working instead of other testing frameworks.. thanks Jun 26 04:29:38 Robotium/Robolectric are trying to solve different problems. I use both in some of my projects - Robolectric is a framework that's based on junit assertions, which allows you to write unit tests for methods that call into the Android framework. Robotium is used for click testing - once your application is started on an emulator or device, Robotium can click buttons and type text, etc to interact with your app and make sure it b Jun 26 04:30:43 if you're just trying to write simple unit tests that don't touch the Android framework at all, just use regular junit style tests (but at least for me, most of my code touches Views or Activities at some point) Jun 26 04:32:14 in the new version of ADT/eclipse the logcat window clears itself right after my app force closes - so i cannot see the stack trace or anything. Jun 26 04:32:19 has anyone else had this problem? Jun 26 04:32:49 it works one time, then clears itself for no reason, then it never works after that. I have to restart eclipse Jun 26 04:32:54 soo, is it correct to say that robotium includes the capabilities of robolectric as well? cause it seems like i can also perform assertions with robotium. Just that the inconvenient part is to have to attach to a device to run these test if I'm only using robotium... Jun 26 04:33:08 and "works one time" means it prints anything at all, then clears itself Jun 26 04:42:25 is R.java an automatically generated file? :) Jun 26 04:43:11 hesperaux: Could you have ticked a setting somewhere by any chance? That doesn't sound like a sane default Jun 26 04:43:44 cheese1756, not a chance... Jun 26 04:44:03 what i did do was add a logical NOT regex to NOT match a specific tag Jun 26 04:44:23 my logcat gets UBER FILLED with bluetoothservice.cpp notifications Jun 26 04:44:35 those are flooding my output, so i tried to remove them Jun 26 04:46:20 omg this is infuriating Jun 26 04:46:23 i need to see the exception Jun 26 04:46:40 there are 2.8 million lines and counting in logcat Jun 26 04:46:47 it keeps clearing itself over and over Jun 26 04:48:26 i've never seen this much logcat before Jun 26 04:48:45 * hesperaux turns off facedetection Jun 26 04:51:53 * hesperaux sets logcat buffer size to uber quadrillions of lines Jun 26 04:55:35 awesome. now it won't detect the phone Jun 26 05:09:33 Hi Guys, it androidnewb here, I need some tips. Jun 26 05:10:08 Always floss and bush your teeth Jun 26 05:10:41 I'm really need some tips on android development. no jokes please. Jun 26 05:11:59 hi Jun 26 05:12:04 I am a newb too but if you haven't already checked it out try this http://developer.android.com/training/index.html Jun 26 05:13:12 AmonX is for? Jun 26 05:13:32 trying to help out androidnewb :D Jun 26 05:13:40 androidnewb hi friend Jun 26 05:13:48 yes reprhase the tutorials... Jun 26 05:14:07 I already seen that. I need tips, see i'm creating an android app with many forms and I want this form to be stored in a database, it kinda big work just using "findviewbyid" and inserting it to database. is there any other way more easy approach than this? Jun 26 05:15:48 Hi guys, I need to have an extract mode (If I'm right:D) input in my webview ... Jun 26 05:16:55 I googled around and even didn't find any way to force a regular TextEdit to be shown in extract mode ( full screen, I mean) Jun 26 05:17:05 is there anyway? Jun 26 05:43:12 is it possible to have an app display differently on a tv than on the android device... ie hide an onscreen game pad on the tv but still have it displayed on the device? Jun 26 05:47:57 Leeds, finally did it, in EDIT-1 of http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 26 05:48:36 Leeds, thanks for the push. Jun 26 05:52:28 AmonX: you mean a tv-connected phone showing two different things? I believe yes but i've never done it Jun 26 05:52:33 theelfismike: thanks for recommending robolectric… one quick question tho, if I start implementing testing with robolectric, i would have to change my current project layout structure to include test sources… was just wondering in general, after implementing and add these test sources codes, will my resulting apk include these test source files? in other words, when I make a new build and in release mode, will the resulting apk inc Jun 26 05:52:33 lude these added libraries and files? thanks for clarifying... Jun 26 05:52:58 yes tv connected phone Jun 26 05:53:08 AmonX: http://developer.android.com/reference/android/app/Presentation.html maybe somewhere to start Jun 26 05:53:32 AmonX: having never used it i don't know tho Jun 26 05:53:57 Thank you so much, sounds exactly what I am need Jun 26 05:57:53 I thought multi window was a 4.1.2 thing not just a samsung thing :) Jun 26 06:19:01 any comments about EDIT-1 of http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 26 06:48:34 hey Jun 26 06:48:42 hi Jun 26 06:49:06 I am looking for some sort of android "shortcut for anything" application, which would allow me to choose custom commands and add shortcuts to home to trigger them Jun 26 06:49:24 for example to kill my chosen application, clear its cache Jun 26 06:49:32 enable/disable mobile data Jun 26 06:49:34 and such Jun 26 06:50:31 you are free to make one. or google for an opensource. i think i dont know of any such type Jun 26 06:50:59 I don't want to make one, I want to use one for my development :D Jun 26 06:51:28 hm. you may post the same question after some time, some one might be familiiar. untill then you may google Jun 26 06:56:13 general question to android, javase, javaee: If some code is used many times in an app, its better to inherit it from one class by all classes, but if the classes already extend some other class, what options are we left with? iinterfaces cant give implementations of methods , so not an option. any others? Jun 26 06:57:26 you could write some C code and use a JNI :P Jun 26 07:00:07 just watch out for those pesky memory leaks Jun 26 07:07:08 when i import a library prokect into my project from intellij, to use it, the only way is to create an instance of its classes in my activity? Jun 26 07:10:46 zhulikas: maybe SL4A. It enables you to put shortcuts to your own scripts to home. Jun 26 07:10:56 hmmm Jun 26 07:11:09 that would require a lot of effort to figure out what exactly I need to launch Jun 26 07:11:28 it would be much better to have a list of all possible public actions in android and then choose which one to use Jun 26 07:11:34 with some possible parameters for example Jun 26 07:11:38 that would be an awesome dev app Jun 26 07:12:41 there's no formal way to define an intent with parameters Jun 26 07:13:04 so you've no idea what extras an activity is expecting Jun 26 08:11:52 good morning :) Jun 26 08:12:00 good morning :D Jun 26 08:12:13 :3 Jun 26 08:12:34 hi. is there away to force the update of the package of all my clients? Jun 26 08:12:40 wassup!! Jun 26 08:13:15 icetooth, cool cool! all is cool brother! Jun 26 08:13:35 i just got my first cross platform build running im so f'n happy right now Jun 26 08:13:36 sound and sweet Jun 26 08:13:49 great Jun 26 08:14:06 icetooth, does your app use C? Jun 26 08:14:12 ah ok! Jun 26 08:14:15 got you. Jun 26 08:14:21 yeah, light c++ but its very Cish Jun 26 08:14:54 aha that's excellent. Jun 26 08:15:23 once i rip out all the STL junk i used to 'just get it running' Jun 26 08:16:10 ah! that's why i could not use Symbolic C++ library for my symbolic algebra and math stuff Jun 26 08:16:17 STL is the reason Jun 26 08:16:48 so does that mean i have to write my own linked list and the like? Jun 26 08:16:58 superlinux-hp: you cannot force a package update Jun 26 08:17:25 at most you could have your app check if a new version is available and prompt the user to install it Jun 26 08:17:35 RyanM, I am getting false alarms in the google play developer console Jun 26 08:17:57 false alarms? Jun 26 08:18:00 yes.. Jun 26 08:18:12 yeah, unless you do something weird like write a wrapper for androids native stl library, that would be silly though Jun 26 08:18:35 sleepy time Jun 26 08:18:55 RyanM, like i have people who still send me Crash reports on older versions Jun 26 08:19:29 and i have made like 6 updates since that version. Jun 26 08:19:29 I'm not super familiar with the developer console - is it possible to filter reports by version? Jun 26 08:19:39 yes you can Jun 26 08:19:50 it's simple, mate! Jun 26 08:20:11 it's just there online. Jun 26 08:20:33 I'm aware of it's existence, I just haven't ever used it :-) Jun 26 08:20:39 *its Jun 26 08:20:50 RyanM, it looks like you are not the one who takes care of the publishing process Jun 26 08:21:01 anyway its ok Jun 26 08:21:06 *it's Jun 26 08:21:26 correct :-) everything I've worked on was either not destined for play store release or published by someone else Jun 26 08:21:49 RyanM, i had the office experience. Jun 26 08:22:14 now i am working alone for myself. and i love it. Jun 26 08:23:07 now i know all about this mobile business Jun 26 08:42:06 http://stackoverflow.com/questions/17315289/code-reuse-in-methods-class-vs-strategy-pattern-and-dependency-injection Jun 26 08:43:42 Quest: i use all of the stuff Jun 26 08:44:09 views and comments appreciated ^ Jun 26 08:44:17 Quest: i have static methods that retrn single values or does convenient stuff like "Strings.isNullOrEmpty" Jun 26 08:44:50 Quest: for database stuff i have interfaces and i use dependency injection (via roboguice) to create implementations Jun 26 08:44:50 monsti, hmm but as i said Some people would say Unit test http://en.wikipedia.org/wiki/Unit_testing wont be possible with this approach, will make trouble in swaping out latter. if you want to test your class and use a mock version of the dependency Jun 26 08:44:50 1.a. Will there be any problems with concurrent calls or multiple classes? specially in JDBC static methods for just an example? Jun 26 08:45:10 monsti, why not use static methods for DB also? Jun 26 08:45:19 Quest: i don#t use static methods for dataaccess Jun 26 08:45:27 why Jun 26 08:45:48 @Inject ICustomerService mCustomerService; Jun 26 08:45:49 ? Jun 26 08:46:10 is there a problem in using static methods for db? Jun 26 08:46:12 and the roboguice framework will create an instance of the interface Jun 26 08:46:14 static methods for db? that's just wrong. Jun 26 08:46:23 you need to dispose of connection Jun 26 08:46:26 why wrong? Jun 26 08:46:27 no but i decided aganist this Jun 26 08:46:37 Quest: i use the same service oriented pattern as in PC programs Jun 26 08:46:41 zhulikas, the method dispposes off it self Jun 26 08:46:43 Quest, you're wasting everyones and your own time Jun 26 08:46:44 i have mCustomerService.loadCustomers(); Jun 26 08:47:04 zhulikas, just discussing....... and hounoring comments Jun 26 08:47:13 zhulikas, why statics in db is wrong? Jun 26 08:47:14 what you are asking is "tell me the perfect solution to solve all world problems and cure cancer" Jun 26 08:47:21 zhulikas: 42 Jun 26 08:47:27 why don't you just code it and see if it works Jun 26 08:47:31 zhulikas, no. iam discussing problems with strategies Jun 26 08:47:32 and then refactor if needed Jun 26 08:47:46 zhulikas, it works both ways. the question is. which way is better Jun 26 08:47:58 zhulikas, why statics in db is wrong? Jun 26 08:48:04 Quest: the service oriented architecture in combination with robojuice will solve the Context problem in android Jun 26 08:48:14 Hello. I'm trying to write a JNI snipet that uses OpenCV and returns an OpenCV type (Mat) that is both in Java OpenCV bindings and c++ bindings. Does anyone have experiance with JNI returning non-basic types? Jun 26 08:48:26 Quest: e.g. a database connection is bundled to the current context - so if it dies the db is closed propery Jun 26 08:48:39 Quest, because then you'd need to do something like this: methods.OpenConnection(); methods.DoSomeShit(); methods.CloseConnection(); instead of using (methods) { methods.DoSomeShit(); } Jun 26 08:48:40 Quest: static stuff is bad e.g. if you have threads Jun 26 08:48:43 monsti, ya but thats only android Jun 26 08:48:58 oh wait Jun 26 08:49:02 we're in java channel now Jun 26 08:49:10 Quest: yeah and any other java code is not scope of this channel Jun 26 08:49:17 zhulikas, the mothod body will contain all open() do() close() Jun 26 08:49:27 Quest, and that's another bad decision you're about to make Jun 26 08:49:35 Quest: that's ok to but in a try/catch/finally Jun 26 08:49:50 Quest, what if you need to call two methods one after another? that would involve connecting to db twice Jun 26 08:49:50 which makes your code ugly ;) Jun 26 08:49:53 zhulikas, the question is in context to java . android uses java. but the question is in general Jun 26 08:50:04 hm Jun 26 08:50:11 Quest: you can't use roboguice in java ;) Jun 26 08:50:15 only in android Jun 26 08:50:25 so i don't care about sharing code Jun 26 08:50:30 zhulikas, that is a method making techneque then. Jun 26 08:50:36 from an pure economic point of view Jun 26 08:50:40 anyway, whatever works, dude :) Jun 26 08:50:40 DON'T try to share code Jun 26 08:50:45 you pay more then you gain Jun 26 08:50:47 don't try to make perfect software Jun 26 08:51:11 a 100.000 LoC android software is BIG software Jun 26 08:51:28 while 100.000 LoC for a PC software is entry level Jun 26 08:51:54 and sqlite vs. jdbc is very different ;) Jun 26 08:52:02 DRY principle is somehow wired in my brains though Jun 26 08:52:05 you might not even be able to share the SQL statements Jun 26 08:52:11 so I always share as much as I can Jun 26 08:52:46 code yeah - but not the communication physical layer and the db physical layer Jun 26 08:53:15 also the UI layer makes no sense Jun 26 08:53:19 so ... how much is left? Jun 26 08:54:37 I mostly have some weird helpers Jun 26 08:55:02 like this Jun 26 08:55:05 public static bool HasAttribute(MemberInfo property) Jun 26 08:55:05 { Jun 26 08:55:05 return property.CustomAttributes.Any(a => a.AttributeType.Equals(typeof(T))); Jun 26 08:55:05 } Jun 26 08:55:10 but that's C# Jun 26 08:56:11 yes that's oK Jun 26 08:56:26 OR POJO OBJECTS Jun 26 08:56:37 sry caps Jun 26 08:56:41 or algorithms / structural patterns Jun 26 08:57:05 like, yesterday I implemented some weird abstraction over an action, which may fail and would retry again based on certain system events Jun 26 08:57:12 (in android) Jun 26 08:57:59 and have 5 different scenarios in place using a pattern Jun 26 08:58:08 you may call it Strategy Mutant pattern Jun 26 09:03:37 getItemViewType(int Position) , i am passing it a value true or false and returning 1 on true and 2 on false , but it shows error , what is position in this method ? Jun 26 09:04:55 Pour2 Jun 26 09:06:43 Hey, does anyone know of a android library or API that enables to play rtsp streams more performant (set some options to reduce latency) [I've tried the normal VideoView which kind of works, but has a huge delay/latency] Jun 26 09:11:12 So, at Asia Mobile Expo today, one of my friend asked a Firefox OS guys: what's the advantage of FireFox OS over other mobile platform. The guy answered: with Android, you can only run 10 apps, but FireFox OS lets you run more apps Jun 26 09:12:53 :') Jun 26 09:13:34 skyred, that's silly :D Jun 26 09:14:39 Whoever runs Mozilla now needs to stop sending those guys to conferences damaging their brand Jun 26 09:15:16 Here is another fun question. I asked Ubuntu Mobile guy: "how can I open a terminal?" he suggested that is not fair use of the software. LOL Jun 26 09:20:41 is there any reason to use services and intents for communication within the same app instead of http://square.github.io/otto/ and background threads? Jun 26 09:25:01 does Firefox OS have more than 10 apps to run? Jun 26 09:25:07 ooo burn... Jun 26 09:33:45 I've inserted successfully into the DB and I can see that the number of rows inserted in total is correct, matches the JSON file that I got my data from Jun 26 09:33:55 but this code only produces the very last element for me, http://pastie.org/8081751 Jun 26 09:33:57 why is that? Jun 26 09:34:13 keeps on printing the last one Jun 26 09:34:49 you need to advnace the cursor Jun 26 09:34:56 with cursor.moveToNext() Jun 26 09:35:00 oh.... Jun 26 09:35:53 Sicp: the usual idiom is to process rows using while (cursor.moveToNext()) Jun 26 09:36:12 hey! right! Jun 26 09:36:20 I had that! this code is the way it is because of debugging Jun 26 09:36:22 how does google handle the copy right stuff? Jun 26 09:36:31 that's what I had before and I still got the very last element only Jun 26 09:36:48 Sicp, http://pastie.org/8081765 Jun 26 09:37:07 how could you protect your app from being reproduced by somebody else? Jun 26 09:37:16 also, the int that get string takes is the colimn index, not the row Jun 26 09:37:27 see getColumnIndex for that Jun 26 09:37:58 shadej: depends what you mean Jun 26 09:38:37 pjdelport: assume you have built a game Jun 26 09:38:45 and someone did it the same way you do Jun 26 09:39:01 is there any way to handle this Jun 26 09:39:04 ? Jun 26 09:42:42 in court Jun 26 09:43:05 can you demonstrate the ip is valid and that you created it Jun 26 09:43:40 StingRay_: is my question not imprtant? Jun 26 09:43:48 can you show that the other party copied that Jun 26 09:43:48 can you show definitive loss due the other party ? Jun 26 09:44:15 if answer to those 3 is yes Jun 26 09:44:27 and there is a figure attached that can be justified Jun 26 09:44:34 then thats what your are owed Jun 26 09:45:25 StingRay_: If someone publishes same app after you Jun 26 09:45:38 this is most probably a copy Jun 26 09:45:43 "same" ? Jun 26 09:45:57 is it unique and identifiable as yours ? Jun 26 09:46:01 StingRay_: an app that gives similar functionallity Jun 26 09:46:10 ugh Jun 26 09:46:20 is that functionality unique, and yours Jun 26 09:46:32 cause if not, there is no point Jun 26 09:47:01 shadej: if they took your code and copied, modified, or built on it, it would be a copyright violation Jun 26 09:47:13 and you could make an infringment claim against them Jun 26 09:47:17 same for your artwork, or other creative work Jun 26 09:47:29 StingRay_: The cheater is a human he can copy the whole thing and add some functionalities and or remove some of your functionalities too Jun 26 09:47:44 your missing the point Jun 26 09:48:01 if android can do a,b,c,d,e as standard and thats available to anyone Jun 26 09:48:03 if they just execute the same idea, though, and do it independently, they're fine: you can't copyright an idea, only an expression of it Jun 26 09:48:10 and you do d e a c b Jun 26 09:48:24 and some else does d e a c b Jun 26 09:48:27 you have no case Jun 26 09:48:35 ok, so cursor.getCount() is coming back as 1, I obviously am expecting something like 79 Jun 26 09:48:51 so getCount() isn't what I'm looking for as far as counting the results that came back goes Jun 26 09:49:55 actually, scrap that, if you in the US you could have a case for anything, Jun 26 09:49:57 :) Jun 26 09:50:22 Sicp: no, it probably is Jun 26 09:50:31 you'll need to find out why only 1 row is getting returned Jun 26 09:50:35 I see Jun 26 09:50:43 either the SELECT is too restrictive, or the data isn't there Jun 26 09:50:45 guessed as much; alright, let me see Jun 26 09:51:04 did you do the writes in a transaction, and if so, did you commit it? Jun 26 09:51:09 Sicp: go though some db tuts Jun 26 09:51:15 they will show you most things Jun 26 09:52:35 it's the way of inserting Jun 26 09:53:16 http://pastie.org/8081804 Jun 26 09:53:24 52,53,54 Jun 26 09:54:02 http://www.vogella.com/articles/AndroidSQLite/article.html Jun 26 09:54:41 StingRay_: I solved my problem from yesterday, by the way Jun 26 09:54:51 what was that ? Jun 26 09:55:03 content providers FTW Jun 26 09:55:16 the binding thing Jun 26 09:55:29 with a ListView subclass that sets a flag around the invocation of onMeasure(), to suppress the spurious adapter bindings Jun 26 09:57:13 I need to file an upstream bug about, this, though Jun 26 09:57:38 I know what he's saying in that tutorial, but the thing is here I guess I am inserting the contentValues as one....thing Jun 26 09:58:01 pjdelport: it's not really a bug Jun 26 09:58:08 and it's talked about Jun 26 09:58:15 openly by google Jun 26 09:58:26 same thing happens on any "scroll" Jun 26 09:58:30 i think Jun 26 09:58:46 it has to call an get content to know the size before it gets to it Jun 26 09:59:01 and it's not like a scanline method either Jun 26 09:59:13 I call it scanline comming from an art bg :) Jun 26 09:59:24 i actually mean linear Jun 26 10:00:10 pjdelport: have you see the 2010 google io listview talk ? Jun 26 10:00:17 they even talk about it there Jun 26 10:00:34 http://www.youtube.com/watch?v=wDBM6wVEO70 Jun 26 10:00:46 it's correct what I'm doing! Jun 26 10:00:52 made me doubt myself, tsk tsk Jun 26 10:02:08 pjdelport: go to 13:00 in that vid Jun 26 10:02:10 onwards Jun 26 10:04:29 StingRay_: I'll check, but i think this is probably a different issue than what they talk about Jun 26 10:04:48 which vid? repeat? I like videos Jun 26 10:04:58 StingRay_ Jun 26 10:05:59 BTW is the romainguy the real one in GoogleIO talks? Jun 26 10:06:01 :O Jun 26 10:06:31 I've been told he always sends a stunt double to I/O and stays home himself Jun 26 10:07:35 arreh someone can fake him na? Jun 26 10:07:37 StingRay_: yeah, i'm familiar with all the caveats the video is pointing out so far Jun 26 10:07:42 that was what i was talking Chainfire Jun 26 10:08:00 Issac joking aside, the romainguy in this channel is the same Romain Guy you see at I/O Jun 26 10:08:08 or at least his computer ;) Jun 26 10:08:10 pjdelport: do you do anything that would alter the listView bounds size to change ? Jun 26 10:08:21 StingRay_: nope Jun 26 10:08:27 romainguy: It's pleasure to meet you sir! A real pleasure :D Jun 26 10:08:31 Wow Chainfire :D Jun 26 10:08:36 cause every pixel would force a re-check i think Jun 26 10:08:58 all the code i have already just relies on SimpleCursorAdapter's getView() implementation of converting the view as necessary, etc. Jun 26 10:09:21 this is only about calls to bindView() Jun 26 10:10:26 did you put a scroll listener on it or something Jun 26 10:10:35 to say not do sh*t if scrolling Jun 26 10:10:44 or faster than x Jun 26 10:19:39 hi Jun 26 10:20:02 I want to ask if it is possible to write an app which sends some audio over a bluetooth headset Jun 26 10:20:20 Is this possible or is all this stuff already lowlevel and not reachable by an app? Jun 26 10:23:05 I dont know, but is that not something the system decides on ? Jun 26 10:23:07 StingRay_: i guess the real problem here is that bindView isn't actually exposed as part of the ListAdapter interface Jun 26 10:23:45 it's purely internal to CursorAdapter, and similar, so there's no way for ListView itself to separate the view initialization and pure binding Jun 26 10:23:57 oh your using cursorAdapter ? Jun 26 10:24:18 StingRay_: well, a subclass of it Jun 26 10:24:21 fk that use a baseAdapter setup how you want Jun 26 10:24:53 I think the only time I use a cursorAdapter now is for the autocompleteTexty thingys Jun 26 10:25:00 not to power listViews Jun 26 10:25:47 and thats only cause I couldn't be arsed learning anymore that day (like filters implemented in my baseAdapter) Jun 26 10:25:47 i use a ResourceCursorAdapter subclass Jun 26 10:26:24 it's sufficient Jun 26 10:29:08 StingRay_: so one cannot send custom audio over a bluetooth headset? Jun 26 10:29:32 why? Jun 26 10:29:45 mechanicalduck: whY not? Jun 26 10:29:45 mechanicalduck_: what I mean is it needs to support the audio streamy stuff, and not just be a voice phone one Jun 26 10:29:48 i think Jun 26 10:30:13 then the system just plays audio over normal … and goes to bt headset Jun 26 10:30:19 API18 will have a lot more bluetooth function Jun 26 10:30:20 s Jun 26 10:30:22 whats it called, ad2p or something ? Jun 26 10:30:27 a2dp Jun 26 10:30:32 adp2 Jun 26 10:30:35 fk knows Jun 26 10:30:38 google IO said so. a2dp Jun 26 10:30:51 haha…1st guess :) Jun 26 10:30:58 oh no….second :( Jun 26 10:31:07 lol :P Jun 26 10:32:21 API18? Jun 26 10:32:32 Do bluetooth headsets always got A2DP, too? Jun 26 10:32:38 mechanicalduck_: no Jun 26 10:32:44 headset is separate thing from a2dp Jun 26 10:33:14 mechanicalduck API level 18 will be released in few months, GoogleIO2013 said Jun 26 10:33:16 headset is for voice comms, a2dp is more towards music and such (but can be combined) Jun 26 10:35:00 ok Jun 26 10:35:00 But it would be possible to send a custom audio file over a bluetooth headset? Jun 26 10:35:00 Which is already connected and happy etc Jun 26 10:35:00 a phone call relayed over the headset would be audio, too Jun 26 10:35:00 and can one also listen on a bluetooth headset? Jun 26 10:35:00 I need to have a composite primary key in a certain table Jun 26 10:35:02 because a bluetooth headset got speaker+microfon. Jun 26 10:35:40 the syntax should be CREATE TABLE something (column1, column2, column3, PRIMARY KEY(column1, column2)) Jun 26 10:35:42 mechanicalduck_: your kinda missing what ppl are telling you, in short, if the headset supports it, yes Jun 26 10:36:26 but when I have some column repeating its value, I still get that its value should be unique (while it shouldn't complain because I'm looking for the combination of those two columns, not for 1 value of them being a primary key in itself Jun 26 10:37:25 Sicp: http://sqlfiddle.com/ Jun 26 10:37:30 play with it :) Jun 26 10:37:32 tis fun Jun 26 10:37:44 applies to SQLite? Jun 26 10:37:50 indeed Jun 26 10:38:00 you can change to most SQL standards Jun 26 10:38:09 helped me tonnes when learning Jun 26 10:38:15 and figuring out sh*t Jun 26 10:38:40 rather than testing in app which takes…..for…………eva Jun 26 10:40:56 anyone using multiproject (library) setup with AS + ant ? Jun 26 10:42:32 anyone using android studio ... i get cannot resolve symbol R - do i need to import something or set up system path or ... ? Jun 26 10:42:42 os linux Jun 26 10:44:18 how on earth do I remove the background from when the keyboard is closed Jun 26 10:44:23 is that the window background? Jun 26 10:49:51 xastey: huh? Jun 26 10:50:13 nvm StingRay_ it was my window background Jun 26 11:03:03 what OSes you guys use? i am on Mint, gnome/cinnamon for a while now and need something more lightweight .... am thinking xfce, you guys know if Android Stuido/Eclipse work the same there? Jun 26 11:03:24 Win7. It's good enough\ Jun 26 11:03:39 I have a mac too.. but i use that just for video editing Jun 26 11:03:39 arch with xfce, seems to work fine Jun 26 11:03:49 meh, i dont need win7 in my laptop, i do have it on dekstop but for other purposes completely Jun 26 11:04:10 thanks alex_PP i'll probably try ubuntu xfce or something Jun 26 11:04:15 arch? fedora is the most stable linux distro (y) Jun 26 11:04:41 I used to use ubuntu but it crashes quite frequently Jun 26 11:05:10 I dont know if fedora have xfce or not. I use gnome Jun 26 11:05:28 i'll go with debian based, am used to apt now :) Jun 26 11:05:47 anyone tried this one ? http://crunchbang.org/ Jun 26 11:07:56 i started with arch years ago Jun 26 11:07:59 and never switched Jun 26 11:08:12 was on a really old toughbook that i wnated to use Jun 26 11:08:18 seems the best fit Jun 26 11:08:54 yea, i hear arch is the most customizable and stuff, but i'm at a point where i don't want to play with my os all day, i'd rather get something done or do something else Jun 26 11:09:01 i like mint for this reason and its familiar Jun 26 11:09:09 but this laptop is getting slow, need something more lightweight Jun 26 11:11:02 "Exception raised during rendering: Color value '@color/text_color' must start with #" Jun 26 11:11:03 #000000 Jun 26 11:11:10 what am i doing wrong Jun 26 11:12:36 '#000000' is this supposed to be xml? Jun 26 11:12:52 yes Jun 26 11:12:57 it's in colors.xml Jun 26 11:13:42 it does render, and it does render correctly, and the apk works, but wth is that warning about Jun 26 11:15:34 mniip: where else are you referring to that? Jun 26 11:16:01 the message is probably from using "@color/text_color" somewhere where resource references aren't supported Jun 26 11:16:40 (so it's trying to interpret that directly as a string) Jun 26 11:16:44 well, i have a TextView with android:textColor="@color/text_color" Jun 26 11:17:27 mniip: anywhere else? Jun 26 11:17:35 no Jun 26 11:17:46 where does the exception say it's coming from? Jun 26 11:18:07 hey guys… can anyone shed some light on what's the best way to junit test for android? Jun 26 11:18:16 so do i need to "import android.R;" or should this be automatic? Jun 26 11:18:47 primski: you don't want that Jun 26 11:18:56 pjdelport, it doesn't Jun 26 11:19:11 primski: that will probably shadow your application's own R class Jun 26 11:19:25 yea, that's what i though ....i didn't have to eclipse and am now trying out Android Studio .... will go back to eclipse i guess Jun 26 11:19:54 you'll want to use "R.foo.bar" for your own resources, and "android.R.foo.bar" for system resources Jun 26 11:20:41 pjdelport, if i replace the color with "#000000", the warning is gone Jun 26 11:20:41 I get R is undefined or something Jun 26 11:20:44 cannot resolve Jun 26 11:21:02 but the auto-complete allowed me to use @color/text_color, so i assumed i can Jun 26 11:23:28 I need help with importing an aosp project and building it, https://android.googlesource.com/platform/packages/apps/Mms/ it complains that some files are missing and old imports Jun 26 11:26:38 primski: that should be your application's R class Jun 26 11:26:48 if it's missing, it hasn't been built Jun 26 11:26:56 is the project set up right? Jun 26 11:27:29 mniip: android:textColor="@color/text_color" should be correct Jun 26 11:27:34 i dont know ... i had it working in eclipse and am now trying out Android Studio and it just doesn't work .... i don't think it generated any files, am trying to figure out why Jun 26 11:27:58 primski: did you create a new project in AS? Jun 26 11:28:02 yes Jun 26 11:28:03 or try to import it? Jun 26 11:28:06 new Jun 26 11:28:26 did you make it an Android project, and not just Java, or such? Jun 26 11:28:49 it should work, if created correctly Jun 26 11:29:01 for some reason shift+numpad doesn't work in eclipse :/ Jun 26 11:29:14 (i'm not too familiar with AS further, so someone else may have to help you with the details of that) Jun 26 11:34:54 bad news guys Jun 26 11:35:03 http://www.fool.com/investing/general/2013/06/25/barnes-noble-finally-gives-up.aspx Jun 26 11:35:07 nook is done. Jun 26 11:35:24 so nook app store which I read was avenue to make money with android Jun 26 11:35:29 probably gonna dry up soon Jun 26 11:35:52 so new project .... it will generate R classes and stuff in gen/ folder right but it won't do so if you have errors in code, right? So how can I fix errors in code if there is no R class, i don't get it Jun 26 11:42:51 primski, it won't generate R if you have errors in XML Jun 26 11:42:54 but not in code Jun 26 11:45:13 it doesn't say there are errors in xml ... there are errors in code though, mostly where i referrence R.drawables or R.layout Jun 26 11:55:07 saw an import "android.location.country;" but I cant find the api for it in developers.android Jun 26 11:57:54 any reason to use activities and not just lots of fragments and only one activity? Jun 26 11:58:13 hmm.. i've a question. I ve a Class which creates an object of class newClass. newClass has a function which uses a AsyncHttpResponseHandler. When i use newClassObj.thisFunction(blabla, new AsyncHttpResonseHandler()) within my Class A then it wont get executed. It may be because the GBC clean the Class A, right? If i writ straight into the newClass new AsyncResponseHandler() {...} then it Jun 26 11:58:13 works like a charme. Jun 26 11:59:51 anyone here versed in what Miracast is, and what's Samsung doing with AllShare Cast? Jun 26 12:00:32 it still seems so low-profile, and not much devices support it yet AFAIK Jun 26 12:05:23 meh, i'm going back to eclipse ... somebody call me when AS is dumb proof Jun 26 12:14:02 now it doenst even work in eclipse anymore Jun 26 12:14:09 few updates too many i guess Jun 26 12:14:17 meh, i'm done with this shit for today Jun 26 12:15:43 Excuse me, is there a doc describing the values seen when the "show touch" debug option is switch on in device settings? Jun 26 12:15:53 What's the red part of the line? Jun 26 12:26:47 is it not possible to create an object with new AsyncHttpResponseHandler() {} as param? Jun 26 12:34:02 I have changed the edittext ids in .xml but in .class i cannot find the R.id.myedittext . its giving me an error Jun 26 12:38:01 What is the key to build alarm application ? Jun 26 12:38:12 Morning alarm Jun 26 12:38:52 hey… anyone using robolectric can tell me whether the setup is IDE independent? say if I set up the paths exactly the same way it is intended to on Android Studio, pushing it to a repo, will I be about to clone it and compile and build in eclipse? Jun 26 12:40:29 and… when robolectric implemented, will the resulting apk build for release include the extra testing dependencies? in other words, is it well isolated in the final build from the testing framework? thanks Jun 26 12:43:00 bluesm: ? Jun 26 12:43:32 StingRay_: I mean this is intrusive app. Jun 26 12:43:43 have a look on the store Jun 26 12:43:48 there are 1000's Jun 26 12:43:50 StingRay_: And I wonder if you could create one like that. Jun 26 12:44:25 StingRay_: Ok. But what is the certainty that you service will not be killed ? Jun 26 12:44:41 none Jun 26 12:44:52 StingRay_: I understand that every one of those 1000's apps create new service that keeps track of time. Jun 26 12:47:28 StingRay_: And consider that. You use one of the alarm app, and the service is killed somehow. And then your user of app don't get up early enough for the trip to USA, and because of that he lost a lot of money, and then without money he can't afford buy his girlfriend present, and then this girlfriend dump him, and then he commit suicide. Jun 26 12:47:43 do you really need a service for your alarm app? Jun 26 12:47:49 isn't that why we have AlarmMAnager Jun 26 12:48:04 And it is all developer's fault! Jun 26 12:48:12 bluesm: then you can make an app to console girlfriends with dead boyfriends Jun 26 12:48:16 sell it for $9.99 Jun 26 12:50:40 mikedg: You are genius. The death of boyfriend is not the tragedy. It is OPPORTUNITY. Jun 26 12:50:55 correct Jun 26 12:51:00 make more apps to kill people Jun 26 12:52:03 but only stupid people Jun 26 12:52:11 keep the intellegent ones Jun 26 12:52:22 hello Jun 26 12:52:32 StingRay_: What do you mean ? Jun 26 12:53:05 was a jk Jun 26 12:53:12 bluesm: still dont get your point though Jun 26 12:53:32 could anyone help me with Equalizer class? Jun 26 12:53:33 all the alarm apps I have used work fine Jun 26 12:54:26 i dont use 3rd party alarm apps because people are idiots Jun 26 12:54:34 devs are idiots Jun 26 12:54:38 they all are Jun 26 12:54:48 ive had good success with stock android never gonna try another one Jun 26 12:54:56 palm screwed up the alarm on the pre when it first came out Jun 26 12:55:02 you don't like to sleep well? Jun 26 12:55:18 sometimes it means you're late, but who cares Jun 26 12:56:38 fk they still not fixed android studio with latest update Jun 26 12:56:40 ugh Jun 26 12:56:54 StingRay_: p Jun 26 12:56:59 this is not bordering on eclipse level problems and frequencey Jun 26 12:57:02 android studio should just be renamed rape studio Jun 26 12:57:11 StingRay_: First of all. How long your service could run ? Jun 26 12:57:13 StingRay_: isn't it still like 0.0.17 or something Jun 26 12:57:21 mikedg: well it was fine at 15 Jun 26 12:57:28 16 suxs Jun 26 12:57:31 How do you make your media player stop/pause when outside of the app? Jun 26 12:57:37 and 17 dont fix the suxs Jun 26 12:57:49 15 was terrible, you still couldnt stop logcat from scrolling Jun 26 12:57:56 to bottom with every new line Jun 26 12:57:59 StingRay_: Second of all, could you wake up phone your app visible (or interrupt other apps that are running at the moment) Jun 26 12:58:04 could anyone help me with equalizer.getNumberOfPresets(); return 0? How to I make set presets on equalizer? Jun 26 12:58:07 StingRay_: Such as dialer app ? Jun 26 12:58:10 mikedg: that is a tiny prob , not like R not generating no more Jun 26 12:58:19 unless you do a full re-build Jun 26 12:58:29 heh Jun 26 12:58:29 then deploy, but then R gone again next time Jun 26 12:58:34 fkin thing! Jun 26 12:59:50 bluesm: are you intentionally attempting to either A ) create malware or B ) fk off the user ? Jun 26 12:59:52 lol Jun 26 12:59:57 cause it sounds like it Jun 26 13:00:12 StingRay_: Not exactly. Jun 26 13:00:20 not far off though ;) Jun 26 13:00:20 StingRay_: Maybe fk off the user. Jun 26 13:01:24 StingRay_: Couse I want to make the timer app, that user would assign timers to task they make. Jun 26 13:01:33 StingRay_: And the app will report how much time left. Jun 26 13:01:49 you mean like the clock android has now ? Jun 26 13:01:55 with timer built in ? Jun 26 13:01:56 :) Jun 26 13:01:59 StingRay_: Motivational app for myself. Yes. I want fk off myself Jun 26 13:02:37 StingRay_: + Tasks , + interrupts at 1/4 2/4 3/4 of time left. Jun 26 13:02:52 you mean like the clock has now ? Jun 26 13:03:37 StingRay_: My clock don't have even stopper. Jun 26 13:03:43 anyone knows about equalizer class? Jun 26 13:03:48 android one does Jun 26 13:03:50 :) Jun 26 13:04:01 and countdown timers Jun 26 13:04:08 and notifications of said timers Jun 26 13:04:18 as do most of the manuf. variants now too Jun 26 13:04:45 although imho not as good as stock android one Jun 26 13:04:53 I am refering getText of an EditText in side the onClick method of a button. it says cannot refer to a non-final variable editTextEmail inside an inner class defined in a different method. I cannot make it final as I have declared it already before the onclick button handler (to set/get its value). I need the latest value of the EditText in the onClick even of button. any ideas? Jun 26 13:05:34 final EditText et = oldEditText; ? Jun 26 13:05:47 hm Jun 26 13:06:16 hm what ? Jun 26 13:06:24 StingRay_: I do not have. And you can assign task to it ? Jun 26 13:06:39 StingRay_: And run several count down timers ? Jun 26 13:06:50 no I have tasks or gtasks for that Jun 26 13:06:55 integrated with google tasks Jun 26 13:06:58 EditText finalEditTextEmail = editTextEmail; Jun 26 13:06:59 ? Jun 26 13:06:59 and yes all of that Jun 26 13:07:13 Quest: try it Jun 26 13:07:18 takes like 2 seconds Jun 26 13:07:21 i am sending email using builtin email client + sending sms on same button click. what is the best way to do it? the "choose email client" prompt goes in background hence not visible. it can be seen after cloing app. Jun 26 13:07:26 StingRay_, no. still the same message. Jun 26 13:07:32 help please Jun 26 13:07:41 Quest: you didnt make it final Jun 26 13:07:43 ught Jun 26 13:08:09 StingRay_, same error if i assign it inside the onclick handler. final EditText finalEditTextEmail = editTextEmail; Jun 26 13:08:16 StingRay_, i did. Jun 26 13:08:16 omg Jun 26 13:08:19 make it final Jun 26 13:08:25 outside Jun 26 13:08:28 and pass in Jun 26 13:08:33 or use in Jun 26 13:08:34 rather Jun 26 13:09:04 StingRay_, write in sigle line. Jun 26 13:09:04 thats the point. I only want to get the latest value of edittext. and the only way is to get that value when the button is clicked. StingRay_ Jun 26 13:09:15 yes Jun 26 13:09:26 good job it's a refenrence to and not a copy Jun 26 13:10:10 StingRay_: Anyway. What they use to make interrupts ? Jun 26 13:10:18 or if your not gonna make any changes why not just make the editText final ? Jun 26 13:10:22 StingRay_, http://pastebin.com/QC34uW3u Jun 26 13:10:33 bluesm: popups or notifications Jun 26 13:11:15 StingRay_, line 34 onwards Jun 26 13:11:20 Quest: now take the word final and put it on line 5 Jun 26 13:11:32 would than not solve your issues ? Jun 26 13:12:01 StingRay_, that i dont want to do. as after line 5 and before line 34, the user might change it. Jun 26 13:12:04 edit it* Jun 26 13:12:13 so ? Jun 26 13:12:21 it's not a value Jun 26 13:12:23 finals are not meant to be changed.. Jun 26 13:12:27 it's an edit text Jun 26 13:12:28 oh? Jun 26 13:12:36 hm. why make an edit text final? Jun 26 13:12:41 if value can change Jun 26 13:13:06 the value of that editText cant change Jun 26 13:13:15 the value inside the editText can Jun 26 13:13:31 whats the value of that editText is? Jun 26 13:13:35 StingRay_: To wake up from locked screen ? Jun 26 13:13:37 getText() Jun 26 13:13:38 i know the inside value thog Jun 26 13:13:47 the inside value is getTExt() Jun 26 13:13:49 the editText object Jun 26 13:13:55 @EditText398242 Jun 26 13:13:59 hm Jun 26 13:13:59 or whatever Jun 26 13:13:59 ok Jun 26 13:14:10 so all should be final? Jun 26 13:14:13 button too? Jun 26 13:14:22 up to you Jun 26 13:14:25 will that make any good impact on code generaly Jun 26 13:14:26 ok Jun 26 13:14:36 I'm not a programmer Jun 26 13:14:39 so fk knows Jun 26 13:14:41 :) Jun 26 13:14:54 although I do think I should read more about java Jun 26 13:15:49 StingRay_, i think we are good to go. http://pastebin.com/5pRAZHhw Jun 26 13:16:26 StingRay_, final String s; means once its assinged a value. you cant change it Jun 26 13:16:33 I know Jun 26 13:17:13 means you cant re-use that Jun 26 13:17:24 or re-assign Jun 26 13:19:11 Quest: but as I understand the contents are fine to fk with Jun 26 13:19:40 so final String test = "CRAP"; test = test.toLowerCase(); <--- that will fail Jun 26 13:19:45 re-assignment Jun 26 13:20:08 but test.replace("A","zzz"); will work Jun 26 13:21:19 hm Jun 26 13:21:25 stop saying hm Jun 26 13:21:38 dont need to know when your thinking :) Jun 26 13:21:48 EditView.setText(sometext) is reassigning the textvalue of a final EditText Jun 26 13:22:13 isnt it Jun 26 13:22:36 what textvalue ? Jun 26 13:22:48 it;s nothing about text values Jun 26 13:22:59 it's about variables/objects Jun 26 13:23:05 its about seting text in an editText. the text has a value. string value Jun 26 13:23:12 yeah Jun 26 13:23:15 ok Jun 26 13:23:20 let me try Jun 26 13:23:28 try what ? Jun 26 13:23:31 you loosing me Jun 26 13:24:55 losing Jun 26 13:25:09 unless you need to be tightened? Jun 26 13:25:21 lol Jun 26 13:25:30 i do Jun 26 13:25:56 and by the way, knowing correct grammar is knowing the difference between your shit and you're shit Jun 26 13:26:46 what's the difference between typing it if you're really not bothered and making the effort ? Jun 26 13:27:03 if your idea is pass on? Jun 26 13:27:05 :) Jun 26 13:27:14 is speed on the key ? Jun 26 13:27:25 if it can be interpreted ? Jun 26 13:27:51 on/not Jun 26 13:27:54 ugh Jun 26 13:29:23 Quest: there should be warning bells sounding for you btw, if me … who has never read a learning java book in his life… or read any kind of programming book and or been shown concepts …..well, if I think I need to learn more basic java, then your really do ;) Jun 26 13:31:00 :) Jun 26 13:34:12 android studio question - relative layout, layout_below does not appear to display correctly in the preview window but does display ok on a device. Are there any known adjustments that will correct this in the preview? Jun 26 13:34:38 bug Jun 26 13:34:59 k thanks for confirmation Jun 26 13:35:03 can fix it i think by adding a view above said view and deleteing it Jun 26 13:35:08 fking AS Jun 26 13:35:11 :( Jun 26 13:39:38 StingRay_: http://incise.org/android-development-on-the-command-line.html Jun 26 13:39:40 :) Jun 26 13:40:28 aw, but I like my UI/IDE obliviousness Jun 26 13:40:41 but it's slow as hell, isn't it? Jun 26 13:40:45 that would actually require me to either know or start to learn what the fk is going on Jun 26 13:40:46 :) Jun 26 13:41:02 I mean compile/deploy/test cycle is really the slowest one I've ever experienced Jun 26 13:41:17 well not normally Jun 26 13:41:24 it is for last 2 days Jun 26 13:41:25 :) Jun 26 13:41:36 I've tried both Eclipse and AS, and AS is even worse Jun 26 13:42:29 i mean, reading, understanding and using http://incise.org/android-development-on-the-command-line.html would just open my mind to all sorts of possabilities that are IDE'less Jun 26 13:42:35 and thats scary Jun 26 13:43:00 simplicity is always scary Jun 26 13:43:06 right!!! Jun 26 13:43:12 you don't need to be certified for that Jun 26 13:43:14 :p Jun 26 13:43:18 lol Jun 26 13:43:21 take that apple! Jun 26 13:43:32 we don't want your oversimplifiedness! Jun 26 13:44:28 let me change that to oversimplification before i go back to idling again Jun 26 13:49:16 more apples http://eclim.org/ Jun 26 13:59:07 the question I always have is, how do you get eclim to look like it does in the screenshots Jun 26 14:06:40 Hi, is there a site where you can get lots of sample programs ( source code ) Jun 26 14:07:16 Unknown0BC: the android SDK has tons of examples Jun 26 14:07:50 you can always search for 'android' on github or something Jun 26 14:08:09 tnzr, does that mean i'm suppose to have it on my computer ? Jun 26 14:08:16 the SDK? Jun 26 14:08:34 you should have that on your computer if you plan on developing android apps Jun 26 14:08:48 http://developer.android.com/sdk/index.html Jun 26 14:09:32 I have been playing around with developing apps using eclipse on linux. Jun 26 14:10:05 cool, you shouldn't have much of an issue getting the SDK installed and the ADT plugin setup in eclipse Jun 26 14:11:55 tnzr, its all installed and working. Jun 26 14:12:16 Does that mean I have loads of example source code on my computer ? Jun 26 14:14:02 any sugestion about "java.lang.IllegalArgumentException: Binary XML file line #12: Duplicate id 0x7f0a001f, tag null, or parent id 0x0 with another fragment for XXX" Jun 26 14:15:48 fix it ? Jun 26 14:17:24 cant really add anything more to the 3 things it's telling you Jun 26 14:17:51 find which one it is and fix it Jun 26 14:22:14 I have a media player start in an activity, when I leave the activity the media continues to play. When the user returns the to the activity where they can start/pause the Media Player, it doesn't stop. It duplicates. Jun 26 14:22:21 What to do? Jun 26 14:23:01 dont re-create it IF it's there and or playing ? Jun 26 14:23:04 :) Jun 26 14:23:35 if (btnMusic.isChecked() && !mPlayer.isPlaying()) mPlayer.start(); Jun 26 14:23:52 i'm having a problem understanding this error message, http://www.fpaste.org/21027/72256622/ Jun 26 14:24:21 here is the code http://www.fpaste.org/21028/22566511/ Jun 26 14:27:38 Hello. I hve the following problem: In ADT I deleted my project and made a new one with the same name and identifier etc but when I run it on my phone it instantly crashes. I guess it is because the name is the same. I uninstalled the app and cleared cache but didnt help. What can I do? Jun 26 14:29:03 Flaiker: find out why it's crashing for a start Jun 26 14:29:15 never mind, I found my problem Jun 26 14:29:17 or if you do know, actually mention it in your question would be good Jun 26 14:30:06 it shouldnt crash. I changed nothing from the standard code thats there when you start a project Jun 26 14:30:17 not what i said Jun 26 14:30:18 or asked Jun 26 14:30:56 ok Jun 26 14:30:59 to answer your question Jun 26 14:31:04 i dont know why its crashing Jun 26 14:31:12 thats why I said find out Jun 26 14:31:23 thats why i am here, to ask how Jun 26 14:31:29 how to find out ? Jun 26 14:31:32 yes Jun 26 14:31:38 look at the trace in logcat Jun 26 14:31:38 how do i find out why its crashing? Jun 26 14:31:48 ok Jun 26 14:31:58 it will be "RED" Jun 26 14:31:59 :) Jun 26 14:32:43 theres a lot of red. It starts with "error loading trace file: no such file or directory" Jun 26 14:32:53 loading = opening Jun 26 14:32:54 * Jun 26 14:33:05 just the stuff relating to your app Jun 26 14:33:21 read what a stack trace is too Jun 26 14:33:35 so you know whats relevant Jun 26 14:34:02 i guess FATAL EXCEPTION: MAIN is a relevant error message Jun 26 14:35:49 then java.lang.RuntimeException java.lang.NullPointerException Jun 26 14:36:08 ok well it's the entire thing Jun 26 14:36:14 but thats your exception Jun 26 14:36:19 nullPointer Jun 26 14:36:31 so have a read about what that is and what a stack trace is Jun 26 14:41:35 I see you are doing the "dont give him food but teach him agriculture"-approach,which I'm totally fine with :) Jun 26 14:41:58 stack trace seems useful but i dont think i have any code to put it in Jun 26 14:42:42 brb Jun 26 14:43:45 Chainfire: ping Jun 26 14:43:48 stupid android studio question - about half (or more) of the time I go to run the code targetting a device, it fails because it hasn't generated (and has lost since the last time) all the R resources. Doing a manual project->rebuild, then run, works fine every time. Anyone seen that? What's f'd up in my project? Jun 26 14:44:11 dragorn: bug Jun 26 14:44:16 since 0.1.6 Jun 26 14:44:23 not fixed in 0.1.7 Jun 26 14:44:26 still waiting Jun 26 14:44:43 StingRay_: ah cool; well at least it's not just me Jun 26 14:44:45 StingRay_: thanks Jun 26 14:45:07 go to preferences > compiler and turn off "use external build" Jun 26 14:45:22 will save you a bit of time rather than manually re-building everytime Jun 26 14:45:33 but still waiting on a fix :( Jun 26 14:46:09 awesome, thanks Jun 26 14:47:40 StingRay_: I moved a project over to AS a while ago and then wasn't working on it for a bit; wasn't sure if it was my bug or AS Jun 26 14:50:35 Hello all. Does any one know if the apache commons libraries function under Android? If I develop using org.commons.NET will I be able to use that code in Android? Jun 26 14:51:40 d.android.com lists all packages Jun 26 14:51:40 Can anyone tell me how to use the roboto-thin normal style font? I am using font family "sans-serif-thin" but its italic by default . Jun 26 14:53:29 lokote_jones, according to quite a few sources the Apache Commons should work Jun 26 14:57:02 Has anyone here ever manage to send and email form an application ? ( without using intent ) Jun 26 14:57:08 Mavrik: Thank you! Jun 26 14:57:10 an* mail Jun 26 14:57:18 an* email Jun 26 14:57:22 damn Jun 26 14:57:25 Unknown0BC: using user account ? Jun 26 14:57:29 :\ Jun 26 14:57:38 or any account ? Jun 26 14:57:49 using a user account. Jun 26 14:57:53 no Jun 26 14:57:58 and that would be bad if you could Jun 26 14:58:00 or other. Jun 26 14:58:01 and wrong Jun 26 14:58:11 an account I control then yes Jun 26 14:58:13 I would like any method of sending an email. Jun 26 14:58:31 apart from using intent. Jun 26 14:58:48 well no, just an smtp lib Jun 26 14:58:54 sending direct Jun 26 14:59:14 but ofc that way you would need the users credential that you luckily can't just grab from the user account on the device Jun 26 14:59:14 well, direct to an account on an smtp server controlled by me Jun 26 15:01:28 Hello. I'm currently building a game engine for Android and I'm curious how to build and maybe push the APK from the source files that the engine creates. Jun 26 15:02:05 Any help will be greatly appreciated. Jun 26 15:03:58 StingRay_: I found the error, thanks for your help. I thought they would all get caught in the error log of the ide but seemingly not. Jun 26 15:04:17 error log relates to ide errors Jun 26 15:04:24 logcat is runtime on device Jun 26 15:06:13 "TextView loginstatus = (TextView) findViewById(R.id.loginstatus);" was causing the crash Jun 26 15:06:31 good catch Jun 26 15:07:11 why would it? Jun 26 15:07:21 Flaiker : WHy would it cause crash Jun 26 15:07:28 i have no idea Jun 26 15:07:29 :D Jun 26 15:07:36 well using it if it were null Jun 26 15:07:38 I found out I can use ant to build. Anoyone curious can find more infor here: http://developer.android.com/tools/building/building-cmdline.html Jun 26 15:07:53 if I set the global background color from styles.xml, I'll recolor the action bar too. How can I prevent this? Thanks Jun 26 15:08:07 if it is that line it's maybe that no view is there to use findViewBy* on Jun 26 15:08:31 as in setContentView(someview); is after you use findViewById Jun 26 15:08:59 either or you now know the problem, and can aim towards a fix :) Jun 26 15:10:49 hello guys Jun 26 15:11:34 how can I set a style to a view in the XML file? i.e. I've got a custom