**** BEGIN LOGGING AT Sun Mar 09 02:59:58 2014 Mar 09 03:00:01 Google App Engine will help with the push notifications Mar 09 03:00:10 but yes, JS is browser based Mar 09 03:00:11 oh right. Mar 09 03:00:19 it wont send any push notifications Mar 09 03:00:39 still no pleasure on the push front, from a web app. Mar 09 03:00:45 but you might be able to do a POST to GAT to send a push Mar 09 03:00:57 er... GAE Mar 09 03:01:02 Google App Engine Mar 09 03:01:16 so app engine is a native like app. that's based on a common framework. like sencha? if that's what it's called Mar 09 03:01:24 just build the push bit on GAE, then your app on the browser Mar 09 03:01:35 I thought App Engine was just like a platform Mar 09 03:01:42 https://developers.google.com/appengine/ Mar 09 03:01:44 google app engine is basically a very fancy server Mar 09 03:01:57 right Mar 09 03:02:07 so frameworks aren't really "alternatives" Mar 09 03:02:12 ^ Mar 09 03:02:24 any more than Rails is an "alternative" to Apache Mar 09 03:02:25 well Mar 09 03:03:01 ok, this is going slightly esoteric.. but probably useful once followed up a bit. Mar 09 03:03:20 so... anyone tried using SVG and some library to get different image sizes on android? or is it best to stick with the usual and include several image sizes? Mar 09 03:03:40 and the benefit of app engine to native android/iphone is.. it works on both? Mar 09 03:03:59 for push messaging Mar 09 03:04:09 thats why I mentioned it Mar 09 03:04:13 i thought that was in native already? Mar 09 03:04:41 samuel, i would think the processing on the phone necessary for that would make it not worth it Mar 09 03:05:02 samuel: i mean.. if native has push, why use app engine? Mar 09 03:05:13 frankdrey: thanks, thats what I am leaning towards as well... Mar 09 03:05:29 niop, where are your pushes coming from? Mar 09 03:05:32 niop: if you have some web app or something that needs to update your phone Mar 09 03:05:36 you need push Mar 09 03:06:01 good question.. actually not terribly certain.. either from a server.. or from a client computer. Mar 09 03:06:20 i guess client computer initially.. and then.. through google cloud? Mar 09 03:07:12 doing a project for a friend's restaurant. they want to issue points to customers to claim rewards. Mar 09 03:07:32 so.. at the checkout, they'd issue credit. and that would update the server. and their phone i guess. Mar 09 03:07:43 niop: you should look into App Engine... it will make it much easier Mar 09 03:07:46 and the reverse.. when customer chooses reward, that would send something to server. Mar 09 03:07:47 niop: pushes come from a server or something external to the app, that's the point of a "push" Mar 09 03:08:02 it's the ability to receive pushes that requires native Mar 09 03:08:12 in this case the "external" is your restaurant Mar 09 03:08:25 the Mar 09 03:08:35 i only eat at them Mar 09 03:09:27 right.. the customer needs to receive pushes.. you're saying that requires native. but before you mention app engine being needed for pushes. Mar 09 03:09:34 *mentioned Mar 09 03:09:43 yes Mar 09 03:09:47 sending? Mar 09 03:10:01 the custumer needs the native app Mar 09 03:10:14 AND the restaurant needs its own app Mar 09 03:10:15 in fact, you should use app engine as a server, not just for pushes Mar 09 03:10:19 apologies for this very green conversation, but it's invaluable. although reference to some texts is looking inevitable. Mar 09 03:10:22 you should build that on App Engine Mar 09 03:10:31 niop: a server, website, or whatever, is needed to send the pushes. App Engine is just recommended. Mar 09 03:10:36 * frankdrey is in love with App Engine Mar 09 03:10:50 * samuel is as well Mar 09 03:11:08 I've never used it Mar 09 03:11:11 well at the moment i hate it ;) Mar 09 03:11:26 makes things much easier Mar 09 03:11:29 it sounds potentially a lot of un Mar 09 03:11:37 Hello there, I made my first application recently, and the application works well on my device. How would I change the image from the default android robot to my own custom image? Mar 09 03:11:40 *fun Mar 09 03:12:03 BigBawb: what did you use to build it? Mar 09 03:12:19 BigBawb: I already answered your question.... Mar 09 03:13:07 niop, it's a hell of a lot easier / more secure than writing your own server Mar 09 03:13:13 not romantically involved, let's put it that way Mar 09 03:13:29 i dont mind writing a server... Mar 09 03:13:41 *running your own server Mar 09 03:13:42 in fact i like getting my hands dirty if there's more power to be had from it. Mar 09 03:13:46 you still have to write for GAE :P Mar 09 03:13:47 but within reason. Mar 09 03:13:56 any recommended books on this? Mar 09 03:14:14 niop: Google :) Mar 09 03:14:18 ic Mar 09 03:14:21 https://developers.google.com/appengine/docs/java/gettingstarted/introduction Mar 09 03:14:25 that narrows it down Mar 09 03:14:37 (me sneakily pushes java on niop) Mar 09 03:14:42 also: https://developers.google.com/appengine/docs/python/gettingstartedpython27/introduction Mar 09 03:14:47 if you must, there's also python :P Mar 09 03:14:59 I saw what you did there! Mar 09 03:15:29 there's also Go... and as of recently a certain abomination Mar 09 03:15:39 yeah Mar 09 03:15:44 we do not speak about it Mar 09 03:16:04 certainties are good at least Mar 09 03:16:05 it and Go are experimental though Mar 09 03:16:07 especially in tech Mar 09 03:16:17 mmm......Java..... Mar 09 03:16:23 frankdrey: yes, but Go is saner than... "it" Mar 09 03:16:46 notbryant: My browser had crashed I apologize Mar 09 03:16:47 :D Mar 09 03:16:52 ok. well. tutorials arent' bad. .i might give it a look. but still scoping things somewhat. at least seems it would be a solid workable option to consider. Mar 09 03:16:52 my wife is saner than "it" Mar 09 03:16:56 :) Mar 09 03:16:57 BigBawb: that's alright Mar 09 03:17:08 samuel: that's not a bit level to pass ;) Mar 09 03:17:42 Would the process be relative to the IDE I used to create the application? Mar 09 03:17:45 :) Mar 09 03:17:53 Or something I do after the fact within the .APK? Mar 09 03:17:58 BigBawb: what did you use? Mar 09 03:18:37 BigBawb: are you talking about like the icon that appears on the launcher? Mar 09 03:19:25 Well.... I am sorry I'm not very familiar with android as this is my first application. I used the Java Monkey Game Engine to build my .apk Mar 09 03:19:41 The application itself works great, and the image Im talking about Mar 09 03:19:46 is the one on my device Mar 09 03:20:34 BigBawb: what IDE did you use? Mar 09 03:21:16 samuel: thanks for your comments, and others. Mar 09 03:21:23 np Mar 09 03:21:28 good luck Mar 09 03:22:03 The IDE is the Java Monkey SDK Mar 09 03:22:22 and is ant based Mar 09 03:22:33 thats not an IDE is it? Mar 09 03:23:13 They talk about it like it is. Should this be something I would be asking the engine. Or is this an overall android question Mar 09 03:23:45 ask the engine Mar 09 03:23:54 I am not downloading it to find out Mar 09 03:26:20 good night guys Mar 09 03:31:08 ugh, i hope this is PEBKAC cause i've spent all day trying to figure out why my 2017 n7 is reading garbage on rfcomm socket Mar 09 03:31:15 *3013 Mar 09 03:31:18 gah Mar 09 03:32:08 g00s is from the future Mar 09 03:33:47 so, it's 3013, and we use RFCOMM still? :D Mar 09 03:34:00 is it like Ethernet, an undying kudzu? Mar 09 03:34:05 heh Mar 09 03:34:19 hm, i wonder if my BT mouse if screwing things up Mar 09 03:35:11 i need a java version of tee, hmm Mar 09 03:38:10 Hi question: I have given a bitmap and a rectangle, and I want to draw a string (actually just a letter) neatly into that rectangle. I can't find any way to do that "nicely"... :( Mar 09 03:38:20 I only find "fit box around string" and stuff like that.. Mar 09 03:38:28 any ideas? Mar 09 04:00:01 i have a SherlockFragmentActivity in which I want to change the fragment. when I add a a fragment, it overlaps over the older one. if i detach the older one before adding the new one, i lose the back stack Mar 09 04:00:07 how do i retain the back stack? Mar 09 04:05:17 addToBackStack Mar 09 04:09:14 bankai_: i have added both the fragments to backstack Mar 09 04:09:26 bankai_: but i'm still seeing this weird behaviour Mar 09 04:09:45 ugh I dislike how many nested classes are used in Android Mar 09 04:09:59 MainActivity -- has MainFragment by default. when clicking on a menu button, it adds "AddFragment" , and on hitting back, i want "MainFragment" to be replaced; Mar 09 04:10:34 RustyShackleford: nested classes are best classes. Also I love your nick Mar 09 04:10:49 you're probably best to handle all the onBackPress yourself Mar 09 04:12:38 android examples tend to scatter the members, don't they? Mar 09 04:12:51 i like to keep them all at the top if possible Mar 09 04:42:23 think it's overkill to add Logs to each lifecycle method for an Activity? Mar 09 04:42:39 and if I leave them in, is there a way I can disable the logging for a release build? Mar 09 04:42:58 you can set a global flag Mar 09 04:43:19 and surround each log statement with an if statement? Mar 09 04:44:37 pretty sure there is a debug variable that you can if Mar 09 04:45:34 or just leave them in. They don't add much overhead, do they? Mar 09 04:46:27 if you've ever watched the full log on a consumer phone, you'll see the system itself spams the log so much that you're very unlikely to make a dent in it Mar 09 04:49:24 I need help. Mar 09 04:49:26 I have the ADT Mar 09 04:49:33 it is complaining this paths invalid: C:\Users\Programming\Documents\adt-bundle-windows-x86_64\sdk Mar 09 04:51:26 well someone is obsessed with cats Mar 09 04:53:15 http://curiousanimals.net/wp-content/uploads/2008/01/sphynx-kitten.jpg Mar 09 04:53:50 that'd disgusting Mar 09 04:54:03 that's* :S Mar 09 04:55:18 are you running solaris? Mar 09 04:55:53 not this machine, but i administer a few hundred of the f'ers Mar 09 04:56:26 :o Mar 09 04:57:12 http://letmegooglethat.com/?q=melanistic+jaguar&l=1 Mar 09 05:05:28 I'm trying to use the adt Mar 09 05:05:35 and it didn't have the SDK properly.. Mar 09 05:05:37 for some reason? Mar 09 05:06:21 what didn't? eclipse? Mar 09 05:06:26 is that directory where you put the sdk ? Mar 09 05:07:04 you have a user account named Programming on your windows? Mar 09 05:07:39 I downloaded this: http://developer.android.com/sdk/index.html Mar 09 05:07:42 yeah that's right. Mar 09 05:08:09 the stupid thing is stressing me out... I just wanna start coding Mar 09 05:08:14 I thought it came with the sdk? Mar 09 05:09:30 what is complaining? Mar 09 05:09:46 Eclipse Mar 09 05:11:22 http://imgur.com/BBYMO2e Mar 09 05:11:25 This is my issue. Mar 09 05:12:46 ah, windows Mar 09 05:12:56 the site says it has everything I need. Mar 09 05:13:04 So howcome when I start up eclipse after unzipping everything... Mar 09 05:13:07 idk Mar 09 05:13:16 what versions of the sdk are in your C:\Users\....? Mar 09 05:13:18 I've never used this before so I have no idea what I"m doing or how to set the file path or even where the JRE installed itself. Mar 09 05:13:30 er... JDK, not JRE, right? Mar 09 05:13:42 Let me check the history. Mar 09 05:13:59 jdk-7u51-windows-x64.exe Mar 09 05:14:00 omg Mar 09 05:14:03 the file says it's blocked... Mar 09 05:14:08 This means it may not have installed correctly. Mar 09 05:14:19 yay, windows! Mar 09 05:14:57 give me a W, give me an I, give me an N, give me a D, give me an O, give me a W, give me an S! What do you get? A platform unsuitable for development... Mar 09 05:15:19 o.0 Mar 09 05:15:20 ikr Mar 09 05:15:25 the package should ajust worked... Mar 09 05:15:29 likke you konw Mar 09 05:15:31 know* Mar 09 05:15:35 the site says it comes with everything Mar 09 05:16:16 uh Mar 09 05:16:16 huh Mar 09 05:16:29 and your return Mar 09 05:16:31 key is broken as Mar 09 05:16:35 well as your OS, Mar 09 05:16:36 right? Mar 09 05:18:29 no Mar 09 05:18:34 is just how I type Mar 09 05:18:49 RedEyedGirl: show a screen shot of opening up preferences from that error Mar 09 05:19:51 http://imgur.com/aKCz7By Mar 09 05:20:30 now show that that folder exists, and it's not \Downloads\ or something Mar 09 05:20:51 otherwise there are no SDKs located in that folder Mar 09 05:22:26 Uhm I know there aren't any sdk's in that folder or atleast.. idk one sec. Mar 09 05:22:45 then that's your problem? Mar 09 05:24:01 the folder is in windows/programfilesX86 Mar 09 05:24:11 but when I try to rename it it says the file is in use... Mar 09 05:24:16 so if eclipse is using it, why can't it find it Mar 09 05:25:06 I pointed it to the folder now it says unable to create add-ons Mar 09 05:25:25 is there a nicer way to view a char[] in intellij's debug than just a tree of hundreds of children :) Mar 09 05:25:31 ok for learning ;) Mar 09 05:25:34 but … for the hell of it, probably Mar 09 05:25:34 RustyShackleford: I am the wrong person to ask.....I had my log determine the class and function name through reflection for the tag name because I was too lazy to paste them in :P Mar 09 05:25:34 poor kitty Mar 09 05:25:35 RedEyedGirl: what is doing the complaining? Mar 09 05:25:35 ok so wait, is this Eclipse or Android Studio? Mar 09 05:25:35 yeah, if it says the directory doesn't even exist....something is wrong Mar 09 05:25:37 i think the bundle was a mistake. everybody should suffer though installing the pieces, which is easy - and then you know whats going on :) Mar 09 05:25:47 again....is this Eclipse or Android Studio? Mar 09 05:25:52 because they are two very different things Mar 09 05:26:02 notbryant did you look at the screen shot ;) Mar 09 05:26:10 should be pretty clear :D Mar 09 05:26:53 I did, but I haven't used either Eclipse or AS in a while so I cannot tell at a glance Mar 09 05:27:06 it was also more of a rhetorical question Mar 09 05:27:58 RedEyedGirl: what folder is in windows/programfilesx86? the adt bundle? Mar 09 05:28:24 notbyrant it's eclipse Mar 09 05:28:48 yes Mar 09 05:28:51 the folder called: Mar 09 05:29:06 adt-bundle-windows-x86_64-20131030 Mar 09 05:29:33 is in /Program Files (x86)/ ? Mar 09 05:29:49 if so then change it from /User/Programming/.... to the correct location Mar 09 05:31:59 Hm so quit eclipse then move everything. Sure. Mar 09 05:32:01 i'll try it Mar 09 05:32:25 it's simple, just point eclipse to where the sdks r Mar 09 05:32:59 shit move the sdks to the root of your harddrives, c:\android-sdk\ Mar 09 05:34:22 it says it's in use after closing eclipse Mar 09 05:34:24 what's going on o.o Mar 09 05:34:43 try android studio Mar 09 05:35:33 why not right? Mar 09 05:36:07 what's in use? Mar 09 05:36:18 the computer :) Mar 09 05:36:21 you aren't moving the whole bundle, just the sdk Mar 09 05:36:44 i'd put the sdk into a parcel Mar 09 05:36:45 then you set a new path in eclipse besides the /User/Programming/...one Mar 09 05:36:51 and ups it? Mar 09 05:37:08 i'll try that next if this doesn't somehow work.. Mar 09 05:37:09 no, put it in another bundle Mar 09 05:37:16 skinkitten: that's what I was going to suggest....I didn't know Google even still supported Eclipse Mar 09 05:37:20 i'd bundle that bundle with a bundle Mar 09 05:37:34 AS is the shit Mar 09 05:37:46 like if you really "just want to start coding", AS is it Mar 09 05:37:52 this is just the beginning, its Parcelables all the way down Mar 09 05:38:02 Darcula Mar 09 05:38:05 o.o i just saw dx.jar... is that directX? Mar 09 05:38:08 k? maybe Mar 09 05:38:11 or a direct x thing.. Mar 09 05:38:12 wow Mar 09 05:38:12 oh god yeah, Darcula Mar 09 05:38:17 RedEyedGirl stay focused Mar 09 05:38:27 shiny things can distract Mar 09 05:38:27 thats what i wanted! just to start coding Mar 09 05:38:28 if I ever get married it will be a Darcula-themed wedding Mar 09 05:38:33 lol Mar 09 05:38:34 yes, keep your eye on the bundle :D Mar 09 05:38:48 watches windows freak out when it ype only one line of code into eclipse.. Mar 09 05:38:51 imagine that Mar 09 05:38:52 so likely Mar 09 05:38:53 u_u Mar 09 05:38:57 RedEyedGirl, what sdks are in /Program Files (x86)? Mar 09 05:39:02 idk let me check Mar 09 05:39:32 under platforms Mar 09 05:39:37 build-tools extras platforms platform-tools Mar 09 05:39:39 oh under platforms Mar 09 05:39:45 android-19 Mar 09 05:39:52 That's it? Mar 09 05:40:00 yeah Mar 09 05:40:42 Then you are stuck programming for sdk 19. but you need to set in eclipse a path to that program files (x86) or move it and set it to whereever Mar 09 05:40:54 ok Mar 09 05:41:57 i'm re launching the whole thing from the folder it wanted before Mar 09 05:42:42 bam... Mar 09 05:42:51 the copy of the adt bundle i unzipped to my documents folder didn't mess up Mar 09 05:42:53 first time Mar 09 05:43:26 it's not where you unzipped it, it's where you installed it Mar 09 05:44:42 for some reason, I feel really happy using IntelliJ all of the sudden.... Mar 09 05:45:09 yay! good job! Mar 09 05:45:10 you'll feel sexier using AS Mar 09 05:46:15 I feel plenty sexy Mar 09 05:57:04 i'm having issues making eclipse run as an android application on my b1-710 tablet Mar 09 05:57:07 i enabled usb debug settings.. Mar 09 05:58:34 RedEyedGirl: why are you running eclipse on a tablet ? Mar 09 05:59:17 intellij > android studio >>> eclipse Mar 09 05:59:19 JUST SAYIN' Mar 09 06:00:08 I snagged intellij while the world was ending Mar 09 06:00:20 though I have 12, not 13 Mar 09 06:00:55 huh? Mar 09 06:01:05 * frankdrey has 13.0.2 Mar 09 06:01:15 twas as easy as pacman -S intellij-idea-community-edition Mar 09 06:01:26 oh, I have the ultimate edition... Mar 09 06:01:35 also, nice choice of package manage/distro Mar 09 06:01:53 JetBrains was having a sale on all their licenses when the world was ending in 2012 Mar 09 06:01:55 ah Mar 09 06:01:59 nice xD Mar 09 06:03:00 I'm running eclipse on my laptop. Mar 09 06:03:13 I'm trying to deply the app directly to my tablet using eclipse which is running on my laptop. Mar 09 06:03:21 Eclipse only seems to be detecting virtual android devices. Mar 09 06:03:51 windows, linux, mac? Mar 09 06:04:13 windows Mar 09 06:04:23 I don't know how to make it recognize my tablet... Mar 09 06:04:45 probably USB drivers Mar 09 06:04:45 you'll need to find adb drivers for it Mar 09 06:04:56 either the Google ones or the ones from the manufacturer Mar 09 06:04:57 RedEyedGirl: which device is it ? Mar 09 06:05:16 " b1-710 tablet" Mar 09 06:05:20 yes Mar 09 06:05:25 RedEyedGirl: yeah what notbryant said Mar 09 06:05:36 :/ windows auto installs drivers to. Mar 09 06:05:52 you might have to remove those Mar 09 06:05:54 windows does a lot of things Mar 09 06:07:18 http://global-download.acer.com/GDFiles/Driver/USB/USB_Acer_1.0_A41J_A.zip?acerid=635064301494213830&Step1=TABLET&Step2=ICONIA%20B&Step3=B1-710&OS=ALL&LC=en&BC=ACER&SC=PA_6 Mar 09 06:07:39 acer's website gives me goosebumps Mar 09 06:07:58 /everything/ /is/ /italic/ Mar 09 06:07:58 D: Mar 09 06:08:05 windows should recognize it as a media device when you first plug it in, then when you enable USB debugging in the developer options windows should see it as a composite device and the adb should work Mar 09 06:08:32 ( developer options on the tablet ) Mar 09 06:08:33 RedEyedGirl: http://drivers.softpedia.com/get/JOYSTICK-GAMEPAD-WHEELS-and-TABLETS/OTHERS/Acer-Iconia-B1-710-Android-USB-20-Driver-10.shtml Mar 09 06:08:45 i just linked official acer download :p Mar 09 06:08:55 oh ok Mar 09 06:08:58 :D Mar 09 06:09:34 frankdrey: it looks fine if you tilt your head Mar 09 06:09:51 :D Mar 09 06:19:44 Hello world runs on my tablet. :D Mar 09 06:20:29 RedEyedGirl: congrats!! :) Mar 09 06:21:40 :D Mar 09 06:23:34 thanks.. but now my web browser's being dumb. Mar 09 06:23:39 I think something on port 80 messed up >.< Mar 09 06:24:55 it's always something! Mar 09 06:42:19 so my app will be monitoring GPS in the background Mar 09 06:42:29 but I don't want it to be a battery hog Mar 09 06:42:50 can I change the frequency of how often GPS is polled? Mar 09 06:43:45 so for example, if you're moving slower than 15mph, poll GPS every X seconds, and if above, poll every Y seconds? Mar 09 06:45:00 calling all and any experts, i'm writing to logcat from a bunch of different threads, but the order of things is incorrect. is this seriously not queued ? Mar 09 06:45:56 i'm not an expert, but logcat probably did everything in the correct order :p Mar 09 06:46:30 well, its printing the result before the initialization message :) Mar 09 06:46:43 g00s, if there is a queue, how can you be sure that your threads are adding to it in chunks? Mar 09 06:46:44 as in... Mar 09 06:46:52 thread 1 has 2 lines to add Mar 09 06:46:58 thread 2 has 2 lines to add Mar 09 06:47:03 and they happen to interleave Mar 09 06:47:30 (I don't know what I'm talking about :D) Mar 09 06:47:39 well each thread did logs piecemeal, of course Mar 09 06:47:50 but lets say, each thread logs once, one line :) Mar 09 06:51:03 I still don't really see how it has anything to do with a queue Mar 09 06:51:16 still relies on your threads finishing in the correct order Mar 09 06:51:53 memorizing alot of this is gonna be hard Mar 09 06:53:43 you saying that just made me think... Mar 09 06:53:50 I rely a TON on IntelliJ's autocomplete Mar 09 06:53:59 I'd have no idea what I was doing without it :P Mar 09 06:55:31 also, i wonder if Android will support java 8... Mar 09 06:56:43 i don't think a Log.xx() is atomic Mar 09 06:59:27 why not? Mar 09 06:59:36 it puts the whole line of text into the queue Mar 09 07:00:44 oh, and it's technically a buffer Mar 09 07:00:58 which in this situation I think means the same thing Mar 09 07:01:27 g00s, basically I'm saying that Log has no idea about the order you are putting lines into it Mar 09 07:01:33 your threads put lines into when they want to Mar 09 07:01:34 Can I set that ListView Item will take X% of the screen no matter screen size? Mar 09 07:11:16 Can I set that ListView Item will take X% of the screen no matter screen size? Mar 09 07:12:48 http://www.coderanch.com/t/610485/Android/Mobile/set-size-elements-layout-percent Mar 09 07:13:50 Hi. If I use SL4A to make APKs of Python applications, do they include the interpreter in the package itself, or is it simply downloaded for the user if they do not already have it installed? Second last point here mentions it but is slightly ambiguous about it - http://jokar-johnk.blogspot.in/2011/02/how-to-make-android-app-with-sl4a.html Mar 09 07:18:58 thanks frankdrey Mar 09 07:20:47 I'm trying to launch an android emulator now o.o Mar 09 07:21:00 whoa it works Mar 09 07:21:08 RedEyedGirl, unless you have a 6 core PC, good luck at using it well :P Mar 09 07:22:02 i won't be doing anything crazy on it. Mar 09 07:22:14 ok :D Mar 09 07:22:16 but Idk am I supposed to install android on it or will eclipse and the sdk install droid for me on it? Mar 09 07:22:22 o.o it just flashes android android.. Mar 09 07:22:24 it already has android Mar 09 07:22:27 woo Mar 09 07:22:27 that means it's loading Mar 09 07:22:29 okay Mar 09 07:22:31 it'll take a while :P Mar 09 07:22:35 what are your specs? Mar 09 07:22:58 duel core 1.86 ghz processor with a fsb of about 200 mhz and 3 GB of ddr Ram Mar 09 07:23:10 good luck :P Mar 09 07:23:39 ty lol Mar 09 07:24:20 I gave it 568 mb of ram Mar 09 07:24:21 XD Mar 09 07:24:33 * frankdrey stares happily at his working listviews and custom adapters Mar 09 07:24:42 *cry* it all works so well :D Mar 09 07:24:53 should I use the visual view editor in eclipse for android or no? Mar 09 07:24:58 sure Mar 09 07:25:07 I use both in IntelliJ Mar 09 07:25:48 I like the visual one for laying stuff out, but when it comes to weird properties, I'd rather use text + my beloved autocomplete Mar 09 07:26:37 Also, has anyone had any luck making applications in Jython for Android? Mar 09 07:27:27 hey how do I compile it... Mar 09 07:27:38 stupid question I know when I launch the app in emulator. it didn't auto compile. Mar 09 07:27:44 or over write the old apk in my bin folder Mar 09 07:28:34 HisaoNakai, it sounds like SL4A will download it automatically from that article to me Mar 09 07:28:55 RedEyedGirl, dunno, see Make/Build Project anywhere? Mar 09 07:28:59 * frankdrey doesn't use Eclipse Mar 09 07:37:31 I see, thanks, frankdrey o.o Mar 09 07:38:28 hm adb shell seems to wrap at 80 columns no matter how big my terminal is Mar 09 07:38:34 <.< Mar 09 07:46:46 correction - has anyone had any luck making *Android applications in *Jython? Mar 09 07:47:27 dunno about Jython, but JRuby apparently works but not many people try it Mar 09 07:48:01 sl4a is pretty much abandoned, isn't it? Mar 09 07:48:34 I don't think it's dead, but it never got much traction Mar 09 07:51:57 sl4a seemed like a hack Mar 09 07:56:22 HisaoNakai i guess this works on Android http://kivy.org/#home Mar 09 07:56:34 there is even a book about it. i have no idea if it works well :) Mar 09 07:57:11 http://www.amazon.com/Kivy-Interactive-Applications-Roberto-Ulloa/dp/1783281596 Mar 09 07:59:45 Leeds i have a doubt Mar 09 08:08:25 g00s: Heh, I know of Kivy. My problem, however, is multi-faceted - I'm writing an ear trainer which will also accept answers in audio, which entails pitch and beat detection - so speed is needed and I was advised against Python for that; secondly, I want to use one of two existing (desktop only, sadly) applications to provide music-generation capabilities in it - one is a Python app, and the other is a Mar 09 08:08:28 Java app. Mar 09 08:09:14 hm, pitch detection seems like fft / ndk to me Mar 09 08:10:16 yeah, i'd do it in java, maybe with some ndk; the complexity is in the algorithms; not the android framework Mar 09 08:10:44 g00s: yeah, original idea was to have a C backend, and separate UIs for desktop and Android (this one has to run on at least Linux and Android). Mar 09 08:11:06 g00s: Is Java/Jython fast enough for audio work? o.O Mar 09 08:12:28 on android, i doubt jython; dunno about java Mar 09 08:13:28 Hrm... Mar 09 08:15:15 HisaoNakai: you need to read about low-latency audio as well Mar 09 08:15:52 though maybe if you don't need realtime... Mar 09 08:17:08 p_l: Naturally, but do you mean 'before you choose a language'? o.o Mar 09 08:17:40 HisaoNakai: before you choose *environment*. Language is, to be honest, secondary Mar 09 08:18:04 you can write native code in more than just C/C++, you can write dalvik-side code in more than just java Mar 09 08:18:43 the actual organization, algorithms, *data flows* etc. of your application are IMO more important Mar 09 08:24:52 p_l: I'm doing that too, alongside...just scared of starting off on a language which later turns out to be a wrong choice, wasting hours of work and learning :s Mar 09 08:25:40 daily life of a good programmer :P Mar 09 08:25:57 Heh Mar 09 08:29:31 hey. my galaxy nexus can't connect as media device .it can connect only as camera .it say Sorry, could not display all the contents of "Galaxy Nexus": DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the net Mar 09 08:31:29 I am making a chat app and need someone to create and maintain the backend XMPP server. Mar 09 08:31:58 I can't pay but the person can have partial ownership in the company Mar 09 08:32:03 The app will be free Mar 09 08:32:17 Anyone interested? Mar 09 08:33:23 pifon: you might want to look for a local open mic night Mar 09 08:33:46 Anyone? Mar 09 08:34:20 they'd probably appreciate your jokes more there Mar 09 08:35:03 PM me if anyone is interested I will stick around for some time. Mar 09 08:35:49 Leeds never know, maybe pifon is next on facebook's radar! Mar 09 08:36:12 Leeds but i have a doubt Mar 09 08:36:12 I bet they'd only go up to 10 billion for him Mar 09 08:36:31 Very funny. Mar 09 08:36:38 Leeds: Yen! Mar 09 08:36:38 haha Mar 09 08:36:58 10 billion lithuanian nails :) Mar 09 08:37:19 I'd take 10 billion yen, quite happily Mar 09 08:37:55 Leeds: in long-vesting stock? ;> Mar 09 08:38:01 Hey, pifon . Small world. Mar 09 08:38:10 p_l: FB? yes Mar 09 08:38:12 Hi Mar 09 08:38:25 from #music right? Mar 09 08:38:27 yeah i remember Mar 09 08:38:29 Indeed. Mar 09 08:39:20 is this channel primarily for app development, or rom development? Mar 09 08:39:41 * Leeds slaps phubarr around with a wet /topic Mar 09 08:39:53 does anybody had this problem with his/her android phone? DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Mar 09 08:40:01 uhhh... you're totally right. my fault. im sorry. Mar 09 08:40:33 im so disoriented, you know, because of the time shift Mar 09 08:40:42 back to the future and all that Mar 09 08:41:12 er... what time shift? Mar 09 08:41:40 daylight savings Mar 09 08:41:52 its that again... pfeh Mar 09 08:41:55 no such thing Mar 09 08:42:01 its a scam, i know Mar 09 08:42:09 but im forced to abide by it Mar 09 08:42:25 once i tried to refuse to "play along" but it caused more problems than it solved Mar 09 08:42:27 you must also abide by Leeds' rules Mar 09 08:42:39 abide! Mar 09 08:42:47 I love it when people randomly bring up local phenomena and assume everyone else is also involved Mar 09 08:42:56 Leeds: ++ Mar 09 08:43:28 well... the USA is so ego-centric, nobody else really exists Mar 09 08:43:43 any help? : ( Mar 09 08:44:46 Melissa-: that sounds more like a linux error than an android error Mar 09 08:45:03 hmm ok Mar 09 08:45:05 that reminds me Mar 09 08:45:37 i dont think nexus devices can be connected as usb storage devices.... only that new protocol... cant remember the name of it, but i hate it Mar 09 08:46:02 phubarr: well, the new integrated storage pretty much doesn't work as usb mass storage target Mar 09 08:46:19 android 4.2.1 galaxy nexus phubarr i have ubuntu 3.2.0-41-generic-pae but in win7 the problem exist too. Mar 09 08:46:20 though personally I'd prefer the method from ActiveSync, just with better protocol Mar 09 08:46:51 Melissa-: D-Bus as usual doesn't give any hint of *what* happened Mar 09 08:47:14 dbus is just a communication channel between apps and the OS and stuff Mar 09 08:47:15 other than the fact that it crapped out, which could be caused by at least 3 different packages before even talking to the phone Mar 09 08:47:32 s/and the OS// Mar 09 08:49:01 p_l: phubarr the odd thing is that it was working till yesterday. so if the problem related to OS or it's packages i should see the error from first day not only today. Mar 09 08:49:38 Melissa-: About the most common problem I ever had with MTP connection to my N4 involved broken USB cable Mar 09 08:50:39 some usb cables are very finnicky Mar 09 08:51:28 p_l: i used 3 different cable . so cable must not be the problem. you know... it can connect as camera PTP but not MTP :/ Mar 09 08:51:59 if it was cable it couldn't connect as PTP too Mar 09 08:52:01 i really, really hate mtp. Mar 09 08:52:34 poor MTP : ) Mar 09 08:52:46 Melissa-: I strongly suspect something in your system Mar 09 08:52:47 ive never seen it work right Mar 09 08:53:03 though... I guess there was a switch between PTP and MTP in the settings? Mar 09 08:53:34 yep, on mine at least Mar 09 08:53:44 i wonder what would happen if you edited the build.prop file to use usb mass storage instead of mtp Mar 09 08:54:05 phubarr: wouldn't work Mar 09 08:54:19 figures Mar 09 08:54:22 or you would crash the internal storage filesystem, if not worse Mar 09 08:54:37 i did it on my galaxy note 1 Mar 09 08:54:41 it didnt crash anything Mar 09 08:54:41 phubarr: oh, and windows nor OSX would be able to read it, since it's ext4 Mar 09 08:54:53 phubarr: it might have used old arrangement of storage still Mar 09 08:54:57 ahh yeah theres no external sdcard Mar 09 08:55:03 on the nexuses Mar 09 08:55:05 nexii? Mar 09 08:55:24 nexum? Mar 09 08:55:40 nexii, I think, though nexuses seems acceptable Mar 09 08:55:52 hehehe Mar 09 08:55:55 also, it's less matter of external sd card, it's also matter on how the internal memory is connected Mar 09 08:56:12 on newer nexus devices, /data and "SD" are the same partition Mar 09 08:56:28 oh yeah, as /data/media, right? Mar 09 08:56:36 yeah Mar 09 08:56:53 so if you exported it over USB Mass Storage, you'd have to either "hang" the OS, or face the music :P Mar 09 08:57:30 yeah, i wouldnt recommend doing it... the file system format wouldnt be compatible Mar 09 08:57:38 what is she trying to do, anyway? Mar 09 09:01:50 phubarr: i decided to do this persist.sys.usb.config=mass_storage,adb Mar 09 09:02:01 if it work : | Mar 09 09:02:07 i hope Mar 09 09:03:27 pifon we're just ornery on weekend evenings Mar 09 09:04:03 although i already forgot what we were talking about Mar 09 09:43:12 I am back, got disconnected. Mar 09 09:44:31 I've tried everything I could find on how to re-use an activity that was previously launched, but I always end up with two or more of that activity when I start the intent. This results in everything happening twice Mar 09 09:44:40 If I press a button, it's pressed in both activities Mar 09 09:46:13 APPxle, depending on how your task stack works Mar 09 09:46:21 use an apropriate flag in startActivity. Mar 09 09:47:07 e.g. FLAG_ACTIVITY_CLEAR_TOP is one of those, but might not do exactly what you want Mar 09 09:47:13 I have tried Mavrik Mar 09 09:47:35 singleInstance/Task/Top as well, along with many different flags in different attempts Mar 09 09:47:52 I always get duplicate activities instead of it reusing the existing one... Mar 09 09:48:00 Even if I call Finish() on the activity, I still get duplicates Mar 09 09:48:41 neither of those you just posted do what you want Mar 09 09:48:54 I have tried CLEAR_TOP Mar 09 09:48:55 please stop randomly trying stuff and making a mess of thigs -_- Mar 09 09:49:01 Trying it again Mar 09 09:49:13 sec Mar 09 09:49:14 I am checking documentation and advice on stackoverflow lol Mar 09 09:49:26 APPxle, this will help you: https://docs.google.com/file/d/0B9uHPYbJNs0Yc1VmT3ZRTmhiTHc/edit?hl=en&forcehl=1 Mar 09 09:49:39 109 slides? Mar 09 09:49:41 Really? Mar 09 09:50:03 I know how activities work as a stack, I just don't know why the heck I get duplicates no matter what Mar 09 09:50:13 Even when I do what the documentation tells me to Mar 09 09:50:59 I have a button on a layout, and that makes an alertdialog popup. First launch; one popup. Second time I launch; two popups. And so on. Mar 09 09:51:18 Just tried CLEAR_TOP again. Still get duplicates Mar 09 09:51:49 Is there any good reason why android favors 9-patch images over something completely dynamic like what we see in css3 ? Mar 09 09:52:04 well if you can't be bothered to learn what the heck you're doing I'm not wasting my time anymore Mar 09 09:52:14 Thorbear, hmm, what do we see in CSS3? Mar 09 09:52:36 box shadow and background gradients Mar 09 09:52:37 we C SS3 Mar 09 09:52:39 lol Mar 09 09:52:48 Thorbear, (honest question, been awhile since I've done CSS:) Mar 09 09:52:50 Literally all you have to do is say "do this and add that". I've been studying this crap for an hour trying to get it to work, and everything I read fails Mar 09 09:52:58 Thorbear, oh... you can do those without 9-patches Mar 09 09:53:07 it's not as pretty as in CSS but it's doable, see shape drawables Mar 09 09:53:07 welcome to programming, APPxle Mar 09 09:53:15 pulling teeth. Mar 09 09:53:44 Thorbear, also, using a custom view / drawable where you use Canvas methods to draw stuff is also doable :) Mar 09 09:53:47 Right now I'm not frustrated with programming, I'm frustrated with a person knowing the answer to my question but refusing to help for no reason Mar 09 09:53:54 alot of time better, prettier and simpler than dealing with 9-patches :) Mar 09 09:54:03 Other than "here, spend another hour reading this book" Mar 09 09:54:17 Mavrik: everywhere I've looked for something similar to the css box-shadow I end up with 9-patch guides Mar 09 09:54:20 "It might help you, but I don't know... maybe. Might be relevant too, if you're lucky" Mar 09 09:54:28 yes Mar 09 09:54:38 Thorbear, hmm, yeah, shadow specifically is a real annoyance to do Mar 09 09:54:57 aiii...gradle woes Mar 09 09:55:09 I gave AS a chance, I really did...I wanted to move my projects to AS... Mar 09 09:55:17 APPxle, what I've posted is very relevant to what you're doing and I'm not your teacher to retype that document for you on this channel Mar 09 09:55:35 Thorbear, (you'll notice not alot of Android apps use shadows because of it) Mar 09 09:55:35 but that god damn Gradle Mar 09 09:55:54 You know what flag or launchmode combination I have to use, why don't you just say it so I can fix this bug and get rid of the frustration? Mar 09 09:56:10 all of this arguing just because you don't want to read more Mar 09 09:56:13 lul! Mar 09 09:56:15 my god Mar 09 09:56:27 APPxle, because I can't tell you since I don't know how your app works and how your app backstack is constructed and how you want your app to behave. Mar 09 09:56:28 I'm literally asking for a common friendly gesture here Mar 09 09:56:38 there is a REASON why that presentation has 110 slides. Mar 09 09:56:40 ffs. Mar 09 09:56:44 Mavrik: I have a launch activity that has a button that creates an activity. That's it Mar 09 09:56:51 Mavrik: I'll see what I can do with canvas and custom drawables then. Thanks anyway Mar 09 09:57:06 Mavrik: dammit, just give APPxle a fish! Mar 09 09:57:13 Give me a fish already Mar 09 09:57:21 Thorbear, I suggest you try 9-patchds anyway for shadows, since drawables probably won't behave like you expect when doing shadows Mar 09 09:57:25 Be forever grateful - and I *will* read those slides Mar 09 09:57:33 Thorbear, (because you want shadows to be outside the view content, not inside) Mar 09 09:57:33 * p_l gives APPxle a grenade instead Mar 09 09:57:36 But I'd very much like it if I could fix this first, because it's unbearingly frustrating Mar 09 09:58:05 And I don't mean to take that out on you, apologies Mar 09 09:58:32 bwa there Mar 09 09:59:52 How Android is even designed to run two activities simultaneously (duplicate processes) is beyond me Mar 09 10:00:04 That's not good in literally any situation Mar 09 10:03:27 hey everyone i'm having alot of issues Mar 09 10:04:35 http://pastebin.com/xibxEY20 Mar 09 10:04:59 I'm doing this as part of this tutorial here: http://developer.android.com/training/basics/firstapp/starting-activity.html#BuildIntent Mar 09 10:05:10 I'm getting tons of errors... everything was fine till this part Mar 09 10:06:05 RedEyedGirl: are we guessing what the errors are? Mar 09 10:06:55 These slides... I've never seen so many typos in my life Mar 09 10:07:09 "startActvitiy(i)" Mar 09 10:10:06 apparently that's a yes, then... amazing Mar 09 10:13:45 Does the card look good? http://gyazo.com/53033904976c6813fe415e6f47ae7df3.png Mar 09 10:15:55 The attribute value is undefined for the annotation type SuppressLint at the line where it says SuppressLint("NewApi") Mar 09 10:16:12 sorry @SuppressLint("NewApi") Mar 09 10:16:53 in the tutorial it tells me to do this though >.< Mar 09 10:17:20 two errors: Description Resource Path Location Type Mar 09 10:17:20 SuppressLint cannot be resolved to a type DisplayMessageActivity.java /Rain'sApp/src/com/example/rainsapp line 13 Java Problem Mar 09 10:17:20 The attribute value is undefined for the annotation type SuppressLint DisplayMessageActivity.java /Rain'sApp/src/com/example/rainsapp line 13 Java Problem Mar 09 10:17:24 According to the documentation, if SingleTask launchmode is set, and if the activity already exists when trying to launch it (ie. launched before), then it will reuse it and call onNewIntent() --- this isn't happening for me Mar 09 10:17:49 i was having fun till i ran into errorsi can't solve in two seconds... Mar 09 10:17:50 >.< Mar 09 10:29:06 this is a pain x.x Mar 09 10:29:06 http://i.imgur.com/I0hX8U9.png Mar 09 10:36:12 nobody is interested? Mar 09 10:36:14 great Mar 09 10:36:31 When my app blows up then you will all regret this! Mar 09 10:38:09 How would you solve this "problem"? Mar 09 10:38:10 http://gyazo.com/69e61a2f04f44cf720d6ca897a3de591 Mar 09 10:38:12 pifon i'm a newbie Mar 09 10:38:35 this sucks to cause i'm starting to understand the way android operates Mar 09 10:38:40 but i can't get the syntax right Mar 09 10:39:24 Are you interested?? Mar 09 10:43:36 when using AS, I see that what they consider as Organize Imports is actually Optimize Imports, meaning that if you have any unused imports it will remove them Mar 09 10:44:07 but it will not add the ones you are lacking, when you copy/paste a file and there are references to classes that it doesn't recognize, it doesn't add those needed imports like Eclipse does Mar 09 10:44:11 oh i thought you were interested Mar 09 10:45:56 this behavior is sort of strange, sort of stupid. You'd have to go to every unknown reference and delete the last character, wait for the suggesting to come up and choose it, at which point the imports are...imported Mar 09 10:46:09 or you'd have to write everything yourself to avoid having to do this for every unknown reference Mar 09 10:48:57 ah, you have to set it to "Add unambiguous imports" under Settings > Editor > Auto Import Mar 09 10:49:23 Just place the cursor near the error, press alt+enter Mar 09 10:49:36 too used to Ctrl Shift O Mar 09 10:52:56 Just copy paste less code Mar 09 10:53:49 yes usually I don't do this, but now I'm manually creating a duplicate project of one that I had on Eclipse, because generate Gradle files > Import Eclipse Project did not work seamlessly Mar 09 10:56:00 How would you make this look good? http://gyazo.com/69e61a2f04f44cf720d6ca897a3de591 Mar 09 10:56:26 hire a designer! Mar 09 10:56:31 instant look goodness Mar 09 10:56:36 would you guys say that for Day 1 of trying to learn android this knowledge is good: [4:05:23 AM] Tosharu: I learned where error message are displayed, how to set up new activities. I learned some of the program heiarchy and what I need to do to set up my xml documents that define how the android application lays out it's user interface. Mar 09 10:56:36 [4:05:42 AM] Tosharu: i learned that i can add activities as seperate files and then call them from within another class using an intent inside the function of the class Mar 09 10:56:36 [4:05:42 AM] Scorpion_Frog: then i'd say you haven't wasted a whole lot of energy at all Mar 09 10:56:36 [4:05:47 AM] Tosharu: and then i can link the class to a UI object Mar 09 10:56:36 [4:05:55 AM] Tosharu: so that if the button is pressed the class is called Mar 09 10:56:36 [4:05:57 AM] Tosharu: and it does something. Mar 09 10:56:36 [4:06:00 AM] Tosharu: that's what i learned basically Mar 09 10:56:37 [4:06:01 AM] Scorpion_Frog: k Mar 09 10:56:38 [4:06:03 AM] Scorpion_Frog: i get it Mar 09 10:57:30 Please don't spam the channel Mar 09 10:57:34 sorry u_u Mar 09 10:58:24 it will all make sense about 6 mos from now Mar 09 11:01:10 how likely is the android API to change? Mar 09 11:01:28 it hasn't changed much in a while Mar 09 11:02:15 The API changes every release. Mar 09 11:02:17 (at least) Mar 09 11:02:28 Backwards compatibility is rather explicit though. Mar 09 11:02:46 As in you can explicitly code to target Froyo and up Mar 09 11:03:28 RedEyedGirl, there were practically no backwards incompatible API changes in last few years Mar 09 11:03:32 mostly just additions Mar 09 11:04:33 Sicp, I can do it myself, I think Mar 09 11:07:40 things move slowly around here. when a nrew release comes out, it takes at least 6mos to get 10% share Mar 09 11:08:15 so now, like android 4.3 has 9.6% and was released sep 2013 Mar 09 11:09:11 oops 4.4 was sep 2013 Mar 09 11:09:39 4.3 was july 2013 Mar 09 11:09:55 holy shit, thats even more depressing Mar 09 11:10:13 Well. Mar 09 11:10:21 At least gingerbread isn't 50% anymore. Mar 09 11:10:26 That wasn't that long ago. Mar 09 11:11:04 Also - I find it annoying that https://developer.android.com/about/dashboards/index.html has dropped the progress over time graph Mar 09 11:11:46 i wish they would show a pie chart of screen sizes Mar 09 11:12:03 i also wish my dev console showed that Mar 09 11:12:20 * g00s will have to figure something out with GA Mar 09 11:12:54 They do - sort-of Mar 09 11:16:56 one thing i love is the from parent attribute.... for width and height Mar 09 11:16:59 idk the actual name Mar 09 11:17:03 but i have the general understanding. Mar 09 11:17:11 YOu can choose to take up the whole screen with one UI Mar 09 11:19:18 does R.drawable.something always return an integer? always represented by integer? Mar 09 11:19:43 because I want to save those addresses in a database and then fetch them later for use, for lookup Mar 09 11:20:08 so I want to save R.drawable.something, and then fetch it and do setImageResource on the fetch result Mar 09 11:24:57 seems like an interesting thing to do why would you do it Mar 09 11:26:24 Yes, it always returns an integer.. But if you ever add more drawables, the id for a drawable is likely to change Mar 09 11:29:17 any guesses why "android update sdk -u -t android-18" says it cant find anything? Mar 09 11:38:27 oh it needs -a Mar 09 11:39:27 Sicp, this will fall apart when you update your app Mar 09 11:39:31 so I advise against it. Mar 09 11:40:04 yea already having woes Mar 09 11:40:34 Sicp, IDs are assigned when app is compiling and aren't guaranteed to be stable Mar 09 11:40:49 so you add a drawable, your IDs change and suddenly your database is wrong :- Mar 09 11:48:08 you can have your own stable ids if necessary Mar 09 11:48:21 * g00s is only kinda following Mar 09 11:48:52 http://developer.android.com/guide/topics/resources/more-resources.html#Id Mar 09 11:57:30 Alright, I think it's finished. What do you think? http://gyazo.com/e62206cdcc87eb2cb7b267b30f4bf9d7.png Mar 09 11:59:07 menu dots on cards are too small Mar 09 12:00:15 all that space to say temp is 30'c and humidity is 99% ? Mar 09 12:00:29 those #s have to be much bigger too Mar 09 12:01:35 still think settings, info, and help go to overflow Mar 09 12:02:38 g00s, yeah, my boss will decide that. I think it looks good in both places Mar 09 12:02:54 g00s, the temp and humidity card is the most important one Mar 09 12:03:08 that's why it takes twice as much as the others Mar 09 12:03:51 What's "better" learning android development by buying a book (self learning) or going for an institute which provide a certificate? Mar 09 12:03:55 yeah, but the real info is way to o small Mar 09 12:05:06 autrilla hope your boss is a usability engineer Mar 09 12:05:23 or UX specialist - never under stood why bosses have the last say in these things ;) Mar 09 12:05:35 everybody likes to have an opinion on IO Mar 09 12:05:40 *UI Mar 09 12:07:06 g00s, is this better? http://gyazo.com/31d9814fb63f9f5960ce39181a35f9bc Mar 09 12:07:22 Only changed size of the dots on one, would be same size on all of them Mar 09 12:08:13 the numbers should be aligned Mar 09 12:09:10 anybody? Mar 09 12:09:16 i'd make them much bigger, use a lighter weight font, maybe condensed Mar 09 12:10:36 g00s, like this? http://gyazo.com/ea23b794739a85306573da2a2a036044.png Mar 09 12:11:42 oops, no. bigger, much bigger. 2x height of the labels Mar 09 12:11:57 not condensed, but light or extra light - Mar 09 12:12:04 anyhow, i hope you guys did wireframes first Mar 09 12:12:12 these are just little details Mar 09 12:12:32 g00s, isn't this a wireframe? Mar 09 12:12:41 no, too detailed Mar 09 12:12:47 I made some on paper Mar 09 12:14:34 g00s, http://gyazo.com/387690fecda049b91249f3e4e32874e7.png now it's Roboto Thin Mar 09 12:14:56 Maybe I should use Temp.: and Hum.: Mar 09 12:15:46 http://gyazo.com/e0087e7f45fcc45ad73aef4fdc13f01a.png Mar 09 12:16:00 Also, g00s, is the dot size now fine? Mar 09 12:18:43 the dot size should be 9mm Mar 09 12:18:58 9mmx9mm for usability, maybe 8mmx8mm Mar 09 12:23:05 That's the touch area, not the size of the dots Mar 09 12:25:55 Alright.. http://gyazo.com/01470a0bc4099ed749b1986ab7f3270e All are 9x9mm minimum Mar 09 12:32:48 autrilla yes, SimonVT is right. you can use a touch delegate also Mar 09 12:32:59 i hate cards Mar 09 12:33:10 i hope that shit dies soon Mar 09 12:35:03 g00s, I like them. Why don't you? Mar 09 12:35:28 * g00s tired , time for bed - autrilla hope you boss approves, good luck :) Mar 09 12:35:42 thanks :) Mar 09 13:13:13 the javascript from my webview is definitely running, but it is not producing the same results as in a browser, any way to debug this? Mar 09 13:16:44 About the stepcounter: "This sensor is implemented in hardware and is expected to be low power." But then it says it uses the accelerometer...but I guess it is an extra circuit attached to the accelerometer so obv it is not enough to download kitKat, your phone also needs to have the hardware...? Mar 09 13:20:46 It depends. Mar 09 13:20:55 Speaking from a hardware perspective. Mar 09 13:21:45 Many accellerometers have an internal FIFO that can in principle be programmed to read every (say) 1/10th of a second, and then the main CPU wakes up every 3s to flush the FIFO and process the events. Mar 09 13:22:14 Also - even more common is thresholdable interrupts - you can say 'interrupt when you measure g=1.1 vertically. Mar 09 13:22:29 And even more advanced ones exist with their own little sensor fusion MCU inside. Mar 09 13:22:50 The problem is a lot of software developers are morons when it comes to hardware. Mar 09 13:23:16 They do not carefully read the datasheet of the chip and see what the minimal power way to do something is. Mar 09 13:23:38 Configuring the accellerometer to just read out at 100hz, and continually polling it is common, rather than doing things properly. Mar 09 13:23:43 So it's a software and hardware issue. Mar 09 13:23:53 ^kernel software and android API support. Mar 09 13:25:29 agree SpeedEvil Mar 09 13:25:44 they are taught that neat abstraction is the most important thing Mar 09 13:26:00 not performance, and generally using hw correctly Mar 09 13:26:09 Sigh. Mar 09 13:26:20 I'm reminded of my n900. Mar 09 13:26:25 embedded code by non-embedded devs is the worst Mar 09 13:26:27 Where they used a complex pulseaudio filter. Mar 09 13:26:44 Rather than configure the IIR filter in the sound chip. Mar 09 13:26:47 "hey let's just sleep() in the middle of this deep control flow" Mar 09 13:27:05 +20% CPU rather than 0% Mar 09 13:27:06 nobody will think the whole device just froze for no reason Mar 09 13:28:01 this microcontroller has multiple programmable interrupt timers for a reason! Mar 09 13:28:34 single threaded async style coding seems to be underappr3ciated in general Mar 09 13:28:43 do you really need a thread here? Mar 09 13:29:45 Hello, I am developing a Launcher application that will works as a Kiosk container, for the application that I am going to choose to be run as default. I've taken some code from the Launcher2 (default Android Launcher), and I am able to choose which application that is going to be always on the front. But I am currently lost and I don't know how to make sure that the application that I've chosen will always be in the front. Mar 09 13:29:46 I tried to start a service that launches the application but I am not sure how to proceed from there, any ideas are welcome. Mar 09 13:30:32 anyone know the difference between the target api level settings in project.properties and AndroidManifest.xml? Mar 09 13:31:16 project.properties defines the build target Mar 09 13:32:20 is it better to use the most recent build target, or the lowest build target that has the needed functions? Mar 09 13:33:26 for example if i use api 19 build target, but only use functions from api 5, should i still use 19 as the target Mar 09 13:34:34 Then it wouldn't matter.. But you'd always use the newest so you can take advantage of all the awesome api's they add Mar 09 13:34:40 yes if you're ok with excluding older devices Mar 09 13:35:27 Using a newer build target doesn't exclude older devices Mar 09 13:36:12 ok thanks, im just trying to make a little demo app for now Mar 09 13:36:26 yeah i wanted to make sure it would still install/work properly on older devices Mar 09 13:37:13 it sounds like the manifest settings are the only things that would block installation Mar 09 13:37:32 Read this: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Mar 09 13:37:33 it explains it Mar 09 13:39:49 cool, thanks Mar 09 13:51:02 Hi guys, android n00bie here. Mar 09 13:51:57 hello, I am attempting to create a game loop thread but I am having difficulties. Thus far I have only basic simple implementation and I am getting told "thread exiting with uncaught exception (group=0x2aac8578)" Mar 09 13:52:14 I was wondering, normally I (mostly) use different files for different classes. How does this work in Android? Different activities have different layout files etc. How would I for example use a seperate script for certain utility classes? Mar 09 14:11:35 hi devs Mar 09 14:11:44 need help on LOGI Mar 09 14:11:47 i'm a noob Mar 09 14:12:01 and compiling philz recovery for my phone Mar 09 14:12:35 but need screen is blank and log also repeats itself after framebuffer line Mar 09 14:12:51 philz asked me to put logi in recovery.c Mar 09 14:12:58 I put LOGI("THIS IS LINE 1092"); Mar 09 14:13:33 but compiler gives me error Mar 09 14:13:35 bootable/recovery/recovery.c:531:1: error: expected declaration specifiers or '...' before '(' token Mar 09 14:13:35 bootable/recovery/recovery.c:531:1: error: expected declaration specifiers or '...' before string constant Mar 09 14:13:40 This channel is for app dev Mar 09 14:13:43 can any1 help? Mar 09 14:13:47 oopss Mar 09 14:13:51 sorry Mar 09 14:28:06 hello there. I'm having big problems getting my computer to recognize my tablets Mar 09 14:28:24 it can find smart phones but not nexus 7, nexus 10 or xperia tablet z that i've tried with Mar 09 14:28:50 tried compiling with both unity and java, but it can't find the devices Mar 09 14:29:06 they're debug enabled and i've tried finding drivers online and installing them. Mar 09 14:29:25 android versions are 4.3 and 4.4.2. Anyone run into this problem before? Im using windows 8 Mar 09 14:56:51 Question, What is the appcompat_v7 library, and why does my project want to use it as a library? I only installed the google_play_services_lib, but appcompat_v7 lib shows up in my workspace now, and when referenced it gives the following error: The container 'Android Dependencies' references non existing library 'I:\Android\Workspace\appcompat_v7\bin\appcompat_v7.jar' Mar 09 15:00:41 http://lmbtfy.com/?q=+What+is+the+appcompat_v7+library# Mar 09 15:03:01 Leeds: Ew. https://lmddgtfy.net/?q=What%20is%20the%20appcompat_v7%20library Mar 09 15:03:04 xD Mar 09 15:03:16 HisaoNakai: nah, I've got a line :) Mar 09 15:03:28 Leeds: Line? Mar 09 15:04:04 the point is, when someone asks why I'm directing them to Bing, I can say that I'm assuming there's some reason why they can't use Google, or they would have already done so :) Mar 09 15:04:13 LOL Mar 09 15:05:21 Leeds: I googled ofcourse... All i can find is stuff I don't get as a n00b, plus other n00bies asking what it is Mar 09 15:05:22 hi all. i'm having problems with ListFragment in the v4 compatibility library. the problem is more or less explained at http://stackoverflow.com/questions/7863074/including-list-content-into-list-layout-to-retain-listfragment-functionality. i have tried creating list_fragment.xml and putting it in my project. you can see it at http://pastebin.com/fxHddwCG. but when i compile, i get an error "Resource is not public. (at 'id' with Mar 09 15:05:29 what am i doing wrong? so frustrating Mar 09 15:05:57 if you could please explain a little bit what is happening, I'd hate to reinstall Eclipse Again Mar 09 15:06:25 why the fsck would you have to reinstall eclipse? Mar 09 15:07:05 well, it keeps throwing errors now that I reference that lib, even though I don't. The references to google play api lib are now broken as well Mar 09 15:07:48 The container 'Android Dependencies' references non existing library errors Mar 09 15:08:00 the support library is Google's way of making newer Android features available to apps built for and running on older OS releases Mar 09 15:08:50 ahh, so it has nothing to do with the play API. Yeah i started a new project with a 4.3 target.. Mar 09 15:11:36 So, I deleted the support lib, plus that project. Now all I have is a broken ref to a non existing google play lib, which I re-imported already. How would I fix that? Mar 09 15:12:35 Wow, I was looking around for MIDI support on Android, and even documentation for developers if I could be so blessed Mar 09 15:12:37 and http://code.google.com/p/android/issues/detail?id=8201 Mar 09 15:13:05 Problem isolated - May 2010. Still unfixed, it seems. Mar 09 15:13:48 Oh, interesting workaround - https://github.com/billthefarmer/accordion Mar 09 15:15:58 So, why is it that even with the google play lib Definately imported into the workspace, checked in Eclipse and in Explorer, it still gives me a broken reference and build path error? Mar 09 15:16:12 im feeling like im missing a big part here Mar 09 15:16:50 and yeah usually I just reinstall Eclipse, it's quicker, but I think that if i tried to understand it, this sort of thing won't happen again.. Mar 09 15:28:22 I reinstalled Eclpise, reinstalled the android plugin, but now it won't recognize / load my workspace At all Mar 09 15:28:38 upon trying to import my projects I just keep getting a invalid project description error... Mar 09 15:28:54 if anyone could lend a helping hand, I would be much obliged :( Mar 09 15:30:24 im used to working in Unity, where the 'workspace' literally is the project folder itself. I've gathered that it doesn't work the same in Eclipse, that it really needs the reference to certain files, even though they are physicly in the Workspace folder, correct? Mar 09 15:34:28 ThomQ, this is one of the reasons I switched to IntelliJ Mar 09 15:38:04 that works with just the physical files, rather then having references to everything? Mar 09 15:39:34 You can have references, but the whole workspace -> project thing in Eclipse is so stupid Mar 09 15:39:45 IntelliJ has project -> modules Mar 09 15:40:30 k k Mar 09 15:40:31 well Mar 09 15:40:36 it looks like i dont have any choice Mar 09 15:41:00 even on a Totally new install, I still get the missing references and broken build path errors whenever I create a new project for 4.3 Mar 09 15:42:54 hey guys. I was looking for writing an android application for an communication application. I was looking for the logic behind how the other chats work. Mar 09 15:43:14 does anybody has idea about it ? Mar 09 15:45:09 just to make it more clear i am looking for a mobile extension of an IRC client Mar 09 15:45:16 anybody ? Mar 09 15:47:51 Read up on the IRC protocol? Mar 09 15:50:01 If you had the same bitmap as background for all your fragments, would you make it static instead? Mar 09 15:52:00 Static means it can't be changed Mar 09 15:53:17 i mean a reference to a static bitmap Mar 09 15:54:32 That depends on how your code is organized... Mar 09 15:54:42 Perhaps pass it to each fragment? Mar 09 15:55:46 hi, I encountered problems with my eclipse setup and couldnt fix it, so I reinstalled the eclipse and deleted worspace and .android folder for a clean new start, but now my project wizard wont add classes to my android project, can someone help me with that? Mar 09 15:57:06 I really dont know what to google for... or where to look for more of those old files... Mar 09 15:59:03 nunu: are the files still there if you view your file system via a file explorer? or "ls"? Mar 09 16:00:27 the main project files are all there, i think, only the src folder stays empty after the class wizard or project wizard Mar 09 16:01:22 nunu: well add that shit in! or give up and use android studio :) Mar 09 16:02:45 never tried adding them manually, because i wanted a clean new setup after the mess from last night :/ no even that new install is messed up Mar 09 16:03:04 *now Mar 09 16:05:28 with intelliJ, do i need to Constantly clean every library and project file? Mar 09 16:05:57 No, why would you? Mar 09 16:06:41 yeah, Ask Eclipse :P Mar 09 16:14:15 lol\ Mar 09 16:19:25 ok well, IntelliJ it is.. I imported a project, build it, and it ran flawlessly. In Eclpise i needed to clean 1 project and 2 libs a couple of times before it would stop giving me errors Mar 09 16:19:53 too bad it'll take a while getting used to the editor, but i've wasted too much time with Eclipse as it is Mar 09 16:21:28 well, you didnt discover something which is not known Mar 09 16:21:51 :) True. But as a n00b I just did what the google docs reccomended Mar 09 16:28:26 I think there is a bug in this example: http://developer.android.com/guide/components/intents-filters.html#ForceChooser Mar 09 16:28:59 Shouldn't it be startActivity(chooser) instead of startActivity(sendIntent) Mar 09 16:31:55 Looks like it Mar 09 16:32:03 There's also nothing called sendIntent Mar 09 16:34:23 okay, i'm writing my first app, i have a sqlite database which i want to connect to a ListFragment. i'm confused about the docs in various places. i believe that i should use CursorLoader which requires a ContentProvider, so I have to write a ContentProvider for my database. yet ContentProviders are only supposed to be for apps that expose data to other apps. can someone advise the correct way to do this without over-engineer Mar 09 16:34:45 SimonVT: I think that is from the previous example Mar 09 16:56:16 Does anyone here have any experience with Kivy for Android applications? Mar 09 16:57:22 okay, i'm writing my first app, i have a sqlite database which i want to connect to a ListFragment. i'm confused about the docs in various places. i believe that i should use CursorLoader which requires a ContentProvider, so I have to write a ContentProvider for my database. yet ContentProviders are only supposed to be for apps that expose data to other apps. can someone advise the correct way to do this without over-engineer Mar 09 17:11:01 hey , is there any java android debug bridge? Mar 09 17:13:21 nick9998: Yes. adb. Its listening socket is debugger-compatable. Mar 09 17:14:32 freeone3000: thanks Mar 09 17:16:36 When do you close your database? After every time you have called getWriteableDatabase or only in onStop()? Mar 09 17:20:51 okay, i'm writing my first app, i have a sqlite database which i want to connect to a ListFragment. i'm confused about the docs in various places. i believe that i should use CursorLoader which requires a ContentProvider, so I have to write a ContentProvider for my database. yet ContentProviders are only supposed to be for apps that expose data to other apps. can someone advise the correct way to do this without over-engineer Mar 09 17:21:08 so clearly this is bad right? : cursor.close(); return cursor.getCount(); Mar 09 17:22:48 zil: int x = cursor.getCount(); cursor.close(); return x; Mar 09 17:23:19 antgel: If you get a Cursor, you can use a CursorAdapter directly. Mar 09 17:26:39 freeone3000: for example, SQLiteCursor? so i go db -> SQLiteCursor -> CursorAdapter? is there any disadvantage to that approach? Mar 09 17:26:39 When do you close your database? After every time you have called getWriteableDatabase or only in onStop()? Mar 09 17:31:02 Does anyone here forget instrumentation testing and just use JUnit? Mar 09 17:31:07 Like, just test the basic classes. Mar 09 17:31:49 It seems that instrumentation testing is slow and troublesome. Mar 09 17:31:56 antgel: You're limited in what your CursorAdapter displays to what's available in your cursor. Mar 09 17:32:27 TacticalJoke, yeah, we're using JUnit with Robolectric Mar 09 17:33:55 Cool. Mar 09 17:34:10 Do you think I could get away with just doing JUnit testing (without testing Android-specific code). Mar 09 17:34:12 This is just a hobby project. Mar 09 17:34:25 My idea is that I keep my classes as generic as possible and test them. Mar 09 17:34:30 yep Mar 09 17:34:36 I have a traces.txt which says my Main thread is in state SUSPENDED. Every other thread is either in WAITING or RUNNABLE. How can I determine why my main thread is SUSPENDED? Mar 09 17:34:39 but you can also test android related stuff with robolectric mocs Mar 09 17:34:42 *mocks Mar 09 17:34:45 no reason not to really Mar 09 17:34:56 Can you use JUnit 4 with Robolectric? Mar 09 17:38:15 freeone3000: so this bypasses the Loader framework which i've been reading for days is the Right Way(tm)? if i couldn't use a CursorAdapter, how would you answer my original question? Mar 09 17:39:14 antgel: If you wanted to use a CursorLoader, you need a Content Provider, yes. Mar 09 17:40:12 freeone3000: thanks! which kind of makes the docs look a bit obsolete saying you only need a ContentProvider to expose data to other applications? Mar 09 17:40:37 freeone3000, what's the last stack frame Mar 09 17:41:52 pfn: http://pastebin.com/tRraYek4 Mar 09 17:42:17 antgel: Well, the alternative would be to use a Cursor and a CursorAdapter, so you wouldn't need a Loader, or a ContentProvider. Mar 09 17:43:54 freeone3000: i can explain my use case. my app offers the user ability to add / edit / delete, several stopwatches. each stopwatch has associated "settings" e.g. beep every minute. so when the user clicks on a given stopwatch in the list, i want to query the database to see what its settings are, then display them in a ListFragment (like the system settings). does this fit one particular approach? Mar 09 17:45:11 antgel: Sure. Mar 09 17:45:32 freeone3000: er, which one? Mar 09 17:45:34 :D Mar 09 17:45:44 antgel: Either. I'm partial to CursorAdapter, because it's much less code. Mar 09 17:45:46 sorry if i appear stupid, i'm very new to android Mar 09 17:46:57 freeone3000: okay, i was just nervous about the "You're limited in what your CursorAdapter displays to what's available in your cursor". i think really i need to read more about the Cursor interface and purpose, then i can better-understand the implications of a statement like that Mar 09 17:47:09 freeone3000: thanks so much, i've been drowning in docs all day :) Mar 09 17:47:11 freeone3000++ Mar 09 17:47:16 the cursor is basically a row in your database Mar 09 17:49:37 freeone3000, spin lock? Mar 09 17:50:25 pfn: No, a finite loop. while(!mQueue.isEmpty()) { removeWIthSideEffects(mQueue.pop()); } Mar 09 17:50:39 pfn: And shouldn't that leave it in RUNNABLE, not SUSPENDED? Mar 09 17:51:54 it'll suspend and do other things if it's just spinning, I think Mar 09 17:52:21 if i have a static var x; do x= new Y(); then later i do x=new Y(); is the first Y garbagcecollected if no other reference to it exists? Mar 09 17:52:31 yes Mar 09 17:53:13 can anyone help me out here. I was trying to root my HTC one X. I have unlocked the bootloader. I ran a script to root the device but now it is stuck on HTC quietly brilliant. I can vol down and power to get into the boot menu but cannot get into the normal OS Mar 09 17:53:56 say there's an API's free tier that allows 500 calls per day - how would I work around that rate limit? is it a better idea to download that API's data over time and host my own backend? Mar 09 17:54:19 hi, i came here because i need help setting up my voice recognition app. can someone answer some questions for me? Mar 09 17:54:59 using google voice recognition API Mar 09 17:55:24 threecups: what's the question? Mar 09 17:56:30 well i want to get offline vxrecog working Mar 09 17:56:44 i had it working 3 weeks when i started the project now i dont remember what i did lol Mar 09 17:57:30 ...that's not very helpful info Mar 09 17:57:36 i remember it was working for google keyboard, but not google search... so i dled a sample app for voice recognition. but it says connection problem. bc i turned on airplane mode Mar 09 17:57:44 threecups: That's the responsibility of the phone's owner, not your app. Essentially, you need to install the offline packs via Google Search from the play store. Mar 09 17:57:53 i already did yeah Mar 09 17:58:11 threecups: Then apps for which SpeechRecognizer will work offline will now work offline, except for the ones that don't. Mar 09 17:58:13 its working, now i need to get my custom app to work with the API Mar 09 17:58:45 i mean offline google keyboard is working, but i want to make the API work with my app Mar 09 17:58:47 threecups: There's no way to force it, and no indication whether you're online or offline. Mar 09 17:58:56 threecups: SpeechRecognizer is your only entry point. Mar 09 17:59:59 ill try that. but first, how can i demonstrate that offline vxrecog works with Google Keyboard. I want to verify it works with an existing app on my phone, before i try it with a custom app Mar 09 18:00:15 threecups: Lose network connection and see if it can recognize your voice. Mar 09 18:00:25 check, did that already Mar 09 18:00:50 threecups: Then unless your phone is carrier pidgeon-compatible, you have offline voice recognition. Mar 09 18:01:04 question is what can i test vxrecog with google keyboard? bc it doesnt work with google search for some reason Mar 09 18:01:21 threecups: Speech-to-text is enough. Mar 09 18:01:27 i know it works. but i cant remember what i did. now im in a bind for time Mar 09 18:01:32 threecups: Google Search on 4.3 phones is now Google Now. Mar 09 18:01:43 threecups: It requires a network connection for other reasons. Mar 09 18:02:36 ok, what apps use Google Keyboard? thats what im looking for Mar 09 18:02:45 good to know Mar 09 18:02:47 threecups: No apps "use" google keyboard, it's an IME. Mar 09 18:03:34 what channel can i chat to people about rooting my android phone? Mar 09 18:03:50 im just having trouble finding an app that does not require network connection, because search uses internet, youtube app uses search... Mar 09 18:04:21 t4nk368: #android-root Mar 09 18:04:25 threecups: Open a text field, switch your IME. Mar 09 18:04:47 text field in what app? thats standardly installed? Mar 09 18:05:29 threecups: S Memo. Calendar. *Messaging*. Mar 09 18:05:37 threecups: Literally does not matter, it's a keyboard. Mar 09 18:06:09 messaging opened up Vlingo for some reason, and said no connection Mar 09 18:06:38 yeah theyre all opening up Vlingo? Mar 09 18:06:39 threecups: If you're using Vlingo for voice recognition, you can't do it offline. Configure it to use Google for speech recognition. Mar 09 18:06:55 yeah i thought i had this setup. i dont remember setting lingo Mar 09 18:07:00 threecups: This is a phone-wide setting, in Settings, under Language. Mar 09 18:08:17 it says Select Locale, User Dictionary, Input Method, Swype, Multi-touch keyboard. nothing about Vlingo? Mar 09 18:08:34 hey, I am trying to connect to bluetooth servers, but sometimes it just sais: java.io.IOException: read failed, socket might closed or timeout, read ret: -1. I connect in a loop. Any ideas? Mar 09 18:08:35 do you know what Vlingo is? i dont Mar 09 18:09:59 threecups: Under Speech. "Voice Recognizer". Mar 09 18:10:00 ok got it. lol i dont remember setting that Mar 09 18:13:40 DevXY: try stackoverflow? http://stackoverflow.com/questions/19137580/error-happens-when-connect-in-android Mar 09 18:14:42 i got rid of the Vlingo logo. but it still says could not connect Mar 09 18:16:51 Android's API includes Java stuff like String. Did Android create their own String implementation, or did they use Oracle's own source? Mar 09 18:17:03 That may be a stupid question. lol Mar 09 18:22:05 TacticalJoke: All Java classes in Android were implemented without using Oracle source code. Mar 09 18:22:12 TacticalJoke: That's their story and they're sticking to it. Mar 09 18:25:05 answering my earlier question: oh boy, working around rate limits is one heck of a rabbit hole Mar 09 18:29:48 Hello, when implementing onDraw, is it possible to create a temporary canvas and then draw it on the actual canvas? Mar 09 18:31:19 a very strange error about shared preference: http://pastebin.com/bK9ydmth the gethead inside sethead is different from gethead called by activity directly Mar 09 18:31:24 plz help Mar 09 18:31:49 freeone3000, Android is harmony which is a clean room runtime library for java Mar 09 18:32:29 cept for that one ex-sun employee where they fucked up Mar 09 18:32:56 Mango_Man, you work around it by paying for use of the service Mar 09 18:33:21 pfn: i'm a poor college student though Mar 09 18:33:47 then pass the cost onto users Mar 09 18:33:59 sorry i'm stupid Mar 09 18:34:20 jellybee: Yes, by creating a Bitmap the same size of the canvas, drawing to that, then copying it over, but this should not be necessary. Mar 09 18:34:56 pfn: maybe, but this is my first app so it's going to be free Mar 09 18:35:04 freeone3000, can i PM you? Mar 09 18:35:10 jellybee: Sure. Mar 09 18:35:21 Mango_Man, then don't use a pay service Mar 09 18:36:05 your app will just end up taken down if you're stealing access inappropriately Mar 09 18:37:08 pfn: seems like there are a lot of options. i could 1) use those free API calls and store data in my own backend, or 2) do some web scraping, or 3) perform rate limiting via nginx Mar 09 18:37:55 Mango_Man, unless the service allows you to duplicate their data to get around paying, don't discuss it in here Mar 09 18:38:36 i have some js code that works in firefox but not the default web browser, is there any way to debug this? Mar 09 18:43:14 alternatively, does anyone know how to get data through jsonp without writing a ton of code? Mar 09 18:45:11 mikeche1en: https://developers.google.com/chrome-developer-tools/docs/remote-debugging#debugging-webviews Mar 09 18:48:23 freeone3000: awesome, except it seems to work fine in 4.4, only earlier versions have problems Mar 09 18:49:27 probably the issue is with the webkit browser, whereas chrome engine handles it fine Mar 09 18:50:46 reading/writing a boolean value isnt threadsafe right? Mar 09 18:58:16 @zil: yes, accesses to a boolean are not atomic, Mar 09 18:59:44 AtomicBoolean ftw Mar 09 19:14:30 what's the best way of configuring signing in Gradle builds, such that I don't have to include the keystore passwords in the build script? Since that'll be stored in Git. Mar 09 19:24:59 ok, got it, I created a properties file for it Mar 09 19:27:01 what happens if 2 threads invalidates a view with runOnUiThread? they can never access the data at the same time because they are picked from the threads event queue and thus one ill finish before the next can run? Mar 09 19:28:05 zil: use a handler Mar 09 19:28:32 can also queue events and use an executor Mar 09 19:29:04 hey Mar 09 19:29:38 have a question and hope you can help, maybe its not the right topic for that chat here Mar 09 19:29:38 alphacrypt> hey, yesterday I have tried some mods and equalizers, now I think the best for me is the sound enherance of google play music / sony walkman Mar 09 19:29:39 but it works just for the music I play in these apps Mar 09 19:29:39 can I get as global feature at the background of all audiothings like other music player apps? Mar 09 19:31:15 Hello, is anyone knowledgeable with making HTTP Post requests and a bit of python as well? Mar 09 19:31:23 zil, huh Mar 09 19:32:04 alphacrypt, see topic, go away Mar 09 19:32:33 ok Mar 09 19:32:35 sorry Mar 09 19:36:03 * desmin88 <3 pfn Mar 09 19:38:35 This bit of Python code, I'm trying to convert into Java doesn't work for some reason (bad request) https://gist.github.com/anonymous/9453324 Mar 09 19:39:04 The Python code works just fine, but not the Java bit. Anyone know why? I've been playing around with it for some time and I have no idea.. Mar 09 19:43:54 well theres your problem Mar 09 19:44:04 using apache http Mar 09 19:44:27 http://square.github.io/okhttp/ ;) Mar 09 19:44:43 they recently made a 1.5 update which is nice Mar 09 20:04:37 hey everyone, i've been trying to create an app that allows me to upload a file to a server, a django server. I think I got the front end of things but can anyone put me to the right direction for the back end server side? Mar 09 20:04:52 kinda been looking around for this for a long time now but I can't seem to understand how its supposed to work Mar 09 20:27:46 canvs2321: i have 2 separate handlers Mar 09 21:03:52 does anybody know of a good example for making a PreferenceActivity without XML? Mar 09 21:04:15 why would you want to do that ultra- Mar 09 21:05:42 i don't know, i just do everything through code Mar 09 21:06:52 my interface, touch behavior, etc is 100% custom so i did it all through code, xml didn't seem to make sense for it... so i figure i'll do the preferences that way too Mar 09 21:06:54 http://lpaste.net/100933 <- I have some memory error. I use a bitmap as background and 3 other bitmap as starta nd goal flag and ball. when a fragment is switched out, should i recycle this? how do you handle this? Mar 09 21:12:47 ultra-: or just do it with xml and save yourself a world of pain Mar 09 21:13:06 well i guess if it's that bad to do manually Mar 09 21:16:50 i can set some things manually? for example, the summary for a list preference? Mar 09 21:26:49 zil: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html Mar 09 21:27:42 zil: or checkout square's "picasso" Mar 09 22:01:02 Hey, anybody know how to add pre-compiler defines to the ndk-build command? Mar 09 22:01:19 ie. $ ndk-build -D_AMAZON_ --- but that doesn't sen to work Mar 09 22:05:21 if 2 different threads call invalidate on the UiThread, what happens? can they both be executed at the same time or will they be run after each other? Mar 09 22:07:17 makeitTim, how about LOCAL_CFLAGS in the make file Mar 09 22:11:38 Ologn, good idea. however, I'm hoping to use the define in the make file. -- ie. the makefile lods different libraries and stuff based on _AMAZON_, __GOOGLE__, etc. Mar 09 22:15:44 maybe I just gotta use separate makefiles? I have use ant to automatically handle files for the different 'targets' but that happens later. Mar 09 22:16:03 is it possible to add synchronized to protected methods like ondraw? Mar 09 22:17:18 zil, onDraw is always on main thread Mar 09 22:17:21 and no. Mar 09 22:18:14 is there an android focused job board somewhere? aside from stackoverflow that is. Mar 09 22:18:24 irfan khan is cool Mar 09 22:21:25 if it were biologically possible to have his babies, i would Mar 09 22:24:52 mavrik: so if i call invalidate on a view ona runOnUiThread, i dont have to worry aboyt synchronizaion? they will run after each other? they cannot call onDraw simultaenously? Mar 09 22:25:06 zil, yes. Mar 09 22:25:24 since they run on same thread (Main/UI Thread) it's not possible to call them at one Mar 09 22:25:30 all UI stuff MUST be called on UI thread Mar 09 22:36:07 why does my ssh session seem to go to sleep for a few seconds if left idle Mar 09 22:36:41 wrong channel ? Mar 09 22:38:20 hmm, no its for android development Mar 09 22:38:45 Hi all... Mar 09 22:38:50 i need your help Mar 09 22:38:57 in a android manifest Mar 09 22:38:57 Hi b0t, whats poppin' playa' Mar 09 22:39:03 playa. Mar 09 22:39:07 voy a ir a la playa Mar 09 22:39:10 me gusta la playa Mar 09 22:39:26 i can see why you chose that nick now -_-# Mar 09 22:40:01 yes, because i am a dolt. Mar 09 22:40:09 it's a dolt's nick Mar 09 22:40:10 Mar 09 22:40:10 Mar 09 22:40:10 Mar 09 22:40:10 Mar 09 22:40:10 Mar 09 22:40:11 Mar 09 22:40:11 Mar 09 22:40:12 Mar 09 22:40:12 Mar 09 22:40:13 Mar 09 22:40:13 Mar 09 22:40:14 Mar 09 22:40:24 can you not do that again please Mar 09 22:40:48 I need to start first ".activity.AddServerActivity" Mar 09 22:41:07 and background ".activity.ServersActivity" Mar 09 22:41:27 yea u need not spam us, we actually hate spam Mar 09 22:41:45 this not a spam Mar 09 22:41:48 this is flood Mar 09 22:41:57 ah yes, you are correct Mar 09 22:42:07 i was in error Mar 09 22:42:09 anybody help me? Mar 09 22:43:04 b0t, use pastebin next time. and label the activity you want to start first with action.MAIN Mar 09 22:43:36 ok only reemplace main? Mar 09 22:43:43 yeah, swap the actions Mar 09 22:43:49 then it'll be first loaded Mar 09 22:44:18 oh, actually you might need category default too Mar 09 22:44:32 serversactivity will load in the background? Mar 09 22:44:34 leslie Mar 09 22:45:13 if serversactivity not load, I get an error, addserver runs serversactivity Mar 09 22:46:12 I'm not sure what you're asking Mar 09 22:47:20 one moment Mar 09 22:47:47 http://pastebin.com/63hG4fns Mar 09 22:48:03 as you have said, I get an error Mar 09 22:48:36 I just need to load them to Adserveractivy serveractivy foreground and background Mar 09 22:48:59 what error do you get? Mar 09 22:49:08 first Adderveractivy , background serveractivy Mar 09 22:49:17 in bluestacks, "app has been installed" Mar 09 22:49:24 and not display it Mar 09 22:49:50 I paste the complet code in the link Mar 09 22:51:17 yeah, I see the code, but I don't see any error you're referring to Mar 09 22:52:09 android:name="android.intent.action.VIEW" Mar 09 22:52:18 android:name="android.intent.category.LAUNCHER" Mar 09 22:52:59 remove the reference to launcher? Mar 09 22:56:51 .activity.AddServerActivity ---> android.intent.action.MAIN , android.intent.category.DEFAULT Mar 09 22:57:07 .activity.ServersActivity ---> android.intent.action.VIEW Mar 09 22:57:11 persist the error Mar 09 22:57:26 ok. then I don't know, sorry Mar 09 22:57:42 thans Mar 09 23:01:23 .c Mar 09 23:14:30 Does anyone know if it is possible to do USB debugging on a blackberry 10 device via android studio, using linux? Mar 09 23:14:42 * linq ponders over how specialized his configuration is compared to the typical dev Mar 09 23:15:14 I expect a much more comman dev setup would be actual android phone + eclipse + windows Mar 09 23:17:47 at least some sort of Android phone, yeah, linq Mar 09 23:18:22 if you don't have an Android phone, you're probably better off using the emulator Mar 09 23:18:28 leslie: not sure if you're aware of the fact that blackberry 10 has an android compatibility layer Mar 09 23:19:01 it can run Android apps, sure, but I don't know if that includes the stuff required for debugging Mar 09 23:19:17 leslie: still, I wouldn't be surprised if usb debugging isn't officially supported for that case Mar 09 23:20:00 yeah but I doubt there's many people here with experience of using it, even if that is the case Mar 09 23:20:05 "blackberry 10 has an android compatibility layer" <-- really? well that's kinda cool Mar 09 23:21:08 bankai_: see http://developer.blackberry.com/android/documentation/mastertopic_1849583_11.html Mar 09 23:21:24 It works fairly well in some cases, although it doesn't support certain native API calls Mar 09 23:47:30 Is somebody here with exceperiences of a bluetooth connection between a hc06 module and android? Mar 10 00:06:07 hello, I notice eclipes no longer has eclipse for mobile devel Mar 10 00:06:36 does anyone use eclipse for android development anymore? Mar 10 00:14:36 anyone? Mar 10 00:15:48 i guess there's your answer Mar 10 00:16:20 hmm? Mar 10 00:17:54 lol. I use eclipse for JNI stuff Mar 10 00:18:58 ah answer is no Mar 10 00:19:47 so I guess I"m going to have to break down and switch to Idea Mar 10 00:29:42 well can someone catch me up on what happened? it lookse like the last eclipse version that android sdk worked with was Galleleo Mar 10 00:32:31 no, it's definitely worked in more recent versions, caverdude Mar 10 00:32:51 I remember using it with Juno Mar 10 00:33:49 the official site says Indigo Mar 10 00:39:33 Having some issues with the arm-emulator. I started the emulator and left to get some things at the store, and came back 30 mins later and it hadn't started Mar 10 00:39:45 hi caverdude ! long time no see Mar 10 00:39:46 whereas earlier in the day, I was able to start it in about 10 minutes Mar 10 00:40:23 caverdude: I'm still using Eclipse Juno for mobile, it still gets updates Mar 10 00:42:22 any ideas on how to improve emulator performance? I'm on linux. Mar 10 00:42:36 Might try to get kvm running Mar 10 00:42:42 linq: try genymotion Mar 10 00:44:15 linq: for the default emulator, make sure you installed the intel x86 optimizations for the emulator in your SDK Manager Mar 10 00:45:27 are there loads of different screensizes or is it like 4",4.3",5" always give the same size of actionbar and statusbar? so 4.3" always result in a 960*540 pixel screen? Mar 10 00:46:51 shmooz: genymotion looks like an effective solution. Only issue with the intel x86 optimizations are that they don't run on linux, which I'm using right now Mar 10 00:47:14 I see Mar 10 00:47:33 i just installed latest eclipse, so i should not try to run the android stuff on it? Mar 10 00:47:42 I should get juno instead? Mar 10 00:54:46 caverdude: I think you still have to install the ADT plugin on top of Juno Mar 10 00:55:26 ok Mar 10 00:56:25 WAIT_FOR_CONCURRENT_GC blocked <-- is this common with RX or am i doing something wrong ? Mar 10 01:06:11 Hi folks. Anyone here successfully using logback-android to provide logging to logcat? Mar 10 01:12:42 I'm thinking of ways to make the land pay for itself, I need at least a small tractor with front end loader Mar 10 01:12:48 I'd make compost Mar 10 01:13:03 could probably sell all of it Mar 10 01:13:27 oops wrong channel Mar 10 01:13:31 lol sorry Mar 10 01:13:35 lol Mar 10 01:13:39 Hi. I want to have an xml file in my android program, to store configuration values Mar 10 01:13:46 what is the best way for me to go about this? Mar 10 01:14:32 liked shared preferences ? Mar 10 01:14:57 perhaps, can shared preferences be loaded from an xml? Mar 10 01:15:02 or does it have to be from an sqlite database? Mar 10 01:15:26 and I mean an xml within the code, not an xml that needs to be brought in from a website Mar 10 01:16:35 Am I looking at the right thing here - http://developer.android.com/guide/topics/ui/settings.html ? Mar 10 01:16:44 Bearing in mind, I don't want an actual settings screen Mar 10 01:17:04 Just an xml file with the values which can be changed by the developer in a nicer way than changing a static var, for example Mar 10 01:18:21 http://developer.android.com/reference/android/content/SharedPreferences.html Mar 10 01:19:24 will that work if in the future (maybe) I was to turn it into a settings screen which the user could modify? Mar 10 01:21:16 yep Mar 10 01:22:17 is there a last seen command Mar 10 01:22:22 for nicks Mar 10 01:22:47 is there a way to do android alpha testing/beta with putting limited invites? Mar 10 01:23:01 or do you just have to avoid the app store then Mar 10 01:23:02 not unless there is a bot in the channel Mar 10 01:23:23 oh ok Mar 10 01:23:23 a lot of channels have supybots and stuff that support seen. Mar 10 01:24:16 LoneSoldier728: play console has alpha/beta testing fascilities Mar 10 01:24:44 oh ok, have you used it before? Mar 10 01:24:53 yep, hate it lol Mar 10 01:25:09 used to be an app called 'test flight' too, but apple bought and squashed that Mar 10 01:25:40 Hi. Mar 10 01:26:14 yeah test flight wasnt bad Mar 10 01:26:27 i thought it was only apple specific till just now lol Mar 10 01:26:35 what is bad about it jw? Mar 10 01:26:45 like any specific cons... Mar 10 01:30:18 bankai_ I've been reading http://viralpatel.net/blogs/android-preferences-activity-example/ but I'm unsure, how do you set the default value for a sharedpreference? Mar 10 01:31:12 for checkbox, android:defaultValue... fair enough, but for the ListValues? Mar 10 01:35:09 if you use a bitmap as background, when would you recycle it? just before a transaction to another fragment? there is no risk your app will crash?' Mar 10 01:36:27 what is a better trade off, storing an image as 500x500 and a thumbnail version at 200x200 or just 500x500 and resizing it? Mar 10 01:37:10 assuming 18 pictures get loaded up, and 25% of them get selected Mar 10 01:37:31 (selected means 500x500 gets loaded too) Mar 10 01:38:06 LoneSoldier728: what's the filesize of 500x500 picture ? Mar 10 01:38:19 1024 Mar 10 01:38:20 1 mb Mar 10 01:38:30 so 18 MB Mar 10 01:39:35 that could be slow for some 3G connections Mar 10 01:39:56 right but i think resize makes it more efficient no? Mar 10 01:40:01 or faster I should say Mar 10 01:41:25 Hey guys, using a web irc cleint. not sure if my messages are coming through. can anyone confirm? Mar 10 01:41:26 the thing is, then I have to make a second request which might take longer on a user selecting the image... but yeah 18mb, or 10mb then another 1 mb + a new request for each 1mb Mar 10 01:41:37 eghdk got it Mar 10 01:47:08 g00s: oi Mar 10 01:47:37 hey bankai_ Mar 10 01:47:47 WAIT_FOR_CONCURRENT_GC blocked <-- is this common with RX or am i doing something wrong ? Mar 10 01:47:47 Thanks for confirming. SO my question that I'm stumped with, is that I have a custom textView that changes it's text every 10 seconds. Almost like a custom chronometer but with text. I have this custom view populating and .start()ing in my getView method of customListAdapter. It works great on every device except for seemingly 4.0.4 and it's driving me insane how I can't seem to get it to update. I've steeped through my code, and Mar 10 01:48:02 It's not like it freezes. I have no idea how to solve it. any suggestions? Mar 10 01:48:03 bankai_ i never saw that :| Mar 10 01:48:21 g00s: bah ... i don't know if it's telling me i'm blocking or if it's just saying stuff coz i'm dereferencing a dump load of data very quickly Mar 10 01:53:15 bankai_ i'm not using RxJava to send 'high frequency' updates, a little worried about the garbage Mar 10 01:53:39 for example, i don't think i will use it to stream data from the bluetooth device Mar 10 01:54:03 (3K records, 20rec/sec, etc) Mar 10 01:55:09 oh no i'm not doing anything like that, it's just a JSON file i'm parsing. Maybe 40-50 records Mar 10 02:08:12 I have a custom textView that changes it's text every 10 seconds. Almost like a custom chronometer but with text. I have this custom view as the only item in my ListView. In my getView method of customListAdapter I set up the custom view. It works great on every device except for seemingly 4.0.4 and it's driving me insane how I can't seem to get it to update. I've steeped through my code, and my update code is getting called. Mar 10 02:08:33 It seems to update internally, but the view doesn't update. I've tried invalidate, but no success. Mar 10 02:08:47 hey guys Mar 10 02:09:22 i have a class with 2 private class that extend threads, one thread is to init bluetooth, the other is to handle the connected socket Mar 10 02:09:53 i want to emit an event or something to notify the class to spawn the next thread Mar 10 02:09:54 any ideas? Mar 10 02:10:01 the class doesnt not implement or extend anything Mar 10 02:10:05 so i do not have a context Mar 10 02:10:19 i was thinking callbacks, but callbacks dont see to be implemented by default? Mar 10 02:12:18 anyone? Mar 10 02:14:27 jareddlc i'm a newbie Mar 10 02:16:09 jareddlc what kind of device are you connecting to ? Mar 10 02:17:03 What do you guys think about this? Mar 10 02:17:19 g00s: arduino Mar 10 02:17:24 protected @Override void onCreate(Bundle savedInstanceState) { Mar 10 02:17:30 code works just fine Mar 10 02:17:42 i used the tuts from android Mar 10 02:17:45 and it works just fine Mar 10 02:17:47 but currently Mar 10 02:17:49 one thread Mar 10 02:17:52 starts another thread Mar 10 02:17:56 and i want to seperate that Mar 10 02:18:07 jareddlc: You're confusing the Enter key and the Space key. ;D Mar 10 02:18:12 TacticalJoke annotations usually go first Mar 10 02:18:22 TacticalJoke: sorry bad habbit Mar 10 02:18:26 leslie: How about this? @Override public void foo() { Mar 10 02:18:27 jareddlc does arduino have its own bt, or did you get an add on board ? Mar 10 02:18:30 (On the same line.) Mar 10 02:18:51 g00s: i purchased a bt module. Mar 10 02:19:15 TacticalJoke, that seems better. the JDK usually puts the @Override on its own line though I think Mar 10 02:19:25 I thought of using localbroadcast, but i wanted to write this class agnostic as possible Mar 10 02:19:35 jareddlc well, what i did was start with BluetoothChat as a template. i ripped a lot of it out. don't need listener, for example Mar 10 02:19:56 K. I saw that the Android contributor guidelies allows putting short annotations like "@Override" on the same line. Mar 10 02:19:56 they originally have events going to a handler, which was nice and easy for demo purposes Mar 10 02:20:01 I wish Java had an override keyword. :/ Mar 10 02:20:24 but i replaced that with a simple callback, so those gets called on arbitrary threads Mar 10 02:20:34 the layer that sits on top of that is a state machine Mar 10 02:21:18 right i think i want to take similar approach, in my activity, i create an instance of the class, and call class.write() Mar 10 02:21:26 shmooz Mar 10 02:21:30 well it should go in a service Mar 10 02:21:57 ? Mar 10 02:22:00 my service has the fsm, which has the rfcomm layer Mar 10 02:22:23 bt is networking, it should outlive the activity Mar 10 02:22:56 oh snaps, ugh why is android plagued with so many things Mar 10 02:22:57 xD Mar 10 02:23:16 i would like to write this module, and reuse it elsewhere Mar 10 02:23:42 you can reuse the rfcomm connection stuff, with raw streams, sure Mar 10 02:24:00 what i mean, write it such that i can use it in a different application Mar 10 02:24:02 thats what i do Mar 10 02:24:20 so i want to learn how to make it a service? Mar 10 02:24:41 it will need to go in a service, yeah - but i don't find it easy to reuse services Mar 10 02:25:05 seems like the wrong level of abstraction for re-use, unless its totally black box Mar 10 02:25:31 yeah, and im still learning java Mar 10 02:25:37 javascript so much easier Mar 10 02:25:38 xd Mar 10 02:29:48 Where can I find android source for the activity class? Mar 10 02:31:11 eghdk it's available from the sdk manager Mar 10 02:41:57 hello. I added a "settings.xml" file to res/menu, but it's not being recognised Mar 10 02:42:14 I tried cleaning and rebuilding, but it won't build because of this error Mar 10 02:42:42 how else can I generate R.java? Mar 10 02:42:58 I'm running into an odd problem. HttpUrlConnection seems to not be decompressing the gzipped response of a POST, after it passes through a redirect. How is the best way to fix this problem? am I going to have to clip off the headers from the inputStream, and pass the result through a gzip input handler ? Mar 10 02:43:00 fix the settings.xml file :) Mar 10 02:44:10 I'm not getting any build errors g00s Mar 10 02:44:21 just "there are problems in the project that need fixing" Mar 10 02:44:39 paraphrasing Mar 10 02:44:40 yeah, thats a lame ass error message Mar 10 02:44:48 i know what you are seeing Mar 10 02:45:39 how can I narrow down what the problem is? Mar 10 02:45:51 I have a custom textView that changes it's text every 10 seconds. Almost like a custom chronometer but with text. I have this custom view as the only item in my ListView. In my getView method of customListAdapter I set up the custom view. It works great on every device except for seemingly 4.0.4 and it's driving me insane how I can't seem to get it to update. I've steeped through my code, and my update code is getting called. Mar 10 02:48:22 g00s: well im just using public threads Mar 10 02:48:24 probably an error in your xml Mar 10 02:48:24 seems to work fine Mar 10 02:48:29 lol probably not the best Mar 10 02:48:30 but oh wel Mar 10 02:48:40 err private static* Mar 10 02:49:58 by sheer luck I stumbled across the missing resource that was causing the problems Mar 10 02:50:20 if I have a settings.xml shared preferences file and the user changes it on the device, does that actually store the new value in the xml file? **** ENDING LOGGING AT Mon Mar 10 02:59:58 2014