**** BEGIN LOGGING AT Sun Mar 30 02:59:59 2014 Mar 30 03:22:36 hey Nilium you may like http://dennisforbes.ca/index.php/2014/03/19/go-golang-and-android/ Mar 30 03:22:49 export GOOS=linux \o/ Mar 30 03:26:51 I think Go was supposed to possibly get shared library building support in 1.3 Mar 30 03:27:17 So the whole subprocess thing might not be necessary in the future. Maybe. Mar 30 03:27:25 Might be possible to hand an entire thread over to a Go library and let it use it for scheduling and whatnot. Mar 30 03:28:36 Though I'm not entirely sure how you'd handle communication with a Go library, except for non-Go-specific communications (e.g., sockets) Mar 30 03:29:25 forking a process is dumb Mar 30 03:29:36 shared library support is paramount Mar 30 03:30:42 The other problem is that the Go runtime has its own GC, so it'd be competing with Dalvik's GC and all that Mar 30 03:31:10 Overall, it's just not really practical, I think. Mar 30 03:31:14 that's really fine Mar 30 03:32:10 oh yeah, checked out the HTC One in store earlier... too big Mar 30 03:32:32 brilliant! two GC's ;) Mar 30 03:32:53 Wonder how viable it would be to compile Go to JVM bytecode.. most of it should work except for handling interfaces Mar 30 03:34:14 shmooz what if … each GC collected the other because each thought the other was garbage O.o Mar 30 03:34:27 kinda like galaxies colliding :) Mar 30 03:34:41 the problem solving itself Mar 30 03:35:14 g00s, impossible Mar 30 03:35:25 pfn i was just joking of course Mar 30 03:35:47 pfn does not joke. Ever. Mar 30 03:36:12 Maybe I'll go play Max Payne 3. Mar 30 03:36:12 pfn is a computer Mar 30 03:36:22 sarcasm does not compute Mar 30 03:42:49 anyone remember which file in /data/ actually stores app permissions? Mar 30 03:43:13 I seem to remember it being an sqlite db, but for the life of me I can't recall which one. Mar 30 03:46:26 Just in case anyone else wants to know it was in /data/data/system/ Mar 30 03:50:53 how do you make it so your app pauses when the power button is pressed? Currently, I have it so pressing the back button pauses the game and it resumes fine, but what about when you press the power button? Mar 30 03:51:54 RetroDude: I think you have to listen for a broadcast for that one. Let me look. Mar 30 03:52:40 android.intent.action.SCREEN_OFF Mar 30 03:52:47 android.intent.action.SCREEN_ON Mar 30 03:53:28 android.intent.action.ACTION_POWER_CONNECTED Mar 30 03:53:35 android.intent.action.ACTION_POWER_DISCONNECTED Mar 30 03:53:41 android.intent.action.ACTION_SHUTDOWN Mar 30 03:53:43 ^^ Mar 30 03:53:48 those should do it. Mar 30 03:54:40 Question: I need to find some childviews in a class that extends Fragment. But, I can't use findViewById in a static context. I'm not completely sure why the fragment is static in the first place, but what can I do to do get a certain view, while in a static context? Mar 30 03:55:03 cool, I'll give those a shot. Mar 30 03:55:07 thanks. Mar 30 03:56:00 ThomQ just because your fragment physically resides inside a class as static Fragment XXX ,,, doesn't mean at runtime its residing outside the context of the activity Mar 30 03:56:14 you could go getActivity().findView() Mar 30 03:56:38 but that just sucks anyhow, i keep my fragments completely self contained, and as stateless as possible Mar 30 03:56:54 (anything else leads to madness) Mar 30 03:57:13 Madness? This is ANDROID! Mar 30 03:57:20 indeed ! Mar 30 03:57:29 android developers are basically mad as a whole Mar 30 03:57:35 I'm mad, you're mad, we're all mad Mar 30 03:57:40 makes sparta look like daisy fields Mar 30 03:57:42 I moisturize with peanut butter Mar 30 03:57:56 * shmooz covers eyes Mar 30 03:58:40 I will avoid fragments without ever trying them once heheh , hopefully Mar 30 03:58:50 fragments are totally cool Mar 30 03:59:02 Fragments ARE cool. ;D Mar 30 03:59:03 bah humbug! Mar 30 03:59:40 go tell JakeWharton and Leeds Mar 30 03:59:53 they aren't cool Mar 30 04:00:01 lol Mar 30 04:00:07 Bow Ties are cool. :D Mar 30 04:00:30 FYI, if you erase the db that contains all of the app permissions it assigns all new IDs to everything. :D Mar 30 04:01:02 Which in turn erases all of the data because the appIDs are all different. Mar 30 04:01:16 SOOO.... don't do that. Mar 30 04:02:52 I'm confused, what db? Mar 30 04:05:13 g00s: so how would you handle a fragment who's views need to be filled by a AsyncTask? Make the AsyncTask a innerclass of the Fragment class? Mar 30 04:06:33 thats up to you; its somewhat safer making it a static inner class so you know exactly what it references (whats passed into its ctor) Mar 30 04:07:31 i'm celebrating 5 years of android an no asynctasks Mar 30 04:08:04 AsyncTask yes - Fragments no! Mar 30 04:08:17 no to both Mar 30 04:08:19 oh well, i guess since i use cursorloader its not a complete victory Mar 30 04:08:30 okok. I'll make it an innerclass. I get what your saying about neatness :P Mar 30 04:09:25 and anonymous inner classes? hell no! Mar 30 04:09:28 But, to circle back to the problem at hand. How would I get a reference to a childview within a fragment, if I know the viewgroup? I can't use findViewByID Mar 30 04:10:30 Pass a context and use getActivity? Mar 30 04:11:26 yeah, but he said that that "just Sucked" Mar 30 04:11:42 trying to get some Pro techniques here ;) Mar 30 04:12:52 ThomQ i thought your fragment was trying to reach a view in your activity Mar 30 04:13:39 ahh no, is a child of the viewgroup that gets inflated when adding the fragment Mar 30 04:13:58 whats the mattery with findViewById then Mar 30 04:14:23 * g00s confused Mar 30 04:24:56 jesus christ, i'm such a n00b Mar 30 04:25:16 got it working. What was wrong with it was me being the one trying to use it Mar 30 04:38:59 is there security in google now so that it only responds to your voice ? Mar 30 04:39:45 nope Mar 30 04:40:14 ok google transfer all my money to shmooz! Mar 30 04:40:46 Error: money not found Mar 30 04:41:21 the day will come when hackers can find something horribly malicious that they can probably whisper to it Mar 30 04:41:25 payday on Tuesday... Mar 30 04:42:31 the moto x has to be trained for the always-listening feature, but I'm not sure how much it's for security and how much for functionality Mar 30 04:42:42 trying to setup the SDK in android studio, for anything higher compileSdkVersion "Google Inc.:Google APIs:10" but it says "Plataform not found" Mar 30 04:43:03 I have everything installed in the SDK manager Mar 30 04:43:22 it shouldn't be hard to get it to only respond to a certain voice Mar 30 04:44:01 any ideas? Mar 30 04:44:42 totic: did you run SDK Manager and select versions ? Mar 30 04:44:57 http://cl.ly/image/2g1A050A2n37 Mar 30 04:45:02 join /#c++ Mar 30 04:45:08 shmooz: they are all installed Mar 30 04:46:36 I am trying to use compileSdkVersion "Google Inc.:Google APIs:13" Mar 30 04:46:44 or any other higher than 11 Mar 30 04:48:14 totic, scroll down, you only showed 15 Mar 30 04:48:16 is 13 installed? Mar 30 04:48:42 http://cl.ly/image/1D1G0b1l3a3x Mar 30 04:48:43 also check to see that your sdk directory matches Mar 30 04:48:53 Leeds, for functionality Mar 30 04:49:15 I probably won't be much help unfortunately, I hven't used android studio much :/ Mar 30 04:49:18 Leeds, since the voice recognition is a low power module for the always on functionality Mar 30 04:49:25 bbdude: what do you mean by directory? Mar 30 04:49:47 your SDK directory, I'm sure there's a setting in android studio Mar 30 04:49:52 make sure it matches Mar 30 04:50:05 there were times where I had 2 sdk installs without even realizing it Mar 30 04:50:16 will check Mar 30 04:54:24 bbdude: nope its not that Mar 30 04:54:34 you use eclipse? Mar 30 05:26:47 pfn there ? Mar 30 05:27:01 ? Mar 30 05:28:19 thinking about the design of my service which connects to BT device. i'm thinking, connecting in and of itself does not warrant foreground status; maybe only when there is activity (data coming from the device) which needs to be saved. would you agree? Mar 30 05:29:33 luckily, i initiate the xfer so i can foreground it at that point Mar 30 05:29:56 its not push based (in which case, i would not know when data was coming, so i'd have to keep it foreground) Mar 30 05:30:03 i think i answered my question thinking through it Mar 30 05:30:26 Do you have an activity while this occurs? if so then you don't need to make the service foreground Mar 30 05:30:48 the xfer can take several minutes, activity can be gone Mar 30 05:31:05 Sure, but the connection itself Mar 30 05:31:30 the connection probably doesn't matter, a slight delay in reconnecting - i'm having some issues there, in that reconnecting is requiring 2-3 attempts Mar 30 05:32:38 this didn't happen before, but on my n7, seems like when the channel is read as part of SDP after connect, the stack barfs Mar 30 05:32:52 but only about 50% of the time Mar 30 05:32:55 very strange Mar 30 05:34:06 i think i will have a preference "leave idle connections for x minutes" Mar 30 05:34:41 let the service shut down if its not bound to for that time, and nothing is being xferred Mar 30 05:41:38 pfn btw, i found what you were referring to earlier today http://commonsware.com/blog/2013/07/30/notifications-foreground-services-android-4p3.html Mar 30 05:42:34 i guess the part about this that bother me is; whether the service is foreground or not should be a programming decision; whether the notification is shown should be a decision of the user IMHO Mar 30 05:45:09 foreground services should always be made visible to the user Mar 30 05:45:22 and the decision of the user is to uninstall Mar 30 05:46:28 shouldn't be blocking foreground app notifications Mar 30 05:46:58 it's mostly for garbage spam notifications, like from Facebook, Twitter, pvz2, etc Mar 30 06:15:30 Hello Mar 30 06:15:34 anybody hereeeeeeeee? Mar 30 06:16:48 ya b0t Mar 30 06:16:53 thanks Mar 30 06:17:04 but u a bot Mar 30 06:17:14 can you help me fix a code? Mar 30 06:17:22 im a stupid friki Mar 30 06:17:24 only Mar 30 06:17:33 i need fix a simple code Mar 30 06:17:49 * b0t beeeeeeeeeeeeeeeeeerp Mar 30 06:18:55 helppppp!!!!!!!!!!!!!!!!!! Mar 30 06:19:00 im dead Mar 30 06:19:03 lol Mar 30 08:12:54 bankai_au one other way you may be able to simplify rx testing is .toBlockingObservable() … you can just iterate over the results Mar 30 09:41:22 I have a function called crazy () in archivo1.class. How do to call that function from another class? Mar 30 09:42:10 archivo1.class -> crazy() -> archivo2 Mar 30 09:42:52 b0t, learn java first... Mar 30 09:43:17 I do not feel Mar 30 09:43:18 sorry Mar 30 09:43:38 And english too. Mar 30 09:45:15 https://twitter.com/adrian_utrilla Mar 30 09:45:18 que feo eres Mar 30 09:45:53 b0t, ? I'm not that guy Mar 30 09:47:19 https://twitter.com/YoSoyDeHitler Mar 30 09:47:42 Stop trying Mar 30 09:47:54 este eres Mar 30 09:47:55 http://www.linkedin.com/pub/adrian-utrilla/8/758/35a Mar 30 09:48:08 No Mar 30 09:48:21 Sr. Designer Mar 30 09:48:23 ajjajajajajajajjajaja Mar 30 09:48:41 b0t, no, I'm not a senior designer. Mar 30 09:48:44 What are you, 15? Mar 30 09:48:54 autrilla: but you are in NYC, right? Mar 30 09:49:02 Leeds, no! Mar 30 09:49:10 your IP address appears to be... Mar 30 09:49:16 and you love Hitler? Mar 30 09:49:31 Leeds, I do not love hitler. I use a bouncer, and thus my IP is in NY Mar 30 09:49:51 best conversation I've seen in a while here. Mar 30 09:49:55 and you hate b0t? Mar 30 09:49:58 Chainfire, very deep Mar 30 09:50:01 Leeds, I do now Mar 30 09:50:22 your name is adrian utrilla, he is colombian narcotic Mar 30 09:50:34 A person can be a narcotic? Mar 30 09:50:57 narcotic man Mar 30 09:50:59 sure Mar 30 09:50:59 How do you use the snippets in Android Studio? forexample , i want to generate a for(int i ..) template. I have to write ".fori" then the dot is not erased when the template gets generated Mar 30 09:51:09 Leeds: help me Mar 30 09:51:19 Waiting for the ban Mar 30 09:51:19 b0t: you are way beyond help Mar 30 09:51:55 Siamaster, does the template include the dot? Mar 30 09:52:03 Or do you just have fori? Mar 30 09:52:18 Siamaster, maxValue.fori will generate for (int i = 0; i < maxValue; ++i) {} Mar 30 09:52:38 ohh thanks! Mar 30 09:52:40 Nice to know Mar 30 09:52:55 how do I call a function that is in a different file Mar 30 09:53:10 b0t, consiste en lanzar aros Mar 30 09:53:33 ok, pero callate pronto Mar 30 09:54:07 Why are there no OPs here? seriously. Mar 30 09:54:22 public void CambiarNick(String nuevonick) ---> CambiarNick(); Mar 30 09:54:48 You must be a hacker Mar 30 09:54:59 autrilla: for the stupid like you are humiliated Mar 30 09:55:08 dat grammar Mar 30 09:55:28 autrilla: : Sun Mar 30 11:55:13 Mar 30 09:55:56 See? He is a hacker, he can use CTCP TIME Mar 30 09:56:10 Heh. Mar 30 09:56:25 eres español Mar 30 09:56:29 autrilla if you're waiting for an OP, it could be a week. Might I advise simply ignoring him? Mar 30 09:56:40 Chainfire, sure Mar 30 09:56:52 /ignore b0t Mar 30 09:56:58 Theming Dialogs is surprisingly complicated Mar 30 10:00:08 Ah. It's just impossible. If anyone is interested, use this: https://github.com/danoz73/QustomDialog Mar 30 10:06:19 This channel is not to find friends, go talk to your invisible friend Mar 30 10:06:22 .c Mar 30 10:36:31 That library isn't very good either. It does not handle setView() correctly. Any alternatives? Mar 30 10:41:21 Hello, I'm a bright eyed and bushy tailed budding android developer who is about to be offline while traveling for the next 72 hours, I was wondering if anyone knows of a good offline resource for tutorials using Android Studio (shouldn't matter, but on OS X) Mar 30 10:42:35 http://developer.android.com/training/index.html looks promising, but I can't see a way to download it all Mar 30 10:51:28 Anyone using Android Studio instead of Eclipse yet? Mar 30 10:52:08 i tried to migrate but i decided to go back Mar 30 10:52:56 yuizy I'm very new as a developer, can you tell me why? Mar 30 11:06:39 rook: what's the question? Mar 30 11:08:06 Asking if anyone has experience using Android Studio and if they have encountered issues where they had to return to using Eclipse. Mar 30 11:09:11 Uh, I switched to IntelliJ and I've never had issues. Kind of the same thing. Mar 30 11:11:30 i can't get my action bar search to work Mar 30 11:11:48 i followed the guide on developer.android.com, but it doesn't work Mar 30 11:12:01 i'm trying to initiate a search from my main activity, to another activity Mar 30 11:13:08 Nilium: looking at IntelliJ now Mar 30 11:14:33 Android Studio is IntelliJ. Mar 30 11:14:41 Albeit with Gradle instead of Make as the default build system, I believe. Mar 30 11:15:36 it simply does nothing when i type something in the search box and click the search button Mar 30 11:22:42 rook, AS works perfectly fine if you're not using Gradle Mar 30 11:22:48 gradle can still be buggy and slow tho Mar 30 11:23:52 How can I set an attribute from code? In this case app:typeface Mar 30 11:26:24 ok so i've narrowed it down to searchManager.getSearchableInfo(getComponentName())) returning null Mar 30 11:26:30 anyone know why this would return null? Mar 30 11:28:39 anyone? Mar 30 11:28:52 tstivers: Well, going by the docs: it returns "null if the activity does not exist, or is not searchable" Mar 30 11:29:00 So that's why it'd return null. Mar 30 11:29:38 ok, so i understand why, because the activity i'm calling getComponentName from is indeed not searchable Mar 30 11:29:58 so how do i set it up so that it will search another activity? my manifest is set up correctly i believe, but i think i'm using the wrong method for what i need here Mar 30 11:30:20 i'm guessing getComponentName needs to be replaced with something else Mar 30 11:35:47 this is significantly pissing me off... Mar 30 11:45:46 ok i got searchmanager.getsearchableinfo(getcomponentname()) to return what i hope is the right value Mar 30 11:45:54 now when i click the search button my app crashes >.> Mar 30 11:46:00 i guess that's progress? Mar 30 11:48:39 Hey guys! I'm really stuck at something. I want to generate a documentation for my android project, I tried the javadoc documentation, but that's quite... ugly.. Is there a way to make a documentation using divs and with a design like the google android one? Mar 30 11:49:29 oracle javadoc is pretty much the best you get out of the box Mar 30 11:49:37 everything else you'll have to roll your own Mar 30 11:50:29 Pretty much. Mar 30 11:50:35 damn.. Why does the oracle javadoc use frames instead of divs? Mar 30 11:50:46 Isn't android offering something similar? Mar 30 11:51:48 Doesn't the newer JavaDoc format use something saner than frames? Mar 30 11:52:20 Ok, no, it doesn't. http://square.github.io/okhttp/javadoc/ Mar 30 11:52:25 It's just styled now, still frames. Mar 30 12:04:18 that's just aweful -.- Mar 30 12:04:45 If some google android developer reads this -> please implement a android javadoc.. Mar 30 12:05:05 is there a way to export all of that into a word document? Mar 30 12:06:04 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{...}: java.lang.ClassNotFoundException: Didn't find class "..." Mar 30 12:06:08 the activity does exist Mar 30 12:06:24 anyone know why i'm getting this when i click the submit button for a searchview in an activity bar? Mar 30 12:07:41 http://pastebin.com/0f23SARe my manifest.xml Mar 30 12:10:20 hi, I'm looking for beta testers for a new editing feature in my touchscreen input recorder/replayer (RepetiTouch). Please pm me if you're interested Mar 30 12:11:24 Is an activity named MainActivity always the first activity to show, or can I specify that somewhere? Mar 30 12:11:56 Angelo, you can specify it in the Manifest Mar 30 12:12:07 Ah, found it.. thanks! Mar 30 12:15:40 when i click the submit button on the searchview in my activity's action bar i get the following exception: Mar 30 12:15:43 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{...}: java.lang.ClassNotFoundException: Didn't find class "..." Mar 30 12:15:51 the activity certainly exists Mar 30 12:15:54 http://pastebin.com/0f23SARe my manifest.xml Mar 30 12:16:11 tstivers: did you declare it in the manifest? Mar 30 12:16:25 my manifest is posted above Mar 30 12:16:32 only one node Mar 30 12:16:34 i did declare it, but it's possible i did something wrong Mar 30 12:16:42 did you clean and build? Mar 30 12:16:43 the activity in question is the one i declared Mar 30 12:16:47 yes Mar 30 12:18:06 I have this tiny script with adb.exe tcpip 5555 - adb.exe connect 10.0.0.50 , but how can I do adb connect to host name? Mar 30 12:18:19 I run this script to wirelessly connect my device Mar 30 12:18:56 the IP of my device changes a lot, so its annoying to modify the script all the time Mar 30 12:20:23 i swear android's entire goal is to piss me off... Mar 30 12:20:26 this is ridiculous Mar 30 12:20:37 all this just to set a stupid search bar up in my action bar Mar 30 12:27:14 ok so something is broken with my activity... Mar 30 12:27:15 wtf Mar 30 12:29:04 Any ideas what I can write in cmd to find the IP of my Android device? Mar 30 12:29:06 fixed the activity, still getting the error Mar 30 12:39:22 Hi Mar 30 12:39:28 anybody here? Mar 30 12:43:33 http://pastebin.com/pv0K8r20 Mar 30 12:43:44 i need fix it Mar 30 12:52:38 anybody help me? Mar 30 12:52:40 .j android Mar 30 12:56:48 ((EditText) findViewById(R.id.nombre)).getText().toString(); Mar 30 12:56:53 b0t: what seems to be the issue? Mar 30 12:57:11 http://pastebin.com/pv0K8r20 Mar 30 12:57:17 string nombre not work Mar 30 12:57:45 b0t: your code looks bad and I cannot understand it Mar 30 12:57:51 what is the issue? Mar 30 12:57:57 when changing nick, nick change me giving me "nombre" as nick Mar 30 12:58:09 dude, what's the problem? Mar 30 12:58:17 brb Mar 30 12:58:22 String nombre is my problem Mar 30 12:58:30 how? Mar 30 12:58:38 String nombre is my problem Mar 30 12:58:43 .r nombre Mar 30 12:58:44 nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre nombre Mar 30 12:58:45 ok? Mar 30 12:58:51 that means nothing Mar 30 12:59:04 and you are spamming my client Mar 30 12:59:20 Soo.... am I just not understanding Java correctly, or what? http://4o4.nl/20140330pvrbT.png Mar 30 12:59:35 thepoosh: shut up Mar 30 12:59:40 lammer Mar 30 12:59:44 no thanks Mar 30 12:59:47 Angelo, use .equals() Mar 30 13:00:00 EPG: I thought java had operator== ? Mar 30 13:00:18 Angelo, http://stackoverflow.com/questions/767372/java-string-equals-versus Mar 30 13:00:29 yes, but these things are different Mar 30 13:00:52 Ahhh, I see. Mar 30 13:00:57 Angelo just burn this into your mind as fast as possible :) Mar 30 13:01:00 Huh. Always thought Java didn't do that. Mar 30 13:01:02 i still forget from time to timee Mar 30 13:01:11 causes headaches Mar 30 13:01:15 I'm used to C#, and I thought Java did the same thing :P Mar 30 13:01:23 Angelo me too :) Mar 30 13:01:27 Interesting, anyway. Thanks. Mar 30 13:02:02 I think a warning by the IDE would be appropriate in such cases Mar 30 13:02:23 Angelo it works out nice that java provides a equalsIgnoreCase() so you save a little over c# that way Mar 30 13:02:48 Well.. :P Mar 30 13:02:55 In a way. Mar 30 13:02:59 just barely Mar 30 13:03:07 slightly more convenient is all im saying :) Mar 30 13:03:28 Turns out Android Studio actually /does/ report it as a warning. Hehe Mar 30 13:03:35 Angelo, isn't the a note when you hover/click on the ==? Mar 30 13:03:41 Yeah it does. Missed it. Mar 30 13:03:52 ok :) Mar 30 13:06:35 EPG: sabton: Interestingly, when using mUsername.equals("test") it still doesn't pass. Mar 30 13:07:21 Angelo, just to make sure: you also use .equals() for the password, right? Mar 30 13:07:26 Yes. Mar 30 13:10:10 help me Angelo Mar 30 13:10:12 .c Mar 30 13:10:42 as I can create a string to call it from all files? Mar 30 13:10:50 strings.xml Mar 30 13:11:41 ((EditText) findViewById(R.id.nombre)).getText().toString(); Mar 30 13:11:49 String "nombre" Mar 30 13:12:16 I want to call from a different file Mar 30 13:12:45 b0t: did you find a solution to your vague issue? Mar 30 13:13:00 no Mar 30 13:13:18 take the soution Mar 30 13:13:21 solution Mar 30 13:13:28 take me Mar 30 13:14:05 I dind't understand what's the issue Mar 30 13:14:13 is it a NullPointerException? Mar 30 13:14:50 no, not work Mar 30 13:15:09 nombre is the new nick Mar 30 13:15:13 /NICK NOMBRE Mar 30 13:15:17 ((EditText) findViewById(R.id.nombre)).getText().toString(); Mar 30 13:15:32 and the issue is... Mar 30 13:15:38 you want the id to come from a string instead? Mar 30 13:15:50 public void CambiarNick() Mar 30 13:15:50 { Mar 30 13:15:50 sendRawLine("NICK " + nombre +""); Mar 30 13:15:50 } Mar 30 13:15:56 hey guys Mar 30 13:16:25 Angelo, did you try to clean the project? Mar 30 13:16:43 I need to get the EditText value from another file Mar 30 13:16:49 EPG: Oh boy, that's an issue with Java, too? Mar 30 13:17:11 Angelo, no, but could sometimes be helpful Mar 30 13:18:07 EPG: That seemed to have been the problem. Mar 30 13:18:09 Grrr.... Mar 30 13:18:16 :D Mar 30 13:18:34 I wish this would all be C#, would make everything so much easier. lol Mar 30 13:19:17 .c Mar 30 13:19:34 I see that you do not know anything Mar 30 13:21:52 b0t, do you want to get the value from another class? Mar 30 13:22:14 yes Mar 30 13:22:29 work with three files Mar 30 13:22:34 1, 2 ,3 Mar 30 13:22:48 in 1 -> edit text -> string nombre Mar 30 13:23:00 i need call string nombre to 2º Mar 30 13:23:10 an execute the function on 3 Mar 30 13:23:34 if you have an instance of 2 you can add a method there to pass the value from 1 to 2 Mar 30 13:24:03 tell me how Mar 30 13:24:55 what did you not understand? Mar 30 13:25:43 public void CambiarNick() Mar 30 13:25:43 { Mar 30 13:25:43 Mar 30 13:25:43 sendRawLine("NICK " + nombre +""); Mar 30 13:25:43 } Mar 30 13:25:59 nombre cannot be resolved to a variable Mar 30 13:26:24 "NICK " + instanceOfClass1.getValueOfNombre() Mar 30 13:26:35 b0t, in which class is this method, where do you call it? Mar 30 13:27:22 NickActivity = edittext-> nombre Mar 30 13:27:32 i need call to IRCCONNECTION Mar 30 13:28:02 The original clas is NickActivity.java Mar 30 13:28:17 do you have an instance of IRCCONNECTION in NickActivity? Mar 30 13:28:34 public class NickActivity Mar 30 13:28:56 no Mar 30 13:29:21 do you have an instance of NickActivity in IRCCONNECTION? Mar 30 13:29:37 noooo Mar 30 13:29:55 what is the super class of IRCCONNECTION? Mar 30 13:30:00 i have NO Mar 30 13:30:26 public class IRCConnection extends PircBot Mar 30 13:30:59 no super class Mar 30 13:31:47 https://github.com/pocmo/Yaaic/blob/master/application/src/org/yaaic/irc/IRCConnection.java Mar 30 13:31:57 b0t, PircBot is the superclass of IRCConnection Mar 30 13:32:10 I can only send raw commands within that file. Mar 30 13:32:49 b0t, do you know what an "instance" of a class is? Mar 30 13:32:59 if I could send raw commands from the problem would be solved nickactivity Mar 30 13:33:56 no Mar 30 13:34:51 then how do you know that you don't have an instance of some class in one of your classes? Mar 30 13:36:11 I do not see any instance in it Mar 30 13:38:09 b0t: You don't know what an instance is, but you're sure you don't see any instance? How does that work? Mar 30 13:38:12 only ircconnection PircBot can call and send raw commands, that class is superior to other Mar 30 13:38:44 I do not read instance Mar 30 13:39:01 b0t, if you post the complete involved classes I'd have another look at it but format them beforehand Mar 30 13:39:10 if you know how to teach Mar 30 13:39:25 most IDEs today provide a function to automatically format code Mar 30 13:39:36 ok Mar 30 13:39:44 search the Internet if you don't know how it's done in your IDE Mar 30 13:40:00 this is irccconection Mar 30 13:40:01 https://github.com/pocmo/Yaaic/blob/master/application/src/org/yaaic/irc/IRCConnection.java Mar 30 13:40:04 EPG: I just want to compliment you on your patience Mar 30 13:40:06 :P Mar 30 13:40:32 Angelo, thanks :) (at least one) Mar 30 13:40:54 this is my class Mar 30 13:40:55 http://pastebin.com/BeMWL0LQ Mar 30 13:42:14 I want to take only string "nombre" to irccconection, that is so hard? Mar 30 13:43:12 sendraw nick = nombre. Mar 30 13:43:15 its simple Mar 30 13:43:47 b0t, where is CambiarNick declared? Mar 30 13:44:27 I've added that in my irccconection Mar 30 13:44:46 public void CambiarNick() Mar 30 13:44:46 { Mar 30 13:44:46 Mar 30 13:44:46 sendRawLine("NICK " + nombre +""); Mar 30 13:44:46 } Mar 30 13:45:06 ok, you need an instance of IRCConnection Mar 30 13:45:13 name is replaced by the value of edit text Mar 30 13:45:38 a month ago I started with this Mar 30 13:46:03 I am php programmer and web designer, but I play with android Mar 30 13:46:23 from where do you call CambiarNick? Mar 30 13:46:24 and i love irc, so I decided to use Yaaic Mar 30 13:48:20 hi. what emulators are there other than genymotion and the SDK's? Mar 30 13:48:41 b0t, did you anywhere created an instance of IRCConnection (via IRCConnection mIRCConnection = new IRCConnection(...))? Mar 30 13:48:50 call of conversationactivity Mar 30 13:48:51 epg: Mar 30 13:49:04 ..and also supports Intel and comes with the playstore Mar 30 13:49:20 public class ConversationActivity..... Mar 30 13:49:30 private static final int REQUEST_CODE_NICK= 5; Mar 30 13:49:37 don't paste code her Mar 30 13:49:40 *here Mar 30 13:49:46 case R.id.nick: Mar 30 13:49:46 startActivityForResult(new Intent(this, NickActivity.class), REQUEST_CODE_NICK); Mar 30 13:49:46 break; Mar 30 13:50:07 case REQUEST_CODE_NICK: Mar 30 13:50:12 cambiarnick() Mar 30 13:50:48 This method works, but when I enter the text, and put ok, my nick changed to "nombre" Mar 30 13:50:53 EPG: I think you would have to explain to him what the terms mean first, and how Object Orientation works. Mar 30 13:50:56 :) Mar 30 13:51:03 I want to use Action Bar Tabs with a ViewPager. All tabs will have the same layout, only the data / text shown on the tabs changes. What's the best way to implement that? Fragments? One activity that changes the textviews based on the given tab-id? Mar 30 13:51:18 Thorbear, well, yes. But I don't. Mar 30 13:52:34 Thorbear: Yaaic have what you want. check code Mar 30 13:52:48 actionbar sherlock and view page indicator Mar 30 13:53:29 b0t: That has absolutely nothing to do with me :) Mar 30 13:53:34 That's where your patience ends, EPG? ^^; Mar 30 13:54:13 EPG: tell me what to do, I'm rotten Mar 30 13:54:36 b0t, learn Java and Android dev from scratch Mar 30 13:54:57 Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja!Ja Mar 30 13:54:58 * Busk nods his head to EPGs response. Mar 30 13:55:03 that is imho the best option for you Mar 30 13:55:13 you could try to go from problem to problem like now Mar 30 13:55:15 What you have done for me over a thousand questions? Mar 30 13:55:44 but it's easier if you 1. know what you are talking about 2. are able to ask the right questions 3. understand the answers Mar 30 13:55:50 this channel is for help and move problems Mar 30 13:56:01 is not an interrogation fbi Mar 30 13:56:15 I can only offer you my help Mar 30 13:56:23 it's your decision to accept or deny it Mar 30 13:56:41 btw set an Activity result in NickActivity Mar 30 13:56:53 you should have told me that before a million questions Mar 30 13:56:59 and use onActivityResult in ConversationActivity Mar 30 13:59:40 ok Mar 30 13:59:40 Intent intent = new Intent(); Mar 30 13:59:41 ((EditText) findViewById(R.id.nombre)).getText().toString(); Mar 30 13:59:41 setResult(RESULT_OK, intent); Mar 30 13:59:41 finish(); Mar 30 13:59:57 so, anyone here who'd like to help me beta test a new feature in my (root) touchscreen recorder/replayer RepetiTouch? Mar 30 14:02:01 how do i prevent an activity/intent from being added to the... stack or whatever it's called Mar 30 14:02:34 tstivers_, might be exclude from history Mar 30 14:03:01 FLAG_ACTIVITY_NO_HISTORY Mar 30 14:03:09 ie: i have an activity that searches, it's set to launchmode singletop, this activity can create itself again, and if it does hitting the back button seemingly does nothing until it's been hit enough times to go back past every time that activity got launched Mar 30 14:09:37 intellij seems a tad picky as to when it syncs any new dependencies added to build.gradle. "Sync" C-m-y doesnt do it. Mar 30 14:10:02 actually that didn't work at all Mar 30 14:10:17 so basically i need only one instance of the activity in the history Mar 30 14:10:25 what i get now is no instance and that's not really what i want Mar 30 14:10:37 Does anyone know anything about Wifilocks? I thought to keep the wifi on, I would only need to 1. Declare the wake lock permission, 2. Acquire a partial wake lock and wifi lock in my code. But when the use puts their phone to sleep, 1 minute later the wifi turns off. Mar 30 14:13:01 Macha sounds like that should be enough Mar 30 14:13:26 what device and Android version are we talking about? I know some older HTC's didn't care much about wakelocks Mar 30 14:13:39 *wifilocks Mar 30 14:14:13 Desire HD running 4.2 with a CM-based ROM and HTC One running 4.3 with the stock sense. Mar 30 14:14:37 well if both of those show that behavior, I guess you're doing something wrong indeed Mar 30 14:14:54 got some code to share? Mar 30 14:15:14 are you sure you aren't catching an exception somewhere that you've missed investigating? Mar 30 14:15:21 Sure, give me a moment. Mar 30 14:16:29 Just googling around and it seems that if I wish to use ActionbarSherlock the I need to download and attached a library. Is it really not possible just to use a maven artifact in the gradle project dependencies? Mar 30 14:16:41 running any power saving apps or stuff like that may also interfere - remember a wifilock does not save from the wifi being explicitly turned off by the user or a sifferent app Mar 30 14:17:08 or a system override. Which should be the only thing that can IMO. but... Mar 30 14:20:58 http://pastebin.com/0Aynze65 - Not running any power saver apps. Sense has a power saver mode but that's not active when this occurs. Trimmed the class down to just those methods that actually affect the wifilock and wakelock. Mar 30 14:21:59 are you sure your service is not being terminated ? Mar 30 14:22:08 I don't see anything wrong with that code at first glance Mar 30 14:23:20 I don't think it is - its permanent notification stays up, and the log line about releasing the wake lock never occurs. Mar 30 14:25:03 well then, I'm sorry to say I have no idea. I've used WakeLocks and WifiLocks extensively and never run into this issue - aside from mistakes on my part, not catching the right exceptions, missing a permission, the owner object going away, etc Mar 30 14:25:23 note that if your service crashes for some reason the log line wouldn't appear ... but then again your notification would disappear Mar 30 14:26:29 http://stackoverflow.com/questions/14608658/android-wifilock-not-working?rq=1 , though Mar 30 14:27:25 I could see that being a problem on some devices and stock firmwares, but I'd be surprised if such an issue is present still in a recent CM-build - providing the reason for this incompatibility is not in the Wi-Fi driver/firmware Mar 30 14:28:19 ok so what i need to do is make the back button act like the up button Mar 30 14:31:25 I am compile 'com.github.castorflex.smoothprogressbar:library:0.4.0' running this but it does not show up even if I restart my ide (android studio) anyone know if I have to be doing anything else... I did not have an issue with the othre dependencies that I added the same way... Mar 30 14:31:46 added it to my dependencies in gradle Mar 30 14:39:02 I'm struggling with getting my migrations to work correctly. Would anyone be able to help me troubleshoot? Mar 30 14:43:50 Basically I'm trying to create a basic survey app a user can take in my android app. Upon completion of the app it should create a "Completion" with the Survey ID, Appuser ID and App ID to record which surveys were taken as part of a certain app and by which appuser. It works for creating the first Completion for a Survey, but when I try to create another Completion for the same survey with... Mar 30 14:43:52 ...a different user or app, it throws a survey_id column not unique error. https://gist.github.com/guitarlover52/1b3d5583e005b3a4e736 Mar 30 14:44:26 thammond: welcome to #android-dev Mar 30 14:44:42 you may have it confused with somewhere else :) Mar 30 14:44:48 haha yep Mar 30 14:44:56 I just realized I wasn't on my rails tab ;) Mar 30 14:45:13 the android piece works great haha Mar 30 14:45:22 yay! Mar 30 14:45:28 my work here is done... Mar 30 14:49:00 thammond: there was some kind of library for survey Mar 30 14:49:30 or maybe I was wrong :) Mar 30 14:49:59 really? I don't think I've seen that Mar 30 15:07:26 My app presents a dialog with a text field. If the user enters a particular string, it shows an error message. Should I disable the OK button or just let it be pressed (and ignore it) when the error condition is present? Mar 30 15:07:38 I'm not experienced with Android, so I'm not sure of the best way. Mar 30 15:10:41 basic UX Mar 30 15:10:49 is not android specific Mar 30 15:12:07 Isn't there an Android pattern for this? Mar 30 15:12:18 On Windows, there is a pattern of disabling the OK button. Mar 30 15:12:45 Android tends to have a way different UX than Windows, however. Mar 30 15:12:55 An example is the lack of "Are you sure?" message boxes. Mar 30 15:13:13 gray it out Mar 30 15:13:21 Do any Google apps disable the button? Mar 30 15:13:57 lack of? They're everywhere Mar 30 15:13:57 Calendar does. Clicking 'Done' dismisses the dialog and shows an error message in a toast. Hmm. Mar 30 15:14:14 I mean "Calendar doesn't disable the OK button". Mar 30 15:15:02 pfn: Name one Google app that shows an "Are you sure?" message. Mar 30 15:17:01 My file manager pops up "Delete 3 files?" confimation after I click the trash can Mar 30 15:18:07 There's a flow chart somewhere about this on Android Design Mar 30 15:18:48 Basically it says if the action is easily undoable, let it through and give an undo option, but if it's not prompt. But it doesn't really apply for actions which you know are invalid before they're taken Mar 30 15:19:25 https://developer.android.com/design/patterns/confirming-acknowledging.html Mar 30 15:20:44 I get the impression that forms in dialogs are frowned upon though. Like they should be in seperate activities Mar 30 15:20:51 Which is what most (all?) the google apps do. Mar 30 15:20:53 Macha: Thanks. Mar 30 15:21:15 Hmm. I have a one-line EditText in my dialog. Mar 30 15:21:25 Making a whole new activity seems like overkill. Mar 30 15:21:36 how do I increase the minApiLevel in Android Studio? Mar 30 15:22:08 Set it in AndroidManifest.xml Mar 30 15:23:28 thanks! Mar 30 15:23:49 Hmm, the only example of a similar form I can think of in the Google apps is the credit card entry message in Google Play. If you enter an invalid one, I think that displays a toast notification and you need to select buy again. Mar 30 15:34:56 TacticalJoke: can you not just reset the view in your current one or use ViewFlipper? No idea. Starting out too. Mar 30 15:45:18 can anyone tell me why my app always throws "java.lang.ClassCastException: de.pixelhub.stundenplan.client.MainActivity@5346d028 must implement OnFragmentInteractionListener" when I try to implement Action Bar Tabs using ViewPager? Mar 30 16:06:19 i fucking hate android's state system Mar 30 16:06:28 changed your orientation? let me just wipe the screen for you Mar 30 16:06:30 brilliant Mar 30 16:13:44 tstivers: you can simply avoid that issue Mar 30 16:14:00 gdrc: by quitting IRC Mar 30 16:16:09 Leeds: ? Mar 30 16:16:20 gdrc: he quit almost exactly when you answered him :) Mar 30 16:16:32 lol Mar 30 16:16:44 did not notice that Mar 30 16:22:53 hi all is it posibel to move the settings (3Suares) to a other place in the action bar Mar 30 16:23:33 I recommend against it, it's where 99,99% of all apps have it. Mar 30 16:23:58 It's where the framework puts it. Mar 30 16:24:29 agree but on some Cattapillar mobiles it is simply out of frame Mar 30 16:25:01 i checkt today my app on 5 different mashines on cattapillar and 3 are ok but 2 not Mar 30 16:25:34 hello everyone Mar 30 16:25:36 cattapillar? Mar 30 16:25:37 catapillar B10 mobiles are good but the B15 is not Mar 30 16:25:53 Anyone here that can help me? It seems I have a quite stubborn bug I can't figure out. Mar 30 16:26:04 Caterpillar... Mar 30 16:26:18 kakazza: or is it the density that effects the liniar layout Mar 30 16:26:23 how to get MapListener & DelayedMapListener work together? I'm using OSMDroid maps Mar 30 16:26:42 Do you do funky stuff with your actionbar? Because I didn't have any problems, even on ldpi devices. Mar 30 16:26:54 Can you provide a screenshot of what exactly the problem is? Mar 30 16:27:13 no sorry i got no mashine here Mar 30 16:27:30 on my test tablet it works perfect Mar 30 16:28:35 maybe there is different channel with questions about osmdroid? Mar 30 16:31:02 kakazza: maybe itas the screen itsef is there a way i can move screen around (example up if the 3 lines most down doe not show up Mar 30 16:31:49 all the screens got 800x480px Mar 30 16:31:53 Without seeing screenshots or examples I really cannot tell. Mar 30 16:32:04 but the display is a 7" or a 4" Mar 30 16:32:38 Even then, there seems to be something wrong with your layout if you experience problems. Or the CAT phones do something very weird. Mar 30 16:32:42 Hey guys, I was considering to use the APK Expansion Files. I have different expansion files for 1080p screens, 720p screens, and 480p screens.. is it possible to specify expansion files for each screen resolution? Mar 30 16:38:08 I'm implementing the ActionBar.TabListener. When I compile, Android Studio tells me that I have to override the method onTabReselected in TabListener. That's what I do. At the same time the overrides for onTabReselected, onTabSelected and onTabUnselected tell me that they don't override or implement a method from a supertype. It's like they don't know each other. The code: http://pastebin.com/muM8Wg9B I would be really grateful if Mar 30 16:40:40 You're implementing the wrong FragementTransaction Mar 30 16:41:10 if you use android.support, you can't use FT from android.app, you need the one from androus.support Mar 30 16:41:13 android Mar 30 16:41:24 kakazza: Scoll view is the goal as a main layout Mar 30 16:41:41 The error message should be clear on that (showing which package it has, vs. the one you use) Mar 30 16:41:42 oh my god... I've been looking through this code for 40 minutes straight. Thank you soooooo much loke !!! Mar 30 16:42:03 No problem Mar 30 16:42:17 Sadly, the error isn't clear. Maybe I should use Eclipse again instead of Android Studio... Mar 30 16:42:33 Busk: The error should be clear when you hover the mouse over the error Mar 30 16:42:48 And why don't you use the full IntelliJ IDEA instead of Androuid tudio? Mar 30 16:43:02 (both are so much better than Eclipse it's not even funny though) Mar 30 16:43:21 ... because that's the first time I hear of a "full IntelliJ IDE"... I'm pretty new to android development Mar 30 16:43:59 www.jetbrains.com Mar 30 16:44:08 Thanks, I'll look into th at Mar 30 16:44:09 Busk: Android studio is bascially a cut-down version of that Mar 30 16:44:10 *that Mar 30 16:44:27 (then again, if all you do is Android development, it won't matter much) Mar 30 16:44:49 Nope. Nothing more. Everything else I develop is done in C# Mar 30 16:44:57 But thanks for the clarification Mar 30 16:46:09 mfw the monkey crashes my app and i have no idea why Mar 30 16:46:32 and i cry ever tim ;'( Mar 30 16:53:55 Im trying to use download manager to download multiple files, but its only downloading the first request. Heres my code: http://pastebin.com/ZmHXiQqS does anyone know what the problem is? Mar 30 17:12:21 wow is it possible to increase the logcat buffer size Mar 30 17:12:44 stuff was flying by so fast in logcat my stack trace got erased Mar 30 17:17:26 bbdude, increase in eclipse settings or whatever you're using Mar 30 17:17:37 Im trying to use download manager to download multiple files, but its only downloading the first request. Heres my code: http://pastebin.com/ZmHXiQqS does anyone know what the problem is? Mar 30 17:17:37 or just run from commandline Mar 30 17:18:01 don't care to look at repeated questions... Mar 30 17:18:20 Im trying to use download manager to download multiple files, but its only downloading the first request. Heres my code: http://pastebin.com/ZmHXiQqS does anyone know what the problem is? Mar 30 17:18:39 never gonna look at it now Mar 30 17:18:51 Im trying to use download manager to download multiple files, but its only downloading the first request. Heres my code: http://pastebin.com/ZmHXiQqS does anyone know what the problem is? Mar 30 17:18:55 how bout now? Mar 30 17:19:24 * pfn permanently adds to ignore list Mar 30 17:19:32 Please don't spam Mar 30 17:19:56 Can someone help me Mar 30 17:20:18 You've asked your question, now wait a reasonable amount of time before asking again Mar 30 17:22:23 hi, does any one know about free pdf reader which I can use in my own application? Mar 30 17:22:54 You can use googles pdf viewer Mar 30 17:22:58 inside of a webview Mar 30 17:23:20 Does anyone know what REQSECSTART is? I think might have something to do with connecting to a cell tower? Mar 30 17:24:04 I'm getting a 5 second loop of errors, that occasionally works. WHen it works logcat says REQSECSTART CMD DONE Mar 30 17:26:47 hm i would like to allow reading of pdf files even when the user is not connected to the internet Mar 30 17:27:35 in that case you could use a library such as this one: https://github.com/jblough/Android-Pdf-Viewer-Library Mar 30 17:30:19 Java is so annoying. Mar 30 17:30:37 "List list = new ArrayList<>();" is okay. Mar 30 17:30:49 But "List list = foo ? new ArrayList<>() : null;" is not. Mar 30 17:31:00 You need to specify 'String' in the second. Mar 30 17:33:43 Chainfire, http://gyazo.com/edb3d6c7dea50999514ab931d79fcd52 this guy is hilarious Mar 30 17:38:21 hi to all! Mar 30 17:38:31 i'm new on android dev. should i use eclipse or android studio for coding ? Mar 30 17:38:42 Google recommends Eclipse. Mar 30 17:38:55 I don't use Android Studio because JVM unit tests are a pain to set up. Mar 30 17:45:00 Ok, how about the Emergency Bootloader? ANyone know where I can get info on that? Mar 30 17:46:32 What do you think about this to remove "farms" from the nav drawer? http://i.gyazo.com/b975b3b7554ffc85143eaec7a7488741.gif Mar 30 17:49:43 TacticalJoke, ok. i'm new to android dev, but not for java dev. can i use gradle when work with android project on eclipse ? i want very clean build process. for example, i want in my repo only source code. and when i run gradle to build app, on exit want ready apk file Mar 30 17:50:29 hello guys Mar 30 17:51:03 webus: if you want gradle why not use Android Studio? Mar 30 17:51:07 I believe you cannot use Gradle when using Eclipse for Android development. Mar 30 17:51:20 samuel: Is Android Studio even ready for serious development? Mar 30 17:51:21 its built in already Mar 30 17:51:24 yes Mar 30 17:51:26 True though. Mar 30 17:51:26 very much so Mar 30 17:51:34 samuel: How do you set up JVM unit tests in Android Studio? Mar 30 17:52:10 http://blog.futurice.com/android_unit_testing_in_ides_and_ci_environments Mar 30 17:52:22 built in :) Mar 30 17:53:06 those look like instrumentation tests, not JVM tests Mar 30 17:53:17 It's not built in. Mar 30 17:53:27 i.e. tests that run on the device/an emulator, as opposed to actually running them locally? Mar 30 17:53:42 samuel, can i build android project without eclipse or android studio with only gradle and android sdk ? for java project i can, but i'm not sure about android projects Mar 30 17:53:49 That Gradle script to get JVM tests running is complex-looking. Mar 30 17:54:49 webus: you can, never tried it, but I am pretty sure you can Mar 30 17:55:22 samuel, for newbie on android , android studio will be good choice ?) Mar 30 17:55:43 webus: much better than eclipse, I think so Mar 30 17:55:57 easy setup, great build tools Mar 30 17:56:00 samuel, thank you. go to setup all stuff) Mar 30 17:56:05 wont work for anything else Mar 30 17:56:10 but for android its great Mar 30 17:56:24 i want build my first app. simple client for my rest service Mar 30 18:01:09 webus: Will you do JVM unit testing? Mar 30 18:01:17 Because that seems complex in Android Studio. Mar 30 18:01:38 its not easy Mar 30 18:01:45 but its not that hard Mar 30 18:01:50 TacticalJoke, junit work simple on all environments Mar 30 18:17:44 I have a gridview with images and text, works great. But I need to be able to pass an ID value in my onclick. Can anyone point me to a way to do this? Mar 30 18:17:47 Should session timeout for Google Analytics be specified on webpage analytics.google.com or in code with 30 ? Mar 30 18:18:18 It's kinda weird. That setting in code means 30 seconds, but on the analytics.google.com site the minimum is 1 minute Mar 30 18:18:44 Question is it posible to set a touch event to a ""fm = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.... Mar 30 18:19:28 IchGuckLive, no. Only Views have touch events Mar 30 18:19:40 bad for me Mar 30 18:20:52 autrilla: is it posible to get a touch event off a liniar layout Mar 30 18:21:22 Yes. linearLayout.setOnClickListener(new OnClickListener... Mar 30 18:21:23 i got a side layout that needs to be scroled up Mar 30 18:22:01 ill try that Mar 30 18:33:29 anyone know if theres an easy way to calculate a listView's scroll distance from the top? Pretty trivial on iOS but Android seems like there isn't anything http://stackoverflow.com/questions/13111847/listview-distance-from-top-of-the-list Mar 30 18:39:24 is anyone here familiar with FragmentManagers? Mar 30 18:39:52 *FragmentPagerAdapter & Fragments themselfes Mar 30 18:41:00 What do you think about this to remove "farms" from the nav drawer? http://i.gyazo.com/b975b3b7554ffc85143eaec7a7488741.gif Mar 30 18:42:09 autrilla, do you ask the public? Mar 30 18:47:22 Busk, the public? Mar 30 18:47:37 you asked "What do you think about this to remove..." Mar 30 18:47:42 Who did you talk to? Everyone? Mar 30 18:47:46 Busk, yes, everyone :) Mar 30 18:47:50 Ah, okay. Mar 30 18:48:10 So, my oppinion: No user will think of that way to delete an entry Mar 30 18:48:57 Busk, I was planning on showing a tutorial after you create the "farm" Mar 30 18:49:09 In that case it should be fine, though a little bit weird ;) Mar 30 18:49:24 Busk, how would you do it then? It won't be a common action Mar 30 18:50:18 It's a difficult question because of the selection point you use in the list. Those are common for static entries, not dynamic ones. I think your way should work if you point out to your users how they can use it. Mar 30 18:51:34 is anyone here who can help me with an interfaceproblem on my fragment? Mar 30 18:56:46 What's the best way to use gradle and proguard in such a way that the Android SDK doesn't have to be hardcoded in proguard.cfg? Mar 30 18:56:50 How am I suposed to use this library? https://github.com/amlcurran/ShowcaseView I mean, plug it into IDEA Mar 30 18:56:54 I'm looking for a pointer/tutorial on how to set up test cases using the android gradle plugin in the androidTest directory. Specifically sourceSet etc. The plugin docs gloss over actually using it. Mar 30 18:58:14 I currently use "-librarjars /.../android.jar" and then "gradle assembleRelease -Dandroid.sdk=...", that works, but it's not very elegant and will break build scripts that expect to just do "gradle build" or somesuch. Mar 30 18:58:21 libraryjars* Mar 30 18:59:13 then use compile(project(":root:libs:libname")) or include from a filetree. Mar 30 18:59:21 in the build.gradle. Mar 30 19:02:48 re testing does androidTesting have its own build.gradle? Mar 30 19:03:24 hi mr meeseeks here im mr meeseeks bbdude seeks to become a successful startup Mar 30 19:03:33 mr meeseeks needs tips i'm mr meeseeks Mar 30 19:03:44 go away. Mar 30 19:06:32 rgr you kinda hurt my feelings man Mar 30 19:07:53 here's a legit question: is there a monkey-like tool intelligent enough to actually click on clickable things, like buttons and such Mar 30 19:08:17 bbdude, maybe you can do it Mar 30 19:08:21 Oh, wait.. Mar 30 19:08:44 is it because i'm not intelligent, is that the joke Mar 30 19:09:04 i'm referring to the adb tool Mar 30 19:09:22 that sends events Mar 30 19:28:38 Can someone tell me the correct instantiation of the getLayoutinflator()? Mar 30 19:29:28 Can I just call it or do I have to create an object and then call it from the LayoutInflatore object? Mar 30 19:29:53 What? Mar 30 19:30:01 You want an instance of the LayoutInflater, right? Mar 30 19:30:35 Just use getLayoutInflater or LayoutInflater.from(context), depending on where you ware. Mar 30 19:30:54 What are you trying to do, exactly? Mar 30 19:31:06 instantiate a function, apparantly Mar 30 19:33:44 I'm trying to add a view to a listview. Mar 30 19:34:08 Cache the LayoutInflater in a member variable, use it in getView() Mar 30 19:34:36 keep in mind that views are inflated on-demand and aren't necessarially persistent Mar 30 19:34:48 er, in listview rows I mean Mar 30 19:35:47 Might anyone know why I can change the yOffset on an imageView when my listView scrolls to get a parallax effect. Yet I can't change the height? backgroundImageView.getLayoutParams().height = newHeight; has no effect Mar 30 19:41:12 Okay so I should create a LayoutInflator object and then use it to the the inflate method? Mar 30 19:41:47 *use it to call the inflate method Mar 30 19:45:00 Mentos, use setLayoutParams Mar 30 19:46:03 RelativeLayout itemLayout = getLayoutInflater().inflate(myXmlItem.XML,null); Mar 30 19:46:33 bbdude: k ill try and see Mar 30 19:46:38 Mentos, like this Mar 30 19:46:38 thanks Mar 30 19:46:39 LayoutParams params = img.getLayoutParams(); Mar 30 19:46:39 Mar 30 19:46:39 params.height += 10; Mar 30 19:46:39 Mar 30 19:46:41 img.setLayoutParams(params); Mar 30 19:46:44 that's a tiny example Mar 30 19:46:50 .inflate(R.layout.my_layout, null) Mar 30 19:49:58 Overtime I try to call getLayoutInflator(), I get error: method not found. Mar 30 19:51:02 getLayoutInflater() Mar 30 19:51:29 the spelling Mar 30 19:52:04 Thats what I meant. Damn autocorrect. Mar 30 19:53:07 make sure you're calling it in the proper context Mar 30 19:53:57 bbdude: http://pastebin.com/C3NHPXDi Mar 30 19:54:27 no luck, i see the imageview changes its yOrigin when i scroll, yet its not growing to the new height Mar 30 19:54:52 your scaletype in xml, what is it Mar 30 19:56:15 i set that programmatically: backgroundImageView.setScaleType(ImageView.ScaleType.CENTER_CROP); Mar 30 19:56:48 I assume you want the image to stretch? if you use center it won't stretch with the view size Mar 30 19:57:14 ah, well how could i start it off such that it will overhand the bottom by say 40 Mar 30 19:57:25 so that when i scroll it up it 'uncovers' the excess Mar 30 19:58:22 overhang* Mar 30 19:59:30 Somethings up with my compiler. Mar 30 20:05:35 hello Mar 30 20:05:52 android isn't using X11 for its graphics, right? what is it using? Mar 30 20:08:22 Correct Mar 30 20:09:02 dorei: framebuffer with an extra part managing who is writing to it Mar 30 20:09:51 (plus the accelerated APIs) Mar 30 20:12:54 Mentos, I don't think i'm able to 100% answer your question unfortunately, but I do have a tip Mar 30 20:13:18 in your onscrollchangedlistener, check the scroll x value and use that to resize your imageview Mar 30 20:13:49 assuming you want the image to return to its original size when you scroll in reverse Mar 30 20:14:15 yea well right now i have an image view that sits behind a transparent listview Mar 30 20:14:29 when the user scrolls the list view the image view moves up Mar 30 20:15:01 however moving up exposes white at the bottom Mar 30 20:15:13 so I'm trying to figure out how to move it up and adjust the height on scroll.. Mar 30 20:15:35 but I'm thinking, maybe i should just have the image view be long enough that if it moves up, it will not expose white behind it Mar 30 20:16:10 so I'm trying to set the image view onCreate() to be taller than the page by 40 Mar 30 20:17:13 but it looks like in onCreate i don't know what the height of the imageView is Mar 30 20:17:56 I've done iOS dev for the last 2 years but just started Android 2 weeks ago so I'm still learning Mar 30 20:18:40 Mentos, development on iOS, it is always objective-c? Mar 30 20:18:48 ponga: yea Mar 30 20:19:04 ponga: Objective-C took a little getting used to the syntax but i actually really love it now Mar 30 20:19:16 ponga: working with Strings can be a little verbose Mar 30 20:19:31 ponga: but named parameters are great Mar 30 20:19:56 thanks Mar 30 20:20:00 advice Mar 30 20:20:23 ponga: hm? Mar 30 20:20:40 oh i mean thank that you replied to my question Mar 30 20:21:17 ah, yea if you're interested in getting into iOS development the big nerd ranch book was really great in getting me started Mar 30 20:21:34 Should session timeout for Google Analytics be specified on webpage analytics.google.com or in code with 30 ? Mar 30 20:21:45 It's kinda weird. That setting in code means 30 seconds, but on the analytics.google.com site the minimum is 1 minute Mar 30 20:21:57 ponga: but i started by reading an intro to Objective-C book cover-cover before hand Mar 30 20:39:30 So anyone know how I can get an ImageView to be 40px taller than its container so that if i move the imageView up/down 40px it will not expose white and instead expose the extra image? Mar 30 20:40:06 i've tried putting the imageView in a container layout with android:paddingBottom="-40px" Mar 30 20:40:08 but no luck Mar 30 20:42:23 ah lol android:layout_marginBottom="-40px" worked! Mar 30 20:43:05 boom only took me 3 hours :P Mar 30 20:43:21 When developing for tablet, rather than smaller devices, is there a sdk that's a better fit? I was pointed to Sencha, but everything I've read said go native development. Any suggestions or recommendations for a beginner wanting to develop something for my patients? Mar 30 20:48:35 standard android sdk should suit you well, give this page a read-over: http://developer.android.com/guide/practices/tablets-and-handsets.html Mar 30 20:48:51 but also go through the standard training http://developer.android.com/training/index.html Mar 30 20:49:07 going through this training will likely prevent a lot of headaches Mar 30 20:52:34 bbdude: when you develop for tablets, forgive my ignorance, but do you cross-browser - like you do for html development? Mar 30 20:59:09 I guess a better descriptor would be cross-device, or operating system... Mar 30 20:59:34 crossplatform? Mar 30 21:00:04 it's more cross-version if anything Mar 30 21:00:19 making sure your target android version supports everything you need etc Mar 30 21:00:31 also accommodating different screen sizes with your layout Mar 30 21:01:24 if you are developing an app for use only by your business then you could target rather specifically, which would be nice Mar 30 21:03:08 the standard android training isnt bad. One thing thats awful though is android plugin and gradle docs. Totally crap. Trying to set up testing here and its a lucky dip in google. Mar 30 21:04:00 I work in medical and as a portal developer, so much of my time is spent having to trying and write CSS hacks to make PeopleSoft work on different browsers Mar 30 21:06:22 My desire in developing an app is to help my patients, I worry about those who forget to take their pills and don't have family to remind them. I can buy them a tablet, just wondering if I can make them an app to help remind them to take their medicine as some forget routinely. Mar 30 21:08:44 rook there are already a ton of apps that do that Mar 30 21:09:49 Yes, but they are all for phones, and about the only phone a 90-year-old can manage is a Jitterbug. Mar 30 21:13:55 Especially someone who has retinal neuropathy, or Parkinsons, they need a very large font, or a method where you can adjust the screen sensitivity - and I admit, I'm so new to this, but I see a need when I go see my patients and they have no one to help them and their pill box is still full, so I'd like to try Mar 30 21:16:42 hey guys, i'm trying to run an android project Mar 30 21:16:48 on nexus 4 Mar 30 21:17:03 I have USB debugging enabled Mar 30 21:17:14 however eclipse doesn't show the device as one of the targets Mar 30 21:17:24 perhaps because the minimum sdk level for the project is 8 Mar 30 21:17:36 how can I make the project run on my nexus 4? thanks :) Mar 30 21:18:09 Is there a place to see all the different android themes? Mar 30 21:18:44 that I can use in the application I am making Mar 30 21:19:25 Thank you for the starting point gentlemen, I'll get to studying and I am sure I'll have more questions. Be happy. Mar 30 21:26:21 buy them a tablet? Nice pun. Mar 30 21:26:49 afahim: make sure its seen by adb Mar 30 21:27:04 "adb devices" Mar 30 21:27:11 rgr: how do i make sure ? Mar 30 21:27:31 why do you think the min sdk will stop it running? Mar 30 21:27:48 I have no idea. It's just a guess at this point Mar 30 21:28:37 when you plug your phone in it should say "attaching as usb device" on the screen. Wrong cable or wrong usb port can cause issues. Mar 30 21:28:49 but a nexus 4 will work. I use one. and with sdk 8. Mar 30 21:31:18 rgr: yes when I attach it it says connected as media device Mar 30 21:32:36 rgr: but when I run the project in eclipse my phone isn't shown as a device Mar 30 21:32:52 thats nice. and "USB debugging connected"? Mar 30 21:33:02 yes you said. Did you see what adb says? Mar 30 21:33:34 (oh I use Linux btw dunno if "adb devices" works on Windows or whatever) Mar 30 21:36:29 rgr: yes usb debugging connected indeed Mar 30 21:36:56 I don't know what adb is, is that the console in eclipse? Mar 30 21:38:16 That you can google. You didnt answer what system. And I dont use eclipse. Maybe #eclipse could help with that one if no one here can. Mar 30 21:38:50 (but adb is a core part certainly of the linux experience - the android debug bridge) Mar 30 21:45:09 When performing a real-time HTTP request (like when infinitely scrolling in a list view, for instance) - can a SyncAdapter be used to facilitate the data request? Mar 30 21:45:26 In other words, can a SyncAdapter be triggered instantly on demand? Is this preferable to using an AsyncTask? Mar 30 21:46:50 is there anyway to show multiple images in one view WITHOUT create custom view? Mar 30 21:53:12 askhader: if you can get paginated requests it should be a problem Mar 30 21:53:33 it shouldn't Mar 30 22:02:14 totic: Is there any benefit to using the sync adapter over a plain old AsyncTask ? Mar 30 22:22:12 this is very strange; sometimes when i turn the device on/off my notification is still there, but is missing the content text. it has the title. anyone ever see this before ? Mar 30 22:33:17 probably some AS bug :P Mar 30 22:33:26 hm Mar 30 22:33:29 :) Mar 30 22:34:52 heard a fella at work the other day say "paralysing" when talking about enhancing performance. took me ages to figure out what he meant - parallelising Mar 30 22:36:54 bankai_au what kind of app / system ? Mar 30 22:36:58 hey guys Mar 30 22:37:08 i have enough trouble just getting the basic stuff working :) Mar 30 22:37:09 did anybody open source chrome's tabUI yet? Mar 30 22:37:13 must look into this now https://code.google.com/p/android/issues/detail?id=13941 Mar 30 22:38:22 and what is that even called? 3D tab view? Mar 30 22:38:35 ? Mar 30 22:39:22 http://www.androidtapp.com/chrome-for-android/chrome-for-android-3d-effect-tabs-list/ Mar 30 22:39:27 that control's name Mar 30 22:41:57 uh gross Mar 30 22:42:03 just carousel in vertical Mar 30 22:44:15 well, did anybody else already build this? Mar 30 22:50:41 so, I have gotten my gles setup to render the meshes I want, now I would like to ie repeatedly at random times, spawn X, where X changes some property of some mesh (like position) over time from the current value to some goal value ...is there any kind of best practices for this kind of thing? something using SheduledExecutorService perhaps? Mar 30 22:53:32 anyone help me other way to remote database sqllte android? sometime, i want to change db for update my data app so i want to remote it, but i'm confused using a json,gson,xml maybe do you have a other ways? or completed tutorial about this... Mar 30 23:00:42 Hi all. Basic question: What's best practice, setting a fragment's ClickListener in the fragment's class or in the UI thread? Mar 30 23:01:01 was cleaning up my project and was debating it for a while Mar 30 23:06:24 Any know here a Tutorial for making Android Social Networking App? Mar 30 23:21:49 I am following https://developer.android.com/training/implementing-navigation/nav-drawer.html I am not using fragments though, when I change the FrameLayout from a self closing tag to @include/layout/main_view (which is extending ListView) the view stays the same, but the navigation drawer does not appear Mar 30 23:21:54 hello all. i have an activity using a pager to display multiple (infinite) fragments for the user. i am trying to display a context menu when the user long-presses on any fragment. i have tried registering the pager for the context menu to no avail. i then tried to register the root view object for the fragment (which is a relative layout). however, the only thing that has worked is to register one of the textviews on the fragment, and long pressing that su Mar 30 23:23:16 i need the entire screen to be long pressable, not just where there is a text element Mar 30 23:24:55 and if i keep all these context menus registered, when i do long press on the text, i get the same context menu three times Mar 30 23:37:57 any1 know of a good "setup wizard" lib? Mar 30 23:45:32 How do I show the title bar if the theme removes it? I only want one activity to show it Mar 30 23:46:30 totic: you can use a different theme and call requestWindowFeature(Window.FEATURE_NO_TITLE); on the ones that dont need it Mar 30 23:50:44 zpr: thats what I wanted to avoid Mar 30 23:56:35 so i have an activity comprised of a RelativeLayout, within which lies an image, a textview, and a scrollview with more text. i need to register the ENTIRE activity for a contextmenu. calling it on the relativelayout doesn't work. any suggestions? Mar 31 00:10:29 hi all Mar 31 00:10:47 i would like to ask if it is possible to sniff ssl traffic on android or not Mar 31 00:11:02 http://resources.infosecinstitute.com/sniffing-network-traffic-android/ Mar 31 00:11:13 i have found this and i would like to know if it is still valid or not Mar 31 00:11:24 or if setting up interception proxy like burp Mar 31 00:11:27 can be used for that or not Mar 31 00:11:37 anyone ever did anything like that? msg me Mar 31 00:14:21 wouldn't that kind of defeat the purpose of SSL ? Mar 31 00:15:02 there are bugs in a lot of apps where SSL certs aren't properly verified, so yeah, sure, MITM is possible Mar 31 00:33:42 Question: I got a relative view. On the right side of the view I want to have a list showing 4 strings. What would be the best / neatest way of doing it Mar 31 00:34:13 should I use a listview or another relative view, with in those the different textviews for the strings? Mar 31 00:35:42 anyone seing super delayed admob reports for today / yesterday? Mar 31 00:36:12 yup Mar 31 00:36:15 0 views 0 clicks Mar 31 00:36:30 got something really crazying going on in my onSaveInstanceState() Mar 31 00:36:33 int i; Mar 31 00:36:42 for(i = 0 i < MAX; i++) Mar 31 00:36:57 Log.d("blah" + Integer.toString(i); Mar 31 00:36:57 Post it man Mar 31 00:36:59 not here Mar 31 00:37:05 the FIRST instance of max prints 32 as the index Mar 31 00:37:06 post your code on pastebin or something Mar 31 00:37:26 im not posting the code. ill give 3 lines of example code which is enough Mar 31 00:37:40 the integer to string on i which the loop initializes to zero Mar 31 00:37:46 first log of that index = MAX Mar 31 00:37:59 no 0 1 2 3 4.... 31 (where max is actually 32) Mar 31 00:38:05 ThomQ: ok, i thought i was the only one... Mar 31 00:38:13 seems like it hasn't updated simnce Friday afternoon Mar 31 00:38:14 :/ Mar 31 00:38:51 err might have found my stupidness brb Mar 31 00:39:04 yea lol i know i have Mar 31 00:39:11 for(.... ); Mar 31 00:39:12 { Mar 31 00:39:13 } Mar 31 00:39:17 yeah, it looks like on friday i had 50% of normal impressions. Yesterday and today 0 Mar 31 00:39:29 ThomQ: yep! exactly the same story here. hopefully it will be fixed soon Mar 31 00:46:22 I was just checked my admob - yeah, same here, and yesterday should have been a relatively big day for my app Mar 31 00:47:00 whys that leeds? Mar 31 00:47:18 I440r: it's a weather app, and we had a *lot* of weather yesterday Mar 31 00:47:30 which weather app? Mar 31 00:47:48 are you in Hong Kong, or interested in the weather here? Mar 31 00:48:07 oh no im not in hong kong, would love to go some day tho lol. Mar 31 00:48:19 come, we'll have beer Mar 31 00:48:30 so your weather app is specific to hong kong then lol Mar 31 00:48:40 err no make mine a JD i dont drinkz beerz :) Mar 31 00:49:57 G&T? Mar 31 00:50:34 why would you want to go to hong kong? Mar 31 00:50:41 https://www.youtube.com/watch?v=VGglbb-fPIc is what it looked like last night... Mar 31 00:50:42 to see the natives shit on sidewalks? Mar 31 00:50:43 jack danniels or any other drinkable kentucky straight whiskey or bourbon Mar 31 00:50:58 and that totally disqualifies 100% of every product that comes out of the jim beam distillery Mar 31 00:51:04 SOME chinese chix are hawt? Mar 31 00:51:19 most chinese "chicks" are drag queen cross dressers. Mar 31 00:51:28 no. thats thai Mar 31 00:53:43 beer always tasted like someone else had already drunk it once before and puked it up :P Mar 31 00:54:38 there's good beer and bad beer Mar 31 00:55:02 and they all taste like puke to me lol Mar 31 00:55:26 then you haven't tried good beer :P Mar 31 00:55:54 then i plan to keep it that way. bourbon or kentucky straight :P Mar 31 00:56:03 and the ONLY thing you mix with either is... Mar 31 00:56:04 MORE!! Mar 31 00:56:11 beer is gross Mar 31 00:56:16 i second that Mar 31 00:56:38 I prefer fruity cocktail mixes Mar 31 00:56:46 or straight up jack's Mar 31 00:57:17 but preferably I'd rather not drink at all Mar 31 00:57:35 being drunk is meh and the hangovers are terrible Mar 31 00:57:40 smoke weed. Mar 31 00:58:03 anyway. Mar 31 00:58:21 if you happen to be in Hong Kong sometime, we could have a drink of your choice Mar 31 00:58:47 drop acid, eat shrooms, smoke weed. all better alternatives to getting drunk. Mar 31 00:59:01 being drunk just makes you act retarded and do stupid things Mar 31 01:00:10 and in the meantime, the clouds on the horizon are looking pretty dark, and the amber rain warning is up... and showing on my notification bar, which is good to see Mar 31 01:01:14 lol Mar 31 01:01:29 who said anything about getting drunk Mar 31 01:02:09 The thing I love most about devoloping in android, is that Every little thing takes an hour to figure out. It's so non-intuitive Mar 31 01:02:46 thomq i find that with every programming language there is except Forth and Assembler Mar 31 01:03:04 if i am publishing an app containing various information, should i be concerned about "exporting" this app to countries such as China where information is censored? can i get into legal troubles or will google simply disconnect my app from china or something like that Mar 31 01:03:07 which is why i wrote an android forth IN assembler and can now write forth for android Mar 31 01:03:29 l440r: i chuckled heavily Mar 31 01:03:40 its an I not an L :P~ Mar 31 01:03:48 Ibanez 440 radius Mar 31 01:03:51 ah sorry. been making that mistake all week Mar 31 01:04:01 pick a better font :P~ Mar 31 01:04:14 was manually copying over a bit.ly link... very interesting results... Mar 31 01:04:53 nah, its not the language. It's the SDK Mar 31 01:05:16 i'm already trying to figure out how to align a chidview or a relative layout to the right side of the screen Mar 31 01:05:22 I440r: in any case, if you're goign to go through such trouble.. might as well make it work for LISP Mar 31 01:05:33 ofcourse alignright doesn't work. alignParentRight doesnt work either Mar 31 01:07:31 ThomQ: you don't align to the screen, you align to the container Mar 31 01:08:09 Leeds: yeah, i found the culprit.. 1 textview that I didn't set to wrap content :( Mar 31 01:08:17 I just needed to vent, don't mind me Mar 31 01:08:20 i love android :D Mar 31 01:08:23 the guy that invented lisp (i forget his name) and the guy that invented forth were in Uni together. they knew each other. the forth guy WAS a lisp guy. he invented forth to solve deficiencies he saw in lisp Mar 31 01:08:51 least you didnt suggest embedding LUA Mar 31 01:09:32 "deficiencies in LISP"... hah Mar 31 01:09:37 you can do anything with CAR and CDR Mar 31 01:10:11 I have to work with tabs for the first time. I'm looking up for a "simple" tutorial, but I can't seem to find a good source. Some older posts show tabhost, some do a view pager, some do fragments. The only rules that I have to follow is that you should be able to swipe between the two tabs that I have. Mar 31 01:10:16 lisp development is not as intuitive or fast as forth. pretty much no language in the world has a development time as low as forths. Mar 31 01:10:18 does anyone know off the top of their head how to get the dimensions of a view from inside a fragment? Mar 31 01:10:44 plus forth is more space efficient than pretty much ANY other language Mar 31 01:10:47 er, I mean I want the size of the fragment I am inside of Mar 31 01:12:42 well considering it has to be run on the JVM, i dont think thats a relevant point Mar 31 01:13:52 zpr what has to be run on the JVM? Mar 31 01:14:07 I440r: android apps Mar 31 01:14:15 not NDK Mar 31 01:14:27 i told you. this was written in assembler Mar 31 01:14:49 why is my app no longer getting a saved instance state in onCreate? Mar 31 01:19:20 actually saved instance states are pretty useless. i shud write a state save/restore Mar 31 01:19:21 bleh Mar 31 01:20:48 I440r: i dont know much about the NDK, but i believe no matter what you write it in, they will run on the JVM on physical android devices Mar 31 01:21:18 ndk = native development kit. my android forth runs nativly on the PROCSSOR not in the JVM Mar 31 01:21:38 the rest of my app is in the JVM but the ndk library calls are arm native assembler Mar 31 01:21:44 if i have an information app, such as a wikipedia app, is it okay to export to all countries? (even china , etc.) Mar 31 01:21:47 machine code Mar 31 01:21:51 I440r: i see, gotcha. Mar 31 01:22:00 zpr: not a question for this channel Mar 31 01:22:10 zpr put it on the app store. you cant get in trouble, and google wont Mar 31 01:22:42 I440r: i only ask because its making me check a box that says i am complying with US export law, and i dont know if i am. and i doubt most developers consult lawyers prior to publishing, so i'm asking for a rule of thumb Mar 31 01:23:09 I440r: i definitely cannot get in trouble? Mar 31 01:23:15 no idea. never published Mar 31 01:23:18 leaking civil rights media to china, for example Mar 31 01:23:19 :P Mar 31 01:23:24 lol Mar 31 01:23:32 china isnt going to send their hit squads out Mar 31 01:23:39 zpr, the export check box is for encryption stuff Mar 31 01:23:44 yeah but i might get hit with a lawsuit or something Mar 31 01:24:08 zpr you will always have opportunity to remedy before you end up in court Mar 31 01:24:20 alex_PP: i thought encryption stuff was just a subset Mar 31 01:24:29 sabton: lets keep our fingers crossed :) Mar 31 01:25:01 should be fine for alpha/beta testing anyway.... Mar 31 01:25:07 https://support.google.com/googleplay/android-developer/answer/113770?hl=en Mar 31 01:25:33 it's complicated, but you'll be fine Mar 31 01:26:00 alex_PP: yeah, i've read that. it basically says nothing except references those .gov links Mar 31 01:26:08 have you read them? Mar 31 01:26:16 the links just point to the homepage Mar 31 01:26:30 so, no, i havent Mar 31 01:29:53 basically, if your app falls into some broad categories it needs an export cetificate Mar 31 01:30:13 any idea of these broad categories? Mar 31 01:30:26 unless you've actually had to think about this before hand, it's unlikely that you'll be required to do anything Mar 31 01:30:35 http://www.bis.doc.gov/index.php/policy-guidance/encryption/classification#One Mar 31 01:30:58 as far as i'm aware, using HTTPS doesn't count Mar 31 01:31:21 it's more aimed at encryption software itself Mar 31 01:31:37 but, i'm not a lawyer Mar 31 01:31:41 i see Mar 31 01:32:07 i'm not using encryption other than HTTPS, my question was more regarding the content of the app itself (ie. informatoin that may be generally inaccessible to a foreign audience who filters their internet heavily) Mar 31 01:32:21 the export declaration has nothing to do with whether you'll get in trouble elsewhere Mar 31 01:32:56 if china wanted to sue you, how would they go about it? they can't take you to a US court as it's not illegal there, i beleive Mar 31 01:33:17 and the writers of anything they dislike are more likely to earn their disapproval Mar 31 01:33:37 well i'm thinking if the US has these "export laws", perhaps i am violating them Mar 31 01:34:03 if anything, my various API calls will probably get shut out Mar 31 01:34:11 and if they want to filter it, they still can, there's no real difference between a browser and any other app Mar 31 01:34:22 good call Mar 31 01:34:33 curious what this checkbox is for then. probably like you said, just encryption. Mar 31 01:34:40 mostly, yeah Mar 31 01:35:08 i'm not a lawyer though and if you're really worried it might be best to write a letter to the BIS Mar 31 01:35:20 alex_PP: i understand, thank you Mar 31 01:35:30 they'll have someone with a much broader understanding of all this Mar 31 01:36:05 the export laws aren't for enforcing foreign laws, they're for stopping things leaving the US that shouldn't Mar 31 01:36:21 or trade with embargoed countries Mar 31 01:36:32 ok, that makes sense Mar 31 01:38:15 read this too Mar 31 01:38:15 http://www.bis.doc.gov/index.php/policy-guidance/encryption/encryption-faqs Mar 31 01:38:27 it references a lot of stuff (without links, grrrr) Mar 31 01:43:13 weird; adb devices shows '192.168.1.3:5555 offline' and i can't connect to it any more Mar 31 01:43:36 solution on SO were … weird; already have latest sdk / etc Mar 31 01:44:32 g00s, try restarting the adb server Mar 31 01:44:38 it messes up sometimes it seems Mar 31 01:46:02 zpr thanks; that worked. i didn't think to do that since it was showing the device (and a status) not ?????? Mar 31 01:50:39 Hey guys I was wondering if there would be a major speed difference from getting a list from a SQlite table and cehck it compared to using a variable array. Mar 31 01:56:04 AndreYonadam question too vague Mar 31 01:59:02 g00s: So currently I have two ArrayLists one for Latitudes and one for Longitudes. When the GPS gets an update I check the distance from the current reported GPS location to the values in the array list. However I decided that it was goign to be hard to use an arraylist because I wanted to get updates via the internet and store them to a Database. So what I did was set up an Mar 31 01:59:02 online Json file that I would update every now and then and would get stored to a database. Right now I'm deciding if the access from and to the database would be fast enough to catch up to the GPS updates which would allow me to use the database directly rather than an ArrayList. Otherwise I would have to figure out a way to update my ArrayList everytime I update the Database Mar 31 01:59:02 or something. Mar 31 02:00:52 g00s: latch.await() might be an answer as well Mar 31 02:01:13 CountDownLatch* Mar 31 02:01:48 AndreYonadam i didn't understand all of it, but thats ok - i'd store geo location stuff in a db with r*tree indexes, like nvstore Mar 31 02:01:52 *mvstore Mar 31 02:02:36 not sure why you would store lats in one array and longitudes in another Mar 31 02:03:04 g00s: Would a db be fast enough to access for around every 30ms to check distance compared to gps for every GPS location return. Mar 31 02:03:17 i don't know Mar 31 02:03:21 g00s: I thought a array would be faster to check because the GPS updates like every 50ms. Mar 31 02:03:39 do you need to check that often? Mar 31 02:03:44 gow far can you move in 30ms Mar 31 02:03:48 *how Mar 31 02:03:49 alex_PP Mar 31 02:03:51 Thats true Mar 31 02:04:10 Are there any reports online showing how fast android's database is? Mar 31 02:04:15 more than once every 2 or 3 mins is probably overkill Mar 31 02:04:52 alex_PP I need to check while driving. So it should be at most a second or two. Mar 31 02:05:16 ah, driving Mar 31 02:05:33 still, throttle your lookups Mar 31 02:06:05 also, this might be a better way to monitor proximity to locations https://developer.android.com/training/location/geofencing.html Mar 31 02:06:08 might not Mar 31 02:06:16 depends on your usecase Mar 31 02:06:34 and battery expectancy :) Mar 31 02:06:38 bankai_au alex_PP whats up you guys Mar 31 02:06:46 nothing much Mar 31 02:07:41 knee deep in code i don't understand :) Mar 31 02:08:05 alex_PP noticed this was #1 bestseller on amazon http://www.amazon.com/Road-Seeing-Dan-Winters/dp/0321886399 Mar 31 02:08:14 bankai_au :D Mar 31 02:08:39 i would never get the kindle version of that book Mar 31 02:08:41 47USd on kindle! Mar 31 02:08:49 pdf from peachpit or real book Mar 31 02:08:59 yeah, its huge Mar 31 02:09:02 my bad Mar 31 02:09:06 Idk why My internet timed out Mar 31 02:10:01 yeah Mar 31 02:10:04 So I need to check that often Mar 31 02:10:38 where did you see up to AndreYonadam Mar 31 02:10:57 what do you mean? Mar 31 02:11:03 anyone have tips / tutorial on writing a device driver for the android kernel Mar 31 02:11:05 specifically for HDMI chip? Mar 31 02:11:10 akaizen: wrong channel Mar 31 02:11:15 akaizen, #android-root Mar 31 02:11:35 ty Mar 31 02:11:36 AndreYonadam, i kept talking, where'd you read up to Mar 31 02:11:51 Can someone help me with this? http://stackoverflow.com/questions/22752564/extending-dialogfragment-for-a-date-picker Mar 31 02:11:55 "ah, driving" Mar 31 02:12:55 AndreYonadam, still, throttle your lookups. also, this might be a better way to monitor proximity to locations https://developer.android.com/training/location/geofencing.html - might not, depends on your usecase Mar 31 02:13:48 Is there a way to build just basic android with only minimal components? Mar 31 02:13:56 hey, does anyone know why marker.setVisible(false) might be working on the emulator but doesn't work on the actual device Mar 31 02:14:20 alex_PP: that can come in useful because the GPS returns corordinates that are not in the same point depending on different sattelites Mar 31 02:14:25 eghdk_ done Mar 31 02:14:39 gwz is marker from the VIEw class? Mar 31 02:14:49 its a drawable Mar 31 02:15:36 if you're worried about that bundle and average a set of results Mar 31 02:15:39 but i'd ignore that Mar 31 02:16:05 you don't want to be constantly doing all that maths Mar 31 02:16:16 / reads Mar 31 02:16:47 your phone's going to get very hot and then have a flat battery Mar 31 02:17:15 gqz are you on the UI main thread? Mar 31 02:17:18 gwz Mar 31 02:17:30 yes Mar 31 02:17:34 alex_PP: lol for real. Does all the information actually drain battery? Mar 31 02:17:50 I guess I shoudl hchange it to one or two seconds Mar 31 02:18:01 you need to have a little think about the absolute minimum level of accuracy you can get away with for your usecase Mar 31 02:18:13 GPS uses loads Mar 31 02:18:21 using the CPU constantly uses a lot Mar 31 02:18:45 gwz what kind of layout are you using? Mar 31 02:18:56 alex_PP: I think what I'm going to do is reduce the gpu Mar 31 02:18:59 sorry Mar 31 02:18:59 *gps Mar 31 02:19:28 And then I'm going to add a thread to check for updates for any changes to the database and then I will load those on to my array Mar 31 02:19:32 AndreYonadam: framelayout, the marker appears okay, when It should go invisible however, it just looses its shadow but stays on the map Mar 31 02:19:46 when you ask for location updates you can ask it to be a little less thorough, with a min distance and time Mar 31 02:19:50 See what I'm wondering is there a speed difference between an array and a sqlitedb. Mar 31 02:20:02 yeah i think so. Mar 31 02:20:13 sqlite is slow and crap Mar 31 02:20:36 Thanks alex_PP thats useful. I need to figure out how to update the thing though. Should I directly use SQLite every time my gps updates to check all the rows. Or shoudl I use an array. Mar 31 02:20:44 bankai_au: what other meathods do you suggest? Mar 31 02:20:59 lol sharedpreferences Mar 31 02:21:11 I honestly would If it was possible Mar 31 02:21:13 to store an array Mar 31 02:21:18 if your data isn't changing, leave it in RAM Mar 31 02:21:37 bankai_au: the problem it is. It can't be hardcoded because it gets updates every few days. Mar 31 02:21:50 thanks code guru. I've never put a class inside of an activity before didn't know it was possible Mar 31 02:21:54 so can I load it into an array temporary every time? would that be the best thign to do? Mar 31 02:24:33 damn Mar 31 02:24:59 I always feel like 90% of my time is deciding what should I do and only 10% is how can I do something. Mar 31 02:25:43 anyone? Mar 31 02:25:55 gwz sorry not really sure why thats happening. Mar 31 02:26:08 maybe its the framelayout? Mar 31 02:26:30 works fine on the emulator though Mar 31 02:27:13 well, what's the difference between your emulator and your device ? Mar 31 02:27:32 nothing at all Mar 31 02:27:49 i had a lot of buggery going on with markers about a year ago where they wouldn't go invisible and I had to remove them, but i think this was more of a bug in the maps API Mar 31 02:28:56 actually my emu is on 4.4.2 and device is on 4.3.1 maybe that could be it:s Mar 31 02:33:47 hm, for a menu item, should this work? android:actionViewClass="com.android.widget.Switch"/> Mar 31 02:37:54 also, does anyone know what should currently be used in order to broadcast updates to everyone using the app, I know there was mobile backend but it was deprecated earlier in the month Mar 31 02:45:02 gwz not really sure. Mar 31 02:45:23 Can you put it in its own layout and hide that? Mar 31 02:49:32 codeguru Do you know how I would pass back those int year, day, month, values back to my activity? Mar 31 02:51:26 hiiii Mar 31 02:51:32 how to change font in my app Mar 31 02:51:32 ? Mar 31 02:52:08 b0t: To include a font that isn't provided by android you have to add it manually to your projects asset directory Mar 31 02:53:09 perfect, but as call it? from a xml Mar 31 02:53:19 Then do something as such: Typeface thin = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Thin.ttf"); myTextView.setTypeface(thin); Mar 31 02:53:28 I've downloaded the source you want Mar 31 02:53:41 You can't set fonts in xml from what I know. Mar 31 02:54:01 So where should I put it? Mar 31 02:54:23 Question: I got this relative view of which I dynamically add some more views. How would I animate the view's increase of size? Mar 31 02:54:32 in a class Mar 31 02:54:33 ? Mar 31 02:54:44 Put what? Mar 31 02:54:45 rather then having them just pop in there Mar 31 02:54:57 wish it acts on the entire application Mar 31 02:55:05 your code Mar 31 02:55:11 Typeface thin = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Thin.ttf"); myTextView.setTypeface(thin); Mar 31 02:55:14 I'm unsure of that honestly. Mar 31 02:55:27 my example shows how I would do it for a textView Mar 31 02:55:45 fonts go in src/main/assets/fonts/ Mar 31 02:56:15 I am not referring to the source, I mean when I hit that code file Mar 31 02:56:34 Typeface.create..... Mar 31 02:58:29 I will not put that code in each file ... Mar 31 02:58:42 http://stackoverflow.com/questions/18436703/android-typeface-createfromasset **** ENDING LOGGING AT Mon Mar 31 03:00:00 2014