**** BEGIN LOGGING AT Fri Sep 05 02:59:59 2014 Sep 05 03:00:31 ruler501 maybe you'll have better luck asing reddit.com/r/androiddev or the google groups Sep 05 03:00:41 g00s I'll try Sep 05 03:01:00 I want to have a slideable graph that shows you it's coordinates, my question is Sep 05 03:01:01 i remember back in the day using ACE :) Sep 05 03:01:31 looks like it still exists http://www.cs.wustl.edu/~schmidt/ACE.html Sep 05 03:01:40 not sure whats best of breed these days Sep 05 03:01:47 if I test the sliding feature with a bitmap on a surface view, will I have to change the code a lot once I start programmatically rendering the picture Sep 05 03:02:06 ruler501: not really an android question, is it. I don't have any preferred C++ HTTP libraries but I'm sure they exist Sep 05 03:02:13 ruler501: http://android-arsenal.com/free Sep 05 03:02:59 dragorn it is android related since most of the big name c++ libraries don't have good android support so was hoping someone knew of a library with good android support Sep 05 03:03:33 you're doing NDK. You're going to be doing serious porting of any third party libs Sep 05 03:04:20 I was hoping maybe someone else already did that Sep 05 03:04:39 ruler501 did you need server or client / Sep 05 03:07:35 g00s client Sep 05 03:08:02 the two libraries I've found are curl and cpp-netlib, but I can't get either of them to compile Sep 05 03:08:21 maybe you would have better luck getting something like 0mq qorking , if you control the endpoints Sep 05 03:08:29 lol, qorking Sep 05 03:08:30 I don't control the server Sep 05 03:24:53 NDK Sep 05 03:24:58 still in eclipse ? Sep 05 03:29:02 lame of me but I cant google it right - how to I put in an arbitrary object into a bundle? no pubObj or set that I can see. Sep 05 03:29:43 parcelable? I guess. Sep 05 03:35:08 ping Sep 05 03:57:12 Something weird is going on with adb... Sep 05 03:57:38 I run adb start-server, no process shows up Sep 05 03:57:47 then i kill-server, then start it again, and still not process Sep 05 03:58:11 but adb works, yet it still doesnt show my device when i ping using adb devices Sep 05 03:58:12 http://puu.sh/bm8JJ.png Sep 05 03:58:16 Is this why? Sep 05 03:59:34 ugh, windows Sep 05 03:59:38 Sorry :/ Sep 05 03:59:54 the trials and tribulations of adb Sep 05 03:59:55 For some reason, this has worked before, on a previous install, but now with a fresh SDK install, nothing doing Sep 05 04:00:53 hm Sep 05 04:01:00 "Click on "Update Driver" and select /extras/google/usb_driver" Sep 05 04:01:14 Would this be why? Do i need ti install the google usb driver as the driver for my android device? Sep 05 04:02:33 Also, do I need Eclipse installed if I'm only gonna be using adb or what Sep 05 04:02:52 no, you would just need the plain android sdk in that case Sep 05 04:04:48 Alright Sep 05 04:06:54 My device still isn't listed :/ Sep 05 04:08:13 maybe you need lotsofflounder instead Sep 05 04:08:34 >.> Sep 05 04:09:12 lotsoftuna founder is the code name for the next nexus tablet ;) Sep 05 04:10:24 oh lol :P Sep 05 04:10:49 I wouldn't have known, I'm only on 2.3.6 Sep 05 04:13:15 whoa Sep 05 04:16:59 http://www.phonearena.com/reviews/Samsung-Galaxy-Player-4.2-Review_id3049/ Sep 05 04:17:08 I'm using an obscure, non-phone android Sep 05 04:19:52 Hello. Anyone can help how to do this: http://i.imgur.com/SO7X9iP.png ? Thanks Sep 05 04:22:17 you want a linearlayout with three buttons huh? Sep 05 04:22:21 lnoskhen: do what? Sep 05 04:24:25 ayyyyy lmao, there we go Sep 05 04:24:32 had to install KIES to get my android recognized Sep 05 04:24:54 lotsoftuna: looks like a good buy... I dont think I ever read an opening paragraph and conclusion of a review that thought a device was as shitty! :) Sep 05 04:25:09 I didnt read that review btw Sep 05 04:25:21 I think it's a great device for me, android based MP3 player with a touch-screen Sep 05 04:26:54 Plus once I got back from summer camp I could root it, so it all worked out really freaking well Sep 05 04:28:42 cool if its enough for you all well and good. Sep 05 04:30:02 question, why does adb sometimes not start-server and create a process? Sep 05 04:30:46 nvmind Sep 05 04:32:23 lasserix_: oh. I'll try that. thanks Sep 05 04:32:45 yeah just use the layout_weight property of children of viewgroups Sep 05 04:32:54 rgr: from the screenshot (http://i.imgur.com/SO7X9iP.png) Sep 05 04:32:57 err linearlayout Sep 05 04:33:11 lasserix_: thanks :D Sep 05 04:33:14 set layout_width="0dp" and layout_weight="1" for each of the buttons Sep 05 04:33:24 that will make them take up same width Sep 05 04:33:40 you can use ummm Sep 05 04:33:44 compounddrawable on the button Sep 05 04:33:46 to add the icon Sep 05 04:34:04 though i dunno if you can center a compounddrawable Sep 05 04:35:14 lasserix_: where I put the linearlayout? inside the relativelayout or outside (next to relativelayour)? Sep 05 04:35:25 probablyinside Sep 05 04:35:33 with layout_alignParentBottom= true Sep 05 04:36:13 lasserix_: thanks a lot :) Sep 05 04:38:54 hello Sep 05 04:39:09 does anybody have worked on call forwarding Sep 05 05:01:37 hi all! I was curious about a practice when developing apps... do you use multiple processes in an app? At https://developer.android.com/guide/components/processes-and-threads.html it says: "By default, all components of the same application run in the same process and most applications should not change this." Sep 05 05:02:00 I am interested if you change that "default", and for what reasons Sep 05 05:02:06 mdim most often, like 99% of the time, no Sep 05 05:03:18 the only time i could see, is when your app has a component that is always running, and you want to minimize cost of that in the case the non-critical parts are taking up resources, adding to memory pressure Sep 05 05:03:37 that's interesting. I'm doing some research on Android malware, and from what I've noticed by tracing system calls related to an app - I use this: strace -ff -F -tt -T -p APP_PID - that there are multiple PIDs Sep 05 05:04:13 hm, dunno Sep 05 05:04:29 i would think most apps have one process Sep 05 05:05:22 g00s: for example, here's a snippet from a log created by the strace command: http://pastebin.com/qQXpKp4C Sep 05 05:05:44 you can see there are multiple PIDs Sep 05 05:06:53 beyond my knowledge,maybe system processes ? Sep 05 05:08:01 could be Sep 05 05:08:17 but as far as I got it, it should be only child processes that are tracked Sep 05 05:09:07 should an app start a system process? Sep 05 05:14:37 one process normally, multiple threads maybe (eg a surfaceview drawing thread) Sep 05 05:16:43 so how come I get multiple PIDs in the log? The -F parameter says to monitor child processes Sep 05 05:16:59 rgr: ^ Sep 05 05:18:37 sounds like a "man strace" issue. not sure. Sep 05 05:18:57 but on that subject I now see Ive lost my threads view in the debugger again! gah. Sep 05 05:22:25 hello is there anyway to find the call forward service is activated or not Sep 05 05:22:29 ? Sep 05 05:23:02 i have used PhonestateListener to detect it Sep 05 05:23:23 its working in Single Sim devices but not fll proof for all devices Sep 05 05:23:45 for dual SIM its not throwing any event to detect that call forward is activated Sep 05 05:30:38 remote services start their own processes Sep 05 05:30:49 you can also start processes with java.lang.runtime / process processbuilder Sep 05 05:31:32 very interesting actually, because for instance i was working on a project and the exe that was running inside the process i started with process builder crashed at one point, but was still running? somehow Sep 05 05:39:07 who has experience with proguard ? Sep 05 05:41:09 seems like it's doing too much with generic types like list or hashmap Sep 05 05:45:02 i wonder if gosling/joy still write these? http://www.informit.com/store/java-language-specification-java-se-8-edition-9780133900781 Sep 05 05:45:15 or they left their names on out of reverance ;) Sep 05 05:46:08 hmm Sep 05 05:46:13 maybe some parts are left Sep 05 05:47:29 java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference Sep 05 05:47:41 woohoo Sep 05 05:47:47 proguard <3 Sep 05 05:48:18 funny i got -keep class java.util.** { *; } Sep 05 05:49:01 oh, proguard is doing that yey Sep 05 05:55:35 it is.... Sep 05 05:55:56 i can always put -keep class com.myapp ;) Sep 05 05:55:58 on the top Sep 05 06:11:40 I'm trying to run CountDownTimer in new thread and update text view in UI via runOnUIthread. but onTick method is never called in countdowntimer Sep 05 06:17:20 slani: post some code Sep 05 06:22:17 canvs2321: http://paste.ubuntu.com/8256906/ Sep 05 06:29:23 hi, i have a problem with NoClassDefFound error when launching my android app Sep 05 06:30:05 .jar library is present in libs/ directory and I can use classes from it in my android app Sep 05 06:30:13 slani: what is your time equallying when you call your timer Sep 05 06:33:08 canvs2321: I forget convert time in milisec. Now I did this but still nothing. Sep 05 06:33:09 slani: plus how far are you getting in your code with logs, all except the onTick? Sep 05 06:33:20 slani: what are you values for the time? Sep 05 06:33:39 Log.e("test", "test 67"); Sep 05 06:33:51 do you need to prepare the looper? Sep 05 06:34:37 what are you time values Sep 05 06:34:41 time is in seconds Sep 05 06:35:06 no what actual values are you passing Sep 05 06:35:30 should I cast in long Sep 05 06:35:32 ? Sep 05 06:35:35 plus time should be milliseconds Sep 05 06:35:48 wtf is time= when you run your code Sep 05 06:40:24 i cast time in long and convert in milliseconds, but still nothing. Log.e("test", "test 67") Sep 05 06:41:27 time = 5000? Sep 05 06:42:27 put a log in onFinished Sep 05 06:45:34 Hi guys, im fairly new to mobile app design. I have this design problem where in one activity i am managing a bluetooth connection (list scanned devices, connection, disconnection) and in another activity i plan to have a chat screen (tx/rx string over a bluetooth socket). However i realise once i leave the bluetooth activity and move to the chat activity, the bluetooth connection becomes inactive and hence my chat activity cant a Sep 05 06:45:46 Is there any way to circumvent this problem? Sorry for the long text Sep 05 06:47:18 yeah Sep 05 06:47:21 use a fragment Sep 05 06:47:24 kype you're going to have to put this in a service Sep 05 06:47:27 that is non ui and setretainedinstance true Sep 05 06:47:30 ohh nm Sep 05 06:47:32 lasserix_ WAT Sep 05 06:47:32 listen to g00s Sep 05 06:47:50 * g00s smacks lasserix_ with many tunas\ Sep 05 06:47:52 sorry got tunnel vision brain malfunctioning too little sleep too much caffiieneee Sep 05 06:48:12 g00s: I understand that, but scanning of devices needs a UI by itself. So 2 activities has to exist aint it? Sep 05 06:48:29 scanning of devices needs a UI? Sep 05 06:48:37 canvs2321: I simplify start method http://paste.ubuntu.com/8257037/ and add log onFinish still nothing Sep 05 06:48:44 u need to list devices? then use presses a device to connect? Sep 05 06:48:46 well, if you want to choose a device :) Sep 05 06:50:50 I understand from googling, only 1 activity will exist at any time...so its preety impossible to have multiple activities accessing a non-static method of other activity Sep 05 06:51:27 slani: can you try it with a CountDownTimer object instead of your extended one? Sep 05 06:54:18 kype: that would be very bad design Sep 05 06:57:24 hello all Sep 05 06:57:34 my first in-app payment was received...exciting Sep 05 06:57:37 https://play.google.com/store/apps/details?id=com.controlledsenility.android.todomapr Sep 05 06:57:58 pretty unobstrusive banner ads but can be removed with IAP Sep 05 06:58:40 canvs2321: nothing.http://paste.ubuntu.com/8257099/ Log.e("test", "test 43"); Sep 05 06:59:56 QubeZ: you should move features to the top Sep 05 07:00:14 slani: anything in logcat related to CountDownTimer failing Sep 05 07:00:31 lasserix_: what do you mean? Sep 05 07:00:37 in description Sep 05 07:00:38 well Sep 05 07:00:39 oh instead of News? Sep 05 07:00:43 doesn't matter i guess Sep 05 07:00:53 yeah because normally a new user will want to see features not news Sep 05 07:01:03 no one really revisists the app page to see the news, they do that in the app? Sep 05 07:01:16 (since they already have it) Sep 05 07:01:37 ahh true, I guess I could put News in a dialog box when the app is run after upgrade Sep 05 07:01:40 good point Sep 05 07:02:04 you could add "most efficient route mapper" for figuring out best path to take to do all tasks ;p Sep 05 07:02:09 does anyone else has problem with weather widget on lock screen Sep 05 07:02:09 asin app purchase Sep 05 07:02:21 yo QubeZ , you gotta do something about that 6 pack Sep 05 07:02:38 looks ... froyo :) Sep 05 07:02:50 heh Sep 05 07:02:52 g00s: I know, the app needs a major UI overhaul Sep 05 07:03:02 my first attempt heh Sep 05 07:03:02 materialize it man Sep 05 07:03:08 agreed Sep 05 07:03:18 canvs2321: nothing http://paste.ubuntu.com/8257153/ Sep 05 07:03:24 im looking to do that, plus with lessons learned there's a lot I can rewrite and make better Sep 05 07:03:25 oh you already have optimal routing Sep 05 07:03:50 QubeZ: heh yeah when i think on my coding of the first app (i almost released before i got a full time gig) i almost kinda shudder Sep 05 07:04:01 yes but as I enhance the 'search along route' feature, I may make that an in-app purchae Sep 05 07:04:04 cool tho you got money from coding independently! Sep 05 07:04:24 thanks, its just 1 in-app sold but im happy Sep 05 07:05:52 ok now Features are (or will be) at the top Sep 05 07:05:56 after google refreshes Sep 05 07:06:50 ok heading to bed... worn out lately Sep 05 07:07:08 Hadoop management during the day, coding android and unity3d at night and 2nd baby on the way in 3 more weeks Sep 05 07:07:21 you should add an easter egg Sep 05 07:07:25 <-- one of those hard working immigrants you hear so much about Sep 05 07:07:31 like a map-man icon who has a sword Sep 05 07:07:39 TODO MAPPER THE CONQUERER Sep 05 07:07:40 hehe Sep 05 07:08:04 my spanish wife reads To Do as "todo" which means all in spanish Sep 05 07:08:11 heh yeah Sep 05 07:08:12 she thinks its a all mapper and I try to sell it that way Sep 05 07:08:34 how do you do search? Sep 05 07:08:38 its a pretty featureful and resilient app, im very proud of it Sep 05 07:08:44 not of locations, but of your own tasks Sep 05 07:09:46 so the actual entry box and search button is to add locatino-based tasks but if you simply want to add a 'buy milk' or something then you can add a non-destination task then search for it via the actionbar search icon Sep 05 07:10:03 which turns the entire dashboard into a search feature which results are shown back in the My Tasks activity Sep 05 07:10:03 ahh i mean you use sqlite ? Sep 05 07:11:36 yes, all tasks, myplaces/fav etc.. are stored in sqlite db Sep 05 07:12:16 we had grand plans of setting up a web service to sell services like husband and wife have To Do Mapr and wife can go in and add a task then assign it to her husband. Sync on his app and gets alerted etc.. Sep 05 07:12:24 but the guy that was writing that got busy with his day job Sep 05 07:12:36 I decided for now to ad support the app with in-app purchase to remove it Sep 05 07:12:45 yeah that is good idea Sep 05 07:12:53 you could also see if you can arrange geo-ads Sep 05 07:12:57 i did notice a social app just for couples Sep 05 07:12:59 dunno if they have some network like that Sep 05 07:13:03 any idea about this problem : http://stackoverflow.com/questions/20258624/android-porting-service-surfaceflinger-died? Sep 05 07:13:18 but since you are travelling around, why not throw a coupon for staples as you pass by it? Sep 05 07:13:23 I was hoping not to piss people off since it was free for a whole year then I put ads but hey, people have to understand that devs spend a lot of sleepness nights coding and we need to be rewarded for it Sep 05 07:13:40 hehehe Sep 05 07:13:43 slani: not sure then, what is the maximum timer time you've tried? Sep 05 07:14:15 actually I released it with ads but didn't do IAB because I didn't really know how it all worked then a user replied in comments saying to add that feature and she would buy the app Sep 05 07:14:24 guess she likes it enough to pay to remove the ads Sep 05 07:15:04 anyone know when they are releasing new nexus? Sep 05 07:15:07 anyhow, this stupid hadoop cluster is back to behaving normally so I have to hit the sack Sep 05 07:15:17 need to get a n5 when they go on sale since my phone is terrible Sep 05 07:15:23 goodnight Sep 05 07:15:33 lasserix_: will keep you posted on my search integration and thanks for the suggestion on pushing the features up in the description. Sep 05 07:15:36 good night all Sep 05 07:15:42 np good luck! Sep 05 07:20:20 slani: i just test running new CountDownTimer(15000,1000){...} and it worked fine, so something must be going wrong somewhere with your code. i ran that CountDownTimer in onStart of an activity Sep 05 07:23:18 Morning friends, please i need help on the best library to open store pdf in asset or raw folder? Sep 05 07:23:38 canvs2321: did you run this from activity?? Sep 05 07:25:29 slani: i think i got it Sep 05 07:26:34 slani: in your run() of StartTimer you do Looper.prepare() then call start(), after your start call Looper.loop(); Sep 05 07:26:58 anyone know how i can setup classes such that i have a method like draw(Canvas c) in a subclass and then in a superclass I have draw() but the subclass delegates the draw of the superclass to the draw(Canvas c) of its class? Sep 05 07:28:54 slani: it worked in my activity, then i added that new CountDownTimer to a thread i spawned, got same results as you with not calling onTick, checked Looper.prepare() and said to call .loop() after, did that and worked http://paste.ubuntu.com/8257312/ Sep 05 07:29:05 is it possible to parse the ongoing notifcations Sep 05 07:31:19 Hello, I am trying to build some C code using NDK, I got the following problems when linking: Sep 05 07:31:38 error: undefined reference to 'posix_memalign' Sep 05 07:31:55 error: undefined reference to 'le32toh' Sep 05 07:32:50 i've pdf file store in asset folder, how can i display the tumbnails Sep 05 07:33:00 to GridView Sep 05 07:34:36 hackable lol, thats not trivial Sep 05 07:36:35 trivial? Sep 05 07:37:08 So? Sep 05 07:37:50 well, you can license pdfl from datalogics, or try something else Sep 05 07:39:14 i guess L will have some native pdf support. that should be fun Sep 05 07:40:25 Wow! really? Sep 05 07:40:55 can't wait to use it then... but don't want to develop using L right now Sep 05 07:41:49 To use datalogics, how much is license Sep 05 07:43:00 How do I apply my font (from assets) to all xml (Graphical Layout or Design Mode) ? Sep 05 07:46:21 is it possible to catch the event of Call forward activation Sep 05 07:47:14 in Single Sim device i am able to recive it in OncallForwardStatusChange method of PhoneStateListener Sep 05 07:47:22 but not working in dual SIM Sep 05 07:48:42 hackable i don't know anything about datalogics, but i worked for a company that wanted to use PDFTron, and they wanted either a per-install royalty, or $100k/yr Sep 05 07:49:03 hackable check out MuPDF. it's GPL but quite good. Sep 05 07:50:01 Sarbs: Thanks... Sep 05 07:50:10 can i display pdf with MuPDF? Sep 05 07:50:48 yeah, it's not the most straightforward api, but it's quite usable Sep 05 07:51:01 sarbs datalogics licenses pdfl, which is the adobe pdf core library Sep 05 07:51:07 its basically adobe code Sep 05 07:51:16 (so the standard) Sep 05 07:51:19 hmm, yeah Sep 05 07:51:22 or i should say, gold standard ;) Sep 05 07:51:28 hello i want to ask a theoretical question. Sep 05 07:51:29 well Sep 05 07:51:34 g00s: but the problem is licence Sep 05 07:51:38 otoh, adobe code is awful :D Sep 05 07:51:46 on one hand... reference impl, definitely nice. on other hand..... "adobe code" Sep 05 07:51:50 g00s: have you use their lib before? Sep 05 07:51:56 hahahahaha, ok, we think alike Sep 05 07:52:21 hackable no, my friend has Sep 05 07:52:24 Hello, is there an alternative for posix_memalign on Android ? Sep 05 07:52:40 AnAnt probably.. what are you trying to do? Sep 05 07:52:49 So, do you've any idea about the charges for licence Sep 05 07:52:52 sarbs: I'm trying to compile cryptsetup Sep 05 07:52:53 resu01 .. so ask ;) Sep 05 07:53:13 If i put a parcelable object in onSaveInstanceState and restore it in onCreate, will the parcelable object be exactly the same object or it will be recreated Sep 05 07:53:14 ? Sep 05 07:53:16 hackable no, if its not on the web site Sep 05 07:53:32 resu01 assume the worst :) Sep 05 07:53:39 They said i can use the library for 30days and later charge me, i'm afraid... don't want to pay high price for licence Sep 05 07:53:45 sarbs: the failing line in cryptsetup is: posix_memalign((void*)&key, crypt_getpagesize(), TCRYPT_HDR_KEY_LEN)) Sep 05 07:53:49 g00s thanks Sep 05 07:54:05 g00s; I've check, nothing like that on their website... do you check? Sep 05 07:54:31 AnAnt ah, ok. from a quick google, posix_memalign seems like a fairly trivial function. if you can't find anything else, just use a normal malloc and pad it on either end, then return a pointer to the properly aligned region within your allocation Sep 05 07:54:32 that usually means 'expensive' Sep 05 07:54:38 there is an issue with MUPDF its avaialble under GPL V3 Sep 05 07:54:58 i faced this issue in one of my project Sep 05 07:55:11 resu01 it can be either. like g00s said tho, assume that it has been recreated. Sep 05 07:55:12 yes.. Sep 05 07:55:16 for rendering pdf you can use another Jblough library Sep 05 07:55:23 sarbs: I did see a memalign in Android, shall I use that ? Sep 05 07:55:32 ypou can modify , edit change Sep 05 07:55:43 g00s: they sound good, i'll appreciate if you can help me find out the price for the license Sep 05 07:56:06 AnAnt i would imagine it does the same thing, but i'm not expert at the differences in C libraries Sep 05 07:56:29 hackable i can't, sorry Sep 05 07:56:36 hackable you email them and ask.. that's the only way. g00s won't know any more than you do Sep 05 07:56:57 g00s: okay... sarbs: thanks Sep 05 07:57:03 i would be prepared to hear a shit-your-pants price.. like i said, PDFTron wanted $100,000/yr Sep 05 07:57:14 https://github.com/jblough/Android-Pdf-Viewer-Library Sep 05 07:58:54 thanks mintss Sep 05 07:59:00 my pleasure Sep 05 07:59:05 hi Sep 05 07:59:07 how can I open my own app in the amazon play store? Sep 05 07:59:08 you can customize it as per your need Sep 05 07:59:16 I want a button "rate this app" and then open the same app in the amazon store Sep 05 07:59:35 it is all about the amazon store, sorry for the "amazon play store" x) Sep 05 07:59:55 hi guys, I have activity A and Fragment F1, which will be replaced with F2 if not internet or with F3 if user doesn’t login… This solution is ok, however, a bit boiletplate code when do you have Activity B, C similar like A. Do you know any best practices for this? Sep 05 08:01:47 i think mupdf is alternative.. Sep 05 08:01:59 kamol encapsulate that logic into an abtract activity class? public abstract class ErrorHandlingActivity for example Sep 05 08:02:09 well mupdf is for kids ;) Sep 05 08:02:10 anyone here know about integrating mupdf with android Sep 05 08:02:40 hackable: force the user to install a pdf reader... Sep 05 08:03:09 hackable: anyway 90% of all devices have some kind of pdf reader preinstalled Sep 05 08:03:46 earlier it was easy to use MUPDF Sep 05 08:04:11 sarbs: yeah, I thought about it, but I wasn’t sure if it is the best practice Sep 05 08:04:13 but now lots of pain Sep 05 08:04:30 you have to build using NDK Sep 05 08:04:32 they don't allow embedding of pdf into apps tho. i've thought for a while about wrapping the mupdf renderer in a service, to allow use of it w/o gpl'ing your own code, but it'd still require installation of an app separate from yours Sep 05 08:04:52 i know i can instruct user to download or make use of the default pdf installation but i need a customize pdf reader that will serve the purpose and my intension Sep 05 08:04:57 although you can not custimize the MUPDF Sep 05 08:05:00 kamol my apps usually end up with at least one "base" activity with common logic i use Sep 05 08:05:07 its against the law Sep 05 08:05:17 mints 0_o Sep 05 08:05:28 MuPDF is GPL.. you absolutely can customize it Sep 05 08:05:44 you just have to publish the source to anything you release Sep 05 08:05:44 hackable: good luck with mupad - i threw it away after 2 days of nogos Sep 05 08:05:51 GPL V3 Sep 05 08:06:10 for this you have to expose to expose your code too Sep 05 08:06:24 actually it's AGPL, but the difference is small Sep 05 08:06:35 hackable: the resulting pdf is only 90% valid, it needs arm specific shared libraries, there is no cutting of empty spaces Sep 05 08:06:46 and yeah, that's what i'm saying. you absolutely *can* customize it. you just have to publish the source code of your app that uses it. Sep 05 08:07:10 yes GPL-virused for commercial apps it's a nogo Sep 05 08:07:34 ok confused! Sep 05 08:07:47 sarbs: yes, I have that BaseAcitivity.. thank you :) Sep 05 08:08:46 Sorry for dumb question, ive been googling a bit. But whats the opposite (the method to cancel the action of) VIEW.GONE? Sep 05 08:09:01 hackable confused about which.. what the GPL is, or MuPDF's deficiencies compared to more polished (and more $$) libraries? Sep 05 08:09:03 VIEW.VISIBLE Sep 05 08:09:09 monsti: Thanks mate Sep 05 08:09:19 there is also View.INVISIBLE Sep 05 08:09:25 confused on what to use. Sep 05 08:09:27 hat hides the content but not the place Sep 05 08:09:49 hackable: i'll grab a link for you - one second Sep 05 08:10:45 sarbs: thanks Sep 05 08:11:06 okay... Sep 05 08:11:46 http://stackoverflow.com/questions/23240469/open-online-pdf-file-through-android-intent Sep 05 08:11:59 you'll get an exception, when the user has no pdf reader installed Sep 05 08:12:18 just show a message and point the user to the playstore ... Sep 05 08:12:30 okay... Sep 05 08:12:35 no problem.. Sep 05 08:12:42 where do you have the pdf? Sep 05 08:12:49 encounter problem right now... Sep 05 08:12:56 what is the cause of this.... 1532-1532/com.cbcemea.app E/AndroidRuntime﹕ FATAL EXCEPTION: main Sep 05 08:12:56 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.cbcemea.app/com.cbcemea.app.CoursesFragment}: java.lang.ClassCastException: com.cbcemea.app.CoursesFragment cannot be cast to android.app.Activity Sep 05 08:13:00 on sd? via url? inside the apk? Sep 05 08:13:34 its says can not be cast to android.app.activity Sep 05 08:13:35 hackable dont paste in channel Sep 05 08:13:38 don't know why Sep 05 08:13:44 ok Sep 05 08:13:49 cause it's a fragment ??? Sep 05 08:14:05 fragment != activity Sep 05 08:14:22 yes... Sep 05 08:14:34 1 seconds, let me show u the code Sep 05 08:14:56 hackable what is unclear about what I just said ? Sep 05 08:15:21 your passing a fragment to something that expects and ac….oh he's gone Sep 05 08:15:37 i am also facing an issue I am not able to catch call forward activation event in dual sim event as i need to redirect screen if successfully call forward activated Sep 05 08:16:22 mints how are you gettting dual sim events/support ? through what libs ? Sep 05 08:17:25 I am just activate the call forward using USSD code "*21*" + number + "#" Sep 05 08:17:32 hello friends.. Sep 05 08:17:36 i'm back.. Sep 05 08:17:50 StingRag: here is the link http://pastebin.com/jnsuFJiZ Sep 05 08:17:50 and in phonestatelistener i have handled onCallForwardingIndicatorChanged Sep 05 08:18:07 which is working correctly for Single SIM Sep 05 08:18:21 cannot be cast to android.app.Activity Sep 05 08:18:43 hackable yes so you know a fragment is not an activity ? Sep 05 08:18:54 yes.. Sep 05 08:18:59 so what is the issue ? Sep 05 08:19:44 whenever i load it, it it will show that error Sep 05 08:20:03 ok, cause you are attempting to use a fragment as an activity Sep 05 08:20:09 but you know it is now right ? Sep 05 08:20:13 not* Sep 05 08:20:17 but in dual SIM devices public void onCallForwardingIndicatorChanged returning false always Sep 05 08:20:27 yes... just thinking about it right now Sep 05 08:20:47 i'm getting confused here... need a little explanation Sep 05 08:21:16 on what exactly ? Sep 05 08:21:44 on how to use it... Sep 05 08:22:18 to use what ? Sep 05 08:22:27 in practically it is enabling the call forward, sometimes in SIM1 and sometimes in SIM2 but always printing false at onCallForwardingIndicatorChanged Sep 05 08:22:29 got it... thanks Sep 05 08:22:34 :) Sep 05 08:23:38 mints I didn't know there was any way to work accurately with any dual sim phone without the support libs from that particular manuf…. thought this may change after android L Sep 05 08:24:00 So do you know any lib Sep 05 08:24:01 ? Sep 05 08:24:16 well, no, cause they are from the manuf Sep 05 08:24:31 like LG/Samsung/Hauwaei etc Sep 05 08:24:41 ohh it means we have to find the manufacturer libs Sep 05 08:25:13 well that means there is no official support of dual sim in android Sep 05 08:26:43 ohhh Sep 05 08:26:44 this might help: http://stackoverflow.com/questions/11305407/android-dual-sim-card-api Sep 05 08:27:31 can we hack the ongoing notitifcations Sep 05 08:27:50 as i saw when we activate the call forward either in dual sim or single sim Sep 05 08:28:09 you're asking in a place where probably nobody has a dual-sim device :) Sep 05 08:28:36 its always throw notification that callforward activated Sep 05 08:33:54 Is there a way to log every intent thrown in all the apps? Sep 05 08:34:12 (xposed way is also fine, I need it for debugging) Sep 05 08:35:22 yoavst: if you have root access, you could look at the intent firewall Sep 05 08:35:34 some docs: http://www.cis.syr.edu/~wedu/android/IntentFirewall/ Sep 05 08:35:37 thanks Sep 05 08:36:01 You might also look at the eventlog (e.g. adb logcat -b events) Sep 05 08:36:08 but I'm not sure if every intent would be logged there Sep 05 08:37:34 http://i.imgur.com/jUXdE6k.png Sep 05 08:38:13 intents are not "thrown", lol Sep 05 08:38:23 but your logcat should have all that information, or most of it Sep 05 08:38:29 ha, he's gone now Sep 05 08:39:54 hey Sep 05 08:40:09 So I have a viewpager in a fragment, itself containing fragments Sep 05 08:40:53 the viewpager uses a FragmentStatePagerAdapter and it the ChildFragmentManager Sep 05 08:41:25 when going to a new activity from the fragments of the viewpager, all is good, state is saved Sep 05 08:41:42 when I go to a new fragment from the top fragment, state in the child fragments is not saved Sep 05 08:42:05 can I from the viewpager fragment force a saveState on the leaf fragments? Sep 05 08:52:24 Hi, there is any way to get the apk filename which installed the current package in an android? For example i'm running com.something.happy, installed from happy.apk, and i would like to get this happy.apk inside my app. There is any way to do it? Thanks! Sep 05 09:03:21 IntentIntercept Sep 05 09:03:28 yoavst, ravilov Sep 05 09:03:32 check it out on app store Sep 05 09:05:29 Succy it does not exist in that folder Sep 05 09:05:36 and that folder is only acceable on rooted devices Sep 05 09:05:39 lasserix_, thanks but... Sep 05 09:05:41 requires 4.0.3 and up Sep 05 09:05:44 so no use to me :) Sep 05 09:06:01 lasserix_: i don't want the apk file, only to know that the package was installed through the filename "happy.apk" Sep 05 09:06:07 lasserix_: only need to get this string. Sep 05 09:06:26 Succy, the source is forgotten as soon as the app is installed Sep 05 09:06:43 ravilov: intent intercept? Sep 05 09:06:47 lasserix_, yes Sep 05 09:06:50 https://play.google.com/store/apps/details?id=uk.co.ashtonbrsc.android.intentintercept Sep 05 09:07:20 https://github.com/intrications/intent-intercept/tree/master/app Sep 05 09:07:28 thanksbecause he switched to gradle Sep 05 09:07:35 lasserix_: ravilov thanks! Sep 05 09:07:38 it worked prior to 4.0 Sep 05 09:07:44 but the code is open source Sep 05 09:07:52 hm I see Sep 05 09:07:57 yeah I just found the github Sep 05 09:08:09 might clone and make my own build :) Sep 05 09:09:48 when is onPostResume useful for? Sep 05 09:10:33 canvs2321: thanks for youre help.now it's working Sep 05 09:11:19 lasserix_, I'm guessing onResume is called just *before* the activity is resumed, so... I guess if you need to do stuff *after* ;) Sep 05 09:11:24 I want to keep the label field and its textbox field side by side.Till now I used to do that using xml layout. toLeftOf and toRightof Sep 05 09:12:42 how can i do that through code. I was googling and could not find any appropriate answer. I saw we need to use TableLayout Sep 05 09:13:38 slani: cool Sep 05 09:14:31 niru you can do it 10's of ways Sep 05 09:15:02 niru whats wrong with a horizontal linearLayout ? Sep 05 09:15:35 StingRay_: ah I tried that and all the editext came to one line :( Sep 05 09:15:51 you should probably post some code Sep 05 09:15:53 came to 1 line ? Sep 05 09:16:16 sounds like you may need to go look at some basic layout examples too Sep 05 09:16:25 they will help when learning Sep 05 09:23:14 When using the FragmentStatePagerAdapter I get a nullpointer on .restoreState Sep 05 09:23:24 at android.support.v4.app.FragmentManagerImpl.getFragment(FragmentManager.java:579) Sep 05 09:23:24 at android.support.v4.app.FragmentStatePagerAdapter.restoreState(FragmentStatePagerAdapter.java:211) Sep 05 09:23:24 at dk.redia.ereolen.helper.VerticalViewPager.onRestoreInstanceState(VerticalViewPager.java:1179) Sep 05 09:23:57 Has anyone experienced trouble with the fragment manager for nested fragments? Sep 05 09:23:59 c03 dont paste in channel Sep 05 09:24:23 My apologies. Sep 05 09:24:50 c03 and what is null ? Sep 05 09:25:11 from the looks of it, fragmentstate[] https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v4/java/android/support/v4/app/FragmentManager.java Sep 05 09:26:53 ugh another NPE? just fix the damn thing to not be null, done Sep 05 09:27:02 well never needed a state pager or used it, actually I just prefer a viewPager with fragments Sep 05 09:28:36 alright.. ? Sep 05 09:29:02 yeah, pretty good, need another coffee and shower to wake up… you ok ? Sep 05 09:35:00 hi dudes... i'm having an issue with Google Play Services.... Sep 05 09:35:49 App says to install Play Services on device, but it already is installed and updated Sep 05 09:36:07 this is happening on multiple devices Sep 05 09:37:44 and also messing with my notifications, as GCMManager.getInstance().getDeviceId() is returning null Sep 05 09:38:14 gradle file has " compile 'com.google.android.gms:play-services:5.2.08' " Sep 05 09:39:14 I hava a for loop. On each iteration I like to start two new threads. On each iteration I like to wait that both threads are finished. And second thread must wait until first thread is finished. What is the easiest way to do it? http://paste.ubuntu.com/8258165/ Sep 05 09:40:10 hi everybody. Can anybody tell me how I can use the SDK that comes with android studio in Eclipse? I wanted to add /Applications/Android\ Studio.app/sdk to the Eclipse ADT Plugin preferences, but it says that folder doesn Sep 05 09:40:14 't exist Sep 05 09:40:24 (I am working on a mac) Sep 05 09:40:50 hi guys, i want to add an option to export/import settings from my app but i would like to not have to add a permission to write to the sd card etc, anybody have any suggestions on how to do this? Sep 05 09:45:26 is there any API by which we can conclude that input number is valid ? Sep 05 09:46:03 slani: why use the threads? Sep 05 09:47:39 asperon: not possible. if you want to write something to an external folder, you need this permission Sep 05 09:47:58 and slani, is this code ran on ui thread or seperate? Sep 05 09:48:26 danijoo: i was thinking about using the share function, and let the user decide themselves where to share it, good/bad? Sep 05 09:49:03 asperon: whats the point? user then still cannot save them to disk but instead whatsapp settings to friends? ^^ Sep 05 09:49:39 danijoo: problem is that users tend to react badly to increased permission, esp for something that not all of them will use Sep 05 09:49:55 true. thats why you have to decide if its worth. Sep 05 09:50:10 perhaps i should create a seperate app for that feature, and have the main app send the settings to it, that way those who want the import/export features can download that app Sep 05 09:50:19 i mean.. exporting settings is nice but only a really low amount of users use it usually Sep 05 09:50:45 canvs2321: it run on seprate thread. I like to make an interval timer (work/rest). Sep 05 09:50:50 most users are "keep it installed" vs "never touch it again" Sep 05 09:51:23 that whole permission thing is stupid anyways. much to general -_- Sep 05 09:52:20 yeah, it should be one a need to use basis, ie app wants to use internet, show popup, yes/no (with option to always allow future calls) Sep 05 09:53:12 asperon, or, y'know, you can be straightforward and explain in description what is the new perm used for Sep 05 09:53:40 read from/write to SD card is a very common perm these days, I don't see a problem with requesting it Sep 05 09:53:41 ravilov: yeah, sadly people dont seem to read the description at all.. Sep 05 09:53:45 canvs2321: for each iteration I can make a new CountDownLatch. is this a good design? Sep 05 09:54:39 asperon, also, unless you do some very complicated mechanism to avoid it, "share" will also require a file to be present on the SD card Sep 05 09:55:25 ok, so just live with it or create a separate import/export app Sep 05 09:55:41 um sure Sep 05 09:55:55 canvs2321: but nex problem will be how can I comunicate with sub threads if an activity is destroyd? Sep 05 09:55:57 personally, I would rather grant this one extra perm to an existing app than install a separate app Sep 05 09:56:07 have to install* Sep 05 09:56:11 ^ Sep 05 09:56:20 an extra app really is the worst solution Sep 05 09:56:25 slani: there's probably a better way, how often would these threads be launched? Sep 05 09:56:32 nobody likes apps wanting you to install another app Sep 05 09:56:48 thats just cumberstone and make people just click back and leave it alone Sep 05 09:56:53 ok, thanks for the input Sep 05 09:57:02 go with the permission if you want the feature Sep 05 09:57:08 slani: just seems better to keep one thread and just pass it runnables. that way you can have more control on how to run each Sep 05 09:57:13 not to mention all the issues that can happen when attempting to share data between apps Sep 05 09:58:40 slani: i've recently written a couple different classes similiar. Where i have the class extend Thread, i have that thread run til i flag it, while it's running if it doesn't have any new Runnables to run it sleeps, when i pass it a new runnable the thread awakes and runs an executor to run the runnable, once no more runnables sleeps again til more. Sep 05 09:58:42 ravilov: hes already gone ^^ Sep 05 09:59:40 quick to leave Sep 05 09:59:40 slani: the different ways i've done it are to add priorities to my Runnables, so if one runnable is a higher priority i set a flag on it, then if more runnables come in they wait til the high priority has elasped, if low priority the runnable can be killed and the next that was added to list is ran Sep 05 09:59:59 maybe he just didnt liked the answers he got :p Sep 05 10:03:27 canvs2321: thanks Sep 05 10:03:41 slani: and main reason for me writing the thread server is in the app i have now i have tons of stuff being updated very frequently, so just doing new Thread(new Runnable(){}).start a alot of times would create a bunch of thread objects over and over, best to have a thread pool or some kind of controller as to not just be creating tons of short lived expensive objects Sep 05 10:06:54 hi guys Sep 05 10:07:56 quick question. What do you use as developer payload on ingame billing if you don't have a server? I read about people using an id of the device but this seems like a bad idea if the user has another devices Sep 05 10:10:57 mrcloud I think you should make your own mind up, you have been asking this for 3 days Sep 05 10:11:03 :) Sep 05 10:11:04 an in-game account maybe? Sep 05 10:11:12 StingRay_: first time here bro Sep 05 10:11:33 oh really ? someone with "exact" same question been asking last 2 days Sep 05 10:11:53 StingRay_: no idea, I've been asking in libgdx without luck. Maybe you read me there? Sep 05 10:12:39 Hi all, I have a custom object and I want to keep it alive when I clear my memory (closing all apps), is this possible? What kind of object are possible and not to keep this alive? Sep 05 10:13:08 ravilov: no in-game accounts. Is there any public info about the user that I can get without permissions? Sep 05 10:15:24 mrcloud, no idea Sep 05 10:15:40 google account? Sep 05 10:16:06 probably nothing that could identify the user uniquely, any unique identificators will most likely require perms Sep 05 10:16:29 as those are usually deemed sensitive Sep 05 10:16:55 imei if you require permission Sep 05 10:16:56 FrancescoV: Huh? Can use services or threads to keep stuff around longer if that's what you are asking, or save your data to disk and load it back when your app comes back if just data Sep 05 10:17:58 danijoo: but imei is different per each device Sep 05 10:18:08 oh you want it user unique.. Sep 05 10:18:09 mh Sep 05 10:18:28 might be unpopular but facebook login? Sep 05 10:18:37 Hi guys, if i want to implement 4 buttons in an arrowkey layout fashion (up,down, right, left)...what layout would be good to use? Sep 05 10:18:40 would require sdk tough Sep 05 10:18:55 danijoo: the user is logged currently. Im using google play services Sep 05 10:19:15 kype: would go with relative layout or gridlayout Sep 05 10:19:29 or tablelayout with empty fields Sep 05 10:20:39 kype, if you want to go fancy, you could do a circle with quarters Sep 05 10:21:01 danijoo: I tried grid layout, but is there any constraints to placing the elements? just specifying layout:column and layout:row is enough right? Sometimes the buttons dont appear exactly where they should Sep 05 10:21:34 kype: yes. but you need to set sizes on empty fields if you dont want unused fields shrink to zero Sep 05 10:21:35 ravilov: Is there any built-in element that would do that? Sep 05 10:21:55 danijoo: Ah i see now....thanks mate Sep 05 10:22:13 kype: id go with relativeLayout and place the buttons arround an empty/invisible view in the center Sep 05 10:22:37 kype, no there isn't, you have to do it yourself Sep 05 10:23:49 you could also go with the classic keyboard layout, so 2x3 grid, [empty], up, [empty] / left, down, right Sep 05 10:25:29 Yeap ill think ill stick with Gridlayout, gives me more control over specific placement Sep 05 10:29:30 So the only way to define empty cell sizes in GridLayout is to fill all the empty cells with some random invisible element? Sep 05 10:31:25 yep :/ Sep 05 10:31:35 afaik Sep 05 10:49:25 afaik meaning thats what you do? Sound horrible. Sep 05 10:50:26 no. i wouldnt go with gridview :) Sep 05 10:50:30 as i said earlier Sep 05 11:01:53 anyone ever used adb over TCP wan with random user x ? Sep 05 11:02:36 I sometimes use it to adb install via wifi Sep 05 11:02:37 if so how was the experience … think I may have to try Sep 05 11:03:05 its a lot slower then adb over usb but may be because of my bad wifi connection Sep 05 11:03:19 but works well and no problems with logcat for me Sep 05 11:03:32 well I'm going to be attempting it across worlds 2nd largest ocean Sep 05 11:03:40 so not expecting blazing speeds Sep 05 11:03:52 maybe still better then my wifi :D Sep 05 11:04:44 but it works. should also work across internet as long as you have the ip Sep 05 11:05:05 and the device is listening for a connection Sep 05 11:05:18 suppose I need rooted device at the other end too…hmm Sep 05 11:06:41 there should be an allow debugging over tcp option in developer settings if i remember correctly Sep 05 11:07:07 not sure thats exposed by default Sep 05 11:07:32 yeah i was just looking for it and couldnt find it on my nexus 4 with android L Sep 05 11:07:34 i dont have it on any nexus devices Sep 05 11:07:36 :) Sep 05 11:07:56 but I think I had it once I was on android 4.x Sep 05 11:08:03 mh Sep 05 11:08:35 some of the "adb over wifi" apps in the playstore dont need root though. and should do the trick Sep 05 11:09:11 i dont get how they do that… cause i needs settings in build.prop and then reboot Sep 05 11:12:22 danijoo you in the states ? Sep 05 11:12:29 no. europe Sep 05 11:12:42 wanna test or what ? :p Sep 05 11:12:53 was thinking about it yeah Sep 05 11:13:10 why not. sitting in germany Sep 05 11:13:32 Britain :) Sep 05 11:14:04 do you want me to adb or expose a device? Sep 05 11:14:16 StingRay_, setprop and stop/start require no reboot ;) Sep 05 11:14:19 but they do require root Sep 05 11:14:28 last thing could be a problem because i dont have an IPv4 Sep 05 11:14:36 ravilov wow really ? Sep 05 11:15:08 StingRay_, http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp#answer-14576927 Sep 05 11:15:40 tried and tested, it works Sep 05 11:15:51 danijoo ipv6 ? Sep 05 11:16:21 yeah.. my provider gives users ipv6 with a shared NAT ipv4 Sep 05 11:16:47 so i have an IPv4 to call out, but cant forward ports over v4 Sep 05 11:16:51 danijoo odly that maybe part of the problem I'm attempting to solve by doing this whole thing to debug users phone :) Sep 05 11:17:07 um, don't you have a local wifi router at home? pretty sure you wouldn't want your adb open to the world anyway ;) Sep 05 11:17:07 to do with T-Mob APN's Sep 05 11:17:35 we can test if it works over v6 tough Sep 05 11:17:55 not sure if adb over tcp is captable of that though Sep 05 11:18:19 Hi guys, I’ve got a headless Debian V-Server running LAMP-Stack with NodeJS, NPM, ANT and Cordova. Now I’ve added Android SDK by downloading, unzipping into my dev folder etc. But when I try to execute „android“ command, I get the error: „Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]“ … I know that android sdk is looking for a gui…But there must be a way to execute Sep 05 11:18:20 command without gui…Any hints for me? :-) Thank you very much! Sep 05 11:18:29 Erm is there any easy way to escape control characters in strings.xml, e.g string "1->2" "2<-3"? Sep 05 11:18:44 kype: \ Sep 05 11:19:01 ThKo, if you run it with no arguments, yeah it will always try to use gui Sep 05 11:19:04 "1-\>2" Sep 05 11:19:29 not sure what all commandline arguments it supports, d.android.com should be able to tell you Sep 05 11:19:43 Ah okay thanks Sep 05 11:19:46 kype, < something ]]> Sep 05 11:20:02 not to mention < and > Sep 05 11:20:04 ravilov: Ah i understand. Ok, my next problem is a specific „cordova“ problem. So I think, this is the wrong channel ;-) But thank you, I don’t know if this error is important. :-) Sep 05 11:20:06 hey, it's juts xml dude Sep 05 11:20:44 danijoo, that is not the correct way to escape entities in xml Sep 05 11:20:52 ThKo: http://lmgtfy.com/?q=run+android+sdk+%20without+gui Sep 05 11:22:24 by the way what do you want to escape? "1->2" dont need any escaping. Sep 05 11:23:12 probably an example. kype : http://lmgtfy.com/?q=run+android+sdk+%20without+gui Sep 05 11:23:14 ravilov: I know but CData didnt work, hence i wondered if android studio rendered it different Sep 05 11:23:35 out of curiosity does that vary any between html and xml.. google time.... Sep 05 11:25:17 Yeah it seems < the only one which needs escaping Sep 05 11:36:00 how to solve The specified child already has a parent. You must call removeView() on the child's parent first. I tried using LinearLayout.LayoutParams Sep 05 11:36:52 I am not able to come out of this issue. I did not inflate the layout Sep 05 11:38:33 kype, html/xml entities should always work, that's what they're for Sep 05 11:45:56 niru dont parent a view that already has a parent Sep 05 11:46:02 can I get a reference to my "root view" within an activity without an ID? ie the top level result of setContentView? I ask because there is a structure I have where I want to remove unnecessary wrapper layouts for fragments and have the fragment at the top level still with its unique fragment ID as opposed to a "root id". Sep 05 11:47:01 ah forget it. My google foo had failed. typo. Sep 05 11:48:21 StingRay_: yes and I have removed those lines but error still persists Sep 05 11:49:01 well apparently you didn't.. it's quite insistant tbat Sep 05 11:49:04 ooops Sep 05 11:49:27 insistent that you are adding a view that already has a parent Sep 05 11:49:48 ok Sep 05 12:04:11 Can someone help me. I've got a relative layout wit textviews and imageviews. When I set a background color on the relative layout with an opacity. The layout gets darker except the imageviews in the layout.. Sep 05 12:04:29 why is the imagview not getting darker.. Sep 05 12:07:04 cause they dont have opacity ? Sep 05 12:08:48 how do i serve different java files for debug / live builds? Sep 05 12:08:55 is there a folder layout that needs to be done Sep 05 12:09:06 or a gradle setting? Sep 05 12:09:26 basically, having 2 config.java files Sep 05 12:09:39 and serving the right one depending on build type? Sep 05 12:13:06 Click66: you can set alpha on your imageview if you want the background to bleed through it a bit Sep 05 12:16:10 canvs2321: found the problem. I need to add the "black" view at the end of my relative layout. If you don't do that, everything else you add after the black view lays on top of it :) Sep 05 12:37:40 :? Sep 05 12:38:02 Developing ebook library on android, is their a better way to display pdf book or is there any library outside their to use for the kind of project? your answer will be appreciated\ Sep 05 12:44:32 I'm having some perfomance issues using fragment transaction following the navigation drawer tutorial on the android docs Sep 05 12:46:02 in maps v2, how can i detect user panning of the map? I also wish to have the map pan by itself when a new location comes in, but if the user has panned, it should not auto-pan anymore Sep 05 13:25:56 anyone who uses an htc one and macbook retina for developing? Sep 05 13:26:25 When i press 'run' in android studio, it just opens the emulator and then nothing happens. What am i doing wrong? Sep 05 13:28:53 Click66 quite a specific request…whats the prob ? Sep 05 13:29:37 SohamG is it not launching the activity that is set in that run config ? or rather…whats not working ? Sep 05 13:29:41 StingRay_: I connect my htc one and it immediately disconnects from my macbook retina. So I can't connect to android studio to upload my app.. Sep 05 13:32:58 StingRay_ : I got it to run but then it threw this http://pastebin.com/r8je7qNe Sep 05 13:33:45 SohamG well at least it's telling you exactly why Sep 05 13:33:47 :) Sep 05 13:34:19 indeed, what exactly is not clear with that error? Sep 05 13:34:36 If it is You cannot combine swipe dismissal and the action bar. i dont understand what that means.... Sep 05 13:34:59 you did google this, of course? Sep 05 13:35:20 I googled the run problems..... sorry... Sep 05 13:35:44 damn i nned to stop using IRC Sep 05 13:35:49 yes you do Sep 05 13:35:55 I'm calling locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_UPDATE_INTERVAL, MIN_DISTANCE_NETWORK, locListener); however my location listener never seems to get a call to any of it's methods. any idea what could cause thisß Sep 05 13:36:07 especially as a replacement for using your own brain :p Sep 05 13:36:16 Syzygy_: is it enabled in manifest? Sep 05 13:36:25 yes (otherwise it would crash) Sep 05 13:36:37 maybe youre not getting updates Sep 05 13:36:44 after all you merely request updates Sep 05 13:36:51 try gps Sep 05 13:42:52 osxorgate, no updates Sep 05 13:45:32 I like people who seem to think this actually is Google... Sep 05 13:45:43 " how to esqueleto generate SQL string" Sep 05 13:45:52 etc ;) Sep 05 13:50:16 Hey guys. I need some help here. I have a layout that contains 2 linear layouts and a listview inside a relative layout. I need to scroll these views and make one of the linear layouts (used as a listview header) to be fixed on the top of the screen and then scroll the listview below. Sep 05 13:51:01 Birk_ just make sure you have googled "header view listView android" :) Sep 05 13:51:13 maybe add the word fixed too Sep 05 13:51:16 :) Sep 05 13:53:07 StingRay: I found libs that make the listview header fixed. But in my case I need to scroll views outside the listview. Sep 05 13:53:36 not sure I follow Sep 05 13:54:02 you want a listView inside a scrollable view ? Sep 05 13:54:21 so a scrollView in a scrollView ? Sep 05 13:55:17 Yes, but I have more views in the same screen that should disapear from the screen when the user scroll down. Sep 05 13:55:56 but when the view on top of the listview reaches the top of the screen this view must be fixed there and the user must be able to scroll the listview Sep 05 13:56:48 Birk_ well good luck with all of this… cause it sounds like really bad design and probably need to create your own special custom viewGroups to do it Sep 05 13:57:03 I could be wrong, but yeah, I cant help you at least... Sep 05 13:58:32 StingRay: Thanks. I've received this design from the "designer" :p Sep 05 13:58:55 well I mean the implementation and function design plans rather than the visual design Sep 05 13:59:28 we designers are totally blameless and without faults!!! Sep 05 14:02:29 If I am backing a ListView with a CursorAdapter, should I obtain the Cursor asynchronously then set it? Sep 05 14:02:32 SohamG why? Sep 05 14:03:13 mattblang if you want to do that, it's the basic idea behind the use of loaders Sep 05 14:03:26 okay guys, i'm stuck on this with a few hours now. starting to get frustrated... Sep 05 14:03:30 mattblang : i am sorry i cant help , cuz i am n000b and didnt understand what u just typed :P Sep 05 14:04:11 my app won't run any maps, it's telling me to update google play services Sep 05 14:04:32 which is already up to date Sep 05 14:04:48 the_fog same versions ? Sep 05 14:04:56 won't run on any device Sep 05 14:05:12 or is it that your included build version is above the current playstore release version ? Sep 05 14:05:27 Hi. I am developing an application for university: I need an info: In ColorNote application, when you write a new note, which Android component is the one used to insert the note name? Is it a small text widget? Sep 05 14:05:44 SohamG oh, haha. Well a ListView is a pretty commonly used View. It has API for backing it with data, a common one being data from the database. It takes time to query a database though, so I was wondering if I should do the query in another thread (or asynchronously), then initialize the ListView. All UI drawing is done on one thread (the main thread), so doing too much stuff can cause bad load times. Sep 05 14:06:01 StingRay_ com.google.android.gms:play-services:5.2.08 Sep 05 14:06:11 that's the gradle file Sep 05 14:06:13 ok and is that released yet ? Sep 05 14:06:17 cause I dont think it is Sep 05 14:06:19 :) Sep 05 14:06:28 mattblang : thanks for the explanation :) Sep 05 14:06:33 okay.... lemme check that Sep 05 14:07:20 the_fog drop to 5.0.89 and sure you will be fine Sep 05 14:07:52 play store is 4.4.52 Sep 05 14:08:03 will try 5.0.89 now Sep 05 14:08:29 the_fog: http://tools.android.com/knownissues Sep 05 14:08:40 that may be your issue Sep 05 14:09:20 Anyone here familiar with launching the same app/activity from a widget? Sep 05 14:09:23 osxorgate, so only onProviderDisabled/enabled calls go through Sep 05 14:09:34 but the location never seems to be updated Sep 05 14:10:04 StingRay_ 4.4.52 works Sep 05 14:10:09 you are a legend Sep 05 14:10:29 odd that your device has such an old version Sep 05 14:10:43 you sure thats the gmp-play-services version ? Sep 05 14:10:58 gms* Sep 05 14:11:04 i took that from the play store Sep 05 14:11:14 https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en Sep 05 14:11:29 actually the error should tell you the lib/ver Sep 05 14:11:36 and it was multiple devices Sep 05 14:11:39 installed Vs used etc Sep 05 14:13:27 no... the error was "GooglePlayServices not available due to error 2" Sep 05 14:14:00 wow, freaky …well glad it's working Sep 05 14:14:02 which a google search turned up surprisingly few results Sep 05 14:15:18 hello guys! I have problems in writing on a Mifare Classic 1K from android Sep 05 14:15:24 can someone help me? Sep 05 14:17:38 StingRay_ good stuff, thanks again... and a shout out to aaearon for chiming in... Sep 05 14:44:14 Whats the kitkat version of ActionBarActivity? Sep 05 14:48:25 Activity ? Sep 05 14:48:46 * StingRay_ has little idea, dont use actionbar, but would think it's just activity Sep 05 14:51:03 after hours of hard work Millennial Media is now easier to implement than the new Admob SDK Sep 05 14:51:31 SohamG: ActionbarActivity is just the support version Sep 05 14:51:42 just use Activity in kitkat Sep 05 14:52:03 MrMeTooo any good ? as in better banner designs ? Sep 05 14:52:21 StingRay_ i am following the tut for action bar and it says use the appropriate theme and extend ActionBarActivity.... Sep 05 14:52:39 more important: whats the RPM Sep 05 14:52:46 anyone here have any experience with Write Only Memory ? Sep 05 14:52:53 Hi all, what's the best option to change the glow color of a Listview? (default blue) Sep 05 14:53:07 danijoo RPM? Sep 05 14:53:26 FrancescoV color of what ? Sep 05 14:53:34 FrancescoV: android:overScrollHeader="drawable" Sep 05 14:53:47 same for Footer Sep 05 14:53:47 oh the overscoll :) Sep 05 14:53:55 lol http://repeater-builder.com/molotora/gontor/25120-bw.pdf Sep 05 14:53:55 yes that thing Sep 05 14:54:09 SohamG: RPM quesiton was for MrMeTooo Sep 05 14:54:18 danijoo: I think this isn't a normal / easy drawable to create? Sep 05 14:54:30 it is Sep 05 14:54:45 see http://android-holo-colors.com/ Sep 05 14:54:53 StingRay_ nah just when it comes importing and adding both sdks to your app to display ads with the least amount of headache Sep 05 14:54:55 this creates those Sep 05 14:55:11 oh k.... so what should i do to get the action bar? It said it came as default with the proper theme... Sep 05 14:55:32 SohamG: still the normal activity class Sep 05 14:55:46 you only need actionbar activity for lower api level support Sep 05 14:56:03 no my question was how do i get the action bar Sep 05 14:56:05 hello guys! I have problems in reading on a Mifare Classic 1K from android. can someone help me? Sep 05 14:56:17 SohamG: Still normal activity class is the answer -_- Sep 05 14:56:18 Admob use to be very simple and fast to implement but i think they are still working out the bugs much like the 22.3 crash of eclipse Sep 05 14:56:22 Activity.getActionBar() Sep 05 14:56:39 MrMeTooo: Admob works really fine for me Sep 05 14:56:50 are you using the admob sdk or google play services Sep 05 14:56:58 because the first one is deprecated Sep 05 14:57:11 I was...but it was a pain Sep 05 14:57:26 yea i know Sep 05 14:57:59 I dont had problems implementing it with the examples. Sep 05 14:58:27 can somebody point me to some …erm… dont even know what to call it, velocity math ? (calculate ease in-out velocity etc) Sep 05 14:58:32 Why in Android studio uses API for Android wear even if I told it to not use it? Sep 05 14:58:39 during project creation Sep 05 14:59:12 StingRay_: what do you mean? something like applying forces to objects and move them arround depening on resulting velocity etc? Sep 05 14:59:41 hello? Sep 05 15:00:02 danijoo I want ease out animation, so give me frame by frame movement that decreases exponentially ? Sep 05 15:00:21 ugh! This is me being an artist now rather than a programmer, and crap at math Sep 05 15:00:22 :) Sep 05 15:00:50 oh ok. dont know about animation movement. isnt it just Sep 05 15:00:58 StingRay_: You mean that you want the equation for one of the easing on easings.net? Sep 05 15:01:04 well I want to know what I am talking about so I can google and read and learn..cause seriously my math is a bit…erm...crap Sep 05 15:01:15 god damn timezones and DST D: Sep 05 15:01:21 flan3002 yeah thats exactly it Sep 05 15:01:35 I wrote a tweening library in Rust. Let me get it. Sep 05 15:01:36 thekillerklown: dont ask to ask Sep 05 15:01:43 just ask your question Sep 05 15:02:21 danijoo: done. Still no answers. Sep 05 15:02:31 I'm using retrofit with the OkClient. is it possible to force caching even for responses that have no expires or cache-control header? Sep 05 15:02:34 How do i remove the swipe to dismiss feature in the avd emulator? Sep 05 15:03:04 because "I have problems" is a bad definition of a problem. Also this channel is for android development. Sep 05 15:03:15 StingRay_: This is the project on GitHub, it's basically abandonded and fallen behind the current syntax, but it did work. You should be able to get the equations out of it. Or just ask me for a specific one... https://github.com/hoeppnertill/redox-tween Sep 05 15:04:06 danijoo: I have a problem means "I can't figure out how to do it because internet is full of half-tutorials of bad quality". Also I'm talking about android programming. Sep 05 15:04:13 thekillerklown: you asked no Q. Sep 05 15:04:35 Just ask your Q with a link to any code you might have in pastebin. Sep 05 15:05:21 flan3002 thanks, will take a look, I'm just wanting ease out/in Sep 05 15:05:23 rgr: If you don't know how to do something, you can't write code. Sep 05 15:05:37 flan3002 well with the addition of learning some math lol :) Sep 05 15:05:46 thekillerklown: and we cant explain you the whole thing if you have no idea at al Sep 05 15:05:49 Also, I've asked if someone can help me in understanding how to correctly read a Mifare Classic 1K from android Sep 05 15:05:50 You havent explained what it is you want to do. Sep 05 15:05:56 actually it's a question Sep 05 15:06:05 StingRay_: There is no single ease. Look at src/ease.rs to see how I implemented in/out for e.g. linear, quad, cubic, quart, bounce and so on... Sep 05 15:06:14 http://www.appbrain.com/stats/number-of-android-apps doesnt look like that many ppl like to program anymore Sep 05 15:06:27 rgr: have you read my first two messages, before asnwering? Sep 05 15:06:32 yes. Sep 05 15:06:49 I dont even know what that mifare stuff is.. Sep 05 15:06:53 "you cant read from a mifare 1k" or something. Its meaningless. Read it how in what context? Sep 05 15:07:25 is it a programming Q or a plug in Q? Seriously, I and maybe others, haver zero idea what you're asking. Sep 05 15:07:32 danijoo: lol, it's the most used RFID model Sep 05 15:07:50 Please can some answer my previous question?(i searched google this time) Sep 05 15:07:50 MrMeTooo: Its just there are apps for mostly everything Sep 05 15:07:55 so the number goes down Sep 05 15:08:22 thekillerklown: not my work field :) Sep 05 15:08:44 SohamG you want to remove a feature of the emulator ? Sep 05 15:08:50 wtf? Sep 05 15:08:50 rgr: it's clear: I don't know how to read that kind of tag in Android. Because we're talking of Android programming, yes, I'm talking about implementing a reading class for that specific RFID model Sep 05 15:09:04 but I can tell you that your question is way to general. its like coming in and asking "I cant write to database. help me" Sep 05 15:09:10 nobody will and can answer that Sep 05 15:09:10 flan3002 oh right yeah ease / exponent Sep 05 15:09:15 ok Sep 05 15:09:23 Hey , I need to align ActionBar text to the center of the action Bar , any suggestion how can I achieve this? Sep 05 15:09:24 I'm explainig in details Sep 05 15:09:40 OK. If its clear then you clearly know more about it than people here. Sorry. But without any specifics good luck in getting any help. "Cant read" is meaningless. Sep 05 15:09:53 StingRay_: So, this one: http://easings.net/#easeInExpo ? Sep 05 15:10:05 flan3002 yes Sep 05 15:10:30 killer: custom actionbar layout Sep 05 15:11:09 write an xml layout, then you can set it to the actionbar to "replace" it Sep 05 15:11:22 there is this standard called Mifare Classic 1K that is a tag of 1K of user space with sectors of 16byte and NDEF compatible. I have to write a class to read the content NDEF encoded in US-ASCII or UTF-8 and I don't know how this is done, even if I know the standard and how the tag is built and its protocol. I have to implement this class in Java for Android (latest verision) and I'm using ADT (Android Development Tools: Sep 05 15:11:28 is it enough clear? Sep 05 15:11:38 danijoo yea maybe it does feel like everything has been made it like the gold rush Sep 05 15:11:40 I have written the custommlayout but can'tfigure out how to replace it Sep 05 15:12:14 SohamG what question? Sep 05 15:12:15 killer: getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); Sep 05 15:12:30 and then .setCustomView(your xml) Sep 05 15:13:21 rgr: still meaningless? Sep 05 15:13:28 StingRay_ : yes as otherwise i cant get the action bar as it conflicts with the swipw feature.... MrMeTooo : I wanna get rid of the swipw to dismiss feature Sep 05 15:14:09 SohamG but you want to get rid of it in a AVD ? Sep 05 15:14:19 yes Sep 05 15:14:21 that makes no sense, you mean your app right ? Sep 05 15:14:29 yes Sep 05 15:14:35 then just dont implement it Sep 05 15:14:37 ?? Sep 05 15:14:58 I want the action bar.... How else can i get it? Sep 05 15:15:11 thats what im thinking that feature doesnt come default unless you chose that feature on project creation Sep 05 15:15:16 get actionbar ? Sep 05 15:15:36 show the code Sep 05 15:15:48 I told him 3 times now.. Sep 05 15:15:52 SohamG honest you are making little sense, unless you are just doing a copy paste attack on designing an app Sep 05 15:16:01 in which case you are in trouble my friend :) Sep 05 15:17:00 nope i am not.... and danijoo, getActionBar returns null for me Sep 05 15:17:19 if you guys need something to watch http://www.stereogum.com/1473772/watch-napster-documentary-downloaded/video/ Sep 05 15:17:24 SohamG: Did you read the android docs on actionbar implementation> Sep 05 15:17:54 but why do you need to implement it?? it comes default Sep 05 15:18:18 StingRay_: Sorry, was away. So, if I've not misunderstood you, you simply want a function that returns 2^(10*(t-1)) for 0<=t<=1? Change the specifics at will. Sep 05 15:18:21 * StingRay_ gets the feeling there are deeper forces at play here :) Sep 05 15:18:52 yep.... it comes default with the themes having parent as Themes.Holo but if i use those themes it says that actionbar and swipe dont go together.... Sep 05 15:19:06 StingRay_: Do you want to understand it or just use it? Sep 05 15:19:17 flan3002 really the latter Sep 05 15:19:38 StingRay_: Please have a look at http://www.aurelienribon.com/blog/projects/universal-tween-engine/ . Sep 05 15:19:56 this is a very useful chan. bye. Sep 05 15:22:09 Hey guys I was wondering if someone can review my code to see what I am doing wrong? I am trying to update listview from another class thread, and my program seems to halt at the "addclientlist.add(inforeceive); adapter.notifyDataSetchanged()" http://pastebin.com/d5hxdZgf Sep 05 15:28:32 flan3002 cheers for info and links, really appreciated … Sep 05 15:28:41 :) Sep 05 15:32:19 Demon_Jester: notifyDataSetChanged must be called from the main UI thread afaik. You need to post back on runOnUIThread or use a handler from another thread to then call it. Sep 05 15:33:20 ok I will give it a shot. Sep 05 15:34:29 see here https://gist.github.com/anonymous/675ef97cdbc081386aa6 : that code is called from the other thread which then posts back to main thread which then calls the notify elsewhere on the main UI thread. Sep 05 15:35:27 hi :) Anyone know haw to set two textview in row, one with 10 character, second with 255 character, but i want to have always visible text with 10 characters in one line, second textview should be scaled to that second view Sep 05 15:35:27 eg this is finally called from the decoded message shown above on the main thread : https://gist.github.com/anonymous/4d508759785d0685a5df Sep 05 15:36:43 barnie_: are you sure you want that? That would involve text scaling in one row but not the other assuming I understand you correctly. Sep 05 15:37:06 I have no idea how you understood that rgr Sep 05 15:39:06 danijoo: thnx , it worked Sep 05 15:40:59 I_Artist: the text thing? He wants one row with 10 chars and the other with 255 scaled to match the size of the first is how I read it. That would mean scaling. Assuming, and I dont know, he wants all chars visible. Too little info. Sep 05 15:41:08 barnie_ linearLayout and layout:weight ? Sep 05 15:41:48 thats my guess Sep 05 15:42:21 yeas i want to this with linearLayout Sep 05 15:43:14 https://gist.github.com/fd531632dc082a57dfe8.git at now i create sth like this, but not working well ;/ Sep 05 15:43:33 what do you mean "scaled"? Can you be more specific? You want all 255 chars on screen in the same width in the second row? Sep 05 15:43:51 i want in one line all 10 characters Sep 05 15:43:57 second textview I don't care Sep 05 15:44:06 but secodn textview should be in the same line in the same row Sep 05 15:45:00 second text view can split a text view, but that textview with 10 characters, can not be splitted.. Sep 05 15:45:15 what do you mean second one should be scaled to first one? Use wrap_content on first and fill_parent on second maybe in a horozontal orientation linear layout. Sep 05 15:46:39 certainly hard coding width like you have done is unlikely to be the solution. But Im still not sure what you mean with the second view. "second text view can split a text view" doesnt make any sense to me - maybe someone else. Sep 05 15:47:55 hmm sorry, we have two textview in one line, one is a description, second id adnotation, adnotation should be always visible, and text in adnotation must be in one line Sep 05 15:48:27 but on the phones, with my solution Sep 05 15:48:35 my adnotation is splitted to 3 lines :/ Sep 05 15:56:46 Does anyone know if one has to upload all the expansion files every time a new APK is uploaded? Sep 05 15:56:55 please help me on this Sep 05 16:01:50 Can somebody help me with this? I'm trying to unpack the NdefMessage[] from an intent and I get this error: type mismatch: cannot convert from NdefMessage[]&Parcelable to NdefMessage[] What is NdefMessage[]&Parcelable ? I've never seen the & operator in a type declaration Sep 05 16:06:54 <|\|19hTVV0|F> hello Sep 05 16:07:02 <|\|19hTVV0|F> anyone did a costum rom here? Sep 05 16:07:07 hello all Sep 05 16:07:18 |\|19hTVV0|F: #android-root Sep 05 16:07:19 <|\|19hTVV0|F> I can't find the .rle file Sep 05 16:07:28 <|\|19hTVV0|F> thanks danijoo Sep 05 16:08:13 by the way why is everyone of those rom/root guys coming in here first Sep 05 16:12:40 "dev" could be for application or system level code I suppose Sep 05 16:13:52 maybe change to android-appdev Sep 05 16:14:52 I've got a problem with my activity Sep 05 16:15:21 savedInstanceState always results null Sep 05 16:15:38 Could somebody help me? Sep 05 16:15:42 RobertBruce: are you putting something in it in onSaveInstance? Sep 05 16:16:13 No, I'm not Sep 05 16:16:25 how should it be not NULL then Sep 05 16:16:57 if you dont put something in, you cant get something out Sep 05 16:16:57 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.animation/com.example.animation.MainActivity}: java.lang.NullPointerException Sep 05 16:17:37 I checked with debugger and I saw savedInstanceState was null Sep 05 16:17:55 savedInstanceState is always null unless you put something in it. Sep 05 16:17:58 RobertBruce have you accidentally put danijoo on ignore ? Sep 05 16:18:04 :) Sep 05 16:18:36 maybe you are confusing savedInstanceState with the intent bundle you want to pass from previous activity to that one Sep 05 16:18:39 ? Sep 05 16:20:29 Maybe Sep 05 16:20:40 hello everyone Sep 05 16:21:27 I'm a newbie in Android Sep 05 16:24:06 how come when we use density pixel, we still have to define different layouts for screens with different resolutions Sep 05 16:24:50 ashemark: not every device has the same aspect ratio Sep 05 16:25:41 sorry but what is aspect ratio? Sep 05 16:26:04 danijoo you dont mean aspect ration right ? you mean pixel size Sep 05 16:26:12 ratio* Sep 05 16:27:43 but aspect ration is x to y factor Sep 05 16:27:55 omg, ratio* Sep 05 16:28:35 like your TV is maybe 16:9 Sep 05 16:29:25 well basically the sizes are pixel independent, but you cant say if its 100 dp in length or its more/less. that depends on screen size and is why we need multiple layout Sep 05 16:29:29 what is x and y, length and breadth? Sep 05 16:29:55 ashemark width height Sep 05 16:29:58 forget that ratio thing Sep 05 16:30:01 ist about screen sizes Sep 05 16:30:04 not the ratio Sep 05 16:30:07 okay Sep 05 16:30:48 just think of a tv vs a smartphone. they both can have the same pixel density, but one may have 300 dp in width and the other may have 2000 Sep 05 16:31:11 Hey , I used to use the xml file for curving the corners of the buttons ,so I used it in androi:background but now I also need an image(background) for that button ,so can I use android:background 2 times(eclipse says I can't),so any other way? Sep 05 16:31:32 pixel density just makes sure that a view has the same physical size Sep 05 16:31:44 gotcha Sep 05 16:32:57 Does anyone know if one has to upload all the expansion files every time a new APK is uploaded? Sep 05 16:33:22 test i Sep 05 16:33:22 t Sep 05 16:33:31 . Sep 05 16:33:58 danijoo physical would be mm or in ? Sep 05 16:35:18 killer another way to do what ? Sep 05 16:35:33 StingRay_: physical is physical. what you actually see on your device Sep 05 16:35:50 it you measure it with a physical ruler in your hand Sep 05 16:36:09 yeah, in or mm units Sep 05 16:37:38 Does anyone know how to add stuff to the AndroidManifest.xml only for the tests, using Gradle and Android Studio? Sep 05 16:38:17 The docs say not to provide a separate manifest for the tests, since it's generated automatically, but I want to add permissions for the tests. How can I do this? Sep 05 16:40:01 Is it possible to dispatch a proxy/virtual touch event in Android? Sep 05 16:40:32 Basically, to dispatch a touch event (specifically a MotionEvent) without actually having a user tap a view? Sep 05 16:40:47 @wizardpoop You can use `view.performClick()` Sep 05 16:42:45 Just tried it, doesn't work for my case (though I might be able to work around to make this work) Sep 05 16:43:11 Basically, I have a ListView and adapter so the view I have a reference to uses the ViewHolder pattern Sep 05 16:43:54 StingRay_: I used xml to get rounded corners and I also need a backgroung image for the button , how can i achieve this Sep 05 16:44:21 killer custom drawable I would think Sep 05 16:44:22 Within the onTouch listener for the ViewHolder instance I have a switch statement that reads MotionEvent.ACTION_UP which I was hoping would fire based on the suggested performClick() Sep 05 16:46:16 StingRay_: you mean customize the drawable image ? Sep 05 16:46:42 killer no I mean drawing to a canvas with a recf as a mask or something Sep 05 16:47:24 I am trying to secure an offline anroid device. I am trying to find a way to prove to the purchase of the phone has the exactly filesystem that I have posted on my website. Is there a good way to prove file system integrity? Sep 05 16:47:39 szheigh: Do you know how I could do something like performClick() for an onTouch with MotionEvent? Sep 05 16:48:53 wizardpoop: Look at the source code for the android.test.TouchUtils class Sep 05 16:49:11 I'll make a gist, one sec Sep 05 16:49:25 Cool, thanks - I'll take a peek at the src Sep 05 16:54:44 wizardpoop: Look at http://developer.android.com/reference/android/view/View.html#dispatchTouchEvent(android.view.MotionEvent) Sep 05 16:55:10 I realized that the TouchUtils uses test instrumentation classes, so that won't work in a normal app. Sep 05 16:55:58 I'll look at that again, I believe I wasn't able to create a new MotionEvent and pre-set its ACTION - but I could have been doing it wrong Sep 05 16:57:10 wizardpoop: Use MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); Sep 05 17:02:10 'wizardpoop' :) Sep 05 17:02:47 szheigh: that seems to be working (need to adjust a bit) but thanks! Sep 05 17:03:08 szheigh: Thanks a ton, I really appreciate it Sep 05 17:03:46 wizardpoop: You could always pass the touchevent into a GestureDetector Sep 05 17:04:23 wizardpoop: http://developer.android.com/reference/android/view/GestureDetector.SimpleOnGestureListener.html has a onSingleTapConfirmed method Sep 05 17:05:27 Sure, I have a different setup using onTouch in combo with the ViewHolder pattern - I have things working really well so I don't plan to switch :) Sep 05 17:07:27 I'm getting an error when trying to attach a file that I've already created and written to (I can view it on the phone) in an email Sep 05 17:08:15 check it out Sep 05 17:08:17 http://pastie.org/9529883 Sep 05 17:08:27 "Couldn't attach file" Sep 05 17:09:23 I printed out both paths, they are both under /sdcard/emulated/0/MYDIRECTORYNAME/etc... Sep 05 17:09:37 I wonder why it says emulated, is that not the correct way to get the path to external storage? Sep 05 17:10:48 ok, from the top, "how to attach text file to email Android" Sep 05 17:10:49 lol Sep 05 17:14:03 ah, it needs URI Sep 05 17:14:09 Hi! I have an activity and a fragment. In the fragment I have a TextView and an ImageSwitcher. In the activity when I do findViewById(...) I can sucessfully get the textview, but not the imageswitcher, it returns null. How come? Sep 05 17:14:19 you do Uri uri = Uri.fromFile(file); Sep 05 17:14:31 and then intent.putExtra(Intent.EXTRA_STREAM, uri); Sep 05 17:15:15 MapMan should not be able to do that at all Sep 05 17:15:30 at all Sep 05 17:15:34 oh wait sorry missread Sep 05 17:15:46 and misspelled! Sep 05 17:15:52 lel Sep 05 17:15:53 cause it can't find it by id :) Sep 05 17:16:01 top kek Sep 05 17:16:02 wut Sep 05 17:16:04 ? :P Sep 05 17:16:15 dota? Sep 05 17:16:19 git gud Sep 05 17:16:23 warcraft Sep 05 17:16:25 MapMan: different layouts Sep 05 17:16:29 same same Sep 05 17:16:32 no Sep 05 17:16:35 no Sep 05 17:16:38 MapMan: the activity layout has its set of views, the fragment has its own set of views Sep 05 17:17:08 MapMan: ie when you do findViewById in the fragment you have to prefix it with the fragment's root view (you can either call getView() or do this in onCreateView() of the fragment) Sep 05 17:17:11 is it possible for multiple fragments to share the same layout? Sep 05 17:17:17 sure Sep 05 17:17:22 they can even have the same ids Sep 05 17:17:28 cool thnx Sep 05 17:17:30 but they will have their own view hierarchy Sep 05 17:17:36 of course Sep 05 17:17:41 so you have to prefix findViewById with the "root" view Sep 05 17:17:44 lasserix: okay, then how come I can get the textview but not the imageswitcher? Sep 05 17:17:49 dunno Sep 05 17:17:56 you'd have to post your code Sep 05 17:18:08 maybe you have another textview in the Activity's layout that has the same ID as that of the fragment's Sep 05 17:18:18 Also depend on how you are adding your fragment Sep 05 17:18:21 nope, double checked Sep 05 17:18:21 depends* Sep 05 17:18:30 I have use a ViewPager Sep 05 17:18:33 if that's related Sep 05 17:18:48 shouldnt fragment be a self-contained mini activity? why are you tampering with it from the host activity Sep 05 17:18:49 You have used one before? Sep 05 17:19:08 Sicp not at all Sep 05 17:19:17 ViewPagers are also something in Android so I guess it's related Sep 05 17:19:21 oh Sep 05 17:19:22 I use a ViewPager* Sep 05 17:19:30 well yea never worked with them but that's what I pick up from discussions here Sep 05 17:20:21 Yeah typically the Fragment will communicate with the Activity if it needs to, but there isn't a good reason for an Activity to need to communicate with a Fragment Sep 05 17:20:38 yiati really ? Sep 05 17:21:07 uhhhh Sep 05 17:21:48 Yep Sep 05 17:22:02 uhhhh like ughhh? or like ummmm? Sep 05 17:22:08 yiati totally disagree Sep 05 17:22:16 mkay Sep 05 17:22:35 why Sep 05 17:22:48 cause there is loads of reasons to Sep 05 17:23:02 there are things that require it too Sep 05 17:23:27 like what Sep 05 17:23:42 100's of reasons Sep 05 17:23:55 lol Sep 05 17:24:11 fragmentDialogs, headless fragments, grabbing states …erm… 100s Sep 05 17:24:28 not going to start spamming the channel with all the reasons :) Sep 05 17:24:29 I'm using okhttp. is there any way to cache responses and use them forever regardless of Date-Modified or Etag or Expires or Cache-Control fields? Sep 05 17:25:22 not to mention initial instance creation args Sep 05 17:25:27 StingRay_: All of those have to do with creating the fragments which yes it obviously has to do. As far as touching the UI and logic behind it goes the Activity should not have to ask the Fragment anything Sep 05 17:25:41 which is what MapMan wants to do Sep 05 17:26:24 well as a best practice yeah… controlling views should be down to what created/hosted them Sep 05 17:26:28 or can get messy Sep 05 17:26:37 yep Sep 05 17:26:55 ok ill move the methods that mess with the fragments views inside the fragment Sep 05 17:27:03 and call some pub methods on the fragment from the activity Sep 05 17:27:09 but disagree with "should never need to" :) Sep 05 17:32:58 StingRay_: hi remember me? I changed a little bit my approach and was able to create the behavior I needed Sep 05 17:33:55 The top layout was used as a ListView header, then I used this https://github.com/emilsjolander/StickyListHeaders to set a list header that was fixed at the top when scrolling the list. Sep 05 17:38:35 Why might linking, but not using a library cause a crash on app startup? Using the NDK and trying to link curl Sep 05 17:38:59 cuase the thing is trying to find a system library with a different name Sep 05 17:39:23 the system libraries are not guarenteed to be identically named Sep 05 17:39:32 ruler501, because loader will not be able to resolve all symbols in your .so Sep 05 17:39:37 you need to load all dependencies. Sep 05 17:39:51 do you know what it is I might be missing? Sep 05 17:48:11 Hello all. Sep 05 17:55:17 ruler501: why does it crash? look at your logcat for a native dump Sep 05 17:59:09 lasserix it couldn't find curl, what is the correct directory to include the .so in? Sep 05 17:59:35 your apps files directory probably Sep 05 17:59:37 that or bin Sep 05 17:59:58 so /data/data/com.your.app/ or /data/data/com.your.app/bin/ Sep 05 18:00:12 err or /data/data/com.your.app/files Sep 05 18:00:21 i just got a sqlite so working in /bin Sep 05 18:00:25 but they will all probably work Sep 05 18:02:19 ruler501: http://pastebin.com/TndNCxX9 Sep 05 18:02:27 here's how i "install" binary files Sep 05 18:03:11 lasserix, ugh, why O.o Sep 05 18:03:33 ruler501, you need to load EVERY dependency using System.loadLibrary Sep 05 18:03:43 Android loader does not to automatic resolution like Linux loader Sep 05 18:03:51 I’m working with a dev on an Android project and I keep running into an issue where I have to change ant.properties and local.properties for the project. is there an environment var I can use as an override? Sep 05 18:03:54 and you need to have them all available in the libs/ Sep 05 18:04:25 SpNg, the reason they're named that is because they're not supposed to be checked into the version control Sep 05 18:04:29 don't share them Sep 05 18:04:49 Mavrik: I realize that, but is there an override? Sep 05 18:04:57 for what? Sep 05 18:05:02 local.properties IS the override Sep 05 18:05:18 curl isn't normally in the system library tho (i believe) Sep 05 18:05:49 SpNg: you should add them to your versio control's ignore file Sep 05 18:06:20 Mavrik & lasserix: ok. Sep 05 18:06:21 lasserix, as far as I understand he compiled curl himself and is including it Sep 05 18:06:34 ruler501: i do it that way because i am running an executable outside of jni that needs that so Sep 05 18:06:50 if you're doign stuff with jni you can probably just put the curl so in your lib folder and load it normally Sep 05 18:06:56 yes. Sep 05 18:06:59 and that's what you should do Sep 05 18:07:05 no Sep 05 18:07:11 not for my application Sep 05 18:07:13 since then Android properly resolves architectures and uses default search path Sep 05 18:07:16 Mavrik I still get the same exception with the System.loadLibrary and all the .so's in libs/arch Sep 05 18:07:29 ruler501, does your curl have more dependencies? Sep 05 18:07:34 lasserix, I'm not talking to you Sep 05 18:07:48 dun dun dun! Sep 05 18:07:56 Mavrik I have openssl, but that is included also. Maybe I should try static linking. How would I do that? Sep 05 18:08:12 yes, you certanly should do static linking if you can :) Sep 05 18:08:23 you do it by passing proper parametres when compiling your libraries / binaries Sep 05 18:08:36 usually to configure, but it depends on the piece of software Sep 05 18:08:43 so if I pass -lcurl it should link statically? Sep 05 18:08:45 usually it's just --disable-shared --enable-static Sep 05 18:08:46 no. Sep 05 18:08:52 -lcurl with link whatever it finds first Sep 05 18:08:52 I already have the static library built Sep 05 18:09:06 if you have static and dynamic, it usually prefers dynamic Sep 05 18:09:20 so how do I force static? Sep 05 18:10:10 ruler501, http://stackoverflow.com/questions/3698321/g-linker-force-static-linking-if-static-library-exists Sep 05 18:10:11 oh and I just discovered that my build system clears /libs so that is probably why it is failing Sep 05 18:12:21 help, please: http://stackoverflow.com/questions/25690393/how-do-google-play-apk-expansion-files-work-exactly Sep 05 18:15:24 Agamemnus, dude, all of that is REALLY explained in that short doc page about expansion files Sep 05 18:15:27 that's why you got -3 Sep 05 18:19:35 Using repo, how do I check out a specific version of AOSP? (And, does this apply to CyanogenMod's source tree?) Sep 05 18:20:35 repo init -b Sep 05 18:20:37 and yes, it does Sep 05 18:21:17 #cyanogenmod-dev for future CM-building q's tho Sep 05 18:21:42 Where can I get a list of s? Sep 05 18:21:45 unfortunately there's not really an AOSP-building-specific channel that i've found Sep 05 18:23:01 thirtythreeforty: You can take a look at the manifests project, via the web interface Sep 05 18:23:05 No it isn't. Sep 05 18:23:13 the for repo is the branch in the main android.git repository - for CM, for example, https://github.com/CyanogenMod/android/branches Sep 05 18:23:21 e.g. https://android.googlesource.com/platform/manifest/ Sep 05 18:23:31 If it is, prove it. Sep 05 18:24:14 Ahh ok I see. The manifest is tagged as I expect in AOSP. Sep 05 18:24:15 help, please: http://stackoverflow.com/questions/25690393/how-do-google-play-apk-expansion-files-work-exactly Sep 05 18:25:04 But CyanogenMod doesn't have their particular M builds tagged! Sep 05 18:25:07 If it is REALLY explained do you think someone with 20 years of experience would be asking? Sep 05 18:25:10 God Sep 05 18:26:13 Agamemnus a) no one's paid to help you, drop the attitude. b) https://developer.android.com/google/play/expansion-files.html#DownloadProcess explains it pretty clearly to me Sep 05 18:26:50 Hi sarbs, wake up. If you don't want to help, don't post snarky comments. It's that simple. Sep 05 18:27:01 also the beginning explains versioning very clearly. Sep 05 18:27:13 Agamemnus http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html Sep 05 18:27:17 Agamemnus, we just expect basic english comprehension from people with 20 years of experience. Sep 05 18:27:30 You people are hopeless Sep 05 18:27:32 It's fine to ask concrete questions, but c'mon. Sep 05 18:27:59 we're not the ones being impatient with people who take time out of their workday to help others Sep 05 18:28:00 there are concrete questions in that stackoverflow post Sep 05 18:28:23 When I don't know something I don't post snarky comments. When I do, I help. You should follow my example. Sep 05 18:28:56 sarbs: that section doesn't help Sep 05 18:41:48 Hello. I'm using a bunch of animations in my class and onCreate i init them. This is the code: http://pastebin.com/P9dVanbZ . Is this a bad approach? Should I load them when they are used instead? Note: yes all of them are used. Sep 05 18:46:29 Agamemnus: you are a magnaminous example of a coding hero Sep 05 18:46:53 Agamemnus: if you want help, why not actually ask a specific question? Sep 05 18:48:12 lasserix got a new book thats really good :P http://www.amazon.com/Essential-Digital-Signal-Processing-Series/dp/0133804429 Sep 05 18:48:43 i'm really rusty on the subject, and my background didn't have much signal processing, but its a good read - gets one thinking about mobile apps too Sep 05 18:49:40 thanks! Sep 05 18:49:47 he wrote another famous book http://www.amazon.com/Understanding-Digital-Signal-Processing-Edition/dp/0137027419 which i will read after this one Sep 05 18:52:00 the stackoverflow posts has a question Sep 05 18:52:07 post Sep 05 18:52:31 post? Sep 05 18:52:37 http://stackoverflow.com/questions/25690393/how-do-google-play-apk-expansion-files-work-exactly Sep 05 18:52:38 ohh Sep 05 18:52:41 this post Sep 05 18:52:49 g00s, we had to study that book at college Sep 05 18:52:53 still have nightmares :P Sep 05 18:53:01 Mavrik :( Sep 05 18:53:03 Just so you know most people will never click a link Sep 05 18:53:03 shit Sep 05 18:53:20 epsicially if you are "please!!!! http://whatever" Sep 05 18:53:21 But, it's hellova useful if you work with digital audio or video Sep 05 18:53:27 not even a stack overflow link? Sep 05 18:53:34 I guess most people are not most people Sep 05 18:53:39 yeah Sep 05 18:53:43 All compression algorithms and pretty much any audio or video work requires that knowledge as prerequirement :) Sep 05 18:53:44 do you disable your scripts too when you browse? Sep 05 18:53:48 just rephrase your question concisely in the chatroom Sep 05 18:54:09 if you want people to actually consider it Sep 05 18:54:20 Mavrik yeah -- i'd like to think about some other problems to solve outside of CRUD so that will require some studying ;) Sep 05 18:54:21 I think I made some pretty specific example questions Sep 05 18:54:37 like i said most people will not click the link Sep 05 18:54:37 g00s, yeah, it's incredibly rewarding Sep 05 18:54:48 that's just not true. you won't click the link Sep 05 18:54:50 but getting to that a-ha moment of how FFT works took me way too long -_- Sep 05 18:54:57 do you know anything about apk expansions? Sep 05 18:54:59 Agamemnus: is anyone answering you? no. so it is true Sep 05 18:55:01 (and why is it useful) Sep 05 18:55:14 logic doesn't work that way Sep 05 18:55:27 well you're still stuck without an answer either way Sep 05 18:55:39 do you know anything about apk expansions? Sep 05 18:55:49 i was just recomending if you want people to help you you need to make it easy for them to at least understand what you are doing, and yes clicking a link is too much overhead for most people. Sep 05 18:55:50 If so, I will write what I posted there Sep 05 18:56:11 you might follow up your question with the link... but anyways good luck Sep 05 18:56:57 lasserix, i think you are probably talking about this channel Sep 05 18:57:11 which seems to be filled with people who are just interested in antagonizing Sep 05 18:57:24 when I am in the javascript channel, links are usually required Sep 05 19:00:47 http://stackoverflow.com/questions/14015134/expansion-files-in-the-new-google-play-developer-console Sep 05 19:01:04 So you can post to so but can't search it? ;p Sep 05 19:01:16 "do you know anything" isn't a good way to get someone with limited time to respond. "can anyone explain xyz problem in expansions" is much more likely to get someone. This of course assumes anyone awake at the moment happens to deal with expansions, since they're not terrible common. And antagonizing people isn't really a good way to endear yourself to them and encourage them to spend time on your problem. Sep 05 19:01:29 Like i said if you are asking a question, ask a question. "please!!!! " is not asking a question. Sep 05 19:02:02 The question is not what I am asking Sep 05 19:02:08 +1 dragorn. in case reading the link i posted was too much overhead for Agamemnus ;) Sep 05 19:02:12 Linking to a random post doesn't prove anything Sep 05 19:02:14 dragorn: do you know anything about android? can you help me? Sep 05 19:02:37 birbeck: I know nothing about android :) Sep 05 19:02:44 birbeck please!! http://www.google.com!! Sep 05 19:03:05 I have been asking for several days, but people didn't want to help me or didn't answer. Sep 05 19:03:15 Another antagonizer Sep 05 19:03:20 sarbs: i don't want to search about android, i just want you to know problems and answer it, even though im vauge Sep 05 19:03:31 help me Sep 05 19:03:45 i'm just putting you guys on ignore so i don't have to listen to this Sep 05 19:04:16 Agamemnus: Well, return to the second half of my comment then: This assumes anyone knows anything about apk expansions. They're not particularly common. The only answer may, in fact, be "go google it" Sep 05 19:04:43 or, better yet, just friggin try it. not like it's hard. Sep 05 19:05:18 Pretty much the only people who are going to be using apk expansions are doing large-scale games, and I don't think I've seen anyone in here talking about working on that sort of thing, pretty much ever. Doesn't mean they don't exist, but don't get all excited just because no-one else is doing what you're doing, either. Sep 05 19:06:00 so i read that Sep 05 19:06:17 and if you upload a new apk it has a new version code therefore the assests will be different so yes you need to upload a new expansion file Sep 05 19:06:25 with each new apk if the version code is different (which it will be) Sep 05 19:07:07 i'm guessing the android os and install process is smart enough to remove deprecated expansion files based on the version numbering Sep 05 19:07:29 lasserix: i'd assume they wouldn't expect the user or the app to clean up correctly, yeah Sep 05 19:07:30 --> "First" is emphasized because although the Developer Console allows you to re-use an uploaded expansion file with a new APK, the expansion file's name does not change—it retains the version applied to it when you first uploaded the file. Sep 05 19:07:37 --> Sep 05 19:07:37 This is an integer that matches the version code of the APK with which the expansion is first associated (it matches the application's android:versionCode value). Sep 05 19:07:53 for situation 3 if user A never downloaded the expansion file, obsviousily they will have to download it once it becomes available. Sep 05 19:08:09 base don the versioning, it will become downloaded when they update the app Sep 05 19:08:23 --> If you update your application with a new APK or upload multiple APKs for the same application, you can select expansion files that you've uploaded for a previous APK. The expansion file's name does not change—it retains the version received by the APK to which the file was originally associated. Sep 05 19:09:10 -> "Whenever you upload a new apk with a different version number, you must also upload the matching assets.zip as the expansion file. You cannot update only the apk and assume the assets will work, as they will not since the version codes won't match." Sep 05 19:09:45 mhm Sep 05 19:09:47 so it's fairly simple: new version code means new expansion file since the versioning should be the same, you can presume it will still work but you might as well reupload with new versioning for the expansion Sep 05 19:10:02 Agamemnus: that should answer all your questions Sep 05 19:10:11 you can of course choose an existing uploaded expansion file Sep 05 19:10:18 and play store will handle reversioning Sep 05 19:10:36 it says it retains the previous versioning so to play it safe you should reupload it? Sep 05 19:10:44 why? Sep 05 19:11:10 you'll just force all the users to redownload a huge file for no reason - it says clearly that if your expansion file doesn't change you don't have to redownload it and users won't have to redownload it either Sep 05 19:11:18 ahh Sep 05 19:11:29 you do have to mark that when uploading new APK tho Sep 05 19:11:39 yeah Sep 05 19:11:41 (e.g. you always have to choose the expansionfile :) ) Sep 05 19:12:37 argh it be so complicated Sep 05 19:13:15 yeah, the expansion file stuff is annoying Sep 05 19:13:24 dear all , i am using an app which i don't have the source code of it , it has a bug , the dev of the app decide to append any request. so i decide to fix this bug by decompileing the app and edit on the smale code , the error is "java.lang.NullPointerException" i did paste full error log and the decopile source code from the Java Decompiler ..http://pastebin.com/yf6BbV8G please advice Sep 05 19:13:32 but it's rather logical when you grasp it, Play Store does behave sensibly Sep 05 19:13:42 you just have to implement the downloader to check if the files are still there Sep 05 19:14:44 beshoo: you introduced anullpointerexception at at android.preference.PreferenceGroup.removePreferenceInt(PreferenceGroup.java:188) Sep 05 19:15:05 err probably at com.gpssettings.src.v65.LatinIMESettings.onResume(LatinIMESettings.java:91) Sep 05 19:15:49 so what i need to make ? Sep 05 19:15:59 you need to goto line 91 in LatinIMESettings.java Sep 05 19:16:02 and fix the npe Sep 05 19:16:11 Well, as far as I know, it's trying to access a null pointer Sep 05 19:16:12 i am guessing that is the app's code Sep 05 19:16:33 from the decompiler Sep 05 19:17:00 beshoo that which you linked is a stacktrace, if you go down the lines those are the methods in reverse order of their being called, so you need to find which method was called that caused the crash in your code Sep 05 19:17:06 from the look of it it looks likes at com.gpssettings.src.v65.LatinIMESettings.onResume(LatinIMESettings.java:91) Sep 05 19:17:21 assuming com.gpssettings.src is the app you decompiled Sep 05 19:17:49 yes Sep 05 19:17:56 yeah so goto that line in that file Sep 05 19:18:08 and see why some object is returning null when it shouldn't Sep 05 19:18:12 i experienced this a few days ago Sep 05 19:18:43 I was using a plugin which couldn't load read files in an APK expansion for whatever reason Sep 05 19:18:49 Is there a way to turn off the screen without be system app? even xposed way is fine. Sep 05 19:19:20 beshoo: my guess is you are trying to use an object that has not been initialized yet, like a view that has not been laid out yet Sep 05 19:19:24 sound files Sep 05 19:19:31 http://pastebin.com/gVJQeU7Q here is the com.gpssettings.src.v65.LatinIMESettings Sep 05 19:20:06 lol Sep 05 19:20:15 see here line 190 String str1 = (String)INPUT_CLASSES.get(Integer.valueOf(i)); Sep 05 19:20:22 line 91 : if (str1 != null) Sep 05 19:20:34 yeah so obsviousily you are mistaken Sep 05 19:20:45 cause LatinIMESettings.onResume Sep 05 19:20:48 is lines 199 Sep 05 19:20:50 not 91 Sep 05 19:21:00 OH sorry ! Sep 05 19:21:00 and like i said you are accessing something before it has been initialized Sep 05 19:21:20 if (AutoText.getSize(getListView()) < 1) --> Sep 05 19:21:33 usually onResume is called before the view hierarchy is laid out Sep 05 19:21:47 so autotext methods will not necessarily be accessable Sep 05 19:22:05 such as getListView Sep 05 19:22:43 INPUT_CLASSES isn't being initialized Sep 05 19:22:54 hmmm , please note that the source code you see , i can not edite it , i need to work with smale code ! Sep 05 19:23:00 oh nm Sep 05 19:23:01 lol Sep 05 19:23:12 I tried and faild. Sep 05 19:23:14 failed* Sep 05 19:23:24 beshoo: you are editing the smali code? Sep 05 19:23:37 yes ! i don't have the source code Sep 05 19:23:39 yoavst: probably a #android-root question, but I'd poke around in /proc or /sys and see if there's a way to trigger. There isn't anything in the android api I'm aware of. Sep 05 19:23:52 the dev of the app don't respond to me Sep 05 19:24:02 and i don't have the source code Sep 05 19:24:11 Hey guys, I'm developing in eclipse and I have this custom xml file in res/values with an internal doctype, but it doesn't seem to use the doctype I've written at all and keeps on giving errors on the structure. Sep 05 19:24:14 and i want to fix this Sep 05 19:24:15 :) Sep 05 19:24:15 dragorn: Android Device Manager can do that? Sep 05 19:24:28 i saw that you can lock the device Sep 05 19:24:30 beshoo: sorry i have no idea, you need to move this logic in the onResume function to somewhere else or delay it Sep 05 19:24:47 yoavst: oh, you mean the MDM API? Dunno. That's a good thing to check though. Sep 05 19:25:10 please may you list what the line i need to change ! Sep 05 19:25:18 i will try my best ! :) Sep 05 19:25:34 dragorn: I thought about trying to call gotosleep from system app using xposed Sep 05 19:25:45 beshoo: my guess is its the getListView() in if (AutoText.getSize(getListView()) < 1) line 198 Sep 05 19:25:50 any idea how I can fix that? Sep 05 19:26:26 AutoText.getSize(getListView()) this return null you think Sep 05 19:26:41 beshoo: would be my guess Sep 05 19:26:46 hmmmm Sep 05 19:28:03 really the data shouldn't be going throught he listview Sep 05 19:28:04 dragorn: brightness of 0 takes same power as screen off? Sep 05 19:28:15 you should getSize from the data backing the listview, and avoid the call to getListView Sep 05 19:28:34 yoavst: yeah Sep 05 19:28:48 brightness is neglible unless its OALED Sep 05 19:29:07 *OLED Sep 05 19:29:27 lasserix: but the app will still work on background, right? Sep 05 19:29:36 yeah it should Sep 05 19:29:41 I want the app to sleep :( Sep 05 19:29:42 but it will still consume the same power basically Sep 05 19:30:59 wow oleds can have a refresh rate of 100,000Hz Sep 05 19:31:57 what are you doing yoavst? Sep 05 19:32:14 yoavst: dunno. You're getting into "ask in #android-root" territory; You definitely can't (afaik) do it w/out root/xposed, but not many people here do root stuff and it's not really supported. Sep 05 19:33:40 where in the android source it check for permission to gotoSleep? Sep 05 19:33:42 I can't find it Sep 05 19:33:50 It isn't on android.os.PowerManager Sep 05 19:38:11 oh this is cool, if a gradle task has @OutputDir or @OutputFile, it makes sure to create the dir automatically Sep 05 19:55:40 lasserix i found the source code of the LatinIMESettings.java :: http://eyes-free.googlecode.com/svn-history/r703/trunk/ime/latinime/src/com/googlecode/eyesfree/inputmethod/latin/LatinIMESettings.java Sep 05 19:56:07 it seam aglobal code which it has to be buge free Sep 05 20:03:46 well your stacktrace points to that line Sep 05 20:05:16 hmmmm what is your best gess :) Sep 05 20:05:17 ? Sep 05 20:05:57 not really sure Sep 05 20:06:02 lol :) Sep 05 20:06:04 you edited the smali so maybe you introduced the change? Sep 05 20:06:07 *the bug Sep 05 20:06:44 What is the best practice for database calls in an adapters getView? I need modify the view based on data from the db, but querying in getview doesnt seem good Sep 05 20:07:06 desmin88 where else would you do it ? Sep 05 20:07:17 thats why im asking Sep 05 20:09:04 you build an adapter with a cursor Sep 05 20:09:22 personally I dont use cursorAdapter, but rather baseAdapter with a cursor Sep 05 20:10:02 StingRay_: is a rebel Sep 05 20:11:15 querying in getView is bad, unless its async - and you have other issues Sep 05 20:11:31 (like the view gets recycled and is something else before the db result returns) Sep 05 20:12:04 Begging your pardon for the off topic question... Which IRC client do you use on Linux? I like Quassel but it's not working on Fedora. Sep 05 20:12:42 g00s what data are you playing with where getting a row from a cursor takes/can take too long ? Sep 05 20:12:44 :) Sep 05 20:12:57 whats best practice then? Sep 05 20:13:05 hexchat is nice, but i prefer irssi Sep 05 20:13:05 querying is bad yeah, reading a row aint :) Sep 05 20:13:14 getting a row from a cursor or querying? Sep 05 20:13:15 isn't Sep 05 20:13:25 thank wyrdtrtle Sep 05 20:13:36 MikeWallaceDebv weechat is nice too Sep 05 20:13:39 no prob Sep 05 20:13:55 quassel is dead afaik Sep 05 20:14:15 I liked Quassel! worked well, had features... these all suck :-/ Sep 05 20:14:40 desmin88 using a cursor to get rows is fine Sep 05 20:14:47 I'm trying Polari now. Works well, but no options Sep 05 20:14:57 quassel works just fine on mint Sep 05 20:15:41 Yep, worked fine on Kubuntu Sep 05 20:18:24 StingRay_ desmin88 has only said 'database calls', ne heeds to clarify Sep 05 20:18:38 Hey , how can I add a background image in , I am using xml file for making rounded corners button Sep 05 20:18:56 naaa, 99% he means reading from a cursor :) Sep 05 20:19:00 asking whether its safe to pull values out of a cursor is silly, so i assumed database calls = querying the db Sep 05 20:19:29 meanwhile desmin88 is keeping us all in suspense Sep 05 20:19:33 being all quiet and all Sep 05 20:19:43 I dont think he knows :) Sep 05 20:21:42 back. Sep 05 20:23:01 what i basically do is determine if there exists in the db a row with a certain id Sep 05 20:23:30 oh, then no, not in getView :) Sep 05 20:23:35 g00s you win lol Sep 05 20:25:06 if i just query the db once and get a cursor it doesnt matter because the db changes frequently Sep 05 20:26:07 I'm falling to sleep, or that sentence was nonsensical Sep 05 20:26:36 wyrdtrtle, HexChat looks pretty good, thanks! Sep 05 20:27:14 What I mean is I can't just get a cursor then read from it in the getView, because the cursor would not have the updated data from the db Sep 05 20:27:46 data changes while you are scrolling ? Sep 05 20:27:50 it can Sep 05 20:27:59 cool, what app is this ? whats it do ? Sep 05 20:28:02 or doing Sep 05 20:28:16 StingRay_: Did you settle on the Universal Tween thingy? Sep 05 20:28:37 It's essentially a favorite button on the list item Sep 05 20:29:00 flan3002 got distracted, going to do it tomorrow but I had a look and started to understand it, even with my crappy math :) Sep 05 20:29:24 When using a library, it should abstract the math away... Sep 05 20:29:53 dont really need the lib, just using it for the 1 liners and understanding them a bit more Sep 05 20:30:12 When clicked the favorite button updates the database so then they can view just their saved posts Sep 05 20:31:41 So I guess with CursorLoader, you are forced to create a Content Provider? Sep 05 20:31:53 AM I understanding that correctly Sep 05 20:34:33 you can have a loader on a cursor from any source Sep 05 20:34:42 on = provide Sep 05 20:35:03 or I use loaders without content providers Sep 05 20:35:45 StingRay_ how do you set up your loader callbacks? Sep 05 20:36:33 mattblang as you do implement them in my fragment from LoaderManager Sep 05 20:36:45 set the cursor on the adapter when it's ready Sep 05 20:39:28 StingRay_ so the onCreateLoader callback returns a CursorLoader, but I am not seeing how to set it without using a content provider Sep 05 20:39:36 how to choose between support library 4,8 or 13 ? Sep 05 20:39:52 ech0s7 just depends on what you need Sep 05 20:40:10 i need Fragments on android 2.3 Sep 05 20:40:31 ech0s7 then you need v4 Sep 05 20:41:11 mattblang I just created a loader from AsyncTaskLoader that returns a cursor Sep 05 20:41:18 StingRay_ got ya Sep 05 20:41:37 StringRay_ http://stackoverflow.com/a/7422343/1747491 Sep 05 20:41:50 haha, yeah Sep 05 20:42:09 StingRay_ thanks man! Sep 05 20:42:28 no problem :) Sep 05 20:44:29 Hi, i'm trying to capture input from a jack plugged in my device to read it byte by byte and perform actions based on that. Is MediaRecorder the kind of thing that could do that? i tested the code from the "audio capture" android page but it registers to a file (i don't really need to save to a file) and the file is filled in with data even if i don't have anything plugged in Sep 05 21:02:52 Morg0th: The audio jack will give you a samples waveform. It does not directly transfer binary data Sep 05 21:02:58 a sampled* Sep 05 21:04:51 JesusFreke: Morg0th The audio jack does not give _samples_ it gives an analog waveform. I know it's nit-picky but "samples" implies digital data and it's actually analog. Sep 05 21:06:24 deadmund: no, the audio chip gives samples. but as an application, you only care about the actual data you're getting. Sep 05 21:06:43 is the analog path accessible to the host processort ? Sep 05 21:08:05 even if it was, it still has to sample it Sep 05 21:08:26 oh, i just meant in general. i should have said 'audio path' or something Sep 05 21:08:35 JesusFreke: If by "audio chip" you mean analog digital converter, then yes, it gives samples. But the audio jack (the headphone jack) is an analog connection. It does not give samples, it gives a continuous stream Sep 05 21:09:31 well, if you want to be nitpicky, it's not strictly continuous Sep 05 21:09:38 and can i convert that into bits? I'm supposed to receive a 9-bit structure with like first bit is the command type, the 7th is a chksum, 8th is CR etc Sep 05 21:09:47 planck's constant and all that Sep 05 21:10:14 Morg0th: you can't directly transfer binary data via the audio jack. You have to encode the data as audio somehow, and then decode it. Sep 05 21:10:40 JesusFreke: you sir are a true neck beard Sep 05 21:10:56 Deadmund: you're the one who brought it up :p Sep 05 21:11:38 JesusFreke: so the procedure i described is correct and that is why it's registered to a file, to be decoded correctly later on? Sep 05 21:12:22 Morg0th: There's probably a way to get the audio data as a buffer, rather than having it written to a file. I'm just not familiar with the audio apis offhand Sep 05 21:13:06 JesusFreke: ok it's a bit more clear, thanks Sep 05 21:20:15 hey Sep 05 21:21:59 hey Napalm|wrk Sep 05 21:22:07 hey Sep 05 21:22:53 I'm coding near midnight on in Ibiza in my own private villa, it doesn't get better than this Sep 05 21:22:56 :) Sep 05 21:23:18 hey, general dev Q; i'm using p4merge atm .. do you guys have recommendations for anything else? only nice looking thing i found was alaxis merge Sep 05 21:23:24 ugh Sep 05 21:23:35 p4merge is nice Sep 05 21:23:37 works really well Sep 05 21:23:39 used it before Sep 05 21:24:03 yeah sometimes it freaks out; like if one of the files is binary 'git difftools' and p4merge barfs Sep 05 21:24:13 even if git has merge false Sep 05 21:24:20 i prefer Beyond Compare Sep 05 21:24:28 it also has other features than mere Sep 05 21:24:30 merge Sep 05 21:24:31 http://www.scootersoftware.com/features.php?zz=features_focused Sep 05 21:24:35 i use that Sep 05 21:24:53 3 way folder merge Sep 05 21:24:56 oh yea! Sep 05 21:25:20 cool thanks i'll check it out Sep 05 21:34:53 for a device with 4gigs of ram, is there a notible performance difference between android studio and eclipse? Sep 05 21:37:52 why the f uck does intellijew keep insisting that after I click the android sdk folder, that it can't find the sdk still? Sep 05 21:37:58 intellij that is Sep 05 21:38:42 it's like forcefeeding the ide with the sdk and it still won't accept it Sep 05 21:41:31 low quality device. low quality dev tools. low quality diarrhea product. Android Sep 05 21:42:15 lol Sep 05 21:42:26 g00s Sep 05 21:42:30 It's almost like the android stuff for intellij was in beta or something ;) Sep 05 21:42:31 u pinged Sep 05 21:42:32 me Sep 05 21:42:35 like 3 day ago Sep 05 21:42:36 lol Sep 05 21:43:04 jug6ernaut ohcrap, sorry yeah i read an interesting article thought you would be interested, but i think i forgot now :( sorry Sep 05 21:43:04 yes. it's definitely in beta. Sep 05 21:43:13 it takes some time for shit to solidfy before leaving the large intestine Sep 05 21:43:14 g00s :( Sep 05 21:43:27 i hope google turns anroid stuff into fully solidified shit Sep 05 21:43:56 dogarrhea hmm, the tools, etc - are products of a culture which often doesn't change Sep 05 21:44:03 I would prefer something that is completely unlike shit, but maybe that's just me :) Sep 05 21:44:12 JesusFreke dogarrhea intellij android tools even in beta are way ahead of anything eclipse has ever known Sep 05 21:44:30 jug6ernaut: no arguments there :) Sep 05 21:44:42 yes. especially the part where you can't even make a new project Sep 05 21:45:14 I dunno, the part where *I* make a new project seems to work fine. Sep 05 21:45:21 because the ide REFUSES to believe that the folder you clicked that reads adt-bundle-linux-x86_64-20140702/sdk is the actual sdk Sep 05 21:45:35 and keeps saying "" Sep 05 21:45:53 did i mention how their APK expansion docs are behind what the actual APK expansion is doing...? Sep 05 21:46:00 market_ instead of play_ Sep 05 21:46:17 and so on Sep 05 21:46:56 dogarrhea Sep 05 21:47:02 you're an expert on shit aren't you Sep 05 21:47:08 i have a hard time believing that a tool that asks you to specify the sdk folder, and then continue to ignore you is "way ahead of anything eclipse has ever known" Sep 05 21:47:44 not saying that in a bad way btw Sep 05 21:48:02 kek. i use open shit software every day Sep 05 21:48:15 it's pretty annoying when it breaks and your managers expect you to "just make it work" Sep 05 21:48:17 i do also Sep 05 21:48:19 its called eclipse Sep 05 21:48:48 yet you explain to your manager that someone made a shitty decision to use corporate open shit software that has 0 support Sep 05 21:48:55 and they dont' want to hear it. understandably Sep 05 21:49:13 "But but, google wants me to donate time to fix their shitty product" Sep 05 21:49:20 "you're fired" Sep 05 21:49:21 UNREAL Sep 05 21:50:02 companies don't hire developers to fix someone else's shit. Sep 05 21:50:31 sometimes they do Sep 05 21:50:38 if they have a lot of moneys to burn Sep 05 21:50:56 dogarrhea, can you answer this btw? Sep 05 21:50:57 http://stackoverflow.com/questions/25690393/how-do-google-play-apk-expansion-files-work-exactly Sep 05 21:51:03 would help to know Sep 05 21:51:33 dun know Sep 05 21:51:42 i c Sep 05 21:51:53 fine Sep 05 21:51:55 then Sep 05 21:52:13 next best thing is to download my shitty game which i am going to update in an hour Sep 05 21:52:18 and then you'll download it again Sep 05 21:52:20 dogarrhea i remember a problem with that - make sure you specify a JRE first Sep 05 21:52:26 want? Sep 05 21:52:37 and then go back to that same field, and redo it again for the sdk, it was really bizarre Sep 05 21:52:42 sorry forgoing a bit off topic of shit Sep 05 21:53:04 g00s: the jdk? Sep 05 21:53:08 or an actual jre? Sep 05 21:53:15 yeah, make sure it picks up the JDK Sep 05 21:53:18 FIRST Sep 05 21:53:21 i have 1.7 there.. Sep 05 21:53:32 yeah ok, you should be able to select SDK then :| Sep 05 21:54:29 i understand these tools are still in beta; but seems like everything is always in beta .... Sep 05 21:54:36 you can't compare this stuff to MS or apple tools Sep 05 21:54:53 if android was a small independent 20 person company like, you know the way it used to be, yeah OK Sep 05 21:55:13 but shit, i've used lots of embedded toolchains from greenhills to gnu ... and the google tools suck ass the most Sep 05 21:55:22 google owns it now. it's inexcusable Sep 05 21:55:34 you look at their bug trackers. unresolved 8 year old android tickets lol Sep 05 21:55:52 remove the guy in charge of Android and replace with H1B Indian Sep 05 21:56:01 yea. no one's going to make android work Sep 05 21:56:11 well, yeah thats another issue - they get triaged and its hard to know whether it was fixed . sometimes it is, but hard to tell from the website Sep 05 21:56:50 i think from a communications perspective they need to improve a lot also Sep 05 21:56:57 like releasenotes just often say 'fixed bugs' Sep 05 21:57:16 from my experience, most bugs are resolved as "won't fix" Sep 05 21:57:21 if there ever is a resolution Sep 05 21:57:28 ugh, thats not professional from a multibillion $ company providing tools to 10K developers Sep 05 21:57:32 I also use selenium Sep 05 21:57:42 No, it isn't. Sep 05 21:57:58 Google is a monopoly in its own ecosystem Sep 05 21:58:04 it's new microshit Sep 05 21:58:15 They could quintuple the amount of developers if they wanted to Sep 05 21:58:18 they are goign to rape apple just like microshit did in the 90's Sep 05 21:58:38 I mean paid developers Sep 05 21:58:40 :P Sep 05 21:58:47 it's only a matter of time before web apps become dominant on mobile, apple loses to google and we see this cycle all over again Sep 05 21:59:06 the new shiternet explorer browser wars will be fought on the phones Sep 05 21:59:27 they're already here Sep 05 22:00:13 When using a navigation drawer, specifically NavigationDrawerFragment, is it usually set up such that the activity loads a new fragment, or so a new activity is started? Sep 05 22:00:25 is it just me or does trying to align textview on the UI in android studio suppose to be pain in the ass? Sep 05 22:00:30 *when something is selected Sep 05 22:01:37 Demon_Jester: it's probably simple but no one told you Sep 05 22:01:50 so your assessment is likely correct Sep 05 22:01:56 get it Sep 05 22:02:01 ass..essement. Sep 05 22:02:24 yes everyone in this channel are just people that are asses, that doesnt change anything. Sep 05 22:02:54 also, happy caturday Sep 05 22:03:05 Demon_Jester: I can align just fine. What seems to be the problem? Sep 05 22:03:13 I mean I want to center textview, ok cool, suddenly it shifts to the left from the center. Sep 05 22:03:39 and overlaps another textview Sep 05 22:03:40 sorry about that Sep 05 22:04:02 Demon_Jester: well, what container is it in? Sep 05 22:04:04 I fixed it I have to keep removing "android:layout_align*" Sep 05 22:04:17 cool Sep 05 22:04:19 relayivelayout Sep 05 22:04:23 that doesn't sound right Sep 05 22:04:36 oh wait removed from what? Sep 05 22:04:37 I am in android studio, makes sense for this to happen. Sep 05 22:05:14 in activity.xml in the textview I have to remove android:layout cause I get a rendering problem. Sep 05 22:05:28 Demon_Jester: I've actually never had a problem with Studio that wasn't my fault somehow Sep 05 22:05:39 can we have a non-persistent PreferenceFragment? Sep 05 22:05:43 Demon_Jester: granted, I started using it once it was out for like 4 months Sep 05 22:07:23 I move textviews around and it breaks my app Sep 05 22:07:30 I cant mess with the UI now Sep 05 22:07:42 I close it and open it back up and still cant see shit. Sep 05 22:07:59 Demon_Jester: just manipulate the xml Sep 05 22:08:44 I did but the ide knows it learned, I cant see shit after removing what fixed it before. Sep 05 22:09:30 Afzal i think that depends more on the Preferences themselves (in the PF) Sep 05 22:09:44 Preferences don't have to be persisted (using the usual framework) Sep 05 22:10:20 g00s, yeah I just want that preference UI without the persistence (and extra work :p) Sep 05 22:10:42 Afzal: its free to have it without persistence Sep 05 22:11:09 keviv ok so I got it working, I go to move one of the texts views and suddenly the layout width keeps setting itself to wrap_content Sep 05 22:11:15 hm yeah, i had that issue lately too. i had prefs to store info for one server, like name / port / etc. But then decided, i wanted to allow N servers. wound up just making a form Sep 05 22:11:28 oh wow, that's just one property, persistent: false Sep 05 22:11:30 nice! Sep 05 22:11:42 Demon_Jester: the *top-level* layout? Sep 05 22:11:58 g00s, hmm. Yeah, in this case, it's just a switch. As I said, just want the nice layout :) Sep 05 22:11:59 Demon_Jester: or the TextView? Sep 05 22:12:24 Demon_Jester: nobody here really creates layouts using the drag-drop UI Sep 05 22:13:09 Napalm|wrk: I only do if I'm adding a ton of views, and then I'll go to the xml and fix it Sep 05 22:13:50 I can just type it all quick enough by hand. Also.. xml templates FTW Sep 05 22:14:09 Napalm|wrk: hehe yea I'm not a fast typer Sep 05 22:14:12 When using a navigation drawer, specifically NavigationDrawerFragment, is it usually set up such that when an item is selected, the activity loads a new fragment, or is a new activity started? Sep 05 22:14:46 keviv: there is no standard NavigationDrawerFragment Sep 05 22:14:54 Napalm|wrk: oh wait hold on Sep 05 22:16:33 Napalm|wrk: sorry, I mean from this: http://developer.android.com/training/implementing-navigation/nav-drawer.html Sep 05 22:18:00 Napalm|wrk: NavigationDrawerFragment was my own name Sep 05 22:19:48 Hello,the last days i had a look to the new design infos for Andorid L. They want to change the the main font size from 18 to 16sp. I tried it on my HTC One, sombody else also think that that is too small? Sep 05 22:20:33 hey everyone Sep 05 22:20:51 i want to use an apiary api with in android Sep 05 22:21:01 how do i go about doing it? Sep 05 22:21:22 Hello I have a super class that is package private and two public subclasses for that, This is for an api, so my question is if i Have constants for both classes (ie in the superclass) should i just duplicate them instead in each subclass? Sep 05 22:22:05 ahh nm Sep 05 22:22:58 keviv: If I were implementing the navigation drawer pattern Like a NavigationDrawerFragment then I would simple have it define a onNavItemSelected callback and have the Activity implement it.. the Activity can then decide how to navigate to the new fragment. Sep 05 22:26:04 trollololol Sep 05 22:26:11 Napalm|wrk: I was thinking make it so that it replaces the content fragment, and then still override the onCreate method for every public Activity, and add the drawer if necessary Sep 05 22:26:17 shitdroid developer only supports api level 20 and nexus? Sep 05 22:26:28 i hope google dies in a fire Sep 05 22:26:55 dogarrhea: who are you talking about? The Android dev website? Sep 05 22:27:19 the piece of shit android development ide Sep 05 22:27:29 dogarrhea: wtf are you talking about Sep 05 22:27:38 android studio Sep 05 22:27:40 dogarrhea: thats the compilation api level Sep 05 22:27:49 It should support any api, and any device you have adb access to. Sep 05 22:27:50 you can stll create apps with minSdk 9 Sep 05 22:27:50 dogarrhea: what ide only supports 20+ ? Sep 05 22:28:12 i'm looking here. i can't find a galaxy s2 device int he avd manager Sep 05 22:28:16 dogarrhea: its the same for eclipse Sep 05 22:28:26 the ADT plugin will only work with the build-tools Sep 05 22:28:32 ayeyuyu Sep 05 22:28:50 oh, for the emulator? That just sets things like the screen size and the amount of ram Sep 05 22:29:01 it's not actually using the same firmware image as whatever phone you select Sep 05 22:29:29 dogarrhea: AVD doesnt list every android device, but you can make it. just match its spec. Sep 05 22:29:31 so when you select, e.g. "nexus 5", it's just some pre-defined device characteristics that are mostly like the named device. Sep 05 22:29:50 lol.... Sep 05 22:30:10 so i'm supposed to google every device and compare it to the model i want and then select it? Sep 05 22:30:16 dogarrhea: keep in mind that Samsung doesn't release its firmware, so there's no way that Google can bundle it in any of its tools Sep 05 22:30:23 dogarrhea: just define your own Sep 05 22:30:44 wutever happened to picking the device that is most common... Sep 05 22:31:00 hey everyone Sep 05 22:31:06 dogarrhea: GS2 is the most popular? Sep 05 22:31:22 for now. according to some business people up there Sep 05 22:31:34 how can i use an apiary api in my app? Sep 05 22:31:39 the Target: drop down only shows Android 4.4W -API Level 20 Sep 05 22:31:40 the entire Samsung Galaxy series is popular Sep 05 22:31:46 this tool is shit. I give up Sep 05 22:31:54 dogarrhea Sep 05 22:31:56 dogarrhea: because that's the only api level you have installed so far Sep 05 22:31:56 um there's nothing better Sep 05 22:31:57 stop Sep 05 22:32:14 i definitely have more api levels than that in the sdk Sep 05 22:32:17 dogarrhea: what do you expect it to do? Sep 05 22:32:19 in your SDK Manager Sep 05 22:32:29 but you probably didn't select the emulator images for the other api levels Sep 05 22:32:31 yes. the one where i click "extras" Sep 05 22:32:38 can anyone guide me how to use apiary api in my android app? Sep 05 22:32:40 dogarrhea: you need the Virtual machines images for each one tho Sep 05 22:32:45 dogarrhea: you don't have them Sep 05 22:33:27 Doesn't Samsung have a repo? Sep 05 22:33:51 keviv: it only has the source for the gpl components that they're required to provide source for (afaik) Sep 05 22:33:57 ok I decided to modify the ui throught xml, oh my god, much better than drag and drop. Sep 05 22:34:10 JesusFreke: ah okay Sep 05 22:34:32 Demon_Jester: you took the blue pill, welcome to the REAL world Sep 05 22:35:15 but the fake steak is so delicious! Sep 05 22:35:36 you will soon discover xml is verbose and crappy in most applications lol Sep 05 22:35:56 and its original purpose as general data transfer is superceded by json Sep 05 22:36:02 dogarrhea ok, time to say something positive :) Sep 05 22:36:11 dogarrhea: do you want help or not Sep 05 22:36:32 dogarrhea: svd manager -> create a new device Sep 05 22:36:36 *avd Sep 05 22:37:01 i've already tried that Sep 05 22:37:04 only level 20 and up Sep 05 22:37:05 Target -> *whatever api level you want* Sep 05 22:37:07 dogarrhea Sep 05 22:37:09 ahahahahahahahaha Sep 05 22:37:12 hhhhhaaa Sep 05 22:37:14 ffs Sep 05 22:37:24 dogarrhea: go fucking download the other API levels then Sep 05 22:37:29 dogarrhea: then install the right ones Sep 05 22:37:31 i have Sep 05 22:37:33 dogarrhea: you need to down the the image's for each Sep 05 22:37:36 no you havenet Sep 05 22:37:41 or they appear Sep 05 22:37:50 i think this goes back to the whole fucking problem with intellij ignoring where my sdk is Sep 05 22:37:59 which HAS ALL THE APIS Sep 05 22:38:01 dogarrhea: this does not relate at all Sep 05 22:38:15 dogarrhea: which api do you want? Sep 05 22:38:23 dogarrhea: its nothing to do with IntelliJ Sep 05 22:39:59 i'm looking here in my Android SDK Manager. let's see Sep 05 22:40:23 Android 3.2 (API 13) -> SDK Platform (red check in a box icon Installed) Sep 05 22:40:33 still need image Sep 05 22:40:37 you need the "ARM EABI v7a System Image" Sep 05 22:40:51 isn't that what the avd manager supposed to do? Sep 05 22:40:55 no Sep 05 22:41:06 it creates things based on the api Sep 05 22:41:07 it takes the image that *you donwloaded* and it emulates it Sep 05 22:41:27 well, rather it runs the emulator with that image Sep 05 22:41:49 that doesn't sound right at al Sep 05 22:41:58 why not? Sep 05 22:41:59 that's like saying "It runs the windows image you downloaded on linux" Sep 05 22:42:13 why would you even specify an api level if you have the image already Sep 05 22:42:24 Specifying the api tells it which image to use Sep 05 22:42:35 if you specify api 20, then it runs the api 20 image Sep 05 22:42:46 and that's wrong why? If you're deving for Windows on Linux, and want to try something out, you'd obtain a Windows image and run it in an emulator Sep 05 22:42:48 if you specify api 18, it runs the api 18 image Sep 05 22:42:54 dogarrhea: does the sdk api magically become compiled? you need the image of the compiled os Sep 05 22:42:55 do you notice a pattern here? :) Sep 05 22:43:21 but you have to have that image downloaded for it to show up when you're making a new AVD Sep 05 22:43:51 dogarrhea: the only thing that SDK Platform does is compile your code Sep 05 22:43:54 so this Intel x86 Atom System Image with a red check box inside a brown box that says "Installed" Sep 05 22:43:57 i'm missing that? Sep 05 22:44:15 dogarrhea: which API level is that in? Sep 05 22:44:24 that's in 4.0.3 (API 15) Sep 05 22:44:53 along with MIPS System Image and Google APIs and Sources for Android SDK and blah blah blah Sep 05 22:45:02 you dont need bips Sep 05 22:45:04 mips Sep 05 22:45:16 dogarrhea: screenshot it Sep 05 22:45:55 dogarrhea: and then also screenshot the avd creation dialog with the Target spinner selected Sep 05 22:47:52 When using a navigation drawer, specifically NavigationDrawerFragment, is it usually set up such that when an item is selected, the activity loads a new fragment, or is a new activity started? Sep 05 22:47:55 wait sorry Sep 05 22:48:03 didn't mean to paste that Sep 05 22:48:05 http://picpaste.com/androidSucks-XhkI78hY.png Sep 05 22:48:28 i'm seriously thinking there's a bug somewhere Sep 05 22:48:35 it's you Sep 05 22:48:44 sure. whatever you say Sep 05 22:48:53 "YEA Y OUR IMAGE IS MISSINg" even though it says it's installed Sep 05 22:48:56 it's definitely me Sep 05 22:49:08 dogarrhea: um.. the image isn't installed Sep 05 22:49:09 dogarrhea: um, we can't see anything Sep 05 22:49:11 there is no check box to it Sep 05 22:49:19 look at the screenshot Sep 05 22:49:23 or rather, the checkbox next to it isn't checked Sep 05 22:49:30 do you see a checkbox that says installed? Sep 05 22:49:33 is there a check in it? Sep 05 22:49:37 that's a filter for the sdk manager Sep 05 22:49:56 dogarrhea: Updates/New is also checked Sep 05 22:50:02 let me paste the one with the status next to it Sep 05 22:50:05 dogarrhea: my bad, you're right :) Sep 05 22:50:11 just so you can make sure that the sdk manager is broken Sep 05 22:50:43 dogarrhea: also, the Target dropdown sin't selected Sep 05 22:50:49 http://picpaste.com/Screenshot-16-NGsZaiSC.png Sep 05 22:51:35 there's something definitely wrong. and it isn't me. (except for trying to android probably) Sep 05 22:52:11 dogarrhea: well, if this is in fact an error not on your part, then this is most certainly an anomaly Sep 05 22:52:41 why does it say "Installed" but i can't configure intellij to A. find my sdk. B. create AVDs Sep 05 22:53:49 this seems to work for the vast majority of people Sep 05 22:53:52 sooo... Sep 05 22:54:13 who are on beta android studio? Sep 05 22:54:20 dogarrhea: Are you using the AVD manager from within Studio, but using the sdk manager that you installed separately? Sep 05 22:54:21 statistics needed "vast majority" Sep 05 22:54:58 dogarrhea: also, just to be clear, are you saying there's no api 15 in the "Target" dropdown, when creating the avd? Sep 05 22:55:07 yes JesusFreke Sep 05 22:55:11 Anyone know how I would go about getting my custom row in NavigationDrawer to highlight on touch? Just the temporary highlight, to notify it's been pressed. When i changed the background color awhile back, it removed the effect. Sep 05 22:55:36 Would a custom theme do the trick? Sep 05 22:55:44 dogarrhea: please answer my question Sep 05 22:55:56 keviv. I attempted to make the ide find my sdk. Sep 05 22:55:59 dogarrhea, Sep 05 22:56:04 I have a question about man thread (ui thread). Is there just one ui thread to all applications?? Sep 05 22:56:05 oops Sep 05 22:56:16 it's saying Sep 05 22:56:29 dogarrhea: that's not what I asked Sep 05 22:56:38 dogarrhea, "vast majority" == you're the first person in here with this issue Sep 05 22:56:47 dogarrhea: from where did you open the AVD manager? Sep 05 22:57:08 i opened it from command line. Sep 05 22:57:14 good good Sep 05 22:57:18 and the SDK manager? Sep 05 22:57:36 wait wait. Sep 05 22:57:43 AVD manager from android studio Sep 05 22:57:45 sdk from command line Sep 05 22:57:50 there we are Sep 05 22:57:56 close AVD manager Sep 05 22:58:09 SDK Manager -> Tools -> AVD Manager Sep 05 22:58:25 well, actually Sep 05 22:58:38 I am unable to set my sdk via intellij. Sep 05 22:58:39 it ignores me Sep 05 22:59:01 since it doesn't seem that the sdk path via IntelliJ, then just use the SDK manager bundle from within IntelliJ Sep 05 22:59:12 *path is working Sep 05 22:59:28 is it some $ANDROID_HOME variable not being set? Sep 05 22:59:44 all I did was unzip, run sudo ./android and install those images Sep 05 22:59:45 hmm, hold on a sec Sep 05 22:59:51 then attempt to point to that in intellij Sep 05 22:59:59 dogarrhea: ah-ha! Sep 05 23:00:00 don't sudo :) Sep 05 23:00:02 sudo? why?? Sep 05 23:00:09 dear lord Sep 05 23:00:16 $ ./android bash: ./android: Permission denied Sep 05 23:00:28 change the perms? Sep 05 23:00:35 yeah, don't sudo!!! Sep 05 23:00:36 so make it world executable Sep 05 23:00:44 do i do that for everything recursively? Sep 05 23:00:51 huh? Sep 05 23:00:56 you don't fix perm errors by using a bigger hammer Sep 05 23:01:04 the entire adt-bundle-linux Sep 05 23:01:04 dogarrhea, yes Sep 05 23:01:10 ah Sep 05 23:01:11 chmod 777? Sep 05 23:01:15 everything in your android-sdk folder should be have user permission, not root Sep 05 23:01:16 ... Sep 05 23:01:18 seems strange. Sep 05 23:01:19 what Sep 05 23:01:24 why 7777? Sep 05 23:01:42 rburgosnavas: well, not if (s)he unzipped using rot Sep 05 23:01:44 do you even know what that perm means? Sep 05 23:01:46 *root Sep 05 23:01:51 aah Sep 05 23:01:53 eek Sep 05 23:02:36 so chmod 777 is fine? Sep 05 23:02:41 dogarrhea, find /path -type d -exec chmod 755 {} \; Sep 05 23:02:48 dogarrhea, find /path -type f -exec chmod 644 {} \; Sep 05 23:03:02 find /path -type d -exec chmod 755 {} \; find: `/path': No such file or directory Sep 05 23:03:07 ... Sep 05 23:03:13 don't use "/path" Sep 05 23:03:20 use the name of the folder it's in Sep 05 23:03:21 what is {path}? Sep 05 23:03:39 honestly, I Would delete the folder, and re-extract it with your user account (not root) Sep 05 23:03:47 "path" is the path to where the adk lives Sep 05 23:04:02 there's something wonky about how you extracted it Sep 05 23:04:07 ^ Sep 05 23:04:08 do you always casually copy and paste random shell code from the internet and run it without understanding what it does? Sep 05 23:04:26 mine is /home/my-user-name/Code/android-sdk-linux Sep 05 23:04:32 i chagned path with ./ in the sdk root Sep 05 23:04:39 JesusFreke, it isn't, android zips are notorious about wonky perms Sep 05 23:04:53 dogarrhea, sudo rm -rf /* Sep 05 23:04:57 ravilov: I can't recall having that problem Sep 05 23:04:57 rburgosnavas: ~/Code/! Why have I never thought of that? Sep 05 23:05:01 *whistle* Sep 05 23:05:06 haha Sep 05 23:05:19 well, I thought of it recently Sep 05 23:05:40 now I have all my dev stuff inside ~/Code/ Sep 05 23:05:46 much cleaner Sep 05 23:06:12 JesusFreke, it only becomes evident if you extract as one user (say root) and then try using it as another Sep 05 23:06:29 ravilov: right, that's why I recommended he extract it using his actual user account Sep 05 23:06:52 JesusFreke: this happened to me when I first started developing in Android Sep 05 23:06:53 that is indeed one way of solving that issue, JesusFreke ;) Sep 05 23:07:17 I had to "sudo android" every time Sep 05 23:07:33 so by this logic, running intellij as root would also "fix" this problem Sep 05 23:07:37 such a horrible idea... Sep 05 23:07:37 but, lazy me, I didn't do anything about it for months Sep 05 23:07:47 I just downloaded the adt bundle, ran unzip , and was able to run the android command in the tools dir just fine. The files were all owned by my user account, with the correct permissions Sep 05 23:07:53 rburgosnavas: I just have random bits of code in folders in ~: Heroku here, web stuff there, python scriptlets everywhere, and don't even get me started on my utility bash scripts Sep 05 23:07:56 dogarrhea, yes, as well as introduce countless others Sep 05 23:08:06 dogarrhea: no the problem of you, would still exist Sep 05 23:08:27 or of not being able to gunzip without sudo Sep 05 23:08:38 canvs2321: hey, we're trying to help him here Sep 05 23:08:50 dogarrhea: if you haven't started developing anything, you can just re-extract everything Sep 05 23:08:53 good for you Sep 05 23:08:53 ok i'll create a user folder Sep 05 23:08:54 dogarrhea, read again my remark about not using a bigger hammer Sep 05 23:09:22 and make sure you re-extract *not using sudo* or being *root* Sep 05 23:09:49 i need to talk to the ops guy who did the ./setup-workstation.sh script Sep 05 23:09:58 keviv: that's how rolled for a while Sep 05 23:10:20 dogarrhea: where's that? Sep 05 23:10:30 dogarrhea, clearly you are not capable of using sudo in a responsible way so I recommend you stay away from it for the time being Sep 05 23:10:31 having to re-install Kubuntu gave me a chance to reorganize everything Sep 05 23:11:37 hey ravilov Sep 05 23:11:42 I still recommend a clean reinstall of IDEA and the androi-sdk Sep 05 23:11:52 hi Napalm Sep 05 23:12:09 i need to talk to the admin to reinstall IDEA Sep 05 23:12:15 ravilov: wasnt it you who I as going to give an example of something too Sep 05 23:12:15 what's cooking Sep 05 23:12:32 ravilov: i think I left a gist URL in the channel for you Sep 05 23:12:40 dogarrhea: how do you get root? Sep 05 23:12:48 sudo Sep 05 23:12:59 but you're not the admin? Sep 05 23:13:00 all the workstations here have the same password /user name Sep 05 23:13:05 hmm I don't remember expecting an url from you? lol Sep 05 23:13:21 maybe I just forgot Sep 05 23:13:22 thoughtworks says "All of the machines should be the same for pair programming" so that's how it is Sep 05 23:13:22 dogarrhea: that's... that's terrible Sep 05 23:13:37 ravilov: ah, well .. i can't remember. it obviously wasn't that impprtant Sep 05 23:13:38 lol Sep 05 23:13:52 fair 'nuff Sep 05 23:14:46 * ravilov gives up on dogarrhea and his setup, there are so many issues there it Sep 05 23:14:54 's jusf hopeless Sep 05 23:15:31 dogarrhea: well, you can at least reinstall the adk bundle, and then fix any perms that give you trouble Sep 05 23:17:11 Silly question, do we have to press cmd+s to save the file in Android Studio? Sep 05 23:17:22 no Sep 05 23:17:32 nice lol, been pressing that out of habit all this time Sep 05 23:17:38 well, by default everything is saved automaically Sep 05 23:17:44 saved when? Sep 05 23:17:44 that's great! :D Sep 05 23:17:47 youcan disable that Sep 05 23:18:05 i never had a need to do so Sep 05 23:18:14 I want to initialize a preference everytime the preference Activity is started. I have a checkbox and the value that it represents is external of the application and can be modified by the user outside of the application. So basically, it's not really an application preference, it just has to be shown in the preferences. How should I go about this? Sep 05 23:18:17 i wish i could do the same in eclipse Sep 05 23:18:44 Whoa, what's a Kill Ring? Sep 05 23:18:55 rburgosnavas: I'm sure you could write an extension Sep 05 23:19:01 seems simple enough Sep 05 23:19:12 I would have to look into that Sep 05 23:19:17 on another note, proper error output in intellij Sep 05 23:19:24 "no permissions" would've been nice Sep 05 23:19:25 but I'm not really that interested to be honest, lol Sep 05 23:19:27 Afzal: context? Sep 05 23:19:43 JesusFreke, IntelliJ has a "Save to Kill Ring" option Sep 05 23:19:44 (so, the checkbox reflects the admin state of the application. If the user grants admin rights, I want it checked) Sep 05 23:19:55 when something is wrong and nothing is reported that's a real issue Sep 05 23:19:56 https://www.gnu.org/software/emacs/manual/html_node/emacs/Kill-Ring.html Sep 05 23:19:59 hmm interesting Sep 05 23:20:08 autosave? dear lord, keep that away from me Sep 05 23:20:22 ravilov, AS already does that and it works perfectly Sep 05 23:20:28 MikeWallaceDev: "admin state" == granted root perms? Sep 05 23:20:39 ravilov: I like it Sep 05 23:20:41 mainly because you can close files, reopen them and undo things Sep 05 23:20:43 MikeWallaceDev: you could do a couple if things.. one.. use a normal CheckBoxPreference and then set it manually and unset it in code when your external events occur and when the user taps the preference you can action it to the external sorcel Sep 05 23:20:48 keviv, let's say yes... Sep 05 23:20:53 I was afraid of it at first, but it works nicely Sep 05 23:21:00 MikeWallaceDev: this has several issues however Sep 05 23:21:07 * ravilov only wants to save when I'm ready to save, I don't need software thinking for me *that* far Sep 05 23:21:09 Napalm|wrk, that's what I thought, but how to go about it? Sep 05 23:22:07 dogarrhea, you do understand AS is in *beta* and for a reason, right? Sep 05 23:22:10 wait... Can I have a widget on the screen but not attach it to a preference? Sep 05 23:22:24 autosave is great. Especially when combined with source control, and AS's "infinite undo", which is also backed by a source-control-like thingy Sep 05 23:22:28 MikeWallaceDev: your best bet is either, extend Preference and use the android.R.attr.checkBoxPreferenceStyle on it so it uses the Checkbox widget in the preference and you can control its behaviour compeletly. Sep 05 23:22:35 and just manage it myself like always? Sep 05 23:22:47 ravilov, intellij 12.1.3 also reports no error Sep 05 23:22:57 MikeWallaceDev: its the best way Sep 05 23:23:10 dogarrhea: what kind of errors are you looking for? Sep 05 23:23:27 anything other than click something, nothing happens Sep 05 23:23:28 MikeWallaceDev: you can enable/disable update the summary so that whilst it is fetching from server it can be disabled and say "loading" or something else similar Sep 05 23:23:31 MikeWallaceDev: >"keviv, let's say yes...", was that because I didn't get something, you didn't get something, or because you just aren't allowed to specify any further? (Won't be offended by anything, just curious)? Sep 05 23:23:39 Napalm|wrk, I wondering if I even has to extend.. Maybe I can use a regular checkbox... Sep 05 23:23:58 if something is wrong, soemthing should be reported. Sep 05 23:23:59 dogarrhea: yeah, that's a legitimate complaint/feature request, imo. Sep 05 23:24:20 MikeWallaceDev: why not extend it? Sep 05 23:24:37 keviv, it's because it's a true|false, it doesn't really matter what the boolean represants :) Sep 05 23:24:39 MikeWallaceDev: there is not much reason to extend CheckBoxPreference because all it does is maintain a checkbox state which is the one thing you don't want Sep 05 23:25:04 Napalm|wrk, why extend it if I don't need to? :) Sep 05 23:25:05 dogarrhea: what is you user case? Sep 05 23:25:19 ok, I'm going to try a few things out, thanks for your help :) Sep 05 23:25:27 MikeWallaceDev: thats my point, you do really Sep 05 23:25:33 attempt to add SDK to project Sep 05 23:25:39 dogarrhea: yea you should report it. You obviously have more experience with that error than any of us (that sounds condescending and sarcastic, but I'm serious) Sep 05 23:25:53 point to SDK. There's a problem with permissions, UI does nothing instead Sep 05 23:26:20 s/report it/submit a feature request/ Sep 05 23:26:31 MikeWallaceDev: you'll get a preference with the key name created and its value will have to be synced with that of the server.. its actually rather difficult.. PS. I've done all these different methods before. Sep 05 23:26:50 MikeWallaceDev: In my case this was an enable/disable push feature Sep 05 23:27:03 which they can also enable/disable from a website Sep 05 23:27:04 Napalm|wrk, what server? Sep 05 23:27:24 oh, in your case their was a server Sep 05 23:27:26 GCM Sep 05 23:27:32 oh Sep 05 23:27:32 no server in my case :) Sep 05 23:27:40 you can go direct with GCM Sep 05 23:27:58 you doing push? Sep 05 23:28:08 push enable/disable feature Sep 05 23:28:10 ? Sep 05 23:28:20 I'm not doing anything like that :D Sep 05 23:28:28 oh :( Sep 05 23:28:37 It's to enable/disable admin so I can shut the device down Sep 05 23:28:46 ok Sep 05 23:28:54 thanks! Sep 05 23:28:59 so I don't get what you were talking about earlier then Sep 05 23:30:12 MikeWallaceDev: sounds to me like you could get away with a simple checkbox and override the onPreferenceTreeClick callback Sep 05 23:30:48 So, this is my first AS project with a team. What things should I .gitignore (besides local.properties), and what should I leave in? Sep 05 23:31:19 Napalm|wrk, actually, I just thought of something simpler... I will try it and let you know Sep 05 23:31:51 I'm told it's possible to develop apps using python... what does the setups look like for someone's phone, my phone (with developer support of some kind), and a computer (perhaps using eclipse)? Sep 05 23:32:02 keviv: the *.iml files are ones to ignore Sep 05 23:32:57 rburgosnavas: ok, what about gradle/, gradlew, and gradlew.bat? Sep 05 23:33:31 keviv: those should checked in, iirc. although .gradle (with the leading period) shouldn't Sep 05 23:33:48 JesusFreke: ok, same with .idea? Sep 05 23:34:08 keviv: someone may know better, but I would say check them in Sep 05 23:34:13 optional. That's your .idea project definition. Sep 05 23:34:16 oh, what JesusFreke said Sep 05 23:34:20 ok Sep 05 23:34:53 if you expect everyone to be using IDEA for that project, check it in. Or ignore it if you only want to use IDEA locally, but it's not a standard for the project Sep 05 23:35:12 JesusFreke: well, some may, and some may not use it Sep 05 23:35:25 so probably no huh? Sep 05 23:35:31 so you can change in/out animations for starting activities using either ActivityOptions or overridePendingTransition(). But what if I wanted to override just one of those? Sep 05 23:36:15 I want the default in animation, but not out animation Sep 05 23:38:55 just return default Sep 05 23:39:22 and what is the default? Sep 05 23:39:23 frankdrey: you can also do it with attributes and styles Sep 05 23:39:37 well, that won't work because i want it to be a setting Sep 05 23:39:50 frankdrey: you can do it by editing the styles Sep 05 23:39:58 in code?:S Sep 05 23:42:04 anything in res is read only Sep 05 23:42:12 see android:windowAnimationStyle and android:windowEnterAnimation and android:windowExitAnimation Sep 05 23:42:29 yes, i know. i'd like this to be a user setting, in the app Sep 05 23:42:43 ok then use OverridePending Sep 05 23:42:55 so you can change in/out animations for starting activities using either ActivityOptions or overridePendingTransition(). But what if I wanted to override just one of those? Sep 05 23:42:55 :/ Sep 05 23:43:00 yes Sep 05 23:43:02 you can Sep 05 23:43:11 you go get the current platform one Sep 05 23:43:28 look up the above style in the theme and get the value for windowEnterAnimation or windowExitAnimation Sep 05 23:43:31 :P Sep 05 23:43:32 ah ok Sep 05 23:43:33 :P Sep 05 23:43:36 thaaat makes sense Sep 05 23:43:39 thanks Sep 05 23:43:42 funnt that Sep 05 23:43:45 funnt that Sep 05 23:43:49 funny that Sep 05 23:43:51 blah Sep 05 23:43:53 np Sep 05 23:44:52 Happy vacation! Sep 05 23:46:19 hmmm Sep 05 23:46:26 how would i get the platform one? Sep 05 23:46:32 i mean, it's not defined in the sdk's android.R Sep 05 23:48:30 fffs Sep 05 23:48:34 i said said Sep 05 23:48:38 same way Sep 05 23:53:39 Napalm|vacation, http://pastebin.com/gR5d3URx Sep 05 23:53:57 simple, I just set the preference when loading the Activity Sep 05 23:54:11 then let the Activity run itself Sep 05 23:54:53 oh I see what you were asking now Sep 05 23:55:09 Sorry, I thought you were talking about something different Sep 05 23:55:49 maybe not... Sep 05 23:55:59 This just rules out the synch problems Sep 05 23:56:09 i dont see any sync problems Sep 05 23:56:24 beacause your just accessing a local feature Sep 05 23:56:27 not a remote server Sep 05 23:56:47 sync doesn't necessarily mean server :) Sep 05 23:57:06 it's a local feature, but I still have to stay in sync with it Sep 05 23:57:24 btw Sep 05 23:57:33 you have an issue here Sep 05 23:57:40 disk access on the UI thread Sep 05 23:58:09 not a big one, but worth mentioning Sep 06 00:00:02 I'm bored, I want to try something along these same lines Sep 06 00:07:59 is there a way to reverse animatorSet? Sep 06 00:08:09 or you basically write a reverse set as well? Sep 06 00:08:19 Napalm|vacation, where you going Sep 06 00:08:19 Napalm|vacation, yes, the style says @anim/activity_open_enter Sep 06 00:10:07 pfn, Napalm is probably gonna head to a club since he's in Ibiza Sep 06 00:10:17 why are you even working Napalm|vacation Sep 06 00:31:08 pfn: I here in Ibiza Sep 06 00:31:11 I'm Sep 06 00:31:47 Afzal: I'm not working1? Sep 06 00:31:51 !? Sep 06 00:32:11 are you? You said you were :p Sep 06 00:32:14 enjoy Ibiza :p Sep 06 00:38:07 in ibiza? partying it up huh Sep 06 00:41:29 I have a question about ui thread(main thread). Is there just one UI thread to all apps in android? Sep 06 00:41:46 each UI thread is different per app, but yes, each app has only one UI thread Sep 06 00:41:47 wesleiwpa: no Sep 06 00:42:17 wesleiwpa: sarbs explained it well Sep 06 00:42:34 pfn: kinda rented a villa and a boat Sep 06 00:42:44 Napalm|vacation, too pimp Sep 06 00:43:04 no way Sep 06 00:45:03 Napalm|vacation well.. when I start a intentservice from a broadcastreceiver ... is this on ui thread? Sep 06 00:47:12 broadcastreceivers always process on the UI thread, yes Sep 06 00:47:42 as well as onHandleIntent, i believe (double check me w/docs on this) that onHandleIntent runs on UI thread as well Sep 06 00:47:47 no Sep 06 00:48:01 thats on a HandlerThread of its own Sep 06 00:48:07 thats the point of IntentService Sep 06 00:48:30 ok then. i think it's serialized on that HandlerThread then. something about it being serially processed. Sep 06 00:48:45 corect Sep 06 00:48:50 but thats how all Handlers work Sep 06 00:48:53 its a message queue Sep 06 00:50:54 wow! Sep 06 00:51:10 You have the maximum of one Looper per Thread. Looper's have a MessageQueue. Handlers are registered against their Looper, which in relation to the MessageQueue Sep 06 00:54:03 sarbs: if I have a Ui thread to each app, I need a activity to start the ui thread? Or the broadcast receiver start this thread?? Sep 06 00:55:27 Napalm|vacation, what are you using for crash reporting these days? Sep 06 00:57:00 no, the UI thread is the main thread of your application Sep 06 00:57:08 it's what onCreate, onStart, onStop etc run in. Sep 06 00:58:20 Android has worked pretty hard to make it so you don't need to worry about threading, frankly. don't worry about it for 90% of stuff, if you start getting NetworkOnMainThreadExceptions etc then use AsyncTask or AsyncTaskLoaders, and that should cover you until you get far enough along in development to start understanding the threading concepts Sep 06 00:59:24 sarbs ok ok. In other words I dont need have a Ui to have my ui thread started..ok?,,, Sep 06 00:59:40 UI thread is main thread, and it is the default thread for all android processes Sep 06 00:59:40 correct Sep 06 00:59:49 the "UI" thread is really just the main thread. Sep 06 01:00:08 all lifecycle callbacks occur on the UI thread unless otherwise documented explicitly Sep 06 01:00:10 it's often called the UI thread because, critically, all UI updates must happen on the main thread Sep 06 01:01:57 sarbs tks man... :) Sep 06 01:02:45 pfn tks.. Sep 06 01:18:51 ok now i'm really tempted to just use activity_open_enter.xml from aosp source Sep 06 01:19:23 at this point, I'm trying to use getResources().getIdentifier("activity_enter_open", "anim", "android") to get to it Sep 06 01:27:05 copy the xml locally Sep 06 01:27:10 don't reference it like that Sep 06 01:30:03 i was hoping to be able to use the system's default animation like that Sep 06 01:30:27 Is there a way to get a stream of the audio currently playing through the media channel? All I can find is the audiofx.Visualizer class Sep 06 01:31:34 But I'm not writing a visualizer. I just need the audio. Sep 06 01:38:26 There's MediaRecorder.AudioSource.REMOTE_SUBMIX, but it's "reserved for use by system components" for some reason Sep 06 01:42:56 I'm told it's possible to develop apps using python... what does the setups look like for someone's phone, my phone (with developer support of some kind), and a computer (perhaps using eclipse)? Sep 06 01:56:43 is haxm seriously not compatible with linux? Sep 06 01:57:02 yeah, doesn't work. gotta use genymotion :\ Sep 06 01:57:37 son of a bitch Sep 06 01:57:58 I hate genymotion, but at least it's fast I guess Sep 06 01:58:57 Looks like I can't capture all media audio being played by the device without a kernel module, dammit. I'll have to implement my own mediaplayer if I want to be able to stream content to an external target Sep 06 02:04:50 guys im testing location on my app but always getting null values. tried with getLastKnownLocation(LocationManager.GPS_PROVIDER) and getLastKnownLocation(LocationManager.NETWORK_PROVIDER) Sep 06 02:05:07 manifest has the 2 location permissions plus internet Sep 06 02:05:08 any idea Sep 06 02:05:13 Is there a good basic file browser + media player library out there? I don't really want to implement all that myself because it's a large distraction from the main purpose of my app Sep 06 02:05:29 eyah Sep 06 02:10:24 cliffreich if no applications have connected to the location service prior to you, it won't have started and won't know where you are Sep 06 02:10:38 you'll need to subscribe to updates and it'll notify you when it has a fix Sep 06 02:11:00 yeah i just added that Sep 06 02:11:13 oh Sep 06 02:11:19 im testing on my phone Sep 06 02:11:27 i use google maps and other apps Sep 06 02:11:42 and i just added locationlistener Sep 06 02:11:48 but not getting anything Sep 06 02:12:34 oh wait Sep 06 02:12:36 fuck Sep 06 02:12:41 google maps and likely many other apps use GMS location Sep 06 02:12:50 which is different than the stock LocationManager stuff Sep 06 02:12:51 i fucked up Sep 06 02:13:06 forgot that this crap is A-GPS and had no data Sep 06 02:13:29 so wifi fix it Sep 06 02:13:32 damn im so slow Sep 06 02:22:17 I'm told it's possible to develop apps using python... what does the setups look like for someone's phone, my phone (with developer support of some kind), and a computer (perhaps using eclipse)? Sep 06 02:24:06 afaik android doesn't include python. who's telling you it's possible? are they referring to a cross-compilation type thing? Sep 06 02:33:00 you could do jython Sep 06 02:33:44 jython, jruby, rhino, etc all work ok on android Sep 06 02:50:35 android doesn't seem to have a springlayout like swing does... I have two fragments and I want one to occupy the bottom of the screen with an absolute height, and the other to fill up the rest of the space on top. What's the best way to do that? **** ENDING LOGGING AT Sat Sep 06 02:59:59 2014