**** BEGIN LOGGING AT Sat Apr 19 02:59:59 2014 Apr 19 03:03:30 anyone know what font Android uses for their default button text? Apr 19 03:03:42 Robo something Apr 19 03:04:03 Roboto Apr 19 03:04:05 thats it Apr 19 03:04:21 How to debug specific activity? Apr 19 03:04:27 directly Apr 19 03:04:34 Breakpoints? Apr 19 03:04:42 roboto? do you know what size font that is? Apr 19 03:04:52 16dp by default I believe Apr 19 03:05:02 It can change according to accessibility settings though Apr 19 03:05:07 oops Apr 19 03:05:09 16sp* Apr 19 03:05:14 awesome, thanks! Is roboto a font I can use in word? Apr 19 03:05:20 If you get it somehow, yes. Apr 19 03:05:26 Then import it into your fonts file. Apr 19 03:08:10 ya, there are fonts and a photoshop template Apr 19 03:08:39 its on the developer.android.com site in the downloads section iirc Apr 19 03:09:09 getting it now, thanks! Apr 19 03:56:39 hm, are there more modern/well designed UI android examples? The ones at the following links are kinda eeh: https://github.com/embarkmobile/android-maven-example, https://github.com/aporter/coursera-android, https://github.com/IanDarwin/Android-Cookbook-Examples Apr 19 04:27:31 Hi, can anybody help me with a problem with USB on Samsung devices? Apr 19 04:52:30 hello all Apr 19 04:53:14 aloha Apr 19 04:53:25 is it permissible to launch another asynctask thread within an existing one? Apr 19 04:54:21 Guys Apr 19 04:58:32 QubeZ: http://stackoverflow.com/questions/10498001/asynctask-inside-asynctask Apr 19 05:08:39 What are my options if I want to make an App without using Java? I've heard perhaps Unity could work well? (The App would be fairly simple - need to access a medium-size database, run a timer, have some saveable options...) Apr 19 05:09:42 where can I see all predifined list item from androdi Apr 19 05:12:21 How do I access ui elements from within a dialogfragment? Apr 19 05:16:12 Fucking jesus dialogs are confusing in android Apr 19 05:16:22 list layout* Apr 19 05:17:26 Koolaids-: same way as everything else ... Apr 19 05:19:53 well Apr 19 05:19:54 i mean Apr 19 05:20:27 Twinge, any jvm language Apr 19 05:20:35 Do the ids of ui elements need to be unique across the whole application then? Apr 19 05:21:00 Cause i thought they just needed to be unique within each view Apr 19 05:21:14 Koolaids- just in the tree Apr 19 05:21:31 ok Apr 19 05:21:41 old school dialogs were a frikkin pita Apr 19 05:21:51 you are using dialogfragment hopefully, should be better Apr 19 05:28:44 hm, if i have a with a child element, do the values i give the flags wind up as constants i can access in code somewhere? or do i ave to duplicate that Apr 19 05:29:02 Hi, can anybody help me with a problem with USB on Samsung devices? Apr 19 05:29:14 when is this shit going be documented :| Apr 19 05:29:36 myDialog.show(getSupportFragmentManager(), "mydialog"); -- when I do this it says it can't resolve method getSupportFragmentManager() Apr 19 05:29:42 what do Apr 19 05:30:15 Are you in an Activity / FragmentActivity and do you have the compatibility library in your project Apr 19 05:30:40 yeah in an activity. I have the android support library in my project Apr 19 05:30:44 is that the same as compatibility? Apr 19 05:31:12 yeah. is this line in an inner class like in a listener or somewhere out of scope? Apr 19 05:31:52 I think you need to be a FragmentActivity Apr 19 05:32:22 fo real Apr 19 05:32:32 So it's impossible to call up a dialog from inside a regular activity? Apr 19 05:32:41 maybe mFragmentManager = getSupportFragmentManager() in your onResume and get a reference into scope? Apr 19 05:33:10 well, I don't think you can call getSupportFragmentManager from a regular Activity Apr 19 05:35:41 hello everyone Apr 19 05:35:44 it's been a while since I came in here Apr 19 05:36:41 hello Apr 19 05:37:56 I want someone to teach me how to create a multiplayer card game for android. Apr 19 05:37:59 bankai_au dogs release any apps this week ? Apr 19 05:38:08 no Apr 19 05:38:12 i found this thing called appwarps2 Apr 19 05:38:15 is it any good? Apr 19 05:38:19 or atleast someone to teach me android. Apr 19 05:38:21 never heard of it Apr 19 05:38:26 no Apr 19 05:38:28 this is a quiet room Apr 19 05:38:47 not the best place to get beginners help I would guess Apr 19 05:39:07 channel Apr 19 05:39:12 http://appwarp.shephertz.com/ Apr 19 05:39:36 I need help learning android. I understand programming but the android system has my head spinning and I need an entry point. or starting point to begin to develop my comprehension. Apr 19 05:39:54 can you program in java? Apr 19 05:39:59 I've completed some simple tutorials but I still have no idea how to go about building different types of programs or games. Apr 19 05:40:03 I can sorta program in Java, yes. Apr 19 05:40:07 I understand Java. Apr 19 05:40:19 d.android.com Apr 19 05:40:22 but there's some android specific things :/ Apr 19 05:40:22 do you have the Android SDK setup? Apr 19 05:40:24 d.android.com Apr 19 05:40:29 sorta is no Apr 19 05:40:30 I have the eclipse with android sdk installed Apr 19 05:40:48 it can even run an emulator (doesn't run nexus 7 emulator good) Apr 19 05:40:59 well, programming in Java is more about knowing the API's than any wizardry Apr 19 05:41:06 Ohhh jeez. >.< Apr 19 05:41:09 it's all about the APIS isn't it x.x Apr 19 05:41:22 its all about the string constants Apr 19 05:41:25 yeah, API's are your friend unless you enjoy reinventing the wheel Apr 19 05:41:29 there are string constants for everything :) Apr 19 05:41:39 string constants? Apr 19 05:41:55 80% of most apps is just strings Apr 19 05:41:59 ok here's the thing, the android system is very dynamic.. and that's nice. But I have no idea where to start. i think linearly when it comes to learning steps. Apr 19 05:42:10 that's not particularly helpful, I would wager, regarding the string constants Apr 19 05:42:15 but I want to move past the tutorials where you have hello world windows Apr 19 05:42:20 dynamic? throwing out buzzwords now? Apr 19 05:42:34 it is dynamic though. Apr 19 05:42:41 yes it is Apr 19 05:42:41 be right back. Apr 19 05:43:23 That's weird Apr 19 05:43:27 ok say i want to make a game or something. like pong. Apr 19 05:43:33 not at all Apr 19 05:43:36 anyway, if you want to learn to program a platform, you need an objective, otherwise you're wasting your time Apr 19 05:43:38 Or move past the simple stuff. Apr 19 05:43:55 okay, it's static 9.9 Apr 19 05:44:08 I want to make a multiplayer turn based game where you collect items from people you play with it would have a backend server. as well to support a player database. Apr 19 05:44:22 basically like a card battling game. Apr 19 05:44:30 client/server architecture or peer-to-peer? Apr 19 05:44:38 client/server. with support for p2p as an option. Apr 19 05:44:40 oh, sorry c/s I see Apr 19 05:44:48 have you built the backend yet? Apr 19 05:44:52 no. Apr 19 05:45:20 do that first, then do an html front end, then wrap that up in a WebView. Fastest route. Apr 19 05:45:31 I don't have the hosting services required right now. Or the know how to build a proper stable server for that. I could use sql and javascript or json or something.. but I think it could just be an sql database couldn't it? Apr 19 05:45:45 pfn you working on any personal stuff atm? qicr? new app ? Apr 19 05:45:48 are you Windows/Mac/Linux Apr 19 05:45:55 so make it for the web first.. that's not a bad idea. Apr 19 05:46:19 what's a webview is that like a special thing for an app to view a website/ Apr 19 05:46:21 ?* Apr 19 05:46:24 exactly Apr 19 05:46:27 oh neat Apr 19 05:46:33 g00s, not much personal stuff, some build plugin bugfixes, some minor qicr refactoring, etc Apr 19 05:46:39 so basically instead of building the app for android i'm making it the web then loading it into a webview. Apr 19 05:46:45 the browser is basically a wrapper around webviews Apr 19 05:47:00 g00s, gonna replicate some of the new lastpass functionality in KeepShare Apr 19 05:47:04 so you make a dedicated "browser" that just loads your site, and you can customise the UI etc. Apr 19 05:47:07 ok so should I go with sql you think? Are there any reliable free sql database hosting services. Apr 19 05:47:20 pfn nice Apr 19 05:47:23 appengine, but it's not quite sql Apr 19 05:47:24 Then you can quickly knock up an iOS version, Facebook app etc. Apr 19 05:47:33 are you on Windows/Mac/Linux? Apr 19 05:47:36 windows Apr 19 05:48:02 download and install wamp and prototype it on your own machine, no hosting required Apr 19 05:48:06 g00s, you? Apr 19 05:48:08 oh neat okay. Apr 19 05:48:25 RedEyedGirl: why do you need a database for pong ? Apr 19 05:48:35 or even a card game Apr 19 05:48:59 user tracking apparently Apr 19 05:49:37 I don't want to store the stuff players have (inventory) in-app data. Apr 19 05:50:00 pfn i was just rewriting an old app i did for froyo; just getting the hang of doing something tablet optimized. all the areas i made poor design decisions are getting cleaned up. Apr 19 05:50:08 anyway, can anybody help me with a problem with USB on Samsung devices? Apr 19 05:50:09 and since it'll be an online enabled game i'll want it to support a server. Apr 19 05:50:32 RedEyedGirl: google has game services for that kind of stuff Apr 19 05:50:54 Ok guys, my dialog keeps crashing when I try to retrieve the value of editText1: http://pastebin.com/QVKZd3KK Apr 19 05:50:56 Please help Apr 19 05:50:59 g00s, it's still super niche, isn't it? move onto something new and more widely applicable :p Apr 19 05:51:04 game services for that stuff on google? Apr 19 05:51:11 that's great Apr 19 05:51:30 i'll consider both routes but i still want to toy with sql/php right now so wamp is gonna be great. Apr 19 05:51:38 i tried installing something else and it didn't work a while back. Apr 19 05:52:12 pfn yeah i will soon; one more try incorporating the feedback folks have given me Apr 19 05:52:20 if it doesn't pan out ... Apr 19 05:53:02 Koolaids look at logcat, why is it crashing? Apr 19 05:53:38 k so when i load phpmyadmin in Wamp it doesn't load. can someone help me figure out why? I get a blank page. Apr 19 05:53:39 does the requestcode property from the pendingintent work? Apr 19 05:53:56 I read somewhere that Javadoc says request code isn't used yet Apr 19 05:54:27 you should try a different channel for that. I don't use Windows. You should check the port number you are running Apache on your localhost. Apr 19 05:54:30 I was going to utilize individual unique request codes to cancel them Apr 19 05:54:33 http://stackoverflow.com/questions/19459765/cancelling-a-pendingintent-with-unique-requestcode <= Apr 19 05:54:37 RequestCode works fine Apr 19 05:54:59 g00s, but yeah, hard coming up with marketable apps on one's own Apr 19 05:56:23 its very crowded now Apr 19 05:56:52 i'm not very good at marketing either Apr 19 05:57:29 i should be out talking to firefighters, farmers, etc (that use the device) and getting their story; and how i can make the app useful for them (if at all) Apr 19 05:57:40 just don't have the connections Apr 19 05:58:02 you don't have a firehouse near you? Apr 19 05:58:18 chuckk this particular device is used more by hotshot crews Apr 19 05:58:32 outdoor firefighting Apr 19 05:58:38 forest fires, i guess Apr 19 05:58:42 oh right Apr 19 05:58:55 mail their union or something Apr 19 05:59:09 maybe i should just camp out up north, destines to be crazy fires this year in AZ :| Apr 19 05:59:10 or the Forest Service Apr 19 05:59:19 yeah, someone in the USFS uses the app Apr 19 05:59:25 like, one dude Apr 19 05:59:28 heh Apr 19 05:59:35 reach out to him Apr 19 05:59:54 is he not motivated to tell his colleagues about the app? Apr 19 06:00:20 well, here is the conundrum. in Play there is a thing, ithink when they buy the app, if you are allowed to contact them for various purposes Apr 19 06:00:26 via email Apr 19 06:00:28 ifigure dit out Apr 19 06:00:33 I had to type localhost:80 into my browser Apr 19 06:00:35 i almost always see that as 'no' Apr 19 06:01:00 but once in a while i'll get a feature request, i hold on to those contacts since we've already communicated Apr 19 06:01:38 if you don't have an open line of communication, reach out to USFS, also social media and aggregators and comment sites Apr 19 06:02:17 and to make things worse, i think the company that designs the device is coming out with an official app. at least they announced one for iOS Apr 19 06:02:22 Woo SQL is working ofr me ^^; Apr 19 06:02:37 thanks to the person who suggested WAMP now I can atleast continue learning sql and work on a backend test server Apr 19 06:02:37 so i don't really think i can compete with them; they have tons of marketing outreach, resources, etc Apr 19 06:02:40 I don't know anything about your app, but your target market does celebrated work, so it shouldn't be hard for you to get an article on a couple of sites about it Apr 19 06:03:00 I can't remember how to use JSON i just include it in my javascript and then load that javascript file in a seperate html5 file right? Apr 19 06:03:09 http://pastebin.com/QVKZd3KK - When i call getView() within the onClick method it returns null. how to fix? Apr 19 06:03:09 * pfn zzz & Apr 19 06:03:15 gnight pfn Apr 19 06:03:43 You can still be first to market on Android, and best in market on any platform. One of my most successful apps now has an "official" competitor and it's shit LOL - has actually driven sales of mine. Apr 19 06:04:09 chuckk help me plz Apr 19 06:04:23 yeah, their PC (and they don't even have mac) software is terrible; they aren't a sw company Apr 19 06:04:33 i think i can do better Apr 19 06:04:42 Koolaids, maybe the view is gone by the time you are at that point in the method Apr 19 06:04:49 Was it you asking about requestCode? Apr 19 06:05:03 let me pastebin something for you, gimme a minute Apr 19 06:05:07 I'm just wanting to access my editbox from within my dialog! Apr 19 06:05:18 Yeah, but after you've clicked the button. Apr 19 06:05:56 Oooh Apr 19 06:06:17 So maybe I should store the view in a variable? Apr 19 06:09:06 You should set up a listener Apr 19 06:09:56 Koolaids- it would be good now to follow through some of the Guides on d.android.com, look at apidemos, etc Apr 19 06:10:18 these questions indicate no effort has been extended in that ares so far ;) Apr 19 06:11:16 fuck up Apr 19 06:11:22 super helpful there pal Apr 19 06:11:42 I've been reading the dialog info on the android site Apr 19 06:13:09 keep reading Apr 19 06:13:34 "So maybe I should store the view in a variable?" this is basic Apr 19 06:13:56 Fuck you Apr 19 06:14:00 ;) Apr 19 06:14:08 Android development guide is incomplete Apr 19 06:14:26 it only shows the most basic of basic dialogs Apr 19 06:14:43 Koolaids- have you looked at the support library samples ? Apr 19 06:17:26 It's all good anyway, i fixed my problem Apr 19 06:17:26 That's a shame, I just typed this out for you: http://pastebin.com/SyB0FbJb Apr 19 06:17:45 k thanks everyone i'm brushing up on my javascript again! and maybe i'll be able to make this app soon using the webview feature. :D Apr 19 06:18:09 That's generally regarded as the best pattern. Your activity can call the static method on your dialog class and by implementing the listener it gets the callback Apr 19 06:18:19 solves a lot of issues with fragments Apr 19 06:18:47 sweet looking at your solution now cheers Apr 19 06:19:00 I just typed that in pastebin with a bit of copy and paste, not in an IDE, so it's more like pseudocode, there's parentheses and semicolons missing LOL Apr 19 06:19:35 Also, that's not the standard base dialog builder, but you get the idea Apr 19 06:19:37 is @override only good for if you want a custom version of an already defined function? Apr 19 06:20:00 that's what it indicates, it's syntactic sugar Apr 19 06:20:25 i was reading your code sample Chuckk it's neat but I don't understand it entirely (only cause I don't know what the objects being used are) Apr 19 06:20:44 it seems like a fragmented messaging system for inbetween app components though Apr 19 06:21:13 chuckk quick q about your code; how can mListener be null? its not cleared in onDetach ;) Apr 19 06:21:51 that's right, technically fragments shouldn't communicate with each other, but that's nonsense, of course they must. Apr 19 06:21:58 wow Apr 19 06:22:01 that's so interesting. Apr 19 06:22:07 you must know alot of fancy little things Apr 19 06:22:22 can you explain this bit in particular for me cause it seems like I may need something like this in the future. } catch (ClassCastException e) { Apr 19 06:22:39 i wouldn't bother with that, it will crash anyhow Apr 19 06:22:40 It has to do with casting of class types and passing them to another function but I don't entirely understand how this works. Apr 19 06:22:52 (it will be obvious if you mess thatup_ Apr 19 06:23:15 There's a load of half-assed ideas that aren't properly implemented in Android such as setTargetFragment that were proposed as the definitive solution to replace all that came before, then given up on when a new idea came along Apr 19 06:23:31 also requestcodes that someone was talking about before Apr 19 06:23:44 wow I didn't know the android system was so sketchy. Apr 19 06:23:45 you should understand the lifecycle of a fragment to understand the risks Apr 19 06:23:52 this is a solid pattern that works Apr 19 06:24:05 can android throw hardware crashes ? or is most of the stuff you do on an android system abstract from the hardware. Apr 19 06:24:41 That's a strange question REG. I think you may get the best results concentrating on a MySQL/PHP backend first Apr 19 06:25:13 okie Apr 19 06:25:22 I tend to ask strange questions XP Apr 19 06:25:43 I know alot more than I should about how code executes and not enough about how to program. Apr 19 06:26:09 As far as ClassCastException in that paste is concerned, the idea is that when a dialog is called up, the caller passes a reference to itself, that the dialog can then use to callback with a result when it's finished. For this there's an interface defined - I called it onKoolaidsDialogResult. If the caller doesn't implement this method, it won't work. Apr 19 06:26:28 If you don't catch the exception in this way, the app will crash. If you do, it won't - you just won't get a result. Apr 19 06:26:50 The caller passes a reference to itself. . . that's rather odd o.o Apr 19 06:27:02 why would the class it's calling need to know about the existance of the caller? Apr 19 06:27:03 But fundamentally, you wouldn't have finished writing your app yet if you're throwing that Apr 19 06:27:17 Pretty basic, it's like a reply-to address Apr 19 06:27:50 oh okay Apr 19 06:28:00 if I send you a message "show a dialog" without giving you any way to reply to me, how will I know what you did in the dialog? Apr 19 06:28:06 so I guess you don't have to worry about memory addresses as much in this environment. Apr 19 06:28:23 true. Apr 19 06:28:28 seriously, I feel that you are a little out of your depth Apr 19 06:28:37 "a little knowledge is a dangerous thing" as the saying goes Apr 19 06:28:55 You should probably read up on Dalvik and the JVM concept in general Apr 19 06:29:05 memory addresses are not your concern Apr 19 06:29:22 Do you know what garbage collection is? Apr 19 06:31:46 I kind of know what garbage collection is. isn't it basically just the act of trying to dispose of un needed symbols at run time ? Apr 19 06:32:46 Would you understand what I was asking you for if I asked you to build a smart pointer in C++? Apr 19 06:33:09 I know bits and pieces about how stuff works, I know the most about how procesors work but I'm not as familiar with virtual systems. I haven't really learned to use memory addresses properly but I toyed with C a bit and messed with malloc and memset and stuff once. Pointers in C++ are interesting to read about especially when you get around to pointers that change dynamically but those Apr 19 06:33:09 require things like complex re assignment.. that's like if you're making your own dynamic memory allocatio system. :/ Apr 19 06:33:33 right, you don't deal with memory addresses in Java like in C++ Apr 19 06:33:39 if I wer to do it I'd implement a linked list of some kind to keep track of the pointer. Apr 19 06:34:01 I'd have a few functions to abstract it such as last_pointer_addr() Apr 19 06:34:03 yeah, so basically Java is doing that as best as it can, when it can Apr 19 06:34:04 its still a useful technique in java Apr 19 06:34:05 and things like that. Apr 19 06:34:17 i'm very interested in getting dirty with hardware XP Apr 19 06:34:30 basically, if you know you are going to create a ton of garbage, and there is no way around it, allocate off heap memory and manage that Apr 19 06:34:31 you can help it out with things like WeakReference but you fundamentally do not manage your own memory Apr 19 06:34:43 I've been trying to learn C++ but it's not easy you basically need to learn libraries (my only limit) Apr 19 06:35:07 this is how all the high performance systems like lmax / chronicle work; where they don't allocate any objects *per event* Apr 19 06:35:07 as I said earlier, that's all languages basically. You're not useful unless you know the APIs Apr 19 06:35:20 yeah ^^; Apr 19 06:35:22 i'll have to learn some APIS Apr 19 06:35:39 the GC in android is pretty bad Apr 19 06:35:46 don't be sloppy Apr 19 06:35:56 oh right I have a question about java's exec function... could you wrap a whole series of commands in one exec call? Apr 19 06:35:59 honestly, just build your backend first, then you'll have the necessary motivation to hack up an Android WebView wrapper Apr 19 06:36:34 are you trying to run shell commands or is this about threading? Apr 19 06:37:01 I'd want it to execute java commands from within java.... o.o using exec. I kind of thought that's how it worked. Apr 19 06:37:11 and yeah, the GC is shit as g00s says. if you are doing anything memory intensive you will want to build it natively and wrap it JNI Apr 19 06:37:35 I had this idea once for dynamic self modifying code that could work recursively with java's exec commands... and use linked lists and a database to actually run adaptive code... that transmogrified itself over time based on the set limitations. (A ruleset) Apr 19 06:37:57 honestly, I feel like we would not be helping you getting into that Apr 19 06:38:04 at the time I didn't know enough about java to implement something like that. Apr 19 06:38:05 you would be best off using reflection for that Apr 19 06:38:34 I'm gonna start off simple :3 Apr 19 06:38:56 My issue is that I understand what's possible, and how i could potentially implement it bu without much hands on experience it's hard to really know how to do alot. Apr 19 06:38:59 get your webapp stable. it'll take you months to make it secure before you start worrying about other platforms Apr 19 06:39:08 alrighty :3 Apr 19 06:39:24 I was gonna use sha256 with salts for security Apr 19 06:39:39 everything you need is available for Apache Apr 19 06:39:45 woo Apr 19 06:39:46 ^^; Apr 19 06:40:18 when you get it working, you can setup an Amazon instance and get rich Apr 19 06:40:28 that'd be awesome ^; Apr 19 06:40:30 ^^; Apr 19 06:40:36 well, good luck Apr 19 06:40:48 I don't suppose you know anything about USB on Samsung devices LOL Apr 19 06:42:17 I know that it's a pain.. if it's a samsung device you can use KIes to connect the samsung device. Apr 19 06:42:28 Yeah, it's a bit more involved than that Apr 19 06:42:42 With a KIES plugin with the android kit you can root a samsung phone using certain tools, or you can do debug things as well. I did that with my samsung android phone. Apr 19 06:42:54 Yeah, that's not really my issue, thanks though Apr 19 06:42:59 oh okay what's the issue? Apr 19 06:43:10 I probably can't help but i'm resourceful Apr 19 06:43:20 haha okay give it a go then Apr 19 06:43:28 ok what are you trying to do? Apr 19 06:45:12 chuckk programming USB or connectivity issues ? Apr 19 06:45:55 perform a control transaction on endpoint zero of a USB device connected when in USB Host mode. Samsung's seem to need the index field set to a language ID or else they return STALL tokens. I'm trying to work out if this is universal to Samsung devices and so I can just get android.os.BUILD.manufacturer (or whatever it is) and hack like that Apr 19 06:46:46 host mode, hmm. he's pretty busy guy, but you may be able to get a hold of dragorn Apr 19 06:47:01 and if you're feeling resourceful, I would like to know how to get a multicast lock on an interface that isn't the wlan0 Apr 19 06:48:13 multicast... are you talking about the wifi card acting as both the host, and client.. giving itself as an AP while also connecting to another AP? Apr 19 06:49:05 not quite, I'm pretty sure this is another example of Android's rough edges. I don't think it's possible on an unrooted device Apr 19 06:49:33 but yeah, you can't get a multicast lock on the wi-fi when in AP mode either Apr 19 06:50:48 wierd. Brb. Apr 19 06:52:58 backity back back Apr 19 06:53:30 Would it be a good idea since I have no idea how many players are going to sign up, to have a seperate database for each player's deck of cards? And each player's collection of cards? Apr 19 06:54:01 Database Architecture is complicated. Learn about Normal Forms Apr 19 06:54:59 okay Apr 19 06:57:32 it seems complicated. Apr 19 06:57:42 These look like some (mathematically difficult) standards to meet. Apr 19 06:57:43 I told you! Apr 19 06:57:48 I wasn't planning to use a key for each entry. Apr 19 06:58:06 but come to think of it I should learn to follow standards. Apr 19 06:58:07 yeah, well knowing whether to is the basis of what's being described Apr 19 06:58:23 Hi, i have a question to ask. I created an activity to fetch location and speed and passed 300000 millisec to requestLocationUpdates (for every 5 minutes). Minimum sdk is set to 14 and max to 17 for this application .When run on Samsung Note3 it works fine, but on samsung y gt-s5360, it gets updates after every one minute.Also note3 is 4.3 ie api 18 and gt-s5360 is 2.3.5, so is there some code incompatibility problem with older version, any package or somet Apr 19 06:58:23 hing is required to get it work properly? Apr 19 06:58:58 how are you waiting? Apr 19 06:58:59 android is flaky like that ;) Apr 19 07:00:00 I would just filter out responses that came too soon Apr 19 07:00:11 can i fix it by importing some package,or using some flags, or converting millisec to minutes or something? Apr 19 07:00:27 I'll describe the heiarchy I might need. I need a list of all registered players, their names. So I have a players database, and an option for player nicknames. I'm thinking of having a seperate more secure database specifically for player accounts including the passwords, email etc. Then I need, a database for the cards each player owns, and the cards each player's deck has. The decks Apr 19 07:00:27 can be edited and players may even have the option to save multiple deck configurations. The reason it has to be like this is because when players battle eachother they will choose a card to give up if they lose at the start of the match. If the card data was stored client side players could easily hack this data, which would ruin the appeal of the game to other players. Apr 19 07:00:45 SanB i guess you could try location APIs from play services Apr 19 07:02:26 i'm using database to store those updates after 5 mins and i'm not using GCM Apr 19 07:02:37 SanB just flag it. ACTION_TIME_TICK is reliable across devices if you have sufficiently granular intervals. Just only do something every 5 minutes regardless of how often you receive an update, although my current favourite toy is ConditionVariable Apr 19 07:02:43 it could just be a problem with samsung's GPS driver, who knows Apr 19 07:02:52 samsung is no stranger to GPS issues :) Apr 19 07:03:38 ok so I know how to go about this now. I'll need a sign up page. Apr 19 07:03:49 and i'll use php_session Apr 19 07:03:54 RedEyedGirl these aren't android questions Apr 19 07:03:55 that seems secure enough right? Apr 19 07:03:59 i'm sorry XP Apr 19 07:04:04 i'll stop Apr 19 07:04:17 yes, especially we don't talk about PHP here Apr 19 07:04:23 especially PHP Apr 19 07:04:27 REG: these questions are better suited for a database channel. In short though, the more databases you have, the more joins you will need, which is bad for performance. Apr 19 07:04:51 Design it right at the start or you will spend forever making up for it in the future. Apr 19 07:05:27 *tables not databses Apr 19 07:06:10 last database comment - learn about sanitising your inputs. php_session is horrendously vulnerable Apr 19 07:07:08 okay thank you for that. Apr 19 07:07:30 that's two separate comments btw Apr 19 07:13:08 chuckk, thanks , i'll try the flag, i have used a condition also that if speed is >=20(in kph) then it should dump values in DB, but it does not work that way also, and when i change it to speed>=0, it starts sending data to DB. So its confusing that why its working for one value and not for other. Apr 19 07:13:08 g00s, thanks Apr 19 07:15:20 I'm still very new to Android so not too sure how to check this, but I have two different Android sdk folders on my Mac and I'm trying to figure out which is the most recent. Apr 19 07:15:26 Is there an easy way to do this? Apr 19 07:16:06 it should be named to reflect the date Apr 19 07:17:23 One is called, 'adt-bundle-mac-x86_64' and the other is 'adt-bundle-mac-x86_64-20131030' which could be my fault bankai_au Apr 19 07:20:56 bye all Apr 19 07:39:44 lol I did something stupid I was trying to use php without putting it into the localhost folder >.< It wasn't working I thought my code was wrong. Apr 19 07:51:55 bankai_au i remember reading a story about a store in brisbane, that charges everyone $5 a browsing fee (walking in). is that common over there ? Apr 19 08:21:28 Wow, even banks gave up on charging 5$ to talk to tellers Apr 19 08:23:00 Hello Apr 19 08:24:18 What about using Eclipse android ADT with openJDK ? Apr 19 08:24:25 capella i think it was because people came in, looked at something, and then purchased online Apr 19 08:26:54 Still sounds like a bad idea ... sometimes people look, think about things shop around, come back and buy Apr 19 08:27:20 Sounds like a reason to just not ever go to that store ever Apr 19 08:28:37 depends on the shop... there's a well known tourist shop in South Africa that does the same, they can get away with it due to the permanent influx of tourists who want to see the insides ;) Apr 19 08:28:47 Banks a different story but kinda similar ... I already pay for my banking and they make cash off the interest also, so 5$ buys me what?? Apr 19 08:30:27 like when was financial sector not been a vampire squid :) Apr 19 08:30:37 s/was/has Apr 19 08:31:04 a parasite http://www.rollingstone.com/politics/news/the-vampire-squid-strikes-again-the-mega-banks-most-devious-scam-yet-20140212 Apr 19 08:31:40 hm, that may have been the wrong article :| Apr 19 08:31:51 hehe - I've worked in banking for 15+ years ... and yah, we live to find ways to make money :) Apr 19 08:31:52 But charing for these things just screams we don't know or care who our customers are Apr 19 08:32:00 *charging Apr 19 08:33:00 ah yes neweconomicperspectives.org/2014/03/financial-sector-greatest-parasite-human-history.html Apr 19 08:33:19 ah the repeal of glass-steagal ... what a mess that has become Apr 19 08:33:42 how is it going Chainfire Apr 19 08:34:29 I suppose the boutiques can get away with it - high end customers pay for that Apr 19 08:35:38 same old same old, g00s. would you happen to have a few highly skilled yet cheap devs for rent? ;) Apr 19 08:37:29 i'm pretty isolated here in AZ - hardly know anyone - and no devs. this place is like FIRE + crazy people Apr 19 08:37:39 so move :D Apr 19 08:37:43 yeah ;) Apr 19 08:38:00 nice place for photography though :D Apr 19 08:38:10 central america is cheap and has nice weather Apr 19 08:38:20 aye Apr 19 08:39:51 this I/O will be interesting. wondering if they are changing the design guidelines again Apr 19 08:40:15 probably... Apr 19 08:41:32 Chainfire submit to the ticket lottery ? Apr 19 08:41:38 of course Apr 19 08:41:41 :) Apr 19 08:41:51 I didn't search for the easter eggs... I didn't know they were there until they were gone :P Apr 19 08:42:49 chainfire: what skillsets are you looking for? advanced java presumably? Apr 19 08:43:25 capella my own. seeing as they would be doing the work and I would be sitting back sipping martinis Apr 19 08:43:37 heh - that's the way Apr 19 08:43:51 so someone who can do everything I currently do would be perfect :) Apr 19 08:44:45 i wish you good luck on your candidate hunt :D Apr 19 08:46:24 I've been doing too much javascript for mozilla to advance my java skillsets to where I'd like them to be ... though some recent patchs have sucked me in Apr 19 08:52:51 as someone literally just starting out is it OK to use FileOutputStream and FileInputStream for IPC between java and a native precompiled C application as opposed to the JNI? Apr 19 08:53:37 everything that works is OK Apr 19 08:53:47 I would prefer using different methods, though Apr 19 08:54:08 damn didn't expect on this day of my life i'd be talking directly to the supersu developer ;D Apr 19 08:54:14 nice to meet you Apr 19 08:54:52 how about the play store.. i can distribute binaries through the play store update mechanism right...? Apr 19 08:55:38 ... yes ? Apr 19 08:59:11 so, uhh, Apr 19 08:59:34 what are the "different methods" you have in mind? Apr 19 09:00:18 JNI - as you suggest yourself - would be a good alternative to use file streams Apr 19 09:00:21 *using Apr 19 09:04:36 Java's for faggots all hail C#.NET Apr 19 09:07:39 omi Apr 19 09:13:42 damn; gradle brows up with NPE Apr 19 09:54:19 Sure, but take down an AS/400 for 4 hours and get your co-workers an afternoon off ... now that's a trick! Apr 19 09:55:38 Hi all im lookoing to change the color of a Textview inside a swipe fragment by button click http://pastebin.com/zjVBNj43 Button click dioes happen but how do i change the textcolor of the given view page Apr 19 09:59:58 the trick is to call into a system routine using a pointer with a backwards endian-ness from the environment you just came from Apr 19 10:04:26 The old reversed endianness textview trick. Apr 19 10:35:44 hi guys is possible execute asynctask without progressdialog? Apr 19 10:42:31 yes, yes it is Apr 19 10:47:14 um Apr 19 10:47:39 How can I make dialog title center? Apr 19 10:47:52 I'm using old-style Dialog class Apr 19 10:49:43 Is there a way to ship images inside the apk so that I can open them with openFileInput? Apr 19 10:59:19 Yo anyone awake? Apr 19 11:15:14 HAAAAAAAAAAAAAY Apr 19 11:15:17 ANYONE CAN HELP ME!? Apr 19 11:15:37 if they could and wanted to, they would have replied. What you just did assures no one wants to Apr 19 11:16:39 compac is there any reason you need to do it with openFileInput rather than via resources or assets? Apr 19 11:17:51 Chainfire, Yes, so that I won't have to differentiate from where to load the images in my asynctask. I can ship my app with a limited number of images due to size constraints. Anyways, it's not a big deal Apr 19 11:18:10 look mate I'm looking for something really simple that I just can't find on google. I just want to be able to center the title of my dialog. I'm using the old Dialog class. Apr 19 11:18:11 And I'm downloading the rest on the internal storage Apr 19 11:18:32 Koolaids-: there is no way to do that Apr 19 11:19:05 unless you measure the screen width and the dialog width and add the right amount of spaces to the left of the title Apr 19 11:21:19 schmooz...that's so fucked in the head. what the fuck are the android devs smoking Apr 19 11:21:44 compac, just use URIs for file paths and add images to assets Apr 19 11:21:45 compac, http://stackoverflow.com/questions/4820816/how-to-get-uri-from-an-asset-file Apr 19 11:21:46 such a simple basic feature omitted Apr 19 11:23:12 Koolaids-: that's why they make custom dialogs Apr 19 11:23:32 shmooz, I strongly advise against wasting time with this troll ;) Apr 19 11:23:50 It's just... the old style dialogs are so much more straight forward and simple than the new ones Apr 19 11:23:54 Mavrik: lol, ok Apr 19 11:24:07 Like, it takes about 3 times as much code to do the same thing in the new style dialogs Apr 19 11:24:09 shmooz, he does that regularly :) Apr 19 11:24:26 fuck up Mavrik you dont know me!!!!!!! Apr 19 11:34:57 Mavrik, The internal storage path is different from that of /assets Apr 19 11:35:33 I don't understand how I can use URIs such that given a file name it will look in both /assets and internal storage to find it. Apr 19 11:36:54 I mean internal storage as in private to the app not inside the /assets folder. Apr 19 11:41:57 compac, I'm not sure what exactly is unclear to you Apr 19 11:42:16 an URI can point to a file on filesystem, file in apk under assets, a resource in content provider, a http resource, or anything else Apr 19 11:42:23 you open it and get an input stream from it Apr 19 11:42:25 then you read data. Apr 19 11:42:32 what exactly is unclear? Apr 19 11:43:59 use ContentResolver.openInputStream Apr 19 13:34:16 mh did they change something with kitkat regarding wifi adb? i cant connect anymore to S4 with kitkat over wifi Apr 19 13:45:33 i’m finding heaps of answers for autosizing the text inside a textview, but i want to autosize the layout to the text… how can i do that? Apr 19 13:46:37 something like sizeToFit in ios Apr 19 13:53:30 ultra-: set the layout height or width to wrap_content Apr 19 13:53:47 and add padding if you like Apr 19 13:53:47 thanks shmooz Apr 19 13:53:59 ok Apr 19 14:01:38 this is my first time using android sdk in while, and I forgot how to push apk(s) located in \sdk\platform-tools and receiving "not found error"! ... any assistance? Apr 19 14:06:05 er. Apr 19 14:06:08 huh? Apr 19 14:25:02 fuck off Apr 19 14:26:29 no you Apr 19 14:26:36 or something Apr 19 14:54:00 hi anyone tried the new ConsumerIrManager API on S4 yet? Apr 19 14:54:25 my app freezes when calling getCarrierFrequencies() any idea what it could be? nothing in Logcat Apr 19 14:59:39 thread dump and see where Apr 19 15:17:15 i don’t know why this is so hard… i want to make an area of text (word wrapped), set the bounds i want it to be in, and have it centered vertically and horizontally Apr 19 15:24:40 ultra-: can i help? you trying to draw a string to a canvas? Apr 19 15:25:27 i can do that, but i figured that using a TextView would be easier Apr 19 15:25:29 it’s not Apr 19 15:25:42 the only thing i don’t get is line breaks when drawing to the canvas Apr 19 15:25:51 maybe i can just put in a \n Apr 19 15:25:53 wait Apr 19 15:25:57 why not use a TextView Apr 19 15:26:05 explain what you want your result to be Apr 19 15:26:10 doesn’t center vertically Apr 19 15:26:16 ok Apr 19 15:26:19 yes it does Apr 19 15:26:45 ok, want to set the actual sizes of the area, and then have the text be in the middle of that area Apr 19 15:26:49 android:gravity="center_vertical" Apr 19 15:26:51 ? Apr 19 15:26:56 so that it wraps within the actual size Apr 19 15:27:02 that’s never worked for me, i’m doing this via code though Apr 19 15:27:05 lol Apr 19 15:27:08 works fine for me Apr 19 15:27:19 ok, i will try it again Apr 19 15:27:26 later on though, i have to go now… thanks Apr 19 15:27:59 np Apr 19 15:29:42 I'm trying something fancy with my android app. I want to display a viewpager (which shows different listviews) inside another listview which shows a header view on top (~50% of the screen height). Very similar to this https://www.dropbox.com/s/noc9uwbekcymghk/Screenshot%202014-04-18%2014.58.55.png . Now the problem is: I can't put a viewpager displaying a listview into another listview or else my scrolling logic will break. Any Apr 19 15:29:43 ideas how I could solve this problem? Apr 19 15:30:38 left/right swipe inside the viewpager ( bottom half of the screen) will show another listview Apr 19 15:31:34 the user should be able to scroll the whole thing up and down, while stille being able to swipe to the left/right viewpager page Apr 19 15:31:51 MrMaffen: why does the top level have to be a listview? Apr 19 15:32:05 sounds to me like you want the top level to be a framelayout Apr 19 15:33:06 Napalm: but then I wouldn't be able to scroll down and see the headerview disappear Apr 19 15:33:31 I would have a static headerview on top and a viewpager containiing listviews on the bottom Apr 19 15:33:34 yes you would Apr 19 15:33:54 yea but the headerview should be included in my scrollview Apr 19 15:34:09 so that the user can scroll the whole thing up and down, and not only the bottom half Apr 19 15:34:21 nope Apr 19 15:34:24 one moment Apr 19 15:34:32 Napalm: sure Apr 19 15:34:33 will code you an example Apr 19 15:34:39 Napalm: awesome thanks :) Apr 19 15:38:19 MrMaffen: what are the names of the pages of the view pager? Apr 19 15:38:37 Feed, Favorites, Charts? anthing else Apr 19 15:38:39 *anything Apr 19 15:38:45 Napalm: no just the three for now Apr 19 16:06:55 MrMaffen: see PM Apr 19 16:45:43 hi guys i have a splashscreen... is possible execute a asynctask into splashscreen? Apr 19 16:54:07 DhcpInfo.leaseExpires - is the value returned in seconds or what? (from the present time? from epoch?) - It doesn't seem to be properly documented anywhere, anyone know? Apr 19 16:54:40 hey, i need help regarding progaurd on my project. im trying to run progaurd to obfuscate and im getting these errors -> http://paste.debian.net/94565/ and lot more like it. what should i do? Apr 19 16:55:12 im using http-client jar files and android-support jar files in my project's libs folder Apr 19 17:03:01 Is there any way to loop a song with mediaplayer seamlessly so there's not a half-a-second gap. I've tried wav, mp3, and ogg, but no dice. Apr 19 17:25:03 anyone/ Apr 19 17:25:04 ? Apr 19 19:02:45 hi Apr 19 19:02:50 can somebody help me ? Apr 19 19:08:58 I have three tabs in my app but when i view it through the eclispe editor, I don't see those tabs. How to I edit the contents of them? Apr 19 19:09:53 there is the apache package in the android package Apr 19 19:09:56 http://developer.android.com/reference/org/apache/http/package-summary.html Apr 19 19:10:11 can I download it separatly for desktop version of my game ? Apr 19 19:10:58 I'm porting my game for desktop Apr 19 19:11:09 is it possible to use apache in desktop version ? Apr 19 19:12:24 Yes Apr 19 19:14:26 hello Apr 19 19:16:25 what could be the best way have a global class storing some data between fragments? Apr 19 19:17:27 can i just instantiate the class in the main activity? and get it on each fragment? and that variable wont be lost when the app pauses or something? Apr 19 19:18:45 if the only reference lives in the main activity the object gets possibly gc'ed when the user rotates the screen Apr 19 19:19:39 dunkel2: you cann *pass* data via intents and you can *store* data via user settings.. a global class is never a good idea Apr 19 19:24:18 Can I still get location updates without using a wakelock? Apr 19 19:39:04 Hey everyone, I have a quick question about using an action bar and navigation drawer at the same. My action bar contains a spinner, and I want to hide the spinner when I open the drawer. Here's what it looks like currently: http://i.imgur.com/jczwNwY.png Any ideas? Apr 19 19:39:14 I couldn't figure out how to get access to the spinner view to hide it. Apr 19 19:46:49 "Error parsing XML: unbound prefix" when using android.support.v4.view.ViewPager? I have used the exact code fine in another layout? Apr 19 19:49:10 Ahh figured it out. Forgot xmlns:tools="http://schemas.android.com/tools" Apr 19 19:49:52 hello Apr 19 19:49:58 Does android screen rotation call onPause() Apr 19 19:49:59 ? Apr 19 19:50:25 Moony22: yes Apr 19 19:50:32 it also calls onDestroy Apr 19 19:50:38 ouch Apr 19 19:50:42 That's annoying Apr 19 19:51:29 There is no way to have a method without orientation changes? Eg. going back to home screen and locking screen will call this method but orientation will not Apr 19 19:52:39 Wait, it doesn't necessarily call onDestroy. Apr 19 19:52:50 Even leaving the activity doesnt necessarily call that. Apr 19 19:52:58 Moony22: the piont is that the activity is destroyed on rotation.. so it would be wrong to not call those callbacks Apr 19 19:53:28 Anthaas: it does... leaving does not call it as leaving does not necessarily destroys the activity Apr 19 19:54:19 ohcibi: Okay, I understand, but there is no other way of doing what I want? Eg, I want the application to close when it is left/screen is locked but not screen rotated Apr 19 19:54:41 Moony22: the application si not closed on screen rotation.. the activity is restarted Apr 19 19:55:00 Moony22: i.e. you have to store important data in onpause and restore them in onresume Apr 19 19:55:04 or similar Apr 19 19:55:16 using savedInstanceState :D Apr 19 19:55:28 or whatever you should choose to call your bundle. Apr 19 19:57:45 ohcibi: yes, but I want to close it when the activity is left Apr 19 19:57:52 Moony22: why? Apr 19 19:58:18 Moony22: android handles that for you and the user, you only have to care about background tasks Apr 19 19:58:29 It's going to cause issues with the camera Apr 19 19:59:05 stop that very service in onPause of the activity of that service Apr 19 19:59:16 restart it in onresume Apr 19 20:04:37 Hey guys, I'm in the process of implementing the Google Play Services SDK Ads, and have my Interstitial Ad showing properly, but I'm not finding any good information on the request restraints (such as 5 impressions per user session?). If that is something I have to manually track and then 'stop requesting ads after 5 impressions', do any of you have any good links to a good example of how Apr 19 20:04:37 to best implement that count/tracker? Apr 19 20:06:14 ugh, why does screen orientation have to be such a big deal... how can googles camera apps implement it so well? :( Apr 19 20:06:25 ohcibi: can i store an object in the user settings? Apr 19 20:06:54 Moony22: they don't save anything Apr 19 20:06:58 when changing the orientation Apr 19 20:07:19 what? o.o Apr 19 20:07:29 ohcibi: well what i need is to store information the user selects on each fragment , each fragment is like steps in a form, so on each screen the user make some choices that i want to store, what do you recommend me to do? Apr 19 20:07:36 Moony22: you wont notice the orientation change unless you have any data on the view visible that gets changed after the activity has started Apr 19 20:07:59 Moony22: so the camera just restarts which is already handled by the OS Apr 19 20:08:26 I guess, but the AOSP camera/google camera does it flawlessly Apr 19 20:08:29 dunkel2: you can store anything parceable Apr 19 20:08:43 and it does have data on the view visible that gets changed Apr 19 20:09:40 Moony22: the camera settings are stored and re-requested permanently anyways... Apr 19 20:10:36 Moony22: make a sample app, one textview, one button, one input, the button sets the text of the textview to the value of the input.. rotate the screen and make the value on the textview persist.. its no magic Apr 19 20:11:55 I guess, but for example with the google camera it looks like the position of the camera button just moves...no rotating Apr 19 20:12:34 ohcibi: user preferences are SharedPreferences? Apr 19 20:12:40 dunkel2: yes Apr 19 20:13:01 Moony22: thats because the world behind the lense is not rotating 8-)) Apr 19 20:13:58 ... Apr 19 20:14:06 Moony22: have some real fun: make a sample app, one video view, start a video that has long nonmoving pictures in it (e.g. a screencast), rotate the screen and make the mediaplayer resume the video _exactly_ at the second when you rotated Apr 19 20:15:18 Moony22: i'm serious the camera view has no borders, you cannot see its rotation even if you want to Apr 19 20:15:42 But you can see a buttons rotation Apr 19 20:15:57 you set it rearranged? Apr 19 20:16:27 see or set? Apr 19 20:16:36 said Apr 19 20:16:51 * Moony22 is confused Apr 19 20:16:56 and I told you that the activity gets restarted.. so there is no rotation in sense of an animation anyways Apr 19 20:17:05 Is there an Android guide regarding implementing undo functionality in Android? Apr 19 20:17:17 I can't seem to find one. (Though it is hard to google this.) Apr 19 20:17:40 ohcibi: Do you think there is a rotation in the google camera? Apr 19 20:17:52 I mean, sorry, it restarts during rotation? Apr 19 20:18:53 when the user rotates its devices, androids asks the app if the activity is allowed to be displayed in the other orientation... if yes, the current activity gets destroyed and directly restarted to reload the layout and arrange its views on the new orientation Apr 19 20:19:37 ohcibi: http://www.youtube.com/watch?v=zphCILZ9zX0&t=1m44s Apr 19 20:20:39 Moony22: the videos shows exactly what I described... the view is completely filled with the camera and a centered symmetrical square Apr 19 20:20:55 Moony22: you cannot see anything there when this gets rotated/rearranged/whatever Apr 19 20:21:11 it will always look the same because of its geometry and the fact that the world behind the camera doesnt move Apr 19 20:21:16 ohcibi: Yes, but you can see that the buttons on the outside rotate Apr 19 20:21:44 aqh Apr 19 20:21:44 ah Apr 19 20:21:46 easy Apr 19 20:21:58 they just animate this way onResume Apr 19 20:22:12 detecting somehow that the screen has rotated.. Apr 19 20:22:15 but THAT is indeed hard Apr 19 20:22:17 kinda Apr 19 20:22:29 because there is no boolean "hasRotated" or anything... Apr 19 20:22:32 it sucks, i know Apr 19 20:22:44 I guess surfaceChanged doesn't count? :p Apr 19 20:23:13 not sure tbh, but I have recently googled this and still found nothing.. Apr 19 20:25:42 It's just annoying...since it can take up to 8-10 seconds to rotate Apr 19 20:25:59 oO Apr 19 20:26:00 well, up to 5-6 really Apr 19 20:26:04 why? Apr 19 20:26:26 not most of the time, but sometimes when I'm rotating my app and I quickly rotate it again and again Apr 19 20:26:49 just counted that time, 14 seconds Apr 19 20:27:00 lol Apr 19 20:28:02 this is like the one thing that I'm trying to set apart from other apps of the same sort Apr 19 20:28:05 rotation Apr 19 20:28:36 most apps tend to just forbid landscape mode, but that never saves you from thinking about storing data onpause and resume and stuff... rotation is actually a good thing to test the app on this Apr 19 20:29:06 and often the first thing that makes you aware of it Apr 19 20:29:30 ohcibi: most of the apps of similar sort to my app I'm developing force landscape mode...not even reversed landscape... Apr 19 20:30:04 good, so you wont forget this part 8-) Apr 19 20:31:29 I understand why they didn't include the rotation... :p Apr 19 20:34:39 frankdoyle, heyy remember me? You helped me with a custom view i wanted to implement Apr 19 20:35:12 just to let you know, it's working great and I'm getting exactly what I wanted without making any calculations in my tight loop :) Apr 19 20:38:35 remind me why I'm continously ignoring this error? Apr 19 20:40:15 I remember Apr 19 20:41:03 it's a wontfix Apr 19 20:52:40 Is it bad practice to call finish() from a static method? Apr 19 20:54:35 eg. activity.finish() Apr 19 21:03:03 Does a toast last? Apr 19 21:03:06 After closing the application? Apr 19 21:06:42 Can anyone tell me what is wrong with this code? http://pastebin.com/gh8TxhH2 Apr 19 21:07:10 I'm getting the error message, yet no toast and it finishes by a nullpointer exception instead of finishing properly Apr 19 21:07:24 as in, Log.d is working I think Apr 19 21:11:02 you are dereferencing a null pointer Apr 19 21:12:14 say Activity A is the hierarchical parent of Activity B. on entering Activity B, Activity A's onSaveInstanceState() is called. how do you get Activity A to restore its state after pressing Up on Activity B? Apr 19 21:12:36 it seems like the savedInstanceState is null every time Apr 19 21:14:52 it's null if it's been destroyed and teh system tries to be transparent about it Apr 19 21:15:05 but if it's not destroyed then it's just started and resumed normally.. Apr 19 21:15:36 http://developer.android.com/training/basics/activity-lifecycle/recreating.html Apr 19 21:17:29 is there anything wrong with this code? http://pastebin.com/gh8TxhH2 Apr 19 21:18:26 if there wasn't, why would you ask Apr 19 21:18:39 Zharf: so Activity A's apparently been destroyed. but shouldn't savedInstanceState not be null if onSaveInstanceState was called? Apr 19 21:19:21 Moony22: seems okay Apr 19 21:19:40 Zharf: there is Apr 19 21:19:58 The problem is, I'm getting a nullpointer exception Apr 19 21:20:09 I know why, it is because this method is returning null Apr 19 21:20:28 Mango_Man, there's probably some issues with your backstack handling or somethign Apr 19 21:20:30 it correctly logs, but the toast does not show and activity.finish(); apparently does not work either Apr 19 21:20:54 the "Log.d("TAG", e.getMessage());" line DOES work Apr 19 21:21:47 is activity.finish() the correct thing to call here? Apr 19 21:22:35 Moony22: could be that activity doesn't refer to anything since you're in a static method Apr 19 21:23:30 Mango_Man: ah...but surely it would do if I initialised it at the beginning of onCreate? Apr 19 21:24:10 Moony22: don't quote me on this, but i think static methods can't refer to instance variables Apr 19 21:24:19 hmm Apr 19 21:24:35 Mango_Man: do you know how I can completely close the application from a static method? Apr 19 21:25:04 Moony22: throw a runtimeexception Apr 19 21:25:11 lol Apr 19 21:25:13 :D Apr 19 21:25:18 -.- Apr 19 21:25:24 There already is a nullpointerexception Apr 19 21:26:35 so I cannot do so? Apr 19 21:27:10 system.exit(0) Apr 19 21:27:10 ? Apr 19 21:27:14 Moony22: maybe there's some app.exit() function, try googling it? Apr 19 21:27:45 I have Apr 19 21:27:59 Moony22: though if this is just for debugging, then just throw an exception that you can analyze in logcat Apr 19 21:27:59 I only found System.exit(0) which is a bad way Apr 19 21:28:13 dont stop the app, stop the service Apr 19 21:28:16 Mango_Man: this is not just for debugging Apr 19 21:28:33 What ohcibi? Apr 19 21:29:27 Moony22: iirc you want to exit your app because of some strange behaviour with the camera, instead of exiting the app, you should stopp the service that bothers with the camera in your app Apr 19 21:29:59 10. Important: Call release() to release the camera for use by other applications. Applications should release the camera immediately in onPause() (and re-open() it in onResume()). Apr 19 21:30:06 from http://developer.android.com/reference/android/hardware/Camera.html Apr 19 21:33:21 Quick question regarding app icons, i have now made an icon for every dpi (ldpi, mdpi, hdpi, xdpi and xxdpi) so i was wondering how i tell the manifest file to chose which dpi to use? Apr 19 21:33:46 the dpi of the device tell which dpi to use Apr 19 21:34:37 Ok, but what should i write in the android:icon label? Apr 19 21:34:46 the name of the icon Apr 19 21:34:49 ohcibi: I tried releasing in the try clause Apr 19 21:34:50 I've named the icons with different names tho Apr 19 21:34:54 If I want to stop my view pager from transitioning with swipes and only on button press. How is this done? XML on the ViewPager or Java? Apr 19 21:35:04 it now causes a nullpointerexception EVERY time Apr 19 21:35:07 do they all need to have the same name? Apr 19 21:35:07 jutsi: thats wrong Apr 19 21:35:21 ohcibi they need to all have the same name? Apr 19 21:35:44 Moony22: read what it says: release it in onPause and reopen it in onResume.. as I told you before you actually have to care about the apps lifecycle.... Apr 19 21:35:55 jutsi: they go in different directories Apr 19 21:36:17 ohcibi yes im aware Apr 19 21:36:28 but should i name them with different names or should htey all be named the same? Apr 19 21:36:35 jutsi: each resource in a -suffixed resources directory is considered identically if it has the same name across the directories Apr 19 21:37:44 ohcibi so if i name them all the same, it will pick the right one depending on which dir. the android device choses? Apr 19 21:37:49 jutsi: the OS then selects the correct directory based on the devices specs.... Apr 19 21:38:20 so you can "override" each resource for each device spec like dpi and locale Apr 19 21:38:30 and landscape and portrait and so forth Apr 19 21:39:18 ohcibi thanks :) Apr 19 21:46:40 I really am getting nowhere ohcibi...I've released the camera in onPause and onResume...I'm still getting an error connecting to camera: 0 Apr 19 22:01:11 hey guys Apr 19 22:01:21 happy 420 eve to everyone Apr 19 22:03:03 what's 420 eve Apr 19 22:03:16 how can I check if the device has a camera? Apr 19 22:03:20 sorry Apr 19 22:03:23 I mean, if the camera is available Apr 19 22:03:48 Mango_Man: it's the day before 420 =) Apr 19 22:04:08 nick9998: is 420 a holiday? Apr 19 22:04:19 yes , to some Apr 19 22:04:33 rastafarians unite! Apr 19 22:04:33 and it's tomorrow! Apr 19 22:07:58 Hey guys, does anyone know of a better method to match a resource to a string than a helper method that switches on the name and returns the resource ID based on the case? Apr 19 22:08:35 because that's the implementation i currently have, but i'm getting close to 90 different cases, im wondering if you guys think a hashmap might be a better implementation or something Apr 19 22:10:12 Resources#getIdentifier and Resources#getResourceName depending on what direction you want to do Apr 19 22:10:47 Or getResourceEntryName Apr 19 22:12:17 weird, is this some kind of bug? savedInstanceState is null when you hit the Up button and resume the parent activity Apr 19 22:12:49 Hi Everyone :) Apr 19 22:13:07 hello Apr 19 22:13:49 I'm in the process of implementing the Google Play Services SDK Ads, and have my Interstitial Ad showing properly, but I'm not finding any good information on the request restraints (such as 5 impressions per user session?). If that is something I have to manually track and then 'stop requesting ads after 5 impressions', do any of you have any good links to a good example of how to best Apr 19 22:13:49 implement that count/tracker? Apr 19 22:14:18 Mango_Man, up button as in action bar "home as up"? how did you implement it Apr 19 22:14:46 SimonVT: i dont know if that'll quite work Apr 19 22:14:47 Quick Question: I am trying to use the Google Play Services in my app. Following through all the steps in the docs. When it comes to calling mGoogleApiClient.connect(), the app crashes with this message: E/AndroidRuntime(23303): java.lang.IncompatibleClassChangeError: The method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' was expected to be of type interface but instead was foun d to be of type virtual Apr 19 22:14:57 basically what i'm doing now is inputting books into a DB Apr 19 22:15:03 Mango_Man, sorry I got a little focused on this supernatural episode.. Apr 19 22:15:17 and if i have a resource that matches the name of the book, i want to set the imageview to that resource Apr 19 22:15:18 Zharf: what season are you on_ Apr 19 22:15:27 last aired episode Apr 19 22:15:31 Zharf: yep, that button. the parent activity is specified in my AndroidManifest.xml via android.support.PARENT_ACTIVITY metadata. Apr 19 22:15:42 Sweet. I should catch up ;) Apr 19 22:15:42 SimonVT: so I don't really know how using #getIdentifier would help me much Apr 19 22:15:58 now back to my issue, has someone stumbled across issue like mine? Apr 19 22:16:20 Zharf: onDestroy() is called for rotation *and* for going to child activities, but savedInstanceState isn't null upon recreating an activity after rotation Apr 19 22:16:29 Either no one has posted about it or I am not a very smart person when it comes to googling Apr 19 22:18:18 Zharf: d'oh, back stack != up stack :( Apr 19 22:19:54 i should write an irc bot that queues up people that need help Apr 19 22:20:10 and assigns stackoverflow karma to usernames Apr 19 22:20:42 haha that'd be super bad-ass Apr 19 22:20:47 The method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' was expected to be of type interface but instead was found to be of type virtual .. Can anyone explain this error please? Apr 19 22:21:09 deadman87: what do you want to know? Apr 19 22:21:55 I want to know how do I go about resolving/working around this error. I have a basic app where I am connecting to Google Play Services Apr 19 22:22:00 it compiles fine. Apr 19 22:22:14 but when running, it FC's immediately with the abovementioned error Apr 19 22:26:08 Mango_Man, I'm pretty sure it might still use the same instance for the activity... the fields should have the same values iirc... I can't verify right now though Apr 19 22:27:01 Is there a way I can stop the ViewPager from moving pages by swiping and so that it does it on button press only? Apr 19 22:27:18 Anthaas, by simple overriding, yes Apr 19 22:27:32 Ahh brilliant. Any hint as to the function? Apr 19 22:27:49 Im assuming then I have to subclass ViewPager? Apr 19 22:27:55 So I guess no one can help me out here? :( Apr 19 22:29:06 Anthaas, sec, let me open up my project Apr 19 22:29:25 Zharf: ooh, so the Back button restores the state, but the Up button does not. apparently this solves it: http://stackoverflow.com/questions/16354308/restoring-state-in-android-when-using-the-up-button Apr 19 22:29:32 what a gotcha Apr 19 22:29:47 there should be a git repo of android gotchas somewhere Apr 19 22:31:32 Anthaas, https://gist.github.com/anonymous/c700da472fb9457fc632 Apr 19 22:32:10 Hey all, I have need to create an Activity that will present editing fields for an user-defined set of fields (user can add/remove fields and specify types). Anyone know of any existing library to do that sort of thing? I was planning to just roll my own, but then figured there might be something out there Apr 19 22:32:23 Not really sure what to search for, but haven't found anything googling aroud yet Apr 19 22:32:41 Hi :) Apr 19 22:32:47 hey hetii! Apr 19 22:32:53 how the frig are ya Apr 19 22:32:56 Current plans are storing data in JSON Apr 19 22:33:32 I have Goclever tab R106 with android 4.1 and need to have there 4.0.x, any clue about such rom ? Apr 19 22:33:57 Mango_Man, I'm not sure I'd use singletop for that... Apr 19 22:35:32 anyone know of a view pager similar to the one used in Circa Apr 19 22:36:34 Zharf: maybe NavUtils.navigateUpTo is more appropriate Apr 19 22:39:09 hetii: #android-root Apr 19 22:41:18 thx Apr 19 22:44:17 Zharf: Oh thats pretty cool. Thanks. I just created a "NonSwipingViewPager". Just returns false on the events rather than allowing "setPaging" Apr 19 22:45:46 I think I like your implementation more though Apr 19 22:48:21 Mango_Man, if it wasn't almost 2 in the morning I'd be more able to help you, sorry... I hope you find a good solution to your problem Apr 19 22:49:05 Zharf: thanks a bunch for the help, i think the singleTop solution is fine for now Apr 19 23:01:58 Anyone have experienced using a viewpagers with fragments that are not full screen Apr 19 23:03:48 Technically that is what I am doing this very moment. Apr 19 23:04:00 It is only not full screen because I have a view from the parent activity above the view pager haha Apr 19 23:04:19 Oh lol Apr 19 23:04:27 That's not what I mean Apr 19 23:04:36 I mean the fragments being paged Apr 19 23:04:41 Hense why I said its technically what Im doing haha Apr 19 23:04:47 The fragments are being paged. Apr 19 23:04:51 By the ViewPager... haha Apr 19 23:05:28 Hmm ok, ok then the fragments not filling the entire viewpagers Apr 19 23:06:11 That'll probably be a layout issue, however I am not the best person to speak to. Im learning fragments as we speak haha Apr 19 23:06:21 Lol Apr 19 23:06:22 K Apr 19 23:28:44 How do you look music with mediaplayer so it's seamless (aka, doesn't have a 1/2 sec gap)? Apr 19 23:32:02 first be sure the audio track itself doesn't contain a 1/2 sec gap .. ? Apr 19 23:32:47 it doesn't... Apr 19 23:33:01 tried mp3, ogg, and wav formats Apr 19 23:33:30 should I create a 2nd mediaplayer instance a second before the first one stops? Apr 19 23:34:00 seems like a pretty sloppy workaround though... Apr 19 23:36:20 what's introducing the delay? loading of the audio stream? some preffable class value? Apr 19 23:36:45 are you streaming across network? or from local? Apr 19 23:38:45 I have no idea what's causing the delay. my audio file is imported right into the raw folder. The code looks like this: Apr 19 23:38:46 mPlayer = MediaPlayer.create(SecondActivity.this, R.raw.static1); Apr 19 23:38:46 currentSong = R.raw.static1; Apr 19 23:38:59 mPlayer.start(); Apr 19 23:38:59 mPlayer.setLooping(true); Apr 19 23:39:04 I'm fairly certain DJ's line the "beats" up on songs whilst they stitch them together. Apr 19 23:39:12 Also, use a website like pastebin for pasting code. Apr 19 23:39:30 If you don't line the music up then you are going to have a horrific sounding mess. Apr 19 23:40:04 hi Apr 19 23:40:08 Hi Apr 19 23:40:10 are those link broken ? Apr 19 23:40:10 https://developers.facebook.com/docs/android/downloads/ Apr 19 23:40:12 If I want to use a icon in my listview, do I need to create a custom adapter? Apr 19 23:40:15 it start then fail the download Apr 19 23:40:28 Yes, with a custom layout. Apr 19 23:40:32 is it me or everybody Apr 19 23:40:36 try download 3.6 Apr 19 23:41:05 All ListViews need an adapter of some sort. Extend BaseAdapter, and have convertView inflate your view for each row if convertView is null Apr 19 23:41:27 And set your widgets in that view according to whatever logic suits your needs Apr 19 23:41:58 @Anthaas can ou help me ? Apr 19 23:42:14 the problem is the stitching the music... Apr 19 23:42:28 even if I load a static noise, there's gap Apr 19 23:42:32 lesge: Seems fine for me. Apr 19 23:42:43 Anthaas, I know there is a default layout for lists, and also a default layout for two-line list items, is there any default layout for list with icon, or do I need to create that myself? Apr 19 23:42:55 @Anthaas it start the download then it fail at the end Apr 19 23:43:02 have you fully downloaded the file ? Apr 19 23:43:05 wfm Apr 19 23:43:17 smallfoot-: Create yourself - there are several easy to follow tutorials for this on google Apr 19 23:43:59 (if yes can you send me just the android-support-v4.jar lib in the libs folder ? Apr 19 23:44:30 The Android support lib is in the Android SDK by default. Apr 19 23:44:45 Oh you want the Facebook support lib Apr 19 23:44:56 I get a dex load problem if I include it Apr 19 23:44:59 in my project Apr 19 23:45:15 Anthaas, I see. Yeah, I can create an own layout, thats np. But would have rather used a pre-made, if any such already existed. Apr 19 23:45:31 btw did you fully downloaded the file (it fail at the end for me) Anthaas Apr 19 23:45:36 smallfoot-: It doesnt Apr 19 23:46:01 lesge: Downloaded fine for me. Apr 19 23:46:14 ok, can you send me android support v4 please Apr 19 23:46:24 in the lib folder Apr 19 23:47:02 You should sort out why yours isn't downloading first. Apr 19 23:47:09 ++ Apr 19 23:47:09 And then be able to get it yourself. Apr 19 23:47:24 It could be some problem which has or will affect other things. Apr 19 23:47:24 it start the download then it fail at the end Apr 19 23:47:30 I downloaded 11 mb then Fail Apr 19 23:48:56 I can download on other website fine Apr 19 23:49:00 I don't understand.. Apr 20 00:46:43 Hey how could I add a shaodw to a linear layout that matches the shadow of the action bar? Apr 20 00:54:20 What do people use when they need to prompt a user to connect to the internet Apr 20 00:54:22 just a toast? Apr 20 00:58:42 Toasts aren't prompts, so no. Apr 20 00:59:23 Hey how could I add a shaodw to a linear layout that matches the shadow of the action bar? Apr 20 01:00:58 * Nilium goes back to trying to write a constexpr sha-256 function. Apr 20 01:11:26 hi guys when passing data from activity to fragment i get a nullpointer Apr 20 01:11:28 why? Apr 20 01:16:09 hi all. I have some n00b questions about Context. For example this line: ViewGroup rootView = (ViewGroup)UnityPlayerNativeActivity.this.findViewById(android.R.id.content); I get that the rootview is being cast by looking for a view id that's being used in this acitivy. Now, if I cast a new class in this activity and want to find the view there, why wouldn't the same line work? I'm still Apr 20 01:16:10 looking in UnityPlayerNativeActivity, ain't I? Apr 20 01:17:31 If i look for the view id by using ViewGroup rootView = (ViewGroup)findViewById(android.R.id.content); in that other class, wouldn't it look for All instances of that id? Apr 20 01:19:46 findViewById starts on the view where you call it (or, in the case of Activity, at the window root view), and iterates through the hierarchy until it finds the first view with that id Apr 20 01:21:34 why would i have to specifiy the activity's context when using it in the activiy, and not in the other class though? my basic android knowledge kinda says that it should be the other way around Apr 20 01:21:40 just trying to wrap my head around this Apr 20 01:22:34 What? Apr 20 01:23:03 :P Apr 20 01:24:30 Context doesn't have a findViewById method.. How you call that method has something to do with the java language, not the android api Apr 20 01:25:16 I don't get the logic behind using (ViewGroup)UnityPlayerNativeActivity.this.findViewById(android.R.id.content); in the activity itself. Apr 20 01:25:37 and using ViewGroup rootView = (ViewGroup) findViewById(android.R.id.content); in other classes Apr 20 01:26:23 Just two ways java lets you call methods Apr 20 01:26:29 One is more verbose than the other Apr 20 01:26:51 MIght also be called in an inner class that has its own findViewById method that you don't want ot call Apr 20 01:35:30 ahh k Apr 20 01:35:31 thanks Apr 20 01:35:37 i think im beginning to get it now :P Apr 20 01:38:01 Howdo actiionbars Make there shadows. I am trying to repeate the effect on a layout on the bottom of the screen but they all dont work or look like shit Apr 20 01:38:12 I have tried fixing this for awhile. Any help would be appriciated Apr 20 01:39:07 http://stackoverflow.com/questions/11448679/how-can-i-have-a-drop-shadow-on-my-actionbar-actionbarsherlock Apr 20 01:39:32 you've probably already tried this Apr 20 01:41:03 I mean I have a shadow on my action bar by default. But I wanna repeat that effect on A layout on the bottom on my screen Apr 20 01:43:04 grabbizle, Does that make sense? Apr 20 01:47:45 ProjectBarks I don't know enough at the moment to help you out, but try using the window content overlay attribute value in that layout. Apr 20 01:50:44 ProjectBarks are you using two parent containers for the layouts? Apr 20 01:51:21 I have one layout that encapsolated the content. Apr 20 01:51:36 Its linear layout Apr 20 01:52:35 SimonVT: can you help me with passing r data from asynctask to fragment? Apr 20 01:56:13 ProjectBarks oh so its only one line at layout, not two. I got confused because you mentioned the 'other' layout Apr 20 01:57:34 http://prntscr.com/3bnfih Apr 20 01:58:07 That depicts what I am trying to do Apr 20 01:59:12 Simple question - if you guys are developing on a device, do you notice that your charge goes down slowly? Is there a way to plug it into your computer and have it charge even through development? Apr 20 01:59:25 ProjectBarks I see. sorry I can't help any further, that is if I even helped Apr 20 02:01:07 Anthaas my tablet doesn't do that Apr 20 02:01:38 Hmm, my Nexus 5 is slowly depleting even through development. Apr 20 02:01:53 Ahh, hang on, these ports arent powered. Apr 20 02:01:59 Hahaha Im an idiot. Apr 20 02:02:07 Need to plug in to the back of my tower rather than the side. Apr 20 02:02:12 through a USB hub Apr 20 02:21:19 whatsa bitches Apr 20 02:21:40 anyone here messing with glass? Apr 20 02:22:05 you must be the only glasshole here Apr 20 02:22:12 ^ Apr 20 02:22:16 meh Apr 20 02:22:20 *glasstool Apr 20 02:22:32 if its gonna make me money Apr 20 02:22:38 I dont give a crap =) Apr 20 02:22:43 Google glass make you money Apr 20 02:22:43 xD Apr 20 02:22:48 oh it does Apr 20 02:22:54 Google Glass is a Fad on its way Apr 20 02:23:10 I mean android dev in general makes me a good deal of money Apr 20 02:23:19 and clients want glass Apr 20 02:23:27 not my problem if their software takes off Apr 20 02:23:30 just gotta build it =) Apr 20 02:23:36 er doesnt take off Apr 20 02:23:38 Right Apr 20 02:23:40 xD Apr 20 02:23:58 ronny_fro: what will you make ? Apr 20 02:24:13 can you help me with passing r data from asynctask to fragment? Apr 20 02:24:15 I work in industrial automation industry Apr 20 02:24:49 And you make... Apr 20 02:25:00 wearables for robots Apr 20 02:25:01 hmi's Apr 20 02:25:17 forklift navigation / automation shit Apr 20 02:25:25 warehouse management shit Apr 20 02:25:28 People slag out of glass and the concept, but what they forget is this is a precursor to things to come in the future, be it human integrated hardware or more complex wearables. Apr 20 02:25:36 see thats what I think Apr 20 02:25:39 It's neat. It's not $1500 neat. Apr 20 02:25:45 I think current gen of glass is really ONLY business useful Apr 20 02:25:48 If someone bought me one I'd mess with it, but probably never wear it in public Apr 20 02:25:49 glass can be good as a virtual mirror when driving those forklifts Apr 20 02:25:50 It has a great deal of practical application. Apr 20 02:25:51 I'd never wear one out and about Apr 20 02:25:54 Why? Apr 20 02:25:58 I would. Happily. Apr 20 02:26:01 have you worn em Apr 20 02:26:07 its not terribly easy to see Apr 20 02:26:11 People just seem to think that they are important enough for me to want to take a photo of them. Apr 20 02:26:13 you can have cams sending glass the footage so the driver can see the corners when he turns Apr 20 02:26:13 and if you arent right eye dominant Apr 20 02:26:17 its a lot of stress on the eyes Apr 20 02:26:27 They arent intended for prolonged use. Apr 20 02:26:31 nope Apr 20 02:26:31 Anthaas, I don't dislike google glass. But I dont think this version of google glass/ few versions is going to make it very far Apr 20 02:26:47 the software is a bit weird Apr 20 02:26:50 I dont get why I cant clear timeline item Apr 20 02:26:52 items Apr 20 02:26:52 Agreed. But at the same time first time iterations of hardware rarely does. Apr 20 02:26:54 Just like the first smart watches. I don't think google will be the first company to get it right Apr 20 02:27:00 I do Apr 20 02:27:05 lots of people tried it a bunch of times Apr 20 02:27:09 and honestly Apr 20 02:27:10 why Apr 20 02:27:16 I think Google will be the first. Apr 20 02:27:24 googles wear shit looks like wearables done right Apr 20 02:27:30 Apple will try but fail just as hard as Maps did. Apr 20 02:28:00 what you need is glasses that has transparent overlay covering the whole lenses, and you can adjust transparency or pop up windows in any corner Apr 20 02:28:03 Apple is a good company and provides a really nice api. But honestly there shit is too expensive for the quality of build. Apr 20 02:28:14 What I think should be done, although it wouldnt be easy, is a normal watch, where the glass has a thin transparent layer under it or whatever which allows it to become opaque as if there is no watch underneath etc. Apr 20 02:28:18 https://lh3.googleusercontent.com/-VRzyG5ZpdPI/UlXOTrdkQkI/AAAAAAAABEg/o0-vF5K3Bz8/w566-h531-no/yomomma.jpg Apr 20 02:28:35 also the motorola watch seems strangely attractive for what it is Apr 20 02:28:38 compared to previous gens Apr 20 02:29:49 The moto then the apple watch will be the devices to launch the wearables concept Apr 20 02:29:49 Another attitude that I don't like, although Im not pointing fingers in here, this is a general comment, is that programming is a private club that dislikes new people trying to join etc. Apr 20 02:29:55 Whats out there now make a large amount of people barf and dislike the feel Apr 20 02:30:06 I think programming is for everyone. There is not one person I don't believe can't and shouldn't try programming. Apr 20 02:30:22 Some of the people I've worked with and have overheard make me sick. Apr 20 02:30:24 I think there are people that were born for it and have the right mindset for it Apr 20 02:30:43 There is no mindset Apr 20 02:30:48 and I think there are others that can be taught but arent ideal Apr 20 02:30:56 I've been in software for ~20yr Apr 20 02:30:57 Everyone is so elitist. Think they possess skills greater than they actually od. Apr 20 02:30:57 Its a canvas for people to invent and craft whatever they want Apr 20 02:31:01 ^ Apr 20 02:31:06 ProjectBarks just nailed it. Apr 20 02:31:22 ronny - everyone is taught. Apr 20 02:31:26 I've seen educated folks that were complete fuckwits, that had no business, and I've seen plenty of uneducated folks with the same Apr 20 02:31:28 You were taught. Apr 20 02:31:34 self taught Apr 20 02:31:38 But still taught. Apr 20 02:31:40 never took one class Apr 20 02:31:46 Perhaps they haven't invested the time you have. Apr 20 02:31:46 no mentor Apr 20 02:31:49 Doesn't prove anything. Apr 20 02:31:53 So you are an autodidact. Apr 20 02:31:56 not trying to prove anything Apr 20 02:32:01 I welcome anyone wanting to try Apr 20 02:32:01 No, Im not picking on you. Apr 20 02:32:13 Im saying that that is another attitude I have seen often haha Apr 20 02:32:18 I just think there are people that are "get it" and others not so much Apr 20 02:32:22 programming isn't for everyone Apr 20 02:32:31 People who aren't as good probably haven't invested enough time into it. Apr 20 02:32:37 just like rocket science isn't for everyone Apr 20 02:32:40 lots of people that get in it because of the money and nothing more Apr 20 02:32:44 Why can't anyone learn rocket science? Apr 20 02:32:52 Admittedly it might take longer for some, just as any other field. Apr 20 02:32:54 and if you dont have the drive or passion for what it is Apr 20 02:33:16 your only ever half in Apr 20 02:33:21 yes they will be able to program Apr 20 02:33:25 but Apr 20 02:33:33 anyone can do whatever they want, but there are realities to contend with Apr 20 02:33:33 I wouldnt really care to have em on my team Apr 20 02:33:34 What would you consider to be the "drive and passion" that people have. How might they demonstrate this? Apr 20 02:33:48 Programming is thinking with your own mindset. Anyone can program but it rely completely on passion. Apr 20 02:34:02 when I interview folks I try to get an idea of what they like doing outside of work, and if they like to build shit on the side or tinker in free time Apr 20 02:34:16 Ok. Interview me. Apr 20 02:34:18 Out of interest. Apr 20 02:34:21 I've recruited people that never written a single line of code Apr 20 02:34:23 I'd like to get feedback from the other side. Apr 20 02:34:28 because I could see the correct mind set Apr 20 02:34:30 Never had the feedback :D Apr 20 02:34:31 and its not just for code Apr 20 02:34:42 it could be the same mindset to build anything really Apr 20 02:34:46 I like cooking. Apr 20 02:34:49 Love it. Apr 20 02:34:51 My hobby. Apr 20 02:35:02 Mixing different ingredients, tinkering with them to get the flavour I want. Apr 20 02:35:12 not the first thing I would have associated with the mindset, but I could see it Apr 20 02:35:19 ronny_fro: That works if you have the time to train them up, yea Apr 20 02:35:25 1yr Apr 20 02:35:34 ronny_fro: I'd believe it Apr 20 02:35:35 I'd trust this guy over anyone I got working with me Apr 20 02:35:37 Describe your biggest flaw: "Being too precise in some situations. My drive to get things done perfectly sometimes goes overboard" Apr 20 02:35:56 ronny_fro: that was non-sarcastic, if you've got the time to train them up, that works Apr 20 02:35:57 I hate interviews , they are so fake Apr 20 02:36:10 ^ Apr 20 02:36:15 yeah. lately I've just done "show me shit you've done" Apr 20 02:36:18 I dont even really care about technical ability Apr 20 02:36:20 and "tell me someone I know who knows you" Apr 20 02:36:35 (the latter being easy since that's how I'm talking to them in the first place) Apr 20 02:36:35 My biggest flaw is currently my lack of industry experience, I have one year only. I do volunteer teaching programming in schools currently, and I have only just graduated. I do realise, however, that in industry this degree shows nothing, what is important is that I know when I am wrong, I sit down, shut up, and listen. Apr 20 02:36:37 dragorn even that is flawed tho Apr 20 02:36:44 I Look for the potential not the past Apr 20 02:36:49 99% of the time they are like A) Do you know anyone in the office B) Contribute anything usefull C) How nervious can I make you Apr 20 02:36:53 I've worked for a lot of companies that were so based in the past Apr 20 02:37:00 they werent great portfolios Apr 20 02:37:02 ronny_fro: It's all flawed. It's great you have the time to train people up - eventually so will I. Right now I sure as hell don't. :P Apr 20 02:37:15 no no Apr 20 02:37:24 I am not saying you should just pick anyone whether they have experience or not Apr 20 02:37:25 I am saying Apr 20 02:37:40 2 experienced devs Apr 20 02:37:43 Once I deal w/ the current ship schedule and I have a year, sure. That'll be great. Right now if someone can't be writing code tomorrow that's production-quality, I can't use them. Apr 20 02:37:46 ronny_fro: What would you say to my "My biggest flaw" response? Apr 20 02:37:49 I dont do the crazy random word problems or whatever Apr 20 02:37:55 and then they ask that dreaded question ... 'What would you say is your weakest trait?' or 'If you could change anything about your life , what would it be?' Apr 20 02:38:22 Anthaas whether you are educated or not, you gotta get your name out there, and get your foot in the door Apr 20 02:38:24 On the sidenote. Anyone know howto do this http://prntscr.com/3bnfih . It is within a linear layout Apr 20 02:39:08 For some reason I cannot find a good answer Apr 20 02:39:09 and you have to say something like, my problem is that I work too much Apr 20 02:39:10 ProjectBarks: tweak the weights should be all you need Apr 20 02:39:19 if you got opensource projects that you can show your experience Apr 20 02:39:20 Im assuming you have the bottom view inside a ? Apr 20 02:39:25 that certainly helped Jake Wharton =) Apr 20 02:39:36 ronny_fro: I don't but I am going on to study for my PhD next year? Apr 20 02:39:38 ProjectBarks: if you mean you want the text fields to be at the bottom and the fragment full screen Apr 20 02:39:41 just cant go in with unrealistic expectations Apr 20 02:39:54 I am going to develop my own full application during the summer (and after of course). Apr 20 02:40:00 I dont get the point in a phd for most degrees Apr 20 02:40:03 but if thats what you want to do Apr 20 02:40:05 more power to you Apr 20 02:40:09 Mine is in Artificial Intelligence. Apr 20 02:40:09 HAhah I didnt realize it was cropped Apr 20 02:40:13 I ment I want a shadow Apr 20 02:40:17 Knowledge Representation specifically,. Apr 20 02:40:23 at the arrow location http://prntscr.com/3bnfih Apr 20 02:40:33 Anthaas - build some machine learning software Apr 20 02:40:40 open source it Apr 20 02:40:47 ProjectBarks: ah hah. No clue, then, sorry. Apr 20 02:40:51 That was my AI coursework. haha Apr 20 02:40:56 dragorn, I dont here either Apr 20 02:41:00 Create a Learning Agent for AIBirds.org Apr 20 02:41:03 you'll make more money if you get a 33rd degree in masonry ;) Apr 20 02:41:15 I mean sascha barber on codeproject, I'd hire in a fucking heartbeat because that guy has worked with some amazing shit Apr 20 02:41:25 ProjectBarks: http://www.anotherandroidblog.com/2011/06/29/drop-shadow-linearlayout/ ? Apr 20 02:41:53 That puts it on the bottom Apr 20 02:42:11 I Apr 20 02:42:40 I'm particularly interested in this industry because shit is diff every day Apr 20 02:42:45 and most people are so ass backwards Apr 20 02:43:59 My placement year (my one year experience) was just god awful. Apr 20 02:44:10 I learnt so much though that you just wouldnt learn anywhere else. Apr 20 02:44:25 I totally agree Apr 20 02:44:39 The importance of clear, effective communication and documentation. The importance of being able to tell your manager when he is wrong. The importance of saying no. Apr 20 02:44:39 I'd like more machine learning experience Apr 20 02:44:47 I've just seen it go wrong so many times. Apr 20 02:44:56 trying to make an app that will search a specific web page, and if a certain string is found, sound an alarm Apr 20 02:45:06 Anthaas: and you still have a job ? Apr 20 02:45:08 so far, i've been playing and just got a simple webview going Apr 20 02:45:14 shmooz: It was my placement year. Apr 20 02:45:21 webview Apr 20 02:45:26 The manager wasn't technical at all so had no idea what he was asking. Apr 20 02:45:29 webview is going to fuck you Apr 20 02:45:35 hello Apr 20 02:45:49 The web team had the same issue. A server went down. He asked what was wrong. They told him it was a semi colon issue. He wrote it down and informed the MD. Apr 20 02:46:02 I want to start a "geo" uri in a NEW task Apr 20 02:46:15 so it would not be part of the BackStack Apr 20 02:46:23 MDTech-us_MAN so do it? Apr 20 02:46:30 my boss thinks its that pesky bug's fault ;) Apr 20 02:46:45 ronny_fro: how? Apr 20 02:46:47 MDTech-us_MAN: intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK); ? Apr 20 02:46:53 well you are firing off an intent Apr 20 02:46:54 add flags Apr 20 02:47:41 The activity launched becomes the only activity on the stack., Apr 20 02:47:55 i would guess "FLAG_ACTIVITY_NEW_TASK" Apr 20 02:47:55 well it's either that or mess with trying to convert a bash script i have on debian for bash on my htc one Apr 20 02:48:28 MDTech-us_MAN: or "FLAG_ACTIVITY_NO_HISTORY" if you want the activity being launched to be forgotten once it has been left. Apr 20 02:48:29 MDTech-us_MAN - honestly its gonna take experimentation Apr 20 02:48:33 seems like EVERY time I Apr 20 02:48:34 cause i don't have all the tools avail on android as i do on debian, and i don't really know how to sound an alarm from the CLI Apr 20 02:48:51 everytime I've dicked with flags, they didnt work exactly how they seemed like they should per the documentation Apr 20 02:49:01 I've just given two answers haha Apr 20 02:49:05 ok Apr 20 02:49:34 matlock: if you just want a string located in the .html/.whateverFile then just download the text data and search it instead of downloading everything else a webview may load Apr 20 02:49:48 Apr 20 02:49:57 thanks for pointing me in the right direction Apr 20 02:50:11 well, here's the idea of my bash script... Apr 20 02:50:33 MDTech-us_MAN: I've just given you two working answers. Apr 20 02:50:40 Are my messages not getting through? haha Apr 20 02:51:15 http://asoftmurmur.com/ Apr 20 02:51:18 work mode Apr 20 02:52:21 i currently wget $PAGE -O $TEMP Apr 20 02:52:35 then cat $TEMP |grep $STRING Apr 20 02:52:41 on my deb box Apr 20 02:53:08 how do I check what API the device is? Apr 20 02:53:15 if string is found, i have it email me the page in text form via lynx -dump $page > $temp Apr 20 02:53:23 I forgot Apr 20 02:54:03 cat $temp >> $EMAILMESSAGE and /usr/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE Apr 20 02:54:31 the only reason i do this is because I'm not always around my deb box and reading an email is pretty straightforward and i always have my htc device Apr 20 02:54:44 but If i could do this straight on the phone itself... Apr 20 02:54:50 like with an app... Apr 20 02:55:24 or setup a cron to magically download, grep the file, then sound an alarm... Apr 20 02:57:46 Anthaas: hmm... I see Intent.FLAG_ACTIVITY_CLEAR_TASK is only for API 11+ Apr 20 02:59:57 Gingerbread needs to die already. **** ENDING LOGGING AT Sun Apr 20 02:59:58 2014