**** BEGIN LOGGING AT Sat Sep 27 02:59:59 2014 Sep 27 03:00:24 ThomQ: everything will look like an array to you. Sep 27 03:00:24 ThomQ but iOS is kinda like a paradise in hell Sep 27 03:00:42 I hate the objc method styles. Sep 27 03:04:38 g00s wonder if the tube is big enough to smuggle people in Sep 27 03:04:47 james bond in the beer capsule tube heist Sep 27 03:04:52 hehe Sep 27 03:05:18 g00s, isn't that even Worse? :P I am expecting it being overly simple and not being able to do half the stuff I'm doing in the Java versions Sep 27 03:05:45 haha space invaders apparently the reason why the alien ships speed up is because when you kill them they're less of them so the renderer renders faster--originally intended to be at same speed Sep 27 03:05:54 yeah i saw that Sep 27 03:06:15 ThomQ iOS might surprise you ;) its not as bad as android devs make it out to be Sep 27 03:06:48 I saw that space invaders thing too :D Sep 27 03:07:03 g00s hmmm ok, well my fear went down a Little bit ;) Sep 27 03:07:04 if they had blutooth rfcomm for everybody back in 2010, i'd probably still be doing iOS Sep 27 03:08:00 ThomQ and for a new project i guess swift anyhow Sep 27 03:10:33 i'll probably look into it once I got like 4 or 5 projects to port, make it worth my while Sep 27 03:12:39 its good to know the capabilities of both platforms; there are projects that naturally lend themselves better to one than the other Sep 27 03:13:07 knowing ios and android also makes you more marketable, if thats important to you Sep 27 03:13:26 especially since the ios project usually come first :) Sep 27 03:15:19 yeah you're totally right :) I'm just getting started doing jobs in commission, and lucky for me we started offering iOS and Android apps made in either Unity or UE4 Sep 27 03:15:37 but it's almost a requirement for a freelancer to be able to do both Sep 27 03:15:42 natively Sep 27 03:16:26 I want to make an action if an INTENT is Not empty. is it if (Intent != Null)? Sep 27 03:19:36 peyam, i don't think an empty intent == null, does it? Sep 27 03:20:16 Ahh yeah, my directions feature is up and working. Took my 2,5 hours, but it's there :D Sep 27 03:21:42 ThomQ: it is intent.getExtras != null. just found it :) Sep 27 03:21:57 :) nice Sep 27 04:52:54 Has anyone done pay-per-click advertising? Sep 27 06:17:55 Hi guys, one short, maybe silly question. ;D I only need an experience what you think is the better way: I’ve stored data in a database on my server. My android app needs this data… Sep 27 06:17:57 Fuck Sep 27 06:18:45 Solution 1: Create a database conenction in the app and everytime get the data from database? Or Solution 2: Store all data which the app needs into the app, so that the person who uses the app doesn’t need a network connection? Sep 27 06:18:50 Thank you ;D Sep 27 06:22:07 g00s: poor apple mucked up the upgrade and had to patch bash all on top of each other Sep 27 06:52:47 All of a sudden the vehicles I've added aren't showing up in vehicle selector. Sep 27 06:53:09 wc Sep 27 06:53:26 (wrong channel, sorry) Sep 27 07:08:45 lasserix: hi Sep 27 07:08:50 I was able to do that Sep 27 07:58:13 hello Sep 27 07:58:14 anyone here? Sep 27 07:58:22 *cricket* Sep 27 07:58:26 if so, how can I do this? http://i.imgur.com/WT4Z5Zl.png Sep 27 07:58:48 what exactly? Sep 27 07:58:50 like a greyish semi-transparent overlay over a webview/fragment Sep 27 07:59:19 I've seen it in some apps but i can't remember which Sep 27 07:59:47 doesnt even have to be semi-transparent Sep 27 08:00:39 uh Sep 27 08:00:49 just use a relativelayout and align it on the bottom? Sep 27 08:01:44 hmm Sep 27 08:04:00 Mavrik: you mean a relativelayout inside a linearlayout? Sep 27 08:04:09 no. Sep 27 08:04:17 what would that accomplish? :) Sep 27 08:04:17 o.o Sep 27 08:04:25 idk, was about to ask you Sep 27 08:04:39 Mavrik: then what? Sep 27 08:04:53 ? Sep 27 08:04:59 Use relative layout to space out your views Sep 27 08:05:19 put a webview stretched over a whole screen and then make a view with controls over it aligned to the bottom Sep 27 08:05:28 all of that can be accomplished with a single relativelayout Sep 27 08:05:30 how do I put it over it? Sep 27 08:05:49 by just... adding it to the relative layout after webview :) Sep 27 08:06:08 views are always stacked one over another in order they're written in XML Sep 27 08:06:14 (with the exception of views in linearlayout) Sep 27 08:06:48 so i create a viewgroup? Sep 27 08:06:51 so you make a relativelayout, you put in a webview stretched over the screen then you just add a layout/view with your controls after it and set alighparentbottom=true Sep 27 08:07:06 so I have 2 layouts? Sep 27 08:08:16 Moony22: Listen, RelativeLayout, inside that put your webview match_parent, just beneath that physically in the XML put the view you want to go over it and align it to the bottom of the RelativeLayout Sep 27 08:08:57 They don't snap bottom to top, it'll give it a positive zindex Sep 27 08:09:34 Darklust & Mavrik thanks a lot, I did it :) Sep 27 08:14:34 ok quick question how do hangouts and other messaging apps have some sort of imageview that highlights when you click it? like an actionbar button? like in this pic: http://cdn.arstechnica.net/wp-content/uploads/2013/10/hangouts2.jpg Sep 27 08:17:35 Moony22: Which part of the image is relevant? Sep 27 08:18:48 Darklust: well for example on the left image, at the bottom right there is a button that sends the message, and on the right image, there is a button on the bottom left and right to view emoticons and send a picture respectively Sep 27 08:20:15 it's probably just an imageview or imagebutton Sep 27 08:20:20 which has the icon itself set as a src Sep 27 08:20:37 and then a background state drawable which has "no" background as default and "gray" background as pressed Sep 27 08:20:53 Moony22, see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Sep 27 08:21:25 this is probably relevant enough: http://karanbalkar.com/2012/10/tutorial-10-customizing-buttons-in-android/ Sep 27 08:21:41 hmm thanks Mavrik looks like thats it Sep 27 08:48:38 Mavrik: i did this, but nothing happens when i press the button http://pastebin.com/yyr2nLUx Sep 27 08:55:15 Mavrik: i mean the imageview* Sep 27 08:56:36 Moony22, did you add the selector to the imageview ? Sep 27 08:58:15 csst0111: yes Sep 27 08:59:55 csst0111: as a background Sep 27 09:06:59 Maybe the image covers the background Sep 27 09:40:02 hi all! trying to use GPS in my application, but doesn't work. LocationManager.getLastKnownLocation always returning null. any hints? pastbin: http://pastbin.com/Y3ULjwkz Sep 27 09:41:13 (gps is enabled, checked that (LocationManager.isProviderEnabled)) Sep 27 09:52:34 pastbin not working Sep 27 09:52:49 oh its pastebin Sep 27 09:53:34 did you... type the pastbin manually? Sep 27 10:00:21 Hi Sep 27 10:00:31 ohayo Sep 27 10:00:52 i have a handler that i use .postDelayed with, and it’ll run some code after 1 second… how can i cancel that if something else happens before that 1 second is up? Sep 27 10:01:04 if I override method onLoadResource from WebViewClient, will it continue load the image or assign it to me? Sep 27 10:05:36 hmmm Sep 27 10:13:57 ultra-: handler.removeCallBacks Sep 27 10:14:00 Fenny: no, why? Sep 27 10:14:24 Ashiren: got it, thanks… had to make the handler and runnable global to the class and call that Sep 27 10:14:58 or removeCallbacksAndMessages(null) for all if you dont want keep references Sep 27 10:15:04 I just removed some unnecessary lines.. (as far as i thought they were unneccesary ;) Sep 27 10:15:26 jerng: he meant the link Sep 27 10:15:47 it would be hard to mis-copy paste link ;o Sep 27 10:16:56 Ooops. Sep 27 10:17:40 yes, i did it manually ;) host <-> virtual machine Sep 27 10:18:19 wow that was a lot easier than i thought… such a waste of time Sep 27 10:33:29 vmware let me copy/paste between host / vm Sep 27 10:35:45 virtualbox Sep 27 10:41:26 hm. I have no idea what i did bot now it's working Sep 27 10:45:28 ok,it seems that GPS needs sime time to startup. how can i check if it is available? Sep 27 10:49:52 no callbacks to implement? Sep 27 11:03:38 Newbie q: I will have two activities that will be using very similar, almost identical methods. Is the recommended way to keep separate methods for each activity or to alter them and put them in a separate class? Sep 27 11:04:05 General java answer: if you can make some methods static you can extract them into a single meainful compilation unit Sep 27 11:04:12 meaningful* Sep 27 11:04:54 m1dnight__: could you explain that a little more idiot proof? Sep 27 11:07:10 jesperj: Put semantically-related static methods in a seperate file. Sep 27 11:07:55 jesperj: Try to recognise common functionality and generalize it so that it becomes reusable. Then put it somewhere else so that you don't cp it. Sep 27 11:08:31 flan3002: is it recommended to always to that when there is more than one activity who needs to call it? I was thinking that maybe when only two activities will use a similar method, it might be ok to define it in both activities instead of a separate class Sep 27 11:08:49 flan3002: but the recommended way is to always keep it in a separate class if its used by more than one activity? Sep 27 11:10:01 jesperj: If the difference is reasonably large, a copy can be okay, but it usually isn't. Try to keep your code as dry as possible. http://en.wikipedia.org/wiki/Don't_repeat_yourself Sep 27 11:10:30 Thank you flan3002 Sep 27 11:10:34 jesperj: It's not 'recommended', it's just the sane and reasonable way. Sep 27 11:10:45 flan3002: *nods* Sep 27 11:14:08 jesperj: Also note that not only functionality that can be implemented via static methods deserve to be seperated. You should do almost anything that makes your code more readable, even if it means factoring out often used usage patterns into its own library. Sep 27 11:16:48 ok Sep 27 11:17:01 I will try to remember and implement that Sep 27 11:21:49 Hi all, anyone any idea how I capture screencap's output stream into a Bitmap object? Sep 27 11:25:37 ricklamers: Call it with -p and read that into a bitmap? Sep 27 11:26:03 flan3002: That works, but if I do that it's too slow for my purposes of real-time analysis of the screen Sep 27 11:26:17 flan3002: Was wondering of reading stream would be any faster Sep 27 11:26:26 ricklamers: Likely. Let me look it up... Sep 27 11:27:14 ricklamers: http://stackoverflow.com/questions/22034959/what-format-does-adb-screencap-sdcard-screenshot-raw-produce-without-p-f Sep 27 11:27:30 That should do... Sep 27 11:27:39 flan3002: You're fast. I'm going to look into it. Thanks in advance. Sep 27 11:27:44 :) Sep 27 11:28:35 It might be device-dependent tough... Sep 27 11:28:53 *though ^^ Sep 27 11:30:18 You might have to copy with all these image formats (, or even more?) http://developer.android.com/reference/android/graphics/Bitmap.Config.html Sep 27 11:30:21 *cope Sep 27 11:35:34 flan3002: I see, but since I only have to have it working on my device for demo, I'll just have to deal with 32-bit RGBA (Sams Note 3) Sep 27 11:36:02 That'll be fine then. So, just decode that stream in the right order and you should be fine. Sep 27 11:36:32 Yup, I see it skips 12 bytes for the header based on your Stackoverflow post, correct? Sep 27 11:36:34 ricklamers: But... what do you want to do? Sep 27 11:37:18 flan3002: You probably won't even believe it: analyze Timberman in-game screen and do image comparison to make a bot playing the game. Sep 27 11:37:31 flan3002: Advanced Programming minor Sep 27 11:38:03 Oh... Sep 27 11:39:30 ricklamers: Also see http://stackoverflow.com/a/14718588/1768238 Sep 27 11:39:33 flan3002: You sound disappointed :P Sep 27 11:41:42 flan3002: Scanned it, looks promising. Now reading in more detail. Sep 27 11:41:55 Not that promising. Sep 27 11:41:56 How to ignore failed ssl certificate in URLConnection? Sep 27 11:44:27 MalekAlrwily: you have to allow it Sep 27 11:44:37 ricklamers: If you're okay with starting a service via adb once per boot... https://code.google.com/p/android-screenshot-library/ Sep 27 11:45:01 danijoo: what do you mean "allow it"? Sep 27 11:45:05 hello friends.... Sep 27 11:45:12 happy weekend... Sep 27 11:45:19 MalekAlrwily: https://developer.android.com/training/articles/security-ssl.html#CommonProblems Sep 27 11:45:19 flan3002: I looked into that lib, but doesn't it write to a file as well? Sep 27 11:45:29 please can someone help me how i can install android studio 0.8.11 Sep 27 11:45:40 It's 3 years old, so it likely won't be working anymore anyways... Sep 27 11:45:54 hackable: download the file, doubleclick it? Sep 27 11:46:28 MalekAlrwily: TL;DR is: if its not a trusted certificate, you have to configure your app to trust it. Sep 27 11:46:29 ricklamers: See the code of screencap to see what format it uses: https://android.googlesource.com/platform/frameworks/base/+/android-4.3_r2.3/cmds/screencap/screencap.cpp Sep 27 11:46:41 (More or less) Sep 27 11:48:27 hi Sep 27 11:49:55 danijoo: Thank you, the link contain an example show how to ignore the certificate Sep 27 11:49:59 :) Sep 27 11:50:28 flan3002: Using HxD I can see hexidecimal values of the file. It def looks like RGBA. So I think I'm going ahead and parse the byte array and create a Bitmap based on a color Array using Bitmap.createBitmap Sep 27 11:50:47 MalekAlrwily: if you ignore the certificate, you can stop using ssl at all. Sep 27 11:51:23 but maybe the website will redirect it to https Sep 27 11:51:30 You can do that, ricklamers. But also, creating a transparent overlay over that app and capturing that (BBitmap.createBitmap(rootview.getDrawingCache());) might work. Just an idea... Sep 27 11:51:49 * You can do that, ricklamers. But also, creating a transparent overlay over that app and capturing that (Bitmap.createBitmap(rootview.getDrawingCache());) might work. Just an idea... Sep 27 11:52:04 I will try now Sep 27 11:52:17 flan3002: Would that transparancy also allow touch events to delegate through? Sep 27 11:52:33 MalekAlrwily: either use a trusted ssl certificate or add the certificate to your apk as described Sep 27 11:52:43 ricklamers: I don't know. But maybe worth a try. Sep 27 11:53:09 if you just tell it to trust everything, anyone could intercept your ssl. thats like requesting a password but proceed even if its the wrong one.. Sep 27 11:53:31 flan3002: Definitely something to check out, I could combine that method with what Facebook uses for chatheads. Sep 27 11:54:13 flan3002: Thanks for your help so far. Much appreciated/ Sep 27 11:55:06 danijoo: that's all Sep 27 11:55:20 danijoo: just download Sep 27 11:55:52 the file i downloaded is a zip file for android studio Sep 27 11:56:36 want to get told how to extract zips? ^^ Sep 27 12:11:35 how do the facebook chat heads work? Sep 27 12:11:40 can anyone make an app like that? Sep 27 12:12:19 if facebook can, anyone can Sep 27 12:13:28 danijoo, but how, what did they use to make the chat heads? Sep 27 12:18:00 Hey, using android studio all of the sudden I get "Failure [INSTALL_FAILED_DEXOPT]" when trying to debug my app through the emulator. Ive googled the crap out if but get nothing useful. Sep 27 12:18:46 Bubo: WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY i think Sep 27 12:18:59 Also have anyone gotten JavaMail to work in eclipse or Android Studio? I can't get it to link properly https://code.google.com/p/javamail-android/ Sep 27 12:19:23 Hi Guys, on a button, how do you override the sound events that are fired with your own click sound? Sep 27 12:20:57 I notice I can turn off the "SoundEffect" on a button, but is there a way to theme it? Sep 27 12:20:59 Bubo: You create a service, and in this service's on create you create a view with TYPE_SYSTEM_OVERLAY and add that to the windowmanager Sep 27 12:58:27 I found an app that creates a world writable /cache/recovery Sep 27 12:58:49 does this mean that any app could install a virus/backdoor simply by placing whatever code they want into that folder? Sep 27 12:59:26 the app triggers recovery mode every so often (to auto-update) Sep 27 12:59:42 i have the weirdest problem Sep 27 13:00:09 zylinx: there are creams for that Sep 27 13:00:22 https://www.irccloud.com/pastebin/tfAupKDr Sep 27 13:00:46 sometimes the heading strings randomly get cut off and only show the first letter Sep 27 13:01:02 the capital A letters Sep 27 13:01:18 *-A Sep 27 13:01:41 zylinx: in which textviews ? Sep 27 13:02:09 the first set Sep 27 13:02:11 headings Sep 27 13:02:38 zylinx: the ones called "spacers" ? Sep 27 13:02:52 zylinx: but yeah, you're telling it to ignore the height Sep 27 13:03:11 oh sorry wrong ones Sep 27 13:03:13 :_D Sep 27 13:03:29 no not spacers, all the textviews in the first table row Sep 27 13:03:41 yeah sorry, got it Sep 27 13:04:49 zylinx: Could you set the width to wrap_content ? Sep 27 13:05:34 for the table layout ? Sep 27 13:06:10 zylinx: for all the textviews Sep 27 13:06:19 zylinx: or android:layout_width="fill_parent" Sep 27 13:06:23 zylinx: for all the textviews Sep 27 13:06:35 ahhh, i will try that Sep 27 13:06:44 i made this a long time ago Sep 27 13:07:38 its just weird, 99% of the time its fine, but every now and then if u have progress bars pop up or something happening the headings will only show the first letter Sep 27 13:07:46 please help, i just downloaded new InteliJ Idea android studio from their upgrade website, the file contains zip file which i have unzip but i can't find any executable file to install it, please any idea on what do you and how to go about it Sep 27 13:07:53 zylinx: try android:stretchColumns="*" android:shrinkColumns="*" Sep 27 13:07:59 zylinx: in the TableLayout Sep 27 13:08:43 i'm installing for window Sep 27 13:10:04 i'm installing for window Sep 27 13:10:05 please help, i just downloaded new InteliJ Idea android studio from their upgrade website, the file contains zip file which i have unzip but i can't find any executable file to install it, please any idea on what do you and how to go about it Sep 27 13:10:39 better write it a third time. Sep 27 13:11:13 hackable: maybe you downloaded it for the wrong OS? Just a random thought Sep 27 13:11:41 if I go to AS download page, the download is an exe, so you must have done something wrong.. Sep 27 13:12:06 danijoo: paste him the URL :-) Sep 27 13:12:20 im not his google Sep 27 13:12:42 johnFlux__: i downloaded the one for window Sep 27 13:12:57 let me send you the URL Sep 27 13:13:01 hackable: it's called "Windows" btw Sep 27 13:14:20 johnflux__: hes doing that all day... requesting things that could be googled in 2 secs Sep 27 13:14:35 here is the URL: http://tools.android.com/download/studio/canary/latest Sep 27 13:14:56 danijoo: i've google it but not getting it Sep 27 13:15:10 that's the URL Sep 27 13:16:13 this is canary build. which means its the alpha of the alpha of the beta :D Sep 27 13:16:41 also are you serious? extract that zip and there is your exe Sep 27 13:16:57 android-studio/bin/studio.exe ... Sep 27 13:17:57 fight fight fight fight! Sep 27 13:19:08 i'm checking... Sep 27 13:27:09 hackable can't find the exe coz its not in the root directory of the archive Sep 27 13:27:14 top kek Sep 27 13:28:55 I love the crash report functionality of google play, however, is there something even better one can implement in an app to get even more crash data? Sep 27 13:29:12 jesperj: You can use google analytics Sep 27 13:29:28 * jesperj googles google analytics Sep 27 13:30:53 It would be very informative if one could get a screenshot of what happened just before the crash or a series of screenshots, along with a user description message Sep 27 13:31:12 though that might of course be unacceptable for integrity reasons Sep 27 13:31:31 i got one crash report from google play but no user message with it. Sep 27 13:31:55 that would be pretty bad privacy-wise.. Sep 27 13:32:21 and honestly, I haven't figured out yet how to use the debugger properly to figure out why my app in a given situation gives a nullpointerexception error Sep 27 13:32:51 everyone says it's so easy.... well I find it difficult to learn. I havent found any tutorial yet that makes me understand the process Sep 27 13:33:53 I put a java exception breakpoint for nullpointer just before the line with the reported error, then start the debugger Sep 27 13:34:11 it highlights the line in question when i run the app... then what? Sep 27 13:34:19 I dont see any nullpointer exception errors or anything. Sep 27 13:34:29 i dont know how to reproduce the error Sep 27 13:36:49 thats the tricky part. if the npe does only occur in rare situations you have to figure out under what circumstances Sep 27 13:37:23 its more then just enable the debugger and requires big insight in your code and the framework. Sep 27 13:38:14 and a lot of knowledge about how to use the debugger Sep 27 13:38:29 do you know any good tutorials on using the debugger? Sep 27 13:39:10 no. but isnt it just setting the breakpoint and running the app? ^^ Sep 27 13:39:24 then you click next, next, next and observe the variables/errors Sep 27 13:40:07 ^ pretty much Sep 27 13:40:11 step over or step in Sep 27 13:40:14 easy Sep 27 13:40:16 danijoo: heh. well... I thought I must be doing something wrong since I never reproduce any nullpointerexception error Sep 27 13:40:31 zylinx: then iknow everything about debugging and can use it like an expert Sep 27 13:40:54 danijoo: i only started using debugger yesterday lol Sep 27 13:41:16 so... I mean I must be doing something wrong if I can't reproduce the error? Sep 27 13:41:19 jesperj: the eror might occur only in rare circumstances like user closes the app and reopens it fast or weird things like that Sep 27 13:41:37 common one is screen orientation change Sep 27 13:41:41 look into that jesperj Sep 27 13:41:54 screen orientation is actually locked in my app :P Sep 27 13:42:15 back when I was a total noob for example, i often got those "cant do that after onsaveinstancestate called", which are pretty much impossible to recreate intentionally Sep 27 13:43:46 Hello. I have a SQL datatime in the format "2014-09-27T10:36:52.614Z". How can I convert such to human readable string like 2 hours ago, or on 27th September Sep 27 13:44:29 https://www.irccloud.com/pastebin/f5CMKJEC Sep 27 13:44:33 vedu ^ Sep 27 13:44:37 i use something like that Sep 27 13:44:39 vedu: SimpleDateFormat Sep 27 13:44:41 you will need to modify it Sep 27 13:45:07 it would have been good if the crash report included some way of contacting the user for more details Sep 27 13:45:44 well it can't be rotate problem since orientation is locked. I tried locking and unlocking the screen, and it's not that. Sep 27 13:50:09 http://pastebin.com/cVEdA5Z7 < My guess is it doesn't find R.id.historyViewDateChooserChoiceMonthSpinner view in some situation Sep 27 13:52:50 does anyone have an idea what might be happening? I don't understand why it wouldn't find the spinner Sep 27 13:54:50 Heeeey! Sep 27 13:54:55 zylinx: Yes. Something like that :) Sep 27 13:55:02 From one activity (SplashActivity) I'm starting another (MainActivity) Sep 27 13:55:20 just before that I run an AsyncTask Sep 27 13:55:35 is it possible to let MainActivity know when this AsyncTask finished? Sep 27 13:56:23 this task is supposed to update the database, I need MainActivity to update a list when that happens Sep 27 13:57:22 flan3002: remember the other day when i brought up why android doesnt use passwords. now this shell shock bug apparently allows the hacker to do anything a user can do if it is not password protected Sep 27 13:58:13 ColdSnowden1987: I don't see how shellshock is dangerous to Android? What would a program gain by exploiting it? Sep 27 13:59:45 they can see all my contact info, text premium SMS numbers, if i do online banking. passwords ect... Sep 27 14:02:45 jesperj: a stacktrace would be helpful Sep 27 14:03:18 oh i see its oin the comments Sep 27 14:03:51 ok, I think I can fix my problem if I find a way to launch an activity and keep a reference of it somewhere Sep 27 14:04:10 currently I'm doing so through an intent, so I never have an instance of MainActivity class Sep 27 14:04:14 jesperj: can you show me the full activity ? Sep 27 14:04:18 is there a way to do so? Sep 27 14:07:34 ColdSnowden1987: I don't see why they would be able to see that sort of information. Sep 27 14:08:03 well,they could if you're rooted and approve any process to access root Sep 27 14:08:35 helicopter88: Well, they don't need shellshock then... Sep 27 14:09:14 and now with selinux enforcing,it should be extremely hard to access those informations Sep 27 14:11:13 but if i dont password protect root access then i dont see what is to stop programs from sending an "allow" on there own whenever they try to change something through root Sep 27 14:11:37 ColdSnowden1987, you have to press "Allow" Sep 27 14:12:07 apps can't auto accept Sep 27 14:12:12 Hello Sep 27 14:12:18 what mechanism stops code from doing this for me? Sep 27 14:12:28 helicopter88: I told him all this days ago... He didn't seem to listen. -.- Sep 27 14:12:33 code from an app already installed Sep 27 14:12:48 How can I include an external project in my android application ? Sep 27 14:12:58 m-r-r: which IDE? Sep 27 14:13:01 m-r-r: What form does the external project have? Sep 27 14:13:03 I don't think you can easily fake touch screen touches Sep 27 14:13:13 danijoo: Eclipse Sep 27 14:13:26 add it as a library project Sep 27 14:13:33 flan3002: It's a directory containing source code. It builds. Sep 27 14:13:47 helicopter88: https://code.google.com/p/android-event-injector/ Sep 27 14:13:57 danijoo: Yes, but how do I do that ? Sep 27 14:14:01 google it Sep 27 14:14:14 flan3002, you need root for that Sep 27 14:14:34 danijoo: http://pastebin.com/QAcUrX5t Sep 27 14:14:51 ok that makes sense... physical access to the screen as a credendial i can live with that Sep 27 14:15:12 helicopter88: Maybe http://stackoverflow.com/a/15561286/1768238 then... :/ Sep 27 14:15:44 But yeah, nothing to worry about... Sep 27 14:18:19 my point is that yes... you first have to allow a malicious app to get root to allow it to send screen touch messages but it is possible.... Sep 27 14:19:22 jesperj: mh thats strange Sep 27 14:19:28 but omce that happens it can install whatever else it wants to. one way to mitigate that issue is to require passwords for all installations Sep 27 14:19:50 You could try having a variable in your activity pointing to that spinner and use that instead Sep 27 14:20:16 that way one malicious app cant download thousands more without your consent. Sep 27 14:20:22 instead of finding it every time the button is clicked Sep 27 14:23:17 How to disable load images in WebView except one specific URL? Sep 27 14:27:42 ColdSnowden1987: I'm just going to say that if you install such an app AND grant root privileges, it's basically your fault. Sure, it's possible and it should be possible, because root should allow you to do all sorts of crazy stuff, but usually someone will post warnings about this pretty soon or review the possibly open source code of an app. Sep 27 14:29:00 But... as I told you last time, ColdSnowden1987, this is still the wrong channel for this discussion. Sep 27 14:30:35 danijoo: ok... Sep 27 14:30:53 Anyone here do android development with Scala? Sep 27 14:32:59 vozz: pfn Sep 27 14:33:32 he wrote the build tool Sep 27 14:33:44 oh nice Sep 27 14:34:14 I'm just wondering how I would convert an existing android + gradle project over Sep 27 14:35:41 danijoo: anyway thanks for looking at it :) Sep 27 14:50:03 is there a correct channel for this discussion? Sep 27 14:51:08 for what discussion Sep 27 14:57:38 is there some table which tells me for which resolutions exactly are the folders "values, values-large, values-normal,....values-xlarge" ? cant find it Sep 27 15:01:37 is it a big problem if i don't use the @string resource in my app? Sep 27 15:02:02 and just use hardcoded strings Sep 27 15:03:53 depends how flexible you want your app to bwe Sep 27 15:04:19 its a small app and doesn't need much flexibility Sep 27 15:04:25 hello friends, i can i setup jboss path on my system Sep 27 15:05:00 well you can hardcode your strings. if you will be extending your app, youre probably gonan regret it, but meh Sep 27 15:05:13 what do you mean extending? Sep 27 15:05:24 updating Sep 27 15:06:34 adkins: https://developer.android.com/guide/practices/screens_support.html maybe this Sep 27 15:07:25 I have a button that is clickable, and the onClick method that links with it is empty, but when I click it my app crashed. Any idea why? Sep 27 15:08:25 Ashiren: thank you once again ;) i must have overlooked/overscrolled it Sep 27 15:08:51 do you have that method in the activity? Sep 27 15:09:05 yes I do ashiren Sep 27 15:09:25 android:onClick="newSheet" public void newSheet(){} Sep 27 15:09:44 or post logcat in pastebin Sep 27 15:10:06 newSheet(View v) Sep 27 15:10:12 oh right....thanks Sep 27 15:10:34 i would have spent an hour before realizing that lol Sep 27 15:33:41 there anyway to check the progress of downloads in Android Studio? Sep 27 15:37:11 Player player1 = new Player(); List players = new ArrayList(); players.add(player1); does not work. Says variabledecloratorID expected after this toke Sep 27 15:45:45 hi I shared my project to git this has moved the projects folder outside of the workspace into a git folder, now my app crashes with class not found errors, do I have to clean some caches? Sep 27 15:50:44 is there a way to get all of the available sensor data when onSensorChanged is triggered? Sep 27 16:24:41 I think I read somewhere that one could "scale up" the size of the AVD window? I'm making a user guide with screenshots and I would like them with higher resolution. (I dont mean like setting higher res in the AVD specs because I want the layout to be like on a smaller device, just the screenshots higher res...). Can you do this? Sep 27 17:03:23 playersPerm.get(y).score = Integer.parseInt(pb.get(y).getText().toString() + Integer.parseInt(pa.get(y).getText().toString())); My output is showing a concatinated integer instead of adding 2 integers Sep 27 17:04:01 oh nvm I see it Sep 27 17:05:12 I'm trying to start an AVD I made with eclipse from the command line with "./emulator -avd TestDevice2" and I get "emulator: ERROR: This AVD's configuration is missing a kernel file!!". It works fine to start and use this AVD from eclipse... ? Sep 27 17:11:36 hello Sep 27 17:13:41 I've developped an app using python and kivy I've almost finished it can anybody I want to include advertising in it can anybody guide me the correct links to do so? And tell me the steps or smthg? Sep 27 17:22:51 http://www.millennialmedia.com/ Sep 27 17:23:36 shameless plug? Sep 27 17:24:22 ? the guy asked for ads Sep 27 17:24:43 if you want to send messages from one phone to another like whatsapp, do you just send json to a server and the server sends the json to the other phone and you handle it there? Sep 27 17:24:45 adq: what is shameless plug Sep 27 17:24:51 or is there another way of doing this? Sep 27 17:24:54 MikeClassic: thank you Sep 27 17:25:30 my bad MikeWallaceDev :) Sep 27 17:25:47 I did not notice, I'm so tired of ads spam everywhere Sep 27 17:26:20 adq: lol dude tell me what is shameless plug? Sep 27 17:26:43 http://www.urbandictionary.com/define.php?term=Shameless+Plug Sep 27 17:27:09 ^ dony Sep 27 17:27:36 okay thks Sep 27 17:33:54 jesperj, of course, there's a -scale option Sep 27 17:36:15 * jesperj nods Sep 27 17:36:16 thanks Sep 27 17:38:06 Can you use GCM for making a simple chat application? Sep 27 17:40:31 okay this is a stupid question but how much can a person expect to make from their first app on android? like on average how much does it make ? 0 dollars? Sep 27 17:41:55 dony depends from the app Sep 27 17:42:24 uhmm its a game Bubo a very small endless game :p Sep 27 17:42:33 do you have an average value? Sep 27 17:43:08 I would guess it depends on popularity.. if you have a lot of users -> more money Sep 27 17:43:16 There's no way to know dony. It depends on the app, marketing, buzz Sep 27 17:43:24 yeah, too many factors Sep 27 17:43:41 but the probability you earn a decent amount on their first app is very low Sep 27 17:44:24 Bubo, idk for GCM but you could use Play Games services Sep 27 17:44:44 what is considered a decent amount? adq? Sep 27 17:45:13 Budo, that's not what GCM is for. You're supposed to use GCM to basically wake up your app, and then make a connection. Sep 27 17:45:17 Ah Sep 27 17:45:23 adq play games services? can you point me somewhere Sep 27 17:45:24 imagine you work for a company, you can easily know how much you earn per hour based on your year salary and average weekly hours Sep 27 17:45:27 That being said, I have done that before :D Sep 27 17:45:56 so decent would be greater than 20, 30, 40$ or more per hour Sep 27 17:46:03 it's also depending on the country and living cost Sep 27 17:46:05 too many factors Sep 27 17:46:20 so you estimate how many hours you put on something, and if it is worth it Sep 27 17:46:25 adq: wow to me earning like 200 bucks for this game would be great Sep 27 17:46:28 s/something/buildingyourgame/ Sep 27 17:46:53 yeah but if you spend a lot of hours on building the game, 200 bucks is not much Sep 27 17:46:56 boom netsplit Sep 27 17:46:59 you can probably make 200 bucks, yeah Sep 27 17:47:07 okay Sep 27 17:47:11 200 bucks is a monthly salary here Sep 27 17:47:12 fingers are crossed Sep 27 17:47:12 :p Sep 27 17:47:14 :) Sep 27 17:47:35 where is "here" Bubo? Sep 27 17:47:42 adq what did you mean by google play services? for making a simle chat app? Sep 27 17:47:42 final question is adbuddiz good ? Sep 27 17:47:59 https://developer.android.com/google/play-services/games.html Sep 27 17:48:20 i assumed because you mentionned gcm that you don't have a server Sep 27 17:48:34 but you want ppl connected around the world to be able to speak together Sep 27 17:48:44 appengine is a good, cheap starting server Sep 27 17:48:50 Cheap = free Sep 27 17:48:50 ah true Sep 27 17:49:36 adq I do have a vps server laying doing nothing Sep 27 17:49:46 so you don't need anything except socket :) Sep 27 17:49:58 or maybe start by mimic-ing a simple irc client Sep 27 17:50:02 the protocol is easy to grasp Sep 27 17:50:13 (RFC 1459) Sep 27 17:50:22 so no need to use google play services? Sep 27 17:50:34 adq yeah I know how it works Sep 27 17:50:44 so no, you don't necessarly need play services at all Sep 27 17:50:55 but how do I send it form the server to a specific device Sep 27 17:50:57 ip? Sep 27 17:51:20 then I need to handle it in the app, but how? does an event happen? Sep 27 17:51:52 there are so many ways to do it that i cannot answer, sorry Sep 27 17:52:48 first know what will be your architecture model, mesh, 1xserver/n-clients, n-servers/n-clients, etc.. Sep 27 17:53:19 gcm Sep 27 17:53:28 what will be your constraints, does everyone is connected to a local node (could be bluetooth with ppl physically near you), or only ppl with a G+ account, or anyone with the ip of the server if you use this model or etc.. Sep 27 17:53:38 take a pen & paper :) Sep 27 17:53:41 ttyl. Sep 27 17:54:27 You register on the app (username/password) and you can add other people (usernames) as your friends and chat with them Sep 27 17:54:33 and no groups, just 1 on 1 Sep 27 17:55:00 so gcm is the answer, wake up the app send the message and display it Sep 27 18:13:42 when i do view.post(), when the runnable is exactly executed? is the code *always* executed on main thread? why things break if i execute view.post() several times in the same method? Sep 27 18:13:58 any good article to read on this?.. Sep 27 18:24:57 android studio says com.google.android.gms:play-services:4.2.42 failed to find Sep 27 18:24:59 any ideas why? Sep 27 18:25:14 it does this if I make a project with a login activity already created from the start Sep 27 18:31:34 Bubo, we are glad to help with hints, and design, and weird bugs and stuff, but you have to debug your stuff first... Sep 27 18:31:47 Try it yourself, Google, then here :) Sep 27 18:32:05 MikeWallaceDev, I'm just making a new project from the menu, it should work Sep 27 18:32:06 weird Sep 27 18:32:45 do you have the play services installed from SDK? Sep 27 18:34:36 you don't, do you! Sep 27 18:35:21 I do! Sep 27 18:36:00 BUT, do you have google-play-services_lib imported as a project and referenced as a library in the project you're working on? Sep 27 18:36:37 Sicp, no Sep 27 18:36:46 alright Sep 27 18:37:06 then you did not read this http://developer.android.com/google/play-services/setup.html Sep 27 18:37:08 shame on you Sep 27 18:38:01 oh no I haven't gotten there yet Sicp ! Sep 27 18:38:28 So why did they change the logo of kitkat from the kitkat looking chocolate one ? Sep 27 18:38:28 that's the place to start from, you don't get there later Sep 27 18:38:49 I guess it asks for the play services lib because it auto-adds google+ login Sep 27 18:39:12 let's not get philosophical Sep 27 18:39:56 Sicp: ? Sep 27 18:41:13 hello, what would you use to make a game like catching eggs? opengl? or is too much? can i use something simpler? Sep 27 18:49:20 Hi Sep 27 18:50:53 is there an API to check if user downloaded the app from Google play store? Sep 27 18:52:00 I want it on server side, not on client side Sep 27 19:06:59 MalekAlrwily, you can use LVL http://developer.android.com/google/play/licensing/index.html Sep 27 19:07:27 keep in mind it will not really enhance anything related to security, unfortunately Sep 27 19:07:33 Thank you Sep 27 19:07:40 but that was not your initial request ;) Sep 27 19:08:43 but the check has to be done on client side Sep 27 19:08:48 since the server side is google play store Sep 27 19:17:35 I have problem with an HCE service I am building. I have gotten to a point where my ACR122U NFC reader can detect and connect to my Android phone, but when I execute any commands be i valid or just totally made up I get the same response 0x6F00 (No possible Diagnosis). Does anyone here have any experience with NFC and HCE services on android? Sep 27 19:24:43 Never mind, I just found the solution! :D Sep 27 19:24:53 I am trying to figure out the names for all of those symbols next to the file names. like the unlock symbol or the big blue circle with the C on it. but Im not sure what they are called to google them. What might these symbols be called? I am using intellij/android studio Sep 27 19:33:37 huh Sep 27 19:33:46 you mean... icons? Sep 27 19:39:06 In SQLiteOpenHelper, I need a version for the constructor.. which version do I use ? Sep 27 19:39:31 whichever you want Sep 27 19:39:31 1? Sep 27 19:39:33 for example 1 Sep 27 19:39:55 Ashiren, is that the version of the sqlite db? Sep 27 19:40:04 no Sep 27 19:40:12 later, if you change that version Sep 27 19:40:17 onUpgrade will be invoked Sep 27 19:40:32 so you can update tables or something there Sep 27 19:40:36 ah so I can delete and create the tables from the new schema Sep 27 19:40:38 alright, thanks Sep 27 19:52:18 I have android:id="@+id/"> in it gives me a problem while building Sep 27 19:52:40 for what is that ID? for the layout ? Sep 27 19:54:11 seriously dude, http://developer.android.com/develop/index.html Sep 27 19:54:53 MikeWallaceDev, i went through that.. Sep 27 19:55:02 No. You didn't. Sep 27 20:00:44 Bubo, what’s the full text of the .xml file? Sep 27 20:02:59 colabug, see the 10th line "android:id"@+id/neznam"> ? it was "android:id"@+id/" (empty).. not sure why it got created while rebuilding my project, but putting anything fixed it Sep 27 20:05:27 @Bubo, you can omit the android:id attribute but not leave it blank. You generally want to assign an id for interacting with that view element in Java or for laying out items in a RelativeLayout (xml). Sep 27 20:08:08 ty Sep 27 20:08:22 np Sep 27 20:27:00 hi, is it possible to store a list / an array of setting-values in the default shared preferences or do i need something custom for that? Sep 27 20:29:28 hello, what would you use to make a game like catching eggs? opengl? or is too much? can i use something simpler? Sep 27 20:29:29 FreshDumbledore, you have to serialize it to a String Sep 27 20:29:35 but you can also use http://developer.android.com/reference/android/content/SharedPreferences.Editor.html#putStringSet(java.lang.String, java.util.Set) Sep 27 20:29:39 if it is already a set of string Sep 27 20:30:00 i basicly want to allow multiple profiles to be created in the app. right now i got it for 1 possible user, so with username+password and stuff. could i somehow extend this to make it be possible to dynamically add a 2nd, 3rd, Nth profile each containing this valuepairs with preferences? Sep 27 20:31:11 cant you make separate shared preferences for each user? Sep 27 20:31:33 hmm one user should be able to create as many of this profiles to use them at the same time as he wants Sep 27 20:31:46 i could limit it to, lets say, 5 Sep 27 20:31:50 and create 5 preference strings Sep 27 20:31:55 each holding like 'user;pass' Sep 27 20:32:03 and then split them up again after reading Sep 27 20:32:54 its about reading rss output of a browser game, you are allowed to play on multiple servers there, so i would like to add a possibility to read the rss of different servers = profiles Sep 27 20:33:04 each having its own login information Sep 27 20:46:00 does anyone purposely use older version of google play services to lower method count? Sep 27 20:47:57 and when did the fused location apis become available (what version of google play services) Sep 27 20:51:48 FreshDumbledore, it's not recommanded to store any sensitive information in sharedpreferences like password Sep 27 20:52:16 except if you encrypt, but then you have to store the key outside of the device Sep 27 20:52:24 which leads to other problematics Sep 27 20:52:37 hm thanks i didnt consider security yet Sep 27 20:52:51 :) very important nowadays Sep 27 20:54:05 i guess the problem is that other apps / malware could read it? Sep 27 20:55:39 FreshDumbledore: rooted users can read prefs in plain text Sep 27 20:55:42 you have few ACL with sharedpref, like MODE_PRIVATE Sep 27 20:55:45 but this is not security Sep 27 20:56:04 it just prevents others apps/packagename to be able to read your sharedpref Sep 27 20:56:10 so some encryption and decryption and storing it in textfiles is best? Sep 27 20:56:13 but anyone with root and local acces, BOOM Sep 27 20:56:23 best is use token Sep 27 20:56:27 like oauth with google Sep 27 20:56:28 per example Sep 27 20:56:34 no sensitive stuff on the device Sep 27 20:56:36 that's the rules Sep 27 20:56:41 ok will not forget to add something in this direction in the end Sep 27 20:57:06 also you have to be aware of the context Sep 27 20:57:10 you're not a nuclear plant ;) Sep 27 20:57:49 so don't put too much effort in it, just sufficient and necessary Sep 27 20:58:28 still it will make my app be better than the other apps doing similar things :-D Sep 27 20:58:31 thanks for mentioning Sep 27 21:00:18 so some encryption and decryption and storing it in textfiles is best? <- it's better than having everything in clear text, but as i said, you end up with a similar problem Sep 27 21:00:33 where will you store your key for encrypt and decrypt (assuming you use symetric encryption) ;) Sep 27 21:00:41 hardcoded! Sep 27 21:00:42 ;-) nah Sep 27 21:00:44 ^^ Sep 27 21:00:48 i will look into oauth or something else Sep 27 21:00:55 yeah Sep 27 21:01:12 the only issue i can see with oauth and google, is your users need a google account Sep 27 21:01:25 if you and htey are fine with it, it's good Sep 27 21:02:22 or if you have a server, appengine or something else, you can also do everything in server side, so you don't have to store password on client but on server side Sep 27 21:02:32 the client will just enter the password which will be send to the server for check Sep 27 21:02:46 thus the client acts only as a front-end Sep 27 21:03:12 like we do daily, when we log here and there on many websites Sep 27 21:09:40 help, FrameLayout (id/open) is shown in preview, but doesn't show up on device Sep 27 21:09:49 what do ._. Sep 27 21:13:33 is there any other way to draw a rectangle :| Sep 27 21:14:23 pfn: your update fucked up the app on nexus 7 2013 Sep 27 21:14:28 hello! Sep 27 21:16:49 gdrc, what specifically is fucked, the tabs? Sep 27 21:18:00 gdrc, use the drawer or drop down for nav instead until next week when I get around to fixing ut Sep 27 21:18:07 sqrrl, um, like dozens upon dozens? Sep 27 21:18:08 the layout! http://i.imgur.com/EDkmv7B.png Sep 27 21:18:42 gdrc, yeah, the tabs, switch, like I just said Sep 27 21:18:47 uh. i forgot to give my layout https://gist.github.com/anonymous/438991dac9ec8895535c Sep 27 21:18:54 I rarely use them, so I didn't test it Sep 27 21:19:01 this FrameLayout is never drawn Sep 27 21:19:11 ravilov: uh what Sep 27 21:19:33 i read since sdk 11 there is a multilistselectpreference thing, is that recommended or should i use one of the custom implementations i find on google? i want to display a list of checkbox choices Sep 27 21:22:32 is calling system.nanoTime() expensive? it makes my game hack if i call it every round in my gameloop (60 updates/second) Sep 27 21:23:18 hack? Sep 27 21:23:36 i look at the overdraw Sep 27 21:23:44 the framelayout is never even drawn... Sep 27 21:24:31 is it possible to route audio to use bluetooth headset for output and internal microphone for input (at the same time)? Sep 27 21:28:02 troned: i can’t imagine it would be expensive, that is odd Sep 27 21:28:56 would uptimeMillis be faster? Sep 27 21:29:07 er Sep 27 21:29:13 why do you need nanotime Sep 27 21:29:48 i mean if it’s 60 updates/sec you’d only need ms, not ns precision - i really don’t know if that would make a difference though Sep 27 21:30:12 please help ._. Sep 27 21:30:14 any ideas Sep 27 21:33:25 Hello Sep 27 21:34:32 pfn, how can I join a channel with the app? Sep 27 21:37:32 Does anyone know of a simple chat API, preferably something that allows Google+ sign in or no sign in at all? Looking for something that requires no registration, or uses Google+ accounts since my app already uses Google+ sign in. Sep 27 21:38:16 gdrc, /join Sep 27 21:45:02 test Sep 27 21:45:06 wow Sep 27 21:47:20 ? Sep 27 21:47:23 such wow Sep 27 21:48:09 many test Sep 27 21:48:21 very ? Sep 27 21:48:39 =] Sep 27 21:52:05 I'm looking use usb to send electrical impulses to a breadboard. all i need is on off signals through a usb cable. how can i implement this? Sep 27 21:53:26 i'm rooted and have a gentoo chroot, is it possible to do something like this through gentoo chroot or do i need to do something else? Sep 27 21:53:35 if you could use the jack output, you can use audiotrack to send signal between -1 and +1 ;) Sep 27 21:53:38 i've got the nexus7 2013 model Sep 27 21:53:38 but for usb i have no clue Sep 27 21:54:22 for usb check the spec, it should not be hard to just send 1 or 0 Sep 27 21:56:41 why navigation drawer increases overdraw over stuff that's below it? Sep 27 21:58:12 Because it's drawn over the stuff that's below it? Sep 27 22:00:36 yeah i was thinking about statically compiling libusb,(if possible using that to send 1 or 0), then using that in a jni application... i guess my question is can i use something statically compiled in a linux chroot as a library in a jni android app? Sep 27 22:00:51 I won't be able to use the audio jack. Sep 27 22:01:56 anyone familiar with this multichoice checkbox preference implementation? http://blog.350nice.com/wp/archives/240/comment-page-1 Sep 27 22:02:06 im having problems retrieving the checked entries :D Sep 27 22:02:37 i dont know what to throw at ListPreferenceMultiSelect.parseStoredValue() Sep 27 22:03:21 (the android:key ? android:entries ? android:entriesValue ? string-array name ? item name? :l ) Sep 27 22:04:18 ndk i mean, not jni Sep 27 22:04:58 xdaimon: use a usb/uart converter (ftdi supports android afair) Sep 27 22:05:16 or a devboard with a usb device interface Sep 27 22:07:03 like stm32 discovery Sep 27 22:10:09 https://github.com/ksksue/Android-FTDI-UART-Sample Sep 27 22:17:46 ok i understand it now; i need to retrieve my preference regulary first and throw that preferencestring on this function Sep 27 22:23:59 Hello ! Sep 27 22:24:33 I have a few questions about Android Dev, and wondered if anyone could help me Sep 27 22:26:44 Jaybbb: general rule for all help channels > dont ask to ask, ask Sep 27 22:29:18 So, I am developing a private app store for companies, but as of today users need to allow 'installation from unknown sources', I would like to be able to distribute my Application through the play store, and allow it to install APKs without the need for user to check the unknown sources installation Sep 27 22:29:22 Airwatch does that Sep 27 22:29:31 If I want my class to have a Thread instead of be a Thread, how should I implement that thread? making it a Thread seems wrong...should it be aRunnable or should I use a Handler? Sep 27 22:29:42 but I don't know if I can do it and how can I do it Sep 27 22:32:10 is it wrong to make a class extend another just to have access to getDefaultSharedPreferences ? xD Sep 27 22:32:54 it's not wrong but you don't need it Sep 27 22:33:03 because sharedpref is a singleton Sep 27 22:33:17 any instance of sharedpref are in fact the same Sep 27 22:33:39 i got an error like 'The method getDefaultSharedPreferences(Context) in the type PreferenceManager is not applicable for the arguments ..' Sep 27 22:33:47 so i read on google i can pass the context with the constructor Sep 27 22:33:53 and i was like 'i could just extend the other class' :D Sep 27 22:44:11 adq: so is there a better way to solve this? Sep 27 22:44:38 stackoverflow FreshDumbledore :) Sep 27 22:44:47 :P Sep 27 22:44:57 im lazy. it works now :D Sep 27 22:48:40 thron thank you Sep 27 22:57:38 Let's say that I have my own personal library (in source code). I want to use my library in two Android projects in Android Studio. How hard is it to do this? Sep 27 22:58:02 Jaybbb: still about? Sep 27 22:58:24 I have a little problem. My TiltSensor creates a Message for every time the sensor fires. This creates a whole lot of garbage collection since it fires quite a lot, even if I dont use sensor delay fastest but use sensor delay game instead it still is a lot of garbage collection going on, is there some way around this? Sep 27 22:58:36 it causes small pauses in my game when the GC runs Sep 27 23:03:09 Napalm: yes Sep 27 23:03:19 I just read your question earlier about installing apps Sep 27 23:03:34 I wrote LG App Advisor back in 2010-2011 Sep 27 23:04:00 use Message.obtain Sep 27 23:04:07 &troned Sep 27 23:04:07 Which was a private "market place" for LG to promote apps, because at the time.. finding apps in the "Google Market" was just terrible Sep 27 23:04:18 We had the same problem. Sep 27 23:04:27 oh nice ! exactly what I am looking to do Sep 27 23:05:12 Did you end up finding a solution ? Sep 27 23:05:55 The best solution we came up with was to have two types of installation, one which was APK which would require the end-user to go into the settings and tick the box. This you can do with an Intent to direct them to the correct location and you can test the setting. The other was to simply fire an Intent to launch the Android Market activity for the app. Sep 27 23:07:20 Yes that's what we do Sep 27 23:07:21 Jaybbb: the only way to do it without requiring the user to tick the "unknown sources" box was to have your application signed with the system certificate. Which even though our app was preloaded in the ROM of LG devices could have done.. they wouldn't let it. That is a closely guarded thing. Because your application is essentially given system/root level privledges. Sep 27 23:08:01 But it seems that some MDM app are allowed to do that (Airwatch for example) Sep 27 23:08:20 MDM? Sep 27 23:08:55 lasserix, mHandler.obtainMessage( MSG_SENSOR_EVENT, event ).sendToTarget(); Sep 27 23:08:56 Mobile Device Management Sep 27 23:09:12 public boolean handleMessage(Message msg) Sep 27 23:09:34 lasserix, you didnt send the code yet Sep 27 23:10:05 Jaybbb: do you mean Device Administration on android? Sep 27 23:10:10 http://developer.android.com/guide/topics/admin/device-admin.html Sep 27 23:10:42 says on that page "Enabling installation from another store." Sep 27 23:11:38 maybe thats said in a different context Sep 27 23:12:26 Jaybbb: you there? Sep 27 23:12:31 no that's not it Napalm Sep 27 23:12:43 what do you mean then? Sep 27 23:12:48 I'm looking around but cannot find how AirWatch does it Sep 27 23:13:29 AirWatch agent can install unisgned APKs without the user allowing unknown sources installation Sep 27 23:14:02 really? Sep 27 23:14:34 user stil have to approve the installation but yes Sep 27 23:14:36 Jaybbb: the apps are just standard APKs? Sep 27 23:14:40 yes Sep 27 23:14:50 they might be signed with the same cert as the AirWatch app Sep 27 23:14:55 that might make a difference Sep 27 23:15:08 ah Sep 27 23:15:15 I should try that ! Sep 27 23:15:21 they could also just be "add-ons" for their app Sep 27 23:15:58 thats smart if they do that Sep 27 23:17:28 I will try that , distribute my store in the play store Sep 27 23:17:41 and try to install and app signed with the same certs Sep 27 23:20:59 thanks for your help Sep 27 23:26:13 Jaybbb: you'll also need the at least Sep 27 23:34:36 Napalm: will do thanks Sep 27 23:35:38 Jaybbb: have you tried unticking the box with that AirWatch app and seeing what happens when you try and install an app? Sep 27 23:37:23 On my phone airwatch does not allow me to tick the boz Sep 27 23:37:25 box Sep 27 23:37:33 in the system settings? Sep 27 23:37:37 install an apk from my store does not work Sep 27 23:37:51 but installing the same through airwatch work Sep 27 23:37:56 i mean if you go into Settings yourself and do it manually Sep 27 23:38:21 it's not ticked Sep 27 23:39:11 I really need to go, i'm sorry, thanks for your help I'll come back to post my findings Sep 27 23:39:23 ok, cool Sep 28 00:03:10 I am trying to learn how to make a simple camera app, where it takes a picture and then shows the picture you just took. However most of the tutorials I find save the image to the gallery and return to the camera view. To most easily implement this feature, would I set up a custom view layout that has the most recent taken image coverting the screen? or would I point to it in the gallery with an intent? which would be easier to develop Sep 28 00:03:59 well the easest would be to use the built-in gallery.. but ofc.. you have less control Sep 28 00:04:16 btw, there are nice guides on the android developer site Sep 28 00:05:12 Napalm, really? I couldn't find a camera guide that included this "preview" feature where it shows the image just taken. Most of them just return to the camera view once the image has been captured. Do you know of any on the developer site that implement this? Sep 28 00:05:23 http://developer.android.com/guide/topics/media/camera.html Sep 28 00:05:25 lol Sep 28 00:07:29 Napalm, perhaps I am missing something but I that seems to deal with saving the picture to a location, and then releasing the camera. I can't find where it talks about the view of the most recent image taken. Perhaps I am mistaken? Sep 28 00:14:53 hey, i got adt-bundle-linux-x86_64-20140702. how can i do an "android library project"? i need to recompile a wimax_service.jar file that was decompiled and modified to work on 4.4 (hopefully) Sep 28 00:21:53 hrm i see "mark this project as a library" i guess? Sep 28 00:28:48 i wish eclipse would quit segfaulting Sep 28 01:00:06 any idea why things like android.net.RouteInfo android.net.NetworkUtils aren't available in eclipse with the sdk? Sep 28 01:02:47 non-public API? Sep 28 01:05:43 i need to use them to compile this wimax service Sep 28 01:06:54 hrm i'm thinking rather than the eclipse e-z route i'm going to have to link this into a whole android compile Sep 28 01:07:44 yeah it has @hide Sep 28 01:21:20 oh man what a pain http://forum.xda-developers.com/showthread.php?t=1711653 Sep 28 01:24:01 so i have to decompile all of the framework jars on the device, recompile them into a single dex, convert the dex to jar, take the sdk framework.jar and add the classes from the recompiled jar to it, create a custom android platform in eclipse/sdk using said files, and finally hexedit eclipse to allow the use of hidden classes Sep 28 01:24:11 could they just add a checkbox "show hidden classes"? wtf Sep 28 01:28:05 m4t maybe get to it via reflection? Sep 28 01:29:38 i don't think they're included in the sdk jars Sep 28 01:29:46 from what i read Sep 28 01:29:50 hi guys Sep 28 01:29:52 but maybe they are? Sep 28 01:29:59 i could use some help with handling gamepad input Sep 28 01:30:26 i'm using the code in http://developer.android.com/training/game-controllers/controller-input.html Sep 28 01:31:03 event.getAxisValue(MotionEvent.AXIS_LTRIGGER) Sep 28 01:31:07 and trying to get trigger values with ^ Sep 28 01:31:14 but i'm getting 0 all the time Sep 28 01:31:34 is this the right API? Sep 28 01:38:35 hi how can i learn about the asynchronous calls made by the functions in the implementation of wifi direct?? Sep 28 01:42:58 join /android Sep 28 01:49:36 hi how can i learn about the asynchronous calls made by the functions in the implementation of wifi direct?? Sep 28 01:53:07 On a similar note, anyone know how I can manipulate the return value of WifiInfo.getIpAddress() so that it actually is the user's LAN IP? Sep 28 01:53:25 what's it return right now? Sep 28 01:53:47 gmillz: An int, it's a rubbish number Sep 28 01:54:28 hi how can i learn about the asynchronous calls made by the functions in the implementation of wifi direct?? Sep 28 01:55:18 gmillz: 1745594560, and it's persistent per read-attempt, so I'm assuming it's correct just not processed properly Sep 28 01:56:31 http://stackoverflow.com/questions/6064510/how-to-get-ip-address-of-the-device Sep 28 01:56:38 that seems like it should work Sep 28 01:56:52 im not very familiar with the network stuff on android sorry Sep 28 01:59:17 can anyone help me in wifip2p? Sep 28 02:11:09 gmillz: That did it buddy, thanks Sep 28 02:11:20 no problem Sep 28 02:14:55 I want to make a simple camera app where when the image is taken, it fills the window (instead of going back to the camera preview). Does it make more sense to add a frament that displays this on top of the main camera activity? or to add a new activity that displays this recently taken picture? Sep 28 02:18:22 yay i got it finally Sep 28 02:18:31 all of the @hide is visible Sep 28 02:20:07 and it keeps segfaulting grr **** ENDING LOGGING AT Sun Sep 28 02:59:59 2014