**** BEGIN LOGGING AT Wed Dec 18 02:59:59 2013 Dec 18 03:11:57 I've got a fragment, that has a vew image buttons, but mostly displays information that periodically gets updated over the network. Is it a good idea to throw fragments into a ListView for when a user wants to have an overview of all the fragments? Dec 18 03:13:04 or is it better to inflate the fragment and populate it manually using an adapter? Dec 18 03:13:25 inflate fragment's layout Dec 18 03:19:12 overriding the default trust manager is fail Dec 18 03:19:42 it should only be overridden on a per connection factory basis Dec 18 03:34:00 pfn if i have a library which takes, as an argument a SSLSocketFactory, but (upon reading the code) does not use any host name verification … can I still add this behavior if i supply the right (customized) Factory … or do i have to modify the library so that after the handshake, it verifies the hostname Dec 18 03:35:03 the ssl socket factory has a trust manager that should perform the desired verification Dec 18 03:35:29 if it's not doing what you want, then you set the trust manager on the factory Dec 18 03:35:39 ok Dec 18 03:37:35 * pfn tries out the new humble bundle games Dec 18 03:48:31 I've got way too many humble bundle games Dec 18 03:52:08 hey, View.performHapticFeedback() has a ignore global settings flag, any idea where that setting is? I cant find it Dec 18 03:52:59 can anyone direct me to an ndk tutorial tht does NOT assume eclipse? Dec 18 03:53:21 any tutorial that is eclipse centric is utterly useless to me. Dec 18 03:54:36 Google's eclipse is not that bad Dec 18 03:54:48 I just use it for native android stuff though, I def the games in xcode Dec 18 03:54:56 dev* Dec 18 04:04:34 eclipse is a horrible POS Dec 18 04:04:56 i dont want ANYTHING to do with eclipse, i hate it Dec 18 04:05:01 and i mean HATE hate Dec 18 04:06:23 i spend 99% of my time in eclipse trying to configure it to do things in a sane way and never get anything useful done Dec 18 04:06:41 for example i have never found a way to globally turn off folding for all file types Dec 18 04:07:07 the best i could find is to turn off folding for the current file but only in the current session. quit and come back and folding is back on Dec 18 04:07:33 i just need an ndk tutorial that does not even so much as MENTION eclipse Dec 18 04:15:28 simple: ndk-build Dec 18 04:15:30 vim Dec 18 04:15:32 done Dec 18 04:15:52 and javah as necessary Dec 18 04:16:35 and if that's confusing, do something simple in plain Java with jni first Dec 18 04:17:00 i need a tutorial on how to use the ndk, call lib functions in java apps Dec 18 04:17:05 for a NUB Dec 18 04:17:31 i need to convert my forth compiler (100% pure assembler) into a library i can call from java Dec 18 04:18:06 any tutorial that has anything to do with eclipse i start reading until i read the word eclipse. then i close the tutorial and look for something else Dec 18 04:19:20 i need a very VERY simple jni example that i can literally reverse engineer so i can put the required glue code in my forth compiler Dec 18 04:21:21 Hey guys, I have my own custom view that extends LinearLayout. Is there a function I can call that will get the fragment or activity instance that the view is contained in? Dec 18 04:21:24 I440r, there is jni example code in the sdk samples Dec 18 04:21:48 I440r, look for hello-jni . I mean ndk samples not sdk samples. Dec 18 04:21:49 ollienx gross :| Dec 18 04:21:51 it will be too complicated, have too much totally not related crap in there and i wont understnd it Dec 18 04:22:07 sampe code is useless to LEARN. its great for examples as reference for something you already know Dec 18 04:22:21 ill look Dec 18 04:22:40 You just have a native method in Java and then a corresponding method in C or C++ Dec 18 04:22:46 g00s: it's a bit gross yeah. However, the way I have it setup is that within the custom view it creates an instance of it, (it's a Card setup), and I need to have buttons able to get the instance of the fragment in order to call a fucntion Dec 18 04:23:10 and then have a make file in jni. If the C code is simple it is simple. Dec 18 04:23:11 Ologn nope. there is no c in what i need to use Dec 18 04:23:15 its all assembler Dec 18 04:23:30 theres no c header files. theres not one single line of C code Dec 18 04:23:59 i need to add code to my forth compiler that will allow it to be referecned from my java code Dec 18 04:24:10 and i have to code that in assembler not c Dec 18 04:24:29 well i can code it in forth but that might not be the best way, i dont know yet Dec 18 04:24:34 g00s: the implementation isn't that gross ... Theres a way I know I could do it but it would be very gross, that being a custom class with a static variable that holds my FragmentManager, and I think that would be an awful awful idea. https://github.com/ollien/Flashcarder/blob/40fe47505b034d8ae8d8dcdad1029492dc69ad8d/src/main/java/com/ollien/flashcarder/SetCard.java Dec 18 04:26:52 This is in C: http://bit.ly/1hjcNW7 Dec 18 04:27:02 And it is in the ndk samples subdirectory Dec 18 04:27:42 im looking at the HelloComputerNDK example Dec 18 04:28:04 top of cpp file == include of jmi.h Dec 18 04:28:05 nope Dec 18 04:28:07 cant do that Dec 18 04:28:40 what ever code is linked against tht C file by including that header file i have to reproduce in asm Dec 18 04:29:27 if this is a "simple" example why is it including stdio.h stdlib.h RenderScript.h ScriptC_mono.h Dec 18 04:29:49 this is a "do everything uder the sun to bury the MINIMAL you need to do" example Dec 18 04:30:08 google examples turn hello world into TLDR Dec 18 04:30:29 plus, this is in C++ and i dont code c++ Dec 18 04:32:48 plus example code does not teach you anything. i really need a tutorial Dec 18 04:41:32 shit keep getting confused between the java SSLSocketFactory and the fing apache one Dec 18 04:42:30 i think they should have left the apache stuff out, we could use it if we wanted to Dec 18 04:46:59 right, except HttpUrlConnectionImpl was shit in harmony Dec 18 04:47:11 well lol. i know my forth compiler runs on my phone as a elf executable heh Dec 18 04:47:38 i suppose i dont need the ndk/jni crap :P Dec 18 04:57:35 fuck this always gets me Dec 18 04:57:42 "no matter what i do, you're gonna die charlie" Dec 18 05:03:22 desmin88 i feel that way with the jsse apis :| Dec 18 05:03:44 lol.. Dec 18 05:09:48 Hi Dec 18 05:09:51 HELP HELP HELP Dec 18 05:09:53 khronos.org is down Dec 18 05:10:02 Anybody has a local copy of the GLES2 reference pages? Dec 18 05:10:50 NO NO NO Dec 18 05:10:52 i dont have a copyh Dec 18 05:10:59 opengl.org is down too Dec 18 05:11:22 oh Dec 18 05:11:25 there's Web Archive Dec 18 05:12:20 it's archived Dec 18 05:12:26 but the layout is broken Dec 18 05:14:33 https://github.com/xingyunshisui/webgl/blob/master/docs/es_full_spec_2.0.24.pdf oh nice Dec 18 05:24:10 hello. I'm running android 4.1.2 on my sgs3 which is rooted. I'm having a battery drain problem, and at times the phone gets hottt. is there a custom rom built for this phone that will not drain 1% of battery life every few moments? also, is there a way I can back up all of my apps and data so I can throw it back into my phone after flashing? thanks. Dec 18 05:26:50 Crimson_Rogue see topic Dec 18 05:27:17 !topic Dec 18 05:28:38 In short: this is not tech support for root people. Go elsewhere. Dec 18 05:29:10 I get it... Dec 18 05:29:29 geez... what is it with fucking people tonight? Dec 18 05:30:20 oh look what you did ... he left Dec 18 05:32:43 lol Dec 18 05:33:22 that not nice Dec 18 05:33:49 so the app I'm working on at the moment has a very simple "browse anonymously, login to do stuff" flow... I'm planning on adding push notifications, obviously opt-in, but I'm not sure where to put the option Dec 18 05:34:29 I've seen a few apps which just pop up a dialog, very in-your-face, to ask about notifications... does it seem sensible to just ask the question as soon as the user has logged in? Dec 18 05:34:42 just in settings and only enabled if logged in? Dec 18 05:34:54 Leeds you should do it like a blink tag in html Dec 18 05:35:03 I don't have any settings at all at the moment Dec 18 05:35:04 multi colored, of course Dec 18 05:42:39 Hi, anyone here are taking the Coursera Android course? Dec 18 05:42:41 hi guys, can someone take a quick look at the topics in https://www.coursera.org/course/android, tell me if they give a good foundation for android dev thanks... my background is professional programmer with math degree working in .NET shop, know VB, C#, Java, C++, Python etc., basically a compsci major in all but name Dec 18 05:42:50 LOL cool Dec 18 05:43:25 bhldev, yes Dec 18 05:43:28 that seems like a strange coincidence Dec 18 05:43:53 Leeds, are you taking this? Dec 18 05:44:08 androidnewb: no Dec 18 05:44:35 seems like I could learn it 3 times faster on my own Dec 18 05:45:01 but there's always the worry if you do your own shit you're doing it wrong so Dec 18 05:45:16 Leeds, I have a RelativeLayout with 3 objects, how do you specify the percentage how much an objects fill the screen? Dec 18 05:45:28 androidnewb: weight Dec 18 05:45:49 i should check out the catalog, this looks cool https://www.coursera.org/course/posa Dec 18 05:45:55 leeds, but it doesn't work on RelivativeLayout Dec 18 05:47:14 androidnewb: ah well, what's your suggestion? Dec 18 05:47:59 screw relative layouts Dec 18 05:48:01 they messed me up Dec 18 05:48:12 I love relative layouts Dec 18 05:48:14 I might try weight, Dec 18 05:48:34 g00s looks like a heavy investment in java and android is my only problem with something like that Dec 18 05:48:51 fck them. I had a problem for one week and it was because of a relative layout. I realized if you call invalidate on a view on a relative layout, all the other views in the same relative layout will be redrawn wtf. Dec 18 05:49:19 is there a way to test if a file exists in /data/whereever ? Dec 18 05:49:34 I440r: check if file size is greater than null? Dec 18 05:49:35 g00s but I agree that kind of course looks a lot more fun than "intro to android" Dec 18 05:49:35 i.e. before i write something out of assets into /data see if it is already there? Dec 18 05:49:51 AndreYonadam, is that the usual way to do this? Dec 18 05:49:53 I440r: http://stackoverflow.com/questions/1816673/how-do-i-check-if-a-file-exists-java-on-windows Dec 18 05:50:06 I440r: No, thats the first thing that came to mind though. Dec 18 05:50:32 Leeds: Wonder how the checking-if-exists meathod checks it. Dec 18 05:50:33 aha leeds ty :) Dec 18 05:52:59 * AndreYonadam now understands how pointers work Dec 18 05:54:31 Is there a faster/better way to determine which layout xml I'm using (different layout folers i.e tablet/phone) other than a findviewbyid check? Dec 18 05:55:12 put a boolean in bools.xml in the same folders Dec 18 05:55:29 ugh Dec 18 05:55:34 i shoulda known Dec 18 05:55:35 thanks. Dec 18 05:56:40 canadiancow have you ever felt this way ? :P http://imgur.com/o8pQgWc Dec 18 05:58:45 that's how i feel after hours of working on something in an app and it finally works Dec 18 05:59:07 i drive to a pasture and jump around Dec 18 06:00:06 better a happy cow than a mad cow Dec 18 06:00:54 hi guys. How do we use self signed SSL Certificates on Android? Dec 18 06:01:14 Now I wonder if having the boolean defined in my xml files or by doing a findviewbyid check, which one will be faster Dec 18 06:01:20 I want my app to ignore the self signed SSL certificate until I can get one from a CA authority. Dec 18 06:01:26 desmin88, lol Dec 18 06:01:48 hehe Dec 18 06:02:01 trupheenix i sense you will become another casualty to ssl cert validation Dec 18 06:02:24 does anyone have paid apps on the market? Dec 18 06:03:26 many thousands of people do Dec 18 06:04:18 yes well i was wondering what recommendations people had for paid/free apps Dec 18 06:04:25 there are a few different options available Dec 18 06:05:30 Paid no ads + free w/ ads Dec 18 06:05:31 ? Dec 18 06:05:37 or Dec 18 06:05:39 Inapp purchase to remove ads Dec 18 06:06:07 separate paid & free, in-app billing, free & unlock apps Dec 18 06:07:19 trupheenix, why would you do that? Dec 18 06:07:37 if you're developing the app you can just validate the cert yourself Dec 18 06:07:44 dont ignore that its self signed Dec 18 06:08:16 hell make your own ca cert and have the app make sure that the cert used is signed by your ca Dec 18 06:08:23 validate it like any other ca Dec 18 06:09:02 LiENUS do you have any experience with cert host name verification ? Dec 18 06:09:20 g00s, not in android apps why? Dec 18 06:10:20 ok, i'm not using https and still trying to figure out how to do this. basically i have a library which takes a SSLSocketFactory. after it creates the socket and starts the handshake, it does not verify the host. i'm trying to figure out if i can do this myself Dec 18 06:10:35 it does not appear the DefaultTrustManager or whatever does this Dec 18 06:10:54 in java 7 there is X509ExtendedTrustManager Dec 18 06:11:02 but we don't have that Dec 18 06:11:24 so i came across this SO post http://stackoverflow.com/questions/18139448/how-should-i-do-hostname-validation-when-using-jsse Dec 18 06:11:41 if you look at the accepted answer, under android ... Dec 18 06:11:53 there is: if (!verifier.verify(session.getPeerHost(), session)) { } Dec 18 06:12:11 now i can modify the library to add that, its code just doesn't call any verifier Dec 18 06:12:40 but is there a 'non invasive' way by creating the right SSLContext / TrustManager / SSLSocketfactory? Dec 18 06:13:01 LiENUS, I totally did not get you. Dec 18 06:13:40 LiENUS, How do we accept a self signed SSL certificate on Android? It's not clear to me. Dec 18 06:13:46 trupheenix i would recommend reading the 2 papers @ android-ssl.org Dec 18 06:14:30 trupheenix, why use self signed at all? Dec 18 06:14:36 if you are developing the app Dec 18 06:14:49 why not create your own CA? Dec 18 06:14:50 Hello, Android Developers Dec 18 06:15:22 I got problem with HttpPost. Error is "No peer connection". Dec 18 06:15:30 LiENUS, what do you mean your own CA? Dec 18 06:15:39 do you know what a CA is? Dec 18 06:15:46 LiENUS, that is what I meant by self signed SSL certificate Dec 18 06:16:21 ok i see you dont know what a CA is Dec 18 06:16:49 A CA (or Certificate Authority) signs other certificates and essentially swears "this person is who they say they are" Dec 18 06:17:21 by validating the CA that you trust's signature on another certificate you can say "hey this CA says they're real they must be real" Dec 18 06:17:32 Hi, I have a S4. It has an internal emulated sdcard (/sdcard), and an additional real sd card (/extSdCard). Can my program write to /extSdCard? and what permissions do I need? Dec 18 06:17:35 so ideally you set up your own CA and sign your cert and use that signed cert Dec 18 06:17:42 more to the point, I am trying to download a file there. I pass the location to DownloadManager, and get a error saying the location is not on external storage. Dec 18 06:18:23 LiENUS: so... if you are the CA, and you sign your own cert, doesn't that make it... self-signed? Dec 18 06:18:28 trupheenix also recommend this book https://www.feistyduck.com/books/openssl-cookbook/ Dec 18 06:18:52 Leeds, self signed means the certificate is signed by itself does it not? Dec 18 06:18:56 hence self signed Dec 18 06:19:03 trupheenix and http://developer.android.com/training/articles/security-ssl.html Dec 18 06:19:21 no, it means it's signed by a CA created by the cert generator/owner, outside the web of trust of mainstream CAs Dec 18 06:19:38 Leeds, my manpages must be out of date then Dec 18 06:19:48 probably Dec 18 06:20:09 self signed in common use means that it's signed by itself (thats why they traditionally called it self signed) Dec 18 06:20:33 either way, the point is that the CA isn't on the recognised list, so it won't validate Dec 18 06:20:56 which since he controls the app he can have his trustmanager validate it Dec 18 06:21:39 http://developer.android.com/training/articles/security-ssl.html#UnknownCa Dec 18 06:21:41 similar situation Dec 18 06:21:43 which is exactly what he was asking about Dec 18 06:21:54 except a self signed certificate its signed by itself Dec 18 06:22:00 ie the ca and the server cert are the same Dec 18 06:22:31 with a custom trust manager using a ca cert he can then later expand and use more server certs (ie multiple servers) or swap out the server cert with a new one Dec 18 06:22:35 and just resign with his CA cert Dec 18 06:22:50 instead of having to modify the app and redistribute as well as breaking any users unable to update right away for whatever reason Dec 18 06:23:17 he asked about a self signed, i told him to use what the android docs are referring to as an unknown certificate authority Dec 18 06:23:25 theres a bit of a difference there, it's subtle but important Dec 18 06:23:29 technically, the root certificate is the only self signed certificate Dec 18 06:23:56 and what he asked to do is to ignore the self signed cert Dec 18 06:24:04 i told him not to do that but to actually set up a chain of trust and validate it Dec 18 06:24:12 if hes gonna ignore that its self signed he'd be better off not using ssl at all Dec 18 06:25:39 g00s, if you notice the google docs explicitly say not to make those mistakes from that paper you read yesterday Dec 18 06:25:48 yeah Dec 18 06:25:53 i'm pretty worried Dec 18 06:26:02 about getting this right :) Dec 18 06:26:25 they dont seem to mention the cn validation though in the docs Dec 18 06:26:36 i thought the paper did though didnt it discuss how to do cn validation in android? Dec 18 06:27:53 oh shit there it is hostname verification Dec 18 06:28:14 if i drop an asset into /data/... will i need root permissions to shell out a chmod operation on that file? Dec 18 06:29:11 btw trupheenix if you properly set up your own chain of trust and keep your ca cert private key and server cert private keys secure, your app can actually be MORE secure than if you used regular ssl validation and trusted the android built in CAs Dec 18 06:29:31 ok Dec 18 06:30:23 hi! how i should declare a char array in java reflection method parameters? Dec 18 06:31:28 kroot discussed that in an i/o talk, basically cert pinning Dec 18 06:31:57 which is kinda documented here http://developer.android.com/reference/javax/net/ssl/HttpsURLConnection.html Dec 18 06:32:00 never ignore certificate validation, if someone tells you self signed + no validation is more secure than no ssl then you're better off not listening to them Dec 18 06:32:15 ssl is worthless without a chain of trust Dec 18 06:32:37 without a chain of trust it offers no security benefits whatsoever and adds a false sense of security Dec 18 06:33:04 someone might decide to use your app in a what is otherwise secure environment because they see that it encrypts data Dec 18 06:33:10 I'm hacking on an app that isn't my own, and I got some changes to work, so now I want to write some tests. But when I run ant test, I get: Dec 18 06:33:12 INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.matburt.mobileorg.test/android.test.InstrumentationTestRunner} Dec 18 06:33:18 but since your app isn't doing any validation a mitm attack would be incredibly easy Dec 18 06:33:21 What might this mean? Dec 18 06:33:57 so while it appears to be securing communications it isnt actually doing that, thus someone might include your insecure app in an otherwise secure environment thus punching a hole in their network Dec 18 06:34:43 g00s, certificate pinning is quite a bit diff from what android seems to think it is Dec 18 06:35:36 pastebin of AndroidManifest.xml and full ant test output: http://pastebin.ca/2512955 Dec 18 06:35:37 g00s, certificate pinning is when you connect to a server the first time you record that key and associate it locally with the server, then if the key ever changes you pop up a notification that it has changed Dec 18 06:36:09 http://developer.android.com/training/articles/security-ssl.html#Pinning the android guys seem to think pinning involves the CA Dec 18 06:36:22 it has nothing to do with the CA and operates completely independently of the CA Dec 18 06:36:44 this lead to the ham fisted approach to certificate pinning we experience with android 4.4 :/ Dec 18 06:38:01 LiENUS that research paper defined it as "it would be feasible to implement SSL pinning, either selecting the small number of CAs actually used to sign the sites or even pin the precise certificates." Dec 18 06:38:23 which isnt pinning at all Dec 18 06:38:29 pinning involves the server certificate Dec 18 06:38:51 pinning is a protection against a compromised CA Dec 18 06:39:00 validating a CA that may or may not be compromised is worthless Dec 18 06:39:10 great, you know its still signed by the CA Dec 18 06:39:32 pinning answers the question of whether the client cert changed or not Dec 18 06:39:51 google seems to have a distaste for SSL cert pinning, likely because googles infrastructure doesnt lend itself well to pinning Dec 18 06:40:10 when you go to gmail you get a diff cert virtually every time typically not signed by the same CA Dec 18 06:40:17 so you cant do pinning on gmail.com Dec 18 06:40:34 LiENUS pinning seems to be used both ways Dec 18 06:40:40 based on http://www.thoughtcrime.org/blog/authenticity-is-broken-in-ssl-but-your-app-ha/ Dec 18 06:40:45 thats not pinning though Dec 18 06:40:49 thats ssl chain of trust Dec 18 06:42:20 maybe the term is used differently by different people :) Dec 18 06:42:47 https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning thats a pretty good description of pinning right there Dec 18 06:43:02 cannot ant debug "Buildfile: build.xml does not exist! Dec 18 06:43:03 Build failed Dec 18 06:43:03 " Dec 18 06:43:26 restricting the CA certs is a poor attempt to approximate pinning Dec 18 06:45:20 http://www.thoughtcrime.org/blog/authenticity-is-broken-in-ssl-but-your-app-ha/ moxie marlinspike has a good writeup on it too Dec 18 06:45:37 yeah i just posted that :| Dec 18 06:45:39 though he seems to favor ditching CAs and going with self signed certs, i'm not a big fan of that idea Dec 18 06:45:50 i read it as pinning having 2 options Dec 18 06:47:28 actually looking at option I he's describing what i initially told tru to do Dec 18 06:49:01 how to trust all SSL certificates in Android? Dec 18 06:49:10 http://convergence.io/ theres the one thats been around a while Dec 18 06:49:14 mygreymatter, why would you do that? Dec 18 06:49:49 Lienus: I am try to communicate with SSL certified server Dec 18 06:50:26 convergence is a strange (and frankly scary) approach to pinning wherein you trust what other people say is the right cert for it, the idea being if people start getting served a different cert then you know someone got hit Dec 18 06:51:03 mygreymatter, but if you just trust all SSL certificates whats the point in using SSL? Dec 18 06:51:28 g00s, theres the http://tools.ietf.org/html/draft-ietf-websec-key-pinning-09 definition for pinning Dec 18 06:51:59 Just for testing. I cannot get the certificate from the server. Dec 18 06:52:08 Lienus:Just for testing. I cannot get the certificate from the server. Dec 18 06:53:03 mygreymatter, no idea what you're saying i'm going to slep now Dec 18 06:53:24 LiENUS thanks for the ietf link Dec 18 06:53:59 hi guys, i want to change the xml layout when my device is rotated, should I add the xml changes programatically? Dec 18 06:54:13 that's a bit different than what I was talking about :) Dec 18 07:41:22 hey guys Dec 18 07:41:37 I can't seems to find how to generate a server key in cloud.google.com/console Dec 18 07:41:44 the android key is not working for gcm Dec 18 07:44:52 http://developer.android.com/google/gcm/gs.html Dec 18 08:10:49 if I create an AlertDialog in a separate class and show it in my Activity, could this cause circular referencing? Dec 18 08:10:56 [A3G1S]: hey man! Dec 18 08:25:44 hi Dec 18 08:26:03 so just so i dont get it too integrated Dec 18 08:26:04 I tried to download http://developer.android.com/training/ for offline viewing Dec 18 08:26:12 but it seems google doesn't let me. Dec 18 08:26:14 :( Dec 18 08:26:18 any solution? Dec 18 08:26:23 any other mirror? Dec 18 08:26:25 the youtube player api here https://developers.google.com/youtube/android/player/ is the one everyone is using in their apps? Dec 18 08:29:47 Amirh: how is google not letting you Dec 18 08:30:06 any site downloader stops Dec 18 08:30:10 desmin88 Dec 18 08:31:21 it's funny Dec 18 08:31:39 I live in Tehran, google also denied our ip for any download. Dec 18 08:31:57 we sue proxies, but during long downloads they stop too Dec 18 08:32:20 hold on Dec 18 08:32:21 Amirh maybe your government is doing that O.o Dec 18 08:32:34 no Dec 18 08:32:43 it's google policy Dec 18 08:32:58 kinda sanction Dec 18 08:33:17 why would google block tehran ips Dec 18 08:33:32 only for download Dec 18 08:33:48 ask american congress Dec 18 08:33:57 download of the sdk? Dec 18 08:34:03 yeah Dec 18 08:34:07 any mirror? Dec 18 08:34:14 or anyone can email it to me? Dec 18 08:34:20 sdk has documentation too? Dec 18 08:37:32 ? Dec 18 08:40:20 well, i found ... Dec 18 08:40:23 "Accessing Google Code website and its hosted contents is banned from countries on the United States Office of Foreign Assets Control sanction list, including Cuba, Iran, Libya, North Korea, Sudan and Syria." Dec 18 08:40:35 that probably applies to Android too Dec 18 08:41:07 g00s: well, I already know that Dec 18 08:58:47 hi Dec 18 08:59:25 Can anybody help me out with starting out with the android sdk? Dec 18 09:01:53 markpp: Have you read: http://developer.android.com/training/index.html Dec 18 09:03:31 I have read and watched basic examples Dec 18 09:03:41 I want to to the battery Manager Dec 18 09:04:19 I cannot help you with that. Dec 18 09:05:35 "I want to to the battery Manager" Dec 18 09:06:18 i want to learn how to use the Battery Manager class Dec 18 09:07:01 so google it Dec 18 09:07:10 http://mobiledevtuts.com/android/android-sdk-get-device-battery-information/ Dec 18 09:07:24 looks old though Dec 18 09:09:22 look at the javadocs Dec 18 09:11:19 youch. Dec 18 09:12:18 I'm trying to select a skin to use with the android virtual device (emulator) but when I'm going to create it I don't have any option to create it, instead I just have a tickbox that says: Display a skin with hardware controls Dec 18 09:13:21 a skin? Dec 18 09:13:43 yes something like this: http://heikobehrens.net/2011/03/15/android-skins/ Dec 18 09:15:57 why do you even want a skin Dec 18 09:19:27 Because it looks better with one than with the "default", of course it doesn't change anything but anyways I came here to see if someone had tried to install them or know why the option "select skin" doesn't appear Dec 18 09:32:10 hi all! Does anyone know how to avoid Fragment re-creation on screen rotation? Dec 18 09:33:17 setRetainInstance(true) Dec 18 09:36:44 is there anything in the google play TOS that requires the developer to release the app in a package name of a domain owned by the company? i know that this is convention, but my boss says he doesn't want to change the package unless its absolutely necessary (our current package is com.video which is quite emberassing to me) Dec 18 09:39:23 ohcibi: no such thing in the tos Dec 18 09:41:09 CallumTaylor: I need onActivityCreated not to be called on screen rotation... The reason is because I'm setting an adapter and as I understand it must be set only after list is inflated and ... long explanation... Is it possible to set list adapter prior to it's inflated?.. Dec 18 09:41:37 setRetainInstance(true) Dec 18 09:41:45 and check if your adapter is null Dec 18 09:41:49 before setting it Dec 18 09:41:52 what if video.com decides to release an app with exactly the same package name we have? who gets the right to deploy? Dec 18 09:42:04 i don't think the package name matters Dec 18 09:42:13 of course it does.. it is a unique identifier Dec 18 09:42:30 i don't think they can request take downs because of it Dec 18 09:43:51 ohcibi: do you want some to give you a reason and validate your concerns to your boss? Dec 18 09:44:04 desmin88: somehow, yes.. Dec 18 09:44:26 i dont want to release a product with com.video as a package name.. Dec 18 09:44:39 why not Dec 18 09:45:07 because I have nothing to do with video.com.. it looks like I just have started learning java and tried to deploy my first hello world app Dec 18 09:45:23 say you want the app to be more branded Dec 18 09:45:26 The package name is a developer technicality. You boss should not be concerned by it. Ask him just what commercial name he wants to use for the application. And of course, use your domain name as root of your package name. Dec 18 09:45:27 com.yourcompanyname.video Dec 18 09:45:30 ^ Dec 18 09:45:53 who named the package anyway and why is your boss so concerned with it? Dec 18 09:46:04 ogamita: the boss' point is that he doesn't want to break downwards compatibility because publishers would have to change their import statements Dec 18 09:46:05 the only problem could occur if your boss is also a programmer with strange ideas… Dec 18 09:46:16 CallumTaylor: ^ about the import statements.. Dec 18 09:46:30 former developers named it like that and they did a lot of other foolish things Dec 18 09:46:30 so the app has already been released? Dec 18 09:46:33 you kind of fucked up in the first place if you named your package com.video Dec 18 09:46:46 CallumTaylor: current version number is 1.1.8.. its a library bts Dec 18 09:46:48 btw Dec 18 09:46:51 Yes, it's just not sustainable. Dec 18 09:46:54 desmin88: please don't say "you" Dec 18 09:47:02 oh relax Dec 18 09:47:03 i work there since august Dec 18 09:47:08 you know what i was talking about Dec 18 09:47:15 gotta fix all this bs the former people did with this Dec 18 09:47:18 oh its a library Dec 18 09:47:22 CallumTaylor: yes Dec 18 09:47:25 you could change the package Dec 18 09:47:28 then in your old package Dec 18 09:47:37 have some sort of facade for backwards compatibility Dec 18 09:47:41 ah.. nice thought Dec 18 09:47:41 then phase it out? Dec 18 09:47:45 maybe marked as deprecated Dec 18 09:47:52 Perhaps you could mention to your boss that video.com is owned by © Buena Vista Home Entertainment, Inc. If he feels like fighting with the laywers of Disney… Dec 18 09:47:52 indeed. Dec 18 09:47:53 so developers would see it in their IDEs Dec 18 09:48:08 So new package, old package facade with deprecated. easy. Dec 18 09:48:17 Hi all. when using DateUtils.getRelativeTimeSpanString, when setting minimal resolution to seconds, I only get relative up to hours, is there a way to force it to everything? Dec 18 09:48:27 like 3 months ago, 2 years ago Dec 18 09:48:30 etc. Dec 18 09:51:17 desmin88: thanks for the input... lets see what the boss says 8-) Dec 18 09:51:29 ohcibi: np Dec 18 09:57:06 whew. Dec 18 09:57:12 that sucked Dec 18 10:06:47 hello Dec 18 10:10:45 okay... response from boss: "please keep the issue closed" Dec 18 10:12:28 CallumTaylor: thank you! Your advice fixed my issue partly ) I have a Activity, that displays Fragment and from the Fragment a FragmentDialog may pop-up... If I rotate screen - dialog will be re-created and I need it not to be re-created or keep it just sinlge... Is it possible? Dec 18 10:13:35 using setRetainInstance should Dec 18 10:13:44 if not then it may be the activity that's doing it wrong Dec 18 10:13:57 do you call fragmentmanager.add/replace in increate everytime? Dec 18 10:14:03 oncreate* Dec 18 10:15:28 setRetainInstance in DialogFragment causes dialog to disappear on rotation. In activity onCreate I use this to avoid re-creation: if (savedInstanceState != null) // Do nothing Dec 18 10:15:53 when activity rotates it does not replace fragment Dec 18 10:17:02 all setRetain does is make sure that the fragment doesn't get destroyed, it sounds like the issue is with the activity not handling the fragment in the manager properly Dec 18 10:17:09 can you paste your activity code Dec 18 10:17:45 can I make an item in a gridview take two slots instead of one? Dec 18 10:19:11 Just bought nex7 lte 2nd gen yesterday I hope it's worth it's price... :) Dec 18 10:19:30 its* Dec 18 10:19:42 CallumTaylor: http://pastebin.com/MA14MYy8 Dec 18 10:20:11 saveinstancestate will always be null because you're not passing anything in onSaveInstanceState Dec 18 10:20:20 rather than do that, do a check if your fragment is already in the fragment manager Dec 18 10:20:28 if it is, then don't attach it Dec 18 10:20:51 guys have you heared about sequoyah plugin for eclipse? Is it usable in practice?? Dec 18 10:21:36 CallumTaylor: it's not, if I rotate device - I see corresponding log message Dec 18 10:21:41 ah ok Dec 18 10:22:03 is it worth installing? Dec 18 10:24:22 osmij_: try getting the fragment from the manager, and re-attaching it using the fTrans.replace method Dec 18 10:24:37 so if savedInstanceState == null, create the fragment, else get it from the fragment manager Dec 18 10:26:26 got disconnected for some reason... But I read about getting Fragment manager Dec 18 10:26:29 will try Dec 18 10:26:40 thanks for looking into this! Dec 18 10:29:26 Hi, I try to convert a string to a Date but the month is +1 (string month = 12, date month = 1) Dec 18 10:30:03 how can I fix this? Dec 18 10:31:37 FrancescoV, fix what exactly? Dec 18 10:32:04 http://stackoverflow.com/questions/344380/why-is-january-month-0-in-java-calendar Dec 18 10:32:20 Mavrik: "2013-12-19" converts to "19 jan 2013" instead of "19 dec 2013" Dec 18 10:32:47 did you use the wrong format specifier? Dec 18 10:32:49 can you just not call .set(month, get(month) - 1) Dec 18 10:32:52 and you get default january? Dec 18 10:33:07 CallumTaylor, he should be getting "11" for december, not 1 Dec 18 10:33:14 ah Dec 18 10:34:33 that looks like a default value, probably wrong parser config :) Dec 18 10:36:22 2013-12-13 10:37:07 —> Sun Jan 13 10:37:07 CET 2013 with SimpleDateFormat("yyyy-mm-dd hh:mm:ss") Dec 18 10:36:50 FrancescoV, note the fact Dec 18 10:37:05 FrancescoV, that you have "mm" for months... and "mm" for minutes Dec 18 10:37:11 ;) Dec 18 10:42:24 Mavrik: tnx! Dec 18 11:08:34 question: I have content that gets cached on the user's device saved in externalCacheDir, but sometimes this can be null, is there any downfall/problems if i switch this to use the internal cache DIR? (cache can possibly be up to 30mb) Dec 18 11:09:15 CallumTaylor, well, you can fill up people's internal storage if they have a device with little of it and no SD card Dec 18 11:09:27 depends on which OSes you target Dec 18 11:09:32 yeah thats why i originally use external storage Dec 18 11:09:33 2.3+ Dec 18 11:09:35 Android 4.x+ will go and delete your cache Dec 18 11:09:39 2.3 won't. Dec 18 11:09:51 for internal? Dec 18 11:09:55 guys type something.................... Dec 18 11:10:46 something Dec 18 11:10:52 thanks Dec 18 11:10:54 something.................... Dec 18 11:10:57 CallumTaylor, yep. Dec 18 11:11:00 god lbf at least get it right Dec 18 11:11:11 CallumTaylor, but yeah, that looks like a good strategy :) Dec 18 11:11:23 Mavrik: that's interesting. Its annoying me because users complain about not getting content updates Dec 18 11:11:48 but its not saving because the external storage isn't available, and i can't rely on doing a fallback incase it does come back into availability Dec 18 11:13:43 for an open source project, is it to early to use android studio? Dec 18 11:14:51 storage options is such a pain Dec 18 11:17:09 nickfox, In what regard too early? Too early because it's labeled with a dev-preview status? Dec 18 11:17:19 pduin: yes Dec 18 11:18:57 For me it's pretty stable Dec 18 11:19:52 ive been using AS for several months now and tonight I had my first real problem with it Dec 18 11:20:15 you know how eclipse sometimes will freak out and NOT create an R.java file? Dec 18 11:20:23 that happened to me tonight in AS Dec 18 11:20:37 and that is why i'm concerned Dec 18 11:21:18 i'm still willing to use AS and just make a lot of commits to make sure i'm saving a good working copy... but stilll Dec 18 11:21:41 just wanted other devs opinions on it Dec 18 11:22:52 For what its worth: I have been using it for a couple of months on a pretty big project, never had any major problems with it. Dec 18 11:23:16 i love it. its so refreshing compared to eclipse Dec 18 11:23:22 i've been using it for 3 big projects the last month and it's been really great Dec 18 11:23:33 just having a decent dark theme that works right even... :) Dec 18 11:23:43 any idea how to debug an ANR that doesnt happen when run in a debugger? Dec 18 11:23:43 cool Dec 18 11:24:08 yes, log like living hell Dec 18 11:25:00 Hey guys. I'm getting a NoSuchMethod exception I'm not entirely sure how to interpret. As far as I can tell by the reference manual, I'm supposed to just be able to go myIntent.setData (myAndroidNetUri) and we should all be smiling. However as soon as I try that, I get this tossed in my face (via logcat): java.lang.NoSuchMethodError: no method with name='setData' signature='(Landroid.net.Uri$StringUri;)V' in class Landroid/content/In Dec 18 11:25:28 maybe its related to the issue i originally wanted to debug: sometimes after running my NotificationListenerService for a while, i get a DeadObject log entry on notifications and of course my listener wont be called Dec 18 11:25:42 Any ideas why I'm meeting resistance here? Dec 18 11:25:49 AngryAnt: different api level? Dec 18 11:26:28 actually can't be. that method has probably been around since forever Dec 18 11:27:04 yeah docs say setData(Uri) is api 1 Dec 18 11:28:00 Not in the signature it mentions "Landroid.net.Uri$StringUri;" as the parameter - does that look correct to you? I am not used to working in Java land. Dec 18 11:28:03 Now* Dec 18 11:29:08 yeah wondering that too. wtf is the dollar Dec 18 11:29:27 i thought it means template or something Dec 18 11:29:32 maybe you forgot a new? :P Dec 18 11:29:48 like setData(Uri()) instead of setData(new Uri()) Dec 18 11:30:17 that catches me sometimes in java because ocasionally its valid Dec 18 11:30:35 It is being created properly. I'm accessing this through a layer of introspection - from a different language. So I am wondering if that layer is sending something non-sense to the java layer. Dec 18 11:31:12 according to ##java the dollar means inner class Dec 18 11:31:24 so you're definatly not passting a uri Dec 18 11:34:26 maybe try wrapping setData(bla) with setData(Uri.parse(bla)) Dec 18 11:35:39 Interesting. Thanks that is very helpful. I'll give it a look :) Dec 18 11:42:37 bah, there's so much shit in the logs, its impossible to trace back what was due to my app Dec 18 11:43:08 em, filter it by process id? Dec 18 11:43:34 yeah but some of the problems arent in my process Dec 18 11:43:53 hey yuvipanda, I managed to get what I needed with the script you gave me. Thanks :) Dec 18 11:43:57 like ANR and the deadobject i get from NotificationListenerService Dec 18 11:44:00 karrboloaded: :D yw! Dec 18 11:44:17 I deleted a couple of days worth of uncommitted code in the process :( Dec 18 11:44:34 and then eclipse exploded Dec 18 11:44:38 actually _most_ of the problems i have are in some crazy system process deciding to do different things by android version :( Dec 18 11:44:40 ow :( Dec 18 11:44:46 but I got it working today Dec 18 11:47:56 hey Guys, Anyone working with GCM Dec 18 11:48:04 ? I recently upgraded from c2dm to GCM Dec 18 11:48:17 just ask. Dec 18 11:48:34 gcm send shows on server that message successfully delivered but message is not received on the app Dec 18 11:49:45 for the stock gcm example? Dec 18 11:50:57 Hi everyone, i got noobish issues when using string.xml on a class. Dec 18 11:51:18 i got this line on my XML : 0000000000 Dec 18 11:51:33 but on my class when i do this : Log.v("test","String value = "+R.string.code_type); Dec 18 11:51:52 i got wrong value like 2131165797 Dec 18 11:51:57 instead of 0000.... Dec 18 11:53:20 and i cant use getString method Dec 18 11:54:56 macTAR, ehm Dec 18 11:55:08 I think you misunderstood how resources work Dec 18 11:55:24 when you define something with name in an XML in res folder, it gets assigned an ID Dec 18 11:55:31 i guess im getting the ID y Dec 18 11:55:41 so R.string.code_type just has the ID of that code_type resource Dec 18 11:55:51 and you need to retrieve it with help of a context with getString(id) Dec 18 11:57:05 ah y context was missing Dec 18 11:57:07 thx :) Dec 18 11:57:25 Does anyone know how to turn a date time to unix time in seconds? For example 18 Dec 2013 to unix. Dec 18 11:57:51 I can only find how to do it the other way around. Dec 18 11:58:15 Dreeass, parse it into a Calendar object, use getTimeInMillis() Dec 18 11:58:26 multiply by 1000. Dec 18 11:58:28 er. Dec 18 11:58:32 divide by 1000 sorry :) Dec 18 11:58:53 Thanks Dec 18 11:59:06 or SimpleDateFormat, http://stackoverflow.com/questions/7512965/is-there-any-function-like-strptime-in-java Dec 18 12:09:49 Why does android emulator works like shit? Is there any method to speed it up? Dec 18 12:10:15 yep. Dec 18 12:11:35 karab44, try this simulator. You'll need VirtualBox or so: http://www.genymotion.com/ Dec 18 12:11:46 emulator/simulator, whatever Dec 18 12:12:10 :) Dec 18 12:12:31 It even emulates GPS, Motion... Dec 18 12:12:41 And it's smooth as butter Dec 18 12:12:54 Dreeass: LOL! Dec 18 12:13:09 okay but what about ADT emulator? It does the same GPS, Motion everything what you want. Is there seriously no any way to speed it up? Dec 18 12:13:13 Mine is tasty as KitKat :p Dreeass Dec 18 12:13:25 mithun46, mine is too. Dec 18 12:14:07 karab44, yes there is. Dec 18 12:14:21 use x86 image, enable host gpu Dec 18 12:14:24 karab44, you can't get the ADT as smooth as you want. You can use the x86 intel simulator, but that might cause incompabilities with devices for some reason. I haven't looked into it, but what I found is that you can't get it as smooth as Genymotion. Dec 18 12:14:25 that's it. Dec 18 12:14:53 Dreeass, ehm, Genymotion is x86 emulator as well Dec 18 12:15:05 they're practically the same except for wierd hacked up Genymotion Vbox drivers Dec 18 12:15:13 anything that breaks on x86 emulator breaks on genymotion Dec 18 12:15:34 Mavrik, x86 Atom wasn't there for me in the ADT Simulator from the start. Thanks though, I'll give it a shot. Dec 18 12:15:54 Dreeass, Intel hasn't prepared images for all SDK versions yet Dec 18 12:16:30 Mavrik, where's the ADT manager button in IntelliJ? I just moved over to IntelliJ yesterday. Dec 18 12:16:51 Got it Dec 18 12:18:06 okay but what about when I want to work with my real device? Is there any tools I should get? I found something like sequoyah but ... isn't this project dead ? Dec 18 12:18:32 what about it? Dec 18 12:18:34 plug in the device Dec 18 12:18:36 run the app Dec 18 12:18:51 Enable debugger on the device by enabling developer settings. Dec 18 12:18:54 enable usb debugging... what tools would you like to have? Dec 18 12:18:58 so there's no any pros for installing sequoyah ? Dec 18 12:19:04 Here's a guide on the developers page: Dec 18 12:19:35 http://developer.android.com/tools/device.html Dec 18 12:20:07 karab44, that doesn't look like anything Android related Dec 18 12:20:23 oh yes, I've been using adb for some time. Dec 18 12:21:13 Mavrik: why? Sequoyah is a plugin for eclipse... it allows to operate your device on PC. Dec 18 12:22:04 do yourself a favor and use a physical device Dec 18 12:22:28 basicly it works like VNC connection so it is just remote controller Dec 18 12:22:30 having a proper performance and tactile feedback for what you're doing can't really be replaced on PC Dec 18 12:22:44 for fast development Genymotion work much better than those VNC hacks Dec 18 12:23:17 no nobody here uses this sequoyah? Not even one positive feedback? Dec 18 12:23:31 Ok so I don't see any sense of installing it :) Dec 18 12:23:40 look, install it Dec 18 12:23:48 karab44, it takes too long to install it on my device in my opinion. Dec 18 12:23:49 heheh nnaaah Dec 18 12:23:53 if you really want, I don't know what you want from us, permisison? :P Dec 18 12:24:10 not permission, opinion from experienced developers :) Dec 18 12:24:17 I tried one of those remote control solution and it didn't really work well Dec 18 12:24:29 I've since long ago switched away from Eclipse so I didn't have a change to test that project Dec 18 12:24:51 Mavrik, is it still best to use 768Mb RAM when using x86? Dec 18 12:25:27 neither did I see much point in it, since x86 emulator / Genymotion work well enough for rapid development, and you have to test app on a physical device in your hand in final QA anyway Dec 18 12:25:33 Dreeass, probably yes Dec 18 12:25:40 Thanks Dec 18 12:25:40 I think the 1GB issue still persists Dec 18 12:26:11 The only thing I wish it did faster is boot, the emulator literally takes 5 min to boot Dec 18 12:27:19 Mavrik, why can't I use getTime instead of getTimeInMillis / 1000? Dec 18 12:27:27 when using Calendar Dec 18 12:27:27 hmmm today I will search for some tips and tricks to improve emulator performance... and I will share it at the end of the day Dec 18 12:27:46 Dreeass, uh Dec 18 12:27:52 that's a silly question you know :P Dec 18 12:28:17 karab44, https://www.virag.si/2012/10/speeding-up-android-emulator/ Dec 18 12:28:23 it's slightly old but still relevant. Dec 18 12:28:25 Mavrik, yes it is. Didn't see return type.. Dec 18 12:30:31 Mavrik, to what should I change the keymap "Delete line" to? It's CTRL+Y now, but I'm used that CTRL+Y is redo. Dec 18 12:30:58 Shift backspace looks good. Dec 18 12:40:54 hello all Dec 18 12:41:22 i created new project in google play , but i dont see app id , where i can find that Dec 18 12:47:27 Mavrik: thanks :) Dec 18 12:50:04 any idea guys ? Dec 18 12:52:32 Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@b2f78d30: Unmarshalling unknown type code 7929957 at offset 444 Dec 18 12:55:04 http://imgur.com/jacoj Dec 18 12:55:35 + code Dec 18 12:56:18 idk if there's much point Dec 18 12:56:43 Then what's the point of coming here? Dec 18 12:58:56 fair point, not like i've got anything to lose by posting the trace Dec 18 13:00:08 We can't do anything without code and stacktrace. When you give us code but no stacktrace, gtfo. When you give us a stacktrace and no code, gtfo. Dec 18 13:02:43 code & stacktrace http://pastie.org/8560703, problem only seems to appear on android 4.3 and above Dec 18 13:05:05 storkme, I don't see anything in the stacktrace that says it's this class. Dec 18 13:05:34 that's because the stack trace is relating to unmarshalling a parcelable. Dec 18 13:05:47 anyway I found the issue - turns out android 4.3 and above doesn't like 'writeValue' Dec 18 13:05:55 storkme, alright. Dec 18 13:06:32 wouldn't have done if I didn't post the code, so thanks :D Dec 18 13:07:27 storkm, just post every reference in the stacktrace next time. Dec 18 13:07:51 And when using pastie, you can select lines, very handy when you share the link. Dec 18 13:08:43 that was the entire trace Dec 18 13:11:59 storkme, I know. But not all of the code it references. Dec 18 13:13:13 you're right i figured you had your own copy of android.os.Bundle to look at Dec 18 13:13:26 Hi. Dec 18 13:13:46 storkme, it still references other parts in your code.... Dec 18 13:23:54 hey droiders X) Dec 18 13:34:04 Morning Dec 18 13:35:11 afternoon Dec 18 13:35:57 :) Dec 18 13:41:49 With a ScheduledExecutorService and scheduleAtFixedRate, if a runnable has still not finished its job the next time the scheduleAtFixedRate timer hits, what will happen? Dec 18 13:42:08 does it wait for execution to finish of the previous run then immediately run again? Dec 18 13:42:25 or does it skip an iteration, start a new thread? Dec 18 13:44:09 scheduleAtFixedDelay does what I want Dec 18 13:47:37 With* Dec 18 13:58:08 Hi, I've got a question about android and HTTP requests. I have implemented with asyncTask and HttpUrlConnection but response was always empty. I have permission INTERNET. I want to implement HTTP communication with POST REQUESTS. Thanks for answer. Dec 18 14:01:55 anyone in here that has experience in HLS for Android (HTTP Live Streaming video)? I want to ask about Buffering events... Dec 18 14:04:37 Does Google offer source codes of their apps? Especially those that play videos, maybe? :З Dec 18 14:05:33 no Dec 18 14:05:40 that'd be too easy Dec 18 14:06:21 but that would be sooooo cool and nice to copy-paste ^_^ Dec 18 14:07:10 and perhaps explain why HLS stream not trigger onBufferingStart event Dec 18 14:07:21 They do have courses of certain stuff Dec 18 14:07:43 But not aimed at beginners I guess, Google Developers on YouTube is full of programming stuff Dec 18 14:10:55 Does someone know how to do a dropdown in an inputfield in android? Dec 18 14:12:04 Dreeass: look at http://developer.android.com/reference/android/widget/AutoCompleteTextView.html Dec 18 14:12:25 grr Dec 18 14:12:39 CallumTaylor, thanks. Dec 18 14:12:54 using a ring-shape drawable as progressbar background is failing on me Dec 18 14:12:55 -.- Dec 18 14:15:35 Does someone know a good article that gives some good tips on making the Android design part a bit more easy like CSS? Dec 18 14:21:58 Look up tutorials on android styles Dec 18 14:22:15 That's the closest you will get Dec 18 14:23:02 jonc, yes. I shouldn't have been lazy, already got one. Thanks. Dec 18 14:31:12 hey Dec 18 14:31:19 ? I recently upgraded from c2dm to GCM Dec 18 14:31:20 gcm send shows on server that message successfully delivered but message is not received on the app Dec 18 14:31:56 throw your device through a window Dec 18 14:32:08 sometimes the message gets stuck, and you need to jar it loose Dec 18 14:32:34 sound advice ^ Dec 18 14:32:47 by discounting the effect of gravity while providing a gentle vibration, you can help worry the message free from wherever it got lodged Dec 18 14:38:14 hmm, interesting Dec 18 14:41:55 apparently pointing to image drawables in xml drawables disables scaling on the image... Dec 18 14:41:59 or something Dec 18 14:45:47 working on a laptop without an external monitor sucks Dec 18 14:46:33 no multiple desktops support? Dec 18 14:47:18 I am getting an Chromium error in a WebView - "AwContents﹕ nativeOnDraw failed; clearing to background color." Dec 18 14:47:33 Have no clue how to get rid of it Dec 18 14:51:48 bobek, it's mostly screen size / resolution that is the problem Dec 18 14:52:47 alt+tabbing through things isn't bad, but not having enough screen real estate for having an IDE open and still being able to see more than a couple lines of code is a problem Dec 18 14:55:28 hi channel; How I can write android service in c++ using ndk? Dec 18 14:56:09 you can't. Dec 18 14:56:24 Mavrik: So, what should I do??? Dec 18 14:56:55 write Java Dec 18 14:59:21 Leeds: I have to write c++ Dec 18 14:59:31 I do enjoy a good chuckle, Leeds Dec 18 15:00:15 BlackDal, use jni Dec 18 15:00:20 BlackDal: http://s.scruffyfox.me/badndk.png Dec 18 15:00:47 oles__: I know about jni, but both y service and ui are c++ Dec 18 15:01:37 does anyone around here speak romanian? Dec 18 15:02:04 CallumTaylor: I know that, but my app is ready, I want to chang one of my classes to service or make my application always alive in bachground Dec 18 15:03:08 well Dec 18 15:03:19 what do you want us to say? check next time? Dec 18 15:03:33 find a way to bridge Java to service? Dec 18 15:03:44 CallumTaylor: what about i know C/C++ better than java, or i don't like java? Dec 18 15:04:01 rendar, you switch careers Dec 18 15:04:09 its irrelevant you can't make an android app with c/c++ alone Dec 18 15:04:12 you can't write microcontroller code in ruby either Dec 18 15:04:29 CallumTaylor: neither with frameworks such as Qt? Dec 18 15:04:40 Mavrik: I want you help me to create a service in c++ and connect to it with c++ Dec 18 15:04:51 you do understand that android IS a framework, right? Dec 18 15:05:02 yeah, so? Dec 18 15:05:10 rendar: write scala Dec 18 15:05:17 rendar: you can write C++ but it's not worth it Dec 18 15:05:19 so using qt is stupid Dec 18 15:05:32 CallumTaylor: if i know C++ better than java, its not Dec 18 15:05:38 yes it is Dec 18 15:05:44 funkbox: i was arguing about only if i prefer C++ than java Dec 18 15:05:47 CallumTaylor: why?! Dec 18 15:05:59 rendar: i prefer F# to java but i don't go around using mono Dec 18 15:06:04 for a decent developer its irrelevant what language you know best, you use the language best suited for the task Dec 18 15:06:11 i prefer C# to javascript yet i don't compile C# to javascript and run that Dec 18 15:06:12 Hey guys; anyone can (or want to) help me? Dec 18 15:06:15 rendar, Android userspace is written in Java Dec 18 15:06:26 rendar, you need to talk to it for your app to communicate anything with the OS Dec 18 15:06:27 a decent developer can write/learn any language Dec 18 15:06:34 rendar, that's what limits you in your app choice Dec 18 15:06:40 errr, language choice Dec 18 15:06:43 i understand that Dec 18 15:06:48 but i like portability Dec 18 15:06:59 write once, run everywhere Dec 18 15:07:25 so why do you dislike java Dec 18 15:07:37 rendar, sadly, not how mobile platforms work today Dec 18 15:07:46 Mavrik: yeah, right Dec 18 15:07:47 rendar: I wrote one; and ported to win, linux and mac os x, but in android with qt qe have a lake about services Dec 18 15:08:06 any link or idea? Dec 18 15:08:13 Mavrik: but for example, if android used C/C++, it would be quite simple to write a portable layer between ObjectiveC and android Dec 18 15:08:34 BlackDal: you mean with Qt ? Dec 18 15:08:43 rendar: yeah Dec 18 15:08:55 BlackDal: yeah i think Qt doesn't work well in android yet, i guess Dec 18 15:09:25 thats exactly my point: if android supported C/C++ at its base instead of java, it would have been more easy to write portable layers between android/iOS/whatever Dec 18 15:09:29 rendar: It's good (with aml and not with qwidgets) but for simple apps Dec 18 15:09:43 BlackDal: right Dec 18 15:11:02 rendar, of course it would be Dec 18 15:11:09 it would also be noticably more horrible to write apps Dec 18 15:11:28 Mavrik: no, you could still have java Dec 18 15:11:33 Mavrik: but on top of that Dec 18 15:11:42 sigh, to accomplish a circular progress bar I had to use secondary progress drawable for the background -.- Dec 18 15:12:04 Mavrik: then other frameworks would use that bottom layer to write portable stuff, e.g. a binding with google v8 to write portable js stuff Dec 18 15:12:27 *shrug* Dec 18 15:12:35 as I user I really don't want portable stuff on my device Dec 18 15:12:49 as a programmer... I'm not really invested enough in languages to care much Dec 18 15:13:02 even though having ability to write stuff in Python or something more modern would be nice Dec 18 15:13:06 the user do not see any difference, but for programmer, but mostly for *firms* portability is very important Dec 18 15:13:40 i wish companies would stop worrying so much about profits and focus more on creating decent products Dec 18 15:13:44 seems to me that portability is more important for open source geeks than companies :) Dec 18 15:13:54 CallumTaylor: how? Dec 18 15:14:12 CallumTaylor: how a company can focus on decent products if they have to hire 1 guy for android, 1 for iOS, 1 for windows, etc? Dec 18 15:14:19 nah, portability is actually pretty nice Dec 18 15:14:28 it's just the software tends to lean towards bad UX Dec 18 15:14:36 if you're focused so much on making your app portable to other platforms, you're going to end up with 1 ok app, and 3 other shit apps that don't feel native Dec 18 15:14:45 other quetsion: any link or document about android service life cycle? Dec 18 15:14:47 I just wish Xamarin would announce a decent free tier for OSS/home projects Dec 18 15:14:52 you make an app iOS first, then port it over to android, its not going to be a nice app Dec 18 15:15:02 BlackDal, yep, here: http://developer.android.com/guide/components/services.html Dec 18 15:15:06 CallumTaylor: thats exactly what the web does (more or less) :-) Dec 18 15:15:38 the web is agnostic to what device you're running unless stupid designers make their mobile sites look like an app rather than a responsive version of their original site Dec 18 15:16:52 CallumTaylor: well, web apps are not interested in looking native, they're just apps with their own button/images and so on Dec 18 15:16:59 CallumTaylor: a portable application could be like that Dec 18 15:17:35 and as a user, if it was an app i had gotten from the play store, would uninstall it immediately because its not how a native app would feel Dec 18 15:17:51 Mavrik: In this link wrote about bound service: Dec 18 15:17:51 > Multiple components can bind to the service at once, but when all of them unbind, the service is destroyed. Dec 18 15:17:57 CallumTaylor, I would rather make as much logic portable as possible and reimplement the interface for each platform Dec 18 15:18:06 I don't want to my service stop (like messengers) Dec 18 15:18:17 is there any way to show a contact picker without requesting READ_CONTACTS ? Dec 18 15:18:25 its like the idiots who use web views in their apps (phone gap, jquery mobile etc) Dec 18 15:18:27 BlackDal, then don't create bound service :) Dec 18 15:18:42 the document DOES talk about two types of services Dec 18 15:19:14 Mavrik: Started service's life is to shorter! Have we another types ? Dec 18 15:19:28 uh, no it isn't. Dec 18 15:19:34 read again. Dec 18 15:19:53 I mean really, how can we help you if you don't even read basic documentation of A4 paper size ;/ Dec 18 15:20:00 CallumTaylor: you're right about feeling native, but you look that only from your point of view! try to view it from a point of view of a developer or a company that must enter in the market as soon as possible..they'll surely use phonegap and such stuff, because its more practical Dec 18 15:20:18 rendar: i wouldn't Dec 18 15:20:19 Mavrik: Excuse me my English is too bad Dec 18 15:20:19 and that's exactly the problem I'm talking about Dec 18 15:20:30 * CallumTaylor focused too much on profit and not making a good product Dec 18 15:20:36 what is he on about Dec 18 15:20:50 CallumTaylor: they want to make a good product, but in such situation time is critical Dec 18 15:21:10 Mavrik: Started service has no communication :D Dec 18 15:21:29 then they obviously don't care enough about the product if they're willing to sacrifice the initial quality of the app, remember, first impressions are lasting impressions Dec 18 15:21:46 if i install your 1.0 and its terrible, what makes you think I'm going to try try 2.0 which is how it should have been Dec 18 15:22:08 yeah, thats a problem Dec 18 15:22:09 ask evernote on android :P Dec 18 15:22:16 ask facebook Dec 18 15:22:21 they got massacred by Keep Dec 18 15:22:26 yep Dec 18 15:22:37 sometimes it doesn't matter how late you are into the game Dec 18 15:22:43 if you have a better product, you will come out on top Dec 18 15:23:12 if i put a native app in my assets and copy it out to /data will it take root access to chmod that file to 777 ? Dec 18 15:23:26 CallumTaylor: thats mostly true, but look for example at fb/google+, if google+ shipped before than fb, now everyone was on g+ :) Dec 18 15:23:41 I440r, nope Dec 18 15:23:45 I440r, that works just fine Dec 18 15:23:50 awesome! Dec 18 15:23:52 just remember, your binary must be built for target platform Dec 18 15:24:02 I440r, btw, don't chmod it via shell, but use Java call Dec 18 15:24:15 (and don't do 777, it's silly :P ) Dec 18 15:24:40 mavrik i think i read that somewhere an d 777 was just easier to type on irc lol Dec 18 15:24:46 :) Dec 18 15:24:54 File f = new File("/my/executable") Dec 18 15:25:00 f.setExecutable(true, true); Dec 18 15:25:08 there :) Dec 18 15:25:13 mavrik awesome lol. Dec 18 15:25:25 NOW i can write all my android apps in FORTH!!! Dec 18 15:25:28 screw java :P~ Dec 18 15:25:32 :D:D Dec 18 15:25:41 well... not quite but close Dec 18 15:26:07 right now the binary is assembled for armv7 - will that work on all android devices or should i assemble for v6? Dec 18 15:26:27 um, armv7a without NEON will work on most newer stuff Dec 18 15:26:36 there are older devices with arm5 and 6 processors Dec 18 15:26:47 there are of course also devices with x86 processors now Dec 18 15:26:52 i do not believe this will work on an arm v5 Dec 18 15:27:01 I440r, I suggest you include a dummy .so library in "libs/armeabi-v7" Dec 18 15:27:07 mavrick well i have an x86 forth {) Dec 18 15:27:13 aha Dec 18 15:27:14 I440r, so Play Store will filter your app and show it only on compatible devices Dec 18 15:27:40 Play Store inspects libs folder for native libraries in their architecture subfolders and then filters compatibility accordingly Dec 18 15:27:41 ill put it in armeabi-v6 then because it doesnt actually use any v7 features i dont think Dec 18 15:27:53 I440r, only "armeabi" and "armeabi-v7" are supported Dec 18 15:28:04 sorry, "armeabi-v7a" Dec 18 15:28:10 and if you compile for v7... it WILL NOT work on v6 :) Dec 18 15:28:57 i can assemble for armv6 Dec 18 15:29:13 mhm Dec 18 15:29:19 i kind of dont want to limit to v7 and it wont work on a v5 Dec 18 15:29:23 I suggest just dropping v6, there's pretty much no devices with that outside Dec 18 15:29:26 and you can build faster code Dec 18 15:29:36 aha Dec 18 15:29:45 so limiting to v7 wont limit MUCH ! Dec 18 15:29:47 I doubt there was a v6 device released in last two years at all Dec 18 15:30:01 or 4 years while we're at it... last one I've seen was old HTC Tattoo/Click Dec 18 15:30:38 meh :P~ Dec 18 15:30:41 ty lol Dec 18 15:31:32 so if i put my forth.so (really a elf executable) in lib/armeabi-v7 where is it extracted to? and will it be extracted +x ? Dec 18 15:32:00 uhm Dec 18 15:32:15 actually, you should put executables in assets and unpack them really :) Dec 18 15:32:29 oh so just create a DUMMY lib in there Dec 18 15:32:30 trying to sneak executables into libs dir is... annoying Dec 18 15:32:33 do-nothing.so Dec 18 15:32:33 yeah Dec 18 15:32:36 yep :) Dec 18 15:32:39 just to act as a filter :) Dec 18 15:32:45 see! im getting it... slowly ! Dec 18 15:32:45 lol Dec 18 15:33:05 I've tried abusing libs dir for that... but it wasn't reliable of where Android threw those libs :) Dec 18 15:33:34 so i now have a zero file size do-nothing.so in there Dec 18 15:33:38 will that work? Dec 18 15:34:44 I believe API 8+ is where like 95% of android devices are Dec 18 15:37:23 Mavrik, so..i have my dummy .so file, i have my forth executable in assets (which is where i already had it).. i copy it out to /data/somewhere .. i make it +x.. i execut it. it will not DIE till i tell it to or android kills it Dec 18 15:37:25 api9 Dec 18 15:37:56 it is not a ./forth do-this it is something that will remain resident that i will read/write from/to Dec 18 15:38:02 will android kill that executable? Dec 18 15:38:22 .... what? Dec 18 15:38:50 * lov just scrolled up Dec 18 15:38:54 10:25:32 < I440r> NOW i can write all my android apps in FORTH!!! Dec 18 15:39:01 * lov decides that it's not even worth reading Dec 18 15:39:05 lov yup Dec 18 15:39:27 lov i now have a full blown arm forth compiler that runs just fine on my android phone Dec 18 15:39:39 blown? Dec 18 15:39:42 you can't write android apps per se Dec 18 15:39:48 you can write stuff that runs from the commandline Dec 18 15:39:51 developed on a beagle board xm but runs just fine on the phone with no mods Dec 18 15:39:52 but it won't be an actual app Dec 18 15:40:03 yeah, bear in mind that android has a dramatically different lifecycle from what you're used to Dec 18 15:40:11 every android app is actually a forked process of zygote that runs the dvm Dec 18 15:40:29 you can't start an android app from the command line. Dec 18 15:40:47 you can start a linux binary from the command line, of course, but it's not the same thing. Dec 18 15:40:55 Does someone know what the insert method of the sqliteopenhelper class returns? It returns a long, is this an id or something? Dec 18 15:40:56 http://s.scruffyfox.me/VCv.gif Dec 18 15:41:01 pfn the forth COULD be an android app, i could add the glue code that would make android think it was just another dalvik executable. i would of course have to give it the ability to execut java bytecode :) Dec 18 15:41:08 as for a daemon process; the linux kernel will only kill it on oom Dec 18 15:41:10 that would be totally not worth the effort Dec 18 15:41:16 Dreeass: if only there was documentation for all of these methods and classes Dec 18 15:41:19 alas! Dec 18 15:41:22 I440r, that's not how android apps work Dec 18 15:41:25 it shall remain a mystery for the ages! Dec 18 15:41:35 I440r: yeah, that's really not how it works. Dec 18 15:41:42 android apps aren't "dalvik executables" Dec 18 15:42:02 I440r: the closest you could get would be to write your forth code as a .so which will be dynamically loaded at runtime by some sort of java shim (or even a NativeActivity!) Dec 18 15:42:05 android apps are apks that contain many things Dec 18 15:42:11 I440r, not quite Dec 18 15:42:18 at least in terms of launching Dec 18 15:42:31 lov, android developers is unreachable for me. Dec 18 15:42:54 lov, got the link (http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html) from Google but it keeps loading for some reason. Dec 18 15:42:57 I440r: again, android apps are forked processes of zygote. Even if you were to somehow tack on the dvm to your executable, you can't fork into it. Dec 18 15:43:08 Dreeass: page loads pretty quickly for me. Dec 18 15:43:14 Dreeass: you might want to try downloading the documentation via the SDK Dec 18 15:43:59 lov, is there a way of seeing the documentation in the autocomplete of IntelliJ? Dec 18 15:44:09 Dreeass: if you have it downloaded, yes. Dec 18 15:44:46 lov, alright. Dec 18 15:46:17 I440r, yeah, I don't think your app has kill permission :) Dec 18 15:46:25 you just need to make sure it actually exits :) Dec 18 15:46:32 and Android apps mostly ARE processes -_- Dec 18 15:47:44 mavrik i can kill the forth easy from my java... ill be talking to it via its stdin/stdout... i just send it a string "bye\n" Dec 18 15:47:47 and it dies :P Dec 18 15:48:05 :P Dec 18 15:48:09 ipc via stdin/out? yuck :p Dec 18 15:48:20 I440r, maybe you should think about building an .so shared library Dec 18 15:48:22 and using JNI bridge Dec 18 15:48:29 Mavrik, they /are/ processes, but forked from zygote Dec 18 15:48:32 pfn only for command - data would be done some other way Dec 18 15:48:38 as for kill Dec 18 15:48:46 as long as you exec the process from your app, you're free to kill it Dec 18 15:49:05 if exec is the way you want to operate Dec 18 15:49:07 mavrik i have tried to rtfm doing that but the instant the tutorial mentions eclipse i stop reading. i read up to the word "eclipse" then close the tutorial Dec 18 15:49:11 but as mavrik says, a jni bridge is best Dec 18 15:49:17 why would you need eclipse Dec 18 15:49:19 or a tutorial Dec 18 15:49:21 I440r, maybe you should continue. Dec 18 15:49:22 yeah. Dec 18 15:49:22 ndk-build + vim Dec 18 15:49:24 = done Dec 18 15:49:30 you write an .so, export funcions Dec 18 15:49:41 well, javah + ndk-build + vim Dec 18 15:49:45 you just need to know what kind of naming convention JNI expects and thatćs it Dec 18 15:50:01 javah handles the initial code-gen Dec 18 15:50:15 Mavrik, no. if it even so much as MENTIONS eclipse and "click here. twiddle this menu... select this gizmo" then it is totally useless to me. i wont TOUCH elcipse or any tutorial geared to it Dec 18 15:50:27 then don't read tutorials Dec 18 15:50:33 i cannot even state how much i loathe and dispise eclipse Dec 18 15:50:36 I440r, why are you talking about eclipse when we're talking about shared libs? O.o Dec 18 15:51:00 Mavrik, because i cannot find ANY ndk tutorail that doesnt tutor via eclipse Dec 18 15:51:11 i.e. first create a new eclipe project called... .. . Dec 18 15:51:12 official doc in the package? Dec 18 15:51:16 thats as far as i read Dec 18 15:51:20 * pfn questions a persons abilities if they are only able to learn via tutorial and not reference documentation Dec 18 15:51:21 NDK is just gcc and set of libsc headers that are compatible with Android Dec 18 15:51:25 I440r: look in the Android NDK / samples directory Dec 18 15:51:25 or, rather, skill level Dec 18 15:51:45 the officl docs and examples and what have you are USELESS to learn it from from the ground up. they are perfect for "i already know this and need a reference" Dec 18 15:51:50 jonp i did Dec 18 15:52:00 I440r: you can generate projects from the command line via the "android" binary. Dec 18 15:52:00 #include "jni.h" Dec 18 15:52:06 I440r, and I already told you the process for learning from the ground up Dec 18 15:52:06 I440r: the reference you want is the JNI book. :-) Dec 18 15:52:06 no point in reading ANY further Dec 18 15:52:11 do jni on normal java Dec 18 15:52:16 because my app does NOT contain one single line of C code Dec 18 15:52:16 then do ndk-build on android Dec 18 15:52:23 * lov sighs Dec 18 15:52:24 pfn: i have. Dec 18 15:52:28 yeah. step one: learn reflection and JNI Dec 18 15:52:30 I440r: I am glad that you are a special snowflake. Dec 18 15:52:31 lov: you live! Dec 18 15:52:32 I really am. Dec 18 15:52:41 dragorn: yeah, I stepped out of #android-dev because it was giving me an ulcer. Dec 18 15:52:44 See: This current conversation. Dec 18 15:52:56 pfn: i've also done the whole toolchain thing so i can use gcc/etc. from automake Dec 18 15:53:03 lov im a flake but so what Dec 18 15:53:06 jonp, nice job Dec 18 15:53:15 then built an entire product atop it Dec 18 15:53:25 I440r: no one (except perhaps you!) is going to write a tutorial on how to do Android development using Forth. Dec 18 15:53:27 and now i'm reaping the...benefits? insanity? chaos? Dec 18 15:53:32 not sure where i'm going there Dec 18 15:54:12 anyway, Android/JNI isn't much different from Java/JNI. just the inability to load .class bytecode is missing Dec 18 15:54:34 There are a great many concepts about android which assume that you are developing from the Java layer. While you don't need to use Eclipse/Ant (the new Android build system is based off of IntelliJ and Gradle), you're going to have to do translations into what you WILL use to build. Dec 18 15:54:42 lov i dont need it in forth i need a tutorial that does NOT assume eclipse Dec 18 15:54:44 If you utterly refuse to figure out how to do that, welp. Dec 18 15:54:57 The way you make Forth work with JNI: Compile to a standard .o, figure out the forth naming conventions, map the forth symbols to JNI-named symbols, load per usual. Dec 18 15:55:11 I440r: best of luck, let us know how that works out. Dec 18 15:55:14 You may need shim functions for every forth function, if you can't force forth symbol naming conventions to match JNI classpath conventions. Dec 18 15:55:24 dragorn you mean all 8000 + words? Dec 18 15:55:28 no way Dec 18 15:55:42 dragon no i dont. i need ONE shim function, maybe 2 Dec 18 15:55:52 one to send commands to forth. one to read results Dec 18 15:55:56 For every function you define in forth Dec 18 15:56:27 every entry point from java to forth needs a function which resolves in the object file w/ a symbol name matching the java jni classpath naming convention Dec 18 15:56:29 nope. dont need them, forth has an interpret loop called quit. quit accepts input. gives output Dec 18 15:56:32 or it won't load into a native class properly. Dec 18 15:56:36 dragorn: nah Dec 18 15:56:57 dragorn: http://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html#wp17734 Dec 18 15:57:02 dragorn, it wont NEED to loadinto a native class. all those symbols can be considered internal to the process Dec 18 15:57:03 so you're not really talking about doing JNI at all, you're talking about embedding a forth interpreter and loading the code from java Dec 18 15:57:18 dragorn: as long as you can generate function pointers, you don't need to follow the Java symbol naming convention Dec 18 15:57:23 the only JNI callable things i need are "do this" and "tell me what happened" Dec 18 15:57:24 Hi guys, does anyone know about how to price an app? If someone were to approach a developer and offer to buy the app from him, what's the general rule for pricing the user base, for example? Dec 18 15:57:30 jonc: interesting Dec 18 15:57:37 jonp: interesting, rather Dec 18 15:57:47 dck28: that's something you have to decide for yourself. Dec 18 15:57:57 dck28: it's going to vary. Dec 18 15:58:01 dragorn: quite. i use it a lot. ;-) Dec 18 15:58:14 Price and sales per time gives the income for purchases. Dec 18 15:58:21 jonp: I didn't actually know about that function, so that's cool. Yeah, that would save me some time in some instances :) Dec 18 15:58:23 the ISSUE is that what ever gets linked against your native app when you #include "jni.h" i will need to build into my forth IN FORTH or in asm Dec 18 15:58:24 Then in-app purchases and ad revenue on top of that. Dec 18 15:58:25 are there any metrics that are common? like inputing the daily install rate and such? Dec 18 15:58:51 dck28: again, you kind of have to figure out what your income mechanism is and what your projected income is from the app. Dec 18 15:59:05 dck28: fundamentally - it's up to the author. Something that will make the author $10 in the future - that is all they expect - may be unwilling to sell for $1K Dec 18 15:59:06 for example, if your app costs $1, what's your daily install rate, how long do you expect it to continue at that level, etc. Dec 18 15:59:12 if you have IAP, what's that rate? Dec 18 15:59:15 doing this over jni is horrendously complicated if you dont use C and #include whatever.. Dec 18 15:59:18 How much does it cost to continue to develop content? Dec 18 15:59:20 what's your churn rate? Dec 18 15:59:31 dck28: Onthe other hand - if they expect $1K - they may be willing to sell for $10 if they've run out of cash, and need it now Dec 18 15:59:32 I440r: you don't need C + #include for JNI Dec 18 15:59:49 I440r: you just need a mechanism that can read at offsets within structures + pointers and invoke C function pointers Dec 18 15:59:52 jonp i need to know how to interface TO jni inside my forth Dec 18 16:00:05 offsets + function pointers + invocation Dec 18 16:00:09 jonp. WHAT c function pointers... there are none :) Dec 18 16:00:11 can do in assembly, from C Dec 18 16:00:16 I440r: JNI is built around function pointers Dec 18 16:00:24 Thanks guys... Dec 18 16:00:27 I440r: the JNIEnv pointer is a pointer to a structure containing...function pointers. Dec 18 16:00:47 I440r: e.g. `struct JNIEnv { void (*DeleteGlobalRef)(JNIEnv*env, void* value); }; Dec 18 16:01:07 I think it's even harder to gauge in my case because the app is basically free... the purchase, as far as i can see, is purely of the user base Dec 18 16:01:14 I440r: so using from not-C is easy, SO LONG AS you have a decent C interop lib Dec 18 16:01:39 jonp. jonp i have no FFI. but will need Dec 18 16:01:53 yes, you'll need an FFI. :-) Dec 18 16:02:12 and to have that i need a clearer understanding of that interface :) Dec 18 16:02:27 read jni.h. :-) Dec 18 16:02:33 that's a pretty clear description of the interface Dec 18 16:02:33 Hello, I need help with share actions. I am trying to share a document from an url with other apps. anyone knows how? Dec 18 16:02:42 i wont be calling C functions from forth... i will need my forth to be able to be called FROM Dec 18 16:02:43 jni is a mechanism for calling into native code, you need to bridge native code to forth Dec 18 16:02:47 the JNI book published by Sun/Oracle is also handy Dec 18 16:02:48 kk Dec 18 16:02:57 and the easiest native code is C Dec 18 16:02:59 pfn: yup, which is where JNIEnv::RegisterNatives() comes in Dec 18 16:03:00 you MUST write your shim in C Dec 18 16:03:03 pfn: no Dec 18 16:03:15 pfn: IFF you can generate a function pointer with C calling convention + arguments, you're fine Dec 18 16:03:22 well, you don't have to, but need to expose an interface that works like one Dec 18 16:03:23 pfn "you must" is not quite accurate Dec 18 16:03:27 pfn: no need to generate C code, no need to obey the JNI naming convention. Dec 18 16:03:36 well, if you can create a .so with C calling conventions, then sure Dec 18 16:03:36 Hey guys. I am attempting to programmatically install an APK by starting a view intent pointing to the file in question. However I am met with an ActivityNotFound exception. Is my intent malformed? Dec 18 16:03:37 System.Exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=/data/data/com.unity3d.player/files/Untitled.apk typ=application/vnd.android.package-archive } Dec 18 16:03:46 pfn: you don't even need a .so Dec 18 16:03:49 with all the appropriate symbols Dec 18 16:03:54 pfn: if you can generate code at runtime, you're fine Dec 18 16:03:56 jonp, ? how do you load the library then Dec 18 16:04:07 pfn: so long as you can generate function pointers callable by C Dec 18 16:04:12 just generate the symbols in memory? I suppose Dec 18 16:04:15 pfn: well, you do need some bootstrap somewhere Dec 18 16:04:29 pfn: so a Java stub that does System.loadLibrary() to load your .so is...handy? necessary? Dec 18 16:04:38 AngryAnt: a VIEW intent won't install an apk. Dec 18 16:04:39 yeah, you'll need a .so to do this Dec 18 16:04:43 yeah Dec 18 16:04:44 to generate symbols in memory Dec 18 16:04:47 you can't just do this in java Dec 18 16:04:48 but the entire .so doesn't need to be in C Dec 18 16:04:51 which is my point Dec 18 16:04:54 jonp, yes, that is true Dec 18 16:04:57 the use of C can be minimal/non-existent Dec 18 16:05:08 but there needs to be some shim/bridge Dec 18 16:05:14 and that must exist/be true Dec 18 16:05:16 right Dec 18 16:05:29 AngryAnt: take a look at http://developer.android.com/reference/android/content/Intent.html#ACTION_INSTALL_PACKAGE if you're API 14 or above Dec 18 16:05:49 and arguably, writing such a bridge for someone with no experience with JNI/FFI/NDK/C is pretty much more difficult Dec 18 16:05:53 otherwise, developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_INSTALL Dec 18 16:06:16 pfn: yes. _much_ more difficult, as there are _lots_ of moving parts Dec 18 16:06:38 Hi, I can't find a way to test my inapp purchase. I have the developer account, a test account, the address of the test account is saved in the developer's account test list. I also have the app in Draft and one inapp item ready to be activated when the app will be published Dec 18 16:06:41 pfn when i started writing my linux x86 forth compiler i had zero knownedge of anything related to linux coding. it is now the worlds fastest compiler of any non trivial language and does not use any external libraries. Dec 18 16:06:43 so now I can test my app with the test account, I can see the inapp but it ask me for the credit card Dec 18 16:06:48 is that a way to make the test purchase without paying the full price? Dec 18 16:06:55 im now at ground zero for java/android Dec 18 16:07:03 it's still linux Dec 18 16:07:07 yup Dec 18 16:07:09 "ground zero for javaandroid"? Dec 18 16:07:15 not sure what that means Dec 18 16:07:16 Gaggo: yes, though I don't recall how. Dec 18 16:07:28 great Dec 18 16:07:29 which is why my arm linux forth runs just fine in android Dec 18 16:07:43 I440r: 64-bit ready? :-) Dec 18 16:07:45 presumably so Dec 18 16:07:52 linux has been 64bit for ages Dec 18 16:10:16 jonp no i dont code x64 but it runs just fine on a 64 bit linux Dec 18 16:10:20 lov: Interesting. Thanks. I was going by this advice, but I guess it's outdated by now? http://stackoverflow.com/questions/9045837/android-application-self-update Dec 18 16:10:25 www.isforth.com Dec 18 16:10:41 i didnt release the arm version of it yet .. Dec 18 16:11:47 hello world! Dec 18 16:11:53 i'm developing dSploit Dec 18 16:12:37 i'm trying to put a huge download in background and show the progress in the notification area Dec 18 16:13:03 everything seems to work fine but if the app get closed the notification stay here Dec 18 16:13:36 is not a bad thing unless that the AsyncTask get killed too Dec 18 16:13:40 tux_mind: Android has an asynchronous lifecycle. finishing your activity doesn't finish your app. Dec 18 16:13:48 You should not do your downloads in your activity, however. Dec 18 16:13:55 Start a service to do this, or use Android's download manger. Dec 18 16:13:56 *manager Dec 18 16:14:06 i tried with Service, AsyncTask and Thread Dec 18 16:14:29 everyone get killed when my MainActivity dies Dec 18 16:14:41 but the notification still here Dec 18 16:15:02 lov: thanks, i'll give a look to the androifd download manager Dec 18 16:17:58 i need to have full control of the notification UI, i need to change it to a new background task ( tarball extraction ) when download complete. Dec 18 16:18:09 so the android download manager is not a solution Dec 18 16:19:07 use a service and setForeground Dec 18 16:19:19 and use startService, not bindService for something that should run without an activity Dec 18 16:20:00 lov: So I went through the two alternatives you outlined with the same exception as a result. Any ideas what else could be causing it? Any common pitfalls you're aware of? Dec 18 16:21:31 Hum. Dec 18 16:21:46 pfn: ok, i'll try...i need a while to rewrite the code... Dec 18 16:21:53 AH Dec 18 16:21:56 pfn: thanks ;) Dec 18 16:22:00 I just realized, this is in your app private data directory Dec 18 16:22:07 so, the packagemanager doesn't have permissions to view it Dec 18 16:22:13 place the APK on external storage, or make it world readable Dec 18 16:23:56 So it's actually a permissions related error masquerading as an intent resolution exception? Dec 18 16:24:48 lov: don't put APKs on external storage Dec 18 16:24:50 is the playstore url going to work at all when all you have is a beta apk? Dec 18 16:25:40 evanc: you solve AngryAnt's problem then :> Dec 18 16:25:47 AngryAnt: that's my guess, only thing I can think of offhand. Dec 18 16:26:47 Thanks. I'll give it a go :) Dec 18 16:27:37 evanc: It's not for long-term storage. Merely while the apk is downloading - until it has been installed. Dec 18 16:30:48 AngryAnt: right Dec 18 16:31:09 and I'll write an app to switch out the APK with another one that has malware in it before you hand it off to PackageManager :P Dec 18 16:38:36 evanc: In a way that it still validates as properly signed by me? Dec 18 16:39:32 AngryAnt: why would that matter? Dec 18 16:39:52 you're just saying "yo, packagemanager, please install file:///sdcard/hax/Foo.apk" Dec 18 16:41:02 After I validate its signature, yes. Dec 18 16:45:13 there's still a race condition Dec 18 16:45:43 AngryAnt: anyway, download it to something that's not world-writeable, and then make it world-readable when you hand it off to packagemanager Dec 18 16:46:19 easiest way to self-update, use pluggable/modular code that's contained in a .dex file you load manually Dec 18 16:46:25 then just download the dex Dec 18 16:46:33 discard the old classloader, and use a new dexclassloader to load the new code Dec 18 16:46:38 and the main app itself is just a loader/stub Dec 18 16:47:08 resources are a separate beast Dec 18 16:47:20 and for that matter, no build tool handles this out of the box :-/ Dec 18 16:48:12 any of you have a sony xperia z? Dec 18 16:48:28 i'm very curious what keycodes are sent for actionDone when you press done Dec 18 16:49:08 Yea I ended up going with the full apk replacement as I have a string of binaries and resources also needing patching. Dec 18 16:50:09 evanc: So you'd recommend making the private data directory world readable? Dec 18 16:50:52 just the file, I think. Dec 18 16:51:16 I don't in particular have anything I need to shield from other processes, so that'd be fine by me. Dec 18 16:57:05 finally, got my work email on my phone without root/enabling-pin-password Dec 18 16:58:40 * pfn hacked the poop out of the aosp email/exchange packages Dec 18 16:58:53 disabled the built-in apps, and installed my own under my own package names Dec 18 17:00:48 I found that my android emulator crashes on most apps saying Unfortunately app has been stopped and web browser hangs but there is internet connection (search works nice) Dec 18 17:01:04 AngryAnt: that would work, but I'd recommend doing just the file Dec 18 17:01:07 why it's so unstable? Dec 18 17:02:09 <|0xD34D|> karab44: check logcat and see what's going on in more detail Dec 18 17:02:14 https://gist.github.com/pfn/8025880 Dec 18 17:02:15 weee Dec 18 17:02:47 in android studio can I pin the stuff at the bottom (logs, terminal etc.) to the right hand side? Dec 18 17:04:20 yes Dec 18 17:04:31 drag the toolwindow button to the righthand side Dec 18 17:04:40 I keep my logcat toolwindow in the bottom right Dec 18 17:05:34 thank you Dec 18 17:07:36 awww, gist descriptions don't support markdown Dec 18 17:08:25 okay Dec 18 17:18:58 http://paste.ubuntu.com/6595308/ Dec 18 17:19:05 it's info level Dec 18 17:20:09 I tried to open webbrowser and it failed to open Dec 18 17:22:54 I used nexus 7 preset with api 19 Dec 18 17:27:35 When you bring up the open apps and swipe one away, is that a force close? Dec 18 17:28:48 http://static.lastlog.it/29-compiles-and-works-first-time.jpeg Dec 18 17:29:00 I'm amazed Dec 18 17:29:47 Or not, I was foooled! Dec 18 17:31:47 so swiping away an app is more of a soft close than a force close Dec 18 17:32:02 from what I can find it's like hitting the back button to exit the app? Dec 18 17:33:51 What can you edit after uploading an app to the play store? Dec 18 17:46:16 hello, maybe its not exactly the right place but i cant find any little advice: http://forum.xda-developers.com/showthread.php?p=48581096#post48581096 Dec 18 17:49:23 A Services onCreate is only ever called once correct? If it is not already running Dec 18 17:50:20 jonc: yes Dec 18 17:50:44 and will only ever be killed if the system is running really low on memory? Dec 18 17:50:51 or the app is force closed? Dec 18 17:51:02 Yes Dec 18 17:51:10 or you stop the service Dec 18 17:51:13 or it stops itself Dec 18 17:51:13 yeah Dec 18 17:51:31 My first app is starting to come together Dec 18 17:51:43 I am running into some issues, I start a blue tooth connection inside a service (3rd party library for their wrist band) Dec 18 17:51:53 One day work and I got most of the things working, now I need to fix something and put them together. Dec 18 17:52:01 jonc Dec 18 17:52:05 if I swipe away the app, the connection to the device drops right away, but the service is still running Dec 18 17:52:08 What Bluetooth device? Dec 18 17:52:17 it's a bio sensor watch Dec 18 17:52:19 Ah Dec 18 17:52:20 research device Dec 18 17:52:23 *sigh* Dec 18 17:52:49 I'm planning to do something new later on involving a bluetooth device ;p Dec 18 17:52:51 but I am wondering how much of this is my fault and how much is their library not doing such a good job at this Dec 18 17:53:10 jonc, I wouldn't know Dec 18 17:54:45 Wow, I'm literally hard coding today. It's already 7PM and I barely noticed. Dec 18 17:55:30 and android studio is pretty bad at showing old logs, I can recreate the error if the phone isn't plugged into my computer Dec 18 17:55:43 Dreeass: then you should be getting warnings not to 'hard code' Dec 18 17:56:05 whats the app Dreeass? If you dnt mind me asking X) Dec 18 17:56:06 jonc, Android Studio is pretty bad overall at the moment. Dec 18 17:56:40 shmmoz, I find it fun. Singing along with the music that's on and coding. It's one of the moments I don't give a shit what music is on; Dec 18 17:56:54 Wow Dec 18 17:56:55 agreed, the layout editor is nice Dec 18 17:56:58 indeed! Dec 18 17:57:39 lacx, it's an application that will notify you of quite some stuf. Stuff that isn't available in certain apps for example or tries to get the functionallity of a single app. Dec 18 17:58:07 cool X) Dec 18 17:58:09 lacx, for example RSS feeds, when a movie comes out... Dec 18 17:58:26 Mostly an app for myself but why not publish it? Dec 18 17:58:34 like an aggregator? Dec 18 17:58:38 yea exactly Dec 18 17:59:09 No, that's what I didn't want to achieve. Dec 18 17:59:42 It's something specific to your needs. Let's say I want to be reminded when the next Hungergames movie is coming out, I can tell the app to keep track of that. Dec 18 18:00:05 i see X) Dec 18 18:00:27 The RSS feeds is mostly for non-specific stuff, not majour websites. Dec 18 18:00:30 are* Dec 18 18:01:41 at the moment im working witht the Dropbox Sync API as part of an app, you ever used it? Dec 18 18:02:39 I'm no fan of Dropbox, prefer Google Drive. Even though I barely use it either. Mostly for stuff I need somewhere else and I'm too lazy to put it on a USB. Dec 18 18:02:54 why would I get a fragment already added if I am only adding a fragment in the activity's oncreate? Dec 18 18:02:58 X) Dec 18 18:03:29 they are v similar but Dropbox is more prevalent, I think Dec 18 18:03:35 like dropbox or google drive can be trusted Dec 18 18:03:38 Because you're adding it twice Dec 18 18:04:30 like anyone can I440r..? X) Dec 18 18:04:45 exactly! Dec 18 18:04:47 lol Dec 18 18:04:54 hehe X) Dec 18 18:05:00 I'm trying to add an ad to my app, I followed the android-studio documentation, the app builds, but when I launch it, it FC, java.lang.NoClassDefFoundError: com.google.android.gms.ads.AdView . Shouldnt gradle be pulling in the library? anyone know what i'm doing wrong? Dec 18 18:05:53 you have to add the library to your build.gradle Dec 18 18:06:28 Could it be that when I'm inserting a long into an integer column of a SQLite database that it gives me a datatypemismatch? Dec 18 18:06:34 i added compile 'com.google.android.gms:play-services:4.0.30' under dependencies Dec 18 18:06:44 Cause I don't know what else to use then. Dec 18 18:07:01 eppo, did you download the jar file or add it as a maven dependency? Dec 18 18:07:42 just added as a dependency, the Jar is in the SDK, no? thought gradle pulled it in? I'm sorry, I'm a bit new with the gradle/maven stuff. Dec 18 18:08:30 if the jar is part of the sdk, you have to copy it into your project (typically the /libs folder) Dec 18 18:08:42 and do something like: compile files('libs/android-async-http-1.4.3.jar') Dec 18 18:09:45 have you resynced idea with gradle? Dec 18 18:10:44 yes I did resync with gradle Dec 18 18:11:56 the gui of android studio keeps changing, and the way you do things, adding a library is completely different now. Dec 18 18:13:13 Does anyone know why this date "13 Dec 2013" is unparseable using "new SimpleDateFormat("d M y")" Dec 18 18:14:10 M month in year (Text) M:1 MM:01 MMM:Jan MMMM:January MMMMM:J Dec 18 18:14:29 SimonVT, thank! Dec 18 18:14:31 s Dec 18 18:14:52 god that crap is terrible Dec 18 18:14:53 Protip: There's javadocs https://developer.android.com/reference/java/text/SimpleDateFormat.html Dec 18 18:15:08 I thought it was automatically, my bad. Dec 18 18:16:21 ugh, my exchange hack isn't completely working; it forgets my accounts after restarting the email app Dec 18 18:18:28 I have to be missing something, because i'm using the support libraries also, and they show up under "External Libraries", but I dont see the Google Play Services showing up anywhere. Dec 18 18:19:32 Do a command line build, see if that works Dec 18 18:21:31 yes, the build works, I dont get an error until I run the app. Dec 18 18:24:48 SimonVT, what's the difference between L and M? Dec 18 18:25:54 I don't know, I just looked at the javadocs and found a line that seemed relevant to your issue Dec 18 18:26:00 Dreeass: it might vary per locale or something Dec 18 18:26:12 Dreeass: 'M' - 'L' == 1 Dec 18 18:26:31 http://stackoverflow.com/questions/6654326/android-formatting-standalone-month Dec 18 18:27:05 evanc, thanks. Better to use L then. Dec 18 18:27:39 Dreeass: except for that guy saying it thorws an IllegalArgumentException :P Dec 18 18:28:12 evanc, well yaaaa...; Dec 18 18:28:18 Too bad for that guy Dec 18 18:30:00 * storkme still so in love with android studio. Dec 18 18:31:21 * Dreeass still in a love-hate relationship with Android Studio. Dec 18 18:31:57 Finally Dec 18 18:32:10 It gets movie data sucessfully and displays it well Dec 18 18:32:37 Time to go downstairs for a moment and get out of the god coder transe ;p Dec 18 18:34:11 I have a personal app that matches people to netflix streaming videos based on their facebook interests Dec 18 18:34:24 need to rent a server or 2 for the backend, and do a little more design work Dec 18 18:34:32 before I release it Dec 18 18:38:55 jonc, VPS or webhost? Dec 18 18:40:23 Does someone know whether the language of the date changer when using SimpleDateFormat? Dec 18 18:41:59 I'm so proud of myself: http://i.imgur.com/UsP0tp9.png Dec 18 18:43:12 Hey, is it possible to implement some crash detection method for the app? so i could send myself debug data? Dec 18 18:43:48 viran: http://developer.android.com/reference/java/lang/Thread.html#setUncaughtExceptionHandler%28java.lang.Thread.UncaughtExceptionHandler%29 Dec 18 18:43:55 the usefulness of this may be debatable. Dec 18 18:44:00 in case it helps anyone, I had to do a gradlew clean to fix those java.lang.NoClassDefFoundError errors. Dec 18 18:44:50 i dont think im going to be able to do JNI from asm without some bullshit C wrapper which i wont ever use Dec 18 18:45:04 thanks lov, why some consider it not useful? Dec 18 18:45:12 i think JNI is a horrendously over complicated way to go Dec 18 18:45:22 im sure at its core it is very simple Dec 18 18:46:14 but if im going to be doing JNI in asm it will be in ASM ONLY> not some small asm function with a c wrapper and then a java native wrapper around that Dec 18 18:46:37 Because Android was built on the concept of writing Java apps, and JNI support was added about a year after launch, grudgingly. Dec 18 18:46:59 that's not quite true. JNI was always there Dec 18 18:47:07 well, let me rephrase; OFFICIAL JNI support. Dec 18 18:47:09 just not "supported" for app devs Dec 18 18:47:24 it was definitely there for 1.0, since we used a hacked-to-fuck toolchain that HTC gave us. Dec 18 18:47:38 i just compiled the hello-jni example code and ended up wiht a 13k lib file Dec 18 18:47:48 ok. Dec 18 18:48:10 Right. a lot of the framework stuff (even from 1.0) relies on JNI too Dec 18 18:48:23 that should be a 400 byte file not 13k Dec 18 18:48:30 I440r: so fucking write it by hand then. Dec 18 18:48:34 is a getWritableDatabase() capable of reading also? Dec 18 18:48:40 lovingly handcraft your asm file Dec 18 18:48:45 lov thats the plan. problem is... i have no idea HOW Dec 18 18:48:58 lov and stop swearing kthxbai Dec 18 18:49:48 figure out how the toolchain works, and do the needful. the reality is that you probably have some level of crufty overhead by virtue of needing java shims etc. Dec 18 18:50:24 lov why do you call yourself lov. speal of "lovingly crafging" yet speak with such hate Dec 18 18:50:30 speak of Dec 18 18:50:33 blah i cant typ Dec 18 18:50:35 it's a long story. Dec 18 18:50:44 or rather, it's a lon story Dec 18 18:51:13 is there a maven repo for volley yet Dec 18 18:52:12 wonder if there is a way i can allocate shared memory in my forth and have access to it in my java... not using JNI Dec 18 18:53:07 Hello everyone! Dec 18 18:54:22 I'm developing with NDK, and linking in libav. I managed to get ndk-gdb working, however I'm unable to see any local variables. What compiler flag should I supply to be able to see them? -g -ggdb -O0 or any combination thereof did not work. Dec 18 18:57:10 I440r: java.nio.ByteBuffer/etc. Dec 18 18:57:16 Hello guys, is there a way to delete one exactly the same line from a lot of classes by using some kind of "quickfix" in eclipse? Dec 18 18:57:25 I440r: you can create an instance backed by "unmanaged" memory that you control Dec 18 18:57:49 I440r: via JNIEnv::NewDirectByteBuffer() Dec 18 18:58:08 I440r: there's also JNIEnv::GetDirectBufferAddress() and JNIEnv::GetDirectBufferCapacity() Dec 18 19:00:10 jonp i dont think ill be going anywhere near JNI unless i can see an example of it in use in assembler WITHOUT a c wrapper for the assembler. Dec 18 19:00:16 hi huys Dec 18 19:00:35 i dont think ill be able to figure out the interface or how to use it otherwise. Dec 18 19:00:35 I440r: alas, i don't have an assembler example. i just have C# code. Dec 18 19:00:40 whats the best way for a secure connection between device and server (using http) Dec 18 19:01:17 let me clarify more. Dec 18 19:01:36 the app client side does not use login via username and pass... take whatsapp for example Dec 18 19:01:48 jonp jonp the nio bytebuffer wont help me if its the JAVA side allocating it Dec 18 19:02:07 i was thinking of having java somehow access shared memory my forth owns Dec 18 19:02:15 I440r: http://docs.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html#NewDirectByteBuffer Dec 18 19:02:16 however, each device makes a secure connection to a server to fetch new data etc... something that even others found out the POSTed data wont be able to get the info.. Dec 18 19:02:25 I440r: _you_ provide the memory address of the buffer and the size Dec 18 19:02:43 I440r: it could be from malloc(3) or from a GC heap that won't move. JNI doesn't care. Dec 18 19:03:40 jonp JNI is a dead end. its not going to work for me without those examples which from what i can tell do not exist. i was going to look at the "simple" hello_jni but its simple in the same way as the "simple cell" is simple Dec 18 19:05:06 i know what im trying to do, i just have ZERO knowledge about how to accomplish it via jni... i would like to have my forth process running, have it allocate memory and be able to pass data between forth and java via that shared memory Dec 18 19:05:32 commands would still be sent to the forth over its stdin but data would be via the shared memory Dec 18 19:06:04 i know exactly how to do all of this on the forth/asm side. no idea how to gain access to the forths shared memory on the java side Dec 18 19:09:52 tonySoprano9099: are you thinking of token based auth? Dec 18 19:10:01 really you should be using SSL/TLS anyway. Dec 18 19:12:04 I440r: using JNI, you can allocate java objects, call java methods, etc. Obviously, it all expects C, but I'm sure you can figure out how to translate to ASM somehow. Dec 18 19:12:42 write the C code, compile it, disassemble it. DONE: you have assembly Dec 18 19:12:49 iswydt. Dec 18 19:12:56 ? Dec 18 19:13:23 lov i just compiled the simplest ndk example and its 13k in size, has 28652934659236549236 symbols and not one of them was the library function specified in the sources that i can see Dec 18 19:13:32 i.e. it told me nothing Dec 18 19:13:58 lov, yes using the token is possible. Dec 18 19:14:05 quite new to it. Dec 18 19:14:56 I'm impressed that it has more symbols than bytes Dec 18 19:15:14 thats c/java for you Dec 18 19:15:25 bloatware. so boated its bigger on the inside than it is on the outside Dec 18 19:15:26 how do the tokens get generated on the device ? and if the token is compromised, the data can be gotten no? Dec 18 19:15:45 lov Dec 18 19:16:51 tonySoprano9099: the client doesn't generate the token. the client requests the token with authentication info from a server. Dec 18 19:16:59 you might want to peek at the wikipedia page Dec 18 19:17:04 yep. lemme head there Dec 18 19:17:26 thanks lov Dec 18 19:18:34 lets see... arm-linux-androideabi-nm -D libhello-jni.so | wc -l Dec 18 19:18:35 54 Dec 18 19:18:57 most of those seem to be gdb-related Dec 18 19:19:13 I'm sure you could pass an argument to the toolchain to disable gdb support, remove support for exceptions, etc. Dec 18 19:19:27 strip debug symbols Dec 18 19:19:40 -D however asks for dynamic symbols, iirc Dec 18 19:19:51 aka those that are loaded from external objects Dec 18 19:19:55 yeah, actually, on second thought it's probably not GDB related. Dec 18 19:20:13 I'm not quite sure what some of those are for. compatibility? Dec 18 19:20:21 __gnu_Unwind_Restore_VFP_D_16_to_31 Dec 18 19:20:59 http://devkitpro.org/viewtopic.php?f=2&t=2944 Dec 18 19:21:17 lov: that one is exception support, specifically this one restores VFP registers Dec 18 19:21:45 Ah, it looks like this might be part of ARM EABI itself. Dec 18 19:21:57 (might be necessary even in C, some code might depend on it for handling of some events) Dec 18 19:23:08 ok, yeah, I think this is for exception handling for arm. Dec 18 19:23:38 of course at this point I'm at the limits of my knowledge and I'm just making wild guesses sooo Dec 18 19:23:43 * lov shrugs Dec 18 19:24:30 so, maybe http://gcc.gnu.org/ml/gcc-help/2009-10/msg00323.html will help get rid of the symbols? Dec 18 19:25:50 arm-linux-androideabi-strip libhello-jni.so Dec 18 19:26:04 warning - too aggressive stripping might remove symbols you need Dec 18 19:26:23 shared objects *need* some symbols ;) Dec 18 19:26:27 jonp i just thought of something. JNI might not even be an option for me even if i DO figure it out Dec 18 19:26:34 listen I got that tattoo when I was in college, I'm not upset if it gets removed Dec 18 19:27:00 as for stripping, that's my choice and not yours Dec 18 19:27:11 the native executable i want to interface to is STRIPPED. and it wont be anything other than stripped, there will never be any symbols on that executable Dec 18 19:27:23 so i dont think JNI is going to work for me Dec 18 19:27:32 If I write an app with values-ko support, do I need to include values-ko-KR too? Dec 18 19:27:43 no Dec 18 19:28:14 penguingirl: no Dec 18 19:28:34 lov: so will the people with -ko-KR locale automatically get -ko? Dec 18 19:28:56 yes. setting the locale is only relevant for different locales. Dec 18 19:29:06 lov: awesome, thanks Dec 18 19:29:08 en-US vs en-GB for example Dec 18 19:43:32 how does one go about app naming for tablet and phone versions of their app? on ios, it's easy (app for iPad, app for iPhone), but using "app for android tablets" or "app for android phones" sounds awkward Dec 18 19:44:39 or can i use "app for android" and then have separate versions in the store with the same name, filtered by device type? Dec 18 19:45:50 ah i rtfm... you can have multiple apk's with the same app name Dec 18 19:45:53 this is good :) Dec 18 19:45:58 Or you write one app that supports all targets... Dec 18 19:46:04 *cough* Dec 18 19:46:23 no, they'll have slightly different features that are appropriate per device Dec 18 19:46:37 unless you want to expose different permissions or something per device, you still want to write one app. Dec 18 19:46:37 and the phone version will have a lower price Dec 18 19:46:43 ah. Dec 18 19:46:51 then yes I suppose you do need two targets. Dec 18 19:46:59 Of course, users who own both a phone and a tablet may be non-plussed. Dec 18 19:47:04 How do I build the APK in IntelliJ. My keystore and stuff is set up, but when I build the artifact it says compilation completed but I don't see my file anywhere. Dec 18 19:47:16 non-plussed? Dec 18 19:47:25 Dreeass: it's probably in your build directory somewhere. Try hitting the "run" button and see what happens. Dec 18 19:47:36 ultra-: why do I need to buy your app twice? Dec 18 19:47:42 you don't Dec 18 19:47:57 likely people will buy one or the other Dec 18 19:48:26 lov, I found it. IntelliJ has 2 output options kinda thingies. Dafuq? Dec 18 19:48:32 but it won't be available to use on their other device. Dec 18 19:48:53 well they can definitely buy it then Dec 18 19:49:15 * lov shrugs Dec 18 19:49:17 good luck Dec 18 19:49:26 Dreeass: not really sure what you mean but ok Dec 18 19:50:27 hello, I am using an Dialog which expects a user password input in an EditText-Field. I want to encrypt this password(maybe with MD5?) and store it encrypted in the sharedPreferences-File Dec 18 19:50:40 which framework can I use to encrypt passwords? Dec 18 19:51:00 it's a MIDI controller interface for a very specific use... if they have a tablet, they'll buy the tablet version for sure and use that... if they don't have a tablet, they can buy the phone version and pay a little less because there will be less features Dec 18 19:51:01 md5 is a checksum, are you salting it with it or something? Dec 18 19:51:19 nobody would buy both unless they leave their tablet at home Dec 18 19:51:21 sry I mean I want to hash my password Dec 18 19:51:49 androidProgramme: doesn't sound very secure Dec 18 19:51:57 i know it makes sense in most cases, but this is a niche market thing and is used differently than most apps Dec 18 19:52:00 unless you salt or have a good encryption. i dunno any off my head Dec 18 19:52:49 Ok, I just don't want to store the password as a clear text in the scharedPreferenced. What can I do? Dec 18 19:52:52 pretty sure google would be faster than me googling then interpetting(sp?) :) Dec 18 19:53:12 find you an encryption class. there may be some in the android apis Dec 18 19:53:43 that's why I am here to ask you which class can/should I use Dec 18 19:53:48 androidProgramme: do a google search for "Android SHA" Dec 18 19:54:53 using this method: http://www.androidsnippets.com/sha-1-hash-function? Dec 18 19:55:09 if someone has access to the file system, they'll probably have access to log keypresses as the password is typed Dec 18 19:55:12 i hope these passwords aren't important Dec 18 19:55:15 androidProgramme: give some things a try and come back with detailed questions Dec 18 19:55:24 Why would google account picker just not show up, yet still not throw an error when following this guide: http://gmariotti.blogspot.com/2013/03/snippet-google-picker-account.html Dec 18 19:55:25 no way you read it already :P Dec 18 19:55:50 so storing a hash of the password may not be much of an increase in security over just storing the password Dec 18 19:55:59 ^exactly Dec 18 19:56:22 no these passwords are not important, I just want to build a test app for me to learn android, so I just wanted to try it out Dec 18 19:56:39 well to learn to some testing :) you have code on that page, test it out Dec 18 19:56:45 do some* Dec 18 19:57:17 I am not asking for a code Dec 18 19:57:20 Does someone know why the date under gravity (movie) is good on my pc emulator. But it says 1 January 1970 on my phone which is the start of unix? Dec 18 19:57:22 http://i.imgur.com/SICFPzX.png Dec 18 19:57:46 What should I do in order to make it secure if hashing is not a good option? Dec 18 19:58:07 androidProgramme: learn away - http://developer.android.com/reference/java/security/MessageDigest.html Dec 18 19:58:20 If you're trying to store a password, get a random salt, hash it and save the hash. Dec 18 19:58:28 androidProgramme: find your level of needed security, then find you the lightest weight safe algorithm to use Dec 18 19:58:44 If you hash the password, you'll get the hash again and that's how you know it's the right password Dec 18 19:59:08 Here is what I posted on S.O. http://stackoverflow.com/questions/20667096/google-accounts-picker-not-showing-up Dec 18 19:59:22 androidProgramme: hashing is fine, but get you a method to salt it, as to make brute force that much harder Dec 18 19:59:52 Dreeass: sry my englis is bad, what do you mean by "salt"? (dont know this english word) Dec 18 19:59:53 androidProgramme: if someone has root then there's nothing that you can realistically do. Hashing is a good idea, however, since it at least prevents an attacker from stealing the password after the fact. Dec 18 19:59:56 *english Dec 18 20:00:06 androidProgramme: http://en.wikipedia.org/wiki/Salt_%28cryptography%29 Dec 18 20:00:17 the idea is to prevent a trivial attack via rainbow tables Dec 18 20:00:19 thx Dec 18 20:00:19 androidProgramme, it's a term when you're hashing something. Based on a 'salt' it hashes the given String. Dec 18 20:01:34 androidProgramme, her's an article about password hashing: http://net.tutsplus.com/tutorials/php/understanding-hash-functions-and-keeping-passwords-safe/ Dec 18 20:01:48 thx Dec 18 20:01:51 androidProgramme, it's in PHP but it's the same concept in every other language Dec 18 20:02:58 basically I can use MessageDigest from Android right? Dec 18 20:03:05 androidProgramme: yes. Dec 18 20:03:13 androidProgramme: see the stackoverflow link I gave you earlier. Dec 18 20:03:28 also, don't use MD5 like the tutorial suggestions; it should be considered insecure for anything but toy implementations. Dec 18 20:03:29 Does someone know why the date under gravity (movie) is good on my pc emulator. But it says 1 January 1970 on my phone which is the start of unix? Dec 18 20:03:29 http://i.imgur.com/SICFPzX.png Dec 18 20:03:37 androidProgramme: hashing something is left to a certain algorithm. There are a few popular options. So by salting your are taking those common hashing algorithms&adding some flavor(salt) to avoid anyone just using the popular hashing methods to brute force with a dictionary to find your password Dec 18 20:03:42 Dreeass: no, perhaps you should investigate it via the debugger? Dec 18 20:04:03 lov, it's only on my phone. Can't use the debugger on it. Dec 18 20:04:36 ok, thank you guys Dec 18 20:06:29 androidProgramme: that'll be $235 USD, if by paypal i tack on 2% more Dec 18 20:07:18 canvs2321: yeah sure^^, I thought it would be more expensive Dec 18 20:08:32 it's the holidays, so u get a discount :) Dec 18 20:08:41 canvs2321: http://makeameme.org/media/created/Keep-on-digging.jpg Dec 18 20:09:23 no jokes, all bidniz :) Dec 18 20:12:39 Dreeass: why can't you use the debugger? Dec 18 20:12:51 lov, can't explain. Dec 18 20:13:00 :| Dec 18 20:13:12 ok well good luck with your stuff then I guess? Dec 18 20:13:58 Anybody work with the google account picker that can look at my code and hopefully find a big old red flag. Dec 18 20:14:39 https://gist.github.com/anonymous/8029150 Dec 18 20:16:24 bananaboy: thanks for pasting all of that when all we need to know is lines 90-92? Dec 18 20:16:42 I had posted that before in my stack exchange question Dec 18 20:17:44 regardless, what happens? Does this just appear to do nothing? What's the logcat output? Dec 18 20:17:53 Does activity manager say that it can't figure out what activity to start? Dec 18 20:18:40 the logcat looks good, the dialog just doesn't show up what so ever Dec 18 20:18:46 "It doesn't work" doesn't give a lot to go on, when all you've done is copy/paste the demo code. Dec 18 20:18:52 "logcat looks good" means what? Dec 18 20:19:09 filter on the ActivityManager tag, does it mention starting an activity? Dec 18 20:19:14 does it mention not finding an activity? Dec 18 20:19:20 does that activity just immediately close itself? Dec 18 20:19:31 Does your device not have any google accounts? Dec 18 20:19:37 does this API require any permissions to use? Dec 18 20:20:21 Set the debugger; what does newChoooseAccountIntent give you? What is the componentname/activitiyname of the intent? Dec 18 20:20:24 this api does require permissions taht I have added to my manifest Dec 18 20:20:41 and the ActivityManager says that the AccountPicker is displayed Dec 18 20:20:41 sry to ask again, but how can I notice if this hashing algorithm is "adding some flavor (salt)" :http://www.androidsnippets.com/sha-1-hash-function? Dec 18 20:20:49 but it does not showup on my phone Dec 18 20:21:17 I just tested it, and it works fine but don't know if this algorithm is secure enough Dec 18 20:21:45 It looks as if it displays the picker, then displays the other items afterwards Dec 18 20:22:14 is there a way to make sure it displays last? Dec 18 20:23:07 androidProgramme: you're not actually salting anything. Dec 18 20:23:23 androidProgramme: salting means adding some piece of content to the content that you are hashing. Dec 18 20:23:25 lov: yeah that's what I assumed^^ Dec 18 20:23:57 so, if you are hashing "password123", then you would add "foo" as a salt to the end, and end up passing the bytes for "password123foo" to your MessageDigest. Dec 18 20:23:57 lov: ok thx I will try and google to see how I can salt Dec 18 20:24:12 it's not some sort of hidden secret; you're just adding an added piece of content to your content. Dec 18 20:24:22 hi Dec 18 20:24:25 http://developer.android.com/training/monitoring-device-state/battery-monitoring.html Dec 18 20:24:36 just throw some deterministic extra bytes on the end of your bytes that you're digesting and that's all. Dec 18 20:24:50 as long as you have a way to know those bytes when re-hashing to compare, you're fine. Dec 18 20:24:54 i am getting error on this line Intent batteryStatus = context.registerReceiver(null, ifilter); context cannot be resolved Dec 18 20:25:04 markpp: seems rather self explanitory. Dec 18 20:25:12 i am new to this Dec 18 20:25:16 lov: I think I found a pretty good article http://viralpatel.net/blogs/java-md5-hashing-salting-password/ Dec 18 20:25:18 lov: fwiw, the typical crypt() implementation is more complex than that (lots of duplication) Dec 18 20:25:31 zinx: baby steps ;) Dec 18 20:25:39 androidProgramme, why didn't you read the article I sent? Dec 18 20:25:46 if the guy doesn't know what sha1 is, we'll start simple. Dec 18 20:25:51 hehe Dec 18 20:26:07 most of the examples i see say "SSLContext context = SSLContext.getInstance("TLS");" … not "TLSv1.2" … why is that ? Dec 18 20:26:08 log can you help > Dec 18 20:26:15 lov* Dec 18 20:26:19 androidProgramme: thats fair, though again you want to use SHA1. MD5 should be considered insecure at this point. Dec 18 20:26:34 SHA1 is pretty almost insecure too ;) Dec 18 20:26:39 markpp: probably not, since you're likely copy/pasting code, and it would mean me just writing code for you to copy/paste Dec 18 20:26:42 sha1 is cracked by nsa bro Dec 18 20:26:43 dont do it Dec 18 20:26:52 lov, why would he want to hash a salt? Just generate a random salt Dec 18 20:27:03 thats great help* Dec 18 20:27:13 markpp: seriously though. Look at what you're writing. Dec 18 20:27:27 "Hey guys it says context cannot be resolved, how do I fix it?" Dec 18 20:27:37 Hey folks. Our API allows multiple accounts per username. I'm trying to get Android's AccountManager to create multiple accounts per username by serializing the username with the account number and later deserializing this information to log in. Has anyone here ever tried anything like this? Does anyone have enough experience with AccountManager to know if it's possible to create multiple accounts when adding a Dec 18 20:27:37 new account? Dec 18 20:27:50 you need to figure out why context can't be resolved. Do you have a context reference somewhere? Are you calling this from a class that extends context? Dec 18 20:28:01 we're getting out of the realm of android and into the realm of basic java Dec 18 20:28:15 g00s: better than MD5 at least. Dec 18 20:28:43 hmm Dec 18 20:29:00 Here's my StackOverflow question: http://stackoverflow.com/questions/20645990/how-can-i-make-accountmanager-handle-multiple-account-hashes-per-user Dec 18 20:29:12 i'mgot this weird problem, really bugging me Dec 18 20:29:43 an ImageView for some reason has a left margin or padding of 1dp and I can't figure out how that is occuring Dec 18 20:30:56 snooplsm: maybe it's from a parent, or how you are cropping the image? Dec 18 20:31:25 images, or code can be useful Dec 18 20:32:37 1 moment i'll post Dec 18 20:34:49 https://gist.github.com/snooplsm/65fb078c65130fe226ac Dec 18 20:34:56 top code happens in the constructor Dec 18 20:35:23 there is a margin on the left and right Dec 18 20:35:27 of about 1 pixel Dec 18 20:35:48 i thought it might be a rounding error, but not sure Dec 18 20:35:58 uhhh, then what's the problem? you just stated a 1pixel margin? Dec 18 20:36:43 Can someone test my APK and tell me whether they also get 1 January 1970 like my Nexus 5 but not on my emulator? Dec 18 20:36:59 * lov sighs Dec 18 20:37:00 How can I know if the device wich is running my application is a tablet or a smartphone ? Dec 18 20:37:42 Dreeass: is that default date a behavior of some kind of failure? Dec 18 20:38:12 ylecuyer: You don't really need to know that. You can just have different layouts automatically for different resolutions and react to the layout chosen. Dec 18 20:38:15 Dreeass: you need to get your debugger working, or atleast logcat and throw some data out you can interpet Dec 18 20:38:17 canvs2321, it's a bug that I cannot trace because I can't enable the debugger. I'm not gonna explain why. Dec 18 20:38:29 ylecuyer: Check out the master/detail pattern sample when you create a new project. Dec 18 20:38:29 then use logcat Dec 18 20:38:31 It works fine on the emulator, not on the phone. Dec 18 20:38:37 i know Dec 18 20:38:47 Ok, Thanks ColinTheShots Dec 18 20:39:11 ylecuyer: By which I mean, it's resolution and not device you probably really want to know. Dec 18 20:39:23 How can I use logcat on my phone? Dec 18 20:39:52 ColinTheShots, it makes sens Dec 18 20:39:53 ylecuyer: you can define layouts for specific devices, check for null on components based upon the inflated view? Dec 18 20:40:28 Dreeass: there's an app for that? Dec 18 20:41:09 Does anyone have experience with CardsUI? Dec 18 20:41:22 to program without logcat or some sort of debugging, seems like a bad expierence Dec 18 20:41:59 I followed the instructions to add it to my project, and Android Studio doesn't find the classes, it only finds com.afollestad.cardsui.R Dec 18 20:42:13 I have this AndroidStudio problem, I just did a cleanProject. now it can ot resolve ActionBarActivity. this leads to other problems likw all my R.ID... become android.R.ID... Dec 18 20:42:21 can someone tell me why this happens? Dec 18 20:43:07 maybe clean/rebuild your project? Dec 18 20:43:16 Dreeass: you need to enable adb. I have no idea why you're not allowed to debug on your device, but that will probably resolve your problems. Dec 18 20:43:19 or u have an error in your xml Dec 18 20:43:32 http://developer.android.com/tools/device.html Dec 18 20:43:44 lov, I can't explain and I'm not going into it. I know how to do it. Dec 18 20:44:13 Well, adb lolcat I guess? Dec 18 20:44:16 Dreeass: your not explaining, leads to noone being able to help Dec 18 20:44:38 canvs2321: doing a cleanRebuild is what created this problem in the first place... very frustrating... it happens to me often Dec 18 20:44:56 cans2321, let's just say I can't use the debugger because an alien has hacked my phone. Dec 18 20:45:29 IrishGringo: well if everything is imported then there shouldn't be a problem, unless something else is causing the failure. Like bad xml code etc... Dec 18 20:45:51 Dreeass: if that's the case then....burn it&get a new one? Dec 18 20:46:06 the solution is to do another clean rebuild... then manually change the Android.R.ID's back to R.ID... Dec 18 20:46:12 pain Dec 18 20:46:22 canvs2321, you're a pain in the ass. Dec 18 20:46:26 yeah guess Android.R is wrong Dec 18 20:46:39 Dreeass: the truth is the pain, i just let you accept it Dec 18 20:48:32 just out of curriosity... is anyone doing android to DRUPAL services integration at the moment? Dec 18 20:49:02 nope Dec 18 20:52:18 hm, moxie's pinningtrustmanager extends the apache one not the jsse one crap Dec 18 20:53:25 ok,so nobody knows why SSLContext.getInstance("TLS") is used over "TLSv1.2" ? Dec 18 20:53:40 maybe docs just out of date ? Dec 18 20:53:48 Why is my webview not showing a youtube embed player iframe correctly? I get this. http://gyazo.com/84a613cfc60e203a6ada8375fe14f2a8 And this is my code. http://pastie.org/8561607 Dec 18 20:53:58 I've tried multipl devices, all internet connected but it wont work Dec 18 20:54:19 desmin88: i hate when things work correctly :/ Dec 18 20:54:38 ? Dec 18 20:55:43 did you make sure you have an data connection, reload later, or check the address you entered? Dec 18 20:56:01 and //youtube isn't valid http:// Dec 18 20:56:52 its //httyp Dec 18 20:56:57 /http* Dec 18 20:57:02 so change your src from // to http:// or just omit the // Dec 18 20:57:06 and that is the part of the youtube provided embed code Dec 18 20:57:09 yeah i know but your code isn't Dec 18 20:57:29 ? Dec 18 20:57:41 src=\"//www.youtube.com/embed/JW5meKfy3fY\" Dec 18 20:57:53 exactly Dec 18 20:58:02 exactly, wtf protocol are you using? Dec 18 20:58:07 ftp://www.youtube Dec 18 20:58:11 http://www.youtube Dec 18 20:58:18 idfn://www.youtube Dec 18 20:58:21 Dec 18 20:58:26 and idfn is i don't fucking know Dec 18 20:58:34 i took that directly from a youtube video Dec 18 20:58:37 that's what i pasted Dec 18 20:58:47 who cares //www.youtube means nothing Dec 18 20:59:10 http://www.youtube means http, ftp://www.youtube means ftp etc.....? Dec 18 20:59:27 I followed the instructions to add it to my project, and Android Studio doesn't find the classes, it only finds com.afollestad.cardsui.R Dec 18 20:59:28 http://gyazo.com/40771ef99eef9e31352996c2897e6e3e Dec 18 20:59:50 Does anyone have experience with CardsUI? I followed the instructions to add it to my project, and Android Studio doesn't find the classes, it only finds com.afollestad.cardsui.R Dec 18 21:00:00 Ah, hexchat cut half of my text :( Dec 18 21:00:13 desmin88: then add http://? if that fails then you borked somewhere else? Dec 18 21:02:20 desmin88: yeah, I have no idea what the heck you're doing. Dec 18 21:02:33 If you're blindly copy/pasting some tutorial, this is the end result and this is why you think a little when you follow tutorials. Dec 18 21:02:40 lol? Dec 18 21:02:44 you need what is called the "scheme" in your url. Dec 18 21:02:51 as canvs2321 said, http, https, etc. Dec 18 21:02:58 otherwise the url is totally bogus Dec 18 21:03:20 I also have no idea why you're dumping this into an iframe. Dec 18 21:03:32 ok then fuck me for thinking the embed code a youtube video provides was incorrect for a webview: http://gyazo.com/8ce8425047e0e268d540e4e58172e0c2 Dec 18 21:03:55 jonp are you there? Dec 18 21:04:04 sure Dec 18 21:04:12 desmin88: ahaha you're right Dec 18 21:04:15 I see the same thing Dec 18 21:04:16 WELP Dec 18 21:04:30 yeah, that's youtube's fault for breaking that Dec 18 21:04:33 toss an http before the // first Dec 18 21:05:00 the JNIEnv * passed to my app... thats a pointer for the app to use to call java methods directly? Dec 18 21:05:16 im not understanding why that pointer is passed to the jni function Dec 18 21:05:20 I440r: JNIEnv* is a thread-local pointer. Dec 18 21:05:34 I440r: it _IS_ used to so that the native code can invoke JNI functions Dec 18 21:05:41 as it can change over time Dec 18 21:05:46 aha Dec 18 21:05:47 e.g. if you're on a new thread -> new value Dec 18 21:06:06 or if you were on a thread, and the thread was GC'd ("somehow"...), when it hits your thread again it may be a new value Dec 18 21:06:11 (damn that was annoying to debug) Dec 18 21:06:14 so if my function does not need to call back into the java code i just ignore that ptr? Dec 18 21:06:17 yup Dec 18 21:06:21 ditto the 2nd parameter Dec 18 21:06:28 which is the jclass or the jobject `self` parameter Dec 18 21:06:33 Yeah, if you don't need to call anything in the java environment, you don't need to use the var. Dec 18 21:06:36 all i care about is the input parameter Dec 18 21:06:59 aren't they all input parameters? :-) Dec 18 21:07:24 i mean. JNIEnv * env, jobject object, jint input <-- frm the example im looking at Dec 18 21:07:31 the last param of the 3 :) Dec 18 21:08:08 ok... so... am i right that if the binary im trying to interface to from java is 100% stripped i cannot use JNI with it? Dec 18 21:08:24 i don't understand that Q Dec 18 21:08:27 because this binary is stripped and there isn no unstripped version of it, nor will there ever be Dec 18 21:08:37 desmin88: and the verdict is......? Dec 18 21:08:38 i have my forth. i want to interface to the forth from java Dec 18 21:08:46 but the ./forth executable is a stripped binary Dec 18 21:08:57 canvs2321: youtube sucks at providing embed info Dec 18 21:09:01 `strip` doesn't remove dynamic symbols Dec 18 21:09:02 so ill have to manually fix this Dec 18 21:09:06 it cannot be an unstripped binary. it will never be anything but a pure stripped binary Dec 18 21:09:09 `nm -D` still has those dynamic symbols Dec 18 21:09:12 it has no dynamic symbols Dec 18 21:09:16 nor will it ever have Dec 18 21:09:19 desmin88: but did adding the http:// fix it? Dec 18 21:09:20 then you can't dlopen() it Dec 18 21:09:20 nor CAN it ever have Dec 18 21:09:24 nope Dec 18 21:09:27 yes Dec 18 21:09:32 so JNI is out Dec 18 21:09:33 sweet :) Dec 18 21:09:44 unless you do a JNI bridge... Dec 18 21:09:52 what is a JNI bridge? Dec 18 21:09:56 and how do you do taht :) Dec 18 21:09:57 erm Dec 18 21:09:57 Does anyone have experience with CardsUI? I followed the instructions to add it to my project, and Android Studio doesn't find the classes, it only finds com.afollestad.cardsui.R Dec 18 21:10:02 I440r: what's a bridge Dec 18 21:10:09 desmin88: just remember to never trust anyone, and work with that :) Dec 18 21:10:14 I440r: and... more work than you want Dec 18 21:10:27 i thought i could trust google Dec 18 21:10:29 i thought wrong Dec 18 21:10:35 you mean create a lib in C and have that LIB launch and interface to the forth Dec 18 21:10:38 I440r: you WILL need some symbols if you're calling loadLibrary. That said, just because the forth binary is totally stripped doesn't mean that your library has to be. Dec 18 21:10:40 i.e. a wrapper Dec 18 21:10:42 I440r: yup Dec 18 21:10:49 desmin88: exactly, trust no one to be reliable except yourself :P Dec 18 21:10:55 jonp it is not possible for this forth to be a library Dec 18 21:10:57 you can trust yourself? Dec 18 21:11:14 jonp: otherwise why try Dec 18 21:11:15 I440r: which means your bridge will need to be a library and invoke forth through...stdin/stdout? Dec 18 21:11:17 ? Dec 18 21:11:18 "other means", anyway Dec 18 21:11:28 jonp or via pipes/shared mem Dec 18 21:11:42 but... i wont be writing any bloated C wrapper functions Dec 18 21:11:55 you really don't like C, do you. Dec 18 21:12:08 so this means the only way i can interface to my forth from java is via stdin/stdout Dec 18 21:12:11 which will SUCK Dec 18 21:12:18 i hate c with a passion Dec 18 21:12:36 i dont want anythning to do with C unless im being paid a minimum of $50 an hour Dec 18 21:12:44 which is a low rate for me Dec 18 21:12:46 you're a cheap date. Dec 18 21:13:03 also, you're letting your moral stand in the way of an elegant design Dec 18 21:13:05 I440r: should be a mechanic&get 65+ a hour :) Dec 18 21:13:18 if you truly don't want to use C, just ask a friend you like to make a library for you in C that does the hard work, hold your nose, and use it. Dec 18 21:13:28 s/moral/morals Dec 18 21:13:30 lov no. its not that i dont want to DO it Dec 18 21:13:35 its that i dont "Want it" Dec 18 21:13:48 i dont want one single line of C code in this native part of my app Dec 18 21:14:12 well, ok, but you should at least have a compiled library that does the odious parts then. Dec 18 21:14:14 but i would like to be able to launch my ./forth native app and have it allocate memory that my java code can interface to Dec 18 21:14:18 i.e. i need shared memory Dec 18 21:14:46 lov i have a crappy solution. just talk to my forths stdin and listen to its stdout Dec 18 21:14:48 I440r: you say native as in native C, then you shun it...... Dec 18 21:14:53 that will work. it will work VERY slowly Dec 18 21:14:54 desmin88: TIL that you can have a url without the scheme; it will use the scheme that the site you're on is using. Since you're just setting an iframe as the source of a webview, there's no scheme, so it fails. Mystery solved. Dec 18 21:14:59 and wtf is fourths? Dec 18 21:15:10 I440r: right, but that's not a good solution and you know it. Dec 18 21:15:18 canvs2321, no. i have a forth compiler written in arm asm that runs on my beagleboard xm and on my phone Dec 18 21:15:22 lov no. its not Dec 18 21:16:11 it probably runs on my ras-pi too but i cant tell cuz i broke it lol Dec 18 21:16:40 so the forth is written in asm, do you have to write asm for it? seems asm would be way more of a headache than a higher abstract layer as C. But I have 0 knowledge of your forth :) Dec 18 21:17:15 canvs2321, asm is orders of magnitude SIMPLER to write than C. c just plays mommy and holds your hand and protects you from you Dec 18 21:17:53 c is asm :| Dec 18 21:18:01 my class extends View... shouldn't eclipse bug me if i have unimplemented methods? Dec 18 21:18:02 g00s C coders like to pretend that yes Dec 18 21:18:06 lov: tada Dec 18 21:18:14 I440r when you write c compilers, yes c is asm Dec 18 21:18:32 g00s no. c is a translator that translates gobbldegook into asm Dec 18 21:18:38 you know right away how a construct will be in terms of instructions :) Dec 18 21:18:40 well the c compiler is Dec 18 21:18:44 and typically does better than hand-coded assembly Dec 18 21:19:02 g00s: c is asm? i don't think so Dec 18 21:19:14 c == asm lol Dec 18 21:19:17 nope Dec 18 21:19:46 levels of abstraction Dec 18 21:19:50 lupine, only if you cant code asm. anyone who optimizes down to the OPCODE level is dumb. the only reason C compilers HAVE to do that is because if they dont the resultant code would be freeeeeking horrendous Dec 18 21:19:54 I had fun with asm in class Dec 18 21:20:10 I440r, no, this is something that has been tested many times Dec 18 21:20:16 wrote merge sort in asm :P that was fun Dec 18 21:20:18 yea because you cant do "levels of abstraction" in asm lol Dec 18 21:20:25 in general, assembly programmers are beaten by compiler-generated assembly Dec 18 21:20:25 i did not have fun with asm Dec 18 21:20:29 but anyway Dec 18 21:20:42 this is not true for certain special-purpose applications, of course Dec 18 21:20:45 lupine yes because the optimiser on a C compiler HAS to be that good Dec 18 21:20:50 or else it woud totally freeking suck Dec 18 21:20:55 the why is neither here nor there Dec 18 21:21:00 it is what it is Dec 18 21:21:03 and 99.9999999999999999999999% of the time you dont need that kind of optimization Dec 18 21:21:24 I440r: yeah you're right. Levels of abstraction take away using 011010101 Dec 18 21:21:47 indeed, most of the time you can just use python or something else dog-slow Dec 18 21:21:47 my linux forth compiler is not optimized. does not do any optimizations. it compiles over 4 megabytes of soruce per second and i can do conole curses stuff better and faster than ncurses Dec 18 21:22:06 asm is pretty close to metal but not quite Dec 18 21:22:14 I440r: what is this forth compiler? is it a language? Dec 18 21:22:55 lupine, or use something like FORTH which is fine, compiles to 100 times smaller than the equiv C and is 1000000 times faster to develop in (assuming NON trivail applications i mean) Dec 18 21:23:02 asm is close to madness at the level of detail modern apps have. if you wanna blink a light, use asm, if you wanna make a complicated fully functional app, use a higher level Dec 18 21:23:16 canvs2321, forth is a programming language. i write forth compilers Dec 18 21:23:19 and apps in forth Dec 18 21:23:24 canvs2321: tjeres asm OS Dec 18 21:23:32 lov + canvs2321: What do you see wrogn with this embed code.. Dec 18 21:23:45 canvs2321: http://www.menuetos.net/ Dec 18 21:23:46 use forth if you like,I don't really care Dec 18 21:23:49 Because now my webview again wont load it Dec 18 21:24:00 what with UEFI, it's seeing a bit of a revival Dec 18 21:24:23 i wasnt trying to start a flame war. i hate C, i dont hate people who use it Dec 18 21:24:34 sas usual for asm stuff, tiny lol Dec 18 21:24:39 my app doesn't compile and run i got two this error: [2013-12-19 00:53:54 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. Dec 18 21:24:45 until i have to go in and unfuck the code they fucked up... but even then im being paid good $$ to do that so.. .. Dec 18 21:24:46 however, it's not that much faster. if I take a non-trivial program representing 1,000,000 hours of developer time, you cannot replicate it in an hour Dec 18 21:24:47 [2013-12-19 00:53:54 - setText] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. Dec 18 21:24:59 it'd be great if you could Dec 18 21:25:02 I440r: it's understood :) it's low level. So to deal with that much detail sucks :) Dec 18 21:25:23 desmin88: so you still getting same results? Dec 18 21:25:25 which error made problem ? Dec 18 21:25:33 i think i got it actually Dec 18 21:25:34 canvs2321, no - it actually doesnt suck, forth isnt LOW level. forth is ALL levls. it is as low or as high as YOU make it Dec 18 21:26:04 mintux: bufferoverflow is pretty self explained? Dec 18 21:26:13 you exceeded your buffers Dec 18 21:26:29 mintux:paste your stacktrace Dec 18 21:26:46 what does mean ? :-D Dec 18 21:26:54 canvs2321: same results. Dec 18 21:26:58 it means lmgtfy.com :) Dec 18 21:27:11 desmin88: then you are being denied internet access Dec 18 21:27:20 u have the permissions? Dec 18 21:27:27 i have internet access Dec 18 21:27:38 i would still prefer to have some shared memory between my forth and the java part of my app - i just dont think it will be possible :/ Dec 18 21:27:39 that's fine, but does your app? Dec 18 21:27:47 yes it does Dec 18 21:27:56 desmin88: silly question, but what happens if you take the url in your iframe and just put that in directly, rather than putting it inside of an iframe? Dec 18 21:28:05 hmm Dec 18 21:28:06 desmin88: Dec 18 21:28:06 let me see Dec 18 21:28:13 and yeah, you have the INTERNET permission, yes? Dec 18 21:28:21 canvs2321: i know the permission Dec 18 21:28:21 Does anyone have experience with CardsUI? I followed the instructions to add it to my project, and Android Studio doesn't find the classes, it only finds com.afollestad.cardsui.R Dec 18 21:28:29 im getting these youtube urls from a rest api Dec 18 21:28:58 starting with // is so you can pick http: or https: IIRC Dec 18 21:29:00 hrm.in linux, how would two separate processes both connect to the same shared memory? one would have to allocate it, how does the second one access it? Dec 18 21:29:07 autrilla: really for a cards ui just make a list item be a card Dec 18 21:29:09 no need for the lib Dec 18 21:29:12 desmin88: cool, but remember i have no idea about such details :) you are being denied your request. so get a logcat app and debug Dec 18 21:29:13 I440r, various ways Dec 18 21:29:17 try another link etc.... Dec 18 21:29:37 desmin88, could you elaborate? I don't really need the CardListView thing Dec 18 21:29:39 Just the card Dec 18 21:29:58 You can make a 'cards ui' with a list item and cards drawable Dec 18 21:30:04 /dev/shm will be easiest, probably Dec 18 21:30:20 desmin88, maybe a link to the drawable? Dec 18 21:30:52 http://pastebin.com/BZpjaD81 Dec 18 21:34:21 android apps can memory map a shared file? Dec 18 21:34:29 desmin88, thanks! Dec 18 21:35:21 I440r: what's your goal? why you need a file in memory? Dec 18 21:35:36 canvs2321: i delete android-supp... from libs and add it again also clean from this http://techlovejump.in/2013/11/how-to-solve-unable-to-execute-dex-java-nio-bufferoverflowexception-check-the-eclipse-log-for-stack-trace/ but still error Dec 18 21:35:42 I440r: you know about activity life cycles right? Dec 18 21:35:48 canvs2321, i need to have a buffer available to my android java process AND a native process that it spawned Dec 18 21:36:05 so they can communicate with each other via a memory mapped shared file. Dec 18 21:36:22 i can create the shared file in my forth easy, that functionality is already there Dec 18 21:36:26 I440r: what i'm saying is what is the shared connection? what are you sharing, image, binary etc...? Dec 18 21:36:29 but can i memory map that in java Dec 18 21:36:40 just think of it as "Data" Dec 18 21:36:43 it can be anything Dec 18 21:36:44 considered using JNI? Dec 18 21:36:52 zinx no. jni is not an option Dec 18 21:37:00 zinx: you might want to scroll up and grab some popcorn. Dec 18 21:37:20 lov you want to stuff the attitude up your ass? Dec 18 21:37:23 just a suggestion Dec 18 21:37:23 I440r: what i'm saying is, any data that you wanna use, your use it as it's available to whatever is currently being viewed? Dec 18 21:37:35 I440r, looks like https://developer.android.com/reference/java/nio/MappedByteBuffer.html is what you want Dec 18 21:37:49 as long lasting function isn't applied, stick with life cycles&saving data as needed? Dec 18 21:37:53 canvs2321, i need to be able to read and write any data and both sides need to be able to read and write it Dec 18 21:37:55 reads like a thin wrapper over mmap() Dec 18 21:37:59 in an organized way of course hhe Dec 18 21:38:09 lupine, tyvm! Dec 18 21:38:12 and you can get bytes into and out of it Dec 18 21:38:16 that might just be THE soluthoion lol Dec 18 21:38:16 ah, i see, "i have to do this the hardest way possible, so i absolutely can not do it the way i should do it" Dec 18 21:38:24 zinx, eh, mmap() is very useful Dec 18 21:38:33 lupine: java doesn't have that functionality Dec 18 21:38:42 lupine, erm no the FORTH has to allocate the buffer Dec 18 21:38:43 I440r: what i'm saying is, if an activity is paused/stopped/destroyed, you save data as needed. and display what is needed Dec 18 21:38:45 odd that there's an API for it then Dec 18 21:38:46 the java has to memory map it. Dec 18 21:38:58 im new to android that's pretty funny does it happen always ? error for nothing reason and delete something reopen eclipse maybe we are lucky and error disappear Dec 18 21:39:14 zinx: got it in one. Dec 18 21:39:29 lupine: mmap can do lots of fun things, and does not need a backing file. doing what you're suggesting requires a backing file. Dec 18 21:39:35 yea. this should work. ill do a test. Dec 18 21:39:56 kroot are you around, can i ask you a simple question about HttpsURLConnection documentation? Dec 18 21:40:10 zinx, the use case is that the forth program creates a file in /dev/shm and opens it with whatever; the java client mmap()s that file Dec 18 21:40:17 lupine: which admittedly could probably be some /dev/shm file :P Dec 18 21:40:18 they then use the shared memory they both have access to Dec 18 21:40:19 java spawns the forth process, and connects to it over stdin/stdout. java commands forth to create a shared file... forth does so... java them memory maps that file too... Dec 18 21:40:25 this should work... maybe Dec 18 21:40:27 nothing in problems . android:targetSdkVersion in AndroidManifest.xml matches target=android- in project.properties . and i still i got this error: [2013-12-19 01:09:30 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. Dec 18 21:40:27 [2013-12-19 01:09:30 - setText] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace. Dec 18 21:40:51 shit all this forth talk has me confused :) Dec 18 21:41:01 too much back and forth? Dec 18 21:41:06 hahaha Dec 18 21:41:15 lol Dec 18 21:41:17 * storkme gets his coat. Dec 18 21:41:20 too much of one of those, at least :P Dec 18 21:41:24 talking about forth, just read up that language. definitelyu inyeresting Dec 18 21:41:26 canvs2321, the confusion is because IM confused :) Dec 18 21:41:51 XXCoder, stay tuned. ill be releasing my arm forth in the near(ish?) future Dec 18 21:42:07 :P Dec 18 21:42:13 I can think of some very food use cases for this; and some very bad ones Dec 18 21:42:17 good* Dec 18 21:42:38 dammit was about to bring out my cookbook ;) Dec 18 21:43:01 im glad im not the only one here who types in the cracks Dec 18 21:43:58 wow such food. very cook. much sauce Dec 18 21:44:10 yeah too much sauce Dec 18 21:44:29 Blasphemy, never too much sauce! Dec 18 21:45:04 lol I used other meaning of sauce Dec 18 21:45:19 i used practical :P Dec 18 21:45:32 u mean alcohol? Dec 18 21:45:49 yep Dec 18 21:45:53 :P Dec 18 21:46:01 i guessed cause i'm on the sauce hahah Dec 18 21:46:13 lol Dec 18 21:47:07 anyone here know how to make vncviewer ALWAYS "Send F8" when i press f8 instead of popping up that stupid menu i never need lol Dec 18 21:47:28 man vncviewer Dec 18 21:47:51 no i found it inside the stupid F8 menu i never need to use :) Dec 18 21:48:07 'It is usually brought up by pressing F8, but this can be configured with the MenuKey parameter' Dec 18 21:49:23 ya i found that out after i asked if anyone knew lol Dec 18 21:49:57 i just noticed the gradle plugin 0.7.0 was released Dec 18 21:50:03 to mavencentral Dec 18 21:50:07 go testers go ! Dec 18 21:50:41 http://tools.android.com/tech-docs/new-build-system Dec 18 21:50:45 holy shit , changelog is long Dec 18 21:50:52 uh oh Dec 18 21:51:01 does this work with my AS 0.3.7 , i hope :) Dec 18 21:51:13 what is gradle? Dec 18 21:51:22 "Switch to ProGuard 4.10" Dec 18 21:51:23 like ant but not terrible Dec 18 21:51:25 \o/ Dec 18 21:52:03 lol. ant is way better than make or automake Dec 18 21:52:16 I440r its a build system but not forth based Dec 18 21:52:19 Build Config now automatically contain more constant Dec 18 21:52:20 yaaaay Dec 18 21:52:34 g00s forth does not need a build system, forth IS the build system Dec 18 21:52:46 not sure if i should wait for 0.7.1 being the holidays and all Dec 18 21:52:48 its also the debugger. the editor, the programming languge, the operating system.. . .. Dec 18 21:53:25 hmm Dec 18 21:53:28 sounds like emcas Dec 18 21:53:29 emacs| Dec 18 21:53:36 the only thing missing from emacs though Dec 18 21:53:42 is a good text editor. Dec 18 21:53:43 g00s: but isn't everything on android forth based? :P Dec 18 21:53:53 So if forth is everything, how did guy make forth? ;) Dec 18 21:53:54 oh ya ! :P Dec 18 21:54:05 it shares a venerable place at the forefront of repl Dec 18 21:54:08 no no, there was no beginning of time Dec 18 21:54:11 forth always existed Dec 18 21:54:17 I wouldn't use it myself, though Dec 18 21:54:17 there was no big forth bang Dec 18 21:54:23 forth sprang, fully formed, from the godhead :P Dec 18 21:54:33 first, forth made forth, and it was good. :P Dec 18 21:54:47 yuk NDK is horrible Dec 18 21:54:53 forth is like rainbow gravity or something Dec 18 21:55:15 XXCoder: forth defines itself independent of stupid 2d time, your children are educated stupid to not learn forth-cube Dec 18 21:56:03 dragorn you would probably know this, "SSLContext.getInstance("TLS");" … whats the best value for that string (assuming 4.1 and higher) Dec 18 21:56:26 i never see examples saying TLSv1.2 Dec 18 21:56:44 g00s: ergh. I'd hesitate to trust my knowledge on that one, ssl is all sorts of weird Dec 18 21:56:56 dragorn yeah :| ok thanks ! Dec 18 21:57:23 dragorn did you see http://www.washingtonpost.com/blogs/the-switch/wp/2013/12/18/research-shows-how-macbook-webcams-can-spy-on-their-users-without-warning/ Dec 18 21:58:02 g00s: I saw it mentioned; it's not good. I've heard rumors about something like that for a while but nothing concrete. Electrical tape. Dec 18 21:58:24 thats why i don't want a mobile device with always on mic Dec 18 21:59:48 and other crazy stuff http://www.cs.tau.ac.il/~tromer/acoustic/ Dec 18 22:00:26 g00s: About a year ago some guys did an awesome hack to some cisco sip gear that turned it into a spy box Dec 18 22:01:18 g00s: it looks like all the TLS providers may support TLS, TLSv1, and TLSv2, and negotiate it under the covers Dec 18 22:01:36 er tlsv1.2 Dec 18 22:01:52 so the negotiation takes the highest version ? Dec 18 22:01:58 you could tweak the enabled protocols directly if you want to force v1.2 Dec 18 22:01:59 during the handshake ? Dec 18 22:03:01 dragorn one last q, as a dev wanting to make sure your app is safe, what would you do (if anything) about this? pass it a specific cipher? http://op-co.de/blog/posts/android_ssl_downgrade/ Dec 18 22:03:22 g00s: I'm seeing other code that says try to make a v1.2 context, w/ an exception catch to fall back to v1 Dec 18 22:03:37 dragorn ah, sounds good thanks ! Dec 18 22:03:55 these apis are terrible Dec 18 22:04:14 no wonder why so many people screw this up, even banks and large social networks :) Dec 18 22:05:07 g00s: I'd follow his suggestions later in that page - set a manual list of ciphers and leave out rc4 and md5 Dec 18 22:05:20 ok, will do. Dec 18 22:05:26 g00s: and yes, crypto sucks, and is hard Dec 18 22:05:30 I avoid doing it myself whenever I can Dec 18 22:05:42 but you dabble for fun here and there :) Dec 18 22:05:44 I'm THRILLED to work w/ people now who understand it properly and I can jsut throw it over the fence at them and say "make this ok" Dec 18 22:05:46 surely there's a library you can use that autonegotiates for you? Dec 18 22:06:30 dunno. an android we're using openssl 1.0.1 for 4.1 i think Dec 18 22:06:40 you could use GnuTLS or something via ndk maybe Dec 18 22:06:42 or NSS Dec 18 22:06:48 bouncycastle Dec 18 22:06:50 or one of the other 20 ssl libraries Dec 18 22:07:00 there's still a ton of ways to shoot yourself in the foot with it though Dec 18 22:07:57 the fucking cert validation …. Dec 18 22:08:00 is a pita Dec 18 22:08:35 don't forget to support DANE Dec 18 22:08:45 i think i'll try to use moxie's AndroidPinning library Dec 18 22:09:07 but … i would have to change it to use java.ssl SSLSocketFactory, not apache Dec 18 22:09:15 which i dont want to touch ugh Dec 18 22:10:02 lupine just heard about it, thanks Dec 18 22:10:45 it'll put you about a decade ahead of the curve Dec 18 22:11:20 lupine is this like TACK, Convergence, etc ? Dec 18 22:11:50 it's using DNS records to say which certs are valid for a port on a domain Dec 18 22:12:04 ok, so same goal .. different method Dec 18 22:12:05 plus dnssec, that gives you a hierarchical, distributed trust lookup Dec 18 22:12:21 hmm Dec 18 22:12:34 thanks need to read more Dec 18 22:14:21 lupine maybe you know; if i want the user to be able to import a cert through the Settings 'import from sd' function ... Dec 18 22:14:36 Settings app that is, standard android UI Dec 18 22:15:01 and i want to make a TrustManager that uses only that cert, how do i do that ? Dec 18 22:15:19 do i have to use the KeyChain api, or something else ? Dec 18 22:15:40 dunno, i'm terrible at android development Dec 18 22:15:51 me too :) Dec 18 22:15:52 i'm just about to start adding ssl client certificate support to an application Dec 18 22:16:46 i will have to do that also Dec 18 22:23:22 Hello! Dec 18 22:29:13 Hello Kramer Dec 18 22:29:44 no wait Dec 18 22:29:45 George Dec 18 22:30:04 I'm glad that wasn't lost on people here Dec 18 22:30:37 I wanted to ask some questions about the current Android ecosystem as far as gaming is concerned Dec 18 22:32:58 Long story short, I want to create a sort of "Steam for Android". and I'm wondering a) Does the Play Store already provide that level of service as far as finding games is concerned b)Is there enough focus on gaming on Android to make something like this profitable? and c) Is there already something like it Dec 18 22:34:00 my immediate thought is you're going to have trouble funding it because google doesn't like people selling apps that aren't google Dec 18 22:34:12 so your model would end up being reflecting back into the play store Dec 18 22:34:43 s/reflecting/reflected/ Dec 18 22:34:48 you absolutely couldn't distribute the app on the play store, so it would be hard to market Dec 18 22:35:11 Well I'm looking to cater to the more "hardcore" gaming market Dec 18 22:35:32 there aren't really any "hardcore" games on android right now Dec 18 22:35:44 they're mostly time-wasting, in-app purchase games Dec 18 22:35:57 Art_Vandelay_: the only thing that comes to mind is the ouya, which I believe has its own market thingy Dec 18 22:36:06 I don't actually know anything about it though. Never used one, etc. :) Dec 18 22:36:13 but that's the point of a startup, right? finding opportunity, and increasing awareness Dec 18 22:36:22 well I'm thinking the user-base would fall along the lines of people who buy dedicated controllers and the like for their devices right now Dec 18 22:36:25 create the demand yourself Dec 18 22:37:10 find a few developers who develop serious games to get on board with you, and make sure they distribute exclusively through you Dec 18 22:37:25 and make install of your store easy Dec 18 22:37:49 if you can do those 2 things, and work through all the challenges, there may definitely be opportunity there Dec 18 22:38:07 but yea, fundraising is another thing -- it's definitely a high risk thing, and you'd need huge traction before even looking for money Dec 18 22:39:06 I have an already existing project in production, how difficult is it to migrate and use GreenDAO ? Dec 18 22:39:15 and ideally the store would just be "The Best of The Play Store", so users wouldn't have to cut through the chaff you find right now. But trying to gain traction when every app you offer is already probably on the pre-installed market would be difficult Dec 18 22:40:20 ylecuyer: how large is your current database, number of tables Dec 18 22:40:23 Also, on that note, is there a "high quality" ad service for android right now? Dec 18 22:40:44 anyone know how to make gradle run the app after the install task Dec 18 22:40:45 Art_Vandelay_: i would think if you want to make a "best of the play store", it might be best to just make an app or website, and monetize through ads Dec 18 22:41:07 certainly not a "steam of android" but an idea nonetheless Dec 18 22:41:13 jaynewstrom, I have like 4 tables, but only 2 cannot be rebuilt Dec 18 22:41:50 I was thinking that, but there are already quite a few players in the field (most of them being large tech blogs with massive user-bases) Dec 18 22:42:54 well, they all started somewhere :) Dec 18 22:43:01 true :D Dec 18 22:43:13 Nilium JesusFreke , a new ST3 is out Dec 18 22:43:24 ylecuyer: you can run two databases at the same time. on create just migrate the old one over. using a custom subclass of SQLiteOpenHelper Dec 18 22:43:32 nice. I don't think I use ST directly though Dec 18 22:43:59 ylecuyer: from then on out you can just use the GreenDAO tables Dec 18 22:44:08 How can I make something occupy 1/2 of the screen's widht? Dec 18 22:44:14 I don't use ST3. Dec 18 22:44:25 I thought ST3 had been out for a while now Dec 18 22:44:32 jaynewstrom, ok I see Dec 18 22:44:39 jaynewstrom, thanks I'll try Dec 18 22:44:58 oooh a new build Dec 18 22:45:20 I use ST2. I've mostly abandoned-ship on Sublime Text because ST3 does nothing useful over ST2 and I'm not paying for a lack of change. Dec 18 22:45:57 ylecuyer: you bet Dec 18 22:46:01 g00s: oh, I completely misread ST Dec 18 22:46:15 What do people use it for anyways? Web development? Dec 18 22:46:18 I thought you were talking about http://www.stringtemplate.org/ :) Dec 18 22:46:30 Mavrik: Getting back to our conversation with emulator... why just not to use kvm-enable flag? Dec 18 22:46:43 Art_Vandelay_: I just use it for random text editing. I usually have an instance open as a random scratchpad. Dec 18 22:47:08 and yeah, I've been using the sublime text 3 pre-release for a while now. I didn't realize it was out though Dec 18 22:47:28 is anyone here familiar with the ARM instruction set who could clear some things up for someone used to x86? Dec 18 22:47:42 *to the x86 Dec 18 22:48:06 int0x666: I might be able to answer (but probably not :p) Dec 18 22:48:36 I've looked into arm assembly a bit, but not recently, and I didn't go into great depth or anything. Dec 18 22:49:06 well Dec 18 22:49:11 Sublime Text 3 is not actually released Dec 18 22:49:13 So, it's not out Dec 18 22:50:00 could you explain to me what the rules are with all of these multiple-operand instructions? Dec 18 22:50:19 But the beta version Nilium Dec 18 22:50:19 1sec i'll find an example Dec 18 22:50:23 uh, another genymotion 2.0.3 update Dec 18 22:50:28 whats going on today Dec 18 22:50:48 Beta isn't the actual release >_> Dec 18 22:50:55 Your mom Dec 18 22:50:58 Does Genymotion support Unity3D? Dec 18 22:51:16 I remember trying it a month or two ago and not having it work Dec 18 22:51:19 lol nil Dec 18 22:51:46 why can't i Log.d(batteryInfo, batteryInfo); a BroadcastReciever ? Dec 18 22:51:52 okay Dec 18 22:52:19 markpp: I think you might want to provide more info :) Dec 18 22:52:32 as far as I know, there are no restrictions on doing a Log.d from a broadcast receiver. Dec 18 22:52:35 http://pastebin.com/zUGHqjLm Dec 18 22:52:35 push {r7, lr} Dec 18 22:52:37 line 23 Dec 18 22:52:43 like that instruction Dec 18 22:52:50 it makes no sense to me Dec 18 22:53:34 markovh: there are no restrictions from logging from a bcast receiver. Dec 18 22:53:42 markpp: batteryInfo will likely be null at the point Log.d is called Dec 18 22:53:53 Mavrik: ok, nevermind :) Dec 18 22:53:58 also, you almost certainly don't want to put the battery info as the tag (the first argument) Dec 18 22:54:06 I'd agree Dec 18 22:54:14 on both counts Dec 18 22:54:14 use the name of your application or some other short identifier Dec 18 22:54:16 null? Dec 18 22:54:30 markovh: Log.d("myapp", "some status message"); Dec 18 22:54:42 markpp: you know what null is? Dec 18 22:54:49 and in your oncreate, nothing has set batteryinfo. there's nothing to log. Dec 18 22:54:50 yes Dec 18 22:54:53 Null is the devil. Dec 18 22:54:57 nvm then Dec 18 22:55:12 i guess i have to wade through the datasheet for answers Dec 18 22:55:12 devnull Dec 18 22:55:53 still crashing it Dec 18 22:56:18 if you're getting a crash examine your stack trace and work fro mthere Dec 18 22:56:51 hmm i am new to this Dec 18 22:57:19 i am trying to get the battery info into a plugin for unity Dec 18 22:57:59 i've made the decision today to fully embrace Android Studio and stop using eclipse. i've been using it for a few months and i just wanted to let the google devs here know that i think you are doing a great job with AS. thank you! Dec 18 22:58:24 what about the IJ guys - it's mostly their code Dec 18 22:59:22 Ah.. it happens with all libs I add to the build.gradle, it only detects R.java classes :( Dec 18 22:59:43 sorry to not acknowledge them. i realize that google devs are standing on the shoulders of giants. Dec 18 22:59:47 :) Dec 18 23:00:39 nickfox i think all the google devs are on break :D Dec 18 23:02:09 ok so if i do f = new File(...) and if f.exists() returns false so i create it.. can i do f.setExecutable() on that instance of f or will the newly created file not be associated with taht lol Dec 18 23:02:32 do i just do f = new File() on the newly created file? Dec 18 23:02:44 i.e. discard the old instance of f Dec 18 23:11:26 Do I need to download any jars if I use mavenCentral? Dec 18 23:13:32 i have aapp that keeps crashing on the virtual device. can anyone offer some tips on tracking down the problem? Dec 18 23:14:57 ok so i copied my forth from assets to /data/blahblah/forth and i get an exception when i try to runtime.exec() it Dec 18 23:15:01 it is +x Dec 18 23:15:31 is that even possible ? Dec 18 23:15:37 I using eclipse. i see the log and console, but i'm having some problems interacting with those Dec 18 23:16:03 is what possible? Dec 18 23:16:06 executing it? Dec 18 23:16:26 http://stackoverflow.com/questions/4618631/android-runtime-getruntime-exec-to-nav-through-directories Dec 18 23:16:56 i know it is possible to execute the forth from that directory because i can do so in adb shell Dec 18 23:17:22 that doesn't mean your program can run it Dec 18 23:17:34 your app has a different uid than adb shell Dec 18 23:20:58 i might know the problem tho lol Dec 18 23:21:13 i never closed the in/out after copying the asset :P~ Dec 18 23:21:53 yea lol my app WAS able to execute it Dec 18 23:22:03 i just had to remember to close the fd's :P~ Dec 18 23:22:06 <-- nub Dec 18 23:23:04 man this is sooooooo freeking cool! Dec 18 23:23:44 now all i have to do is set up a test shared memory mapping and see if i can IPC Dec 18 23:23:48 look ma.. NO JNI!!! Dec 18 23:24:42 hmm, the intellij-based ide is not evil Dec 18 23:24:53 no its not Dec 18 23:25:08 it won't be free for long Dec 18 23:25:15 eclipse is a horrensoudly complex bloatare bugfest Dec 18 23:25:22 idea is awesome Dec 18 23:25:29 what wont be? Dec 18 23:25:31 free, not free, it's all the same to me Dec 18 23:25:32 intellij idea? Dec 18 23:25:33 piracy Dec 18 23:25:39 meh Dec 18 23:26:03 oh. people are pirating the ubber version when the free version is available ? Dec 18 23:26:04 wtf Dec 18 23:26:04 I've always liked eclipse/eclipse-based ides Dec 18 23:26:27 i'm not an IDE fan, but it's not obvious that android development is feasible without one Dec 18 23:26:30 Art_Vandelay_, maybe you can help me. how do i turn off ALL folding for ALL file types PERMANANTLY in eclipse? Dec 18 23:26:46 lupine, you ever use sublime text? Dec 18 23:26:50 <-- regged Dec 18 23:26:52 no Dec 18 23:26:59 know of it? Dec 18 23:27:00 I've never tried that, so I have no idea Dec 18 23:27:03 yep Dec 18 23:28:00 I generally just use gedit Dec 18 23:28:16 I know inside most of the editors you can turn off code-folding, but I don't know of a way to do it globally Dec 18 23:28:36 art thats the problem. you CANT turn off that "feature" in eclipse Dec 18 23:28:58 Q for all: how do i communicate with the Android HAL to open up the playback device pcmC0d0p ? --Thanks! Dec 18 23:28:59 Well you can for individual file types Dec 18 23:29:02 and thats just ONE screwball "Feature" out of 8465923645924 that the elipse devs have NO FUCKING CLUE how to implement in a sane manner Dec 18 23:29:14 no. you cant. you can only do so for individual FILES Dec 18 23:29:18 and only till you close them Dec 18 23:29:30 No, in the editor prefs you can Dec 18 23:29:54 ive never been able to even get THAT working and neither has anyone in #eclipse been able to tell me how Dec 18 23:29:58 but its no matter now Dec 18 23:29:59 Window ‣ Preferences ‣ Insert Type Here ‣ Editor ‣ Folding usually works Dec 18 23:30:21 intellij screwball feature that saves when you don't want it to Dec 18 23:30:24 then i should be able to create a type called * and disable folding for it Dec 18 23:30:34 tcb i always want save on loss of focus enabled Dec 18 23:30:36 ALWAYS Dec 18 23:30:53 thats you Dec 18 23:30:55 it screws up people using my computer ! :) Dec 18 23:31:00 thatll learn them Dec 18 23:31:13 That sounds horrible Dec 18 23:31:44 I know its a horrible habit, but I have a tendency to use saving as "mini version control" Dec 18 23:32:26 i will press save when i want to save Dec 18 23:33:15 its habit of crashing gnome3 constantly is getting to me though Dec 18 23:33:16 * lupine -> bed Dec 18 23:33:33 What? Dec 18 23:33:50 Saving crashing Gnome3? Dec 18 23:34:12 I knew it wasn't great, but is it really that bad? Dec 18 23:45:28 i hate my mom Dec 18 23:45:54 that's not a very nice thing to say Dec 18 23:46:06 lol Dec 18 23:46:39 nick9998, why do you hate your mum? Dec 18 23:47:18 she's a dead-beat Dec 18 23:47:25 :( Dec 18 23:49:08 nick9998, that's not really a reason to hate her? Dec 18 23:50:28 nick9998: HTTP/1.1 302 Found Location: #android-offtopic Dec 18 23:51:37 soo . AS 0.3.7 should work fine with gradle plugin 0.7.0 right? i haven't seen an update to AS. Dec 18 23:52:03 evanc: are you my mommy? Dec 18 23:52:17 mummy* Dec 18 23:52:25 I am your mummy yes Dec 18 23:52:28 Totally on-topic he wants me to write him a finance app Dec 18 23:53:37 :P Dec 18 23:53:43 thanks, daddy Dec 18 23:53:52 or is it duddy? ;) Dec 18 23:54:43 evanc++ Dec 18 23:55:38 What just happened lol Dec 18 23:55:57 mummy slapped somebody Dec 18 23:56:27 I disconnected to nickXXXX saying he hates his mom, come back to someone saying that's not a reason to hate your mom, then this guy getting kicked Dec 18 23:56:35 does 0.7 support the NDK? I remember it was on the road map Dec 18 23:56:42 long story short, that escalated quickly Dec 18 23:57:05 Art_Vandelay_: nick asked evan if was mom Dec 18 23:57:23 and so he got kicked? Dec 18 23:57:34 and stating that it was long story short, you doubled your story length ;) Dec 18 23:58:31 I'm confused so I'll just imagine he said something vulgar while I was gone Dec 18 23:58:59 evanc: http-sense-of-humour-does-not-compute-lol Dec 18 23:59:05 I assume people realise it was a Doctor Who reference? Dec 18 23:59:22 Where did Doctor Who enter the picture?! Dec 18 23:59:28 * Art_Vandelay_ is so confused Dec 18 23:59:55 "Are you my mummy?" is a repeated line in The Empty Child, an episode of it Dec 19 00:00:11 yeah and that line has never been said in any other context Dec 19 00:00:22 I also don't watch/know Dr. Who, so I didn't get that Dec 19 00:00:45 me neither. I think leslie is reading into this just a little bit too much. Dec 19 00:00:52 maybe Dec 19 00:01:17 I know something about Daleks though, and how the exchange rate of Cybermen to Daleks is really high! Dec 19 00:04:50 exactly Dec 19 00:29:03 hey guys, is there an easy way to monitor network traffic on my device? Dec 19 00:29:36 this tutorial does not work: http://developer.android.com/training/implementing-navigation/lateral.html Dec 19 00:30:11 i'm having some issues with testflight and it shows in the log that it sends out the request, but i'm not sure if the actual request gets through Dec 19 00:30:15 why does google torture me with buggy code? Dec 19 00:31:00 tcb^ll3r: they don't need you to compete with them ;) Dec 19 00:31:19 shmooz: then why even put these out? Dec 19 00:31:57 hope will keep the slaves working Dec 19 00:32:17 shmooz: meh Dec 19 00:32:47 then i will chop this code into itty bitty pieces till it works Dec 19 00:33:12 or, ill just start a blog detailing the "bugs" Dec 19 00:41:59 its fine, i will get it to work; i always do. Dec 19 00:47:07 not getting MemoryFile() at all. its supposed to be a wrapper for ashmem but i cannot see any result of using this outside of my java code Dec 19 00:47:14 i.e. theres no fucking file i can share wtf over? Dec 19 00:57:03 sounds like you can just use a shared name and it's shared Dec 19 00:57:05 * pfn shrugs Dec 19 01:11:30 hmm, I don't think ashmem has a name. (hence the "a"sh - anonymous shared memory) Dec 19 01:11:48 or rather, an ashmem mapped memory region or whatever Dec 19 01:11:51 Hi there. Help please. I have a callback that is receiving some json data. It is an override and must be void. HOW do I get this json data back to my Fragment, or my MainActivity? Dec 19 01:12:28 The callback is in a class that is not inside MainActivity. It is just doing communication things. Dec 19 01:13:08 oh, they are named, but they can't be shared by name Dec 19 01:13:15 only by fd Dec 19 01:13:55 (via binder) Dec 19 01:14:13 which sounds like overkill for the intended usage :) Dec 19 01:15:58 ohshit Dec 19 01:16:13 gradle 0.7.0 isn't working with AS 0.3.7 Dec 19 01:16:36 java.util.ArrayList can not be cast to java.util.Map Dec 19 01:16:41 how the ffff Dec 19 01:16:51 haha Dec 19 01:17:10 unchecked casts ftw! Dec 19 01:17:26 thats was the ide / gradle plugin, yeah i didn't do that :) Dec 19 01:17:31 yeah, I know :) Dec 19 01:17:41 probably fucking groovy, unchecked crap Dec 19 01:17:45 yea Dec 19 01:18:03 no help with my issue? :-) Dec 19 01:20:41 If i start a new, child activity what happens to the parent one? Is it ok to keep my dataset in the main one? Dec 19 01:23:36 its become a ritual for me - to file a bug against AS the minute they release it, saying basically it fucking blows up and won't start or do shit Dec 19 01:24:04 lol Dec 19 01:24:18 GEEGEEGEE: i dont think theres any gaurentee it will survive Dec 19 01:25:01 it may kill it and when you navigate up recreate it Dec 19 01:25:25 it actually depends Dec 19 01:25:56 using navutils.navupfrom... Dec 19 01:26:00 will create the activity new Dec 19 01:28:01 pfn got an example of that somewhere? preferably one thats not 500 gigs of obfuscated TLDR java to demonstrat one iddy biddy concept (you know, the way GOOGLE does example code) Dec 19 01:28:44 I440r, no, just google for ashmem ioctl Dec 19 01:29:42 malibu: still there? Dec 19 01:29:50 im not using ashmem directly. im using MemoryFile which is a java wrapper for it Dec 19 01:30:01 the only examples i can find for ashmem are NDK based C examples Dec 19 01:30:03 not java Dec 19 01:30:06 i.e. useless Dec 19 01:30:12 Yes I am Dec 19 01:30:14 I440r, it should be the same concept Dec 19 01:30:23 I440r, in ndk, just access the same ashmem name you created with MemoryFile Dec 19 01:30:34 desmin88: You know what I need to do? Dec 19 01:30:35 it doesnt exist Dec 19 01:30:52 i just set a breakpoint and am looking - the file does not exist Dec 19 01:31:06 so i cannot just open it. also i am NOT using the NDK Dec 19 01:31:15 desmin88: I've been googling forever Dec 19 01:31:18 malibu: Make a listener interface that accepts your data, have your fragment/activity implement it, and pass your fragment/activity to the async task in the constructor Dec 19 01:31:24 pfn: ashmem regions can't be shared by memory Dec 19 01:31:25 when you get you callback, pass it to the listener Dec 19 01:31:29 err Dec 19 01:31:32 can't be shared by name. lol Dec 19 01:31:34 i have a binary executable. that executable needs access to the shared memory allocated by the java Dec 19 01:31:37 JesusFreke, oh well Dec 19 01:31:40 I guess fd only Dec 19 01:31:40 they can only be shared by fd Dec 19 01:31:51 kinda odd, since fd don't really translate across process boundaries, I don't quite understand that Dec 19 01:31:54 so if you need to access it from another process, you have to send the fd over binder Dec 19 01:31:56 desmin88: Ok I did see that at one point. Sounded kind of flaky to me. But if you tell me it is solid I will go with it. Dec 19 01:32:10 its not flaky Dec 19 01:32:14 JesusFreke, right, but how does the receiving process mmap on that fd, since it isn't legitimate in the recving process Dec 19 01:32:18 (binder has some magic in the kernel to be able to pass the fd to another process) Dec 19 01:32:18 JesusFreke, thats the POINT of ashmem. it suppose to be "map /dev/asmem, use IOCTL to name it. get a new dev file of the specified name taht can be mapped by the other procesS" Dec 19 01:32:25 desmin88: awesome. That's really good to know. Thanks. Dec 19 01:32:27 cant use binder Dec 19 01:32:31 yw Dec 19 01:32:33 I440r: not *by name* Dec 19 01:32:49 then this wont work for me, period Dec 19 01:32:55 JesusFreke, indeed, yeah, binder magic again... Dec 19 01:33:03 have to make everything so fucking complicated Dec 19 01:33:37 how do i create a shared memory mapping in java that i can use in some TOTALLY UNRELATED process Dec 19 01:33:48 desmin88: I'm actually commenting my code with a direct paste of your comment. :-) Dec 19 01:33:56 cool! Dec 19 01:37:35 I440r, memoryfile -> binder -> mmap in other process Dec 19 01:38:37 desmin88: So far I have come up dry on impl instructions Dec 19 01:38:51 ? Dec 19 01:39:15 desmin88: I don't know how to implement a listener interface Dec 19 01:39:18 yet Dec 19 01:39:28 ok Dec 19 01:45:37 desmin88: can you please tell me if this is the technique you mean? http://stackoverflow.com/questions/2983250/custom-event-listener-on-android-app Dec 19 01:59:13 omfg cant even use MappeByteBuffer to do shared memory Dec 19 01:59:21 what the fuck over google Dec 19 01:59:30 how do i memory map a SHARED MAPPING in android? Dec 19 02:00:59 http://javarevisited.blogspot.com/2012/01/memorymapped-file-and-io-in-java.html <-- this page is a crock of utter bullshit. the code cannot possibly work as advertised or else GOOGLE is fucking fibbing about MappedByteBuffers Dec 19 02:01:24 All or part of a MappedByteBuffer's content may change or become inaccessible at any time, since the mapped file region can be modified by another thread or process at any time. If this happens, the behavior of the MappedByteBuffer is undefined. Dec 19 02:01:50 so after my other process writes into the shared mapping the behavior of android java on that buffer is "underfined" Dec 19 02:01:54 srsly Dec 19 02:09:16 I440r do you need to allocate it directly? no idea ;) Dec 19 02:19:23 do you really even need to do shared memory here? Dec 19 02:19:42 why are you going through so much pain to avoid a simple jni shim to allow ana ndroid process to embed your forth interp? Dec 19 02:20:24 ugh, finally, got my emailhack working right Dec 19 02:21:55 https://gist.github.com/pfn/8025880 Dec 19 02:21:58 now it friggin' works right Dec 19 02:28:37 does anyone have a working version of FragmentStatePagerAdapter? Dec 19 02:29:49 pfn because i dont want ANY c code in this. if it can be done WITH c, it can be done without Dec 19 02:30:00 plus im not using the NDK Dec 19 02:30:13 but it can't be done without C Dec 19 02:30:18 you can't use a binder without C Dec 19 02:30:21 or mmapped buffers Dec 19 02:30:34 unless your forth interp has mmap builtin... Dec 19 02:30:42 of course it oes Dec 19 02:30:45 does Dec 19 02:31:08 it can do ANY system call Dec 19 02:31:14 anyway, you can use mappedbytebuffers Dec 19 02:31:24 it's just you'll always have race conditions when updating memory within them Dec 19 02:31:32 which is why it's an undefined behavior Dec 19 02:31:52 depending on when you read, it may very well not be in a consistent state Dec 19 02:31:58 so all i need to do is TWO buffers. i write to one, but read from the other Dec 19 02:32:11 the other process read/writes the other way round Dec 19 02:33:24 but i dont even know if that will work Dec 19 02:33:41 I wish the google example code actually worked :( Dec 19 02:33:50 from what ive read, any time process B writes to the shared memory mapping the behavior of that mapping is undefined at the other end Dec 19 02:34:00 google doesnt give any GOOD examples Dec 19 02:35:45 i know. its really annoy me Dec 19 02:36:12 google examples are all TLDR and do too many things and BURY the one little concept they are trying to demonstrate inside gobs of totally irreleavant bullshit Dec 19 02:37:03 i have been trying to get FragmentStatePagerAdapter to work all day. i found two examples, neither one works. the downloadable code has hundreds of errors out of the box Dec 19 02:37:21 google dev: we need an example of how to open a file in java.... Dec 19 02:37:30 manager: ok write a space invaders game to show that Dec 19 02:38:50 Its weird, because I can usually find the mistakes and correct them. I find it hard to believe that a company w so much money can't get things right. Dec 19 02:39:35 Is it A:they hire kids, or B:They do it on purpose? Dec 19 02:39:55 probably some interns summmer project Dec 19 02:40:52 I bet I could do a better job. Dec 19 02:41:38 then do it Dec 19 02:41:45 everyone says they can do a better job Dec 19 02:41:46 no one does Dec 19 02:41:58 I dunno, i can usually fix the stuff Dec 19 02:42:38 This FragmentStatePagerAdapter is really tough because I don't have a working example of what it does. Dec 19 02:42:57 all day to create a simple swipe view Dec 19 02:43:53 the example code throws this in eclipse log: Conversion to Dalvik format failed Dec 19 02:52:04 all day it was a bug in the build tools. i down graded 20 18.1.1, and then it works. **** ENDING LOGGING AT Thu Dec 19 02:59:59 2013