**** BEGIN LOGGING AT Mon Jun 23 02:59:58 2014 Jun 23 03:15:12 MalekAlrwily: what's qfsfce.com? Jun 23 03:15:35 myke: the ad jar Jun 23 03:15:37 AdView()...ok Jun 23 03:16:07 i have sent this problem to the support Jun 23 04:16:54 barbs, thanks for the tip. I found this: http://instant-eyedropper.com/ Works perfectly, and it reveals that photoshop's color is a completely different color than it claims it to be. Jun 23 04:18:03 hesperaux_: awesome! That tool looks really useful :) Jun 23 04:18:13 it's very simple but it works well Jun 23 04:18:19 =D Jun 23 04:18:46 hesperaux_ its probably grabbing a pixel value, not the adobe ps colorspace value translated to a pixel value :) Jun 23 04:18:54 yep Jun 23 04:18:56 \o/ Jun 23 04:19:02 it explains a whole lot Jun 23 04:19:20 the past 5-10 years i've noticed that nothing ever looks as good in practice (like web designs) as they did in PS mockups Jun 23 04:19:28 obviously, I was getting the wrong colors from PS Jun 23 04:19:33 that's really stupid Jun 23 04:19:36 PS has at least 3 colorspaces Jun 23 04:19:46 sRGB, Adobe, ProPhoto i think Jun 23 04:19:48 it's currently using an IEC standard Jun 23 04:19:51 the sRGB one Jun 23 04:19:53 * hesperaux_ shrugs Jun 23 04:20:13 I guess it's probably for printing; but i've never printed from photoshop in my life Jun 23 04:20:21 hardly anyone uses Adobe, it was mostly a mistake left for legacy reasons Jun 23 04:20:27 heh Jun 23 04:21:02 most of the differences will be in the greens / cyans Jun 23 04:21:12 the color I noticed it in was a cyan Jun 23 04:24:37 well, i'm out for the night Jun 23 04:24:41 see ya guys Jun 23 04:25:29 seeya Jun 23 04:28:29 Has anyone here used the GFX game engine? Jun 23 05:30:55 it looks good spec wise, I have never used it but I have dealt with some of the issues it tries to solve. Jun 23 05:31:19 such as OBJ loading and matrix issues with OGL ES Jun 23 05:32:05 This is one of the greatest apps I have ever seen Jun 23 05:32:06 https://play.google.com/store/apps/details?id=air.RunPee Jun 23 05:33:02 If you're an experienced graphics/game programmer it seems like it saves several months worth of work. Jun 23 05:33:49 though of course there are always issues with actual deployment, such as bugs in a 3rd party api Jun 23 05:34:02 if you write it all yourself you can control it. Jun 23 05:37:32 Carbonflux, "It saves several months of work" is exactly why I'm thinking of using it Jun 23 05:38:17 I didn't get why it might save only an experienced programmer (not a novice one, like me!) Jun 23 05:39:54 it would save a novice programmer a lot more time Jun 23 05:40:27 there is a lot to learn if you are just getting into it Jun 23 05:41:13 still, the warning must be made, using a 3rd party api is dangerous, you can run into blocking issues. Jun 23 05:41:43 I am just saying you have to consider the trade offs, if it your first game it does not matter as much of course. Jun 23 05:45:05 it seems like with this engine you can just model stuff in Blender and move it right into the game env with full material support, which it nice. Jun 23 05:45:25 is* Jun 23 06:08:06 Hi all Jun 23 06:09:15 I have just changed the package namer from com.example. bla bla to my own preferred package name like gis.ofsdp.org Jun 23 06:09:24 I see errors in styles.xml Jun 23 06:09:47 type Jun 23 06:09:47 error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. styles.xml /GPSTracker/res/values-v14 line 8 Android AAPT Problem Jun 23 06:10:16 obviously you cleaned your project, right? Jun 23 06:10:40 yes :( Jun 23 06:11:26 ya I noticed when you change the name you have to do some stuff by hand. Jun 23 06:11:49 Carbonflux,please let me know what I can do to solve it Jun 23 06:11:56 or redirect me to some help link Jun 23 06:12:37 in Eclipse there is a way to do most of it automatically, I forget the details, you should just google for android eclipse change project name Jun 23 06:13:00 or something like that, which is what I did. Jun 23 06:13:44 Carbonflux, let me try my luck Jun 23 06:13:54 Carbonflux, thanks Jun 23 06:14:23 if you just changed the name itself thats not enough, the package name is used basically like a global class name so it propagates all over the place. Jun 23 06:14:24 :) Jun 23 06:35:17 yes Carbonflux Jun 23 06:35:49 I should update my java, are there some problems with intellij + android on mac with java 8 ? Jun 23 06:38:18 gordon_: I think Android doesn't comply to Java 8 Jun 23 06:45:18 thepoosh: thanks Jun 23 06:45:23 no probs Jun 23 06:45:25 you never know what to expect ;) Jun 23 06:45:40 better ask than spend an hour fixing that stuff later Jun 23 06:45:47 gordon_: http://stackoverflow.com/a/23318644/1056359 Jun 23 06:46:26 well I dont want java8 on android, just want to know if tools work with java 8 Jun 23 06:46:55 grails for example dont ;) Jun 23 06:47:34 some memory management parameters are removed in java 8 Jun 23 06:55:13 Hey guys, how do I set or check my default layouts ID (in this case it is a relative layout) How Can I find this ? can't seem to find it in my XML Jun 23 06:57:51 what do you mean in "default layout IDs"? Jun 23 07:00:03 I can't find my relative Layouts ID http://pastebin.com/CfSsgG6Z ( refer to the first few lines) Jun 23 07:00:58 Jared603: was your R class generated? Jun 23 07:01:02 what's the point of line #5? Jun 23 07:01:25 R.layout.whateverthatxmlfileiscalled Jun 23 07:01:27 canvs2321: it's auto generated by the ADT Jun 23 07:01:44 &u have no ID for your relativelayout Jun 23 07:02:30 Yes my R class is generated Jun 23 07:03:16 I know I don't have a ID , how do I set it ?, after I try to set it manually my whole app just crashes on start up ? Jun 23 07:03:33 Jared603: logcat of the crash please Jun 23 07:03:35 Jared603: you either add an ID field, which ain't exactly rocket science, or you use the R.layout value Jun 23 07:03:37 how did you set id for your other views? you set it the same way? Jun 23 07:03:42 I don't see what the issue is here Jun 23 07:04:43 Jared603: why do you need the reference of the parent? Jun 23 07:08:57 ffs my app from june 19th is still not appearing in play store Jun 23 07:10:47 What adpater.addAll alternative should I use for compatibility reasons? Just a for-loop? Jun 23 07:11:11 platzhirsch: what type of adapter? Jun 23 07:11:16 addAll involves not loop Jun 23 07:11:21 thepoosh: ListAdapter Jun 23 07:11:30 err ArrayAdapter Jun 23 07:11:32 so it uses the List.addAll Jun 23 07:11:42 * platzhirsch nods Jun 23 07:11:50 so, why not use it?! Jun 23 07:12:05 Because Android Studio tells me that it's not 2.3 compatible Jun 23 07:13:10 so you probably need to loop Jun 23 07:13:15 do you see any other way? Jun 23 07:13:41 thepoosh: I was hoping for a posh support library utility method : ) Jun 23 07:13:48 but alright then Jun 23 07:14:16 platzhirsch: implement your own adapter! with blackjack and hookers!!! Jun 23 07:14:40 Haven't heard this since I am not idling in #java around anymore :D Jun 23 07:14:54 i have a set of id-versionNumber pairs. I need to produce a difference between two sets (representing states). To do this I make these hashsets, overriding equals/hashcode, then find the symmetric difference (one half represents "additions" the other half "deletions" to update the current state), and then use AddAll(A) / RemoveAll(B) and vica-versa. Anyone know if there is a better way to do this? Jun 23 07:17:08 Jared603: unless you explicitly set an id for a view (either in xml via android:id="value" or in code (View) v.setId(value), android generates these ids for you (whats in R.gen). Jun 23 07:23:13 I have a bunch of different async tasks that occasionally need a reference to context. Due to the way I set up the code structure, I always try and pass the context in instead of stowing a reference in whatever class that uses it. Anyways my question is I'm thinking of using a singelton with a weak reference to retrieve the application context, to avoid leaks (since, the reference should exist whenever these functions are called, in Jun 23 07:23:14 which case I can alway restart whatever to get it in working order) Jun 23 07:23:39 --Oh my question is if anyone can see glaring problem with this? Jun 23 07:31:14 platzhirsch: it's right Jun 23 07:31:23 addAll is from Honeycomb Jun 23 07:31:36 but you can override that methods and check the device api Jun 23 07:31:45 gordon_: yes, I didn't expect Android Studio is lying bluntly in my face Jun 23 07:31:48 and simply add items in foreach for android 2.x Jun 23 07:32:13 this is what usually I do Jun 23 07:32:14 gordon_: that's interesting, because I have seen this SO answer, where they check for the API and either use a loop or invoke .addAll, but why bothering to implement both? Jun 23 07:32:38 I mean just go with the loop and be done with it, why add additional logic which clutters the code :) Jun 23 07:33:11 I havent looked into code myself, maybe API's addAll is faster Jun 23 07:33:24 but I dont expect magic Jun 23 07:33:52 dont know if I got sources attached now Jun 23 07:34:26 I looked into the code, pretty standard, but yeah,... it's still a point to delegate the implementation to the SDK version Jun 23 07:39:07 hopefully 2.x will die soon Jun 23 07:39:13 so we wont have to do that ;) Jun 23 07:40:43 gordon_: why are you supporting api < 11 Jun 23 07:40:44 ? Jun 23 07:40:52 userbase Jun 23 07:41:05 25% of users are still using 2.x Jun 23 07:41:28 Yeah, userbase. I mean what other answer would be valid? I like to torture myself, it's such a genuinely pleasure Jun 23 07:41:29 that is about 14% of android users Jun 23 07:41:34 ditch them!! Jun 23 07:41:43 https://developer.android.com/about/dashboards/index.html Jun 23 07:42:03 userbases might differ heavily in a specific app Jun 23 07:45:53 platzhirsch++ Jun 23 07:46:03 notice, facebook still supports 2.x devices Jun 23 07:46:32 and, more or less they made many changes for better UX in developing countries Jun 23 07:46:59 because surely getting photos of what you just ate will help with hunger in the world <3 Jun 23 07:53:02 I wonder unless you app is fairly simple, it's not better to put off supporting that 25% because those phones, being "inferior" and probably loaded with bloatware from just usage (since it is an older model, used longer + more junk), will just cause you more problems that are not worth the time when you could be working on the future / present Jun 23 08:07:25 Alright, maybe I can still fix it. Can anyone think of a possible cause of W/AudioTrack﹕ releaseBuffer() track 0x417e16c0 name=0x3 disabled, restarting? Jun 23 08:07:38 I tried downgrading to 4.3, but that didn't help it. Jun 23 08:08:27 This SO questions might be related: http://stackoverflow.com/questions/20470335/permanent-audio-stutter-on-lge-nexus-4-with-the-deezer-android-sdk7 Jun 23 08:08:30 This SO questions might be related: http://stackoverflow.com/questions/20470335/permanent-audio-stutter-on-lge-nexus-4-with-the-deezer-android-sdk Jun 23 08:15:02 Nah? No idea? :/ Jun 23 08:16:38 lasserix: I'm not the one making orders ;) Jun 23 08:16:50 but now they dont make much mess Jun 23 08:16:53 I mean 2.x devices Jun 23 08:44:34 Hi all, I need to clone an object from my class (not pass by reference), is this the best option? http://stackoverflow.com/questions/10635810/how-to-clone-an-object-in-android Jun 23 08:45:35 FrancescoV: thats a native java method and should work Jun 23 08:45:50 danijoo: ok, thanks! Jun 23 08:46:00 FrancescoV: I think the first answer is good enough Jun 23 08:46:03 FrancescoV: Java's .clone() is fucked up. It relies on implementing it and I've heard weird stuff about it. Test it with big object graphs. Jun 23 08:46:09 I don't understand why you came here to ask Jun 23 08:47:28 FrancescoV: What kind of cloning do you need? Shallow or deep? Jun 23 08:49:20 there's always #java Jun 23 08:50:42 flan3002: don't know the difference but I have a Route class which contains POI's and directions between the poi's Jun 23 08:51:35 FrancescoV: Shallow cloning means that the references in the cloned object point to the same objects as in the original object. Deep cloning makes them totally independent. Jun 23 08:52:02 FrancescoV: So, changes to references in a shallow copy will affect references in the original. Not so with a deep copy. Jun 23 08:52:06 FrancescoV: What do you need? Jun 23 08:52:52 flan3002: deep Jun 23 08:53:30 Basically if your object has a variable that also has a reference to an object, you have to decide if you want to clone that one ttoo, or be fine to have it the same reference Jun 23 08:53:52 if you want to clone that one two, you have to override clone() to do so; Jun 23 08:54:02 super.clone() wont do that for you. Jun 23 08:54:07 FrancescoV: Then you'll have to look into reflective cloners, like https://code.google.com/p/cloning/ Jun 23 08:54:28 or you could do the cloning with reflection Jun 23 08:54:29 FrancescoV: Please. Don't. Clone. With. Serialization. Jun 23 08:54:35 oké, thanks a lot! Jun 23 08:54:37 and close all members Jun 23 08:54:55 lemonxah: Yes, that's how I would do. Or with two interfaces... Jun 23 08:54:56 but i dont know how generic you want your cloning to be Jun 23 08:55:47 using reflection will allow you to have clone on all derived classes without overriding the clone function Jun 23 08:56:02 but i would only do that if you have tons of classes you want to clone Jun 23 08:56:08 Like in the project I linked. Jun 23 08:56:11 if you only have 2 classes thats kind of overkill Jun 23 08:57:58 also i dislike that java doesn't have propper generics Jun 23 08:58:09 * flan3002 does too. Jun 23 08:59:02 lemonxah: Have you used Rust? Jun 23 08:59:08 * lemonxah doesn't come from java background and having to be forced to use a runtime that doesn't allow any of the benifits of programming over the last 10? years .. very restrictive Jun 23 08:59:42 i haven't Jun 23 08:59:58 You should. What language do you come from? Jun 23 08:59:59 i am trying to get my employer to at least use scala for the android dev Jun 23 09:00:05 actually for all dev they have to do on the jvm Jun 23 09:01:59 flan3002, from F# Jun 23 09:02:21 Oh... yeah, it looks great. Pity its .Net... Jun 23 09:02:24 well .. :) C++ then C# for 10 years and F# for 4 years Jun 23 09:02:39 everyone moans about .Net but use jvm Jun 23 09:02:45 which is the same thing? Jun 23 09:02:53 its a runtime that is required Jun 23 09:03:03 and its multi platform aswell Jun 23 09:03:05 meh .. Jun 23 09:04:02 Yes, but apart from the fact that I don't really like either, I don't like MicroSoft and .Net is a pretty Windows-affine thing. I've heard about Mono, but I've also heard bad stuff about it, so... Jun 23 09:04:44 And I don't really /need/ a new language/environment right now... Well, maybe I should relearn Scala. :/ Jun 23 09:06:39 i need to do that everytime to sum a+b in android ?? int a = Integer.parseInt(yourEditTextA.getText().toString()); int b = Integer.parseInt(yourEditTextB.getText().toString()); yourTextView.setText(String.valueOf(a+b)); Jun 23 09:06:40 ? Jun 23 09:06:56 Oh my god... Jun 23 09:07:01 Seriously? Jun 23 09:07:08 What do you do this for? Jun 23 09:07:32 that is 20x bigger than cin>>a,b; c=a+b; cout< It's Java. What did you expect? Jun 23 09:07:53 cout< expected smarter android thing Jun 23 09:08:09 this is machine language java ? Jun 23 09:08:18 But seriously, you don't do that often... Jun 23 09:08:31 Machine language java? You mean bytecode? Jun 23 09:08:34 waste of source code space 10x Jun 23 09:08:46 * flan3002 feels trolled. Jun 23 09:08:49 no i mean 1st generation vacuum tube language 1940s Jun 23 09:08:56 * flan3002 feels more trolled. Jun 23 09:08:59 before assembly lvl came in Jun 23 09:09:11 * flan3002 will ignore cmtxjhn Jun 23 09:09:14 ?? Jun 23 09:09:23 what u use to make android programs ?? Jun 23 09:09:33 butterflies Jun 23 09:09:36 Hello. Does anyone have any idea how I can use some precompiled .so files in JNI with Android Studio? Jun 23 09:09:51 wht is JNI android studio ? Jun 23 09:10:10 Java Native Interface. Jun 23 09:10:21 Android Studio is Android's official IDE. Jun 23 09:10:23 goto #java Jun 23 09:10:33 DUDE. Jun 23 09:10:41 What are you on?! Jun 23 09:10:43 hey y`all, i have to save a lot of data for my app permanently: Bitmaps, Strings, Intents,.......since i save them at orientation change already successfully in a bundle with onSaveInstanceState i wonder if i can somehow save a bundle like that for permanent storage???? i cannot save intents or bundles in shared preferences directly..... Jun 23 09:12:53 google bought oracle ( sunmicrosys ) java ? Jun 23 09:13:16 * flan3002 tries to stop laughing. Jun 23 09:13:21 It's not about Java. Android does not use Java. Jun 23 09:13:22 * flan3002 fails. Jun 23 09:13:26 i would laugh, but i'm too confused Jun 23 09:13:32 ? Jun 23 09:13:53 n0T jAVA - Jun 23 09:13:53 oK Jun 23 09:14:07 It's not Java, of course. Jun 23 09:14:14 It's an implementation of Java. Jun 23 09:14:40 clone ? Jun 23 09:14:42 watever Jun 23 09:14:47 adkins depends on how much data you have but id recomend using a sqlite tbale Jun 23 09:15:00 I dont know why I am getting the No empty constructor error everytime Jun 23 09:15:13 niru: What are you doing? Jun 23 09:15:19 android can compile java code to its own language Jun 23 09:15:22 I copyied the code from http://www.androidhive.info/2012/07/android-gps-location-manager-tutorial/ Jun 23 09:15:27 niru because you have no empty ctor Jun 23 09:15:30 and trying to run it for gps tracking Jun 23 09:15:54 asfdd: do you mean dalvik bytecode? Jun 23 09:16:08 or art Jun 23 09:16:28 or wahtever is used nowadays =) Jun 23 09:16:31 lasserix: thx Jun 23 09:16:33 asfdd, I added an empty constructor also but no use where I am going wrong Jun 23 09:16:42 < sogard> It's not about Java. Android does not use Java. Jun 23 09:16:53 it's going to take some highly tortured logic to defend that assertion Jun 23 09:17:04 niru it propbably uses reflection to make instances and thus requires a empty ctor Jun 23 09:17:32 asfdd: Well, strictly, DEX bytecode or ARM/x86 code probably are 'languages', but not what you'd call 'programming languages', so... Jun 23 09:17:54 figure out what class it fails on and make sure that doesn't depend on dependency injection so that you have an empty constructor Jun 23 09:19:13 flan3002: well, they *are* technically Jun 23 09:19:13 OPEN GLSE needs another program language from ATI ? Jun 23 09:19:19 but people don't use them like that Jun 23 09:19:38 sogard: you have .so that will work with android devices? you have them for both arm and x86? Jun 23 09:19:39 gles Jun 23 09:19:41 thepoosh: I said so. Jun 23 09:19:49 No, you can use the same shaders and calls on an ATI caard. Jun 23 09:19:59 Yes, I do. Jun 23 09:20:08 i haven't tried but i highly suspect an .so for a typical desktop linux system won't work for an android x86 device Jun 23 09:20:09 cards* Jun 23 09:20:14 i could be wrong Jun 23 09:20:18 I won't work. Jun 23 09:20:29 Why not? Jun 23 09:20:31 I'll compile them for Android manually with the NDK. Jun 23 09:20:34 It* Jun 23 09:21:30 i've looked at some SO posts about people trying to do such things, the resulting makefiles are pretty gruesome Jun 23 09:21:33 best of luck Jun 23 09:22:20 What does the NDK do different during compilation? Jun 23 09:22:31 flan3002, sry for only replying now but .. work .. you know Jun 23 09:22:33 For x86 that is. Jun 23 09:22:38 But this is so bad... Jun 23 09:22:42 flan3002: NDK is all native C Jun 23 09:22:46 i know html Jun 23 09:22:57 I just want to use MRuby on Android. Why does it have to be so complicated? Jun 23 09:23:01 myke: So? Jun 23 09:23:04 4 Jun 23 09:23:04 so first of all you need separate code for x86, arm, maybe even MIPS, and whatever future architectures might be created Jun 23 09:23:07 sogard: Ouch... Jun 23 09:23:11 mono is in many aspects better than .Net since it follows the framework specs to a T, microsoft improvises which .. they do Jun 23 09:23:27 myke: Of course, but why can't you compile a .so with gcc/clang for x86? Jun 23 09:23:37 sogard: ruby? Jun 23 09:23:40 i like mono a lot more than .net and the C# and F# languages aren't bad at all Jun 23 09:23:43 funny someone was asking earlier Jun 23 09:23:48 but thats my take on it at least Jun 23 09:23:53 Yes, Ruby. Jun 23 09:24:01 sogard: tried http://ruboto.org/ ? Jun 23 09:24:14 I have my own implementation. Jun 23 09:24:22 And I want to use more than just that. Jun 23 09:24:27 I want to use Bullet too., Jun 23 09:24:28 alrite Jun 23 09:24:31 well, best of luck... Jun 23 09:25:17 flan3002: because a lot of things are different. paths, entire libs you're used to don't exist...android is a substantially different beast than desktop linux Jun 23 09:25:34 myke: But without even libc? Jun 23 09:25:38 other than the linux kernel it's entirely different, and even the kernel is tweaked a fair bit Jun 23 09:25:40 I know they use bionic... Jun 23 09:25:58 how to put html pages in anroid progam app? Jun 23 09:26:02 This really sucks. Jun 23 09:26:08 cmtxjhn: WebView. Jun 23 09:26:11 flan3002: just look at some of the SO posts about compiling things natively for android and you'll see what i mean Jun 23 09:26:23 I really don't want to have to create separate project in my git repo... Jun 23 09:26:25 it's not impossible, but it's no walk in the park either Jun 23 09:26:30 wat that command . Jun 23 09:26:31 myke: Yeah, I'll fight with that stuff for my Rust game... Jun 23 09:26:33 projecrs* Jun 23 09:26:36 projects* Jun 23 09:27:19 the whole point of the java-based android development library is to shield you from all that, and give you a powerful framework that seamlessly creates apps across all android architectures Jun 23 09:27:29 i mean after " import java.*.*.trash.*; class htmlpage { run.htmlpage ? Jun 23 09:27:37 and for some reason some people are all too happy to throw all that away and make themselves a huge amount of hard work instead Jun 23 09:27:44 and name of html file Jun 23 09:28:03 cmtxjhn: no Jun 23 09:28:03 I'm not throwing anything away. Jun 23 09:28:10 I need Bullet Physics and Mruby. Jun 23 09:28:11 like php Jun 23 09:28:16 myke: Well, for performance critical stuff, the optimizer doesn't do as well as we'd like. Jun 23 09:28:21 include html inside php Jun 23 09:28:30 whatever Jun 23 09:28:35 cmtxjhn: android is not a web server, it doesn't work like webdev Jun 23 09:29:01 myke: Like optimizing data locality or memory layout. Also manual memory management. Of course I don't expect it to magically do that, but it's just impossible with Java. Jun 23 09:29:35 * flan3002 really likes Rust for that reason. Jun 23 09:29:37 flan3002: yeah but the entire app lifecycle of android is completely different from desktop linux Jun 23 09:29:38 i mean frame html offline page insiode android app frame Jun 23 09:29:41 watever Jun 23 09:29:46 when an app loses focus, it can be destroyed immediately Jun 23 09:29:58 that's radically different from how desktop linux works Jun 23 09:30:20 if desktop linux starts killing off your processes that's considered a majorly malfunctioning system Jun 23 09:30:28 in android it's normal and expected behavior Jun 23 09:30:44 windows best Jun 23 09:30:52 and that's the case regardless of NDK or not Jun 23 09:30:53 Go away, really. Jun 23 09:31:10 myke: Yeah... But what's to expect with hundreds of apps per device... Jun 23 09:31:27 not windows phone Jun 23 09:31:30 * flan3002 will have a fun time with the NDK. Jun 23 09:31:31 for desktop Jun 23 09:31:39 and not win8 8.1 Jun 23 09:31:40 cmtxjhn: http://developer.android.com/guide/webapps/webview.html Jun 23 09:31:44 win7 Jun 23 09:31:52 Windows sucks. Jun 23 09:32:15 Yeah, we got it. Now lets talk about something else, as nobody here likes Windows. Thanks. :) Jun 23 09:32:22 :D Jun 23 09:32:56 The NDK isn't that bad. It's just that it isn't properly implemented in Android Studio. Jun 23 09:33:19 private class MyWebViewClient extends WebViewClient Jun 23 09:33:19 oK Jun 23 09:33:21 asfdd, I did noit get u Jun 23 09:33:33 sogard: that's because its use is discouraged Jun 23 09:33:44 no need for useless android linux java xml trash programming Jun 23 09:33:48 html best Jun 23 09:33:56 * flan3002 remembers to not feed trolls. Jun 23 09:34:00 * cmtxjhn slaps flan3002 around a bit with a large trout Jun 23 09:34:02 U Jun 23 09:34:04 ? Jun 23 09:34:09 It is, but it's so much better than Eclipse. And this is THE ONE THING missing. Jun 23 09:34:09 lol flan3002 Jun 23 09:34:09 watever Jun 23 09:34:30 But I think there's a way to trick it. Jun 23 09:34:38 html is junk. did they figure out how to make html5 apps that don't scroll around yet? Jun 23 09:34:54 Gunna uninstall AS, will probably use it in future Jun 23 09:34:54 myke: I totally agree. Jun 23 09:34:59 i said html4- Jun 23 09:35:02 HTML is not a programming language. That simple. Jun 23 09:35:06 seems every time i try to run some html5 app on my phone the arrow keys scroll the window instead of being sent to the app Jun 23 09:35:18 also they're horribly slow Jun 23 09:35:42 fast programming Jun 23 09:35:55 * flan3002 looks up how to ignore people. Jun 23 09:36:03 save all nice colorful webpages offline and convert to android , private class MyWebViewClient extends WebViewClient Jun 23 09:36:06 from what i've seen the android devs learned a lot from the many mistakes html made over the years and created a system much superior to html Jun 23 09:36:07 Do /ignore usernick :p Jun 23 09:36:17 That's not programming. If you want a really nice language for fast development use Python or Ruby. Jun 23 09:36:19 with clearly delineated presentation (xml) and code components Jun 23 09:36:35 dont want Jun 23 09:36:38 none of this "oh let's stick some javascript here, server side php there" garbage of webapp junk Jun 23 09:36:54 myke: Have you seen Scaloid? Jun 23 09:37:00 Lets stick some objective c too! Jun 23 09:37:02 flan3002: nope Jun 23 09:37:09 :p Jun 23 09:37:15 asfdd, it is saying cannot instantiate class com.example.MainActivity ,no empty constructor Jun 23 09:37:16 Scaloid is AWESOME. Jun 23 09:37:32 niru make a empty constructor (one that doesn't take any params) Jun 23 09:37:36 ah scala for android, neat Jun 23 09:37:39 myke: Scloid is how I would have liked Androids UI. No XML border crossing all the time. Jun 23 09:37:53 like public void MainActivity() { super(); } Jun 23 09:37:56 https://github.com/pocorall/scaloid Jun 23 09:38:06 asfdd, let me try Jun 23 09:38:07 i don't think you should be making custom ctors in activities anyway Jun 23 09:38:12 flan3002: You can use Scala in Android Studio right now. Jun 23 09:38:17 what is void void v0iD NuLL nULL ?? Jun 23 09:38:27 sogard: I know. :) Jun 23 09:38:41 sogard: But I'm not patient enough right now. Jun 23 09:38:45 And the IDE treats Scala really nicely. Jun 23 09:38:55 * flan3002 got a connection with an average dload of 5kb/s. Jun 23 09:39:03 yeah, i'm somewhat amused at the multiplicity of ways i can retrieve some component from almost any other component, if i call enough methods to chain thru to get what i want Jun 23 09:39:38 but then again i learned about how javascript "this" really works, with the html DOM, just today, and that's much much worse Jun 23 09:39:52 Lol Jun 23 09:40:09 myke: You mean without JQuery? O.O Jun 23 09:40:19 I'd just love Google if they chose Scala as the official language of Android. Jun 23 09:40:28 Not going to happen. Jun 23 09:40:37 It can happen. Jun 23 09:40:41 flan3002: no just core javascript...how "this" references whatever the parent is, and it's easy to get it quite wrong Jun 23 09:40:55 Scala is backwards compatible. Jun 23 09:41:05 And it's open source, fast and really cool. Jun 23 09:41:49 It could, sogard. But it won't. If they don't even make efforts for Java 8, do you believe they will make the enormous effort to adopt Scala? Of course, as we see with Go, they do adopt new languages. But they create Go themselves... Jun 23 09:42:11 sogard: But of course, I'd like to be told wrong... Jun 23 09:42:35 I wouldn't mind them creating something similar to Scala. And I know why they're not adopting Java 8. Jun 23 09:42:45 I do too. Jun 23 09:42:48 But still. Jun 23 09:42:59 * myke shrugs Jun 23 09:43:00 Or at least I know of a possible reason. :) Jun 23 09:43:05 gotta play the game you're given Jun 23 09:43:10 Also, their position sucks: Oracle want their ass because of Java and Apple has just launched something new. Jun 23 09:43:11 still way better than anything webdev Jun 23 09:43:13 And whats that :p Jun 23 09:43:32 Yup myke thats true Jun 23 09:43:55 darkchaoz: You mean Swift? Jun 23 09:44:07 Google is in a position where they need to come up with something new. Jun 23 09:44:12 Yes, I mean Swift. Jun 23 09:44:24 Nah the reason you think that they gunna use java 8 Jun 23 09:44:27 Swift is really cool. I like where Apple is going. Jun 23 09:44:42 They're not going to use Java 8. I'm almost certain. Jun 23 09:44:53 Meh i dont tend to hear about these sort of news tbh Jun 23 09:44:55 Just because of the law-issues... Jun 23 09:45:05 darkchaoz: Read HN! :) Jun 23 09:45:11 well, things like scaloid prove that they could switch to an alternate front-end system rather quickly, leveraging all the many things that compile down to java bytecode Jun 23 09:45:17 Google always in some sort of lawsuit Jun 23 09:45:20 Not only that. Scala and even Swift are light years away from Java 8. Jun 23 09:45:28 Another one aint gunna harm them Jun 23 09:45:42 Wait nvm, thats samsung. Jun 23 09:45:46 -_- Jun 23 09:45:51 * darkchaoz facepalms Jun 23 09:46:33 Google has some lawsuits as well. Oracle and Rockstar are showing their enormous support. :D Jun 23 09:46:39 sogard: I'm not all that jealous over Swift anymore. Of course, compared to Java 5/6/7 its superior, but not so much when compared to other languages we /could/ use via the NDK. Jun 23 09:47:08 That's so true. That's why I'm trying to get MRuby running. :| Jun 23 09:47:13 sogard: Of course, I'm still jealous about the effort Apple put into it. Jun 23 09:47:48 Apple really did. That's starting everything from scratch. And it's a really complex language. Their documentation is really nice too. Jun 23 09:48:03 Is the iOS market stricter than android? Jun 23 09:48:05 Swift uses type inference too. Jun 23 09:48:12 Thats what i heard. Jun 23 09:48:12 Yes, of course. Jun 23 09:48:19 sogard: Like Scala and Rust. Jun 23 09:48:19 How come? Jun 23 09:48:35 I never actually dwelled in the world of iOS Jun 23 09:48:49 I thought google was the strict one Jun 23 09:48:49 They only let the apps they want into the App Store. Jun 23 09:49:05 lol Jun 23 09:49:17 Rust is decent, but I love Scala so much more. Jun 23 09:49:56 Decent? *coughs* Jun 23 09:49:56 asfdd, my MainActivity extends and implements this Jun 23 09:49:57 public class MainActivity extends Service implements LocationListener Jun 23 09:50:10 Very high quality apps huh Jun 23 09:50:10 Scala's documentation is really nice. Jun 23 09:50:23 so can I have a constructor as public MainActivity(){super();} Jun 23 09:50:26 I mean, yeah, the idea of Rust is very nice. Jun 23 09:50:39 or do i need to think of the extended class Jun 23 09:50:42 I just don't like the syntax that much. It's just a matter of taste. Jun 23 09:51:18 sogard: I suppose it is. But you might want to read/ask why certain parts are like they are to understand it. What are we talking about specifically? Jun 23 09:51:26 Yo flan3002 tha.ks for the help yesterday, will usr markdown today Jun 23 09:51:33 :) Jun 23 09:51:53 darkchaoz: Cool! :) Jun 23 09:52:20 Though not going to use AS now anytime soon Jun 23 09:52:35 flan3002: I was comparing syntax at a glance. I've read some Rust code, but I haven't written so much. Jun 23 09:52:37 ram consumption is unbelievable Jun 23 09:52:38 sogard: I presume you read http://podtynnyi.com/2012/11/29/build-mruby-for-android/ Jun 23 09:52:53 flan3002: Yes. My problem is Android Studio. Jun 23 09:53:34 After I build MRuby I get 4 .a files for each architecture. I turn them into .so. Jun 23 09:53:41 Anyway catch you people later Jun 23 09:53:51 But then, I can only call them from Java, not from any C/CPP file from JNI. Jun 23 09:54:01 sogard: I admit the compiler can be a major enemy and sometimes I do /everything/ to satisfy him. Yes, I'm personifying it. :) But once it compiles, it usually never fails. Jun 23 09:54:07 I see Go have announced extended support for Android recently for Go 1.4 Jun 23 09:54:08 https://docs.google.com/a/sonelli.com/document/d/1N3XyVkAP8nmWjASz8L_OjjnjVKxgeVBjIsTr5qIUcA4/preview?sle=true Jun 23 09:54:18 Because Android Studio's linker does not know about these .so files when it tries to link my JNI files. Jun 23 09:54:22 JuiceSSH: how's the new API going ? Jun 23 09:54:36 flan3002: That's pretty much it. Jun 23 09:54:37 Hey bankai_au, pretty good so far Jun 23 09:54:53 i still haven't looked at it lol i remember when you first announced it Jun 23 09:55:01 If I paste MRuby and Bullet into my JNI folder, everything work well. But that's a complete mess. Jun 23 09:55:07 works* Jun 23 09:55:21 :/ Jun 23 09:56:27 And there's a way to .so files in Android Studio too. But the IDE just doesn't use them when it's linking your JNI files, so use can't use that code. You can only use precompiled .so files from Java as native methods. Jun 23 09:56:37 a way to use* Jun 23 09:57:33 JuiceSSH: could you please please have a popup of user-definable keys like VXconnectbot? Jun 23 09:57:51 i basically can't type them with my droid4 Jun 23 09:57:54 sogard: I can't help you with that, unfortunately. But if may advise so, you should make the build process IDE-independent. Using Gradle or Ant, or if you really like pain, Maven. Jun 23 09:58:02 It's on our roadmap to make the popup keyboard customisable Jun 23 09:58:16 https://trello.com/board/roadmap/515ad59b88d0b1554b00106b Jun 23 09:58:18 JuiceSSH: have you tested with hard-keyboard devices? Jun 23 09:58:47 It's going to be such a pain for multiple architectures... when what I need is just inches away... Jun 23 09:59:00 * flan3002 is always missing importants words in his sentences. :/ Jun 23 09:59:08 s/always/sometimes/ Jun 23 09:59:09 that's quite a list there, JuiceSSH Jun 23 09:59:11 myke: Tested what specifically? Jun 23 09:59:33 bankai_au: Tell me about it :) There's only two of us that work on Juice as a side project in our free time. Jun 23 09:59:42 bankai_au: It gets a bit overwhelming sometimes :) Jun 23 10:00:05 really? wow good job Jun 23 10:00:08 JuiceSSH: two problems, first i have to switch to portrait to even get a soft keyboard, then many keys (~ for example) are simply not available Jun 23 10:00:16 this is on a droid4 Jun 23 10:01:18 a much lesser request, copy the "url scan" feature of connectbot Jun 23 10:01:32 myke: URLs are clickable already Jun 23 10:01:45 We don't have a droid4 ourselves Jun 23 10:02:04 JuiceSSH: yes, but it can be frustrating when (on irc for example) there's multiple urls close to each other and you have to tap in just the right spot to hit the one you want :( Jun 23 10:02:31 So to clarify, the issue is that keys that would normally be available on the soft keyboard (eg ~) are not availabe on your hardware keyboard, so you'd like a software implementation? Jun 23 10:02:55 JuiceSSH: correct, and they also do not appear in the soft keyboard that pops up Jun 23 10:03:01 * flan3002 drools, looking at the Scaloid code examples. Jun 23 10:03:06 Our popup keyboard already has most keys you would need in an SSH session (ctrl/alt/tab etc), but we can never please everyone Jun 23 10:03:18 So this should be solved when we make that popup keyboard customisable Jun 23 10:03:21 hi, I am overriding View and drawing my own graphics, how can I capture touch events within the view? Jun 23 10:03:24 i'm missing ~, <, > off the top of my head Jun 23 10:03:54 The issue is there is only a small amount of space available, and everyone has different opinions on what the "vital" keys are Jun 23 10:03:56 obviously that makes anything but the most trivial sysadmining impossible Jun 23 10:04:00 Hence we need to make it customisable Jun 23 10:04:05 yup Jun 23 10:04:07 great job btw Jun 23 10:04:30 vxconnectbot drops my connection all the time, it's hugely frustrating, juice never does Jun 23 10:04:31 I think for 99% of people this isn't an issue as software keyboards have all the keys required but obviously it's trickier on the droid4 with it's hardware keyboard Jun 23 10:04:42 yeah i know i'm a minority Jun 23 10:04:50 i've had much worse problems with other apps, like skype Jun 23 10:06:56 nb-ben: How about you override onTouchEvent? http://developer.android.com/reference/android/view/View.html#onTouchEvent(android.view.MotionEvent) Jun 23 10:07:29 Hello! What is the best way to send an object from one Thread to another? (e.g. Jun 23 10:07:48 I have, my contents of it pretty much look like this: Log.d(... event.getX() event.getY()); return super.onTouchEvent; Jun 23 10:07:53 osmij_: Sendind? Jun 23 10:07:56 osmij_: Sending?* Jun 23 10:07:59 Hello! What is the best way to send an object from one Thread to another? (e.g. from a TimerTask to send an object into main Thread) Jun 23 10:07:59 for some reason they removed the "sym" key found on the droid1 keyboard, which allowed you to generate just about every key directly with the hard keyboard, and replaced it with a double-wide capslock - when double shift was already the standard and capslock doesn't even work with many apps Jun 23 10:08:01 flan3002: for some reason, it does not respond. Jun 23 10:08:15 i keep thinking, "this is why you keep getting sold off to other companies, motorola" Jun 23 10:08:32 nb-ben: Have you logged all calls to that method? Jun 23 10:08:49 nb-ben: In what container does the view in question sit? Jun 23 10:08:57 flan3002: it's within a FrameLayout Jun 23 10:09:04 osmij_: I usually use a Handler. Jun 23 10:09:09 flan3002: I tried replacing my view with a button, it works Jun 23 10:09:14 (the button is clickable) Jun 23 10:09:29 nb-ben: So, no log output? Jun 23 10:09:35 no log output Jun 23 10:10:20 flan3002: yes, it is best for integers. But I need to pass an instance of my custom class. Jun 23 10:10:57 i'm committed to using my phone as a real computer and so hard keyboard is mandatory. i've been known to write code in emacs on it...you can imagine what a shitshow that is, with ctrl-x meta-something shift-meta-ctrl-ha ha ha Jun 23 10:11:14 heh Jun 23 10:11:24 can a Bundle hold an instance of my custom class? Jun 23 10:11:35 osmij_: Yes it can. It's not cool though. :) Jun 23 10:11:41 if your class is parcelable Jun 23 10:12:36 Or Serializable, but that'd be awful. Jun 23 10:13:06 nb-ben: Code snippet? Just because. Jun 23 10:13:44 flan3002: sure Jun 23 10:14:24 JuiceSSH: anyway, for me at least it'd be fine if you had an entirely different popup keyboard, that covered the text intead of shifting it up...just a thought...that's how connectbot works and it hasn't been a problem, since i don't need to see anything on the screen when entering those special keys Jun 23 10:14:44 flan3002: http://pastebin.com/DMhbP8cF Jun 23 10:16:26 nb-ben: And you're /absolutely/ sure nothing gets logged? Check again. Jun 23 10:16:32 JuiceSSH: and while i'm whining, slide up/down on left side to send pgup/pgdown, on right side to scrollback/forward...totally worth ripping off Jun 23 10:16:35 should I read about Parcelable, or should I look for other way to send an Object between Thread?.. What would be better? :-) Jun 23 10:16:48 flan3002: I guess I'll just open up DDMS on its own and check Jun 23 10:17:01 nb-ben: You can set a breakpoint to the line and debug. Jun 23 10:17:05 nb-ben: That's pretty failsafe. Jun 23 10:17:20 osmij_: Why/when are you sending that object? Jun 23 10:17:41 :X Jun 23 10:17:47 flan3002: it does log Jun 23 10:17:57 nb-ben: See. :) Jun 23 10:18:14 flan3002: from a TimerTask into UI thread (every 10 secinds) Jun 23 10:18:49 flan3002: I need to send an Object that holds a lot of Maps Jun 23 10:19:00 osmij_: I'd pass a Runnable to a Handler. :/ Jun 23 10:20:31 meh, it's reporting very weird X/Y Jun 23 10:21:22 nb-ben: What do you mean by weird? Jun 23 10:21:22 how do I get the X/Y relative to the view? Jun 23 10:21:47 nb-ben: Just use .getX and .getY. No further calculation is needed. Jun 23 10:21:56 it would report X as 0 when I'm at the rightmost bottom of the view, and it will report X as 0 at the leftmost top part of the view. Jun 23 10:22:05 oh wait Jun 23 10:22:11 nvm, I'm altering these Jun 23 10:22:18 * nb-ben facepalms Jun 23 10:25:21 I found a solution, at last. Jun 23 10:26:16 sogard: How? Jun 23 10:26:46 http://kvurd.github.io/blog/compiling-a-cpp-library-for-android-with-android-studio/ Jun 23 10:27:17 It seems like you can hack Android Studio to use Android.mk files. It's ugly, but I'll use in until Android Studio will be more mature. Jun 23 10:27:26 Okay, I figure I might need that... :/ Jun 23 10:27:46 Though I'll probably try to use Gradle first. Jun 23 10:29:28 This guy gave me an idea. Jun 23 10:29:46 You can use .a files in JNI, Jun 23 10:30:06 And this is just perfect. Jun 23 10:30:34 https://groups.google.com/forum/#!topic/golang-dev/P1ATVp1mun0 Jun 23 10:30:41 will just leave it here Jun 23 10:32:08 It won't work with .a files either, of course... Jun 23 10:32:15 I'm so dumb sometimes. Jun 23 11:10:34 hello Jun 23 11:23:46 I've defined a meta-data element in my AndroidManifest.xml to point to the searchable.xml, is there a way to do this generically for multiple activities? Jun 23 11:23:48 how do import my referenced lib on an activity Jun 23 11:28:14 Hello. I get this error in android-studio for all my gradle projects: http://pastie.org/9316082 Jun 23 11:38:00 My app name is Musical Baby Mobile, but i can only find it when i search for musicalbabymobile. Where do i change this Jun 23 11:44:41 Hey guys, how do I add the option to login via Facebook credentials in my app? I don't want to let it perform any other operations (posting updates etc).. Only logging in.. Thanks :) Jun 23 11:45:23 OhjinXX, I'm not sure but since there are many (other) search results for "Musical Baby Mobile" and your app has only a handful of installations, there's nothing you can do to simply "change" this Jun 23 11:45:35 you'd have to wait until your app is more popular Jun 23 11:46:12 purezen, did you read https://developers.facebook.com/docs/android/login-with-facebook/ ? Jun 23 11:47:26 invalidate() should call onDraw immediately, right? Jun 23 11:47:35 vedu, can you paste the gradle config of one of your projects? Jun 23 11:48:22 ultra-, no Jun 23 11:48:37 well that’s interesting Jun 23 11:48:41 from the docs: "Invalidate the whole view. If the view is visible, onDraw(android.graphics.Canvas) will be called at some point in the future." Jun 23 11:49:49 ok, but it’s the method i should use to force a redraw Jun 23 11:50:06 yes Jun 23 11:50:08 EPG: Hey, yes I went through that.. but it seems like it is for some app. performing operations like posting updates etc also.. Is it the only solution to do the same? Are things like 'logging in via Oauth' different? Jun 23 11:50:18 thanks Jun 23 11:53:25 EPG thanks for the reply, so its not an issue with my naming convention Jun 23 11:53:55 purezen, yes, it's for apps. Posting updates etc. are only optional. I don't know about other OAuth-related methods for Facebook Jun 23 11:56:33 how do import lib to an activity Jun 23 11:57:08 DarkChaoz, which IDE are you using? Jun 23 11:57:59 eclipse Jun 23 11:58:27 OhjinXX, btw if you search for "Musical Baby Mobile" (with quotes) you'll find your app Jun 23 11:58:39 DarkChaoz, did you add the lib to the build path? Jun 23 11:59:00 nope, i've moved the jar file to the lib folder Jun 23 11:59:18 and its there now, but not sure how to import it to activity. Jun 23 11:59:53 can't you just write "import ."? Jun 23 12:01:46 is there any tool to read the database of device? Jun 23 12:02:39 could do... I'll try that Jun 23 12:03:22 EPG: I'm switching back to eclipse Jun 23 12:03:38 gdrc, which database? Jun 23 12:03:55 the one(s) you create in your app Jun 23 12:04:00 Hi, my mobile phone includes an 16 Bit accelerometer which should returns values between 2^15 ... - 2^15 but the android api somehow normalizes them and returns me values from -10,xxxxx .... 10,xxxxxx - is there a way to retreive the original values? and where does the conversation take place? Jun 23 12:04:19 how would i do that? is it import MarkdownView.jar Jun 23 12:04:20 ? Jun 23 12:04:51 gdrc, e.g., sqlite3 for compatible databases Jun 23 12:05:30 DarkChaoz, no, you have to know the full name of the classes you want to import, i.e., package name and class name Jun 23 12:06:13 oh i see. Jun 23 12:06:57 DarkChaoz, but I think eclipse should be able to automatically do the imports if you just, e.g., declare an instance of a class from this lib Jun 23 12:07:49 i tried to import it as .com.example.myapp.classname but gives a red error Jun 23 12:08:03 remove the first dot (typo) Jun 23 12:12:10 EPG: I mean: I'm looking for a tool wich move the database from device to my mac Jun 23 12:12:22 gdrc, you can use adb Jun 23 12:12:57 that's annoying Jun 23 12:18:11 EPG, eclipse automatically imported the lib but I under a diff package name import us.feras.mdv.MarkdownView; but my pakage name is not that Jun 23 12:18:13 :\ Jun 23 12:18:42 my jar lib is in the lib folder.. Jun 23 12:23:16 nvm Jun 23 12:31:29 sagura, why should the returned values be in the range 2^15 ... - 2^15? Jun 23 12:31:54 EPG: due my sensor returns signed 16-bit values Jun 23 12:33:59 sagura, the interpretation of the raw 16 bits is something else Jun 23 12:35:00 is it? Jun 23 12:35:37 yes Jun 23 12:37:53 the sensor could, e.g., report that it's maximum range is 10f which could correspond to a "raw" value of 0111...1111 Jun 23 12:38:47 ah... yes I know this, but I want to retreive this raw value Jun 23 12:40:55 is there a callback of some sort for the different fragment transaction operations (add, remove, replace, etc) ? Jun 23 12:44:30 sagura, there doesn't seem to be a method for this. can't you just use the known maximum range and resolution to calculate the raw value (under the assumptions from above)? Jun 23 12:52:50 EPG: I tried this before but it seems I have a basic problem in understanding - my sensor is setup to 1g and returns 16 bit, so basically the highest value the api should return to me is 9,81 Jun 23 12:52:56 but it returns me values > 10 Jun 23 13:08:33 i need help with markdownview Jun 23 13:08:37 i get this error The method loadMarkDownData(String) is undefined for the type neg Jun 23 13:08:44 but i have imported the lib Jun 23 13:10:15 nvm fixed it Jun 23 13:10:16 xD Jun 23 13:15:56 sagura, I think the highest value should be https://developer.android.com/reference/android/hardware/Sensor.html#getMaximumRange%28%29 Jun 23 13:17:45 Hello. I've got a dabatase with text of about 2mb. The text is structured as in book -> chapter -> ... I want to make an app that uses this data and displays it as an expandable list. Should the data be loaded dynamically once use expands something or should it be pre-loaded and just wait for the expand? Jun 23 13:20:39 if the db is part of the app, no point in preloading Jun 23 13:20:44 just query the db as you need it Jun 23 13:21:58 myke, i see. can you tell something about expandable lists? are they as slow as shown in this video? http://www.androidhive.info/2013/07/android-expandable-list-view-tutorial/ Jun 23 13:22:10 or is it because of the simulator Jun 23 13:22:15 emulator* Jun 23 13:22:39 does the loading animation used in google apps under the action bar have a name? Jun 23 13:25:53 gdrc, "progress animation" Jun 23 13:26:07 at least that's how they call it in https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html Jun 23 13:26:11 This is a serous question. How does a not very good game get 500+ downloads, what has the developer done to get their game found? Jun 23 13:26:40 Where would they have advertised/publisized it? Jun 23 13:26:43 OhjinXX, difficult to answer Jun 23 13:26:53 one can advertise, buy downloads, ... Jun 23 13:27:43 you can buy downloads ? *shocked face* Jun 23 13:27:47 500+ isn't that many, to be honest... Jun 23 13:28:26 friends and family, a bit of word of mouth, some gentle spamming of forums, etc. Jun 23 13:28:27 its more than 5 Jun 23 13:28:49 what are you comparing it with? Jun 23 13:29:12 my game lol Jun 23 13:29:29 its my first one, its very very simple Jun 23 13:29:40 just trying to learn the ropes Jun 23 13:30:06 I setup a website, facebook, and twitter, but those arnt doing a lot for me Jun 23 13:31:29 we could really do with a talk/presentation/blog-article/*something* on "How to get your first 10, 100, 1000... million users" Jun 23 13:31:52 that would be good Jun 23 13:46:52 Hi. I'm new to Android development and I need to find a solution. I want a restaurant menu app (no ordering, just presentation) but I also need someway to update the app weekly. How can I achieve that? Jun 23 13:49:26 samfisher: the easiest way to do that is to pull data from a server Jun 23 13:55:02 jonstaff: if I pull data from a server, what will happen if there is no internet connection? will i get an empty menu or the last fetched data? Jun 23 14:03:28 how can i use markdown with viewpager Jun 23 14:03:42 JakeWharton: how are you dealing with methods that return generics. Like, for a method that return Observable how does it know to parse json into a MyModel. getting the interface methods shows erasted types, so it's just Observable Jun 23 14:04:00 erased* Jun 23 14:04:01 my current switches layouts but now im using markdown i need it to work Jun 23 14:04:05 otherwise app crashes Jun 23 14:05:45 guys, what would be a fair price to pay for an android app that displays a menu and gets the data from a server? Jun 23 14:06:06 like in the android store? Or to charge someone to create it? Jun 23 14:07:07 JakeWharton: in retrofit, because im dumb and didnt make that clear Jun 23 14:07:20 jonc: to pay someone to develop it Jun 23 14:07:59 samfisher: a lot of that depends on the specific design Jun 23 14:09:07 if it's as simple as menu + display simple data in a list, you're still talking $1-2k. If the app is already designed. Full time dev at $35 an hour even (which I personally would charge more probably) is $1400 a week Jun 23 14:09:37 jonc: wat?? I was thinking of 150 to 250 USD Jun 23 14:09:40 jeez Jun 23 14:09:44 hah Jun 23 14:09:46 Dev's are not cheap Jun 23 14:10:00 $35 is low balling per hour mostly (unless it's a relatively new dev) Jun 23 14:10:09 I mean, I have to do it, no deadline but I have 0 coding skills in Android Jun 23 14:10:12 I gave someone a quote on craigslist a few years back, he ran away Jun 23 14:10:20 I don't know many devs who will work for $35/hr Jun 23 14:10:33 exactly Jun 23 14:10:39 not in the USA... Jun 23 14:10:49 right ^ Jun 23 14:11:03 Europe here Jun 23 14:11:07 still a lot Jun 23 14:11:10 I'd never lift a finger for anything below $300/hr Jun 23 14:11:15 but that's just me Jun 23 14:11:36 the thing to remember about freelance devs is that you can't pay them like you do full-time devs. they have to ay for their own insurance, cover times when they're getting clients and not doing client work, and cover times when they're between jobs Jun 23 14:11:46 ^ Jun 23 14:12:08 ^^ Jun 23 14:12:22 The only time I would think of doing something close to that low is if I am full time already and not working on anything at home currently Jun 23 14:12:25 samfisher: build it yourself, it's a rather simple application that you are asking for. Jun 23 14:12:49 mpajor: I will, but it's not for me, it's for a small restaurant (client of mine) Jun 23 14:12:57 phonegap, html+javscript and it should take you two full days, starting from 0 knowledge. Jun 23 14:13:16 any guidelines on books to read as a newb? Jun 23 14:13:41 This thing called google pretty much answers all the questions that you may have. I'll highlight phonegap once again for you though, that would be a fair start for you Jun 23 14:13:57 It should save you a lot of time, especially if you have no knowledge. Jun 23 14:14:05 anybody know how i can use viewpager with markdown? Jun 23 14:14:19 mpajor: I'd be curious to know where to find work for $300/hr Jun 23 14:14:28 mpajor: thank you Jun 23 14:14:32 I want to substitute layout files with various functions which contains markdownload data Jun 23 14:15:09 in the area I am in I've heard $100 an hour, and for specialists closer to $200 Jun 23 14:15:26 jonstaff: depends on the work that needs to be done and in what field, if you are nisched >$300 is rather standard. Jun 23 14:15:39 ps. I'm not in the US Jun 23 14:15:40 I typically charge $75/hr and it sucks finding work as it is Jun 23 14:15:58 aha, well that might have a lot to do with it Jun 23 14:16:14 being in the midwest (US) sucks... Jun 23 14:16:57 I'm fairly surprised that more places don't allow remote work Jun 23 14:17:21 any help with be appreciated Jun 23 14:18:07 yeah, I am too Jun 23 14:18:27 DarkChaoz, that's probably not the best way to approach that. id have a viewpager with regular old fragments, then put your markdown in those fragments. the viewpager doesn't need to know that markdown is in it, and markdown doesn't need to know it's in a viewpager Jun 23 14:18:38 ^ Jun 23 14:19:26 will it still work like a viewpager? Jun 23 14:19:43 samfisher like jonstaff said, you want to pull the data from a server. you can store the data on a local phone database pretty easily with something like OrmLite. you can set a time interval to check against for updating, and just don't delete the old data if you have no itnernet connectivity, or something else goes wrong Jun 23 14:20:01 just convert markdown to html and slap it in a webview Jun 23 14:21:01 does the markdown need to be editable or just rendered? Jun 23 14:21:28 just rendered Jun 23 14:21:37 this is my current viewpager http://pastebin.com/cebG8Q6h Jun 23 14:21:54 mattblang: great idea, thank you! Jun 23 14:22:35 I will be using markdown alot to render alot of content.. but instead of making so many activities I would rather have it as a viewpager so people can slide to read the next set of content Jun 23 14:22:50 then use it... Jun 23 14:22:59 then I would do as pfn said and render it as HTML Jun 23 14:23:25 but again, I need to convert the current viewpager so it works with markdown Jun 23 14:23:26 multiple Web views in am activity kinda sucks Jun 23 14:23:53 viewpager doesn't need to know about markdown and vice versa Jun 23 14:24:07 I just dont know how to go forward about this.. Jun 23 14:24:19 all the viewpager should care about is the fragments it contains Jun 23 14:24:47 viewpager doesn't even have to contain fragments, you can just use views Jun 23 14:25:07 right, sorry Jun 23 14:25:51 Am I correct if I think that UIDFolder.getMessagesByUID(1, 50) should return 50 emails? Jun 23 14:25:55 any example of how it would work Jun 23 14:26:01 because Im currently stuck Jun 23 14:26:48 find your own examples Jun 23 14:26:55 ...... Jun 23 14:27:05 there are tons of examples online Jun 23 14:27:45 if you define a values file, then a values-600dp file, will a tablet be able to use attributes from both? for example, if you don't define a particular value in the 600dp file will it check the regular values file Jun 23 14:28:08 mattblang, it falls back if it doesn't exist Jun 23 14:28:28 pfn awesome, wasn't sure if that was on the file level or the particular attributes lvl Jun 23 14:28:57 stupid Kindle tablets are 533dp sw Jun 23 14:29:15 pfn are they really, im actually working on Kindle support at the moment in addition to what im doing Jun 23 14:29:20 I'll stick to storing content as xml layouts instead then Jun 23 14:29:59 mattblang, some of them, yeah Jun 23 14:34:29 wonder how long it will be before API Level 10 is less than 10 percent Jun 23 14:34:48 Weird, working with the default camera, even if I don't specify "MediaStore.EXTRA_OUTPUT" as an extra field on the camera intent, the onActivityResult() method's data.getData() call _always_ returns null. It's null if I specify a file I want a photo saved into, which is expected behavior. But if I don't specify a save location, shouldn't data.getData() return the URI to the captured photo? Jun 23 14:35:46 mattblang: Definitely too long. :/ Jun 23 14:35:55 flan3002 lol, yeah Jun 23 14:39:04 cant find any examples with viewpager and markdown Jun 23 14:39:23 DarkChaoz: So? What are you having problems with? Jun 23 14:40:48 Looks like you can't depend on data.getData() for the URI, but can work with the Bitmap directly via data.getExtras().get("data"). Jun 23 14:40:49 my existing viewpager uses layouts when switching page on activity, I've got markdown up and running and now I want to substitute layout with markdown Jun 23 14:40:59 I'll show you my existing viewpager code Jun 23 14:42:01 DarkChaoz: A gist maybe? Jun 23 14:43:14 if I want to do a catch all drawable for screen sizes below my lowest swxx folder, where do yall think I should I put it? Jun 23 14:43:24 @flan Jun 23 14:43:26 http://pastebin.com/UgCWsM6P Jun 23 14:43:32 -.- Jun 23 14:44:40 DarkChaoz: Why do you create a class MarkDownView? What does it do? Jun 23 14:45:39 that I need to use in order make the markview work Jun 23 14:45:57 DarkChaoz: Make a backup, delete the MarkDownView for now, create a WebView. Jun 23 14:46:09 DarkChaoz: Then, in your adapter, always return that WebView. Jun 23 14:46:09 or i could i have done MarkdownView markdownView = new MarkdownView(this); Jun 23 14:46:10 setContentView(markdownView); Jun 23 14:46:34 DarkChaoz: I'd have to see your XML in order to decide which one to load. Jun 23 14:46:58 ok hold on Jun 23 14:47:02 the markview one right? Jun 23 14:47:17 its only Jun 23 14:47:56 That's not all, but... Jun 23 14:48:31 Doing what I said? Jun 23 14:48:37 how hard is it to use markdownview... Jun 23 14:48:40 like any other view... Jun 23 14:48:57 where shall i return the webview? Jun 23 14:49:14 DarkChaoz, do any viewpager "tutorial" that uses views and not fragments Jun 23 14:49:19 From instantiateItem. Jun 23 14:49:58 ok Jun 23 14:50:35 replace return view; with return webview;? Jun 23 14:50:51 Think about what you asked. Jun 23 14:51:17 if you want handholding, go to school Jun 23 14:52:00 i give up on this, I'll stick to only php Jun 23 14:52:11 What? O.O Jun 23 14:52:44 you probably should Jun 23 15:00:15 is it good to communicate between two fragment thought BroadcastReceiver? Jun 23 15:00:19 *safe Jun 23 15:02:41 sure, it's safe, seems kinda wasteful Jun 23 15:03:27 maybe using findFragmeByTag is better :P Jun 23 15:03:37 findFragmentByTag Jun 23 15:07:38 hey guys Jun 23 15:07:42 i have a dialog with a listview Jun 23 15:07:57 is it good idea to use markdown on lots of activities? Jun 23 15:08:00 and several fragments with diferent adapters for that same listview Jun 23 15:08:18 when an adapter has more columns, instead of stretching, the listview adds a scrollbar Jun 23 15:08:24 DarkChaoz: I thought you'd let it be? Jun 23 15:08:29 how do i make it stretch to fit the content of the adapteR? Jun 23 15:09:03 im going to give up when I cant find an answer.. since this is the only problem I have.. Jun 23 15:09:18 other than that it would be pretty much finished. Jun 23 15:09:31 DarkChaoz: It's pretty trivial with MarkDown. You should try further. Jun 23 15:10:07 Our buddy DarkChaoz is not really known for persistence =P Jun 23 15:10:28 pretty much James.. I give up too easily tbh Jun 23 15:10:57 Admitting that the problem exists is definitely the first step to solving it Jun 23 15:11:00 yeah and eclipse hates me now. Jun 23 15:11:09 because the AVD is now frozen @_@ Jun 23 15:11:13 It hates me too. I believe it hates everyone. Jun 23 15:11:25 DarkChaoz: did you download the google package? Jun 23 15:11:37 no ._. Jun 23 15:11:41 DarkChaoz: but, tbh I never had much luck with the avd myself. Jun 23 15:12:03 DarkChaoz: fortunately the client gave me hardware Jun 23 15:12:08 i say screw avd, google should give us free cheap phones to test it on :/ Jun 23 15:12:13 I /always/ need to force-close the selection windows. -.- Jun 23 15:12:20 if you want to use avd use x86 + haxm Jun 23 15:12:21 lol Jun 23 15:13:46 DarkChaoz: Well, I am a socialist but not that much :) Jun 23 15:15:08 lol Jun 23 15:15:31 jamesson: Well, it'd sure be a way to get more developers on board. Not saying it's sensible. Jun 23 15:16:44 I am working on an app that pushes status to the notification bar. When I click on it, I get "Unfortunately AppName has stopped working" with an "OK" button Jun 23 15:16:59 How do I debug this? I am using android studio, and it doesnt show any crash log, exception, etc Jun 23 15:17:03 debug or run mode Jun 23 15:17:20 flan3002 what do u suggest i do then Jun 23 15:17:24 Images: It always shows something in the logcat. Jun 23 15:17:36 looks like for me viewpager and markdown a bad mix Jun 23 15:17:39 DarkChaoz: What I said. Jun 23 15:18:08 flan3002: sorry, developers on board? You want to make some money, write some code. Figure out how to test it. Go to your local pawnshop and buy a phone, or ask your cousin for the one he has with a cracked screen. Unfortunately there is no universal law that says everyone has a right to develop software for money. Jun 23 15:18:15 DarkChaoz: I'm not going to change my opinion on the most pragmatic solution because you don't feel like accepting it. Jun 23 15:18:53 i see. Jun 23 15:18:54 flan3002: dont hurt yourself with DarkChaoz, I tried yesterday and didnt get too far myself Jun 23 15:19:12 lol Jun 23 15:19:16 jamesson: Sure. I haven't been saying it's a good idea. Just that it would get more Android developers, which again, might be a bad thing. Jun 23 15:19:29 flan3002: heh Jun 23 15:19:38 so viewpager didnt work for you james? Jun 23 15:19:52 DarkChaoz: I like it, but the client does not Jun 23 15:20:01 DarkChaoz, viewpager and markdown are orthogonal, viewpager and /you/ is a bad mix Jun 23 15:20:19 =) Jun 23 15:20:34 lol james Jun 23 15:20:34 and more developers on board? as if there aren't enough android developers Jun 23 15:20:51 As I said, it's not a good idea. Jun 23 15:21:03 flan3002: Thanks, I am a new android developer, I figured such a thing existed but wasn't sure where to look Jun 23 15:21:04 James.. the developer is always right.. the client is a load of BS Jun 23 15:21:07 DarkChaoz: not very funny, several days of work in the toilet Jun 23 15:21:08 xD Jun 23 15:21:16 damn Jun 23 15:21:43 DarkChaoz: dude, seriously? Now you are officially on my ignorelist Jun 23 15:21:44 did u try to find an alternative to viewpager? Jun 23 15:21:56 :| Jun 23 15:23:26 Images: At the bottom of AS, there should somewhere be a button "Logcat". Click on it and try to find error. Jun 23 15:23:50 Images: You might want to clear the log and restart/recrash your app to find it faster. Jun 23 15:24:06 jamesson u tried using showcaseview? Jun 23 15:24:11 flan3002: recrash is my word of the day Jun 23 15:24:30 :P Jun 23 15:30:32 if I call FragmentManager.show/hide on some fragment, what lifecycle events are called? Jun 23 15:35:07 jamesson put logs in and find out ! Jun 23 15:35:25 Images: No success? Jun 23 15:36:23 read fragmentmanager source and find out Jun 23 15:36:23 :p Jun 23 15:38:13 flan3002: Great success, thanks! I am tracing it down now Jun 23 15:39:36 command+6 on mac to get the logcat window up btw Jun 23 15:40:34 do yall typically use drawable-density folders or drawable-swxx folders? Jun 23 15:42:01 i mostly use drawable-density with layout-swxx Jun 23 15:42:21 mattblang you from texas :P Jun 23 15:42:24 yall :D Jun 23 15:42:55 g00s haha, since when does texas get that honor? im from the deep south mang (Mississippi) Jun 23 15:43:04 ah k Jun 23 15:43:57 Texas on occasion has produced amazing individuals, but I really wouldnt wanna live there Jun 23 15:44:04 jamesson i would live in austin Jun 23 15:44:33 g00s cool, that is exactly whati m doing wrong now. density in drawable, layout with screen width Jun 23 15:45:40 3 more days :) my fcaorite is always the fireside chat Jun 23 15:49:06 mattblang: almost makes it worth it Jun 23 15:53:23 so much fracking going on down there, hard to know if your water is OK Jun 23 15:55:26 state officials and regulators just ignore complaints Jun 23 15:57:41 can you set your water on fire? Jun 23 15:57:55 sonOfRa yes ! http://www.wfaa.com/news/investigates/Scientists-say-state-tests-prove-fracking-to-blame-for-Parker-Co-flaming-wells-262056131.html Jun 23 15:58:13 woooo! burning water! Jun 23 15:58:38 But seriously, anti-fracking campaigns are just a russian plot to strengthen dependency on russian gas! Jun 23 15:59:03 says NATO. (no, really: http://www.telegraph.co.uk/earth/energy/fracking/10911942/Russia-in-secret-plot-against-fracking-Nato-chief-says.html) Jun 23 15:59:35 i'd be laughing so hard if ... Jun 23 16:02:58 sonOfRa so maybe the russians sabotaged those texan water wells .. i think we need to find out Jun 23 16:08:39 is there any repository of open source apps that I could study? I'm looking for on to aid me in the restaurant menu app Jun 23 16:09:12 samfisher: fdroid Jun 23 16:10:38 Leeds: much obliged, thank you Jun 23 16:10:44 enjoy :) Jun 23 16:11:08 there was a list of apps like iosched, u2020, etc i can't find it Jun 23 16:11:54 i'm guessing samfisher means 'well designed apps that are open source' Jun 23 16:12:14 which is a significantly smaller set i imagine Jun 23 16:16:25 samfisher http://www.reddit.com/r/androiddev/comments/26s597/open_source_apps_to_study/ Jun 23 16:16:33 but there was a list of around 10-20 things, still looking Jun 23 16:17:04 oh well maybe jake knows Jun 23 16:19:17 suppose you have a values-land, and a values-sw600dp. if you flip a tablet into landscape, which one will it use Jun 23 16:19:48 when displaying search results using a search view and want to display it a bit differently, should I use a separate layout file and just swap them? Jun 23 16:32:30 mattblang: perhaps use sw600dp-land Jun 23 16:32:38 and then you won't have to wonder Jun 23 16:33:07 mattblang: sw600dp Jun 23 16:55:40 my avd is still frozen :| Jun 23 16:56:47 DarkChaoz try genymotion maybe? Jun 23 16:57:38 is it free? Jun 23 16:58:04 Sort of Jun 23 16:59:41 DarkChaoz: it's free for non-commercial or it's 99 or 299 depending of your company size Jun 23 16:59:46 com.android.ddmlib.InstallException Jun 23 16:59:57 thats the issue why avd aint working i assume Jun 23 17:02:24 capella why did mozilla call their project mortar :| Jun 23 17:02:41 https://github.com/mozilla/mortar Jun 23 17:03:09 seems like my browser is getting an IDE. not sure if thats brilliant or crazy Jun 23 17:03:46 :P The press seems to be favorably inclined Jun 23 17:04:29 I can't believe everything we're into for a non-proft Jun 23 17:05:18 surprised they are bundling that though, would think a separate plugin would be better Jun 23 17:06:24 not sure what it does to overhead ... I only did one or two small patches for devtools couple years ago Jun 23 17:07:01 heh - I tinkered with Scratchpad ... some minor stuff Jun 23 17:13:32 I have super.onCreate(savedInstanceState); setContentView(R.layout.activity_foo);, and it has a TextView that gets it data from values.xml, can I insert a variable there, like replace %s from values.xml with BuildConfig.VERSION ? Jun 23 17:16:55 smallfoot- i think you'll have to do it programatically, that would be easy Jun 23 17:18:52 I see Jun 23 17:19:01 I don't know how to do it programatically Jun 23 17:19:25 maybe get FindViewById on the TextView, then change the text to that of the R.id.foo string ? Jun 23 17:21:01 smallfoot- yes, and you can use this http://developer.android.com/reference/android/content/res/Resources.html#getString(int, java.lang.Object...) Jun 23 17:21:29 have the string in xml as "Build.config version $1%s" or something Jun 23 17:22:50 Then how do I insert $1&%s ? cuz it wont parse "Build.config" in the string itself Jun 23 17:27:19 DarkChaoz: Had success? :D Jun 23 17:30:57 Hello. Anyone use the RawContacts Content Provider? Reason I ask is I have to iterate through the table to get full list of contacts: while doing some investigation, I found that after starring a contact, it duplicated in RawContacts: that is, a new contact id for the same contact was produced: now I have duplicates in the list. Jun 23 17:31:56 I can't mask it using just display name, because two contacts might have same primary display name, but can mask it by comparing the the data from the RawContactEntities fields (if they have the same mime information, it's the same contact). But the RawContactEntities table can be huge, so this is not re Jun 23 17:32:25 *releastic to do. So guess my quetion is anyone know if there is a column in the Raw Contact table that will give me a hint as to duplicate contacts? Jun 23 17:33:40 anyone here know where to ask regarding repo sync troubles? Jun 23 17:33:46 thanks in advance Jun 23 17:34:19 anjumkaiser: What repo? Jun 23 17:34:49 repo, the tool used to get android source code Jun 23 17:35:05 Okay, I know what you mean. So, AOSP? Jun 23 17:35:13 Because, CM uses it as well. :/ Jun 23 17:35:22 And loads of others probably too. Jun 23 17:35:31 yeah Jun 23 17:35:48 #cyanogenmod is pretty active too. Jun 23 17:35:59 just setup a local mirror, and now it seems like its corrupted Jun 23 17:36:27 #cyanogenmod-Dev to be specific Jun 23 17:36:49 ok, I'll ask there Jun 23 17:36:51 thanks Jun 23 17:36:54 They should help with AOSP Jun 23 17:37:42 Funny how we redirect him to a third-party ROM. :) Jun 23 17:37:56 hey guys I am new to programming java, although I want to learn how to make android applications, how would I start learning about android programming? Would I start with learning basic java? Jun 23 17:37:58 and work my way up? Jun 23 17:38:10 I can tell that all android tutorials start from an intermediate perspective. Jun 23 17:39:00 Psil0Cybin: Yes, definitely learn Java first. At least the basics. As always, a good book can do wonders and you can ask in ##java. :) Jun 23 17:39:32 ##java is kind of filled with assholes it seems. Look for hello world tutorials Jun 23 17:39:38 Thank you so much flan3002, for not getting upset at my question! I really appreciate this. Jun 23 17:39:43 also thank you jonc. Jun 23 17:39:44 :D Jun 23 17:40:15 I am looking at the Android Application Development for Dummies, also getting a few basic Java books to start. Jun 23 17:40:30 jonc: Well, I got a bad response from DreamReal there, the first time I asked something... But otherwise... Jun 23 17:40:30 I will see, what is easier to start with :D I am excited, thanks guys. Jun 23 17:40:32 Psil0Cybin, do you know any other languages? Jun 23 17:40:38 I should get a dummy book too tbh Jun 23 17:40:43 jonc, web based, php, javascript, css, html5. Jun 23 17:40:52 jonc: Just ask sensible stuff and I think they'll reasonably nice. :/ Jun 23 17:41:02 jonc, this would be my first programming language, aside from Visual Basic Jun 23 17:41:04 sensible stuff = hard to gauge as someone new :P Jun 23 17:41:04 when I was 13 years old. Jun 23 17:41:25 The GUI reminds me of Visual Basic, with the buttons and everything layed out. Jun 23 17:41:39 Psil0Cybin, you new to android dev like me huh? Jun 23 17:41:42 I would first get used to the syntax and types Jun 23 17:41:44 :p Jun 23 17:41:45 DarkChaoz, yes sir :D Jun 23 17:41:52 then move towards familarizing yourself with the collections Jun 23 17:41:57 DarkChaoz, trying to get in before everything I have in my head is already developed. Jun 23 17:42:01 xD Jun 23 17:42:02 Psil0Cybin: Just remember to google yourself before asking something. We always get upset when we google for the asker and find an answer on the first page. Jun 23 17:42:07 then start looking into Objects Jun 23 17:42:13 Yeah i usually into web dev language such as php and what not Jun 23 17:42:15 creating your own classes etc Jun 23 17:42:30 thanks guys, i am getting on this asap! Jun 23 17:42:38 Psil0Cybin: the real way to do it is by coding, no amount of reading books will teach you all the stuff you'll learn that makes stuff actually work. To that end, I'd basically generate a couple of projects that increase in complexity, and make them. Ie, start off with a simple app that has a button that when you press it makes a fart sound or whatever, then make a whwhole soundbard, ... and oon and so on like a hangman game or Jun 23 17:42:39 whatever Jun 23 17:42:57 Android learning is a long long step xD Jun 23 17:43:02 then I would start looking for "Hello World" tutorials for android Jun 23 17:43:18 DarkChaoz: and you have, I am curious, paying clients? For web work? Jun 23 17:43:38 Im into game devlopment stuff with PHP Jun 23 17:43:54 Game dev. With PHP. Good luck with that Jun 23 17:44:09 I used to be a dev on a pokemon rpg before got sbutdown Jun 23 17:44:11 DarkChaoz: Game development. PHP. *gulps* Jun 23 17:44:12 you could totally do card games ;p Jun 23 17:44:14 *shutdown Jun 23 17:44:22 Presumingly by nintendo Jun 23 17:44:32 PHP is a scripting language that is typically only used serverside Jun 23 17:44:38 * jamesson regrets the past 10 sec Jun 23 17:44:42 I don't even know if there are any opengl bindings for it Jun 23 17:44:54 * DarkChaoz regrets even coming here lol Jun 23 17:45:01 Let's hope there aren't. Jun 23 17:45:12 flan3002: +1 Jun 23 17:45:31 PHP is used as a scripting language for server side items, or to spew out dynamic webpages Jun 23 17:45:32 flan3002: ^^ ;p Jun 23 17:45:34 Psil0Cybin, you should check out monster battle arena, one of my friend is a dev there. Jun 23 17:45:40 Pretty cool game. Jun 23 17:45:47 PHP + gaming can't be much worse than enterprise dev with brainfuck Jun 23 17:46:00 The company behind it makes games on iOS Jun 23 17:46:07 g00s: who did that to you? Jun 23 17:46:19 g00s: Nah. How about OS development in Malbolge? Jun 23 17:46:29 i was just being a smartass Jun 23 17:46:56 * g00s never heard of malbolge Jun 23 17:47:11 Seriously, I can't even write HelloWorld in Malbolge. And I don't want to. Jun 23 17:47:28 I have super.onCreate(savedInstanceState); setContentView(R.layout.activity_foo);, and it has a TextView that gets it data from values.xml, can I insert a variable there, like replace %s from values.xml with BuildConfig.VERSION ? Jun 23 17:47:51 Flan i found webview viewpager lol Jun 23 17:48:01 For gamedev the standard language is c or c++. There are opengl bindings for java (potentially even DX ones also), and then C# can also be used Jun 23 17:48:11 python with pygame is doable for small things Jun 23 17:48:13 For client based games yes Jun 23 17:48:34 smallfoot-: sure, you can't change what you've defined in your strings or values, but you can dynamically set values of the textview Jun 23 17:48:36 Well, purely server based games should be pretty rare. :) Jun 23 17:48:38 even for server based games, unless it is an asychronous game Jun 23 17:49:04 smallfoot-: and then you can just build a shared preferences around whatever values you need to determine at run time, and set them and pull them from their Jun 23 17:49:06 There are lots of web based games lol Jun 23 17:49:08 for a live game I wouldn't use php. You'll want a connection per client, not a restful type interface Jun 23 17:49:22 jonc: could be turned based Jun 23 17:49:23 Web based games are written in javascript + html5, unity, or flash Jun 23 17:49:27 DarkChaoz: But not so many server-side web games. Jun 23 17:49:34 True Jun 23 17:49:42 You'd still have to poll the server for opponent moves if it is turn based Jun 23 17:50:38 for asynchronous games like words with friends etc. a rest based server is fine Jun 23 17:51:31 lasserix, how do I set them? Can I do FindViewById and get the TextView, then set that to BuildConfig.VERSION ? Jun 23 17:51:49 smallfoot-: what are you actually trying to set? Jun 23 17:52:58 are you trying to make the textview show the build config version value? Jun 23 17:54:10 Mmm need to do more research on viewpager content stuff Jun 23 17:54:27 DarkChaoz: Yes, you do. :) Jun 23 17:54:47 That is what i shall do Jun 23 17:55:17 1. Could be markdown with viewpager (not sure how to go at this point) Jun 23 17:55:33 And find other ways with VP Jun 23 17:58:54 lasserix, I am trying to set "BuildConfig.VERSION" so it says "1.0" in my about dialog Jun 23 17:59:22 DarkChaoz good luck … they way i see it markdown is to easily allow people to specify some formatting to text they are creating; i doubt anyone is going to type that into a phone/tablet. so … if you have a content-heavy thing consisting of all this markdown maybe a webapp is better way Jun 23 18:00:17 yeah so get your textview reference, make sure if you are doing it in a dialog you are calling findViewById on the view actually inflated (ie, usually with a dialog, you inflate a view with your textview, which is not the same as your activity root view), then just do normal setText("Your build Config version is BuildConfig.VERSION) Jun 23 18:00:32 *...is " + BC.VERSION) Jun 23 18:00:39 Thanks, i was hoping to use markdown but i have to create seperate activities and add a button for users to click to go on the next page Jun 23 18:00:52 If it doesnt work with viewpager Jun 23 18:01:14 Anyway i'll be back soon. Jun 23 18:01:16 DarkChaoz: Hey. Markdown was only how I'd do it, because it's cooler than directly typing HTML. You don't have to if it makes you so much trouble... Jun 23 18:01:46 lasserix, thanks Jun 23 18:02:24 lasserix, I inflate it as, super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); Jun 23 18:04:40 yeah it should be fine Jun 23 18:05:16 so then I use FindViewById(r.id.TextView1) ? Jun 23 18:05:46 yeah probably Jun 23 18:05:53 it'd be helpful if you are having a crash Jun 23 18:05:58 then you could post the stacktrace Jun 23 18:06:06 so just try it Jun 23 18:06:19 I see Jun 23 18:21:10 oh wow android studio bundle! Jun 23 18:21:34 I have an item in an adapter that updates itself, how can I have it tell the adapter it needs to update, and update the view as well Jun 23 18:22:37 notifydatasetchanged oin your adapter Jun 23 18:22:48 after you update the item's data Jun 23 18:23:09 but the item, updates, there is no getAdapter() call on the item Jun 23 18:23:23 or is there? Jun 23 18:24:02 is there a way to apply fontFamily="sans-serif" to all text views? or do I need to add it to every single one in the XML Jun 23 18:24:06 the item async updates itself. Jun 23 18:24:54 mattblang i would assume a theme Jun 23 18:25:26 g00s then id still have to give every textview a theme tho yeah Jun 23 18:25:38 no, not style, theme Jun 23 18:26:02 but i'm not very good in this area ;) Jun 23 18:27:04 is there a method that's called whenever a View is being layouted, so I can see what dimensions are assigned to it? Jun 23 18:28:02 shingshang: https://developer.android.com/guide/topics/ui/how-android-draws.html Jun 23 18:28:08 measure() and layout() Jun 23 18:28:12 JesusFreke: thanks Jun 23 18:28:35 or rather onMeasure and onLayout Jun 23 18:37:05 g00s cool, theme will work. now if I need to actually use a different fontFamily, and define in the actualy TextView a fontFamily, I wonder which takes precendence. That definition, or the one in the theme Jun 23 18:37:49 I'm having a problem migrating my application to ART, does anyone have experience dealing with NoClassDefFoundErrors? Jun 23 18:39:19 Scorp1us: then have your onpostexecute call notifydatsetchanged on your adpapter Jun 23 18:41:15 eh, this is turning into a clusterfuck. I think I'll just have to add a referece to the adapter for each item Jun 23 18:41:43 did someone ping me before i quit earlier? Jun 23 18:41:58 it's pretty stupid that android doesn't already provide a getAdapter() method for items Jun 23 18:42:30 for items? Jun 23 18:42:40 Does anyone know how to mask out duplicate contacts in the RawContacts table? Jun 23 18:43:17 Scorp1us why not just pass an observer into your async task with a callback to update your adapter Jun 23 18:43:37 your adapter can implement that interface, etc etc Jun 23 18:43:44 that might be a good idea. I'm in the channel looking for good ideas like that Jun 23 18:43:48 lasserix, by the way, you asked for that full backtrace a few days ago, http://95aeac9178a305d6.paste.se/ if you remember Jun 23 18:44:02 lasserix: can you give me an example? Jun 23 18:44:43 is it possible to use viewpager without layouts? Jun 23 18:45:27 lasserix: I am not sure what you mean by "observer" Jun 23 18:49:37 Scorp1us: http://pastebin.com/RM4EvwvP Jun 23 18:49:43 i posted a question on stackoverflow if anyone wants to take a look at the stacktrace: http://stackoverflow.com/questions/24337026/android-app-runs-on-dalvik-but-crashes-with-noclassdeffounderror-on-android-runt Jun 23 18:49:54 Zharf: oh yeah that was a while ago Jun 23 18:50:07 lasserix: thanks! Jun 23 18:50:18 Hi! I'm trying to programatically access the picture files from the DCIM/Camera folder. Is that forbidden? I just cannot read them. Here is a SO post with details: http://stackoverflow.com/questions/24372679/reading-from-dcim-camera-folder-not-working Jun 23 18:50:40 you can make the interface toplevel but i usually stuff it into the thing its related too, also note the cast before you pass it in, not after, that way you don't leak access of your objects Jun 23 18:51:00 Adyhan: you need to use READ_EXTENERAL_STORAGE or something to your manifest Jun 23 18:51:07 use-permission Jun 23 18:51:16 I do have the permissions added Jun 23 18:52:21 Scorp1us: also there might be typos, that is not cut from anything, just typed up so check typos if it doesnt work Jun 23 18:53:22 Adyrhan: hmm maybe you are using a device that is unmounting when usb it connected? did you test if that file is even there? Jun 23 18:53:59 One thing that bothers me about Android is that there is no standard or template for About dialogs, and even if you look at Google's own apps, they are very inconsistent when it comes to About dialogs. Jun 23 18:54:08 it is, I'm opening it with the gallery, and with the file browser Jun 23 18:54:43 yeah but i mean in that snippet Jun 23 18:55:38 maybe "Camera/IMG_20140623_125853.jpg") is not the right way to set up the file, ie: the / is failing, you should use proper set up to make sure the folder paths is correct? Jun 23 18:55:45 no worries, it gets the point across Jun 23 18:56:21 like you assume it goes /storage/DCIM/Camera/asdfasdf.jpg but maybe it's not parsing correctly or something (like use File.PathSeperator or whatever) Jun 23 18:58:50 my 2013 n7 is making creaking noises when i pick it up / hold it / touch the screen :( Jun 23 18:59:01 The file object shows the path pretty well though :/ Jun 23 18:59:10 when debugging Jun 23 19:00:36 g00s, mine has touchscreen issues Jun 23 19:02:01 gdrc :( well i hope they last long enough for the next affordable 7" nexus - that HTC 9" is pretty damn expensive Jun 23 19:02:42 yeah I'm OK with this one Jun 23 19:04:42 btw instead of using viewpager is it good to use multiple activites (probably quite alot of activities) to use markdown Jun 23 19:04:59 and use button to go to next activity if content of a page is finished. Jun 23 19:06:33 DarkChaoz … i think maybe its time to step back and start reading about fundamentals Jun 23 19:07:28 maybe.. Jun 23 19:07:58 i'm guessing nobody has any ideas about the problems I'm having with ART? Jun 23 19:07:59 DarkChaoz: that's what a fragmentpageradapter is for Jun 23 19:08:05 im just make one app then ditch androids Jun 23 19:08:10 *android Jun 23 19:08:47 will it work with loading markdown content rather than use layout? Jun 23 19:13:20 So I'm working on AOSP, and SystemUI is crashing from a security exception. Here's the logcat: http://pastebin.com/jvLiaFqc Jun 23 19:13:52 It crashes trying to register a listener through the notification manager Jun 23 19:14:28 Does anyone know what I can do or check to see what's up? Jun 23 19:16:45 til android doesnt have native map widget Jun 23 19:18:36 you can integrate Google Maps Jun 23 19:18:47 oh yes Jun 23 19:18:48 there is a template activity for Google Maps in Android Studio Jun 23 19:22:39 if I wanted to show a progress bar while I have an async retrofit call going, and want to make sure that it still shows if I rotate the device while the async task is running, how might I do that? Jun 23 19:34:35 I'm still stuck with reading camera pictures :/ Jun 23 19:41:34 damnit android, why must you insert spaces when pasting... Jun 23 19:41:55 hello, if i were to use IMEI as a soft link between users and an app, how would i approach adding/sending things to other users Jun 23 19:42:00 i originally wanted to use phone number, but some users may be reluctant on providing that data Jun 23 19:42:14 Does anyone know if the _ID of ContactsContract.Contacts maps to CONTACT_ID of RawContact/RawContactEntties? Jun 23 19:42:38 im trying to keep in mind cross-platformness between mobile devices here Jun 23 19:42:52 whats wrong with a uuid/guid? Jun 23 19:43:02 i dont want to use something specific to android Jun 23 19:43:36 uuid/guid aren't specific to anything Jun 23 19:43:48 smallfoot-: okay, elaborate Jun 23 19:43:57 just generate a random string? Jun 23 19:44:00 yes. Jun 23 19:44:07 like 21EC2020-3AEA-4069-A2DD-08002B30309D Jun 23 19:44:08 and? Jun 23 19:44:16 ya i know what a guid is Jun 23 19:44:19 then use that Jun 23 19:44:26 ..how Jun 23 19:44:36 idk Jun 23 19:44:41 i see Jun 23 19:45:15 im a user, i have a guid assigned to me Jun 23 19:45:20 and i want to use this app with my friend Jun 23 19:45:42 im not sure how this would work.. Jun 23 19:45:57 how would it be different from IMEI? Jun 23 19:46:01 i dont know. Jun 23 19:46:14 thats what i came in here and asked Jun 23 19:46:24 how would i approach adding/sending to users. Jun 23 19:46:48 i cant think of a non-intrusive method.. basically need people to signup Jun 23 19:47:10 i wanted to leverage peoples contacts lists.. which was the motivation for using numbers Jun 23 19:52:08 Hello, I am getting a " The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building" in eclipse. How shall I fix it? Jun 23 19:56:37 long prepareSpacesAroundPaste(int min, int max, CharSequence paste) { Jun 23 19:56:39 oh how I hate thee Jun 23 19:56:50 there goes my security :( Jun 23 19:59:09 vedu: Eclipse can't find your jdk, you need to point it to it Jun 23 20:01:55 christo_m, you could hash their phone numbers too Jun 23 20:03:19 i guess that works until you change your # :) Jun 23 20:04:49 Ok, I can't read the pictures inside DCIM/Camera, but I can overwrite their contents with text and then I can open them :/ WTF!!! Jun 23 20:05:01 write-only lol Jun 23 20:06:49 I don't get it, why is that happening? I mean 7000 bytes and reads 0 (or 4...), but if I write to it, everything works Jun 23 20:07:05 Doesn't make sense to me Jun 23 20:07:23 yiati: how can I do that. I have been searching "project preferences" and "settings" but no avail. Jun 23 20:08:28 Hi Guys , My Voice input does not work , may it be disabled ? Jun 23 20:08:30 Adyrhan: are you saying you can't read it? Or you just get a short read? Jun 23 20:08:42 short reads should be expected.. Jun 23 20:09:18 a short read of -1 by FileInputStream.read() ? Jun 23 20:09:26 I think that was the array version Jun 23 20:09:34 you said you sometimes get 4 bytes Jun 23 20:09:40 which implies that you are able to read from the file Jun 23 20:10:34 not from file, those bytes arent in the file XD Jun 23 20:11:20 I mean, when I find this out I'll laught a lot, but man this is incredible Jun 23 20:11:56 log the full path of the file you're trying to read, to double-check that you've got the correct path Jun 23 20:12:03 also, check File.exists() Jun 23 20:12:19 The usual case when I run the code here http://stackoverflow.com/questions/24372679/reading-from-dcim-camera-folder-not-working Jun 23 20:12:25 is getting -1 (end of file) Jun 23 20:12:37 but sometimes, 4 bytes come from I don't know where lol Jun 23 20:14:50 vedu: Google "eclipse JDK path" and it should help your avail Jun 23 20:15:18 "settings" is pretty broad for the entire internet Jun 23 20:17:17 yiati: I was looking on eclipse. Anyway I found it Jun 23 20:17:25 cool Jun 23 20:27:14 Does anyone know if the _ID of ContactsContract.Contacts always maps to CONTACT_ID of RawContact/RawContactEntties? Jun 23 20:28:26 JesusFreke I'm starting to believe that I'm not allowed to read a picture file taken from the camera :/ does this path look good to you? /storage/emulated/0/DCIM/Camera/IMG_20140623_125853.jpg Jun 23 20:31:00 lasserix that stuff is a mess :) Jun 23 20:31:34 ^ Jun 23 20:31:40 g00s: yeah seriousily, problem is i was checking about state and starred a contact and it made a new contact (with a new contact id) for the existing contact, in RawContacts Jun 23 20:32:23 yay, just got 4.4.4 on my Nexus 7 (1st gen) Jun 23 20:33:21 but not available on my Nexus 5 yet Jun 23 20:33:50 i think its "just" ssl fixes Jun 23 20:34:30 yeah, thats what i heard Jun 23 20:34:35 it was just a 1.8 mb update Jun 23 20:34:48 but next week is Android developer conference at Google, so maybe they release Android 4.5 Jun 23 20:35:13 5.0 Jun 23 20:35:20 maybe Jun 23 20:35:28 I'm enough of kitkat xD Jun 23 20:35:37 there is a session "whats new in android" it would be lame if they just talked about 4.3 & 4.4 :D Jun 23 20:35:42 Too much chocolate :P Jun 23 20:36:01 Once you go kit-kat you never get a break Jun 23 20:36:03 well, if they make 4.5 or 5.0 you can expect ART to replace Dalvik Jun 23 20:36:41 sigh.... I/O is this wednesday. it's also not just an Android developer conference. Jun 23 20:36:53 will be interesting to see if art is more energy efficient than dvm Jun 23 20:37:14 dhodge_ yeah, there are only a few android sessions. its also only 2 days Jun 23 20:37:22 there are quite a few interesting sandbox sessions Jun 23 20:37:31 They did put some easter eggs out already about 5.0 Jun 23 20:37:31 http://bgr.com/2014/06/12/android-5-0-teased-in-google-now/ Jun 23 20:37:32 but if you aren't there … :( Jun 23 20:37:39 yeah, i was just pointing out most of what smallfoot- said was wrong Jun 23 20:37:45 its too bad they didn't release any changelogs for 4.4.3 an 4.4.4 Jun 23 20:38:08 i thought there was an api diff for 4.4.3 Jun 23 20:38:22 4.4.4 is just a security update Jun 23 20:38:34 g00s, yeah, there is... and its huge, lol Jun 23 20:38:37 And delete all those annoying permissions things, after-all, it upsets users, and makes developers unhappy. Jun 23 20:40:15 I get the following error Jun 23 20:40:16 syntax error on token "-", , expected Jun 23 20:40:17 any help Jun 23 20:40:45 hard to help you Jun 23 20:41:53 SpeedEvil yeah, stupid permissions! whoever though the trend in OS security went from protecting users from other (malicious) users to protecting apps from (other) malicious apps - dumbasses ! Jun 23 20:44:03 SpeedEvil i'm guessing you were being sarcastic XD Jun 23 20:44:25 wow, the new icons in Android 5.0 look awful Jun 23 20:44:25 Just a little. Jun 23 20:44:40 phew, it was so subtle i thought i misread Jun 23 20:44:58 Android permission is broken, and there needs to be a seperate 'ad' permission - with an android ad channel. Jun 23 20:45:04 (from a users perspective) Jun 23 20:45:16 So that random apps don't need internet permission Jun 23 20:45:26 hm, interesting Jun 23 20:45:29 hey guys anyone use android studio? i keep getting this message on linux This does not look like an Android Studio directory. Jun 23 20:45:45 when trying to run ./update_studio.sh Jun 23 20:46:22 I love KitKat 4.4, its great... its perfect. but I hear 5.0 will be ugly, the new icons look horrible! Jun 23 20:46:44 i like holo, i hope quantum doesn't strip that personality Jun 23 20:46:54 yeah, I like Holo too Jun 23 20:47:05 maybe Google is looking too much at Windows 8 and iOS 7, idk Jun 23 20:47:11 the new icons are so ugly Jun 23 20:47:17 hm no - duarte wanted to move beyond flat Jun 23 20:47:23 WP is very flat Jun 23 20:47:27 syntax error on token "-", , expected Jun 23 20:47:30 please help Jun 23 20:47:35 in R.java Jun 23 20:47:37 of course, i find it easy to make flat icons so thats great with me XD Jun 23 20:47:56 ajoul, R is generated Jun 23 20:48:09 I know Jun 23 20:48:13 but it gives me an error Jun 23 20:48:15 for no fucking reason Jun 23 20:48:20 impossible Jun 23 20:48:20 did you put a hypen in some XML id ? Jun 23 20:48:32 g00s: possibly let me check Jun 23 20:49:07 somehow a hypen got sucked into the Java R file Jun 23 20:49:07 thanks g00s Jun 23 20:49:13 yw ;) Jun 23 20:50:55 Anyone happen to have a good indepth article on RxJava + Retrofit? Jun 23 20:51:22 hm, plenty on RxJava alone ... Jun 23 20:51:28 maybe jake knows Jun 23 21:00:29 Hello All, on my Nexus 4, when i go to Developer -> Select Debug App, i only see one app in the list "NZB Unity" why dont i see the system apps and others? Jun 23 21:00:42 shekibobo: i dont think there's anything special about how retrofit interacts with rxjava. it just spits out an observable, and then you do things with it Jun 23 21:01:28 jake knows Jun 23 21:01:40 frankdoyle: yeah, I guess I'm just looking for something that works in the context of using retrofit. kind of at the point of just trying to wrap my head around observables and how to observe them Jun 23 21:01:48 you subscribe to them Jun 23 21:02:10 Ok, seems using FileInputStream without BufferedInputStream was causing some problems Jun 23 21:02:24 Now I can read the DAMN file !!!! Jun 23 21:02:36 Champagne for everyone lol Jun 23 21:02:44 Adyrhan: What was causing problems? Jun 23 21:02:46 And how? Jun 23 21:02:56 anyone tried scaloid? Jun 23 21:02:59 shekibobo: I'd suggest taking retrofit out of the equation for the moment. once you "get it" , youll see that retrofit doesn't do anything magical with observables Jun 23 21:03:07 Jaycob: I'm just doing so. Jun 23 21:03:09 JakeWharton: Yeah, I get that, but I don't quite grok the subscription process just yet. Kind of hoping to find something specific to my use case to help make it clear Jun 23 21:03:25 flan3002, how do you like it? Jun 23 21:03:42 shekibobo: that's all RxJava. Retrofit just creates an observable Jun 23 21:03:56 Jaycob: It looks pretty awesome. I especially like the UI expressiveness and the preferences. Jun 23 21:04:14 Jaycob: But I'm still setting it up. :/ Jun 23 21:04:19 How I don't know yet. But the problem was reading a picture of 7kb was a problem for FileInputStream.read() I used the BufferedInputStream.read(byte]) instead Jun 23 21:04:42 * BufferedInputStream.read(byte[] data) Jun 23 21:04:47 Adyrhan: Well, IO should be buffered for better perfomance. That's nothing new. Jun 23 21:04:51 flan3002, ok! sounds cool. I'd been wanting to try it for some time too as programming with java after some scala just always feels like such a pain Jun 23 21:05:02 I've* Jun 23 21:05:19 are the concepts similar though with the java sdk? Jun 23 21:05:20 but this is the first time I know you may not read the file at all, getting a EndOfFile (-1 value) Jun 23 21:05:38 Jaycob: I'm trying to install the Scala plugin into AS. It doesn't even load the search results due to my slow connection. :( Jun 23 21:06:04 Adyrhan: You're probably doing something wrong. Let me give you a working method. Jun 23 21:07:28 alright Jun 23 21:07:42 Thx! Jun 23 21:08:05 flan3002, android studio doesn't support non-android languages Jun 23 21:08:08 i.e. no scala Jun 23 21:08:34 pfn: It doesn't? But Scala can be used on Android. Jun 23 21:08:49 sure, it can, but it's a non-android approved language Jun 23 21:08:59 isn't android studio just eclipse though Jun 23 21:09:11 you can run jython, clojure, jruby, kotlin, etc. on android, but you won't find android studio supporting any of those Jun 23 21:09:11 android studio? Jun 23 21:09:15 Jaycob, no Jun 23 21:09:20 thats intellij idea Jun 23 21:09:22 flan3002: it doesn't support even html highlight Jun 23 21:09:35 pfn: But it's based on IntelliJ, which does support Scala. Jun 23 21:09:43 oh right Jun 23 21:09:44 yeah, but AS is a limited edition Jun 23 21:09:55 flan3002, right, but android studio is not intellij Jun 23 21:09:57 intellij has all and AS is just a flavour Jun 23 21:10:06 android studio is a limited intellij, as noted Jun 23 21:10:12 Adyrhan: I wrote these file IO methods and they've worked. Try them. https://gist.github.com/anonymous/67414bc72a6a7325f939 Jun 23 21:10:44 flan3002 thanks, I'll give them a look :) Jun 23 21:11:32 java.lang.NoClassDefFoundError: retrofit.RxSupport$1 Jun 23 21:11:36 anyone seen that one? Jun 23 21:11:52 you have the wrong version of RxJava or Retrofit Jun 23 21:11:54 or both Jun 23 21:12:35 Jaycob, as for scala... scala works fine on android Jun 23 21:12:54 thought so Jun 23 21:13:05 runs on jvm Jun 23 21:13:11 oh, as for scaloid, I dunno, macroid seems hotter Jun 23 21:13:24 Yeah. But I absolutely don't understand why AS won't support Scala. Jun 23 21:13:35 It's not like it'd be any effort... Jun 23 21:13:42 JakeWharton: retrofit:1.6.+, rxjava-android:0.10.+ Jun 23 21:13:46 flan3002, because as is a limited intellij Jun 23 21:13:47 why else Jun 23 21:13:51 flan3002: it is not Jun 23 21:13:55 like pfn said, limited edition Jun 23 21:13:58 use 0.19.1 Jun 23 21:13:59 pfn: But why is it a limited edition? Jun 23 21:14:04 pfn, so hold on I could use Scala with a basic android project with no libraries? Jun 23 21:14:05 0.10 is ancient Jun 23 21:14:09 flan3002: let me explain it easy Jun 23 21:14:11 because that's the whole android studio raison detre Jun 23 21:14:18 Jaycob, sure Jun 23 21:14:23 hot damn Jun 23 21:14:31 Jaycob: Well, you'll have the Scala runtime... Jun 23 21:14:33 Intellij is a big IDE for java, which also support everything else Jun 23 21:14:38 it is not cheap Jun 23 21:14:44 it's free Jun 23 21:14:45 Community Edition is. Jun 23 21:14:47 Foxandxss, intellij is available as a free edition Jun 23 21:14:57 yes, but is not as good as the paid version Jun 23 21:15:06 in what manner? Jun 23 21:15:09 once again, paid version only adds extraneous features Jun 23 21:15:15 the core functionality remains the same Jun 23 21:15:16 Sure. So? Jun 23 21:15:19 why the hell haven't I used scala then... for some reason I automatically assumed it wouldn't work Jun 23 21:15:25 ultimate adds javascript, markdown, json, and some more languages support Jun 23 21:15:32 Jaycob, well, it doesn't work out of the box Jun 23 21:15:34 JakeWharton: thanks, not sure how I got that wrong... Jun 23 21:16:03 paid edition has more tools Jun 23 21:16:08 pfn, what do you mean? Jun 23 21:16:10 also support web development Jun 23 21:16:12 or java EE Jun 23 21:16:22 Foxandxss, right, not like most people need that Jun 23 21:16:40 flan3002: anyway, there are flavours, rubymine for ruby, AS for android, pycharm for python, phpstorm for php and so on Jun 23 21:16:41 also, personal licenses for IJ really aren't that bad Jun 23 21:16:56 so AS is a flavour so it is a "limited edition" of intellij Jun 23 21:16:58 just for android Jun 23 21:17:09 Just for Java on Android. Jun 23 21:17:13 It seems... Jun 23 21:17:13 indeed Jun 23 21:17:22 as I said, it won't work for cordova either Jun 23 21:17:22 * pfn uses intellij Jun 23 21:17:25 scala on android, no problem Jun 23 21:17:34 * flan3002 sighs. Jun 23 21:17:36 I use webstorm, AS, rubymine... Jun 23 21:17:45 maybe an intellij license is cheaper :P Jun 23 21:18:02 Yeah, I just downloaded AS, always been using IJ for Java and Vim for the rest... Jun 23 21:18:05 well, android studio also has features not found in intellij, however Jun 23 21:18:19 i.e. all the more bleeding edge android features in android studio are not available in intellij Jun 23 21:18:22 yeah, flavors has good stuff Jun 23 21:18:31 * pfn shrugs Jun 23 21:18:40 it's easy to get free licenses of intellij ultimate in any case Jun 23 21:18:41 that is why I use webstorm, more angular stuff, at least before everyone else Jun 23 21:18:57 pfn: for OS projects, they look a lot, meh Jun 23 21:19:05 Yeah, I got a free license via their open source licensing thing, for smali Jun 23 21:19:13 I have so many open source projects... Jun 23 21:19:19 JesusFreke: is that a big project? Jun 23 21:19:21 anything on github is eligible Jun 23 21:19:22 pfn: so do I Jun 23 21:19:35 practically Jun 23 21:19:43 I thought it needed a big project Jun 23 21:19:45 * Foxandxss checks Jun 23 21:19:54 Foxandxss: depends on what you mean by big. In terms of people, it's primarily a 1-man project (with some contributions from others) Jun 23 21:20:05 and iirc, around 30k lines or so Jun 23 21:20:11 I see Jun 23 21:20:14 personal projects, no Jun 23 21:20:20 I collaborate with big ones Jun 23 21:20:24 maybe I could use that Jun 23 21:20:34 3000 lines in android-sdk-plugin Jun 23 21:20:38 and I got my intellij license off that Jun 23 21:20:44 The license is granted per project.. so it would be a license that anyone working on that project could use Jun 23 21:20:47 (for work on that project) Jun 23 21:21:27 anyway, I still have time on my licenses Jun 23 21:21:37 I've actually been toying with the idea (hah!) of just buying a personal license. It's a great product, and I want to support it. Jun 23 21:22:01 Adyrhan: Working? Jun 23 21:22:20 flan3002 you were right, its not that using bufferedinputstream was the solution (which helped me change the code a bit and have it working) Jun 23 21:22:56 is that I goofed by casting the returned value in the wrong place XD Jun 23 21:22:57 Adyrhan: out of curiosity, what was the problem? Jun 23 21:23:00 ah Jun 23 21:23:02 look Jun 23 21:23:19 Adyrhan: Note that my code does not use buffering because if you want to read the whole file, you need to allocate memory for the whole file anyways. Jun 23 21:23:20 JakeWharton: hey, butter knife is really cool. Helps a non java developer to not get crazy :P Jun 23 21:23:28 haha Jun 23 21:23:31 i feel the same way Jun 23 21:23:34 how do i capture packets on my android device for debugging? Jun 23 21:23:49 this stackoverflow.com/questions/24372679/reading-from-dcim-camera-folder-not-working Jun 23 21:23:53 whomp: use a proxy Jun 23 21:24:01 we use charles. it works well Jun 23 21:24:53 First I declared the var as byte... that was an int in my head, which I fixed later, but I had another cast in the while statement Jun 23 21:25:24 jaynewstrom, how do you get charles to sniff packets from the phone? right now, it's just getting them from my computer Jun 23 21:25:35 and that one was eating me and I didn't see it e.e Jun 23 21:25:41 jaynewstrom is charles just http/https proxy ? Jun 23 21:25:50 g00s: yes. Jun 23 21:25:51 (can i just be a plain tcp proxy) Jun 23 21:26:23 can *it act as a tcp proxy ? Jun 23 21:26:38 for plain tcp, just use sniffer Jun 23 21:26:39 g00s: not sure actually. I haven't needed it for straight tcp yet Jun 23 21:26:47 and no, it doesn't work as a plain tcp proxy Jun 23 21:26:49 run tcpdump on your router? :) Jun 23 21:26:56 JesusFreke, pretty much Jun 23 21:27:02 sometimes just going out taking fresh air ... refreshes my eyes framebufer :P Jun 23 21:27:03 there's no such thing as a plain "tcp proxy" Jun 23 21:27:08 unless it's running on your router Jun 23 21:27:12 and that's basically sniffing packets Jun 23 21:27:25 appcompat is backwards-inclusive, right? If I use v7, are there any circumstances in which i'd need v4 as well? Jun 23 21:27:42 pfn of course there is, I use it with wireshark Jun 23 21:27:45 If you have root access (i.e. emulator..) you should be able to run tcpdump on the device itself Jun 23 21:27:49 but the last one i used was windows Jun 23 21:27:52 at least, I think it requires root access Jun 23 21:28:20 urghh, my quest to find a solution to use markdown and viewpager is to no success so far Jun 23 21:28:27 at least it was all super handy at work, when you can't just 'play with the router' :) Jun 23 21:28:48 g00s, use "what" Jun 23 21:28:58 DarkChaoz: Still...? Screw Markdown if it's blocking you. Jun 23 21:29:03 d0de, wrong Jun 23 21:29:16 d0de, the various libraries are not cumulative nor combinations Jun 23 21:29:19 they are discrete libraries Jun 23 21:30:30 pfn, OK. I was using v4, I need to use features in v7. But when I added v7, I got build errors about duplicate resources, so I removed v4 and things seem to work. Am I asking for problems down the road by not including v4 if I was relying on it previously? Jun 23 21:31:31 d0de don't think so, v7 is including v4 Jun 23 21:34:50 mattblang, ok, that's the impression I got but I wasnt sure Jun 23 21:35:23 d0de are you not using gradle? Jun 23 21:35:53 jaynewstrom, how do you deal with https traffic? Jun 23 21:36:18 mattblang, I don't think so, I don't even know what that is! I'll google it now Jun 23 21:36:20 whomp_: that's a bit more complicated... you have to install certificates and whatnot. it's easier to debug with non https traffic Jun 23 21:36:28 jaynewstrom, i have to do https Jun 23 21:36:31 d0de are using eclipse or android studio Jun 23 21:36:37 would it be easier with an emulator or something? Jun 23 21:36:43 mattblang, eclipse Jun 23 21:36:52 whomp_: in production of course you have to use https. can't you debug without though? Jun 23 21:36:52 d0de i would definitely recommend checking out android studio Jun 23 21:36:57 for no better reason that I already had it installed when I began learning android Jun 23 21:37:01 jaynewstrom, no Jun 23 21:37:14 mattblang, could you give me a very brief overview of the advantages? Jun 23 21:37:25 i suppose flan3002 i should stop android alltogether and learn first Jun 23 21:37:43 DarkChaoz: If the Java part is your problem, that might be reasonable to do. Jun 23 21:37:46 whomp_: i've never actually set it up to do https traffic. i just know it's possible. Jun 23 21:37:50 looks like im getting nowhere in terms of content options Jun 23 21:37:58 think is Firefox OS kills Android :d Jun 23 21:38:08 jaynewstrom, ok ty Jun 23 21:38:21 d0de intellij, which it is based on, rocks. it uses the gradle build system, which will handle conflicts like you ran into for you. Jun 23 21:39:06 mattblang, that does sound good, I've stuggled with dependency issues in eclipse. Even just getting the v7 library set up properly was a bit of a fuss Jun 23 21:39:12 isn't java our problem actually? :P Jun 23 21:39:32 I hope they announce something like swift on google io :P Jun 23 21:39:40 oh gawd i hope not Jun 23 21:39:48 foxandxss a new language for android development, swiftER Jun 23 21:40:07 heh Jun 23 21:40:16 I have a button in my ActionBar which starts a timer process, but it needs a number input from the user after the user taps it. What's the best way to present that input? I can think of a few possible ways, but I don't know the standard way Jun 23 21:40:17 thought of another bad practice xD.. storing data in multiple tabs in textview xD Jun 23 21:40:46 I'm thinking of something vaguely analogous to "prompt" in javascript Jun 23 21:41:53 d0de: dialogfragment Jun 23 21:42:02 yeah, DialogFragment Jun 23 21:42:27 yay, there is a log of *Fragment stuff Jun 23 21:42:36 lot* Jun 23 21:42:40 damn, forgot how to write today Jun 23 21:42:43 bankai_au, smallfoot, thanks. I haven't used fragments before, is there anything I should know before diving in? Jun 23 21:43:03 yeah, fragments are great Jun 23 21:43:07 you should use them :) Jun 23 21:43:21 they are great for composing many indenpendent fragment into one view Jun 23 21:43:27 and they are great for code re-use Jun 23 21:43:44 and they are great for tablets Jun 23 21:44:04 they're Grrrrrrreat ! Jun 23 21:44:16 if you're going to point out the good, point out the bad too Jun 23 21:44:30 OK. I'm new to android development. So far I've written all the internal logic for my app but I haven't really worked on the interface at all yet, other than what's necessary for testing Jun 23 21:44:56 lol flan3002 similar scenario to me :p http://stackoverflow.com/questions/12295066/android-how-to-implement-viewpager-and-views-in-single-xml-file Jun 23 21:45:25 bankai_au you're egging me on aren't you :D Jun 23 21:45:47 i was waitin' ;) Jun 23 21:46:37 i had a long debate with romainguy about fragments a few years ago Jun 23 21:46:49 who won ? Jun 23 21:46:55 not so much the API / implementation, but what they were supposed to bring wrt to responsive design Jun 23 21:47:03 i think i did, as evidence suggests Jun 23 21:47:26 responsive web design is more than just scaling things Jun 23 21:47:36 it could also mean alternative information architecture Jun 23 21:47:48 i didn't think fragments went far enough in that area; they were too low level Jun 23 21:49:23 i think - still to this day, writing for a phone and a tablet are almost 2 different platforms Jun 23 21:49:27 even if your OS handles both Jun 23 21:49:33 i group tablets into laptops Jun 23 21:49:42 mobiles / wearables a different segment Jun 23 21:49:48 ^ did i start this? lol Jun 23 21:49:51 how is input passed from a fragment to the parent Activity? intents? Jun 23 21:50:02 How do I align an element to the center of a vertical axis Jun 23 21:50:08 xml element Jun 23 21:50:20 d0de: callbacks Jun 23 21:50:28 or bundles Jun 23 21:50:39 I have an image and a text next to it on a relative layout. The picture (ImageView) starts from the top left corner displaying uneven compared to the text Jun 23 21:50:58 how can I specify that I want the ImageView aligned in the cetner Jun 23 21:52:53 g00s: do you happen to know? Jun 23 21:55:11 bankai_au yes you started it :D hey still to this day, how many great apps work on android tablets. i don't mean games which are immersive and can just scale to the whole screen Jun 23 21:55:21 i should say, tablet optimized Jun 23 21:55:28 man if its happening, its taking forever Jun 23 21:56:28 but i think that situation is multifactorial Jun 23 22:00:51 tablet optimized? hundreds of apps have layouts and workflows optimized around tablets Jun 23 22:03:45 of course there are "hundreds" out of 1.2 M? Jun 23 22:03:49 for example, it took twitter until oct 2013 to put out a tablet -optimized app Jun 23 22:04:09 ok, thousands or hundreds of thousands Jun 23 22:04:18 I can only think of hundreds of apps to begin with Jun 23 22:04:21 everything else is garbage Jun 23 22:06:11 Twitters apps are meh Jun 23 22:06:17 anyhow , the crux of the argument i had with romain - didn't really have much to do with android /per se/ but that mobile and tablet form factors are often /different use cases/. for example, you may view your stocks on a phone, but only trade on a tablet / latop Jun 23 22:06:22 even though I like twitter Jun 23 22:06:41 so it was more along the lines of the folly of trying to make one app, cover different use cases, on phone and tablet Jun 23 22:07:04 or i may view a spreadsheet on a phone, but compose one on a tablet, etc Jun 23 22:07:59 if I used Adobe lightroom on a tablet, i'd expect almost the same functionality Jun 23 22:08:40 i guess they got off their lazy asses and made it pretty on Surface Pro finally :) Jun 23 22:08:46 yuck Jun 23 22:08:50 that's the worst idea ever Jun 23 22:08:52 but it was just resizing some assets for the most part Jun 23 22:08:58 e.g. see ipad and iphone apps prior to universal apps Jun 23 22:09:00 fucking yuck Jun 23 22:09:23 you might not, but the vast majority of people want what you don't want Jun 23 22:09:47 you really should count yourself in the niche and really expect to have none of your needs met, ever Jun 23 22:11:44 well, i guess for 'consumption' that is a very large group Jun 23 22:11:52 maybe productivity is a niche Jun 23 22:12:09 Can a remote service be started by passing the name of the service in the intent? Jun 23 22:13:57 i don't think the situation is much different than the iPad. i see lots of devs have separate apps for iphone / ipad. looking at the OMNI catalog, almost all their apps are like this Jun 23 22:14:13 they have mac / ipad / iphone Jun 23 22:14:29 i guess people have different expectations across these form factors Jun 23 22:14:56 and you can't just 'scale up' … even with fragments Jun 23 22:14:58 ok, i'm done Jun 23 22:18:14 Better to be a good dev, and do a app that works on all devices Jun 23 22:19:21 shouldn't be works than supporting IE Jun 23 22:20:11 Foxandxss that actually goes against basic software ecomomics; depending on your business model its better to acquire share in one place than be very wobbly everywhere :) so make a good app for platform X before putting out crap for x / y / z Jun 23 22:20:33 nah Jun 23 22:20:37 you can't iterate as quickly with more inertia ;) Jun 23 22:20:38 is not as complex as that Jun 23 22:20:50 (talking about normal apps, not games) Jun 23 22:21:00 just adapt your assets and templates and you're good to go Jun 23 22:23:58 it could be too, that apple devs wanted to have separate products for iphone / ios because pricing wise, it was a race to the bottom. people were expecting phone apps for free Jun 23 22:24:22 they wanted to reset pricing expectations on that larger form factor Jun 23 22:24:49 a complex situation, lots of angles. Jun 23 22:25:07 that is true Jun 23 22:25:08 oops, separate products for iphone / ipad Jun 23 22:25:45 yeah, I understood :P Jun 23 22:28:44 Ayone know the best way to debug an OpenGLES crash on ICS with no ICS device available? Does AVD work with OpenGLES? Genymotion has no ICS image :( Jun 23 22:29:32 snowpong oh yeah, i noticed no 4.0 images for geny Jun 23 22:31:13 g00s: very annoying really Jun 23 22:32:00 Foxandxss oh, my sw economics argument is non-web centric in that regards; for example you are porting C++ to multiple platforms; sure web is a bit different here Jun 23 22:32:50 yeah Jun 23 22:33:04 Capers Jones talks about those things here http://www.amazon.com/Estimating-Software-Costs-Bringing-Realism/dp/0071483004 Jun 23 22:33:09 but its not web-centric Jun 23 22:33:16 2007 Jun 23 22:33:31 well, software costs is not my thing Jun 23 22:38:41 Hi Jun 23 22:39:36 Is there any sqlite editors for eclipse? Jun 23 22:39:50 darkchaoz hm, motodevstudio had one Jun 23 22:39:59 does full blown intellij have one ? Jun 23 22:40:11 yes Jun 23 22:40:33 oh cool http://blog.jetbrains.com/idea/2013/10/intellij-idea-13-eap-and-android-sqlite-database/ Jun 23 22:40:37 Im gunna store all the large content as db Jun 23 22:40:50 And god knows where i'll go from there Jun 23 22:41:05 "It works in IntelliJ IDEA Ultimate Edition only" Jun 23 22:41:07 :( Jun 23 22:41:27 uh, that is not good :P Jun 23 22:41:28 Have like 8 tables lol Jun 23 22:41:39 rubymine as support for sqlite, but I guess AS being free, doesn't Jun 23 22:43:04 Id and text all i need to store revision content? Jun 23 22:43:04 Cuz thats what i done atm Jun 23 22:43:18 I'll do titles seperately as textview heading Jun 23 22:45:02 I killed chat :l Jun 23 22:45:17 Chat crash alerr! Jun 23 22:45:26 *alert! :/ Jun 23 22:53:16 Foxandxss hows ya java learning.coming.along Jun 23 22:53:28 my java is good Jun 23 22:53:38 Cool Jun 23 22:53:43 always were Jun 23 22:53:47 I am learning android, not java :P Jun 23 22:53:55 hadn't time to look it more Jun 23 22:54:05 Oh then i must have mixed up with someone else then Jun 23 22:54:11 nah Jun 23 22:54:14 Ahh xD Jun 23 22:54:33 where are you from? Jun 23 22:54:40 My only obstacle with my app is the content viewpager Jun 23 22:54:47 England Jun 23 22:55:02 TeamUK Jun 23 22:55:03 oh, that was typical spanish answer :P Jun 23 22:55:11 lol Jun 23 22:55:13 I know nothing about viewpager Jun 23 22:55:32 I got a simple one running Jun 23 22:56:04 But found out that its bad practice to have like 25 xml layout files being used by mulitple viewpager xD Jun 23 22:56:15 So im finding a better solution :p Jun 23 22:56:28 ya, that sounds bad Jun 23 22:57:11 So im gunna try store all the data on sqlite db and use viewpager if thats possible Jun 23 22:57:46 And pull certain content on the page Jun 23 22:58:13 if that makes sense, go ahead Jun 23 22:58:56 After this app im gunna ditch android for pretty long time lol Jun 23 22:59:11 hah Jun 23 23:00:15 So i managed to do a splash screen, context and listview menus working Jun 23 23:00:35 The core element of the app is viewpager content thats fustrating. Jun 23 23:04:28 http://lpaste.net/106195 <- why is no music play? Jun 23 23:06:54 Is phpforandroid any good Jun 23 23:07:18 uh php :P Jun 23 23:07:42 Its a lib i think Jun 23 23:10:03 noone here that used the mediaplayer? Jun 23 23:12:19 roth_philip do you get errors in logcat? Jun 23 23:15:04 adyrhan: i cant manage to filter right now, if i use application name the log is empty, if i dont filter there is to much on all verbosity levels Jun 23 23:15:56 http://lpaste.net/106195 <- added some relevant sutff Jun 23 23:16:00 i think Jun 23 23:17:51 That seems to be playing :/ Jun 23 23:17:58 or at least feeding the audio buffer Jun 23 23:19:18 roth_philip have you tried with another file? Jun 23 23:25:43 there is no specific sound setting for this...? i can ehar spotify. Jun 23 23:44:33 http://pastebin.com/EJ98yzK8 on line 30 i get null pointer exception is it because of the ( it.remove) seems if i move the code above the while it works Jun 23 23:59:43 g00s: tinkered any with orbot? Jun 24 00:17:09 How can I display only part of an image. Like crop it out? Jun 24 00:17:22 I am trying to make a progress bar Jun 24 00:17:31 somewhat Jun 24 00:17:51 progress bar or rating system, but because it is at irregular shape and hard to interface Jun 24 00:17:54 I just display it as image view Jun 24 00:18:22 and planning on making a transparent background while I display on top of it the same image but cropped out at some % Jun 24 00:18:27 how would I go about to do this? Jun 24 00:18:34 any suggestions Jun 24 00:19:42 ajoul: draw it into a canvas, crop the canvas, turn the canvas into a bitmap, set the image view from bitmap Jun 24 00:20:21 jaspertheghost: row.get("jid") probaly the problem Jun 24 00:20:37 lasserix: that is a good idea, but somewhat bad for maintenance, if lets say I want to display intervals from 1% to 100% I would have to create 100 images Jun 24 00:20:54 heh Jun 24 00:21:01 i know thats the problem (which is why i commented the line lol) Jun 24 00:21:35 lasserix: when you say draw it into canvas you mean photoshop canvas or is there such an android element Jun 24 00:21:35 wel dont add it if its null Jun 24 00:21:45 or gaurentee that it not be null before trieving it Jun 24 00:21:51 ajoul: in code not photoshop Jun 24 00:22:37 lasserix: can you suggest a tutorial or guide that explains more? Jun 24 00:23:06 does anyone have experience developing for both android and ios? Jun 24 00:23:30 is apple's xcode sdk that much better than eclipse? from a developer/designer standpoint Jun 24 00:24:11 ajoul oh it seems apparently even easier : http://stackoverflow.com/questions/3846338/how-to-crop-an-image-in-android Jun 24 00:24:44 lasserix: I just came accross layout_weight Jun 24 00:24:46 http://www.chess-ix.com/blog/the-use-of-layout_weight-with-android-layouts/ Jun 24 00:24:50 would that work? Jun 24 00:25:03 dont think so Jun 24 00:25:28 oh Jun 24 00:25:38 could somebody please tell me why this npes? http://pastebin.com/8TMQ236K Jun 24 00:25:47 you could also make a viewgroup (framelayout) with your imageview underneath an empty view with a solid color, Jun 24 00:25:57 then change the width of the view from 0-100 Jun 24 00:26:15 (make sure its match parent match parent, and the imageview is wrap wrap and the framelayout is wrap wrap) Jun 24 00:26:26 but probably if you look at that link the bitmap, created bitmap is the easiest way Jun 24 00:27:08 here is logcat http://pastebin.com/R8FMq0Kg Jun 24 00:27:44 super.onCreate(savedInstanceState); must be first line of onCreate override Jun 24 00:28:22 ie @Override protected void onCreate(Bundle b) { super.onCreate(b); /* code */ } Jun 24 00:29:00 jamesson: that's not a NPE Jun 24 00:38:39 Someone mentioned to me in person, that Android will restart your application after 30 minutes. So that if you click the app icon, it will go to Activity A even though you may have been at Activity C. I'm trying to find any actual documentation on this. Has anyone heard of this? Jun 24 00:40:27 eghdk: as far as I know, the Android OS will kill a backgrounded application if apps in the foreground require the memory, so not necessarily after 30 minutes. If this happens, though, I think the activity stack in that task is recreated when the app is relaunched Jun 24 00:40:56 meaning you would go to Activity C in that case Jun 24 00:41:14 could be wrong here thoug Jun 24 00:41:26 barbs Well I'm having this problem. Activity A > B > C press home, then press app icon. Back at A. Jun 24 00:43:30 does this happen on all phones? Jun 24 00:43:41 I can't seem to always replicate it. Jun 24 00:43:53 It seems different when the app is installed from different places. Jun 24 00:44:08 If I email the apk to myself... it happens every time. Jun 24 00:44:25 that's really weird! Jun 24 00:44:30 If I install it through eclipse, then it also happens. Jun 24 00:46:07 I'd probably want to debug and see what's going on with the app (i.e. when is onCreate() and onDestroy() called for each activity, whether certain activities are started in separate tasks... Jun 24 00:46:16 ) Jun 24 00:46:38 Yeah. I had some acti vity flags. I think I will just remove all of them for now. Jun 24 00:47:25 But if my application dies.But my problem will still be there if the app is killed every 30 minutes. Jun 24 00:47:35 but I'm trying to find proof of this. Jun 24 00:48:04 I've never heard of apps being killed after a certain time, only if the OS needs more memory Jun 24 00:48:05 Sorry... erm. Not that its killed. More of a "if your app hasn't been opened in 30 minutes the app icon will create a new task stack" Jun 24 00:48:18 eghdk: or that. I haven't heard of that either :) Jun 24 00:51:09 I was just able to find this "That means you are using some CLEAR_TOP or finish flag in an intent or in the manifest. Or possibly it has been > 30 minutes since the app was last launched, in which case the system will restart it automatically." But I don't know where this person is getting that 30 minute figure from. Jun 24 00:53:28 is that a SO answer or something? Just trying to figure out the context... Jun 24 00:59:53 How can I display percent of a picture. Is there such an attribute or type of field Jun 24 01:04:32 is it normal to have delays in reciever recieving a msg from its intent Jun 24 01:04:38 if thats the right way to describe it Jun 24 01:08:24 barbs: From Diane hackborn? Jun 24 01:08:47 https://groups.google.com/d/msg/android-developers/d67fbH2uoq4/l0HwYk6tpxIJ Jun 24 01:11:40 hmmmm...this is from 2009, I have a feeling this might've been how they used to kill apps, but they've since changed their policy Jun 24 01:11:46 WHY THE FUCK WOULD YOU NAME SOMETING PROGRESS **BAR** AND HAVE A LOADING CIRCLE BY DEFAULT Jun 24 01:12:11 ajoul, :D Jun 24 01:12:22 ajoul, it's a bent bar! Jun 24 01:12:25 into a circle Jun 24 01:12:59 I am trying to find how to actually make a progress BAR in android and all results have fucking circles in them Jun 24 01:13:34 set the style Jun 24 01:14:14 style="@android:style/Widget.ProgressBar.Horizontal" Jun 24 01:16:39 barbs: why is the width affected when I change my item to progressbar Jun 24 01:20:23 what? Jun 24 01:21:27 does anyone here know how to use mit app inventor Jun 24 01:38:05 hi guys, can someone recommend some good books on learning java, as well as android development? Jun 24 01:45:07 if I want to get data usage for tethering Jun 24 01:45:16 basketball: I do. But I wouldn't use it... Jun 24 01:45:17 do I get it by UID or from a specific interface? Jun 24 01:45:46 eghdk, if i give you my aia will you help me debug something real quick Jun 24 01:45:53 I just printed all the UIDs and I don't see one for "Tethering and Portable Hotspot" Jun 24 01:46:12 brb dinner Jun 24 01:46:16 basketball: Heh. Sorry. You caught me at a bad time. Heading to work. Jun 24 01:46:28 eghdk, ok maybe later Jun 24 01:46:29 therue: check out Thinking in Java, and Big Nerd Ranch Android book Jun 24 01:47:09 thanks shmooz ! :) Jun 24 01:47:43 by the way, how do you guys test your app ? i mean there's so many android devices, new and old, and various brands such as htc, samsung, etc Jun 24 01:48:32 i mean i can see if you're developing an app for a company and the company have access to all the different types of devices for you to test with, but if your'e just an independant app developer Jun 24 01:48:37 wouldn't it be hard? Jun 24 01:49:36 What's testing? Jun 24 01:49:39 I kid :P Jun 24 01:49:51 But the differences aren't too bad these days Jun 24 01:50:07 Well, unless you're using lower level stuff Jun 24 01:51:15 is ConnectivityService available? Jun 24 01:52:08 hehe frankdrey :) but ya i'm still deciding between ios and android Jun 24 01:52:35 android probably has a better future though. considering it's so much more popular everywhere else other than the u.s. Jun 24 01:52:37 Why not both?:p Jun 24 01:52:45 aint nobody got time for that ! Jun 24 01:52:46 lol Jun 24 01:52:46 :D Jun 24 01:53:18 meaning, can one access that class? Jun 24 01:53:35 well i did graduate with a computer science degree and have studied java... but that was many years ago.. so even if i do decide to develop in android, i would have to relearn java all over again :) Jun 24 01:53:44 If you choose iOS prepare to embrace Apple forever Jun 24 01:54:04 you have experience with both? Jun 24 01:54:43 No, just Android, seeing as I don't have a Mac and don't plan on paying $100 / year just to even check it out Jun 24 01:55:37 therue: the emulator emulates different devices Jun 24 01:55:49 i see Jun 24 01:56:53 man, how can I read the data usage just for thethering? Jun 24 01:56:56 *tethering Jun 24 01:57:14 by the way, is it true that monetization on android apps isn't very high? but for free application that live off off advertisement, it's a great platform due to the sheer amount of users Jun 24 01:57:40 sorry DammitJim, for distracting these guys from your more serious questions :) Jun 24 01:57:55 no, it's ok... we all need to have fun ;) Jun 24 01:58:48 it seems that there is no way to get data usage by getting the UID of the "tethering app" Jun 24 02:00:17 by the way, anyone know when Android studio is coming out? should i wait for it at all? actually by the time i relearn java, android studio will probably be out by then lol Jun 24 02:01:45 not sure when it'll come out (maybe they'll announce a stable version at Google IO?), but personally I think it's pretty stable already Jun 24 02:01:50 more stable than eclipse I reckon Jun 24 02:02:51 ah ok Jun 24 02:03:09 i'll start re-learning java now then :) Jun 24 02:03:40 just how much java should i know before i even attempt to start reading on android development? Jun 24 02:05:27 not sure exactly how to quantify an amount of java, but I'd recommend at least knowing about how classes and inheritance are implemented, since you'll be subclassing a lot Jun 24 02:05:33 it doesn't seem that one can get it by using getUidRxBytes Jun 24 02:05:36 am I wrong? Jun 24 02:15:52 java is not *that* hard Jun 24 02:17:42 man, for my life I can't figure out where the data usage for tethering is coming from! Jun 24 02:34:36 does anyone here know how to use mit app inventor Jun 24 02:35:17 basketball if ai is still maintained … i don't think people here use it Jun 24 02:35:39 g00s, do you know a better channel Jun 24 02:35:51 basketball i'm not sure how active it is Jun 24 02:35:59 sorry, i don't know of a channel Jun 24 02:36:55 therue you can get by with the oracle tutorials on syntax, but what you will need to know well is concurrency. no getting around that Jun 24 02:37:41 well, some libraries like rxjava - if you follow the rules - insulate you from concurrency to some degree Jun 24 02:42:12 Has anyone here set up the Android Wear Preview App Jun 24 02:42:23 i was doing some googling, found some good books that a lot of people have been recommending Jun 24 02:42:36 headfirst java, thinking java, core java, effective java Jun 24 02:42:55 i have studied java i the past, so hopefully this re-learn process will go by quickly :) Jun 24 02:43:17 therue you don't need all of those Jun 24 02:43:26 headfirst , TIJ, Core overlap Jun 24 02:43:29 just need to pick one Jun 24 02:43:39 If you did set it up. How long did it take to get your email back after you signed up for the wearable preview app Jun 24 02:43:47 effective java 2e is a different animal; and consider java concurrency in practice Jun 24 02:44:03 definitely read effective java along with one of the previous ones Jun 24 02:44:17 g00s, do you know a better channel Jun 24 02:44:19 thanks man Jun 24 02:44:23 does anyone here know how to use mit app inventor Jun 24 02:44:34 and what tools, sdk, compiler would you recommend? Jun 24 02:44:38 basketball this channel is app dev using java really Jun 24 02:44:51 therue android studio | intellih, gradle Jun 24 02:45:07 i wont be touching on android at all yet though Jun 24 02:45:14 no matter right? Jun 24 02:45:17 wont matter i mean Jun 24 02:45:19 :) Jun 24 02:45:28 android is java 7-ish so Jun 24 02:46:20 man, so there is no way to get data usage just for the tethering? Jun 24 02:46:32 DammitJim the carrier may do funny accounting on that Jun 24 02:46:50 that's alright... Jun 24 02:50:49 is there a way to read the /proc/net/xt_qtaguid/stats file? Jun 24 02:51:02 I think I might be able to read the statistics from in there Jun 24 02:56:23 how can i display an emoji character to an android browser without it being interpreted :/ i want to provide the character so people can copy and paste it to another site ... Jun 24 02:58:08 i guess its impossible Jun 24 02:58:23 huh, it's just a codepoint Jun 24 02:59:07 i tried html
 and even  all are interpreted
Jun 24 02:59:42  funny that, seeing a graphic in an html input box
**** ENDING LOGGING AT Tue Jun 24 02:59:59 2014